wcsrtombs: Work around bug on native Windows.
[gnulib.git] / ChangeLog
1 2011-02-12  Bruno Haible  <bruno@clisp.org>
2
3         wcsrtombs: Work around bug on native Windows.
4         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
5         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6         instead of len.
7         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8
9 2011-02-12  Bruno Haible  <bruno@clisp.org>
10
11         mbsrtowcs: Work around bug on native Windows.
12         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13         against mingw bug.
14         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15
16 2011-02-12  Bruno Haible  <bruno@clisp.org>
17
18         Avoid setlocale bugs in tests.
19         * modules/btowc (Dependencies): Add setlocale.
20         * modules/c-strcase (Dependencies): Likewise.
21         * modules/mbmemcasecmp (Dependencies): Likewise.
22         * modules/mbmemcasecoll (Dependencies): Likewise.
23         * modules/mbrtowc (Dependencies): Likewise.
24         * modules/mbscasecmp (Dependencies): Likewise.
25         * modules/mbscasestr (Dependencies): Likewise.
26         * modules/mbschr (Dependencies): Likewise.
27         * modules/mbscspn (Dependencies): Likewise.
28         * modules/mbsinit (Dependencies): Likewise.
29         * modules/mbsncasecmp (Dependencies): Likewise.
30         * modules/mbsnrtowcs (Dependencies): Likewise.
31         * modules/mbspbrk (Dependencies): Likewise.
32         * modules/mbspcasecmp (Dependencies): Likewise.
33         * modules/mbsrchr (Dependencies): Likewise.
34         * modules/mbsrtowcs (Dependencies): Likewise.
35         * modules/mbsspn (Dependencies): Likewise.
36         * modules/mbsstr (Dependencies): Likewise.
37         * modules/nl_langinfo (Dependencies): Likewise.
38         * modules/quotearg (Dependencies): Likewise.
39         * modules/unicase/locale-language (Dependencies): Likewise.
40         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
41         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
42         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
43         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
44         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
45         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
46         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
47         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
48         * modules/vasnprintf-posix (Dependencies): Likewise.
49         * modules/wcrtomb (Dependencies): Likewise.
50         * modules/wcsnrtombs (Dependencies): Likewise.
51         * modules/wcsrtombs (Dependencies): Likewise.
52
53 2011-02-12  Bruno Haible  <bruno@clisp.org>
54
55         setlocale: Workaround native Windows bug.
56         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
57         succeeds but sets LC_CTYPE to "C", report a failure.
58         * tests/test-setlocale2.sh: New file.
59         * tests/test-setlocale2.c: New file.
60         * modules/setlocale-tests (Files): Add the new files.
61         (Makefile.am): Enable test-setlocale2.sh test.
62         * doc/posix-functions/setlocale.texi: Mention workaround.
63
64 2011-02-11  Bruno Haible  <bruno@clisp.org>
65
66         Tests for module 'setlocale'.
67         * modules/setlocale-tests: New file.
68         * tests/test-setlocale1.sh: New file.
69         * tests/test-setlocale1.c: New file.
70
71         New module 'setlocale'.
72         * lib/locale.in.h (setlocale): New declaration.
73         * lib/setlocale.c: New file, based on
74         gettext/gettext-runtime/intl/setlocale.c.
75         * m4/setlocale.m4: New file.
76         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
77         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
78         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
79         REPLACE_SETLOCALE.
80         * modules/setlocale: New file.
81         * tests/test-locale-c++.cc: Test the declaration of setlocale.
82         * doc/posix-functions/setlocale.texi: Mention the new module.
83
84 2011-02-11  Bruno Haible  <bruno@clisp.org>
85
86         Prepare for locale dependent tests on mingw.
87         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
88         because it has the wrong locale encoding.
89         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
90         French_France.1252 instead of "fr".
91         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
92         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
93         because it has the wrong locale encoding.
94         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
95         native Windows, try Turkish_Turkey.65001.
96         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
97         Chinese_China.54936.
98
99         Prepare for locale dependent tests on mingw.
100         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
101         differently.
102         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
103         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
104         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
105         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
106
107 2011-02-11  Eric Blake  <eblake@redhat.com>
108
109         strptime: avoid compiler warnings
110         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
111         compiler warnings about dead code.
112         Reported by Matthias Bolte.
113
114 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
115
116         doc: update users.txt
117         * users.txt: Add rcs.
118
119 2011-02-10  John W. Eaton  <jwe@gnu.org>
120
121         doc: update users.txt
122         * users.txt: Add octave.
123
124 2011-02-10  Jim Meyering  <meyering@redhat.com>
125
126         doc: update users.txt
127         * users.txt: Add iwhd.
128
129 2011-02-09  Bruno Haible  <bruno@clisp.org>
130
131         gnulib-tool: Make copyright notice adjustment more robust.
132         * gnulib-tool (func_import): In sed_transform_main_lib_file,
133         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
134         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
135         License".
136         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
137
138 2011-02-06  Bruno Haible  <bruno@clisp.org>
139
140         New module 'towctrans'.
141         * modules/towctrans: New file.
142         * lib/wctype.in.h (towctrans): New declaration.
143         * lib/towctrans.c: New file.
144         * lib/towctrans-impl.h: New file.
145         * m4/towctrans.m4: New file.
146         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
147         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
148         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
149         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
150         * doc/posix-functions/towctrans.texi: Mention the new module.
151
152 2011-02-06  Bruno Haible  <bruno@clisp.org>
153
154         New module 'wctrans'.
155         * modules/wctrans: New file.
156         * lib/wctype.in.h (wctrans): New declaration.
157         * lib/wctrans.c: New file.
158         * lib/wctrans-impl.h: New file.
159         * m4/wctrans.m4: New file.
160         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
161         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
162         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
163         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
164         * doc/posix-functions/wctrans.texi: Mention the new module.
165
166 2011-02-06  Bruno Haible  <bruno@clisp.org>
167
168         New module 'iswctype'.
169         * modules/iswctype: New file.
170         * lib/wctype.in.h (iswctype): New declaration.
171         * lib/iswctype.c: New file.
172         * lib/iswctype-impl.h: New file.
173         * m4/iswctype.m4: New file.
174         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
175         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
176         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
177         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
178         * doc/posix-functions/iswctype.texi: Mention the new module and the
179         HP-UX 11.00 problem.
180
181 2011-02-06  Bruno Haible  <bruno@clisp.org>
182
183         New module 'wctype'.
184         * modules/wctype: Change to represent the wctype() substitute.
185         * lib/wctype.in.h (wctype): New declaration.
186         * lib/wctype.c: New file.
187         * lib/wctype-impl.h: New file.
188         * m4/wctype.m4: New file.
189         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
190         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
191         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
192         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
193         * doc/posix-functions/wctype.texi: Mention the new module and the
194         HP-UX 11.00 problem.
195
196 2011-02-06  Bruno Haible  <bruno@clisp.org>
197
198         wctype-h: Ensure wctype_t and wctrans_t are defined.
199         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
200         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
201         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
202         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
203         HAVE_WCTRANS_T.
204         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
205
206 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
207
208         flock: fix license typo
209
210         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
211         omitted.
212
213 2011-02-08  Bruno Haible  <bruno@clisp.org>
214
215         Split large sed scripts, for HP-UX sed.
216         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
217         to avoid HP-UX limit of 99 commands, in the near future.
218         * modules/stdlib (Makefile.am): Likewise.
219         * modules/unistd (Makefile.am): Likewise.
220         * modules/wchar (Makefile.am): Likewise.
221         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
222         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
223         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
224
225 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
226             Bruno Haible  <bruno@clisp.org>
227
228         stdlib: improve random_r modularization
229         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
230         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
231         you also need the random_r module to get this material right.
232         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
233         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
234         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
235
236 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
237
238         stdlib: don't depend on stdint
239         * lib/stdlib.in.h: Don't include <stdint.h> merely because
240         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
241         be independent of whether stdint.h is needed.
242         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
243         here, instead of ...
244         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
245         struct random_data should be using the random_r module, not just
246         the stdlib module (which wouldn't make sense: what package needs
247         just struct random_data without also needing random_r?).
248         * modules/stdlib (Depends-on): Remove stdint.
249
250         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
251         See the thread rooted at
252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
253         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
254         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
255         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
256         __VMS)); previously it was always included (via fcntl--.h).
257         (getloadavg): Do not use c_strtod.  Instead, approximate it by
258         hand; this is good enough for load averages.  Also, do not use
259         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
260         flags directly if available and don't bother otherwise.  (Packages
261         that need the extra reliability should use the modules that define
262         these flags on older platforms that lack them.)
263         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
264         fcntl-safer.
265
266 2011-02-08  Jim Meyering  <meyering@redhat.com>
267
268         di-set.h, ino-map.h: add multiple-inclusion guard
269         Technically, the guard is required only for ino-map.h, due to its
270         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
271         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
272         * lib/ino-map.h: Likewise.
273
274 2011-02-06  Bruno Haible  <bruno@clisp.org>
275
276         iswblank: Ensure declaration on glibc systems.
277         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
278         * modules/iswblank (Dependencies): Add 'extensions'.
279         * doc/posix-functions/iswblank.texi: Document the glibc problem.
280
281 2011-02-06  Bruno Haible  <bruno@clisp.org>
282
283         New module 'iswblank'.
284         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
285         * modules/iswblank: New file.
286         * modules/wctype-h (Files): Remove lib/iswblank.c.
287         (Makefile.am): Substitute GNULIB_ISWBLANK.
288         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
289         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
290         (gl_WCTYPE_H_DEFAULTS): New macro.
291         (gl_WCTYPE_H): Require it. Remove iswblank related code.
292         * modules/iswblank-tests: New file.
293         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
294         * tests/test-wctype-h.c (main): Remove iswblank tests.
295         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
296         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
297         of 'wctype-h'.
298         * NEWS: Mention the change.
299         * modules/mbchar (Depends-on): Add iswblank.
300
301 2011-02-08  Bruno Haible  <bruno@clisp.org>
302
303         di-set tests: Refactor.
304         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
305         unnecessary includes.
306         (ASSERT): Remove macro.
307         (main): Make C90 compliant by avoiding variable declaration after
308         statement.
309         * modules/di-set-tests (Files): Add tests/macros.h.
310
311 2011-02-08  Bruno Haible  <bruno@clisp.org>
312
313         ino-map tests: Refactor.
314         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
315         unnecessary includes.
316         (ASSERT): Remove macro.
317         (main): Make C90 compliant by avoiding variable declaration after
318         statement.
319         * modules/ino-map-tests (Files): Add tests/macros.h.
320
321 2011-02-08  Jim Meyering  <meyering@redhat.com>
322
323         di-set: add "const" to a cast
324         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
325         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
326
327 2011-02-06  Bruno Haible  <bruno@clisp.org>
328
329         Rename module 'wctype' to 'wctype-h'.
330         * modules/wctype-h: Renamed from modules/wctype.
331         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
332         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
333         (Files, Depends-on, Makefile.am): Update.
334         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
335         (Files, Makefile.am): Update.
336         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
337         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
338         * doc/posix-headers/wctype.texi: Update.
339         * doc/posix-functions/iswalnum.texi: Update.
340         * doc/posix-functions/iswalpha.texi: Update.
341         * doc/posix-functions/iswblank.texi: Update.
342         * doc/posix-functions/iswcntrl.texi: Update.
343         * doc/posix-functions/iswdigit.texi: Update.
344         * doc/posix-functions/iswgraph.texi: Update.
345         * doc/posix-functions/iswlower.texi: Update.
346         * doc/posix-functions/iswprint.texi: Update.
347         * doc/posix-functions/iswpunct.texi: Update.
348         * doc/posix-functions/iswspace.texi: Update.
349         * doc/posix-functions/iswupper.texi: Update.
350         * doc/posix-functions/iswxdigit.texi: Update.
351         * doc/posix-functions/towlower.texi: Update.
352         * doc/posix-functions/towupper.texi: Update.
353         * NEWS: Mention the change.
354         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
355         * modules/mbchar (Dependencies): Likewise.
356         * modules/mbswidth (Dependencies): Likewise.
357         * modules/quotearg (Dependencies): Likewise.
358         * modules/regex (Dependencies): Likewise.
359         * modules/wcscasecmp (Dependencies): Likewise.
360         * modules/wcsncasecmp (Dependencies): Likewise.
361         * modules/wcwidth (Dependencies): Likewise.
362
363 2011-02-06  Bruno Haible  <bruno@clisp.org>
364
365         New module 'wcswidth'.
366         * modules/wcswidth: New file.
367         * lib/wchar.in.h (wcswidth): New declaration.
368         * lib/wcswidth.c: New file.
369         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
370         * m4/wcswidth.m4: New file.
371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
373         REPLACE_WCSWIDTH.
374         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
375         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
376         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
377         * doc/posix-functions/wcswidth.texi: Mention the new module.
378
379 2011-02-06  Bruno Haible  <bruno@clisp.org>
380
381         New module 'wcstok'.
382         * modules/wcstok: New file.
383         * lib/wchar.in.h (wcstok): New declaration.
384         * lib/wcstok.c: New file.
385         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
386         * m4/wcstok.m4: New file.
387         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
388         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
389         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
390         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
391         * doc/posix-functions/wcstok.texi: Mention the new module.
392
393 2011-02-06  Bruno Haible  <bruno@clisp.org>
394
395         New module 'wcsstr'.
396         * modules/wcsstr: New file.
397         * lib/wchar.in.h (wcsstr): New declaration.
398         * lib/wcsstr.c: New file.
399         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
400         * m4/wcsstr.m4: New file.
401         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
402         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
403         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
404         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
405         * doc/posix-functions/wcsstr.texi: Mention the new module.
406
407 2011-02-06  Bruno Haible  <bruno@clisp.org>
408
409         New module 'wcspbrk'.
410         * modules/wcspbrk: New file.
411         * lib/wchar.in.h (wcspbrk): New declaration.
412         * lib/wcspbrk.c: New file.
413         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
414         * m4/wcspbrk.m4: New file.
415         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
416         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
417         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
418         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
419         * doc/posix-functions/wcspbrk.texi: Mention the new module.
420
421 2011-02-06  Bruno Haible  <bruno@clisp.org>
422
423         New module 'wcsspn'.
424         * modules/wcsspn: New file.
425         * lib/wchar.in.h (wcsspn): New declaration.
426         * lib/wcsspn.c: New file.
427         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
428         * m4/wcsspn.m4: New file.
429         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
430         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
431         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
432         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
433         * doc/posix-functions/wcsspn.texi: Mention the new module.
434
435 2011-02-06  Bruno Haible  <bruno@clisp.org>
436
437         New module 'wcscspn'.
438         * modules/wcscspn: New file.
439         * lib/wchar.in.h (wcscspn): New declaration.
440         * lib/wcscspn.c: New file.
441         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
442         * m4/wcscspn.m4: New file.
443         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
444         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
445         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
446         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
447         * doc/posix-functions/wcscspn.texi: Mention the new module.
448
449 2011-02-06  Bruno Haible  <bruno@clisp.org>
450
451         New module 'wcsrchr'.
452         * modules/wcsrchr: New file.
453         * lib/wchar.in.h (wcsrchr): New declaration.
454         * lib/wcsrchr.c: New file.
455         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
456         * m4/wcsrchr.m4: New file.
457         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
458         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
459         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
460         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
461         * doc/posix-functions/wcsrchr.texi: Mention the new module.
462
463 2011-02-06  Bruno Haible  <bruno@clisp.org>
464
465         New module 'wcschr'.
466         * modules/wcschr: New file.
467         * lib/wchar.in.h (wcschr): New declaration.
468         * lib/wcschr.c: New file.
469         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
470         * m4/wcschr.m4: New file.
471         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
472         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
473         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
474         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
475         * doc/posix-functions/wcschr.texi: Mention the new module.
476
477 2011-02-06  Bruno Haible  <bruno@clisp.org>
478
479         New module 'wcsdup'.
480         * modules/wcsdup: New file.
481         * lib/wchar.in.h (wcsdup): New declaration.
482         * lib/wcsdup.c: New file.
483         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
484         * m4/wcsdup.m4: New file.
485         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
486         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
487         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
488         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
489         * doc/posix-functions/wcsdup.texi: Mention the new module.
490
491 2011-02-06  Bruno Haible  <bruno@clisp.org>
492
493         New module 'wcsxfrm'.
494         * modules/wcsxfrm: New file.
495         * lib/wchar.in.h (wcsxfrm): New declaration.
496         * lib/wcsxfrm.c: New file.
497         * lib/wcsxfrm-impl.h: New file.
498         * m4/wcsxfrm.m4: New file.
499         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
500         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
502         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
503         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
504
505 2011-02-06  Bruno Haible  <bruno@clisp.org>
506
507         New module 'wcscoll'.
508         * modules/wcscoll: New file.
509         * lib/wchar.in.h (wcscoll): New declaration.
510         * lib/wcscoll.c: New file.
511         * lib/wcscoll-impl.h: New file.
512         * m4/wcscoll.m4: New file.
513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
516         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
517         * doc/posix-functions/wcscoll.texi: Mention the new module.
518
519 2011-02-06  Bruno Haible  <bruno@clisp.org>
520
521         New module 'wcsncasecmp'.
522         * modules/wcsncasecmp: New file.
523         * lib/wchar.in.h (wcsncasecmp): New declaration.
524         * lib/wcsncasecmp.c: New file.
525         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
526         * m4/wcsncasecmp.m4: New file.
527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
530         HAVE_WCSNCASECMP.
531         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
532         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
533
534 2011-02-06  Bruno Haible  <bruno@clisp.org>
535
536         New module 'wcscasecmp'.
537         * modules/wcscasecmp: New file.
538         * lib/wchar.in.h (wcscasecmp): New declaration.
539         * lib/wcscasecmp.c: New file.
540         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
541         * m4/wcscasecmp.m4: New file.
542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
544         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
545         HAVE_WCSCASECMP.
546         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
547         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
548
549 2011-02-05  Bruno Haible  <bruno@clisp.org>
550
551         New module 'wcsncmp'.
552         * modules/wcsncmp: New file.
553         * lib/wchar.in.h (wcsncmp): New declaration.
554         * lib/wcsncmp.c: New file.
555         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
556         * m4/wcsncmp.m4: New file.
557         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
558         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
559         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
560         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
561         * doc/posix-functions/wcsncmp.texi: Mention the new module.
562
563 2011-02-05  Bruno Haible  <bruno@clisp.org>
564
565         New module 'wcscmp'.
566         * modules/wcscmp: New file.
567         * lib/wchar.in.h (wcscmp): New declaration.
568         * lib/wcscmp.c: New file.
569         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
570         * m4/wcscmp.m4: New file.
571         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
572         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
573         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
574         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
575         * doc/posix-functions/wcscmp.texi: Mention the new module.
576
577 2011-02-05  Bruno Haible  <bruno@clisp.org>
578
579         New module 'wcsncat'.
580         * modules/wcsncat: New file.
581         * lib/wchar.in.h (wcsncat): New declaration.
582         * lib/wcsncat.c: New file.
583         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
584         * m4/wcsncat.m4: New file.
585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
587         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
588         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
589         * doc/posix-functions/wcsncat.texi: Mention the new module.
590
591 2011-02-05  Bruno Haible  <bruno@clisp.org>
592
593         New module 'wcscat'.
594         * modules/wcscat: New file.
595         * lib/wchar.in.h (wcscat): New declaration.
596         * lib/wcscat.c: New file.
597         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
598         * m4/wcscat.m4: New file.
599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
601         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
602         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
603         * doc/posix-functions/wcscat.texi: Mention the new module.
604
605 2011-02-05  Bruno Haible  <bruno@clisp.org>
606
607         New module 'wcpncpy'.
608         * modules/wcpncpy: New file.
609         * lib/wchar.in.h (wcpncpy): New declaration.
610         * lib/wcpncpy.c: New file.
611         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
612         * m4/wcpncpy.m4: New file.
613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
615         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
616         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
617         * doc/posix-functions/wcpncpy.texi: Mention the new module.
618
619 2011-02-05  Bruno Haible  <bruno@clisp.org>
620
621         New module 'wcsncpy'.
622         * modules/wcsncpy: New file.
623         * lib/wchar.in.h (wcsncpy): New declaration.
624         * lib/wcsncpy.c: New file.
625         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
626         * m4/wcsncpy.m4: New file.
627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
630         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
631         * doc/posix-functions/wcsncpy.texi: Mention the new module.
632
633 2011-02-05  Bruno Haible  <bruno@clisp.org>
634
635         New module 'wcpcpy'.
636         * modules/wcpcpy: New file.
637         * lib/wchar.in.h (wcpcpy): New declaration.
638         * lib/wcpcpy.c: New file.
639         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
640         * m4/wcpcpy.m4: New file.
641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
643         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
644         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
645         * doc/posix-functions/wcpcpy.texi: Mention the new module.
646
647 2011-02-05  Bruno Haible  <bruno@clisp.org>
648
649         New module 'wcscpy'.
650         * modules/wcscpy: New file.
651         * lib/wchar.in.h (wcscpy): New declaration.
652         * lib/wcscpy.c: New file.
653         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
654         * m4/wcscpy.m4: New file.
655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
658         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
659         * doc/posix-functions/wcscpy.texi: Mention the new module.
660
661 2011-02-05  Bruno Haible  <bruno@clisp.org>
662
663         New module 'wcsnlen'.
664         * modules/wcsnlen: New file.
665         * lib/wchar.in.h (wcsnlen): New declaration.
666         * lib/wcsnlen.c: New file.
667         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
668         * m4/wcsnlen.m4: New file.
669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
672         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
673         * doc/posix-functions/wcsnlen.texi: Mention the new module.
674
675 2011-02-05  Bruno Haible  <bruno@clisp.org>
676
677         New module 'wcslen'.
678         * modules/wcslen: New file.
679         * lib/wchar.in.h (wcslen): New declaration.
680         * lib/wcslen.c: New file.
681         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
682         * m4/wcslen.m4: New file.
683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
686         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
687         * doc/posix-functions/wcslen.texi: Mention the new module.
688
689 2011-02-05  Bruno Haible  <bruno@clisp.org>
690
691         New module 'wmemset'.
692         * modules/wmemset: New file.
693         * lib/wchar.in.h (wmemset): New declaration.
694         * lib/wmemset.c: New file.
695         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
696         * m4/wmemset.m4: New file.
697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
699         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
700         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
701         * doc/posix-functions/wmemset.texi: Mention the new module.
702
703 2011-02-05  Bruno Haible  <bruno@clisp.org>
704
705         New module 'wmemmove'.
706         * modules/wmemmove: New file.
707         * lib/wchar.in.h (wmemmove): New declaration.
708         * lib/wmemmove.c: New file.
709         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
710         * m4/wmemmove.m4: New file.
711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
713         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
714         HAVE_WMEMMOVE.
715         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
716         * doc/posix-functions/wmemmove.texi: Mention the new module.
717
718 2011-02-05  Bruno Haible  <bruno@clisp.org>
719
720         New module 'wmemcpy'.
721         * modules/wmemcpy: New file.
722         * lib/wchar.in.h (wmemcpy): New declaration.
723         * lib/wmemcpy.c: New file.
724         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
725         * m4/wmemcpy.m4: New file.
726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
728         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
729         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
730         * doc/posix-functions/wmemcpy.texi: Mention the new module.
731
732 2011-02-05  Bruno Haible  <bruno@clisp.org>
733
734         New module 'wmemcmp'.
735         * modules/wmemcmp: New file.
736         * lib/wchar.in.h (wmemcmp): New declaration.
737         * lib/wmemcmp.c: New file.
738         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
739         * m4/wmemcmp.m4: New file.
740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
742         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
743         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
744         * doc/posix-functions/wmemcmp.texi: Mention the new module.
745
746 2011-02-07  Jim Meyering  <meyering@redhat.com>
747
748         di-set, ino-map: new modules, from coreutils
749         * lib/di-set.c: New file.
750         * lib/di-set.h: Likewise.
751         * lib/ino-map.c: Likewise.
752         * lib/ino-map.h: Likewise.
753         * modules/di-set: Likewise.
754         * modules/di-set-tests: Likewise.
755         * modules/ino-map: Likewise.
756         * modules/ino-map-tests: Likewise.
757         * tests/test-di-set.c: Likewise.
758         * tests/test-ino-map.c: Likewise.
759
760 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
761
762         getloadavg: merge minor changes from Emacs
763
764         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
765         (getloadavg): Use memset, not bzero.
766
767         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
768         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
769         clash (bug#86).
770
771 2010-11-14  Bruno Haible  <bruno@clisp.org>
772
773         Allow multiple gnulib generated replacements to coexist.
774         * lib/getopt.in.h (struct option): Avoid identical redefinition.
775         * lib/inttypes.in.h (imaxdiv_t): Likewise.
776         * lib/langinfo.in.h (nl_item): Likewise.
777         * lib/math.in.h (_NaN, NAN): Likewise.
778         * lib/netdb.in.h (struct addrinfo): Likewise.
779         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
780         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
781         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
782         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
783         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
784         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
785         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
786         pthread_mutexattr_init, pthread_mutexattr_settype,
787         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
788         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
789         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
790         pthread_spin_trylock, pthread_spin_unlock): Likewise.
791         * lib/sched.in.h (struct sched_param): Likewise.
792         * lib/se-selinux.in.h (security_class_t, security_context_t,
793         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
794         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
795         lsetfilecon, fsetfilecon, security_check_context,
796         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
797         Likewise.
798         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
799         Likewise.
800         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
801         _gl_function_taking_int_returning_void_t, union sigval,
802         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
803         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
804         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
805         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
806         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
807         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
808         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
809         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
810         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
811         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
812         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
813         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
814         socklen_t, rpl_fd_isset): Likewise.
815         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
816         * lib/sys_time.in.h (struct timeval): Likewise.
817         * lib/sys_times.in.h (struct tms): Likewise.
818         * lib/sys_utsname.in.h (struct utsname):
819         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
820         * lib/unistd.in.h (getpagesize): Likewise.
821         * lib/wchar.in.h (mbstate_t): Likewise.
822         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
823         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
824         towlower, towupper): Likewise.
825         Reported by Sam Steingold <sds@gnu.org>.
826
827 2011-02-05  Eric Blake  <eblake@redhat.com>
828
829         unsetenv: work around Haiku issues
830         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
831         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
832
833 2010-12-30  Bruce Korb  <bkorb@gnu.org>
834
835         libposix: avoid calling error() within libposix
836         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
837         is defined.
838
839 2011-02-05  Eric Blake  <eblake@redhat.com>
840
841         strerror_r-posix: port to cygwin
842         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
843         implementation.
844         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
845         * tests/test-strerror_r.c (main): Fix test.
846         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
847         issue.
848
849 2011-02-05  Bruno Haible  <bruno@clisp.org>
850
851         New module 'wmemchr'.
852         * modules/wmemchr: New file.
853         * lib/wchar.in.h (wmemchr): New declaration.
854         * lib/wmemchr.c: New file.
855         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
856         * m4/wmemchr.m4: New file.
857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
859         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
860         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
861         * doc/posix-functions/wmemchr.texi: Mention the new module.
862
863 2011-02-04  Eric Blake  <eblake@redhat.com>
864
865         fdopendir: detect FreeBSD bug
866         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
867         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
868
869 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
870
871         stdbool: do not define HAVE_STDBOOL_H
872         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
873         AC_HEADER_STDBOOL.  All uses changed.  Do not define
874         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
875         imported from the latest Autoconf git.  It was motivated by Emacs,
876         which uses gnulib but does not need HAVE_STDBOOL_H.
877
878 2011-02-04  Bruno Haible  <bruno@clisp.org>
879
880         wcsnrtombs: Prepare for new module wwcsnrtombs.
881         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
882         * lib/wcsnrtombs.c: Include it.
883         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
884
885         wcsrtombs: Prepare for new module wwcsrtombs.
886         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
887         * lib/wcsrtombs.c: Include it.
888         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
889
890         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
891         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
892         * lib/mbsnrtowcs.c: Include it.
893         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
894
895         mbsrtowcs: Prepare for new module mbsrtowwcs.
896         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
897         * lib/mbsrtowcs.c: Include it.
898         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
899
900 2011-02-04  Bruno Haible  <bruno@clisp.org>
901
902         vasnprintf: Reduce use of malloc for small format strings.
903         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
904         (arguments): Add room for the first 7 arguments.
905         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
906         (char_directives, u8_directives, u16_directives, u32_directives): Add
907         room for the first 7 directives.
908         * lib/printf-parse.c: Include <string.h>.
909         (PRINTF_PARSE): Change memory handling code so that it uses the first
910         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
911         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
912         Reported by Pádraig Brady <P@draigbrady.com>.
913
914 2011-01-31  Eric Blake  <eblake@redhat.com>
915
916         dup2: work around Haiku bug
917         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
918         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
919         * doc/posix-functions/dup2.texi (dup2): Document the bug.
920         * tests/test-dup2.c (main): Enhance test.
921
922 2011-01-31  Simon Josefsson  <simon@josefsson.org>
923
924         doc: off_t is not available in eglibc 2.11.2 stdio.h.
925         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
926         declared by eglibc 2.11.2.
927         * lib/stdio.in.h: Likewise.
928
929 2011-01-31  Eric Blake  <eblake@redhat.com>
930
931         ignore-value: add missing test dependency
932         * tests/test-ignore-value.c: Revert previous change; stdio.h
933         provides off_t.
934         * modules/ignore-value-tests (Depends-on): Add missing dependency.
935
936 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
937
938         mktime: clarify long_int width checking
939         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
940         the top level, to make it clearer that the assumption about
941         long_int width is being checked.  See
942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
943
944 2011-01-30  Simon Josefsson  <simon@josefsson.org>
945
946         ignore-value: Fix self-test.
947         * tests/test-ignore-value.c: Include sys/types.h for off_t.
948
949 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
950
951         TYPE_MAXIMUM: avoid theoretically undefined behavior
952         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
953         negative number, which the C Standard says has undefined behavior.
954         In practice this is not a problem, but might as well do it by the book.
955         Reported by Rich Felker and Eric Blake; see
956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
957         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
958         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
960         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
961         * m4/stdint.m4 (gl_STDINT_H): Likewise.
962         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
963
964         mktime: #undef mktime before #defining it
965         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
966
967         mktime: systematically normalize tm_isdst comparisons
968         * lib/mktime.c (isdst_differ): New function.
969         (__mktime_internal): Use it systematically for all isdst comparisons.
970         This completes the fix for libc BZ #6723, and removes the need for
971         normalizing tm_isdst.  See
972         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
973         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
974
975         mktime: fix some integer overflow issues and sidestep the rest
976
977         This was prompted by a bug report by Benjamin Lindner for MinGW
978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
979         His bug is due to signed integer overflow (0 - INT_MIN), and I
980         I scanned through mktime.c looking for other integer overflow
981         problems, fixing all the bugs I found.
982
983         Although the C Standard says the resulting code is still not safe
984         in the presence of integer overflow, in practice it should be good
985         enough for all real-world two's-complement implementations, except
986         for debugging environments that deliberately trap on integer
987         overflow (e.g., gcc -ftrapv).
988
989         * lib/mktime.c (WRAPV): New macro.
990         (SHR): Also check that long_int and time_t shift right in the
991         usual way, before using the fast-but-unportable method.
992         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
993         used.  The code already assumed two's complement, so there's
994         no need to test for alternatives.  All uses removed.
995         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
996         the C standard.  Problem reported by Rich Felker in
997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
998         (twos_complement_arithmetic): Also check long_int and time_t.
999         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
1000         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
1001         (__mktime_internal): Avoid integer overflow with unary subtraction
1002         in two instances where -1 - X is an adequate replacement for -X,
1003         since the calculations are approximate.
1004
1005 2011-01-29  Eric Blake  <eblake@redhat.com>
1006
1007         mktime: avoid infinite loop
1008         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
1009         type; behavior is still undefined but portable to all known targets.
1010         Reported by Rich Felker.
1011
1012 2011-01-29  Simon Josefsson  <simon@josefsson.org>
1013
1014         rename, unlink, same-inode: Relicense.
1015         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
1016         * modules/unlink (License): Likewise.
1017         * modules/same-inode (License): Likewise.
1018
1019 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1020
1021         mktime: avoid problems on NetBSD 5 / i386
1022         * lib/mktime.c (long_int): New type.  This works around a problem
1023         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
1024         but time_t is 64 bits, and where I expect the existing code is
1025         wrong in some cases.
1026         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
1027         (ydhms_diff): Bring back the compile-time check for wide-enough
1028         year and yday.
1029
1030         mktime: fix misspelling in comment
1031         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
1032         This merges all recent glibc changes of importance.
1033
1034 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1035
1036         move-if-change: cope with concurrent mv of identical file.
1037         * build-aux/move-if-change (CMPPROG): Accept environment
1038         variable as an override for `cmp'.
1039         (usage): Document CMPPROG.
1040         Adjust comparison to drop stdout.  Cope with failure of mv if
1041         the target file exists and is identical to the source, for
1042         parallel builds.
1043         Report from H.J. Lu against binutils in PR binutils/12283.
1044
1045 2011-01-28  Bruce Korb  <bkorb@gnu.org>
1046
1047         * users.txt: Mention sharutils.
1048
1049 2011-01-28  Simon Josefsson  <simon@josefsson.org>
1050
1051         * users.txt: Mention OATH Toolkit.
1052
1053 2011-01-27  Bruno Haible  <bruno@clisp.org>
1054
1055         Prepare for supporting FreeBSD 10.
1056         * build-aux/config.libpath: Remove handling of freebsd1*.
1057
1058 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
1059
1060         Prepare for supporting FreeBSD 10.
1061         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
1062         match FreeBSD 10.0.
1063
1064 2011-01-27  Bruno Haible  <bruno@clisp.org>
1065
1066         vma-iter, get-rusage-as: Add OpenBSD support.
1067         * modules/vma-iter (configure.ac): Test for mquery.
1068         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
1069         * lib/vma-iter.c: Include <sys/mman.h>.
1070         (vma_iterate): Add an implementation based on mquery().
1071         * lib/resource-ext.h (get_rusage_as): Update comments.
1072         * lib/get-rusage-as.c: Likewise.
1073         * lib/get-rusage-data.c: Likewise.
1074
1075 2011-01-26  Karl Berry  <karl@gnu.org>
1076
1077         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
1078         variables to make it easier to override the makeinfo program used.
1079
1080 2011-01-26  Eric Blake  <eblake@redhat.com>
1081
1082         fcntl: work around Haiku F_DUPFD bugs
1083         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
1084         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
1085         cloexec bit on duplication.
1086         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
1087
1088 2011-01-26  Bruno Haible  <bruno@clisp.org>
1089
1090         Enable memory leak tests on AIX.
1091         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
1092         * tests/test-fprintf-posix3.c (main): Likewise.
1093
1094 2011-01-26  Bruno Haible  <bruno@clisp.org>
1095
1096         Tests for module 'get-rusage-data'.
1097         * modules/get-rusage-data-tests: New file.
1098         * tests/test-get-rusage-data.c: New file.
1099
1100         New module 'get-rusage-data'.
1101         * lib/resource-ext.h (get_rusage_data): New declaration.
1102         * lib/get-rusage-data.c: New file.
1103         * modules/get-rusage-data: New file.
1104
1105 2011-01-25  Bruno Haible  <bruno@clisp.org>
1106
1107         get-rusage-as: Allow for easier testing.
1108         * lib/resource-ext.h (get_rusage_as): Add comment.
1109         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
1110         (main): New function for interactive testing.
1111
1112 2011-01-25  Bruno Haible  <bruno@clisp.org>
1113
1114         vma-iter: Treat Haiku like BeOS.
1115         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
1116         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
1117
1118 2011-01-25  Eric Blake  <eblake@redhat.com>
1119
1120         c-stack: fix regression on cygwin when libsigsegv is present
1121         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
1122
1123 2011-01-24  Bruno Haible  <bruno@clisp.org>
1124
1125         vma-iter: Avoid empty intervals.
1126         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
1127         on an empty interval.
1128
1129 2011-01-24  Jim Meyering  <meyering@redhat.com>
1130
1131         u64: remove unnecessary #include
1132         * lib/u64.h: Don't include <stddef.h>.  It was not used.
1133
1134 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1135
1136         Allow the user to avoid the GNULIB_TEST_* macros.
1137         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
1138
1139 2011-01-23  Bruno Haible  <bruno@clisp.org>
1140
1141         New module 'vma-iter'.
1142         * lib/vma-iter.h: New file.
1143         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
1144         * modules/vma-iter: New file.
1145         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
1146         for get_rusage_as_via_iterator.
1147         (vma_iterate_callback): New function.
1148         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
1149         * modules/get-rusage-as (Depends-on): Add vma-iter.
1150
1151 2011-01-23  Bruno Haible  <bruno@clisp.org>
1152
1153         uninorm: Tweak includes.
1154         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
1155         Reported by Jim Meyering.
1156
1157 2011-01-23  Bruno Haible  <bruno@clisp.org>
1158
1159         get-rusage-as: Improve on NetBSD.
1160         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
1161         /proc, like on FreeBSD.
1162
1163 2011-01-23  Jim Meyering  <meyering@redhat.com>
1164
1165         xreadlink.h: remove unnecessary #include
1166         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
1167
1168         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
1169         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
1170
1171 2011-01-23  Bruno Haible  <bruno@clisp.org>
1172
1173         get-rusage-as: Fix bug.
1174         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
1175         original limit when aborting the first loop.
1176
1177 2011-01-23  Bruno Haible  <bruno@clisp.org>
1178
1179         wctype: Ensure valid C syntax.
1180         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
1181         unconditionally, instead of gl_NEXT_HEADERS conditionally.
1182
1183 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1184
1185         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
1186         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
1187         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
1188         as they are needed only for configure's test case.
1189         This removes two unnecessary symbols from config.h.
1190
1191         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
1192         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
1193         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
1194         AC_CHECK_HEADERS_ONCE on a header that we also invoke
1195         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
1196         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
1197         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
1198         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1199         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1200         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1201         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
1202         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1203         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1204         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1205         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1206         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1207         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1208         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1209
1210 2011-01-21  Eric Blake  <eblake@redhat.com>
1211
1212         maintainer-makefile: work with older git for submodule check
1213         * top/maint.mk (public-submodule-commit): Rewrite to avoid
1214         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
1215         Reported by Matthias Bolte.
1216
1217         bootstrap: minor portability fixes
1218         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
1219         (usage): Omit leading capital and trailing . on help phrases, per
1220         GNU Coding Standards.
1221         (check_versions, top level): Prefix messages with script name.
1222
1223 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
1224
1225         bootstrap: support --no-git option
1226         * build-aux/bootstrap: Add --no-git option, to be used when
1227         --gnulib-srcdir points to the exact desired checkout.
1228
1229 2011-01-21  Eric Blake  <eblake@redhat.com>
1230
1231         strerror_r-posix: work with glibc 2.13
1232         * lib/strerror_r.c (strerror_r): Fix return type.
1233
1234 2011-01-21  Pádraig Brady  <P@draigBrady.com>
1235             Bruno Haible  <bruno@clisp.org>
1236
1237         uN_strstr: New unit tests.
1238         * modules/unistr/u8-strstr-tests: New file.
1239         * modules/unistr/u16-strstr-tests: New file.
1240         * modules/unistr/u32-strstr-tests: New file.
1241         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
1242         * tests/unistr/test-u8-strstr.c: New file.
1243         * tests/unistr/test-u16-strstr.c: New file.
1244         * tests/unistr/test-u32-strstr.c: New file.
1245
1246 2011-01-21  Pádraig Brady  <P@draigBrady.com>
1247             Bruno Haible  <bruno@clisp.org>
1248
1249         Make uN_strstr functions O(n) worst-case.
1250         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
1251         16-bit and 32-bit unit cases, use the unibyte algorithm from
1252         lib/mbsstr.c.
1253         * lib/unistr/u8-strstr.c: Include <string.h>.
1254         (UNIT_IS_UINT8_T): New macro.
1255         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
1256         (U_STRLEN, U_STRNLEN): New macros.
1257         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
1258         (U_STRLEN, U_STRNLEN): New macros.
1259         * modules/unistr/u8-strstr (Depends-on): Add strstr.
1260         (configure.ac): Update required libunistring version.
1261         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
1262         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
1263         malloca.
1264         (configure.ac): Update required libunistring version.
1265         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
1266         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
1267         malloca.
1268         (configure.ac): Update required libunistring version.
1269
1270 2011-01-21  Pádraig Brady  <P@draigBrady.com>
1271             Bruno Haible  <bruno@clisp.org>
1272
1273         Prepare for faster uN_strstr functions.
1274         * lib/str-kmp.h: Support definable UNITs.
1275         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
1276         needle_len argument.
1277         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
1278         * lib/mbscasestr.c (mbscasestr): Likewise.
1279
1280 2011-01-21  Pádraig Brady <P@draigBrady.com>
1281
1282         malloca-tests: make faster by unsetting MALLOC_PERTURB_
1283         * tests/test-malloca.c (main): Unset the environment variable
1284         to greatly speed up the test.
1285         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
1286         * modules/malloca-tests: Depend on unsetenv.
1287
1288 2011-01-21  Pádraig Brady <P@draigBrady.com>
1289
1290         ignore-value: remove stdint dependency
1291         * lib/ignore-value.h: Remove <stdint.h>
1292         * modules/ignore-value: Remove stdint dependency.
1293
1294 2011-01-21  Jim Meyering  <meyering@redhat.com>
1295
1296         maint.mk: adjust variable name to be consistent with other gl_ vars
1297         * top/maint.mk (gl_public_submodule_commit): Rename the variable
1298         to be lower case.
1299
1300 2011-01-20  Jim Meyering  <meyering@redhat.com>
1301
1302         maint.mk: make "check" depend on public-submodule-commit by default
1303         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
1304
1305 2011-01-20  Bruno Haible  <bruno@clisp.org>
1306
1307         mbfile, mbiter: Complete change from 2008-12-21.
1308         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
1309         * m4/mbiter.m4 (gl_MBITER): Likewise.
1310
1311 2011-01-20  Jim Meyering  <meyering@redhat.com>
1312
1313         init.sh: insert space between each function name and "()"
1314         * tests/init.sh: Make it a little easier to see that a function's
1315         name is "warn_", and not "warn" when looking at the first part of
1316         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
1317
1318 2011-01-20  Jim Meyering  <meyering@redhat.com>
1319
1320         mountlist: clean up code formatting
1321         * lib/mountlist.c (read_file_system_list): Split a long line,
1322         correct bracing style, use NULL in place of "(struct statfs *)0",
1323         don't parenthesize return value, add spaces around "=" and after
1324         ";-in-for-stmt".
1325
1326 2011-01-14  Markus Duft <mduft@gentoo.org>
1327
1328         mountlist: add support for Interix
1329         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
1330         Apply statvfs to all entries of /dev/fs.
1331         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
1332         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
1333
1334 2011-01-20  Jim Meyering  <meyering@redhat.com>
1335
1336         maint.mk: improve the public-submodule-commit rule
1337         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
1338         to suppress printing of its commands... unless V=1.
1339         Add git submodule's --quiet option to suppress printing of e.g.,
1340         "Entering gnulib" output.
1341         "cd" into $(srcdir) before running git submodule.
1342
1343 2011-01-20  Bruno Haible  <bruno@clisp.org>
1344
1345         include_next: Fix bug introduced on 2011-01-18.
1346         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
1347         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
1348         ac_cv_header_... variable if the second argument is not 'check'.
1349         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
1350         gl_NEXT_HEADERS_INTERNAL.
1351
1352 2011-01-20  Bruno Haible  <bruno@clisp.org>
1353
1354         Allow the user to avoid the GNULIB_TEST_* macros.
1355         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
1356         Suggested by Paul Eggert.
1357
1358 2011-01-14  Jim Meyering  <meyering@redhat.com>
1359
1360         bootstrap: avoid failure when there is no .gitmodules file
1361         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
1362         has been assigned to, even when its value is the empty string.
1363         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
1364         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
1365         Reported by John W. Eaton <jwe@gnu.org>.
1366
1367 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
1368
1369         assume <ctype.h>, ..., <time.h> exist
1370         For years gnulib has been assuming the existence of the headers
1371         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
1372         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
1373         them, since they don't appear to be needed.
1374         * README (Portability guidelines): Document this.
1375         * lib/flock.c: Assume <fcntl.h> exists.
1376         * lib/regex_internal.h: Assume <locale.h> exists.
1377         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
1378         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
1379         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
1380         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
1381         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
1382         * m4/regex.m4 (gl_REGEX): Likewise.
1383         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
1384         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
1385         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
1386         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
1387         * tests/test-argp.c: Likewise.
1388         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
1389
1390         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
1391         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
1392         AA_APPLE_UNIVERSAL_BUILD.  See
1393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
1394         * NEWS: Document this.
1395
1396 2011-01-19  Eric Blake  <eblake@redhat.com>
1397
1398         c-stack: assume stack overflow if SA_SIGINFO unsupported
1399         * lib/c-stack.c (SIGACTION_WORKS): Rename...
1400         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
1401         sigaction will work.
1402         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
1403         behavior match Linux.
1404         * tests/test-c-stack.c (main): Prefer NULL for pointers.
1405
1406         stdbool-tests: accomodate Haiku
1407         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
1408
1409         binary-io: fix O_TEXT on Haiku
1410         * modules/binary-io (Depends-on): Add fcntl-h.
1411         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
1412         than blindly undefining O_TEXT.
1413         Reported by Scott McCreary.
1414
1415 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
1416
1417         include_next: do not check for standard headers like stddef.h
1418
1419         I found this problem when modifying Emacs to use gnulib.
1420         I noticed that it added HAVE_STDDEF_H to config.h, even though
1421         gnulib always assumes <stddef.h> exists as per README and this
1422         symbol is unnecessary.
1423         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
1424         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
1425         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
1426         faster for headers like stddef.h that are known to exist.
1427         (gl_CHECK_NEXT_HEADERS): Use it.
1428         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
1429         rather than gl_CHECK_NEXT_HEADERS.
1430         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
1431         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
1432
1433 2011-01-18  Eric Blake  <eblake@redhat.com>
1434
1435         ansi-c++-opt: skip C++ dependency style if C++ is unused
1436         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
1437         tests when we know C++ compilation is not desired.
1438         Reported by Scott McCreary.
1439
1440 2011-01-18  Bruno Haible  <bruno@clisp.org>
1441
1442         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
1443         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
1444         (main): Perform test also when getrlimit and setrlimit don't exist or
1445         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
1446         limiting the address space size using setrlimit, compare the address
1447         space size before and after the the test.
1448         * tests/test-dprintf-posix2.c: Likewise.
1449         * tests/test-fprintf-posix3.sh: Update skip messages.
1450         * tests/test-dprintf-posix2.sh: Likewise.
1451         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
1452         * modules/dprintf-posix-tests (Depends-on): Likewise.
1453         Reported by Bruce Korb <bkorb@gnu.org> and
1454         Gary V. Vaughan <gary@gnu.org>.
1455
1456 2011-01-18  Bruno Haible  <bruno@clisp.org>
1457
1458         get-rusage-as: Improvement for Cygwin.
1459         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
1460         areas that are merely reserved.
1461
1462 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
1463
1464         strftime: remove dependencies on multibyte modules
1465
1466         strftime depended on mbrlen, mbsinit, and wchar, but these modules
1467         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
1468         only if __osf__ is defined, and I suspect OSF doesn't need these
1469         other modules.  If my guess is wrong, we'll need to come up with a
1470         variant of strftime that doesn't need the multibyte modules.
1471
1472         I discovered this problem when attempting modify Emacs to use the
1473         strftime module.  With the previous gnulib, this caused Emacs to
1474         need 31 new files, ranging from lib/config.charset to
1475         m4/wint_t.m4.  This was overkill and I expect would be offputting
1476         to the Emacs maintainers.  After this change, only 6 new files are
1477         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
1478         stdbool.m4, and tm_gmtoff.m4.
1479
1480         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
1481         Suggested by Bruno Haible in
1482         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
1483         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
1484         and do not check for wchar.h.
1485         * modules/strftime (Files): Remove m4/mbstate_t.m4.
1486         (Depends-on): Remove mbrlen, mbsinit, wchar.
1487
1488 2011-01-18  Bruno Haible  <bruno@clisp.org>
1489
1490         Tests for module 'get-rusage-as'.
1491         * modules/get-rusage-as-tests: New file.
1492         * tests/test-get-rusage-as.c: New file.
1493
1494         New module 'get-rusage-as'.
1495         * modules/get-rusage-as: New file.
1496         * lib/resource-ext.h: New file.
1497         * lib/get-rusage-as.c: New file.
1498
1499 2011-01-17  Eric Blake  <eblake@redhat.com>
1500
1501         sigaction: relax license from LGPLv3+ to LGPLv2+
1502         * modules/sigaction (License): Relax to LGPLv2+.
1503
1504 2011-01-14  Bruno Haible  <bruno@clisp.org>
1505
1506         filemode: Make function declarations usable in C++ mode.
1507         * lib/filemode.h: Enclose function declarations in extern "C" block.
1508         Reported by John W. Eaton <jwe@gnu.org>.
1509
1510 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
1511
1512         save-cwd: no longer include "xgetcwd.h"
1513         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
1514         This avoids a compilation failure in projects that use save-cwd
1515         without also using the xgetcwd module.
1516
1517 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
1518
1519         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
1520         This is so that a program like Emacs, which needs only dtoastr,
1521         does not have to bother with distributing and compiling ftoastr
1522         and ldtoastr.
1523         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
1524         * modules/dtoastr, modules/ldtoastr: New files.
1525         * modules/ftoastr: Now works just for 'float'.
1526         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
1527         (Makefile.am): Remove ftoastr.h (not needed and no effect),
1528         dtoastr.c, ldtoastr.c.
1529
1530 2011-01-11  Jim Meyering  <meyering@redhat.com>
1531
1532         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
1533         There is no need to work around the lack of the fchdir function,
1534         since gnulib can now provide a replacement when required.
1535         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
1536         * modules/save-cwd (Depends-on): Add fchdir.
1537
1538 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
1539
1540         openat, save-cwd: avoid xmalloc
1541
1542         This removes a direct (but undocumented) dependency of openat on
1543         xalloc, along with an indirect dependency via save-cwd.  It also
1544         removes a dependency of save-cwd on xgetcwd, and thereby
1545         indirectly on xalloc.  This change causes the openat substitute
1546         to fall back on save_cwd when memory is tight, and for save_cwd to
1547         fail instead of dying when memory is tight, but that's good enough.
1548         Problem and initial idea for fix reported by Bastien Roucaries in
1549         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
1550
1551         * lib/openat-proc.c: Include stdlib.h (for malloc), not
1552         xalloc.h (for xmalloc).
1553         (openat_proc_name): Use malloc, not xmalloc.
1554         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
1555         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
1556
1557         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
1558         This avoids heap allocation for file names whose lengths are in
1559         the range 512..1023, with the upper bound increasing to at most
1560         4031 depending on the platform's PATH_MAX.  (We do not want
1561         pathmax.h here as it might supply a non-constant PATH_MAX.)
1562         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
1563         Perhaps they should be moved to malloca.h?
1564         (OPENAT_BUFFER_SIZE): Use them.
1565
1566 2011-01-10  Bruno Haible  <bruno@clisp.org>
1567
1568         doc: Update users.txt.
1569         * users.txt: Add recutils.
1570
1571 2011-01-09  Karl Berry  <karl@gnu.org>
1572
1573         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
1574
1575         * doc/configmake.texi: New file.
1576         * doc/gnulib.texi: Include it.
1577         * modules/configmake: Move documentation from here.
1578
1579 2011-01-09  Bruno Haible  <bruno@clisp.org>
1580
1581         Update to Unicode 6.0.0.
1582         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
1583         (get_lbp): Update for Unicode 6.0.0.
1584         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
1585         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
1586         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
1587         U+11001, U+11038..U+11046. Remove U+06DE.
1588         (uc_width): Fix bounds of planes.
1589         * tests/uniwidth/test-uc_width2.sh: Same updates as in
1590         lib/uniwidth/width.c.
1591         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
1592         trailing whitespace removed.
1593         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
1594         without comments, but with the original copyright notice.
1595         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
1596         * lib/unicase/ignorable.h: Likewise.
1597         * lib/unicase/tocasefold.h: Likewise.
1598         * lib/unicase/tolower.h: Likewise.
1599         * lib/unicase/totitle.h: Likewise.
1600         * lib/unicase/toupper.h: Likewise.
1601         * lib/unictype/bidi_of.h: Likewise.
1602         * lib/unictype/blocks.h: Likewise.
1603         * lib/unictype/categ_C.h: Likewise.
1604         * lib/unictype/categ_Cn.h: Likewise.
1605         * lib/unictype/categ_L.h: Likewise.
1606         * lib/unictype/categ_Ll.h: Likewise.
1607         * lib/unictype/categ_Lm.h: Likewise.
1608         * lib/unictype/categ_Lo.h: Likewise.
1609         * lib/unictype/categ_Lu.h: Likewise.
1610         * lib/unictype/categ_M.h: Likewise.
1611         * lib/unictype/categ_Mc.h: Likewise.
1612         * lib/unictype/categ_Me.h: Likewise.
1613         * lib/unictype/categ_Mn.h: Likewise.
1614         * lib/unictype/categ_N.h: Likewise.
1615         * lib/unictype/categ_Nd.h: Likewise.
1616         * lib/unictype/categ_No.h: Likewise.
1617         * lib/unictype/categ_P.h: Likewise.
1618         * lib/unictype/categ_Po.h: Likewise.
1619         * lib/unictype/categ_S.h: Likewise.
1620         * lib/unictype/categ_Sc.h: Likewise.
1621         * lib/unictype/categ_Sk.h: Likewise.
1622         * lib/unictype/categ_Sm.h: Likewise.
1623         * lib/unictype/categ_So.h: Likewise.
1624         * lib/unictype/categ_of.h: Likewise.
1625         * lib/unictype/combining.h: Likewise.
1626         * lib/unictype/ctype_alnum.h: Likewise.
1627         * lib/unictype/ctype_alpha.h: Likewise.
1628         * lib/unictype/ctype_graph.h: Likewise.
1629         * lib/unictype/ctype_lower.h: Likewise.
1630         * lib/unictype/ctype_print.h: Likewise.
1631         * lib/unictype/ctype_punct.h: Likewise.
1632         * lib/unictype/ctype_upper.h: Likewise.
1633         * lib/unictype/decdigit.h: Likewise.
1634         * lib/unictype/digit.h: Likewise.
1635         * lib/unictype/numeric.h: Likewise.
1636         * lib/unictype/pr_alphabetic.h: Likewise.
1637         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1638         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1639         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1640         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1641         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1642         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1643         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1644         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1645         * lib/unictype/pr_case_ignorable.h: Likewise.
1646         * lib/unictype/pr_cased.h: Likewise.
1647         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
1648         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
1649         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
1650         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
1651         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
1652         * lib/unictype/pr_combining.h: Likewise.
1653         * lib/unictype/pr_composite.h: Likewise.
1654         * lib/unictype/pr_currency_symbol.h: Likewise.
1655         * lib/unictype/pr_decimal_digit.h: Likewise.
1656         * lib/unictype/pr_deprecated.h: Likewise.
1657         * lib/unictype/pr_format_control.h: Likewise.
1658         * lib/unictype/pr_grapheme_base.h: Likewise.
1659         * lib/unictype/pr_grapheme_extend.h: Likewise.
1660         * lib/unictype/pr_grapheme_link.h: Likewise.
1661         * lib/unictype/pr_id_continue.h: Likewise.
1662         * lib/unictype/pr_id_start.h: Likewise.
1663         * lib/unictype/pr_ideographic.h: Likewise.
1664         * lib/unictype/pr_lowercase.h: Likewise.
1665         * lib/unictype/pr_math.h: Likewise.
1666         * lib/unictype/pr_numeric.h: Likewise.
1667         * lib/unictype/pr_other_alphabetic.h: Likewise.
1668         * lib/unictype/pr_other_id_continue.h: Likewise.
1669         * lib/unictype/pr_other_math.h: Likewise.
1670         * lib/unictype/pr_punctuation.h: Likewise.
1671         * lib/unictype/pr_sentence_terminal.h: Likewise.
1672         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1673         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1674         * lib/unictype/pr_unified_ideograph.h: Likewise.
1675         * lib/unictype/pr_uppercase.h: Likewise.
1676         * lib/unictype/pr_xid_continue.h: Likewise.
1677         * lib/unictype/pr_xid_start.h: Likewise.
1678         * lib/unictype/scripts.h: Likewise.
1679         * lib/unictype/scripts_byname.gperf: Likewise.
1680         * lib/unictype/sy_java_ident.h: Likewise.
1681         * lib/unigbrk/gbrkprop.h: Likewise.
1682         * lib/unilbrk/lbrkprop1.h: Likewise.
1683         * lib/unilbrk/lbrkprop2.h: Likewise.
1684         * lib/uninorm/decomposition-table2.h: Likewise.
1685         * lib/uniwbrk/wbrkprop.h: Likewise.
1686         * tests/unicase/test-cased.c: Likewise.
1687         * tests/unicase/test-ignorable.c: Likewise.
1688         * tests/unicase/test-uc_tolower.c: Likewise.
1689         * tests/unicase/test-uc_totitle.c: Likewise.
1690         * tests/unicase/test-uc_toupper.c: Likewise.
1691         * tests/unictype/test-categ_C.c: Likewise.
1692         * tests/unictype/test-categ_Cn.c: Likewise.
1693         * tests/unictype/test-categ_L.c: Likewise.
1694         * tests/unictype/test-categ_Ll.c: Likewise.
1695         * tests/unictype/test-categ_Lm.c: Likewise.
1696         * tests/unictype/test-categ_Lo.c: Likewise.
1697         * tests/unictype/test-categ_Lu.c: Likewise.
1698         * tests/unictype/test-categ_M.c: Likewise.
1699         * tests/unictype/test-categ_Mc.c: Likewise.
1700         * tests/unictype/test-categ_Me.c: Likewise.
1701         * tests/unictype/test-categ_Mn.c: Likewise.
1702         * tests/unictype/test-categ_N.c: Likewise.
1703         * tests/unictype/test-categ_Nd.c: Likewise.
1704         * tests/unictype/test-categ_No.c: Likewise.
1705         * tests/unictype/test-categ_P.c: Likewise.
1706         * tests/unictype/test-categ_Po.c: Likewise.
1707         * tests/unictype/test-categ_S.c: Likewise.
1708         * tests/unictype/test-categ_Sc.c: Likewise.
1709         * tests/unictype/test-categ_Sk.c: Likewise.
1710         * tests/unictype/test-categ_Sm.c: Likewise.
1711         * tests/unictype/test-categ_So.c: Likewise.
1712         * tests/unictype/test-ctype_alnum.c: Likewise.
1713         * tests/unictype/test-ctype_alpha.c: Likewise.
1714         * tests/unictype/test-ctype_graph.c: Likewise.
1715         * tests/unictype/test-ctype_lower.c: Likewise.
1716         * tests/unictype/test-ctype_print.c: Likewise.
1717         * tests/unictype/test-ctype_punct.c: Likewise.
1718         * tests/unictype/test-ctype_upper.c: Likewise.
1719         * tests/unictype/test-decdigit.h: Likewise.
1720         * tests/unictype/test-digit.h: Likewise.
1721         * tests/unictype/test-numeric.h: Likewise.
1722         * tests/unictype/test-pr_alphabetic.c: Likewise.
1723         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
1724         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
1725         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
1726         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
1727         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
1728         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
1729         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
1730         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
1731         * tests/unictype/test-pr_case_ignorable.c: Likewise.
1732         * tests/unictype/test-pr_cased.c: Likewise.
1733         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
1734         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
1735         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
1736         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
1737         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
1738         * tests/unictype/test-pr_combining.c: Likewise.
1739         * tests/unictype/test-pr_composite.c: Likewise.
1740         * tests/unictype/test-pr_currency_symbol.c: Likewise.
1741         * tests/unictype/test-pr_decimal_digit.c: Likewise.
1742         * tests/unictype/test-pr_deprecated.c: Likewise.
1743         * tests/unictype/test-pr_format_control.c: Likewise.
1744         * tests/unictype/test-pr_grapheme_base.c: Likewise.
1745         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
1746         * tests/unictype/test-pr_grapheme_link.c: Likewise.
1747         * tests/unictype/test-pr_id_continue.c: Likewise.
1748         * tests/unictype/test-pr_id_start.c: Likewise.
1749         * tests/unictype/test-pr_ideographic.c: Likewise.
1750         * tests/unictype/test-pr_lowercase.c: Likewise.
1751         * tests/unictype/test-pr_math.c: Likewise.
1752         * tests/unictype/test-pr_numeric.c: Likewise.
1753         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
1754         * tests/unictype/test-pr_other_id_continue.c: Likewise.
1755         * tests/unictype/test-pr_other_math.c: Likewise.
1756         * tests/unictype/test-pr_punctuation.c: Likewise.
1757         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
1758         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
1759         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
1760         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
1761         * tests/unictype/test-pr_uppercase.c: Likewise.
1762         * tests/unictype/test-pr_xid_continue.c: Likewise.
1763         * tests/unictype/test-pr_xid_start.c: Likewise.
1764         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
1765         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
1766         changes.
1767         * lib/unictype/categ_Cc.h: Likewise.
1768         * lib/unictype/categ_Cf.h: Likewise.
1769         * lib/unictype/categ_Co.h: Likewise.
1770         * lib/unictype/categ_Cs.h: Likewise.
1771         * lib/unictype/categ_Lt.h: Likewise.
1772         * lib/unictype/categ_Nl.h: Likewise.
1773         * lib/unictype/categ_Pc.h: Likewise.
1774         * lib/unictype/categ_Pd.h: Likewise.
1775         * lib/unictype/categ_Pe.h: Likewise.
1776         * lib/unictype/categ_Pf.h: Likewise.
1777         * lib/unictype/categ_Pi.h: Likewise.
1778         * lib/unictype/categ_Ps.h: Likewise.
1779         * lib/unictype/categ_Z.h: Likewise.
1780         * lib/unictype/categ_Zl.h: Likewise.
1781         * lib/unictype/categ_Zp.h: Likewise.
1782         * lib/unictype/categ_Zs.h: Likewise.
1783         * lib/unictype/ctype_blank.h: Likewise.
1784         * lib/unictype/ctype_cntrl.h: Likewise.
1785         * lib/unictype/ctype_digit.h: Likewise.
1786         * lib/unictype/ctype_space.h: Likewise.
1787         * lib/unictype/ctype_xdigit.h: Likewise.
1788         * lib/unictype/mirror.h: Likewise.
1789         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1790         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1791         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1792         * lib/unictype/pr_bidi_control.h: Likewise.
1793         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1794         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1795         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1796         * lib/unictype/pr_bidi_pdf.h: Likewise.
1797         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1798         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1799         * lib/unictype/pr_dash.h: Likewise.
1800         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1801         * lib/unictype/pr_diacritic.h: Likewise.
1802         * lib/unictype/pr_extender.h: Likewise.
1803         * lib/unictype/pr_hex_digit.h: Likewise.
1804         * lib/unictype/pr_hyphen.h: Likewise.
1805         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1806         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1807         * lib/unictype/pr_ignorable_control.h: Likewise.
1808         * lib/unictype/pr_iso_control.h: Likewise.
1809         * lib/unictype/pr_join_control.h: Likewise.
1810         * lib/unictype/pr_left_of_pair.h: Likewise.
1811         * lib/unictype/pr_line_separator.h: Likewise.
1812         * lib/unictype/pr_logical_order_exception.h: Likewise.
1813         * lib/unictype/pr_non_break.h: Likewise.
1814         * lib/unictype/pr_not_a_character.h: Likewise.
1815         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1816         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1817         * lib/unictype/pr_other_id_start.h: Likewise.
1818         * lib/unictype/pr_other_lowercase.h: Likewise.
1819         * lib/unictype/pr_other_uppercase.h: Likewise.
1820         * lib/unictype/pr_paired_punctuation.h: Likewise.
1821         * lib/unictype/pr_paragraph_separator.h: Likewise.
1822         * lib/unictype/pr_pattern_syntax.h: Likewise.
1823         * lib/unictype/pr_pattern_white_space.h: Likewise.
1824         * lib/unictype/pr_private_use.h: Likewise.
1825         * lib/unictype/pr_quotation_mark.h: Likewise.
1826         * lib/unictype/pr_radical.h: Likewise.
1827         * lib/unictype/pr_soft_dotted.h: Likewise.
1828         * lib/unictype/pr_space.h: Likewise.
1829         * lib/unictype/pr_titlecase.h: Likewise.
1830         * lib/unictype/pr_variation_selector.h: Likewise.
1831         * lib/unictype/pr_white_space.h: Likewise.
1832         * lib/unictype/pr_zero_width.h: Likewise.
1833         * lib/unictype/sy_c_ident.h: Likewise.
1834         * lib/unictype/sy_c_whitespace.h: Likewise.
1835         * lib/unictype/sy_java_whitespace.h: Likewise.
1836         * lib/uninorm/composition-table.gperf: Likewise.
1837         * lib/uninorm/decomposition-table1.h: Likewise.
1838         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
1839         LB8.
1840         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
1841         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
1842         * modules/unictype/*: Bump version number of expected libunistring
1843         version.
1844
1845 2011-01-09  Bruno Haible  <bruno@clisp.org>
1846
1847         Update to Unicode 5.2.0.
1848         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
1849         trailing whitespace removed.
1850
1851 2011-01-09  Bruno Haible  <bruno@clisp.org>
1852
1853         New Unicode character properties, from Unicode 5.2.0.
1854         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
1855         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
1856         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
1857         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
1858         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
1859         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
1860         uc_is_property_cased, uc_is_property_case_ignorable,
1861         uc_is_property_changes_when_lowercased,
1862         uc_is_property_changes_when_uppercased,
1863         uc_is_property_changes_when_titlecased,
1864         uc_is_property_changes_when_casefolded,
1865         uc_is_property_changes_when_casemapped): New declarations.
1866         * lib/unictype/pr_byname.gperf: Add the new properties.
1867         * modules/unictype/property-byname (Depends-on): Depend on the new
1868         properties modules.
1869         * modules/unictype/property-all (Depends-on): Likewise.
1870         * MODULES.html.sh (Unicode string functions): Add
1871         unictype/property-case-ignorable, unictype/property-cased,
1872         unictype/property-changes-when-casefolded,
1873         unictype/property-changes-when-casemapped,
1874         unictype/property-changes-when-lowercased,
1875         unictype/property-changes-when-titlecased,
1876         unictype/property-changes-when-uppercased.
1877
1878         New module 'unictype/property-changes-when-casemapped'.
1879         * modules/unictype/property-changes-when-casemapped: New file.
1880         * lib/unictype/pr_changes_when_casemapped.c: New file.
1881         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
1882         generated by gen-uni-tables.
1883         * modules/unictype/property-changes-when-casemapped-tests: New file.
1884         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
1885         automatically generated by gen-uni-tables.
1886
1887         New module 'unictype/property-changes-when-casefolded'.
1888         * modules/unictype/property-changes-when-casefolded: New file.
1889         * lib/unictype/pr_changes_when_casefolded.c: New file.
1890         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
1891         generated by gen-uni-tables.
1892         * modules/unictype/property-changes-when-casefolded-tests: New file.
1893         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
1894         automatically generated by gen-uni-tables.
1895
1896         New module 'unictype/property-changes-when-titlecased'.
1897         * modules/unictype/property-changes-when-titlecased: New file.
1898         * lib/unictype/pr_changes_when_titlecased.c: New file.
1899         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
1900         generated by gen-uni-tables.
1901         * modules/unictype/property-changes-when-titlecased-tests: New file.
1902         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
1903         automatically generated by gen-uni-tables.
1904
1905         New module 'unictype/property-changes-when-uppercased'.
1906         * modules/unictype/property-changes-when-uppercased: New file.
1907         * lib/unictype/pr_changes_when_uppercased.c: New file.
1908         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
1909         generated by gen-uni-tables.
1910         * modules/unictype/property-changes-when-uppercased-tests: New file.
1911         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
1912         automatically generated by gen-uni-tables.
1913
1914         New module 'unictype/property-changes-when-lowercased'.
1915         * modules/unictype/property-changes-when-lowercased: New file.
1916         * lib/unictype/pr_changes_when_lowercased.c: New file.
1917         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
1918         generated by gen-uni-tables.
1919         * modules/unictype/property-changes-when-lowercased-tests: New file.
1920         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
1921         automatically generated by gen-uni-tables.
1922
1923         New module 'unictype/property-case-ignorable'.
1924         * modules/unictype/property-case-ignorable: New file.
1925         * lib/unictype/pr_case_ignorable.c: New file.
1926         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
1927         by gen-uni-tables.
1928         * modules/unictype/property-case-ignorable-tests: New file.
1929         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
1930         generated by gen-uni-tables.
1931
1932         New module 'unictype/property-cased'.
1933         * modules/unictype/property-cased: New file.
1934         * lib/unictype/pr_cased.c: New file.
1935         * lib/unictype/pr_cased.h: New file, automatically generated by
1936         gen-uni-tables.
1937         * modules/unictype/property-cased-tests: New file.
1938         * tests/unictype/test-pr_cased.c: New file, automatically generated by
1939         gen-uni-tables.
1940
1941 2011-01-09  Bruno Haible  <bruno@clisp.org>
1942
1943         Update to Unicode 5.2.0.
1944         * lib/gen-uni-tables.c (output_predicate, output_category,
1945         output_combclass, output_bidi_category, output_decimal_digit_test,
1946         output_decimal_digit, output_digit_test, output_digit,
1947         output_numeric_test, output_numeric, output_mirror, output_scripts,
1948         output_scripts_byname, output_blocks, output_ident_category): Fix
1949         comment header.
1950         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
1951         get_wbp.
1952         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
1953         items.
1954         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
1955         Changes_When_Lowercased, Changes_When_Uppercased,
1956         Changes_When_Titlecased, Changes_When_Casefolded,
1957         Changes_When_Casemapped.
1958         (is_property_alphabetic, is_property_default_ignorable_code_point):
1959         Update for Unicode 5.2.0.
1960         (is_property_cased, is_property_case_ignorable,
1961         is_property_changes_when_lowercased,
1962         is_property_changes_when_uppercased,
1963         is_property_changes_when_titlecased,
1964         is_property_changes_when_casefolded,
1965         is_property_changes_when_casemapped): New functions.
1966         (output_properties): Output also the properties cased, case_ignorable,
1967         changes_when_lowercased, changes_when_uppercased,
1968         changes_when_titlecased, changes_when_casefolded,
1969         changes_when_casemapped.
1970         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
1971         Unicode TR#11 revision 17 -> 19.
1972         (LBP_CP): New enumeration value.
1973         (LBP_*): Adjust values accordingly.
1974         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1975         TR#14 revision 22 -> 24.
1976         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
1977         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
1978         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
1979         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
1980         is_WBP_MIDLETTER.
1981         (output_composition_tables): Allow for 24 bits instead of 16 bits in
1982         the code1 and code2 of each composition rule.
1983         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
1984         * lib/unicase/ignorable.h: Likewise.
1985         * lib/unicase/tocasefold.h: Likewise.
1986         * lib/unicase/tolower.h: Likewise.
1987         * lib/unicase/totitle.h: Likewise.
1988         * lib/unicase/toupper.h: Likewise.
1989         * lib/unictype/bidi_of.h: Likewise.
1990         * lib/unictype/blocks.h: Likewise.
1991         * lib/unictype/categ_C.h: Likewise.
1992         * lib/unictype/categ_Cf.h: Likewise.
1993         * lib/unictype/categ_Cn.h: Likewise.
1994         * lib/unictype/categ_L.h: Likewise.
1995         * lib/unictype/categ_Ll.h: Likewise.
1996         * lib/unictype/categ_Lm.h: Likewise.
1997         * lib/unictype/categ_Lo.h: Likewise.
1998         * lib/unictype/categ_Lu.h: Likewise.
1999         * lib/unictype/categ_M.h: Likewise.
2000         * lib/unictype/categ_Mc.h: Likewise.
2001         * lib/unictype/categ_Mn.h: Likewise.
2002         * lib/unictype/categ_N.h: Likewise.
2003         * lib/unictype/categ_Nd.h: Likewise.
2004         * lib/unictype/categ_Nl.h: Likewise.
2005         * lib/unictype/categ_No.h: Likewise.
2006         * lib/unictype/categ_P.h: Likewise.
2007         * lib/unictype/categ_Pd.h: Likewise.
2008         * lib/unictype/categ_Po.h: Likewise.
2009         * lib/unictype/categ_S.h: Likewise.
2010         * lib/unictype/categ_Sc.h: Likewise.
2011         * lib/unictype/categ_So.h: Likewise.
2012         * lib/unictype/categ_of.h: Likewise.
2013         * lib/unictype/combining.h: Likewise.
2014         * lib/unictype/ctype_alnum.h: Likewise.
2015         * lib/unictype/ctype_alpha.h: Likewise.
2016         * lib/unictype/ctype_graph.h: Likewise.
2017         * lib/unictype/ctype_lower.h: Likewise.
2018         * lib/unictype/ctype_print.h: Likewise.
2019         * lib/unictype/ctype_punct.h: Likewise.
2020         * lib/unictype/ctype_upper.h: Likewise.
2021         * lib/unictype/decdigit.h: Likewise.
2022         * lib/unictype/digit.h: Likewise.
2023         * lib/unictype/numeric.h: Likewise.
2024         * lib/unictype/pr_alphabetic.h: Likewise.
2025         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
2026         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
2027         * lib/unictype/pr_bidi_european_digit.h: Likewise.
2028         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
2029         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
2030         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
2031         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
2032         * lib/unictype/pr_combining.h: Likewise.
2033         * lib/unictype/pr_composite.h: Likewise.
2034         * lib/unictype/pr_currency_symbol.h: Likewise.
2035         * lib/unictype/pr_dash.h: Likewise.
2036         * lib/unictype/pr_decimal_digit.h: Likewise.
2037         * lib/unictype/pr_deprecated.h: Likewise.
2038         * lib/unictype/pr_diacritic.h: Likewise.
2039         * lib/unictype/pr_extender.h: Likewise.
2040         * lib/unictype/pr_grapheme_base.h: Likewise.
2041         * lib/unictype/pr_grapheme_extend.h: Likewise.
2042         * lib/unictype/pr_grapheme_link.h: Likewise.
2043         * lib/unictype/pr_id_continue.h: Likewise.
2044         * lib/unictype/pr_id_start.h: Likewise.
2045         * lib/unictype/pr_ideographic.h: Likewise.
2046         * lib/unictype/pr_ignorable_control.h: Likewise.
2047         * lib/unictype/pr_logical_order_exception.h: Likewise.
2048         * lib/unictype/pr_lowercase.h: Likewise.
2049         * lib/unictype/pr_numeric.h: Likewise.
2050         * lib/unictype/pr_other_alphabetic.h: Likewise.
2051         * lib/unictype/pr_punctuation.h: Likewise.
2052         * lib/unictype/pr_sentence_terminal.h: Likewise.
2053         * lib/unictype/pr_terminal_punctuation.h: Likewise.
2054         * lib/unictype/pr_unassigned_code_value.h: Likewise.
2055         * lib/unictype/pr_unified_ideograph.h: Likewise.
2056         * lib/unictype/pr_uppercase.h: Likewise.
2057         * lib/unictype/pr_xid_continue.h: Likewise.
2058         * lib/unictype/pr_xid_start.h: Likewise.
2059         * lib/unictype/pr_zero_width.h: Likewise.
2060         * lib/unictype/scripts.h: Likewise.
2061         * lib/unictype/scripts_byname.gperf: Likewise.
2062         * lib/unictype/sy_java_ident.h: Likewise.
2063         * lib/unigbrk/gbrkprop.h: Likewise.
2064         * lib/unilbrk/lbrkprop1.h: Likewise.
2065         * lib/unilbrk/lbrkprop2.h: Likewise.
2066         * lib/unilbrk/lbrktables.h: Likewise.
2067         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
2068         LBP_CP. Implement rule LB30.
2069         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
2070         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
2071         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
2072         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
2073         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
2074         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
2075         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
2076         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
2077         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
2078         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
2079         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
2080         bits instead of 16 bits in the code1 and code2 of each composition
2081         rule.
2082         (uc_composition): Update for Unicode 5.2.0.
2083         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
2084         * lib/uninorm/decomposition-table2.h: Likewise.
2085         * lib/uniwbrk/wbrkprop.h: Likewise.
2086         * tests/unicase/test-cased.c: Likewise.
2087         * tests/unicase/test-ignorable.c: Likewise.
2088         * tests/unicase/test-uc_tolower.c: Likewise.
2089         * tests/unicase/test-uc_totitle.c: Likewise.
2090         * tests/unicase/test-uc_toupper.c: Likewise.
2091         * tests/unictype/test-categ_C.c: Likewise.
2092         * tests/unictype/test-categ_Cf.c: Likewise.
2093         * tests/unictype/test-categ_Cn.c: Likewise.
2094         * tests/unictype/test-categ_L.c: Likewise.
2095         * tests/unictype/test-categ_Ll.c: Likewise.
2096         * tests/unictype/test-categ_Lm.c: Likewise.
2097         * tests/unictype/test-categ_Lo.c: Likewise.
2098         * tests/unictype/test-categ_Lu.c: Likewise.
2099         * tests/unictype/test-categ_M.c: Likewise.
2100         * tests/unictype/test-categ_Mc.c: Likewise.
2101         * tests/unictype/test-categ_Mn.c: Likewise.
2102         * tests/unictype/test-categ_N.c: Likewise.
2103         * tests/unictype/test-categ_Nd.c: Likewise.
2104         * tests/unictype/test-categ_Nl.c: Likewise.
2105         * tests/unictype/test-categ_No.c: Likewise.
2106         * tests/unictype/test-categ_P.c: Likewise.
2107         * tests/unictype/test-categ_Pd.c: Likewise.
2108         * tests/unictype/test-categ_Po.c: Likewise.
2109         * tests/unictype/test-categ_S.c: Likewise.
2110         * tests/unictype/test-categ_Sc.c: Likewise.
2111         * tests/unictype/test-categ_So.c: Likewise.
2112         * tests/unictype/test-ctype_alnum.c: Likewise.
2113         * tests/unictype/test-ctype_alpha.c: Likewise.
2114         * tests/unictype/test-ctype_graph.c: Likewise.
2115         * tests/unictype/test-ctype_lower.c: Likewise.
2116         * tests/unictype/test-ctype_print.c: Likewise.
2117         * tests/unictype/test-ctype_punct.c: Likewise.
2118         * tests/unictype/test-ctype_upper.c: Likewise.
2119         * tests/unictype/test-decdigit.h: Likewise.
2120         * tests/unictype/test-digit.h: Likewise.
2121         * tests/unictype/test-numeric.h: Likewise.
2122         * tests/unictype/test-pr_alphabetic.c: Likewise.
2123         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
2124         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
2125         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
2126         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
2127         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
2128         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
2129         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
2130         * tests/unictype/test-pr_combining.c: Likewise.
2131         * tests/unictype/test-pr_composite.c: Likewise.
2132         * tests/unictype/test-pr_currency_symbol.c: Likewise.
2133         * tests/unictype/test-pr_dash.c: Likewise.
2134         * tests/unictype/test-pr_decimal_digit.c: Likewise.
2135         * tests/unictype/test-pr_deprecated.c: Likewise.
2136         * tests/unictype/test-pr_diacritic.c: Likewise.
2137         * tests/unictype/test-pr_extender.c: Likewise.
2138         * tests/unictype/test-pr_grapheme_base.c: Likewise.
2139         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
2140         * tests/unictype/test-pr_grapheme_link.c: Likewise.
2141         * tests/unictype/test-pr_id_continue.c: Likewise.
2142         * tests/unictype/test-pr_id_start.c: Likewise.
2143         * tests/unictype/test-pr_ideographic.c: Likewise.
2144         * tests/unictype/test-pr_ignorable_control.c: Likewise.
2145         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
2146         * tests/unictype/test-pr_lowercase.c: Likewise.
2147         * tests/unictype/test-pr_numeric.c: Likewise.
2148         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
2149         * tests/unictype/test-pr_punctuation.c: Likewise.
2150         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
2151         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
2152         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
2153         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
2154         * tests/unictype/test-pr_uppercase.c: Likewise.
2155         * tests/unictype/test-pr_xid_continue.c: Likewise.
2156         * tests/unictype/test-pr_xid_start.c: Likewise.
2157         * tests/unictype/test-pr_zero_width.c: Likewise.
2158         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
2159         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
2160         changed behaviour: line breaking is now disallowed between a letter
2161         or '=' and '('.
2162         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2163         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2164         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2165         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
2166         * tests/uniwidth/test-uc_width2.sh: Same updates as in
2167         lib/uniwidth/width.c.
2168         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
2169         without comments, but with the original copyright notice.
2170         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
2171         changes.
2172         * lib/unictype/categ_Cc.h: Likewise.
2173         * lib/unictype/categ_Co.h: Likewise.
2174         * lib/unictype/categ_Cs.h: Likewise.
2175         * lib/unictype/categ_Lt.h: Likewise.
2176         * lib/unictype/categ_Me.h: Likewise.
2177         * lib/unictype/categ_Pc.h: Likewise.
2178         * lib/unictype/categ_Pe.h: Likewise.
2179         * lib/unictype/categ_Pf.h: Likewise.
2180         * lib/unictype/categ_Pi.h: Likewise.
2181         * lib/unictype/categ_Ps.h: Likewise.
2182         * lib/unictype/categ_Sk.h: Likewise.
2183         * lib/unictype/categ_Sm.h: Likewise.
2184         * lib/unictype/categ_Z.h: Likewise.
2185         * lib/unictype/categ_Zl.h: Likewise.
2186         * lib/unictype/categ_Zp.h: Likewise.
2187         * lib/unictype/categ_Zs.h: Likewise.
2188         * lib/unictype/ctype_blank.h: Likewise.
2189         * lib/unictype/ctype_cntrl.h: Likewise.
2190         * lib/unictype/ctype_digit.h: Likewise.
2191         * lib/unictype/ctype_space.h: Likewise.
2192         * lib/unictype/ctype_xdigit.h: Likewise.
2193         * lib/unictype/mirror.h: Likewise.
2194         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
2195         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
2196         * lib/unictype/pr_bidi_block_separator.h: Likewise.
2197         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
2198         * lib/unictype/pr_bidi_common_separator.h: Likewise.
2199         * lib/unictype/pr_bidi_control.h: Likewise.
2200         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
2201         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
2202         * lib/unictype/pr_bidi_pdf.h: Likewise.
2203         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
2204         * lib/unictype/pr_bidi_whitespace.h: Likewise.
2205         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
2206         * lib/unictype/pr_format_control.h: Likewise.
2207         * lib/unictype/pr_hex_digit.h: Likewise.
2208         * lib/unictype/pr_hyphen.h: Likewise.
2209         * lib/unictype/pr_ids_binary_operator.h: Likewise.
2210         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
2211         * lib/unictype/pr_iso_control.h: Likewise.
2212         * lib/unictype/pr_join_control.h: Likewise.
2213         * lib/unictype/pr_left_of_pair.h: Likewise.
2214         * lib/unictype/pr_line_separator.h: Likewise.
2215         * lib/unictype/pr_math.h: Likewise.
2216         * lib/unictype/pr_non_break.h: Likewise.
2217         * lib/unictype/pr_not_a_character.h: Likewise.
2218         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
2219         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
2220         * lib/unictype/pr_other_id_continue.h: Likewise.
2221         * lib/unictype/pr_other_id_start.h: Likewise.
2222         * lib/unictype/pr_other_lowercase.h: Likewise.
2223         * lib/unictype/pr_other_math.h: Likewise.
2224         * lib/unictype/pr_other_uppercase.h: Likewise.
2225         * lib/unictype/pr_paired_punctuation.h: Likewise.
2226         * lib/unictype/pr_paragraph_separator.h: Likewise.
2227         * lib/unictype/pr_pattern_syntax.h: Likewise.
2228         * lib/unictype/pr_pattern_white_space.h: Likewise.
2229         * lib/unictype/pr_private_use.h: Likewise.
2230         * lib/unictype/pr_quotation_mark.h: Likewise.
2231         * lib/unictype/pr_radical.h: Likewise.
2232         * lib/unictype/pr_soft_dotted.h: Likewise.
2233         * lib/unictype/pr_space.h: Likewise.
2234         * lib/unictype/pr_titlecase.h: Likewise.
2235         * lib/unictype/pr_variation_selector.h: Likewise.
2236         * lib/unictype/pr_white_space.h: Likewise.
2237         * lib/unictype/sy_c_ident.h: Likewise.
2238         * lib/unictype/sy_c_whitespace.h: Likewise.
2239         * lib/unictype/sy_java_whitespace.h: Likewise.
2240         * modules/uni*/*: Bump version number of expected libunistring version.
2241         Reported by Simon Josefsson.
2242
2243 2011-01-09  Karl Heuer  <kwzh@gnu.org>
2244
2245         useless-if-before-free: fix typo in --help and make the internal,
2246         automatic version date update process work once again.
2247         --help output contained a NUL character instead of the
2248         backslash-zero that was intended.  Also, the "must lie within
2249         the first 8 lines" line is on line 9, and hence not getting
2250         automatically updated.
2251         * build-aux/useless-if-before-free: Fix the former by adding a
2252         backslash, and the latter by condensing the three lines of what-it-does
2253         to a single line, leaving one line of slack for the future.
2254
2255 2011-01-09  Bruno Haible  <bruno@clisp.org>
2256
2257         uniwidth/width: Fix width of U+1D173..U+1D17A.
2258         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
2259         symbolic_width, output_width_property_test): New functions.
2260         (main): Invoke output_nonspacing_property, output_width_property_test.
2261         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
2262         U+1D173..U+1D17A.
2263         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
2264         1.
2265         * modules/uniwidth/*: Bump version number of expected libunistring
2266         version.
2267         * modules/unilbrk/*: Likewise.
2268
2269 2011-01-08  Bruno Haible  <bruno@clisp.org>
2270
2271         uninorm tests: Preserve copyright of Unicode data file.
2272         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
2273         Mention modifications.
2274
2275 2011-01-08  Bruno Haible  <bruno@clisp.org>
2276
2277         gen-uni-tables: Prepare for Unicode 5.2.0.
2278         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
2279         (debug_output_lbp, output_lbp): Update.
2280
2281 2011-01-08  Bruno Haible  <bruno@clisp.org>
2282
2283         unilbrk: Clarify gen-uni-tables.c code.
2284         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
2285         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
2286         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
2287
2288 2011-01-07  Bruno Haible  <bruno@clisp.org>
2289
2290         strtod: Restore errno when successfully parsing Infinity or NaN.
2291         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
2292         restore the original errno.
2293
2294 2011-01-07  Bruno Haible  <bruno@clisp.org>
2295
2296         remove test: Avoid failure on HP-UX 11.
2297         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
2298
2299 2011-01-07  Bruno Haible  <bruno@clisp.org>
2300
2301         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
2302         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
2303         error code.
2304
2305 2011-01-07  Pádraig Brady <P@draigBrady.com>
2306
2307         ignore-value: fixup comments, and add Eric Blake
2308         as an author since he rewrote the macros.
2309         * lib/ignore-value.h (ignore_value):  State that
2310         we now support aggregates.  Also specify exactly
2311         when the GCC warn_unused_result feature was added.
2312
2313 2011-01-06  Eric Blake  <eblake@redhat.com>
2314
2315         ignore-value: support aggregate types
2316         * lib/ignore-value.h (ignore_value): Provide separate gcc
2317         definition.
2318         * modules/ignore-value-tests: New test module.
2319         * tests/test-ignore-value.c: New test.
2320
2321         maint.mk: improve sc_prohibit_strcmp regex
2322         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
2323         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
2324         definition of STRNEQ.
2325
2326         signal: work around Haiku issue with SIGBUS
2327         * lib/siglist.h: Add comment.
2328         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
2329         strsignal's favoring of SIGSEGV.
2330         * tests/test-signal.c (main): Avoid test failure.
2331         * doc/posix-headers/signal.texi (signal.h): Document the issue.
2332         Reported by Scott McCreary.
2333
2334         maint.mk: add pre-release check to ensure submodule commits are public
2335         * top/maint.mk (public-submodule-commit): New rule.
2336         (submodule-checks): New variable.
2337         (alpha beta stable): Depend on the variable.
2338
2339 2011-01-05  Pádraig Brady <P@draigBrady.com>
2340         and Jim Meyering  <meyering@redhat.com>
2341
2342         ignore-value: make ignore_value more generic; deprecate ignore_ptr
2343         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
2344         (ATTRIBUTE_DEPRECATED): Define.
2345         (_ignore_case): New function.
2346         (ignore_value): New macro, to replace the old function.
2347         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
2348         * modules/ignore-value (Depends-on): Add stdint.
2349
2350 2011-01-04  Eric Blake  <eblake@redhat.com>
2351
2352         doc: regenerate INSTALL
2353         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
2354         @firstparagraphindent support, now that autoconf dropped it.
2355         (INSTALL_PRELUDE): Reinstate old macro.
2356         * doc/install.texi: Resync from autoconf.
2357         * doc/INSTALL: Reflect recent autoconf update.
2358         * doc/INSTALL.ISO: Likewise.
2359         * doc/INSTALL.UTF-8: Likewise.
2360         Reported by Karl Berry.
2361
2362 2011-01-04  Bruce Korb  <address@hidden>
2363
2364         git-version-gen: avoid a sub-shell
2365         * build-aux/git-version-gen: Redirect stderr in `...` via
2366         "exec 2>...", rather than via an added sub-shell.
2367
2368 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
2369
2370         git-version-gen: use (...) rather than sh -c '...'
2371         * build-aux/git-version-gen: Rather than hard-coding a shell's name
2372         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
2373
2374 2011-01-03  Jim Meyering  <meyering@redhat.com>
2375
2376         git-version-gen: convert leading TABs to spaces
2377         * build-aux/git-version-gen: Expand leading TABs.
2378
2379         git-version-gen: handle failed "git rev-list"
2380         * build-aux/git-version-gen: Rather than leaking a "fatal" error
2381         from git and proceeding as if it had succeeded but printed no SHA1
2382         checksums, suppress the diagnostic and handle the failure.
2383         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
2384
2385         git-version-gen: include command name in one more diagnostic
2386         * build-aux/git-version-gen: When the required .tarball-version file
2387         was missing or unreadable, you might see the diagnostic from "cat",
2388         but no trace of the name of the invoking script.  Now, you still see
2389         the diagnostic from cat, but also get one from "git-version-gen: ".
2390         Inspired by a patch from Bruce Korb.
2391
2392         update-copyright: adjust test to match changed code
2393         * tests/test-update-copyright.sh: Change test's expected output
2394         to match new actual output.
2395
2396 2011-01-02  Bruno Haible  <bruno@clisp.org>
2397
2398         getlogin_r: Avoid test failure on HP-UX 11.
2399         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
2400         ERANGE when the second argument is zero.
2401         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
2402         portability problem.
2403
2404 2011-01-02  Bruce Korb  <bkorb@gnu.org>
2405
2406         * build-aux/update-copyright: doc Simon's changes
2407
2408 2011-01-02  Simon Josefsson  <simon@josefsson.org>
2409
2410         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
2411         environment variable.
2412
2413 2011-01-02  Bruno Haible  <bruno@clisp.org>
2414
2415         unigbrk: Avoid gcc warnings.
2416         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
2417         unused variable.
2418         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
2419         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
2420         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
2421         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
2422         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
2423         Change type of first argument to 'const char *'.
2424         (main): Remove unused variable.
2425         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
2426         type of first argument to 'const char *'.
2427         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
2428         Likewise.
2429         (main): Change type of variable 's'.
2430         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
2431         to 'int'.
2432
2433 2011-01-02  Bruno Haible  <bruno@clisp.org>
2434
2435         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
2436         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
2437         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
2438         bug.
2439         * lib/pwrite.c: Undo 2010-12-31 patch.
2440         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
2441
2442 2011-01-02  Bruno Haible  <bruno@clisp.org>
2443
2444         pread: Fix test whether it works.
2445         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
2446
2447 2011-01-02  Bruno Haible  <bruno@clisp.org>
2448
2449         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
2450         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
2451         ends in "6". Don't require a specific month name. Try also the locale
2452         names found on HP-UX 11 and Solaris 7.
2453
2454 2011-01-02  Bruno Haible  <bruno@clisp.org>
2455
2456         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
2457         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
2458         C linkage.
2459         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
2460
2461 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2462
2463         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
2464         for consistency, since the "cluster" term is not used elsewhere.
2465         * lib/unigbrk.in.h: Update name.
2466         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
2467         * lib/unigbrk/u16-grapheme-next.c: Update name.
2468         * lib/unigbrk/u16-grapheme-prev.c: Update name.
2469         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
2470         * lib/unigbrk/u32-grapheme-next.c: Update name.
2471         * lib/unigbrk/u32-grapheme-prev.c: Update name.
2472         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
2473         * lib/unigbrk/u8-grapheme-next.c: Update name.
2474         * lib/unigbrk/u8-grapheme-prev.c: Update name.
2475         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
2476         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
2477         Suggested by Bruno Haible.
2478
2479 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2480
2481         Remove module 'u8-grapheme-len' as too redundant with
2482         'u8-grapheme-next'.
2483         * modules/unigbrk/u8-grapheme-len: Delete file.
2484         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
2485         * lib/unigbrk.in.h: Remove prototype for deleted function.
2486         * lib/unigbrk/u8-grapheme-len.c: Delete file.
2487         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
2488
2489         Remove module 'u16-grapheme-len' as too redundant with
2490         'u16-grapheme-next'.
2491         * modules/unigbrk/u16-grapheme-len: Delete file.
2492         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
2493         * lib/unigbrk.in.h: Remove prototype for deleted function.
2494         * lib/unigbrk/u16-grapheme-len.c: Delete file.
2495         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
2496
2497         Remove module 'u32-grapheme-len' as too redundant with
2498         'u32-grapheme-next'.
2499         * modules/unigbrk/u32-grapheme-len: Delete file.
2500         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
2501         * lib/unigbrk.in.h: Remove prototype for deleted function.
2502         * lib/unigbrk/u32-grapheme-len.c: Delete file.
2503         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
2504
2505         Suggested by Bruno Haible.
2506
2507 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
2508
2509         * unigbrk.in.h: Fix typo: "ben" => "been".
2510         Reported by Bruno Haible.
2511
2512 2011-01-01  Jim Meyering  <meyering@redhat.com>
2513
2514         maint: update almost all copyright ranges to include 2011
2515         Run the new "make update-copyright" rule.
2516
2517 2011-01-01  Jim Meyering  <meyering@redhat.com>
2518
2519         maint: update-copyright: exempt doc/INSTALL*
2520         * Makefile (update-copyright): Also exclude doc/INSTALL*,
2521         since they are generated.  Suggested by Bruno Haible.
2522
2523 2011-01-01  Jim Meyering  <meyering@redhat.com>
2524
2525         maint: refine the update-copyright rule
2526         * Makefile (update-copyright): Also exclude any file that includes
2527         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
2528         code that merely generates the comment.
2529
2530 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
2531
2532         New module 'u8-grapheme-len'.
2533         * modules/unigbrk/u8-grapheme-len: New file.
2534         * modules/unigbrk/u8-grapheme-len-tests: New file.
2535         * lib/unigbrk.in.h: Add prototype for new function.
2536         * lib/unigbrk/u8-grapheme-len.c: New file.
2537         * tests/unigbrk/test-u8-grapheme-len.c: New file.
2538
2539         New module 'u16-grapheme-len'.
2540         * modules/unigbrk/u16-grapheme-len: New file.
2541         * modules/unigbrk/u16-grapheme-len-tests: New file.
2542         * lib/unigbrk.in.h: Add prototype for new function.
2543         * lib/unigbrk/u16-grapheme-len.c: New file.
2544         * tests/unigbrk/test-u16-grapheme-len.c: New file.
2545
2546         New module 'u32-grapheme-len'.
2547         * modules/unigbrk/u32-grapheme-len: New file.
2548         * modules/unigbrk/u32-grapheme-len-tests: New file.
2549         * lib/unigbrk.in.h: Add prototype for new function.
2550         * lib/unigbrk/u32-grapheme-len.c: New file.
2551         * tests/unigbrk/test-u32-grapheme-len.c: New file.
2552
2553         New module 'u8-grapheme-next'.
2554         * modules/unigbrk/u8-grapheme-next: New file.
2555         * modules/unigbrk/u8-grapheme-next-tests: New file.
2556         * lib/unigbrk.in.h: Add prototype for new function.
2557         * lib/unigbrk/u8-grapheme-next.c: New file.
2558         * tests/unigbrk/test-u8-grapheme-next.c: New file.
2559
2560         New module 'u16-grapheme-next'.
2561         * modules/unigbrk/u16-grapheme-next: New file.
2562         * modules/unigbrk/u16-grapheme-next-tests: New file.
2563         * lib/unigbrk.in.h: Add prototype for new function.
2564         * lib/unigbrk/u16-grapheme-next.c: New file.
2565         * tests/unigbrk/test-u16-grapheme-next.c: New file.
2566
2567         New module 'u32-grapheme-next'.
2568         * modules/unigbrk/u32-grapheme-next: New file.
2569         * modules/unigbrk/u32-grapheme-next-tests: New file.
2570         * lib/unigbrk.in.h: Add prototype for new function.
2571         * lib/unigbrk/u32-grapheme-next.c: New file.
2572         * tests/unigbrk/test-u32-grapheme-next.c: New file.
2573
2574         New module 'u8-grapheme-prev'.
2575         * modules/unigbrk/u8-grapheme-prev: New file.
2576         * modules/unigbrk/u8-grapheme-prev-tests: New file.
2577         * lib/unigbrk.in.h: Add prototype for new function.
2578         * lib/unigbrk/u8-grapheme-prev.c: New file.
2579         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
2580
2581         New module 'u16-grapheme-prev'.
2582         * modules/unigbrk/u16-grapheme-prev: New file.
2583         * modules/unigbrk/u16-grapheme-prev-tests: New file.
2584         * lib/unigbrk.in.h: Add prototype for new function.
2585         * lib/unigbrk/u16-grapheme-prev.c: New file.
2586         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
2587
2588         New module 'u32-grapheme-prev'.
2589         * modules/unigbrk/u32-grapheme-prev: New file.
2590         * modules/unigbrk/u32-grapheme-prev-tests: New file.
2591         * lib/unigbrk.in.h: Add prototype for new function.
2592         * lib/unigbrk/u32-grapheme-prev.c: New file.
2593         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
2594
2595         New module 'u8-grapheme-breaks'.
2596         * modules/unigbrk/u8-grapheme-breaks: New file.
2597         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
2598         * lib/unigbrk.in.h: Add prototype for new function.
2599         * lib/unigbrk/u8-grapheme-breaks.c: New file.
2600         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
2601
2602         New module 'u16-grapheme-breaks'.
2603         * modules/unigbrk/u16-grapheme-breaks: New file.
2604         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
2605         * lib/unigbrk.in.h: Add prototype for new function.
2606         * lib/unigbrk/u16-grapheme-breaks.c: New file.
2607         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
2608
2609         New module 'u32-grapheme-breaks'.
2610         * modules/unigbrk/u32-grapheme-breaks: New file.
2611         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
2612         * lib/unigbrk.in.h: Add prototype for new function.
2613         * lib/unigbrk/u32-grapheme-breaks.c: New file.
2614         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
2615
2616         New module 'ulc-grapheme-breaks'.
2617         * modules/unigbrk/ulc-grapheme-breaks: New file.
2618         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
2619         * m4/locale-ar.m4: New file.
2620         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
2621         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
2622         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
2623
2624 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
2625
2626         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
2627         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
2628         modified how this file was generated before I initially submitted
2629         the module, but failed to regenerate it.  This meant that several
2630         of the level2 entries were wrong.
2631         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
2632         Remove the division-by-2 that is folded into the table now that
2633         gbrkprop.h has been regenerated properly.  Now -1 entries are
2634         handled correctly.
2635
2636         New module 'unigbrk/uc-gbrk-prop-tests'.
2637         * modules/unigbrk/uc-gbrk-prop-tests: New file.
2638         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
2639         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
2640         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
2641
2642 2011-01-01  Bruno Haible  <bruno@clisp.org>
2643
2644         Avoid use of hexadecimal escapes.
2645         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
2646         instead of hexadecimal escapes.
2647
2648 2011-01-01  Jim Meyering  <meyering@redhat.com>
2649
2650         maint: new rule to update copyright year ranges
2651         * Makefile (update-copyright): New rule.
2652
2653         maint: indent with TABs in Makefile
2654         * Makefile: Expand leading sequences of spaces to TABs
2655
2656         version-etc: update the copyright year it reports
2657         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
2658
2659 2010-12-31  Bruno Haible  <bruno@clisp.org>
2660
2661         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
2662         * lib/isfinite.c (zerof, zerod, zerol): New variables.
2663         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
2664         zero.
2665
2666 2010-12-31  Bruno Haible  <bruno@clisp.org>
2667
2668         pwrite: Work around HP-UX 11.11 bug.
2669         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
2670         works and set REPLACE_PWRITE if not.
2671         * lib/pwrite.c (pwrite): Add an implementation that uses the system
2672         function.
2673         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
2674
2675 2010-12-31  Bruno Haible  <bruno@clisp.org>
2676
2677         pread: Work around HP-UX 11 bugs.
2678         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
2679         and set REPLACE_PREAD if not.
2680         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
2681
2682 2010-12-31  Eric Blake  <eblake@redhat.com>
2683
2684         nl_langinfo: fix YESEXPR on Irix 6.5
2685         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
2686         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
2687         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
2688         it.
2689
2690 2010-12-31  Bruno Haible  <bruno@clisp.org>
2691
2692         iconv: Document HP-UX 11 bug.
2693         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
2694
2695 2010-12-31  Bruno Haible  <bruno@clisp.org>
2696
2697         ldexpl: Fix link error on HP-UX 11.
2698         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
2699         LDEXPL_LIBM, using $ISNANL_LIBM.
2700
2701 2010-12-31  Eric Blake  <eblake@redhat.com>
2702
2703         ftello: avoid compilation failure with SunStudio c89
2704         * lib/ftello.c (ftello): Use lseek, not llseek.
2705
2706         tests: avoid failing coreutils tests on cygwin
2707         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
2708         (create_exe_shims_): Return 0 when skipping.
2709
2710 2010-12-31  Bruno Haible  <bruno@clisp.org>
2711
2712         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
2713         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
2714
2715 2010-12-31  Bruno Haible  <bruno@clisp.org>
2716
2717         waitpid: Fix link error in C++ mode.
2718         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
2719
2720 2010-12-31  Bruno Haible  <bruno@clisp.org>
2721
2722         isnan: Use GCC built-ins when possible.
2723         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
2724         __builtin_isnan.
2725         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
2726         (isnan): Define using GCC built-ins for GCC >= 4.0.
2727
2728 2010-12-31  Bruno Haible  <bruno@clisp.org>
2729
2730         isnand: Fix mistake.
2731         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
2732         __builtin_isnand.
2733
2734 2010-12-31  Bruno Haible  <bruno@clisp.org>
2735
2736         open: Avoid C++ error on HP-UX 11.
2737         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
2738
2739 2010-12-31  Bruno Haible  <bruno@clisp.org>
2740
2741         time_r: Add missing declarations on HP-UX 11.
2742         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
2743         instead of HAVE_LOCALTIME_R.
2744         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
2745         HAVE_LOCALTIME_R always.
2746         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
2747         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
2748         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
2749         HAVE_LOCALTIME_R.
2750         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
2751         * doc/posix-functions/localtime_r.texi: Likewise.
2752
2753 2010-12-29  Eric Blake  <eblake@redhat.com>
2754
2755         mountlist: tweak previous commit
2756         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
2757         Reported by Paul Eggert.
2758
2759         mountlist: fix local drive detection on cygwin
2760         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
2761         that works for cygwin.
2762
2763 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2764
2765         ftoastr, snprintf: ftoastr + snprintf module
2766         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
2767         since the snprintf module now should be good enough here.
2768         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
2769         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
2770         and gl_MODULE_INDICATOR([snprintf]), but the former enables
2771         GNULIB_SNPRINTF only for the test directory, and the latter
2772         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
2773         seems to suffice by itself.
2774
2775 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
2776
2777         alloca: one step towards thread-safety
2778         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
2779         need for a static variable.  All callers changed.  This does not
2780         make the alloca replacement thread-safe, but it's one step.
2781
2782         tests: minor indenting change
2783         * tests/init.sh: Sync from coreutils housekeeping patch
2784         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
2785         to keep lines within 80 columns.
2786
2787 2010-12-28  Jim Meyering  <meyering@redhat.com>
2788
2789         regex: don't infloop on persistent failing calloc
2790         * lib/regexec.c (build_trtable): Return failure indication upon
2791         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
2792         In glibc, this was fixed for version 2.13:
2793         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
2794
2795 2010-12-28  Bruno Haible  <bruno@clisp.org>
2796             Paul Eggert <eggert@cs.ucla.edu>
2797
2798         linkat: Make implementation robust against system behaviour variations.
2799         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
2800         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
2801         way, and to -2 if it needs a generic runtime test.
2802         * lib/linkat.c (solaris_optimized_link_immediate,
2803         solaris_optimized_link_follow): New functions.
2804         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
2805         (check_same_link): Use it.
2806
2807 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
2808
2809         New module 'unigbrk/base'.
2810         * modules/unigbrk/base: New file.
2811         * lib/unigbrk.in.h: New file.
2812
2813         New module 'unigbrk/uc-gbrk-prop'.
2814         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
2815         * modules/unigbrk/uc-gbrk-prop: New file.
2816         * lib/unigbrk/gbrkprop.h: New file.
2817         * lib/unigbrk/uc-gbrk-prop.c: New file.
2818
2819         New module 'unigbrk/uc-is-grapheme-break'.
2820         * modules/unigbrk/uc-is-grapheme-break: New file.
2821         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
2822         * lib/unigbrk/uc-is-grapheme-break.c: New file.
2823         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
2824         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
2825         * tests/unigbrk/GraphemeBreakTest.txt: New file.
2826
2827         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
2828
2829 2010-12-27  Bruno Haible  <bruno@clisp.org>
2830
2831         linkat test: Avoid failure on Solaris 11 2010-11.
2832         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
2833
2834 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2835
2836         utimens: work around glibc rounding bug on more platforms
2837         * lib/utimens.c (fdutimens): Work around rounding bug even if
2838         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
2839         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
2840
2841 2010-12-27  Bruno Haible  <bruno@clisp.org>
2842
2843         select tests: Improve comments.
2844         * tests/test-select.c (do_select): Add comments.
2845
2846 2010-12-27  Bruno Haible  <bruno@clisp.org>
2847
2848         select tests: Safer way of handling timeout.
2849         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
2850         at every invocation.
2851
2852 2010-12-27  Bruno Haible  <bruno@clisp.org>
2853
2854         select tests: Use 'bool' where appropriate.
2855         * tests/test-select.c (connect_to_socket): Change argument type to
2856         'bool'.
2857
2858 2010-12-27  Bruno Haible  <bruno@clisp.org>
2859
2860         select tests: Use existing modules.
2861         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
2862         (configure.ac): Don't test for unistd.h.
2863         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
2864         declared in <unistd.h>.
2865
2866 2010-12-27  Bruno Haible  <bruno@clisp.org>
2867
2868         mbrtowc: Work around a Solaris 7 bug.
2869         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
2870         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
2871         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
2872         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
2873         MBRTOWC_NULL_ARG1_BUG.
2874         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
2875         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
2876         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
2877         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
2878
2879 2010-12-27  Jim Meyering  <meyering@redhat.com>
2880
2881         read-file.c: tweak syntax
2882         * lib/read-file.c (fread_file): Remove space after "*" in function
2883         definitions.
2884
2885 2010-12-27  Bruno Haible  <bruno@clisp.org>
2886
2887         times test: Avoid gcc warnings on OSF/1.
2888         * tests/test-times.c (main): Cast printf arguments from clock_t to
2889         'long int'.
2890
2891 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2892
2893         utimens: work around glibc rounding bug on older Linux kernels
2894         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
2895         on Linux with a glibc whose utimes might not work, then work
2896         around a longstanding glibc bug involving rounding rather than
2897         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
2898         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2899
2900 2010-12-26  Bruno Haible  <bruno@clisp.org>
2901
2902         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
2903         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
2904         _GL_CXXALIAS_SYS.
2905         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2906
2907 2010-12-26  Bruno Haible  <bruno@clisp.org>
2908
2909         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
2910         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
2911         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
2912         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
2913         looking for the declaration.
2914         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
2915         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
2916         problem.
2917         * doc/posix-functions/inet_pton.texi: Likewise.
2918
2919 2010-12-26  Bruno Haible  <bruno@clisp.org>
2920
2921         arpa_inet: Use the common idioms with C++ support.
2922         * lib/arpa_inet.in.h: Include c++defs.h.
2923         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
2924         support.
2925         * modules/arpa_inet (Depends-on): Add c++defs.
2926         (Makefile.am): Substitute the contents of c++defs.h.
2927         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
2928         * modules/arpa_inet-c++-tests: New file.
2929         * tests/test-arpa_inet-c++.cc: New file.
2930
2931 2010-12-25  Bruno Haible  <bruno@clisp.org>
2932
2933         Fix more C++ link errors on Solaris 8.
2934         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
2935         $(LIB_EACCESS).
2936         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
2937         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
2938         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
2939         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
2940         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
2941
2942 2010-12-25  Bruno Haible  <bruno@clisp.org>
2943
2944         printf-posix: Fix link error when a non-GCC compiler is used.
2945         * lib/stdio.in.h (printf): When not using GCC, override printf
2946         correctly.
2947         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
2948
2949 2010-12-25  Bruno Haible  <bruno@clisp.org>
2950
2951         strerror_r-posix: Update doc.
2952         * doc/posix-functions/strerror_r.texi: Update doc about the return
2953         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
2954
2955 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2956
2957         utimens: simplify the logic of the previous change
2958         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
2959         This should not affect whether the test succeeds or fails.
2960
2961         utimens: configure better on hosts with NFS clock skew
2962         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
2963         uses the clock of the local host.  It might use the clock of the
2964         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
2965         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
2966
2967 2010-12-25  Bruno Haible  <bruno@clisp.org>
2968
2969         ptsname test: Avoid failure on Solaris.
2970         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
2971         open a pseudo-terminal; don't use BSD-style ptys.
2972         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
2973
2974 2010-12-25  Bruno Haible  <bruno@clisp.org>
2975
2976         ptsname: Avoid ERANGE failure on some systems.
2977         * lib/ptsname.c (buffer): Increase size.
2978
2979 2010-12-25  Bruno Haible  <bruno@clisp.org>
2980
2981         rename, renameat: Avoid test failures at NFS mounted locations.
2982         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
2983         so that subsequent mkdir calls succeed.
2984
2985 2010-12-25  Bruno Haible  <bruno@clisp.org>
2986
2987         iswblank: Fix C++ link error on Solaris 8.
2988         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
2989         _GL_FUNCDECL_SYS.
2990
2991 2010-12-25  Bruno Haible  <bruno@clisp.org>
2992
2993         unistd: Fix C++ link error on Solaris 8.
2994         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
2995
2996 2010-12-25  Bruno Haible  <bruno@clisp.org>
2997
2998         readlink doc: Mention an old glibc bug.
2999         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
3000
3001 2010-12-25  Bruno Haible  <bruno@clisp.org>
3002
3003         fcntl-h: Fix for use of C++ on glibc systems.
3004         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
3005         also on glibc systems in C++ mode.
3006         Reported by Gary V. Vaughan <gary@gnu.org>.
3007
3008 2010-12-25  Bruno Haible  <bruno@clisp.org>
3009
3010         roundl-ieee: Make it work on OSF/1 5.1 with cc.
3011         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
3012
3013 2010-12-25  Bruno Haible  <bruno@clisp.org>
3014
3015         truncl-ieee: Make it work on OSF/1 5.1 with cc.
3016         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
3017         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
3018         test whether truncl works according to ISO C 99 with IEC 60559.
3019         * m4/truncl-ieee.m4: New file.
3020         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
3021         m4/signbit.m4.
3022         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
3023
3024 2010-12-25  Bruno Haible  <bruno@clisp.org>
3025
3026         ceill-ieee: Make it work on OSF/1 5.1 with cc.
3027         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
3028         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
3029         test whether ceill works according to ISO C 99 with IEC 60559.
3030         * m4/ceill-ieee.m4: New file.
3031         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
3032         m4/signbit.m4.
3033         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
3034
3035 2010-12-25  Bruno Haible  <bruno@clisp.org>
3036
3037         Ensure all prerequisites of <wchar.h> are included.
3038         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
3039         before <wchar.h>.
3040         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3041         gl_MBRLEN_NUL_RETVAL): Likewise.
3042         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3043         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
3044         AC_FUNC_MBRTOWC): Likewise.
3045         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3046         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3047         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3048         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3049         Likewise.
3050         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3051         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
3052         (gl_WCHAR_H): Improve comments.
3053         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3054
3055 2010-12-25  Bruno Haible  <bruno@clisp.org>
3056
3057         strtok_r: Fix C syntax error in autoconf macro.
3058         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
3059         characters in test program.
3060
3061 2010-12-24  Bruno Haible  <bruno@clisp.org>
3062
3063         ceil, trunc, round: Fix gcc warnings.
3064         * lib/ceil.c (MIN): Undefine before redefining.
3065         * lib/trunc.c (MIN): Likewise.
3066         * lib/round.c (MIN): Likewise.
3067         Include <math.h> first.
3068
3069 2010-12-24  Bruno Haible  <bruno@clisp.org>
3070
3071         select tests: Avoid failures on OSF/1 5.1.
3072         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
3073         failure of closing the last socket; it may fail with ECONNRESET.
3074
3075 2010-12-24  Eric Blake  <eblake@redhat.com>
3076
3077         stdint: avoid HP-UX 10.20 preprocessor bug
3078         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
3079         than #if.
3080         * tests/test-floor2.c (main): Likewise.
3081         Reported by Peter O'Gorman.
3082
3083         pipe: make obsoletion transition easier
3084         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
3085         * modules/pipe (Files): Include revived file.
3086         (Include): Drop reference, to mirror getdate's behavior.
3087
3088 2010-12-24  Bruno Haible  <bruno@clisp.org>
3089
3090         sys_socket: Hide mismatch of declarations on NonStop Kernel.
3091         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
3092         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
3093         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3094
3095 2010-12-24  Bruno Haible  <bruno@clisp.org>
3096
3097         gethostname: Ensure declaration on NonStop Kernel.
3098         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
3099         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3100
3101 2010-12-24  Bruno Haible  <bruno@clisp.org>
3102
3103         sys_select: Ensure all necessary types on NonStop Kernel.
3104         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
3105         include <sys/time.h>.
3106         * doc/posix-headers/sys_select.texi: Mention that it's missing on
3107         NonStop Kernel.
3108         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3109
3110 2010-12-24  Bruno Haible  <bruno@clisp.org>
3111
3112         sys_select: Remove unneeded include.
3113         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
3114         have <sys/select.h>.
3115
3116 2010-12-24  Bruno Haible  <bruno@clisp.org>
3117
3118         gethostname: Provide a fallback for HOST_NAME_MAX.
3119         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
3120         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
3121         instead.
3122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3123
3124 2010-12-24  Bruno Haible  <bruno@clisp.org>
3125
3126         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
3127         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
3128         (SA_RESTART): Likewise.
3129         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3130
3131 2010-12-24  Bruno Haible  <bruno@clisp.org>
3132
3133         signal: Define NSIG.
3134         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
3135         * tests/test-signal.c (nsig): New variable.
3136         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3137
3138 2010-12-24  Bruno Haible  <bruno@clisp.org>
3139
3140         rename, renameat: Avoid test failures on OSF/1 5.1.
3141         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
3142         alternative error codes.
3143         * tests/test-renameat.c (main): Likewise.
3144
3145 2010-12-24  Bruno Haible  <bruno@clisp.org>
3146
3147         *printf: Detect large precisions bug on Solaris 10/SPARC.
3148         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
3149         by Paul Eggert.
3150         * tests/test-snprintf-posix.h (test_function): Add this test code here
3151         too.
3152         * tests/test-sprintf-posix.h (test_function): Likewise.
3153         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3154         * tests/test-vasprintf-posix.c (test_function): Likewise.
3155         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
3156         around by gnulib.
3157         * doc/posix-functions/printf.texi: Likewise.
3158         * doc/posix-functions/snprintf.texi: Likewise.
3159         * doc/posix-functions/sprintf.texi: Likewise.
3160         * doc/posix-functions/vfprintf.texi: Likewise.
3161         * doc/posix-functions/vprintf.texi: Likewise.
3162         * doc/posix-functions/vsnprintf.texi: Likewise.
3163         * doc/posix-functions/vsprintf.texi: Likewise.
3164         * doc/posix-functions/dprintf.texi: Undo last commit.
3165         * doc/posix-functions/vdprintf.texi: Likewise.
3166
3167 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
3168
3169         tests: port test-fdutimensat.c to Solaris 8
3170         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
3171         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
3172         On Solaris 8, it fails with errno == ENOSYS, because there is no
3173         futimens (so it can't use the fd), and there is no lutimens (so it
3174         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
3175
3176         vsnprintf: make more consistent with snprintf; doc fixes
3177
3178         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
3179         the byte count return problem was promoted from the snprintf-posix
3180         to the snprintf module.
3181         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3182         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
3183         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
3184         * tests/test-snprintf.c (main): Check the byte count returned.
3185         * tests/test-vsnprintf.c (main): Likewise.
3186
3187 2010-12-23  Eric Blake  <eblake@redhat.com>
3188
3189         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
3190         * modules/sigpipe (License): Relax license.
3191
3192 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3193
3194         doc: document Solaris printf bug with large float precisions
3195         * doc/posix-functions/dprintf.texi (dprintf):
3196         * doc/posix-functions/fprintf.texi (fprintf):
3197         * doc/posix-functions/printf.texi (printf):
3198         * doc/posix-functions/snprintf.texi (snprintf):
3199         * doc/posix-functions/sprintf.texi (sprintf):
3200         * doc/posix-functions/vdprintf.texi (vdprintf):
3201         * doc/posix-functions/vfprintf.texi (vfprintf):
3202         * doc/posix-functions/vprintf.texi (vprintf):
3203         * doc/posix-functions/vsnprintf.texi (vsnprintf):
3204         * doc/posix-functions/vsprintf.texi (vsprintf):
3205         Mention that these functions mishandle large floating point
3206         precisions on Solaris 10.  The same bug is also present in Solaris
3207         8, and I assume earlier.  This causes "cd gnulib-tests; make
3208         check" to fail on Solaris 8 (and I assume, later) when building
3209         the latest coreutils, in test-vasprintf-posix's call to
3210         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
3211         the wide flavors (e.g., wprintf) so this patch just updates the
3212         documentation for the narrow ones.
3213
3214         test-posixtm.c: add two tests
3215         * tests/test-posixtm.c: Add two tests, to highlight the
3216         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
3217         around this bug; this is merely to document it.
3218
3219 2010-12-22  Bruno Haible  <bruno@clisp.org>
3220
3221         getlogin_r: Work around portability problem on OSF/1.
3222         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
3223         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
3224         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
3225         test for a truncated result.
3226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
3227         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
3228         * modules/getlogin_r (Depends-on): Add memchr.
3229         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
3230
3231 2010-12-22  Bruno Haible  <bruno@clisp.org>
3232
3233         ptsname: Avoid test failure on OSF/1 5.1.
3234         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
3235         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
3236         (same_slave): New function.
3237         (main): Use it to compare ptsname's result with the expected file name.
3238
3239 2010-12-22  Bruno Haible  <bruno@clisp.org>
3240
3241         Port extended stdio modules to HP NonStop Kernel.
3242         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
3243         macros.
3244         * lib/fbufmode.c: Update comments.
3245         * lib/fflush.c: Likewise.
3246         * lib/fpurge.c: Likewise.
3247         * lib/freadable.c: Likewise.
3248         * lib/freadahead.c: Likewise.
3249         * lib/freading.c: Likewise.
3250         * lib/freadptr.c: Likewise.
3251         * lib/freadseek.c: Likewise.
3252         * lib/fseeko.c: Likewise.
3253         * lib/fseterr.c: Likewise.
3254         * lib/fwritable.c: Likewise.
3255         * lib/fwriting.c: Likewise.
3256         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
3257
3258 2010-12-22  Bruno Haible  <bruno@clisp.org>
3259
3260         ttyname_r: Work around bug on OSF/1 5.1.
3261         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
3262         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
3263         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
3264         present.
3265         * lib/ttyname_r.c (ttyname_r): Update comments.
3266
3267 2010-12-22  Bruno Haible  <bruno@clisp.org>
3268
3269         round: Implement result sign according to IEEE 754.
3270         * lib/round.c (MIN, MINUS_ZERO): New macros.
3271         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
3272         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
3273         * tests/test-round-ieee.c (main): Likewise.
3274         * tests/test-roundl-ieee.c (main): Likewise.
3275
3276         trunc: Implement result sign according to IEEE 754.
3277         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
3278         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
3279         * tests/test-trunc2.c: Include minus-zero.h.
3280         (MINUS_ZERO): New macro.
3281         (trunc_reference): Keep in sync with lib/trunc.c.
3282         * tests/test-truncf2.c: Include minus-zero.h.
3283         (MINUS_ZERO): New macro.
3284         (truncf_reference): Keep in sync with lib/trunc.c.
3285         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
3286         * tests/test-trunc-ieee.c (main): Likewise.
3287         * tests/test-truncl-ieee.c (main): Likewise.
3288
3289         ceil: Implement result sign according to IEEE 754.
3290         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
3291         (FUNC): Return -0.0 for -1 < x < 0.
3292         * tests/test-ceil2.c: Include minus-zero.h.
3293         (MINUS_ZERO): New macro.
3294         (ceil_reference): Keep in sync with lib/ceil.c.
3295         * tests/test-ceilf2.c: Include minus-zero.h.
3296         (MINUS_ZERO): New macro.
3297         (ceilf_reference): Keep in sync with lib/ceil.c.
3298         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
3299         * tests/test-ceil-ieee.c (main): Likewise.
3300         * tests/test-ceill-ieee.c (main): Likewise.
3301
3302         floor: Implement result sign according to IEEE 754.
3303         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
3304         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
3305         * tests/test-floorf2.c (floorf_reference): Likewise.
3306         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
3307         * tests/test-floor-ieee.c (main): Likewise.
3308         * tests/test-floorl-ieee.c (main): Likewise.
3309
3310 2010-12-22  Bruno Haible  <bruno@clisp.org>
3311
3312         getaddrinfo: Update doc.
3313         * doc/posix-functions/gai_strerror.texi: Return type is also different
3314         on AIX and HP-UX.
3315
3316 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
3317
3318         getaddrinfo, inet_ntop: Update doc for Solaris.
3319         * doc/posix-functions/gai_strerror.texi: Return type is also an
3320         issue on Solaris 9 and earlier.
3321         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
3322         on Solaris 10 and earlier.
3323
3324 2010-12-21  Bruno Haible  <bruno@clisp.org>
3325
3326         New module 'roundl-ieee'.
3327         * modules/roundl-ieee: New file.
3328         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
3329         test whether roundl works according to ISO C 99 with IEC 60559.
3330         * m4/roundl-ieee.m4: New file.
3331         * modules/roundl-ieee-tests: New file.
3332         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
3333         * tests/test-roundl.c (main): Remove signbit tests.
3334         * modules/roundl-tests (Depends-on): Remove signbit.
3335         * doc/posix-functions/roundl.texi: Mention the new module.
3336
3337 2010-12-21  Bruno Haible  <bruno@clisp.org>
3338
3339         New module 'truncl-ieee'.
3340         * modules/truncl-ieee: New file.
3341         * modules/truncl-ieee-tests: New file.
3342         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
3343         * tests/test-truncl.c (main): Remove signbit tests.
3344         * modules/truncl-tests (Depends-on): Remove signbit.
3345         * doc/posix-functions/truncl.texi: Mention the new module.
3346
3347 2010-12-21  Bruno Haible  <bruno@clisp.org>
3348
3349         New module 'ceill-ieee'.
3350         * modules/ceill-ieee: New file.
3351         * modules/ceill-ieee-tests: New file.
3352         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
3353         * tests/test-ceill.c (main): Remove signbit tests.
3354         * modules/ceill-tests (Depends-on): Remove signbit.
3355         * doc/posix-functions/ceill.texi: Mention the new module.
3356
3357 2010-12-21  Bruno Haible  <bruno@clisp.org>
3358
3359         New module 'floorl-ieee'.
3360         * modules/floorl-ieee: New file.
3361         * modules/floorl-ieee-tests: New file.
3362         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
3363         * tests/test-floorl.c (main): Remove signbit tests.
3364         * modules/floorl-tests (Depends-on): Remove signbit.
3365         * doc/posix-functions/floorl.texi: Mention the new module.
3366
3367 2010-12-21  Bruno Haible  <bruno@clisp.org>
3368
3369         New module 'round-ieee'.
3370         * modules/round-ieee: New file.
3371         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
3372         whether round works according to ISO C 99 with IEC 60559.
3373         * m4/round-ieee.m4: New file.
3374         * modules/round-ieee-tests: New file.
3375         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
3376         * tests/test-round1.c (main): Remove signbit tests.
3377         * modules/round-tests (Depends-on): Remove 'signbit'.
3378         * doc/posix-functions/round.texi: Mention the new module.
3379
3380 2010-12-21  Bruno Haible  <bruno@clisp.org>
3381
3382         New module 'trunc-ieee'.
3383         * modules/trunc-ieee: New file.
3384         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
3385         whether trunc works according to ISO C 99 with IEC 60559.
3386         * m4/trunc-ieee.m4: New file.
3387         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
3388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
3389         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
3390         * modules/trunc-ieee-tests: New file.
3391         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
3392         * tests/test-trunc1.c (main): Remove signbit tests.
3393         * modules/trunc-tests (Depends-on): Remove 'signbit'.
3394         * doc/posix-functions/trunc.texi: Mention the new module.
3395
3396 2010-12-21  Bruno Haible  <bruno@clisp.org>
3397
3398         New module 'ceil-ieee'.
3399         * modules/ceil-ieee: New file.
3400         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
3401         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
3402         ISO C 99 with IEC 60559.
3403         * m4/ceil-ieee.m4: New file.
3404         * modules/ceil (Files): Add lib/ceil.c.
3405         (Depends-on): Add 'float'.
3406         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
3407         * lib/math.in.h (ceil): New declaration.
3408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
3409         REPLACE_CEIL.
3410         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
3411         * modules/ceil-ieee-tests: New file.
3412         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
3413         * tests/test-math-c++.cc: Check the signature of 'ceil'.
3414         * doc/posix-functions/ceil.texi: Mention the new module.
3415
3416 2010-12-21  Bruno Haible  <bruno@clisp.org>
3417
3418         New module 'floor-ieee'.
3419         * modules/floor-ieee: New file.
3420         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
3421         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
3422         ISO C 99 with IEC 60559.
3423         * m4/floor-ieee.m4: New file.
3424         * modules/floor (Files): Add lib/floor.c.
3425         (Depends-on): Add 'float'.
3426         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
3427         * lib/math.in.h (floor): New declaration.
3428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
3429         REPLACE_FLOOR.
3430         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
3431         * modules/floor-ieee-tests: New file.
3432         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
3433         * tests/test-math-c++.cc: Check the signature of 'floor'.
3434         * doc/posix-functions/floor.texi: Mention the new module.
3435
3436 2010-12-21  Bruno Haible  <bruno@clisp.org>
3437
3438         New module 'roundf-ieee'.
3439         * modules/roundf-ieee: New file.
3440         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
3441         test whether roundf works according to ISO C 99 with IEC 60559.
3442         * m4/roundf-ieee.m4: New file.
3443         * modules/roundf-ieee-tests: New file.
3444         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
3445         * tests/test-roundf1.c (main): Remove signbit tests.
3446         * modules/roundf-tests (Depends-on): Remove 'signbit'.
3447         * doc/posix-functions/roundf.texi: Mention the new module.
3448
3449 2010-12-21  Bruno Haible  <bruno@clisp.org>
3450
3451         New module 'truncf-ieee'.
3452         * modules/truncf-ieee: New file.
3453         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
3454         test whether truncf works according to ISO C 99 with IEC 60559.
3455         * m4/truncf-ieee.m4: New file.
3456         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
3457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
3458         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
3459         * modules/truncf-ieee-tests: New file.
3460         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
3461         * tests/test-truncf1.c (main): Remove signbit tests.
3462         * modules/truncf-tests (Depends-on): Remove 'signbit'.
3463         * doc/posix-functions/truncf.texi: Mention the new module.
3464
3465 2010-12-21  Bruno Haible  <bruno@clisp.org>
3466
3467         New module 'ceilf-ieee'.
3468         * modules/ceilf-ieee: New file.
3469         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
3470         test whether ceilf works according to ISO C 99 with IEC 60559.
3471         * m4/ceilf-ieee.m4: New file.
3472         * modules/ceilf-ieee-tests: New file.
3473         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
3474         * tests/test-ceilf1.c (main): Remove signbit tests.
3475         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
3476         * doc/posix-functions/ceilf.texi: Mention the new module.
3477
3478 2010-12-21  Bruno Haible  <bruno@clisp.org>
3479
3480         New module 'floorf-ieee'.
3481         * modules/floorf-ieee: New file.
3482         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
3483         test whether floorf works according to ISO C 99 with IEC 60559.
3484         * m4/floorf-ieee.m4: New file.
3485         * modules/floorf-ieee-tests: New file.
3486         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
3487         * tests/test-floorf1.c (main): Remove signbit tests.
3488         * modules/floorf-tests (Depends-on): Remove 'signbit'.
3489         * doc/posix-functions/floorf.texi: Mention the new module.
3490
3491 2010-12-21  Bruno Haible  <bruno@clisp.org>
3492
3493         Support for minus zero in autoconf macros.
3494         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
3495         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
3496         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
3497         * tests/minus-zero.h: Update comments.
3498
3499 2010-12-21  Bruno Haible  <bruno@clisp.org>
3500
3501         Tests for module 'ceil'.
3502         * modules/ceil-tests: New file.
3503         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
3504         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
3505
3506 2010-12-21  Bruno Haible  <bruno@clisp.org>
3507
3508         Tests for module 'floor'.
3509         * modules/floor-tests: New file.
3510         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
3511         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
3512
3513 2010-12-21  Bruno Haible  <bruno@clisp.org>
3514
3515         math: Fix indentation.
3516         * lib/math.in.h (floorf): Fix indentation.
3517
3518 2010-12-21  Bruno Haible  <bruno@clisp.org>
3519
3520         Fix cross-compilation guesses on Solaris.
3521         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
3522         not match "solaris2.10".
3523         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3524         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
3525         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
3526
3527 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
3528
3529         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
3530         This fixes a problem observed with the latest coreutils snapshot
3531         that caused a test to fail on Solaris 8.  src/csplit.c's call
3532         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
3533         earlier, instead of returning the number of bytes that would have
3534         been generated; this causes csplit to incorrectly report memory
3535         exhaustion.
3536         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
3537         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
3538         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
3539         comments to match.
3540         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
3541         Fix typo in matching older versions of Solaris: "solaris2.10"
3542         is matched by the shell pattern "solaris2.[0-9]*".  This matters
3543         only for guessing while cross-compiling.
3544         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
3545
3546 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
3547
3548         ftoastr: fix comment again
3549         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3550         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
3551         Also, simplify example a bit by using flags = 0.
3552
3553 2010-12-20  Bruno Haible  <bruno@clisp.org>
3554
3555         round*, trunc*: Update documentation regarding glibc.
3556         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
3557         * doc/posix-functions/round.texi: Likewise.
3558         * doc/posix-functions/roundl.texi: Likewise.
3559         * doc/posix-functions/truncf.texi: Likewise.
3560         * doc/posix-functions/trunc.texi: Likewise.
3561         * doc/posix-functions/truncl.texi: Likewise.
3562
3563 2010-12-20  Bruno Haible  <bruno@clisp.org>
3564
3565         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
3566         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
3567         * doc/posix-functions/round.texi: Likewise.
3568         * doc/posix-functions/roundl.texi: Likewise.
3569
3570 2010-12-20  Bruno Haible  <bruno@clisp.org>
3571
3572         ttyname_r: Add missing declaration on HP-UX 11.
3573         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
3574         HAVE_TTYNAME_R.
3575         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
3576         declared. Set HAVE_TTYNAME_R always.
3577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3578         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
3579         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
3580         HAVE_TTYNAME_R.
3581         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
3582
3583 2010-12-20  Bruno Haible  <bruno@clisp.org>
3584
3585         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
3586         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
3587         * doc/posix-functions/getlogin_r.texi: Likewise.
3588         * tests/test-getlogin.c: Include <errno.h>.
3589         (main): Avoid test failure on HP-UX 11.11.
3590         * tests/test-getlogin_r.c (main): Likewise.
3591
3592 2010-12-20  Bruno Haible  <bruno@clisp.org>
3593
3594         getlogin_r: Add missing declaration on HP-UX 11.
3595         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
3596         declared also when it exists as a function.
3597         * doc/posix-functions/getlogin_r.texi: Document this workaround.
3598
3599 2010-12-20  Bruno Haible  <bruno@clisp.org>
3600
3601         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
3602         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
3603         through wcrtomb.
3604
3605 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
3606
3607         ftoastr: fix comment
3608         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
3609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
3610
3611 2010-12-19  Bruno Haible  <bruno@clisp.org>
3612
3613         isnan: Ensure it is a macro.
3614         * lib/math.in.h (isnan): Define as a macro if not already a macro.
3615         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
3616         Solaris.
3617
3618 2010-12-19  Bruno Haible  <bruno@clisp.org>
3619
3620         ldexpl test: Fix link error on OSF/1 5.1.
3621         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
3622
3623 2010-12-19  Bruno Haible  <bruno@clisp.org>
3624
3625         wctype: Make it work in C++ mode on OSF/1 5.1.
3626         * lib/wctype.in.h (iswblank): Declare but not define here.
3627         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
3628         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
3629         * modules/wctype (Files): Add lib/iswblank.c.
3630
3631 2010-12-19  Bruno Haible  <bruno@clisp.org>
3632
3633         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
3634         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
3635         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
3636
3637 2010-12-19  Bruno Haible  <bruno@clisp.org>
3638
3639         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
3640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
3641         _POSIX_PII_SOCKET.
3642         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
3643         * doc/posix-functions/recvfrom.texi: Likewise.
3644         * doc/posix-functions/send.texi: Likewise.
3645         * doc/posix-functions/sendto.texi: Likewise.
3646
3647 2010-12-19  Bruno Haible  <bruno@clisp.org>
3648
3649         tcgetsid: Add missing declaration on OSF/1 5.1.
3650         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
3651         HAVE_TCGETSID.
3652         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
3653         Don't set HAVE_TCGETSID.
3654         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
3655         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
3656         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
3657         HAVE_TCGETSID.
3658         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
3659
3660 2010-12-19  Bruno Haible  <bruno@clisp.org>
3661
3662         stdio: Fix problem with popen() declaration on OSF/1 5.1.
3663         * lib/stdio.in.h: During the include_next statement, let recursive
3664         includes of this file include only the system header file.
3665
3666 2010-12-19  Bruno Haible  <bruno@clisp.org>
3667
3668         iconv_open: Fix regression from 2010-12-04.
3669         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
3670         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
3671
3672 2010-12-19  Bruno Haible  <bruno@clisp.org>
3673
3674         stdbool test: Avoid a gcc warning.
3675         * tests/test-stdbool.c (main): Fail if e1 is false.
3676         Reported by Jim Meyering.
3677
3678 2010-12-19  Jim Meyering  <meyering@redhat.com>
3679
3680         setenv: restore to working order
3681         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
3682         mistakenly removed.
3683         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
3684         HAVE_SETENV.
3685         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
3686         HAVE_SETENV.
3687
3688 2010-12-19  Bruno Haible  <bruno@clisp.org>
3689
3690         Document some different function declarations on OSF/1 5.1.
3691         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
3692         * doc/posix-functions/inet_ntop.texi: Likewise.
3693         * doc/posix-functions/gethostname.texi: Likewise.
3694         * lib/unistd.in.h (gethostname): Update comment.
3695
3696 2010-12-19  Bruno Haible  <bruno@clisp.org>
3697
3698         doc: Mention vasprintf-posix module.
3699         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
3700         the 'vasprintf-posix' module.
3701         * doc/glibc-functions/vasprintf.texi: Likewise.
3702
3703 2010-12-19  Bruno Haible  <bruno@clisp.org>
3704
3705         unsetenv: Add missing declaration on OSF/1 5.1.
3706         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
3707         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
3708         Don't set HAVE_UNSETENV. In the test program, set _BSD.
3709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
3710         not HAVE_UNSETENV.
3711         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
3712         HAVE_UNSETENV.
3713         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
3714
3715 2010-12-19  Bruno Haible  <bruno@clisp.org>
3716
3717         setenv: Add missing declaration on OSF/1 5.1.
3718         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
3719         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
3720         declared. Don't set HAVE_SETENV.
3721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
3722         not HAVE_SETENV.
3723         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
3724         HAVE_SETENV.
3725         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
3726
3727 2010-12-19  Bruno Haible  <bruno@clisp.org>
3728
3729         nl_langinfo tests: Avoid gcc warning.
3730         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
3731
3732 2010-12-19  Bruno Haible  <bruno@clisp.org>
3733
3734         mknod: Avoid error in C++ mode on OSF/1 with GCC.
3735         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
3736         _GL_CXXALIAS_SYS.
3737
3738 2010-12-19  Bruno Haible  <bruno@clisp.org>
3739
3740         stdbool: Relax test.
3741         * tests/test-stdbool.c (e): Don't require that casts from a variable's
3742         address to 'bool' work in static initializer, for compilers other than
3743         GCC.
3744
3745 2010-12-19  Bruno Haible  <bruno@clisp.org>
3746
3747         ftello: Add missing declaration on OSF/1 5.1.
3748         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
3749         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
3750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
3751         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
3752         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
3753
3754 2010-12-19  Bruno Haible  <bruno@clisp.org>
3755
3756         fseeko: Add missing declaration on OSF/1 5.1.
3757         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
3758         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
3759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
3760         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
3761         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
3762
3763 2010-12-19  Bruno Haible  <bruno@clisp.org>
3764
3765         fchdir: Add missing declaration on OSF/1 5.1.
3766         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
3767         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
3768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
3769         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
3770         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
3771
3772 2010-12-19  Bruno Haible  <bruno@clisp.org>
3773
3774         relocatable-prog-wrapper: Separate from relocatable-prog.
3775         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
3776         uninstall-relocwrapper rule here.
3777         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
3778         Reported by Ian Beckwith <ianb@erislabs.net>.
3779
3780 2010-12-19  Bruno Haible  <bruno@clisp.org>
3781
3782         unistr/u8-mbsnlen: Add missing dependency.
3783         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
3784         Reported by Ian Beckwith <ianb@erislabs.net>.
3785
3786 2010-12-19  Bruno Haible  <bruno@clisp.org>
3787
3788         iconv: Make it possible again to use this module without 'iconv-h'.
3789         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
3790         if it is not defined.
3791         Reported by Ian Beckwith <ianb@erislabs.net>.
3792
3793 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3794
3795         acl: port to Solaris 8 when copying from tmpfs to ufs
3796         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
3797         error number.  Problem observed on Solaris 8 with latest
3798         coreutils, with "mv A B", where A is on a tmpfs file system and B
3799         is on a ufs file system.  This caused coreutils' mv/part-symlink
3800         test to fail.
3801
3802         tests: set fail=0 at start
3803         * tests/init.sh (setup_): Move fail=0 initialization here ...
3804         (mktempd_): ... from here, so that tests can rely on fail being
3805         set to 0 initially.  This fixes a problem in coreutils; see:
3806         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
3807
3808 2010-12-18  Bruno Haible  <bruno@clisp.org>
3809
3810         memmem-simple: Stylistic changes.
3811         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
3812         Fix preprocessor directive indentation.
3813
3814 2010-12-15  Pádraig Brady <P@draigBrady.com>
3815
3816         memmem, memmem-simple: reorganize and expand empty needle check
3817         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
3818         functional checks to memmem-simple so that one has a fully functional
3819         memmem by using just this module.
3820         Restrict the performance only check to the memmem module.
3821         Also expand the empty needle check to ensure the correct
3822         pointer is returned, not just a non NULL pointer.
3823         * doc/glibc-functions/memmem.texi: Rearrange the portability
3824         documentation to correlate with the rearranged checks.
3825         Clarify exactly how the memmem and memmem-simple modules
3826         relate to each other.
3827
3828 2010-12-15  Pádraig Brady <P@draigBrady.com>
3829             Bruno Haible  <bruno@clisp.org>
3830
3831         Improve cross-compilation guesses for uClibc.
3832         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
3833         that uClibc does not have the glibc bug.
3834         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
3835         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
3836
3837 2010-12-14  Eric Blake  <eblake@redhat.com>
3838
3839         configmake: provide fallbacks for oldest supported autotools
3840         * m4/configmake.m4: New file.
3841         * modules/configmake (Files): Ship it.
3842         (configure.ac): Use it to guarantee fallbacks.
3843
3844 2010-12-13  Pádraig Brady <P@draigBrady.com>
3845
3846         read-file: Improve handling of large files
3847         * lib/read-file.c (fread_file): Minimize realloc()s
3848         for regular files, and better manage sizes around SIZE_MAX.
3849
3850 2010-12-13  Eric Blake  <eblake@redhat.com>
3851
3852         cloexec, fcntl: relax license
3853         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
3854         consent from all contributors.
3855         * modules/fcntl (License): Likewise.
3856
3857 2010-12-10  Bruno Haible  <bruno@clisp.org>
3858
3859         Tests for module 'pipe-posix'.
3860         * modules/pipe-posix-tests: New file.
3861         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
3862
3863 2010-12-10  Bruno Haible  <bruno@clisp.org>
3864
3865         pipe-posix: Make it work in C++ mode.
3866         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
3867         (pipe): Use common idiom, not a macro definition.
3868         * lib/pipe.c: New file.
3869         * m4/pipe.m4: New file.
3870         * modules/pipe-posix (Description): Enhance.
3871         (Files): Add lib/pipe.c, m4/pipe.m4.
3872         (configure.ac): Invoke gl_FUNC_PIPE.
3873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
3874         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
3875         * tests/test-unistd-c++.cc: Check the signature of pipe.
3876
3877 2010-12-10  Bruno Haible  <bruno@clisp.org>
3878
3879         Rename module 'pipe' to 'spawn-pipe'.
3880         * modules/spawn-pipe: New file, renamed from modules/pipe.
3881         (Files, configure.ac, Makefile.am): Update.
3882         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
3883         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
3884         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
3885         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
3886         "spawn-pipe.h" instead of "pipe.h".
3887         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
3888         to gl_SPAWN_PIPE.
3889         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
3890         (Files, Makefile.am): Update.
3891         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
3892         Update.
3893         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
3894         Include "spawn-pipe.h" instead of "pipe.h".
3895         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
3896         * lib/javacomp.c: Likewise.
3897         * lib/javaversion.c: Likewise.
3898         * lib/pipe-filter-gi.c: Likewise.
3899         * lib/pipe-filter-ii.c: Likewise.
3900         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
3901         * modules/javacomp (Depends-on): Likewise.
3902         * modules/javaversion (Depends-on): Likewise.
3903         * modules/pipe-filter-gi (Depends-on): Likewise.
3904         * modules/pipe-filter-ii (Depends-on): Likewise.
3905         * MODULES.html.sh (Executing programs): Update.
3906         * NEWS: Mention the change.
3907
3908 2010-12-10  Eric Blake  <eblake@redhat.com>
3909
3910         pipe-posix: new module
3911         * modules/pipe-posix: New file.
3912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
3913         (gl_UNISTD_H): Check for declaration.
3914         * modules/unistd (Makefile.am): Substitute it.
3915         * lib/unistd.in.h (pipe): Provide it for mingw.
3916         * doc/posix-functions/pipe.texi (pipe): Update documentation.
3917         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
3918
3919 2010-12-07  Bruno Haible  <bruno@clisp.org>
3920
3921         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
3922         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
3923         u8_strcmp_gnu.
3924         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
3925
3926 2010-12-06  Bruno Haible  <bruno@clisp.org>
3927
3928         Update internal documentation.
3929         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
3930
3931 2010-12-04  Bruno Haible  <bruno@clisp.org>
3932
3933         Put more information about failed tests into the test return codes.
3934         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
3935         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
3936         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3937         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3938         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3939         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3940         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3941         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3942         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
3943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3944         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3945         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3946         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3947         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3948         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
3949         returns a bit mask.
3950         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
3951         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3952         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3953         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3954         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3955         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3956         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3957         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3958         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3959         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3960         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
3961         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3962         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3963         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3964         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3965         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3966         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
3967         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
3968         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3969         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
3970         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3971         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3972         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3973         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3974         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3975         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3976         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
3977         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3978         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3979         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
3980         gl_PRINTF_PRECISION): Likewise.
3981         * m4/regex.m4 (gl_REGEX): Likewise.
3982         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3983         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3984         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
3985         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3987         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3988         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3989         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
3990         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3991         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3992         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3993         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
3994         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3995         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3996         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3997         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3998         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3999         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4000         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4001         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
4002         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
4003         enumerated value.
4004         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
4005
4006 2010-12-04  Bruno Haible  <bruno@clisp.org>
4007
4008         Update for Solaris 11 2010-11.
4009         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
4010         Express, released in November 2010.
4011
4012 2010-12-04  Bruno Haible  <bruno@clisp.org>
4013
4014         nproc: Relax license.
4015         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
4016         and Paul Eggert.
4017         Requested by Ludovic Courtès <ludo@gnu.org>.
4018
4019 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
4020
4021         utimecmp: fine-grained src to nearby coarse-grained dest
4022
4023         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
4024         and the source is on a file system with higher-resolution time
4025         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
4026         not work, and the time stamps are close together, the algorithm to
4027         determine the exact resolution from the read-back mtime was buggy:
4028         it had a "!=" where it should have had an "==".  This bug has been
4029         in the code ever since it was introduced to gnulib.
4030         Problem reported by Dan Jacobson in
4031         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
4032
4033 2010-11-30  Bruno Haible  <bruno@clisp.org>
4034
4035         strerror_r-posix: Fix autoconf test.
4036         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
4037
4038 2010-11-28  Bruno Haible  <bruno@clisp.org>
4039             Paul Eggert  <eggert@cs.ucla.edu>
4040
4041         Tests for module 'getdomainname'.
4042         * modules/getdomainname-tests: New file.
4043         * tests/test-getdomainname.c: New file, based on
4044         tests/test-gethostname.c.
4045
4046 2010-11-28  Bruno Haible  <bruno@clisp.org>
4047             Paul Eggert  <eggert@cs.ucla.edu>
4048
4049         getdomainname: Use the system function when possible.
4050         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
4051         (getdomainname): Replace if needed. Provide the declaration if it is
4052         missing. Don't use _GL_CXXALIAS_SYS_CAST.
4053         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
4054         (getdomainname): When the system has getdomainname, call the system
4055         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
4056         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
4057         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
4058         found in libnsl. Look for the declaration also in <netdb.h>. Replace
4059         the function if its second argument is of type 'int' or if it is found
4060         in libnsl.
4061         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
4062         <sys/systeminfo.h> and sysinfo().
4063         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
4064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4065         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
4066         HAVE_GETDOMAINNAME.
4067         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
4068         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
4069         * doc/glibc-functions/getdomainname.texi: Document the problems with
4070         the getdomainname declaration.
4071
4072 2010-11-28  Bruno Haible  <bruno@clisp.org>
4073
4074         sys_socket: Ensure ss_family field on AIX.
4075         * lib/sys_socket.in.h (ss_family): New macro definition.
4076         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
4077         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
4078         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
4079         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
4080         * modules/sys_socket (Makefile.am): Substitute
4081         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
4082         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
4083
4084 2010-11-27  Bruno Haible  <bruno@clisp.org>
4085
4086         readline: Improve configure output.
4087         * m4/readline.m4 (gl_FUNC_READLINE): Make the
4088         "checking for readline..." result understandable.
4089
4090 2010-11-27  Bruno Haible  <bruno@clisp.org>
4091
4092         *printf-posix: Detect a bug on Solaris 10/x86.
4093         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
4094         for floating-point output.
4095         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
4096         directive.
4097         * tests/test-snprintf-posix.h (test_function): Likewise.
4098         * tests/test-sprintf-posix.h (test_function): Likewise.
4099         * tests/test-vasprintf-posix.c (test_function): Likewise.
4100         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
4101         * doc/posix-functions/printf.texi: Likewise.
4102         * doc/posix-functions/snprintf.texi: Likewise.
4103         * doc/posix-functions/sprintf.texi: Likewise.
4104         * doc/posix-functions/vfprintf.texi: Likewise.
4105         * doc/posix-functions/vprintf.texi: Likewise.
4106         * doc/posix-functions/vsnprintf.texi: Likewise.
4107         * doc/posix-functions/vsprintf.texi: Likewise.
4108         * doc/glibc-functions/obstack_printf.texi: Likewise.
4109         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4110
4111 2010-11-27  Bruno Haible  <bruno@clisp.org>
4112
4113         Fix link error when module libunistring-optional is in use.
4114         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
4115         * modules/striconveha-tests (Makefile.am): Likewise.
4116
4117 2010-11-27  Bruno Haible  <bruno@clisp.org>
4118
4119         regex: Mention link dependencies.
4120         * modules/regex (Link): New section.
4121         * modules/rpmatch (Link): Likewise.
4122         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
4123
4124 2010-11-27  Bruno Haible  <bruno@clisp.org>
4125
4126         ftoastr: Fix compilation error on Solaris.
4127         * lib/ftoastr.c: Include <config.h>.
4128
4129 2010-11-27  Bruno Haible  <bruno@clisp.org>
4130
4131         getloadavg: Update documentation.
4132         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
4133
4134 2010-11-27  Bruno Haible  <bruno@clisp.org>
4135
4136         sys_socket: Fix test whether the functions are declared.
4137         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
4138         not <sys/select.h>.
4139
4140 2010-11-27  Bruno Haible  <bruno@clisp.org>
4141
4142         getpass: Make sure to get system declaration on some platforms.
4143         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
4144         gl_USE_SYSTEM_EXTENSIONS.
4145         * modules/getpass (Depends-on): Add extensions.
4146
4147 2010-11-26  Bruno Haible  <bruno@clisp.org>
4148
4149         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
4150         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
4151         'iconv' module is present.
4152         (ICONV_CONST): New macro.
4153         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
4154         ICONV_CONST.
4155         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
4156         set ICONV_CONST.
4157         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
4158         here.
4159         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
4160         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
4161         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
4162         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
4163         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
4164         present.
4165
4166 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
4167
4168         ftoastr: comment fix
4169         * lib/ftoastr.c: "little" -> "little or no" in comment
4170
4171 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
4172
4173         stdint: port to GCC 4.3 + OSX + Octave
4174         On this platform, stdint.h is buggy and defines int64_t to long
4175         long int.  The replacement defined it to long int, causing
4176         problems with C++ style name mangling.  Instead, trust the system
4177         definition if INT64_MAX is defined, and likewise for the unsigned
4178         variant.   Problem reported by Jarno Rajahalme in
4179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
4180         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
4181         and don't mess with int64_t and INT64_MAX in this case.
4182         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
4183
4184 2010-11-24  Bruno Haible  <bruno@clisp.org>
4185
4186         doc: Corrections regarding MacOS X 10.4 and 10.5.
4187         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
4188         MacOS X.
4189         Reported by Simon Josefsson.
4190
4191 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
4192
4193         Uninstall ".bin" files installed by relocwrapper.
4194         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
4195         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
4196         unless it is already there.
4197
4198 2010-11-21  Bruno Haible  <bruno@clisp.org>
4199
4200         Update for NetBSD 5.0.
4201         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
4202         NetBSD; the test fails on NetBSD 5.0.
4203         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
4204         about NetBSD.
4205
4206 2010-11-21  Bruno Haible  <bruno@clisp.org>
4207
4208         Update for HP-UX 11.23 and HP-UX 11.31.
4209         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
4210         HP-UX.
4211
4212 2010-11-21  Bruno Haible  <bruno@clisp.org>
4213
4214         Update for MacOS X 10.5.
4215         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
4216         MacOS X; the test fails on MacOS X 10.5.8.
4217         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
4218         about MacOS X.
4219
4220 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
4221
4222         bootstrap: add bootstrap_sync option.
4223         See discussion at
4224         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
4225         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
4226         * build-aux/bootstrap: Accept --bootstrap-sync to update
4227         bootstrap if it is not identical to the local gnulib's
4228         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
4229         enable this by default.  Accept --no-bootstrap-sync to disable
4230         it.
4231
4232 2010-11-20  Bruno Haible  <bruno@clisp.org>
4233
4234         Ensure that <features.h> is included before __GLIBC__ is tested.
4235         * lib/printf-parse.h: Include <features.h>.
4236         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
4237         Reported by Mike Frysinger <vapier@gentoo.org>.
4238
4239         Ensure that <features.h> is included before __GLIBC__ is tested.
4240         * lib/wchar.in.h: Include <features.h>.
4241         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
4242         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
4243         Reported by Mike Frysinger <vapier@gentoo.org>.
4244
4245         Ensure that <features.h> is included before __GLIBC__ is tested.
4246         * lib/arpa_inet.in.h: Include <features.h>.
4247         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
4248         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
4249         Reported by Mike Frysinger <vapier@gentoo.org>.
4250
4251         Ensure that <features.h> is included before __GLIBC__ is tested.
4252         * build-aux/link-warning.h: Include <features.h>.
4253         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
4254         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
4255         Reported by Mike Frysinger <vapier@gentoo.org>.
4256
4257         Ensure that <features.h> is included before __GLIBC__ is tested.
4258         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
4259         Reported by Mike Frysinger <vapier@gentoo.org>.
4260
4261 2010-11-20  Bruno Haible  <bruno@clisp.org>
4262
4263         memmem: Fix autoconf test.
4264         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
4265
4266 2010-11-20  Bruno Haible  <bruno@clisp.org>
4267
4268         Port to uClibc.
4269         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
4270         * lib/fcntl.in.h: Likewise.
4271         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
4272         * lib/mbrtowc.c (mbrtowc): Likewise.
4273         * lib/relocatable.c (find_shared_library_fullname): Likewise.
4274         * lib/strerror_r.c: Likewise.
4275         * lib/unistr/u8-strnlen.c: Likewise.
4276         * lib/vasnprintf.c (decimal_point_char): Likewise.
4277         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
4278         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
4279         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
4280         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
4281         * tests/test-sigaction.c (handler, main): Likewise.
4282         * lib/freading.h: Treat uClibc like a non-glibc platform.
4283         * lib/freading.c: Likewise.
4284         * lib/gettext.h: Likewise.
4285         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
4286         Likewise.
4287         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
4288         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
4289         * lib/propername.c (proper_name_utf8): Likewise.
4290         * lib/spawn.in.h: Likewise.
4291         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
4292         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
4293         mem_cd_iconveh_internal): Likewise.
4294         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
4295         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
4296         strstr, strcasestr): Likewise.
4297         * lib/unicodeio.c (unicode_to_mb): Likewise.
4298         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
4299         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
4300         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
4301         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
4302         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
4303         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
4304         * lib/unistr/u8-stpncpy.c: Likewise.
4305         * lib/vasnprintf.c (VASNPRINTF): Likewise.
4306         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
4307         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4308         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4309         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
4310         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
4311         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
4312         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
4313         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4314         Likewise.
4315         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
4316         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4317         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4318         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4320         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4321         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4322         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4323         * tests/test-getopt.h (OPTIND_MIN): Likewise.
4324         * tests/test-striconveha.c (main): Likewise.
4325         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4326         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
4327         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
4328         * doc/posix-functions/getline.texi: Likewise.
4329         Reported by Mike Frysinger <vapier@gentoo.org>.
4330
4331 2010-11-20  Bruno Haible  <bruno@clisp.org>
4332
4333         nproc: Fix condition.
4334         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
4335         HAVE_PTHREAD_AFFINITY_NP.
4336
4337 2010-11-20  Bruno Haible  <bruno@clisp.org>
4338
4339         Fix a comment.
4340         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
4341
4342 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
4343
4344         ftoastr: don't assume snprintf
4345         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
4346         Implement a subset of snprintf here, by using sprintf safely.
4347         * modules/ftoastr (Depends-on): Remove snprintf.
4348
4349 2010-11-19  Jim Meyering  <meyering@redhat.com>
4350
4351         test-rename.h: fix compilation failure
4352         * tests/test-rename.h (test_rename): Add omitted "}".
4353
4354 2010-11-17  Jim Meyering  <meyering@redhat.com>
4355
4356         maint.mk: add a URL discussing the no-@acronym policy
4357         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
4358
4359 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4360
4361         ftoastr: depend on snprintf, improve comments
4362         * lib/ftoastr.c: Also mention Loitsch's draft.
4363         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
4364         needed in the current implementation, but it might simplify
4365         speeding up the code later.
4366         * modules/ftoastr: Depend on snprintf; this improves portability.
4367         Suggested by Bruno Haible in the same email.
4368
4369         ftoastr: port to hosts lacking strtof and strtold
4370         Problem reported by Bruno Haible in
4371         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
4372         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
4373         environment and strtold (and presumably strtof) are not available.
4374         * modules/ftoastr (Files): Add m4/c-strtod.m4.
4375         (configure.ac): Require gl_C99_STRTOLD.
4376
4377 2010-11-18  Bruno Haible  <bruno@clisp.org>
4378
4379         c-strtold: Avoid link error on AIX 7.
4380         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
4381         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
4382         (gl_C_STRTOLD): Test whether strtold_l exists.
4383         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4384
4385 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4386
4387         intprops: new macro INT_BITS_STRLEN_BOUND
4388         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
4389         ftoastr.h.  This exposes an internal of intprops.h that was formerly
4390         not exposed.  Also, it uses a slightly tighter bound than before;
4391         though this makes no practical difference, we might as well be as
4392         tight as we easily can.
4393
4394         ftoastr: new module, for lossless conversion of floats to short strings
4395         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
4396         * modules/ftoastr: New files.
4397
4398 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
4399
4400         bootstrap: port to Solaris sed
4401         * build-aux/bootstrap (get_version): Port to Solaris sed.
4402         See Ralf Wildenhues's note in
4403         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
4404
4405 2010-11-14  Jim Meyering  <meyering@redhat.com>
4406
4407         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
4408         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
4409         and move definition closer to sole use.
4410
4411 2010-11-13  Jim Meyering  <meyering@redhat.com>
4412
4413         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
4414         Now we require at least autoconf-2.59, which means the work-around
4415         is no longer needed.
4416         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
4417         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4418         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4419         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
4420         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4421
4422 2010-11-13  Bruno Haible  <bruno@clisp.org>
4423
4424         rename, renameat: Avoid test failures at NFS mounted locations.
4425         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
4426         functions.
4427         (test_rename): Use assert_nonexistent.
4428         * tests/test-rename.c: Include <dirent.h>.
4429         * tests/test-renameat.c: Likewise.
4430         Reported by Gary V. Vaughan <gary@gnu.org>.
4431
4432         rename, renameat: Document Linux bug with NFS
4433         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
4434         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
4435         * doc/posix-functions/renameat.texi: Likewise.
4436         Suggested by Eric Blake.
4437
4438 2010-11-13  Bruno Haible  <bruno@clisp.org>
4439
4440         rename test: Add comments.
4441         * tests/test-rename.h (test_rename): Add structure and comments.
4442
4443 2010-11-13  Eric Blake  <eblake@redhat.com>
4444
4445         maintainer-makefile: cover a few more files
4446         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
4447         scripts generated within C files, for libvirt.
4448
4449 2010-11-13  Bruno Haible  <bruno@clisp.org>
4450
4451         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
4452         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
4453         character, return the number of bytes that belong together, not always
4454         1.
4455         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
4456         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
4457         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
4458         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
4459         number of bytes of an invalid character.
4460         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
4461         (main): Invoke it.
4462         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
4463         results.
4464         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
4465         malformed byte sequences.
4466         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
4467         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
4468         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
4469         Reported by Ben Pfaff and Paolo Bonzini.
4470
4471 2010-11-13  Bruno Haible  <bruno@clisp.org>
4472
4473         openat: Work around glibc bug with fchownat() and empty file names.
4474         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
4475         (gl_FUNC_FCHOWNAT): Invoke it.
4476         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
4477         * doc/posix-functions/fchownat.texi: Document the glibc bug.
4478         Reported by Gary V. Vaughan <gary@gnu.org>.
4479
4480 2010-11-13  Bruno Haible  <bruno@clisp.org>
4481
4482         openat: Ensure autoconf macro ordering.
4483         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
4484         gl_USE_SYSTEM_EXTENSIONS.
4485         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
4486
4487 2010-11-13  Bruno Haible  <bruno@clisp.org>
4488
4489         Update comments.
4490         * lib/unistr/u8-check.c: Update file name in comments.
4491         * lib/unistr/u8-mblen.c: Likewise.
4492         * lib/unistr/u8-prev.c: Likewise.
4493         * lib/unistr/u8-strmblen.c: Likewise.
4494         * lib/unistr/u8-strmbtouc.c: Likewise.
4495
4496 2010-11-13  Jim Meyering  <meyering@redhat.com>
4497
4498         tests: avoid test failure on Solaris 10 due to lack of PATH export
4499         * tests/test-update-copyright.sh: Don't forget to export PATH.
4500
4501         init.sh: ensure that IFS is defined, just in case...
4502         * tests/init.sh (setup_): Ensure that IFS is defined,
4503         so that saving and restoring it works as expected.  This
4504         appears to be useful at least for an old version of dash
4505         from a long time ago (RH 6).  See here for details:
4506         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
4507
4508         maint.mk: tighten "test a == b" check
4509         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
4510         test to files that contain something like #!/bin/sh.
4511         Without this, coreutils would get two false positives in
4512         the comments of C source files.
4513
4514 2010-11-12  Eric Blake  <eblake@redhat.com>
4515
4516         bootstrap: fix typo in previous attempt
4517         * build-aux/bootstrap (buildreq): Correct the grouping.
4518         Reported by Paul Eggert.
4519
4520         maintainer-makefile: prohibit test x == x
4521         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
4522         Based on a report by Matthias Bolte.
4523
4524         bootstrap: allow FreeBSD gzip
4525         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
4526         which has no '.' and goes to stderr.
4527         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
4528         Reported by Matthias Bolte.
4529
4530         maintainer-makefile: check for i18n setup
4531         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
4532         will likely work.
4533
4534 2010-11-12  Bruno Haible  <bruno@clisp.org>
4535
4536         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
4537         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
4538         * lib/nanosleep.c (nanosleep): Likewise.
4539
4540 2010-11-11  Bruno Haible  <bruno@clisp.org>
4541
4542         fcntl-h: Fix for use of C++ on glibc systems.
4543         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
4544         also on glibc systems in C++ mode.
4545         Reported by Gary V. Vaughan <gary@gnu.org>.
4546
4547 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4548
4549         mknod: avoid false failure with dash
4550         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
4551
4552 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
4553
4554         unlink: Fix "is it should" typo in diagnostic.
4555         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
4556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
4557
4558 2010-11-11  Bruno Haible  <bruno@clisp.org>
4559
4560         Tests for module 'strerror_r-posix'.
4561         * modules/strerror_r-posix-tests: New file.
4562         * tests/test-strerror_r.c: New file.
4563         * tests/test-string-c++.cc: Check the signature of strerror_r.
4564
4565         New module 'strerror_r-posix'.
4566         * lib/string.in.h (strerror_r): New declaration.
4567         * lib/strerror_r.c: New file.
4568         * m4/strerror_r.m4: New file.
4569         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
4570         of strerror_r.
4571         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
4572         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4573         * modules/strerror_r-posix: New file.
4574         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
4575         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
4576         * doc/posix-functions/strerror_r.texi: Mention the new module and the
4577         portability problems.
4578
4579 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
4580
4581         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
4582         line is also considered for output. Quoted function name in shell
4583         command, so temporary files for functions like MyClass::operator()
4584         are removed correctly without errors.
4585
4586 2010-11-09  Bruno Haible  <bruno@clisp.org>
4587
4588         * doc/posix-functions/strerror.texi: List more failing platforms.
4589
4590         * doc/posix-functions/strerror.texi: Add a comment.
4591
4592 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
4593
4594         fdopendir: fix bug on MacOS X when low on file descriptors
4595
4596         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
4597         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
4598         All callers changed.
4599         (fdopendir): Invoke save_cwd at the top level, not after using
4600         multiple dup() calls to use up file descriptors.  Then retry
4601         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
4602         less than the maximum number of open file descriptors, because
4603         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
4604         on Mac OS X 10.6.4 for tar 1.24
4605         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
4606         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
4607         and for tar 1.25
4608         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
4609
4610 2010-11-07  Bruno Haible  <bruno@clisp.org>
4611
4612         vasnprintf: Support I flag on glibc systems.
4613         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
4614         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
4615         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
4616         snprintf function.
4617         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
4618         glibc systems.
4619         * tests/test-vasnprintf-posix3.c: New file.
4620         * modules/vasnprintf-posix-tests (Files): Add it.
4621         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
4622
4623 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4624
4625         [html] Fix copy/paste bug: Use unique name for compiler warnings.
4626         * MODULES.html.sh: For compiler warnings, use name
4627         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
4628
4629 2010-11-05  Eric Blake  <eblake@redhat.com>
4630
4631         ceil, floor: avoid spurious failure with icc
4632         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
4633         [denormals-as-zero] when optimizing without -mieee-fp option.
4634         * tests/test-floorf2.c (floorf_reference): Likewise.
4635         * tests/test-ceilf1.c (dummy): New function.
4636         (main): Use it to outsmart icc's optimization.
4637         * tests/test-floorf1.c (dummy, main): Likewise.
4638
4639         tests: require working signbit
4640         * modules/ceilf-tests (Depends-on): Add signbit.
4641         * modules/ceill-tests (Depends-on): Likewise.
4642         * modules/floorf-tests (Depends-on): Likewise.
4643         * modules/floorl-tests (Depends-on): Likewise.
4644         * modules/round-tests (Depends-on): Likewise.
4645         * modules/roundf-tests (Depends-on): Likewise.
4646         * modules/roundl-tests (Depends-on): Likewise.
4647         * modules/trunc-tests (Depends-on): Likewise.
4648         * modules/truncf-tests (Depends-on): Likewise.
4649         * modules/truncl-tests (Depends-on): Likewise.
4650
4651         strtod: work around icc bug
4652         * lib/strtod.c (minus_zero): Define to working value.
4653         (strtod): Use it to avoid icc bug.
4654
4655         copysign: enhance tests
4656         * modules/copysign-tests (Files): Add minus-zero.h.
4657         * tests/test-copysign.c (main): Also test zeros.
4658
4659 2010-11-04  Eric Blake  <eblake@redhat.com>
4660
4661         ceil, floor, round, trunc: enhance tests of -0
4662         * tests/test-ceilf1.c (main): Ensure correct sign of result.
4663         * tests/test-ceill.c (main): Likewise.
4664         * tests/test-floorf1.c (main): Likewise.
4665         * tests/test-floorl.c (main): Likewise.
4666         * tests/test-round1.c (main): Likewise.
4667         * tests/test-roundf1.c (main): Likewise.
4668         * tests/test-roundl.c (main): Likewise.
4669         * tests/test-trunc1.c (main): Likewise.
4670         * tests/test-truncf1.c (main): Likewise.
4671         * tests/test-truncl.c (main): Likewise.
4672
4673 2010-11-04  Eric Blake  <eblake@redhat.com>
4674
4675         frexp, tests: work around ICC bug with -zero
4676         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
4677         works with more compilers.
4678         * tests/minus-zero.h: New file.
4679         * modules/ceilf-tests (Files): Include it.
4680         * modules/ceill-tests (Files): Likewise.
4681         * modules/floorf-tests (Files): Likewise.
4682         * modules/floorl-tests (Files): Likewise.
4683         * modules/frexp-nolibm-tests (Files): Likewise.
4684         * modules/frexp-tests (Files): Likewise.
4685         * modules/frexpl-nolibm-tests (Files): Likewise.
4686         * modules/frexpl-tests (Files): Likewise.
4687         * modules/isnan-tests (Files): Likewise.
4688         * modules/isnand-nolibm-tests (Files): Likewise.
4689         * modules/isnand-tests (Files): Likewise.
4690         * modules/isnanf-nolibm-tests (Files): Likewise.
4691         * modules/isnanf-tests (Files): Likewise.
4692         * modules/isnanl-nolibm-tests (Files): Likewise.
4693         * modules/isnanl-tests (Files): Likewise.
4694         * modules/round-tests (Files): Likewise.
4695         * modules/roundf-tests (Files): Likewise.
4696         * modules/roundl-tests (Files): Likewise.
4697         * modules/ldexpl-tests (Files): Likewise.
4698         * modules/signbit-tests (Files): Likewise.
4699         * modules/snprintf-posix-tests (Files): Likewise.
4700         * modules/sprintf-posix-tests (Files): Likewise.
4701         * modules/strtod-tests (Files): Likewise.
4702         * modules/trunc-tests (Files): Likewise.
4703         * modules/truncf-tests (Files): Likewise.
4704         * modules/truncl-tests (Files): Likewise.
4705         * modules/vsnprintf-posix-tests (Files): Likewise.
4706         * modules/vsprintf-posix-tests (Files): Likewise.
4707         * modules/vasnprintf-posix-tests (Files): Likewise.
4708         * modules/vasprintf-posix-tests (Files): Likewise.
4709         * tests/test-ceilf1.c (main): Use it.
4710         * tests/test-ceill.c (main): Likewise.
4711         * tests/test-floorf1.c (main): Likewise.
4712         * tests/test-floorl.c (main): Likewise.
4713         * tests/test-frexp.c (main): Likewise.
4714         * tests/test-frexpl.c (main): Likewise.
4715         * tests/test-isnan.c (main): Likewise.
4716         * tests/test-isnand.h (main): Likewise.
4717         * tests/test-isnanf.h (main): Likewise.
4718         * tests/test-isnanl.h (main): Likewise.
4719         * tests/test-ldexpl.c (main): Likewise.
4720         * tests/test-round.c (main): Likewise.
4721         * tests/test-roundf.c (main): Likewise.
4722         * tests/test-roundl.c (main): Likewise.
4723         * tests/test-signbit.c (test_signbitf, test_signbitd)
4724         (test_signbitl): Likewise.
4725         * tests/test-snprintf-posix.h (test_function): Likewise.
4726         * tests/test-sprintf-posix.h (test_function): Likewise.
4727         * tests/test-strtod.c (main): Likewise.
4728         * tests/test-trunc1.c (main): Likewise.
4729         * tests/test-truncf1.c (main): Likewise.
4730         * tests/test-truncl.c (main): Likewise.
4731
4732         isnanl: work around icc bug
4733         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
4734
4735 2010-11-03  Eric Blake  <eblake@redhat.com>
4736
4737         tests: fix compiler warnings
4738         * tests/test-getopt.h (test_getopt): Fix condition.
4739         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4740         * tests/test-pipe2.c (main): Likewise.
4741         * tests/test-quotearg-simple.c (main): Avoid icc warning.
4742
4743         utimens: fix broken m4 test
4744         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
4745
4746 2010-10-28  Bruno Haible  <bruno@clisp.org>
4747
4748         posix_spawn*, getdtablesize: Relax license.
4749         * modules/posix_spawn (License): Change to LGPLv2+.
4750         * modules/posix_spawnp (License): Likewise.
4751         * modules/posix_spawn-internal (License): Likewise.
4752         * modules/posix_spawnattr_init (License): Likewise.
4753         * modules/posix_spawnattr_getflags (License): Likewise.
4754         * modules/posix_spawnattr_setflags (License): Likewise.
4755         * modules/posix_spawnattr_getpgroup (License): Likewise.
4756         * modules/posix_spawnattr_setpgroup (License): Likewise.
4757         * modules/posix_spawnattr_getschedparam (License): Likewise.
4758         * modules/posix_spawnattr_setschedparam (License): Likewise.
4759         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
4760         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
4761         * modules/posix_spawnattr_getsigdefault (License): Likewise.
4762         * modules/posix_spawnattr_setsigdefault (License): Likewise.
4763         * modules/posix_spawnattr_getsigmask (License): Likewise.
4764         * modules/posix_spawnattr_setsigmask (License): Likewise.
4765         * modules/posix_spawnattr_destroy (License): Likewise.
4766         * modules/posix_spawn_file_actions_init (License): Likewise.
4767         * modules/posix_spawn_file_actions_addclose (License): Likewise.
4768         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
4769         * modules/posix_spawn_file_actions_addopen (License): Likewise.
4770         * modules/posix_spawn_file_actions_destroy (License): Likewise.
4771         * modules/getdtablesize (License): Likewise.
4772         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
4773
4774 2010-10-26  Bruno Haible  <bruno@clisp.org>
4775
4776         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
4777         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
4778         Cygwin and mingw.
4779         Suggested by Eric Blake.
4780
4781 2010-10-26  Bruno Haible  <bruno@clisp.org>
4782
4783         stdio: Work around compilation error due to renameat() on Solaris 10.
4784         * lib/stdio.in.h: Include <unistd.h> on Solaris.
4785         * lib/renameat.c: Don't include <unistd.h> here.
4786         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
4787         Reported by Paul Eggert and Eric Blake.
4788
4789 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
4790
4791         renameat: port to Solaris 10, which declares renameat in unistd.h
4792
4793         * lib/renameat.c: Include unistd.h before stdio.h, because
4794         Solaris 10 declares renameat in unistd.h.  Problem encountered
4795         when building GNU tar 1.24 on Solaris 10.
4796
4797 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4798
4799         fdopendir: fix C89 compilation
4800         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
4801         compilers.
4802
4803 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
4804
4805         inttostr: simplify by removing unnecessary redundancy
4806         * lib/anytostr.c: Don't include verify.h.
4807         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
4808         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
4809         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
4810         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
4811         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
4812         Likewise.
4813         * modules/inttostr (Depends-on): Remove 'verify'.
4814
4815 2010-10-23  Bruno Haible  <bruno@clisp.org>
4816
4817         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
4818         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
4819         Reported by Eric Blake.
4820
4821 2010-10-23  Bruno Haible  <bruno@clisp.org>
4822
4823         Tests: Fix LOCALE_JA on MirBSD 10.
4824         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
4825         to an UTF-8 locale.
4826         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
4827         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4828         Reported by Eric Blake.
4829
4830 2010-10-21  Bruno Haible  <bruno@clisp.org>
4831
4832         nl_langinfo test: Avoid test failure on NetBSD 5.
4833         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
4834         Reported by Eric Blake.
4835
4836 2010-10-21  Eric Blake  <eblake@redhat.com>
4837
4838         c-stack: work around libsigsegv 2.8 bug
4839         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
4840         overflow on at least PowerPC64.
4841
4842 2010-10-17  Bruno Haible  <bruno@clisp.org>
4843
4844         userspec: Drop redundant file.
4845         * modules/userspec (Files): Remove lib/inttostr.h.
4846
4847 2010-10-17  Bruno Haible  <bruno@clisp.org>
4848
4849         nl_langinfo tests: Silence some warnings.
4850         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
4851         Reported by Jim Meyering.
4852
4853 2010-10-17  Bruno Haible  <bruno@clisp.org>
4854
4855         Make use of GCC's attribute __alloc_size__.
4856         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
4857         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
4858         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
4859         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
4860         __alloc_size__.
4861         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
4862         Suggested by Jim Meyering.
4863
4864 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
4865
4866         bootstrap: anchor .gitignore entries.
4867         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
4868         with...
4869         (insert_vc_ignore): ... this new function, which prepends `/' to
4870         all .gitignore entries before passing them to
4871         insert_sorted_if_absent.
4872
4873 2010-10-16  Bruno Haible  <bruno@clisp.org>
4874
4875         nextafter: Fix configure check.
4876         * modules/nextafter (configure.ac): Correct expected prototype.
4877
4878 2010-10-16  Bruno Haible  <bruno@clisp.org>
4879
4880         termios: Update documentation.
4881         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
4882
4883 2010-10-16  Bruno Haible  <bruno@clisp.org>
4884
4885         tests: Make them compile with TinyCC.
4886         * tests/test-strstr.c (main): Remove parentheses around array
4887         initializer.
4888
4889 2010-10-15  Eric Blake  <eblake@redhat.com>
4890
4891         ignore-value: make header idempotent
4892         * lib/ignore-value.h: Add double-inclusion guards.
4893         Reported by Stefan Berger.
4894
4895 2010-10-15  Jim Meyering  <meyering@redhat.com>
4896
4897         GNUmakefile: handle "stable" target, not "major"
4898         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
4899         lists in maint.mk and announce-gen.  Without this, "make stable"
4900         would fail to ensure that $(VERSION) is up to date.
4901
4902 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
4903
4904         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
4905         & co.
4906
4907 2010-10-14  Bruno Haible  <bruno@clisp.org>
4908
4909         vasnprintf: Don't set errno to 0.
4910         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
4911         block that sets it to 0.
4912         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4913
4914 2010-10-14  Bruno Haible  <bruno@clisp.org>
4915
4916         socketlib: Fix.
4917         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
4918         gl_PREREQ_SYS_H_WINSOCK2.
4919         Reported by Ian Beckwith <ianb@erislabs.net>.
4920
4921 2010-10-13  Jim Meyering  <meyering@redhat.com>
4922
4923         test-select-stdin.c: avoid warn_unused_result warnings
4924         * tests/test-select-stdin.c: Include "macros.h".
4925         ASSERT that read and fflush succeed.
4926
4927 2010-10-13  Jim Meyering  <meyering@redhat.com>
4928
4929         git-version-gen: do require git-VC'd files in cwd
4930         * build-aux/git-version-gen: Reject a git version string
4931         if there are no commits associated with the current directory.
4932         This avoids an unlikely false-positive (unrelated dir whose parent
4933         repository also contains a tag matching v*), as pointed out
4934         by Giuseppe Scrivano in
4935         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
4936
4937 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
4938
4939         argv-iter: omit nonconforming declaration
4940         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
4941         enum arg_iter_err declaration, which doesn't conform to C99.
4942         Solaris 10 cc warns about this.
4943
4944 2010-10-13  Eric Blake  <eblake@redhat.com>
4945
4946         termios: fix compilation on mingw
4947         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
4948         (gl_TERMIOS_H): Adjust it on mingw.
4949         * modules/termios (Makefile.am): Substitute new key.
4950         * lib/termios.in.h (includes): Make include_next conditional.
4951         * doc/posix-headers/termios.texi (termios.h): Update
4952         documentation.
4953         Reported by Daniel P. Berrange.
4954
4955 2010-10-13  Jim Meyering  <meyering@redhat.com>
4956
4957         git-version-gen: don't require that .git/ be in the current dir
4958         * build-aux/git-version-gen: Adjust this script so that it works
4959         when run from any working directory beneath the top-level .git/-
4960         containing directory.  Inspired by a patch from Giuseppe Scrivano,
4961         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
4962
4963         test-select: avoid warn_unused_result warnings
4964         * tests/test-select.c: Include "macros.h".
4965         ASSERT that each call to read, write, and pipe succeeds.
4966         While not technically required, also check each "close".
4967         * modules/select-tests (Files): Add tests/macros.h.
4968
4969         test-symlinkat: remove declaration of unused local
4970         * tests/test-symlinkat.c (main): Remove unused local, "buf".
4971
4972         test-inttostr: avoid shadowing warnings
4973         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
4974         and use malloc rather than the stack for the same reason as
4975         mentioned in the comment justifying the other allocation.
4976
4977 2010-10-11  Bruno Haible  <bruno@clisp.org>
4978
4979         stdlib: Allow multiple gnulib generated replacements to coexist.
4980         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
4981         Reported by Sam Steingold <sds@gnu.org>.
4982
4983 2010-10-11  Jim Meyering  <meyering@redhat.com>
4984
4985         fix a documentation typo
4986         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
4987
4988 2010-10-11  Eric Blake  <eblake@redhat.com>
4989
4990         futimens: work around Solaris 11 bug
4991         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
4992         * tests/test-futimens.h (test_futimens): Enhance, rather than
4993         weaken test.
4994         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4995
4996 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
4997
4998         Indentation.
4999         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
5000         higher-level operators more to the left.
5001
5002 2010-10-11  Jim Meyering  <meyering@redhat.com>
5003
5004         test-futimens: avoid unwarranted test failure on Solaris 5.11
5005         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
5006         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
5007         because it tries to dereference the NULL name argument.
5008
5009 2010-10-11  Bruno Haible  <bruno@clisp.org>
5010
5011         Indentation.
5012         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
5013         indentation.
5014
5015 2010-10-11  Jim Meyering  <meyering@redhat.com>
5016
5017         spawn.in.h: make indentation consistent with parentheses
5018         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
5019         Make indentation consistent with parentheses.
5020
5021 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
5022
5023         Fix mismatched parens in previous commit
5024         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
5025         parens.
5026
5027 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
5028
5029         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
5030
5031         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
5032         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
5033         * lib/malloca.c: Include "verify.h".
5034         (verify1): Remove, replacing with a verify call.
5035         * lib/relocwrapper.c (verify1): Likewise.
5036         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
5037         Likewise.
5038         * modules/malloca (Depends-on): Add 'verify'.
5039         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
5040         * modules/vasnprintf (Depends-on): Add 'verify'.
5041         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5042         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5043         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5044         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5045         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5046         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5047         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5048
5049         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
5050
5051         Formerly the style was sometimes 2*X - 1, because the C standard
5052         was wrongly thought to disallow ?: in integral constant expressions.
5053         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
5054         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
5055         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5056         * lib/stdint.in.h (_verify_intmax_size): Likewise.
5057         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
5058         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
5059         verify that time_t cannot be floating.
5060
5061 2010-10-08  Eric Blake  <eblake@redhat.com>
5062
5063         time: enforce recent POSIX ruling that time_t is integral
5064         * lib/time.in.h (__time_t_must_be_integral): Detect any
5065         problematic systems, allowing the rest of gnulib to assume POSIX.
5066
5067 2010-10-08  Jim Meyering  <meyering@redhat.com>
5068
5069         fdopendir: fix a bug on systems lacking openat and /proc support
5070         OpenBSD 4.7 is one such system.  The most noticeable effect was
5071         failure of any application making nontrivial use of fts: rm, du,
5072         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
5073           ./rm: traversal failed: `a': Bad file descriptor
5074         Debugging that, you see that even though FD 6 was closed just
5075         prior to the opendir call in fd_clone_opendir, its resulting
5076         dir->dd_fd was 8, rather than the expected value of 6:
5077
5078         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
5079         93                close (fd);
5080         (gdb) n
5081         94                dir = fd_clone_opendir (dupfd);
5082         (gdb) n
5083         95                saved_errno = errno;
5084         (gdb) p dir->dd_fd
5085         $11 = 8
5086
5087         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
5088         The problem is that on OpenBSD, fd_clone_opendir has to resort
5089         to using the old-style save/restore CWD mechanism, due to its
5090         lack of openat/proc support, and *that* would steal the FD (6)
5091         that opendir was supposed to use.
5092
5093         The fix is to squirrel away the desired FD so that save_cwd uses a
5094         different one, and then free the dest FD right before calling opendir.
5095         That guarantees opendir will use the required file descriptor.
5096
5097         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
5098
5099 2010-10-08  Bruno Haible  <bruno@clisp.org>
5100
5101         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
5102         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
5103
5104 2010-10-08  Bruno Haible  <bruno@clisp.org>
5105
5106         nanosleep: Make replacement POSIX compliant.
5107         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
5108         is out of range.
5109         Reported by Jim Meyering.
5110
5111 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
5112
5113         bootstrap: add hook for altering gnulib.mk, for Bison
5114         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
5115         the Bison bootstrapping process can rewrite file names and variables
5116         in this file before later parts of 'bootstrap' use the file.
5117         Bison wants to include lib/gnulib.mk from the top-level makefile,
5118         so it needs the file names in this file to be relative to the top
5119         level, not relative to lib; plus it needs variable names to be
5120         rewritten.
5121         (slurp): Use the new function.
5122
5123         bootstrap: reformat for readability
5124         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
5125
5126 2010-10-08  Eric Blake  <eblake@redhat.com>
5127
5128         docs: update cygwin progress
5129         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
5130         1.7.7.
5131         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
5132         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
5133         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
5134         * doc/posix-functions/carg.texi (carg): Likewise.
5135         * doc/posix-functions/cargf.texi (cargf): Likewise.
5136         * doc/posix-functions/casin.texi (casin): Likewise.
5137         * doc/posix-functions/casinf.texi (casinf): Likewise.
5138         * doc/posix-functions/casinh.texi (casinh): Likewise.
5139         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
5140         * doc/posix-functions/catan.texi (catan): Likewise.
5141         * doc/posix-functions/catanf.texi (catanf): Likewise.
5142         * doc/posix-functions/catanh.texi (catanh): Likewise.
5143         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
5144         * doc/posix-functions/ccos.texi (ccos): Likewise.
5145         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
5146         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
5147         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
5148         * doc/posix-functions/cexp.texi (cexp): Likewise.
5149         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
5150         * doc/posix-functions/cimag.texi (cimag): Likewise.
5151         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
5152         * doc/posix-functions/clog.texi (clog): Likewise.
5153         * doc/posix-functions/clogf.texi (clogf): Likewise.
5154         * doc/posix-functions/conj.texi (conj): Likewise.
5155         * doc/posix-functions/conjf.texi (conjf): Likewise.
5156         * doc/posix-functions/cpow.texi (cpow): Likewise.
5157         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
5158         * doc/posix-functions/cproj.texi (cproj): Likewise.
5159         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
5160         * doc/posix-functions/creal.texi (creal): Likewise.
5161         * doc/posix-functions/crealf.texi (crealf): Likewise.
5162         * doc/posix-functions/csin.texi (csin): Likewise.
5163         * doc/posix-functions/csinf.texi (csinf): Likewise.
5164         * doc/posix-functions/csinh.texi (csinh): Likewise.
5165         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
5166         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
5167         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
5168         * doc/posix-functions/ctan.texi (ctan): Likewise.
5169         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
5170         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
5171         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
5172         * doc/posix-headers/complex.texi (complex.h): Likewise.
5173
5174 2010-10-07  Jim Meyering  <meyering@redhat.com>
5175
5176         parse-datetime: avoid compilation failure on OpenBSD 4.7
5177         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
5178         This works around a compilation failure on OpenBSD 4.7:
5179         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
5180
5181 2010-10-07  Eric Blake  <eblake@redhat.com>
5182
5183         docs: update cygwin progress
5184         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
5185         1.7.6.
5186         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
5187         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
5188         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
5189         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
5190         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
5191         Likewise.
5192         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
5193         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
5194         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
5195         Likewise.
5196         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
5197         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
5198         Likewise.
5199         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
5200         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
5201         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
5202         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
5203         Likewise.
5204         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
5205         Likewise.
5206         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
5207
5208         docs: update parse-datetime history
5209         * doc/parse-datetime.texi (Authors of parse_datetime): Better
5210         documentation of this function's history and alternatives.
5211
5212         cygwin: use more robust version check
5213         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
5214         exclude an eventual cygwin 1.9.1.
5215         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5216         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
5217         (gl_FUNC_STRCASESTR): Likewise.
5218         Reported by Bruno Haible.
5219
5220 2010-10-06  Bruno Haible  <bruno@clisp.org>
5221
5222         string, sys_select: Avoid #including large headers unless necessary.
5223         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
5224         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
5225         OSF/1, BeOS, Haiku.
5226         Reported by Jim Meyering.
5227
5228 2010-10-05  Eric Blake  <eblake@redhat.com>
5229
5230         memmem, strstr, strcasestr: fix bug with long periodic needle
5231         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
5232         periodic needle having false positive.
5233         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
5234         and cygwin 1.7.7.
5235         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
5236         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
5237         (gl_FUNC_STRCASESTR): Likewise.
5238         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
5239         * tests/test-memmem.c (main): Expose the bug.
5240         * tests/test-strcasestr.c (main): Likewise.
5241         * tests/test-strstr.c (main): Likewise.
5242         * tests/test-c-strcasestr.c (main): Likewise.
5243         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
5244         * doc/posix-functions/strstr.texi (strstr): Likewise.
5245         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
5246         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
5247
5248 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
5249
5250         parse-datetime: do some more renaming
5251         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
5252         parse_datetime, not get_date.  Mention the renaming.
5253         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
5254         in comments.
5255         * m4/bison.m4: Likewise.
5256
5257 2010-10-05  Eric Blake  <eblake@redhat.com>
5258
5259         parse-datetime: better name than get_date
5260         * NEWS: Reword the deprecation notice.
5261         * modules/get_date: Rename to modules/parse-datetime.
5262         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
5263         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
5264         * lib/get_date.y: Rename to lib/parse-datetime.y.
5265         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
5266         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
5267         * doc/getdate.texi: Provide fallback wrapper.
5268         * lib/getdate.h: Move guts, and wrap...
5269         * lib/parse-datetime.h: ...new file.
5270         * lib/parse-datetime.y (get_date): Rename...
5271         (parse_datetime): ...to this.
5272         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
5273         (gl_PARSE_DATETIME): ...to this.
5274         * doc/posix-functions/getdate.texi (get_date): Provide fallback
5275         documentation.
5276         * modules/getdate (Files): Provide fallback docs and header.
5277         (Notice, Depends-on): Update references.
5278         * tests/test-parse-datetime.c: Likewise.
5279         * DEPENDENCIES: Likewise.
5280         * MODULES.html.sh (Date and time <time.h>): Likewise.
5281         * doc/parse-datetime.texi (Date input formats)
5282         (Authors of parse_datetime): Likewise.
5283         * modules/parse-datetime (Files, configure.ac, Makefile.am)
5284         (Include): Likewise.
5285         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
5286         * gnulib-tool: Likewise.
5287         * m4/bison.m4 (gl_BISON): Likewise.
5288         Suggested by Bruno Haible.
5289
5290 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
5291
5292         more ports to Solaris tr, which needs [] around ranges
5293         * gnulib-tool: Solaris tr needs [] around ranges.
5294         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5295         * tests/test-pipe-filter-gi1.c (main): Likewise.
5296         * tests/test-pipe-filter-ii1.c (main): Likewise.
5297
5298 2010-10-05  Eric Blake  <eblake@redhat.com>
5299
5300         bootstrap: fix Solaris regression
5301         * build-aux/bootstrap (check_versions): Solaris tr still needs []
5302         around ranges.
5303         Reported by Pádraig Brady.
5304
5305         bootstrap: work with pkg-config
5306         * build-aux/bootstrap (check_versions): Also transliterate - in
5307         prerequisite name.
5308         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
5309         prerequisites that were already found, to avoid confusion.
5310         Reported by Justin Clift.
5311
5312         faccessat: remove unused wrappers
5313         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
5314         presence of these wrappers dragged in -lgen on Solaris.
5315         Reported by Clemens Brogi; fix suggested by Paul Eggert.
5316
5317 2010-10-05  Jim Meyering  <meyering@redhat.com>
5318
5319         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
5320         * Makefile (sc_pragma_columns): New syntax-check rule.
5321
5322 2010-10-04  Bruno Haible  <bruno@clisp.org>
5323
5324         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
5325         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
5326         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
5327         Reported by Bruce Korb and Eric Blake.
5328
5329 2010-10-04  Bruno Haible  <bruno@clisp.org>
5330
5331         threadlib: Make option --with-libpth-prefix work.
5332         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
5333         use $LIBPTH, not just -lpth.
5334
5335 2010-10-04  Bruno Haible  <bruno@clisp.org>
5336
5337         Avoid line length limitation from HP NonStop system header files.
5338         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
5339         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
5340         * lib/ctype.in.h: Likewise.
5341         * lib/dirent.in.h: Likewise.
5342         * lib/errno.in.h: Likewise.
5343         * lib/fcntl.in.h: Likewise.
5344         * lib/float.in.h: Likewise.
5345         * lib/getopt.in.h: Likewise.
5346         * lib/iconv.in.h: Likewise.
5347         * lib/inttypes.in.h: Likewise.
5348         * lib/langinfo.in.h: Likewise.
5349         * lib/locale.in.h: Likewise.
5350         * lib/math.in.h: Likewise.
5351         * lib/netdb.in.h: Likewise.
5352         * lib/netinet_in.in.h: Likewise.
5353         * lib/poll.in.h: Likewise.
5354         * lib/pthread.in.h: Likewise.
5355         * lib/pty.in.h: Likewise.
5356         * lib/sched.in.h: Likewise.
5357         * lib/se-selinux.in.h: Likewise.
5358         * lib/search.in.h: Likewise.
5359         * lib/signal.in.h: Likewise.
5360         * lib/spawn.in.h: Likewise.
5361         * lib/stdarg.in.h: Likewise.
5362         * lib/stddef.in.h: Likewise.
5363         * lib/stdint.in.h: Likewise.
5364         * lib/stdio.in.h: Likewise.
5365         * lib/stdlib.in.h: Likewise.
5366         * lib/string.in.h: Likewise.
5367         * lib/strings.in.h: Likewise.
5368         * lib/sys_file.in.h: Likewise.
5369         * lib/sys_ioctl.in.h: Likewise.
5370         * lib/sys_select.in.h: Likewise.
5371         * lib/sys_socket.in.h: Likewise.
5372         * lib/sys_stat.in.h: Likewise.
5373         * lib/sys_time.in.h: Likewise.
5374         * lib/sys_times.in.h: Likewise.
5375         * lib/sys_utsname.in.h: Likewise.
5376         * lib/sys_wait.in.h: Likewise.
5377         * lib/sysexits.in.h: Likewise.
5378         * lib/termios.in.h: Likewise.
5379         * lib/time.in.h: Likewise.
5380         * lib/unistd.in.h: Likewise.
5381         * lib/wchar.in.h: Likewise.
5382         * lib/wctype.in.h: Likewise.
5383         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
5384         * modules/ctype (Makefile.am): Likewise.
5385         * modules/dirent (Makefile.am): Likewise.
5386         * modules/errno (Makefile.am): Likewise.
5387         * modules/fcntl-h (Makefile.am): Likewise.
5388         * modules/float (Makefile.am): Likewise.
5389         * modules/getopt-posix (Makefile.am): Likewise.
5390         * modules/iconv-h (Makefile.am): Likewise.
5391         * modules/inttypes (Makefile.am): Likewise.
5392         * modules/langinfo (Makefile.am): Likewise.
5393         * modules/locale (Makefile.am): Likewise.
5394         * modules/math (Makefile.am): Likewise.
5395         * modules/netdb (Makefile.am): Likewise.
5396         * modules/netinet_in (Makefile.am): Likewise.
5397         * modules/poll-h (Makefile.am): Likewise.
5398         * modules/pthread (Makefile.am): Likewise.
5399         * modules/pty (Makefile.am): Likewise.
5400         * modules/sched (Makefile.am): Likewise.
5401         * modules/search (Makefile.am): Likewise.
5402         * modules/selinux-h (Makefile.am): Likewise.
5403         * modules/signal (Makefile.am): Likewise.
5404         * modules/spawn (Makefile.am): Likewise.
5405         * modules/stdarg (Makefile.am): Likewise.
5406         * modules/stddef (Makefile.am): Likewise.
5407         * modules/stdint (Makefile.am): Likewise.
5408         * modules/stdio (Makefile.am): Likewise.
5409         * modules/stdlib (Makefile.am): Likewise.
5410         * modules/string (Makefile.am): Likewise.
5411         * modules/strings (Makefile.am): Likewise.
5412         * modules/sys_file (Makefile.am): Likewise.
5413         * modules/sys_ioctl (Makefile.am): Likewise.
5414         * modules/sys_select (Makefile.am): Likewise.
5415         * modules/sys_socket (Makefile.am): Likewise.
5416         * modules/sys_stat (Makefile.am): Likewise.
5417         * modules/sys_time (Makefile.am): Likewise.
5418         * modules/sys_times (Makefile.am): Likewise.
5419         * modules/sys_utsname (Makefile.am): Likewise.
5420         * modules/sys_wait (Makefile.am): Likewise.
5421         * modules/sysexits (Makefile.am): Likewise.
5422         * modules/termios (Makefile.am): Likewise.
5423         * modules/time (Makefile.am): Likewise.
5424         * modules/unistd (Makefile.am): Likewise.
5425         * modules/wchar (Makefile.am): Likewise.
5426         * modules/wctype (Makefile.am): Likewise.
5427
5428 2010-10-04  Bruno Haible  <bruno@clisp.org>
5429
5430         read-file tests: Avoid a test failure on NonStop Kernel.
5431         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
5432         a regular file.
5433         Reported by Joachim Schmitz <schmitz@hp.com>.
5434
5435 2010-10-03  Bruno Haible  <bruno@clisp.org>
5436
5437         gnulib-tool: Fixes for --create-testdir with --libtool.
5438         * gnulib-tool (func_get_automake_snippet): Don't augment
5439         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
5440         an executable.
5441         (func_create_testdir): Handle module 'alloca' like func_import.
5442         Reported by Bruce Korb <bruce.korb@gmail.com>.
5443
5444 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
5445
5446         Avoid some lines longer than 80 characters.
5447         * lib/stdint.in.h: Break long comment lines.
5448         * lib/math.in.h: Likewise.
5449         (_GL_NUM_UINT_WORDS): New macro, for readability.
5450         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
5451         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
5452         * lib/stdlib.in.h: Likewise.
5453         * lib/spawn.in.h: Likewise.
5454         * lib/sys_socket.in.h: Update an URL.
5455         * lib/sys_stat.in.h: Break long line.
5456
5457 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
5458
5459         Improve pmccabe2html.
5460         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
5461         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
5462         when the sources change. Remove the line in the HTML about "Used
5463         ranges" (which implied that there might be other unused ranges),
5464         rename "Resume" to "Summary" (easier to understand for more users).
5465         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
5466         styles, and some unnecessary blank lines.
5467
5468 2010-10-03  Bruno Haible  <bruno@clisp.org>
5469             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5470
5471         acl: Add support for ACLs on NonStop Kernel.
5472         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
5473         Check whether the function aclsort() exists.
5474         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
5475         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
5476         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5477         (acl_nontrivial [HAVE_ACLSORT]: New function.
5478         (file_has_acl): Implement for NonStop Kernel.
5479         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5480         (qset_acl): Implement for NonStop Kernel.
5481         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
5482         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
5483         (main): Implement for NonStop Kernel.
5484         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
5485         Kernel. Handle this flavor.
5486         * tests/test-set-mode-acl.sh: Likewise.
5487         * tests/test-copy-acl.sh: Likewise.
5488         * tests/test-copy-file.sh: Likewise.
5489
5490 2010-10-03  Bruno Haible  <bruno@clisp.org>
5491
5492         Info about ACLs on NonStop Kernel.
5493         * doc/acl-resources.txt: Add info about NonStop Kernel.
5494         References by Joachim Schmitz <schmitz@hp.com>.
5495
5496 2010-10-02  Bruno Haible  <bruno@clisp.org>
5497
5498         Define missing EDQUOT on NonStop Kernel.
5499         * lib/errno.in.h (EDQUOT): Assign a value if missing.
5500         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
5501         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
5502         missing.
5503         * doc/posix-headers/errno.texi: Mention the NSK bug.
5504         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
5505         Reported by Joachim Schmitz <schmitz@hp.com>.
5506
5507 2010-10-02  Bruno Haible  <bruno@clisp.org>
5508
5509         Update doc for POSIX:2008.
5510         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
5511         Update URL of POSIX specification.
5512
5513 2010-10-02  Bruno Haible  <bruno@clisp.org>
5514
5515         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
5516         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
5517         from gnulib, not from Automake.
5518
5519 2010-10-02  Bruno Haible  <bruno@clisp.org>
5520
5521         New module 'system-posix'.
5522         * modules/system-posix: New file.
5523         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
5524         module is present.
5525         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
5526         GNULIB_SYSTEM_POSIX.
5527         * modules/stdlib (Depends-on): Remove sys_wait.
5528         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
5529         * doc/posix-functions/system.texi: Mention the new module.
5530         * doc/posix-headers/stdlib.texi: Likewise.
5531         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
5532         define test_sys_wait_macros to a no-op.
5533         Reported by Sam Steingold <sds@gnu.org>.
5534
5535 2010-09-30  Bruno Haible  <bruno@clisp.org>
5536
5537         More renaming from 'getdate' to 'get_date'.
5538         * doc/get_date.texi: Renamed from doc/getdate.texi.
5539         * modules/get_date (Files): Update.
5540         * MODULES.html.sh (Date and time <time.h>): Update.
5541         * DEPENDENCIES: Update.
5542         * gnulib-tool: Update comment.
5543         * m4/bison.m4 (gl_BISON): Likewise.
5544         * m4/get_date.m4 (gl_GET_DATE): Likewise.
5545
5546 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
5547
5548         bootstrap: support ACLOCAL_FLAGS during aclocal
5549         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
5550         can add additional -I dir for third-party .m4 files.
5551
5552 2010-09-30  Eric Blake  <eblake@redhat.com>
5553
5554         bootstrap: use glibtoolize on MacOS
5555         * build-aux/bootstrap (check_versions): Convert libtool into
5556         libtoolize.
5557         (tool search): Move libtool check earlier, and look for
5558         glibtoolize for MacOS.
5559         (gnulib_tool_options): Auto-add --libtool when appropriate.
5560         Reported by Justin Clift.
5561
5562         poll: fix typo that broke test on MacOS
5563         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
5564         Reported by Justin Clift.
5565
5566         getdate: rename to get_date
5567         Note: getdate.h is not renamed, to minimize client impact.
5568         * modules/getdate: Mark obsolete.  Move old contents...
5569         * modules/get_date: ...to new module name.
5570         * modules/getdate-tests: Move...
5571         * modules/get_date-tests: ...here.
5572         * m4/getdate.m4: Move...
5573         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
5574         * lib/getdate.y: Move...
5575         * lib/get_date.y: ...here.
5576         * tests/test-getdate.c: Move...
5577         * tests/test-get_date.c: ...here.
5578         * doc/posix-functions/getdate.texi (getdate): Update name.
5579         * NEWS: Mention the change.
5580
5581 2010-09-29  Bruno Haible  <bruno@clisp.org>
5582
5583         Separate the module 'waitpid' from the module 'sys_wait'.
5584         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
5585         present.
5586         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
5587         gl_MODULE_INDICATOR_FOR_TESTS.
5588         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
5589         * modules/sys_wait (Depends-on): Remove waitpid.
5590         (Makefile.am): Substitute GNULIB_WAITPID.
5591         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
5592         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
5593         signature only if the 'waitpid' module is present.
5594         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
5595         * NEWS: Mention the change.
5596         * modules/grantpt (Depends-on): Add waitpid.
5597         * modules/wait-process (Depends-on): Likewise.
5598
5599 2010-09-29  Bruno Haible  <bruno@clisp.org>
5600
5601         More tests for module 'sys_wait'.
5602         * modules/sys_wait-c++-tests: New file.
5603         * tests/test-sys_wait-c++.cc: New file.
5604         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
5605         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5606
5607 2010-09-29  Bruno Haible  <bruno@clisp.org>
5608
5609         New module 'waitpid'.
5610         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
5611         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
5612         Don't include <process.h>.
5613         (waitpid): Declare only, using modern idiom.
5614         * m4/waitpid.m4: New file.
5615         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
5616         * modules/waitpid: New file.
5617         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
5618         (Makefile.am): Update.
5619         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5620
5621 2010-09-28  Bruno Haible  <bruno@clisp.org>
5622
5623         poll: Assume ANSI C.
5624         * lib/poll.c (poll): Use an ANSI C declaration.
5625
5626 2010-09-28  Bruno Haible  <bruno@clisp.org>
5627
5628         poll-h: Create poll.h on all platforms.
5629         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
5630         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
5631         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
5632         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
5633         (gl_REPLACE_POLL_H): Don't set POLL_H.
5634         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
5635         * modules/poll-h (Depends-on): Add include_next.
5636         (Makefile.am): Create poll.h unconditionally. Substitute also
5637         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
5638
5639 2010-09-28  Bruno Haible  <bruno@clisp.org>
5640
5641         Tests for module 'poll-h'.
5642         * modules/poll-h-c++-tests: New file.
5643         * tests/test-poll-h-c++.cc: New file.
5644
5645         Tests for module 'poll-h'.
5646         * modules/poll-h-tests: New file.
5647         * tests/test-poll-h.c: New file.
5648
5649 2010-09-28  Bruno Haible  <bruno@clisp.org>
5650
5651         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
5652         * modules/poll-h (Depends-on): Add 'extensions'.
5653
5654 2010-09-28  Bruno Haible  <bruno@clisp.org>
5655
5656         New module 'poll-h'.
5657         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
5658         (poll): Use modern idiom.
5659         * modules/poll-h: New file.
5660         * modules/poll (Files): Remove lib/poll.in.h.
5661         (Depends-on): Add poll-h.
5662         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
5663         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
5664         * m4/poll_h.m4: New file.
5665         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
5666         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
5667         and invoke gl_REPLACE_POLL_H.
5668         * lib/poll.c: Use common idiom.
5669         * tests/test-poll.c: Likewise.
5670         * doc/posix-headers/poll.texi: Mention the poll-h module.
5671         Suggested by Eric Blake.
5672
5673 2010-09-26  Bruno Haible  <bruno@clisp.org>
5674
5675         sys_wait: Implement WSTOPSIG.
5676         * lib/sys_wait.in.h (WSTOPSIG): New macro.
5677         Reported by Simon Josefsson.
5678
5679 2010-09-26  Simon Josefsson  <simon@josefsson.org>
5680
5681         stdlib, sys_wait: Avoid compilation error on mingw.
5682         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
5683
5684 2010-09-26  Bruno Haible  <bruno@clisp.org>
5685
5686         stdlib tests: Avoid code duplication.
5687         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
5688         * modules/sys_wait-tests (Files): Likewise.
5689         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
5690         * tests/test-stdlib.c: Include test-sys_wait.h.
5691         (main): Invoke test_sys_wait_macros.
5692         * tests/test-sys_wait.c: Include test-sys_wait.h.
5693         (main): Invoke test_sys_wait_macros.
5694
5695 2010-09-25  Simon Josefsson  <simon@josefsson.org>
5696
5697         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
5698         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
5699         sure Windows sockets are working before calling getaddrinfo.
5700         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
5701         * doc/gnulib.texi (Windows sockets): Fix typo.
5702
5703 2010-09-25  Bruno Haible  <bruno@clisp.org>
5704
5705         Tests for module 'regex-quote'.
5706         * modules/regex-quote-tests: New file.
5707         * tests/test-regex-quote.c: New file.
5708
5709         New module 'regex-quote'.
5710         * lib/regex-quote.h: New file.
5711         * lib/regex-quote.c: New file.
5712         * modules/regex-quote: New file.
5713         Suggested by Reuben Thomas <rrt@sc3d.org>.
5714
5715 2010-09-24  Bruno Haible  <bruno@clisp.org>
5716
5717         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
5718         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
5719
5720 2010-09-23  Bruno Haible  <bruno@clisp.org>
5721
5722         setenv: Relax license.
5723         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
5724         Blake.
5725         Requested by Eric Blake.
5726
5727 2010-09-22  Bruno Haible  <bruno@clisp.org>
5728
5729         termios: Relax license.
5730         * modules/termios (License): Change to LGPLv2+.
5731         Requested by Eric Blake.
5732
5733 2010-09-22  Bruno Haible  <bruno@clisp.org>
5734
5735         threadlib: Allow the package to change the default to 'no'.
5736         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
5737         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
5738         Reported by Paul Eggert.
5739
5740 2010-09-22  Pádraig Brady  <P@draigbrady.com>
5741             Bruno Haible  <bruno@clisp.org>
5742
5743         Fix endless loop in mbmemcasecoll.
5744         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
5745         byte.
5746         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
5747
5748 2010-09-22  Bruno Haible  <bruno@clisp.org>
5749
5750         Tests for module 'memcoll'.
5751         * modules/memcoll-tests: New file.
5752         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
5753
5754         memcoll, xmemcoll: Clarify size vs. length.
5755         * modules/memcoll.c (memcoll0): Clarify specification.
5756         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
5757         passed to collate_error.
5758
5759 2010-09-22  Bruno Haible  <bruno@clisp.org>
5760
5761         Tests for module 'memcasecmp'.
5762         * modules/memcasecmp-tests: New file.
5763         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
5764
5765 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
5766
5767         * lib/pthread.in.h: Add split double-inclusion guard, and include
5768         system <pthread.h> if there is one.  Use @@-style as in other
5769         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
5770         pthread.h doesn't.
5771         (pthread_mutexattr_destroy, pthread_mutexattr_init):
5772         (pthread_mutexattr_settype, pthread_mutex_trylock):
5773         New static inline functions, if there's no system <pthread.h>.
5774         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
5775         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
5776         Approximate with mutexes if the system lacks spinlocks, as in
5777         MacOS.
5778         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
5779         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
5780         @@-style.  Check for spinlocks separately.
5781         (gl_PTHREAD_DEFAULTS): New macro.
5782         * modules/pthread: Redo to use a more typical style for in.h files.
5783
5784 2010-09-21  Eric Blake  <eblake@redhat.com>
5785
5786         net_if: enhance tests
5787         * tests/test-net_if.c (main): Move signature checks earlier.
5788         Print failures to stderr.
5789         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
5790         Document the bug that we do not yet fix.
5791
5792 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
5793
5794         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
5795         about gnulib, not GSS.
5796
5797 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
5798
5799         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
5800         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
5801         for Emacs.
5802         * build-aux/pmccabe2html: Make Makefile.am example code more
5803         cut-and-paste friendly.
5804
5805 2010-09-21  Simon Josefsson  <simon@josefsson.org>
5806
5807         * tests/test-net_if.c: New file.
5808         * modules/net_if-tests: New file.
5809
5810 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
5811
5812         pthread: add pthread_spin_destroy
5813         * lib/pthread.in.h (pthread_spin_destroy): New function.
5814
5815 2010-09-19  Bruno Haible  <bruno@clisp.org>
5816
5817         gnulib-tool: Fix --help output.
5818         * gnulib-tool (func_usage): Fix help message.
5819         Reported by Reuben Thomas <rrt@sc3d.org>.
5820
5821 2010-09-18  Jim Meyering  <meyering@redhat.com>
5822
5823         maint.mk: avoid unexpanded \n in two diagnostics
5824         * top/maint.mk (sc_prohibit_always_true_header_tests):
5825         Don't use a literal \n in a halt=... assignment.  It would not be
5826         expanded, and the two \n bytes would appear in the diagnostic output
5827         rather than the desired newline.  Use halt=$$(printf ... instead.
5828         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5829
5830 2010-09-18  Bruno Haible  <bruno@clisp.org>
5831
5832         netinet_in: Doc tweak.
5833         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
5834         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5835
5836 2010-09-18  Jim Meyering  <meyering@redhat.com>
5837
5838         init.sh: correct an outdated comment
5839         * tests/init.sh (create_exe_shims_):  s/function/alias/
5840
5841         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
5842         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
5843         a file named "*.exe" is removed between the glob expansion and the
5844         processing of that oddly named file.
5845
5846 2010-09-17  Eric Blake  <eblake@redhat.com>
5847
5848         mirbsd: add some more support
5849         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
5850         in BSD family.
5851         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
5852         devices as OpenBSD.
5853         * m4/host-os.m4 (mirbsd): Add MirBSD.
5854
5855         tests: fix unportable assumption on sys/wait.h
5856         * tests/test-sys_wait.c (main): Relax test.
5857         * tests/test-stdlib.c (main): Likewise.
5858
5859         init.sh: accomodate directory with no .exes
5860         * tests/init.sh: Accomodate directory containing only scripts.
5861
5862         tests: avoid compiler warning
5863         * tests/test-stdlib.c (main): Use the variable.
5864
5865         fdutimens, fdutimensat: update signature, again
5866         * lib/utimens.h (gl_futimens): Delete, and move signature...
5867         (fdutimens): ...here.
5868         (fdutimensat): Rearrange signature.
5869         (lutimensat): Rename variable for clarity.
5870         * lib/fdutimensat.c (fdutimensat): Update signature.
5871         * lib/utimens.c (fdutimens): Likewise.
5872         (gl_futimens): Delete.
5873         (utimens, lutimens): Update callers.
5874         * lib/futimens.c (futimens): Likewise.
5875         * tests/test-fdutimensat.c: Likewise.
5876         * tests/test-utimens.c: Likewise.
5877         * tests/test-futimens.h: Update comment.
5878         * NEWS: Mention this.
5879         Suggested by Paul Eggert.
5880
5881 2010-09-17  Bruno Haible  <bruno@clisp.org>
5882
5883         Take over the maintenance of some older macros from Autoconf.
5884         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
5885         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
5886         GNU Autoconf.
5887         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
5888         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
5889
5890 2010-09-17  Eric Blake  <eblake@redhat.com>
5891
5892         fdutimensat: drop atflag validation
5893         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
5894         with valid fd, to close a race scenario where futimens is
5895         unsupported and FILE was replaced by a symlink.
5896         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
5897         accordingly.
5898         Suggested by Paul Eggert.
5899
5900 2010-09-16  Bruno Haible  <bruno@clisp.org>
5901
5902         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
5903         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
5904
5905 2010-09-16  Bruno Haible  <bruno@clisp.org>
5906
5907         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
5908         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
5909         login_tty exists.
5910         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5911
5912 2010-09-16  Bruno Haible  <bruno@clisp.org>
5913
5914         login_tty: Make the replacement code work on BSD systems.
5915         * lib/login_tty.c: Include <sys/ioctl.h>.
5916         (login_tty): Use ioctl TIOCSCTTY when available.
5917         * modules/login_tty (Depends-on): Add sys_ioctl.
5918         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5919
5920 2010-09-16  Bruno Haible  <bruno@clisp.org>
5921
5922         login_tty: Stricter unit test.
5923         * modules/login_tty-tests (Depends-on): Add tcgetsid.
5924         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
5925         and tcgetsid() after login_tty.
5926         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
5927
5928 2010-09-16  Bruno Haible  <bruno@clisp.org>
5929
5930         New module 'tcgetsid'.
5931         * lib/tcgetsid.c: New file.
5932         * m4/tcgetsid.m4: New file.
5933         * modules/tcgetsid: New file.
5934         * modules/termios (Depends-on): Add c++defs, warn-on-use.
5935         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
5936         GNULIB_TCGETSID, HAVE_TCGETSID.
5937         * lib/termios.in.h: Include <sys/types.h>.
5938         (tcgetsid): New declaration.
5939         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
5940         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
5941         * doc/posix-functions/tcgetsid.texi: Mention the new module.
5942         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
5943
5944 2010-09-16  Bruno Haible  <bruno@clisp.org>
5945
5946         Tests for module 'termios'.
5947         * modules/termios-c++-tests: New file.
5948         * modules/termios-tests: New file.
5949         * tests/test-termios-c++.cc: New file.
5950         * tests/test-termios.c: New file.
5951
5952         New module 'termios'.
5953         * modules/termios: New file.
5954         * lib/termios.in.h: New file.
5955         * m4/termios_h.m4: New file.
5956         * doc/posix-headers/termios.texi: Mention the new module.
5957
5958 2010-09-16  Eric Blake  <eblake@redhat.com>
5959
5960         fdutimensat: add an atflag parameter
5961         * lib/fdutimensat.c (fdutimensat): Add new parameter.
5962         * lib/utimens.h (fdutimensat): Update prototype.
5963         * tests/test-fdutimensat.c: Adjust test to match.
5964         * NEWS: Document the change.
5965         Suggested by Paul Eggert.
5966
5967 2010-09-16  Bruno Haible  <bruno@clisp.org>
5968
5969         Fix typos in comments.
5970         * lib/striconveh.h: Fix typo in comment.
5971         * lib/login_tty.c (login_tty): Likewise.
5972
5973 2010-09-15  Bruno Haible  <bruno@clisp.org>
5974
5975         stdlib: clarify MirBSD WEXITSTATUS bug
5976         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
5977         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5978
5979 2010-09-15  Eric Blake  <eblake@redhat.com>
5980
5981         stdlib: work around MirBSD WEXITSTATUS bug
5982         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
5983         * modules/stdlib (Depends-on): Add sys_wait.
5984         * tests/test-sys_wait.c (main): Enhance test.
5985         * tests/test-stdlib.c (main): Likewise.
5986         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
5987
5988         docs: mention MacOS issue with WEXITSTATUS(constant)
5989         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
5990         issue.
5991         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5992
5993         strnlen: add tests
5994         * modules/strnlen-tests: New file.
5995         * tests/test-strnlen.c: Likewise.
5996
5997 2010-09-14  Bruno Haible  <bruno@clisp.org>
5998
5999         unistr/base: Avoid link errors when module 'libunistring' is also used.
6000         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
6001         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
6002         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
6003         Declare also when HAVE_LIBUNISTRING is set.
6004         Reported by Pádraig Brady <P@draigbrady.com>.
6005
6006 2010-09-14  Eric Blake  <eblake@redhat.com>
6007
6008         test-rawmemchr: make more robust
6009         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
6010         (Depends-on, configure.ac): Add needed prerequisites to use it.
6011         * modules/memchr-tests (Files, Depends-on, configure.ac):
6012         Likewise, to avoid implicit reliance on memchr module prereqs.
6013         * tests/test-memchr.c (main): Ensure proper masking.
6014         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
6015         reads.
6016
6017         memchr: detect glibc Alpha bug
6018         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
6019         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
6020         Alpha.
6021         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
6022         * tests/test-memchr.c (main): Enhance test.
6023         Reported by Nelson H. F. Beebe.
6024
6025 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6026
6027         fts, getcwd, glob: audit for dirfd returning -1
6028         * lib/fts.c (opendir): Remove #define; no longer used.
6029         (opendirat): New arg PDIR_FD.  All callers changed.
6030         (fts_build, _opendir2): Use new opendirat to avoid the need for
6031         dirfd, or for checking whether dirfd returns a negative value.
6032         Don't use opendir; always use openat followed by fdopendir.
6033         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
6034         it.
6035         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
6036         returns -1 here.
6037         * modules/fts (Depends-on): Remove dirfd.
6038         * modules/getcwd (Depends-on): Likewise.
6039
6040 2010-09-13  Eric Blake  <eblake@redhat.com>
6041
6042         float: fix broken MirBSD header
6043         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
6044         * doc/posix-headers/float.texi (float.h): Document it.
6045
6046 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6047
6048         fts: use O_NOFOLLOW to avoid race condition when opening a directory
6049         * lib/fts.c (opendirat): New arg extra_flags.
6050         (__opendir2): Use it to avoid following symlinks when opening
6051         a directory, if symlinks are not supposed to be followed.  See
6052         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
6053
6054         fdopendir: preserve argument fd before returning
6055         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
6056         (fdopendir_with_dup, fd_clone_opendir): New static functions.
6057         (fdopendir): Use them, arranging for FD to be open to the same
6058         directory that it was when it started.  (It might be temporarily
6059         closed while fdopendir is running, so this not thread- or
6060         signal-safe.)  Be careful to do the right thing even when file
6061         descriptors are scarce and dup fails with errno == EMFILE.  See
6062         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
6063
6064 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
6065
6066         regex: Pass the system regex if its only problem is 32-bit regoff_t.
6067         * NEWS: Document change.
6068         * m4/regex.m4: Disable test for regoff_t size.
6069
6070 2010-09-13  Jim Meyering  <meyering@redhat.com>
6071
6072         fts: don't operate on an invalid file descriptor after failed dup
6073         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
6074         negative file descriptor.
6075
6076 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
6077
6078         savedir: add streamsavedir, deprecate fdsavedir
6079         * NEWS: Mention deprecation of fdsavedir.
6080         * lib/savedir.c (streamsavedir): New extern function, whose name
6081         ends in "savedir" to be consistent with the others.  This differs
6082         from savedirstream in that it doesn't close its argument.  The
6083         next version of GNU tar will use this instead of fdsavedir, to
6084         avoid some race conditions and conserve file descriptors.
6085         (savedirstream): Reimplement as a wrapper around streamsavedir.
6086         (fdsavedir): Add a comment deprecating this function.  As far as
6087         I know, only GNU tar used it, and GNU tar doesn't need it any more.
6088         * lib/savedir.h (streamsavedir): New decl.
6089         (fdsavedir): Add a comment deprecating this.
6090
6091 2010-09-10  Bruno Haible  <bruno@clisp.org>
6092
6093         langinfo: Fix last commit.
6094         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
6095         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
6096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6097
6098 2010-09-10  Bruno Haible  <bruno@clisp.org>
6099
6100         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
6101         * lib/progreloc.c (O_EXEC): Define fallback.
6102
6103 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
6104
6105         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
6106         * NEWS: Document recent changes to fcntl-h.
6107         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
6108         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
6109         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
6110         Similarly for O_SEARCH; this last was already true, but not documented.
6111         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
6112         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
6113         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
6114         Likewise.
6115         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
6116         is zero, not whether it is defined.
6117         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
6118         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
6119         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
6120
6121 2010-09-10  Bruno Haible  <bruno@clisp.org>
6122
6123         langinfo, nl_langinfo: Fix for IRIX 5.3.
6124         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
6125         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
6126         HAVE_LANGINFO_YESEXPR.
6127         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
6128         HAVE_LANGINFO_YESEXPR.
6129         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
6130         HAVE_LANGINFO_T_FMT_AMPM is 0.
6131         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
6132         HAVE_LANGINFO_YESEXPR is 0.
6133         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
6134         NOEXPR.
6135         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
6136         * doc/posix-functions/nl_langinfo.texi: Likewise.
6137         Reported by Eric Blake.
6138
6139 2010-09-10  Bruno Haible  <bruno@clisp.org>
6140
6141         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
6142         * doc/glibc-functions/login_tty.texi: Mention the include file problem
6143         on FreeBSD 8.0 and OpenBSD 4.6.
6144         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
6145         * m4/pty_h.m4 (gl_PTY_H): Likewise.
6146         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
6147         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
6148         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
6149         ac_includes_default.
6150         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
6151
6152 2010-09-09  Eric Blake  <eblake@redhat.com>
6153
6154         strsignal: work around NetBSD bug
6155         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
6156         * lib/string.in.h (includes): Likewise.
6157         * doc/posix-functions/strsignal.texi (strsignal): Document the
6158         bug.
6159         Reported by Nelson H. F. Beebe.
6160
6161         gnulib-tool: work with NetBSD /bin/sh
6162         * gnulib-tool (func_cache_var, func_cache_lookup_module)
6163         (func_get_description, func_get_comment, func_get_status)
6164         (func_get_notice, func_get_applicability, func_get_filelist)
6165         (func_get_dependencies, func_get_autoconf_early_snippet)
6166         (func_get_autoconf_snippet, func_get_automake_snippet)
6167         (func_get_include_directive, func_get_link_directive)
6168         (func_get_license, func_get_maintainer, func_import): Avoid
6169         shell syntax errors from parsing syntax extensions.
6170
6171 2010-09-09  Bruno Haible  <bruno@clisp.org>
6172
6173         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
6174         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
6175         a reliable way to determine whether the 'alias' command works.
6176
6177 2010-09-08  Jim Meyering  <meyering@redhat.com>
6178
6179         init.sh: penalize a set-x-impaired shell; don't disqualify it
6180         * tests/init.sh: Too many shells corrupt application stderr when
6181         you set -x, so we can't afford to disqualify them, since at least
6182         on Irix-6.5, that would disqualify all bourne shells.
6183         Instead, use a two-pass approach.
6184         On the first pass, try to find a shell that meets the stricter
6185         condition that set -x does not corrupt stderr.
6186         If no shell meets the stricter condition, retest each candidate
6187         shell, but without that extra condition.  Finally, when
6188         VERBOSE=yes is requested and set -x might cause trouble, simply
6189         issue a warning and refrain from enabling debug output.
6190
6191 2010-09-08  Eric Blake  <eblake@redhat.com>
6192
6193         unsetenv: fix OpenBSD bug
6194         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
6195         * doc/posix-functions/unsetenv.texi (unsetenv): Update
6196         documentation.
6197         Reported by Jim Meyering.
6198
6199         strtod: work around IRIX 6.5 bug
6200         * lib/strtod.c (strtod): Reparse number on shorter string if
6201         exponent parse was invalid.
6202         * tests/test-strtod.c (main): Add check for "0x1p 2".
6203         Reported by Tom G. Christensen.
6204
6205         getopt: optimize previous patch
6206         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
6207         empty variable.  Speed up awk script.
6208         Reported by Paolo Bonzini.
6209
6210 2010-09-08  Jim Meyering  <meyering@redhat.com>
6211
6212         test.sh: disqualify shells for which set -x corrupts stderr
6213         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
6214         and OpenBSD 4.7.  They make it so with "set -x", environment settings
6215         appear in stderr output.  For example, this command:
6216             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
6217         prints "P=1" on those two systems:
6218
6219 2010-09-08  Bruno Haible  <bruno@clisp.org>
6220
6221         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
6222         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
6223         commands, because some shells ignore redirections when there is an
6224         error in the command lookup.
6225         Reported by Eric Blake.
6226
6227 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
6228
6229         * lib/regex.h: Fix a mention of `regex_compile' (should be
6230         `re_compile_pattern').
6231         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
6232         (re_set_registers): Correct name of parameter in comment.
6233
6234         * doc/regex.texi: Add documentation for missing syntax flags.
6235         Remove commented-out documentation of defunct syntax option
6236         RE_NO_EMPTY_ALTS.
6237         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
6238         Add documentation of re_set_registers.
6239         Document trick to re-use a pattern buffer by setting fastmap manually.
6240         Update documentation of struct re_pattern_buffer per public members.
6241         Uncomment documentation of equivalence class operators and
6242         collating symbol operators, since they are now implemented,
6243         Explain leftmost-longest matching in relation to alternatives.
6244         Tidy documentation of substring matching.
6245         Remove POSIX documentation, which is done better in
6246         glibc, and refer the reader there. Keep BSD API documentation, as
6247         that is not readily available elsewhere.
6248
6249 2010-09-07  Eric Blake  <eblake@redhat.com>
6250
6251         getopt: handle POSIXLY_CORRECT set but not exported
6252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
6253         export state of POSIXLY_CORRECT, due to bash set -o posix.
6254         Reported by Dustin J. Mitchell.
6255
6256 2010-09-05  Bruno Haible  <bruno@clisp.org>
6257
6258         gnulib-tool: Highlight the changed options.
6259         * gnulib-tool (func_usage): Display the --import, --add-import,
6260         --remove-import explanations in bold font.
6261
6262 2010-09-06  Karl Berry  <karl@gnu.org>
6263
6264         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
6265
6266 2010-09-05  Bruno Haible  <bruno@clisp.org>
6267
6268         uniwidth/width: Update comment.
6269         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
6270         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
6271
6272 2010-09-05  Bruno Haible  <bruno@clisp.org>
6273
6274         isinf, isnan: Relax license.
6275         * modules/isinf (License): Change from GPL to LGPL, with consent from
6276         Ben Pfaff.
6277         * modules/isnan (License): Likewise.
6278         Requested by Ludovic Courtès.
6279
6280 2010-09-04  Bruno Haible  <bruno@clisp.org>
6281
6282         gnulib-tool: Help migration from --import to --add-import or --update.
6283         * gnulib-tool: Emit a verbose error message when --import is used
6284         without any module name.
6285
6286 2010-09-04  Bruno Haible  <bruno@clisp.org>
6287
6288         Update doc about gnulib-tool.
6289         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
6290         'gnulib-tool --update' in more detail.
6291         Reported by Eric Blake.
6292
6293 2010-09-04  Bruno Haible  <bruno@clisp.org>
6294
6295         gnulib-tool: Change --import. New options --add/remove-import.
6296         * gnulib-tool: New options --add-import, --remove-import.
6297         (func_usage): Document them.
6298         (have_associative): Define always.
6299         (func_import): In import mode, don't merge the specified settings with
6300         the cached settings. Implement remove-import mode.
6301         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
6302         Explain when to use them versus --import.
6303         (Simple update): Use --add-import instead of --import.
6304         * NEWS: Mention the change.
6305
6306 2010-09-04  Bruno Haible  <bruno@clisp.org>
6307
6308         * doc/gnulib-tool.texi (Initial import): Update paragraph about
6309         separate gnulib.mk.
6310
6311 2010-09-04  Bruno Haible  <bruno@clisp.org>
6312
6313         gnulib-tool: Don't talk about CVS any more.
6314         * gnulib-tool (func_usage, func_import): Write "version control"
6315         instead of CVS.
6316
6317 2010-09-04  Jim Meyering  <meyering@redhat.com>
6318
6319         maint.mk: avoid obscure sc_copyright_check failure in coreutils
6320         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
6321         false positives (whose names may be ill-chosen) when searching
6322         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
6323         would cause a false-positive.
6324
6325         avoid coreutils "make distcheck" failure
6326         Coreutils tests with an absolute build directory name that contains
6327         a space.  Not quoting this directory name caused a failure.
6328         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
6329         * tests/test-vc-list-files-cvs.sh: Likewise.
6330
6331 2010-09-04  Bruno Haible  <bruno@clisp.org>
6332
6333         gnulib-tool: Avoid error when run in a package without Makefile.am.
6334         * gnulib-tool: When collecting the m4dirs in a package that does not
6335         have a Makefile.am, eliminate those directories that contain no
6336         gnulib-cache.m4. Fix expression that counts these directories.
6337
6338 2010-09-04  Bruno Haible  <bruno@clisp.org>
6339
6340         update-copyright test: Improve output when perl is missing or too old.
6341         * tests/test-update-copyright.sh: Move test of Perl version down after
6342         the test whether Perl exists. Provide an explanation relating Perl's
6343         error message to Automake's SKIP: message.
6344
6345 2010-09-04  Bruno Haible  <bruno@clisp.org>
6346
6347         Don't augment PATH in TESTS_ENVIRONMENT.
6348         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
6349         set abs_aux_dir instead of augmenting PATH.
6350         * modules/vc-list-files-tests (Makefile.am): Likewise.
6351         * tests/test-update-copyright.sh: Augment PATH here.
6352         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
6353         path_prepend_.
6354         * tests/test-vc-list-files-git.sh: Likewise.
6355
6356 2010-09-04  Jim Meyering  <meyering@redhat.com>
6357
6358         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
6359         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
6360
6361 2010-09-04  Bruno Haible  <bruno@clisp.org>
6362
6363         strdup: Fix compilation error in C++ mode.
6364         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
6365         the macro.
6366
6367 2010-09-04  Bruno Haible  <bruno@clisp.org>
6368
6369         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
6370         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
6371         macro into a function.
6372         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6373
6374 2010-09-04  Bruno Haible  <bruno@clisp.org>
6375
6376         Set PATH_SEPARATOR the same way autoconf does.
6377         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
6378         the value of PATH_SEPARATOR the same way autoconf-generated configure
6379         scripts do.
6380         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
6381         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
6382
6383 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6384
6385         Set PATH_SEPARATOR the same way autoconf does.
6386         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
6387         the same way autoconf-generated configure scripts do.
6388         * posix-modules: Likewise.
6389
6390 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
6391
6392         hash: fix safe_hasher const typo
6393         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
6394         const; otherwise, there is a type error later.
6395
6396 2010-09-02  Jim Meyering  <meyering@redhat.com>
6397
6398         test-update-copyright.sh: require perl 5.8.0
6399         * tests/test-update-copyright.sh: Require 5.8.0,
6400         which Tom G. Christensen has confirmed is adequate,
6401         while 5.6.1 is not.
6402
6403 2010-09-02  Eric Blake  <eblake@redhat.com>
6404
6405         tests: init.sh improvements for re-exec'ing with zsh
6406         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
6407         -vx through shell re-exec.
6408         Reported by Tom G. Christensen.
6409
6410         wctype: fix typo in previous commit
6411         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
6412         Reported by Ludovic Courtès.
6413
6414 2010-09-02  Jim Meyering  <meyering@redhat.com>
6415
6416         test-update-copyright.sh: skip test if Perl is too old
6417         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
6418         Reported by Tom G. Christensen.
6419
6420 2010-09-02  Bruno Haible  <bruno@clisp.org>
6421
6422         wctype: Avoid compilation error on IRIX 6.5.30.
6423         * lib/wctype.in.h (iswblank): Declare with a replacement if
6424         REPLACE_ISWBLANK is set.
6425         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
6426         declared. Set REPLACE_ISWBLANK.
6427         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
6428         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
6429         * doc/posix-headers/wctype.texi: Likewise.
6430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6431
6432 2010-09-01  Bruno Haible  <bruno@clisp.org>
6433
6434         New module 'socketlib'.
6435         * modules/socketlib: New file.
6436         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
6437         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
6438         * modules/sockets (Depends-on): Add socketlib.
6439         Suggested by Sam Steingold <sds@gnu.org>.
6440
6441 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6442
6443         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
6444
6445         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
6446         when one needs search access to a directory but not read access.
6447         On systems where it is available, it works in some cases where
6448         O_RDONLY does not, namely on directories that are searchable but
6449         not readable, and which need only to be searchable.  If O_SEARCH
6450         is not available, fall back to the traditional method of using
6451         O_RDONLY.
6452
6453         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
6454         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
6455         when opening a directory that needs only to be searchable.
6456         * lib/chdir-safer.c (chdir_no_follow): Likewise.
6457         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
6458         * lib/openat-proc.c (openat_proc_name): Likewise.
6459         * lib/openat.c (openat_needs_fchdir): Likewise.
6460         * lib/save-cwd.c (save_cwd): Likewise.
6461         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
6462
6463 2010-08-28  Bruno Haible  <bruno@clisp.org>
6464
6465         New module 'host-cpu-c-abi'.
6466         * modules/host-cpu-c-abi: New file.
6467         * m4/host-cpu-c-abi.m4: New file, based on part of
6468         clisp/src/m4/general.m4.
6469         Requested by Sam Steingold <sds@gnu.org>.
6470
6471 2010-08-31  Eric Blake  <eblake@redhat.com>
6472         and Jim Meyering  <meyering@redhat.com>
6473
6474         hash: factor, and guard against misbehaving hasher function
6475         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
6476         of table->hasher's return value.  Also protect against a hash value
6477         so large that adding it to table->bucket results in a NULL pointer.
6478         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
6479         Use it in place of open-coded check-and-abort.
6480
6481 2010-08-30  Bruno Haible  <bruno@clisp.org>
6482
6483         hash: silence spurious clang warning
6484         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
6485         Reported by Eric Blake.
6486
6487 2010-08-30  Eric Blake  <eblake@redhat.com>
6488
6489         strstr, memmem, strcasestr: avoid leaked shell message
6490         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
6491         FreeBSD.
6492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6493         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6494
6495         tests: silence clang warning
6496         * tests/test-malloca.c (do_allocation): Avoid dead store.
6497
6498 2010-08-29  Bruno Haible  <bruno@clisp.org>
6499
6500         gettext: Fix recent mistake.
6501         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
6502
6503 2010-08-29  Bruno Haible  <bruno@clisp.org>
6504
6505         selinux-h: Offer a --without-selinux option.
6506         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
6507         --without-selinux was specified, skip all tests and define
6508         HAVE_SELINUX_SELINUX_H to 0.
6509         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
6510         set LIB_SELINUX to empty.
6511         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
6512         gl_LIBSELINUX. If --without-selinux was specified, replace
6513         selinux/context.h.
6514         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
6515
6516 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6517             Bruno Haible  <bruno@clisp.org>
6518
6519         Make the module 'realloc-gnu' work again on AIX and OSF/1.
6520         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
6521         of HAVE_REALLOC.
6522         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
6523         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
6524         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
6525         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
6526
6527 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6528             Bruno Haible  <bruno@clisp.org>
6529
6530         Make the module 'calloc-gnu' work again on AIX and OSF/1.
6531         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
6532         HAVE_CALLOC.
6533         * lib/xmalloc.c: Update accordingly.
6534         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
6535         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
6536         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
6537
6538 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6539             Bruno Haible  <bruno@clisp.org>
6540
6541         Make the module 'malloc-gnu' work again on AIX and OSF/1.
6542         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
6543         HAVE_MALLOC.
6544         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
6545         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
6546         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
6547
6548 2010-08-29  Bruno Haible  <bruno@clisp.org>
6549
6550         Update modules list.
6551         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
6552         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
6553         (String handling <string.h>): Add astrxfrm.
6554         (File system functions): Add readlinkat.
6555
6556 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6557
6558         Tests for module 'realloc-gnu'.
6559         * modules/realloc-gnu-tests: New file.
6560         * tests/test-realloc-gnu.c: New file.
6561
6562         Tests for module 'calloc-gnu'.
6563         * modules/calloc-gnu-tests: New file.
6564         * tests/test-calloc-gnu.c: New file.
6565
6566         Tests for module 'malloc-gnu'.
6567         * modules/malloc-gnu-tests: New file.
6568         * tests/test-malloc-gnu.c: New file.
6569
6570 2010-08-28  Bruno Haible  <bruno@clisp.org>
6571
6572         Rename module 'realloc' -> 'realloc-gnu'.
6573         * modules/realloc-gnu: New file, copied from modules/realloc.
6574         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
6575         obsolete.
6576         * modules/mgetgroups (Depends-on): Update.
6577         * doc/posix-functions/realloc.texi: Update.
6578         * NEWS: Mention the change.
6579
6580         Rename module 'calloc' -> 'calloc-gnu'.
6581         * modules/calloc-gnu: New file, copied from modules/calloc.
6582         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
6583         obsolete.
6584         * doc/posix-functions/calloc.texi: Update.
6585         * NEWS: Mention the change.
6586
6587         Rename module 'malloc' -> 'malloc-gnu'.
6588         * modules/malloc-gnu: New file, copied from modules/malloc.
6589         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
6590         obsolete.
6591         * modules/argp (Depends-on): Update.
6592         * modules/regex (Depends-on): Update.
6593         * doc/posix-functions/malloc.texi: Update.
6594         * NEWS: Mention the change.
6595
6596 2010-08-28  Eric Blake  <eblake@redhat.com>
6597
6598         pread, pwrite: add missing dependency
6599         * modules/pread (Depends-on): Add extensions.
6600         * modules/pwrite (Depends-on): Likewise.
6601
6602 2010-08-28  Bruno Haible  <bruno@clisp.org>
6603
6604         unistr/u*-strchr: Fix tests dependencies.
6605         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
6606         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
6607         Reported by Ian Beckwith <ianb@erislabs.net>.
6608
6609 2010-08-28  Bruno Haible  <bruno@clisp.org>
6610
6611         read-file: Don't occupy too much unused memory.
6612         * lib/read-file.c (fread_file): Shrink the buffer at the end.
6613
6614 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
6615             Eric Blake  <eblake@redhat.com>
6616             Bruno Haible  <bruno@clisp.org>
6617
6618         read-file: Avoid memory reallocations with regular files.
6619         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
6620         (fread_file): With regular files, use the remaining length as the
6621         initial buffer size.  Check against overflow.
6622         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
6623         sys_stat.
6624
6625 2010-08-28  Bruno Haible  <bruno@clisp.org>
6626
6627         ftello: Relax license.
6628         * modules/ftello (License): Relax to LGPLv2+.
6629         Reported by Eric Blake.
6630
6631 2010-08-28  Bruno Haible  <bruno@clisp.org>
6632
6633         Avoid relocwrapper link errors due to gnulib replacement functions.
6634         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
6635         function.
6636         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6637
6638 2010-08-28  Bruno Haible  <bruno@clisp.org>
6639
6640         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
6641         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
6642         defined.
6643         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
6644         Suggested by Eric Blake.
6645
6646 2010-08-28  Bruno Haible  <bruno@clisp.org>
6647
6648         sys_socket, netdb: Ensure socklen_t gets defined.
6649         * modules/sys_socket (Depends-on): Add socklen.
6650         * modules/netdb (Depends-on): Likewise.
6651         * modules/getaddrinfo (Depends-on): Remove socklen.
6652         * modules/getsockopt (Depends-on): Likewise.
6653         * modules/setsockopt (Depends-on): Likewise.
6654         * tests/test-sys_socket.c: Check that socklen_t is defined.
6655         * tests/test-netdb.c: Likewise.
6656         * m4/socklen.m4: Update comments.
6657         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6658
6659 2010-08-27  Eric Blake  <eblake@redhat.com>
6660
6661         login_tty: add missing dependency
6662         * modules/login_tty (Depends-on): Add pty.
6663
6664 2010-08-26  Eric Blake  <eblake@redhat.com>
6665
6666         lib-symbol-versions: fix m4 quoting
6667         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
6668         format for AC_LINK_IFELSE.
6669
6670         glob: fix compile test
6671         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
6672
6673         btowc: fix missing file
6674         * modules/btowc (Files): Also ship locale-fr.m4.
6675
6676         lseek: fix link test
6677         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
6678         AC_LINK_IFELSE.
6679
6680         include_next: silence autoconf 2.68 warning
6681         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
6682         AC_COMPILE_IFELSE as special.
6683         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
6684         autoconf < 2.68.
6685
6686         acl: fix compilation test
6687         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
6688         AC_COMPILE_IFELSE.
6689
6690 2010-08-26  Bruno Haible  <bruno@clisp.org>
6691
6692         Modernize AC_TRY_RUN invocations.
6693         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
6694         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6695         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
6696         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
6697         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6698         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
6699         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6700         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6701         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6702         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6703         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6704         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6705         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6706         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6707         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6708         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6709         gl_MBRLEN_NUL_RETVAL): Likewise.
6710         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6711         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
6712         Likewise.
6713         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6714         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6715         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6716         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6717         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6718         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6719         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
6720         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6721         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
6722         Likewise.
6723         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
6724         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
6725         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6726         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6727         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6728         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6729         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6730         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
6731         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6733
6734 2010-08-26  Bruno Haible  <bruno@clisp.org>
6735
6736         Modernize AC_TRY_LINK invocations.
6737         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
6738         AC_TRY_LINK.
6739         * m4/argp.m4 (gl_ARGP): Likewise.
6740         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6741         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6742         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
6743         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6744         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6745         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
6746         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6747         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6748         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6749         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
6750         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6751         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
6752         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
6753         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6754         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
6755         * m4/hostent.m4 (gl_HOSTENT): Likewise.
6756         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6757         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
6758         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
6759         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
6760         Likewise.
6761         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
6762         Likewise.
6763         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
6764         Likewise.
6765         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
6766         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
6767         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
6768         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6769         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6770         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
6771         * m4/servent.m4 (gl_SERVENT): Likewise.
6772         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6773         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6774         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6775         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6776         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6777         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6778         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6779         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6780         * modules/tsearch-tests (configure.ac): Likewise.
6781
6782 2010-08-26  Bruno Haible  <bruno@clisp.org>
6783
6784         Modernize AC_TRY_COMPILE invocations.
6785         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
6786         AC_TRY_COMPILE.
6787         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
6788         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
6789         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
6790         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
6791         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
6792         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6793         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6794         * m4/lock.m4 (gl_LOCK): Likewise.
6795         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
6796         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6797         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
6798         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6799         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
6800         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
6801         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
6802         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
6803         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
6804         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
6805         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
6806         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6807         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
6808         extraneous semicolon.
6809
6810 2010-08-26  Jim Meyering  <meyering@redhat.com>
6811
6812         stat-time: relax license LGPL
6813         * modules/stat-time (License): Change from GPL to LGPL,
6814         with consent from all contributors, for use in libguile.
6815         Requested by Ludovic Courtès.
6816
6817 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
6818
6819         poll: return immediately on POLLHUP.
6820         * lib/poll.c (poll): Always set timeout before wait_timeout is
6821         computed.
6822
6823 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6824
6825         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
6826         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
6827         rmdir ("dir/.//"), unlinkat.
6828
6829 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6830
6831         stdbool: avoid spurious failure with modern xlc
6832         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
6833
6834 2010-08-24  Bruno Haible  <bruno@clisp.org>
6835
6836         getloadavg: simplify code
6837         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
6838         gl_have_func. Update comments.
6839
6840 2010-08-24  Eric Blake  <eblake@redhat.com>
6841
6842         getloadavg: don't define SVR4 on cygwin
6843         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
6844         only define SVR4 when -lkvm is required.
6845         Reported by Yaakov Selkowitz.
6846
6847 2010-08-24  Bruno Haible  <bruno@clisp.org>
6848
6849         priv-set: fix comment
6850         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
6851
6852 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
6853
6854         priv-set: fix comments
6855         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
6856         to match code, as suggested by David Bartley in:
6857         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
6858
6859 2010-08-23  Eric Blake  <eblake@redhat.com>
6860
6861         stdbool: avoid rejecting clang
6862         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
6863         * tests/test-stdbool.c: Enable more tests if using the system
6864         <stdbool.h> instead of the gnulib replacement.
6865         (main): Move xlc bug test to a runtime test for all compilers.
6866         Reported by Anders Kaseorg.
6867
6868         argz: fix shell quoting issue
6869         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
6870         Reported by Charles Wilson.
6871
6872 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
6873             Erik Faye-Lund <kusmabite@gmail.com>
6874
6875         poll, select: handle ERROR_BROKEN_PIPE.
6876         * lib/poll.c (win32_compute_revents): Return POLLHUP when
6877         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
6878         * lib/select.c (win32_compute_revents): Do not mark a pipe
6879         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
6880
6881 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
6882
6883         fts: allow compilation with C++
6884         * lib/fts_.h: Specify extern "C" linkage with C++.
6885
6886 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6887
6888         Fix gnulib-tool sed script de-commentation for AIX sed.
6889         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
6890         sed.
6891
6892 2010-08-17  Eric Blake  <eblake@redhat.com>
6893
6894         test-stddef: test for (some) offsetof bugs
6895         * tests/test-stddef.c: Enhance test to ensure correct type of
6896         offsetof.
6897         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
6898         that we are not fixing at this time.
6899
6900 2010-08-15  Bruno Haible  <bruno@clisp.org>
6901
6902         stpncpy: Allow stpncpy to be defined as a macro.
6903         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
6904         if it's already correctly declared.
6905         * lib/string.in.h (stpncpy): Undefine before redefining.
6906         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
6907
6908 2010-08-14  Bruno Haible  <bruno@clisp.org>
6909
6910         Rename module 'memxfrm' to 'amemxfrm'.
6911         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
6912         (amemxfrm): Renamed from memxfrm.
6913         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
6914         (amemxfrm): Renamed from memxfrm.
6915         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
6916         * NEWS: Mention the change.
6917         * MODULES.html.sh (String handling <string.h>): Update.
6918         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
6919         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
6920         * lib/unicase/u16-casexfrm.c: Likewise.
6921         * lib/unicase/u32-casexfrm.c: Likewise.
6922         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
6923         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
6924         * lib/uninorm/u16-normxfrm.c: Likewise.
6925         * lib/uninorm/u32-normxfrm.c: Likewise.
6926         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
6927         memxfrm.
6928         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
6929         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
6930         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
6931         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
6932         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
6933         Suggested by Paul Eggert.
6934
6935 2010-08-14  Bruno Haible  <bruno@clisp.org>
6936
6937         Tests for module 'astrxfrm'.
6938         * modules/astrxfrm-tests: New file.
6939         * tests/test-astrxfrm.c: New file.
6940
6941         New module 'astrxfrm'.
6942         * lib/astrxfrm.h: New file.
6943         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
6944         * modules/astrxfrm: New file.
6945
6946 2010-08-14  Reuben Thomas <rrt@sc3d.org>
6947
6948         regex: Tweak doc.
6949         * doc/regex.texi (Overview): Don't mention regex.c.
6950         (GNU Regular Expression Compiling): Likewise.
6951         (Match-end-of-line Operator): Mention 'not_eol'.
6952
6953 2010-08-14  Brian Gough  <bjg@gnu.org>
6954             Bruno Haible  <bruno@clisp.org>
6955
6956         git-merge-changelog: add doc relating to use with bzr and hg.
6957         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
6958
6959 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
6960
6961         pthread: fix pthread.h creation for srcdir != builddir
6962         * modules/pthread (Makefile.am): Fix the rule to work also in a
6963         non-srcdir build.
6964
6965 2010-08-13  Karl Berry  <karl@gnu.org>
6966
6967         * doc/regex.texi (Predefined Syntaxes): @smallexample.
6968         * doc/posix-*/*: force line break before @url of POSIX
6969         specifications.
6970         Suggested by Werner Lemberg.
6971
6972 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6973
6974         strtod: fix const diagnostic
6975         * lib/strtod.c (strtod): Don't assign const char * to char *,
6976         as this elicits a warning from GCC when warnings are enabled.
6977
6978 2010-08-10  Pádraig Brady <P@draigbrady.com>
6979         and Eric Blake  <eblake@redhat.com>
6980
6981         copy-acl: ignore ENOTSUP on HP-UX
6982         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
6983         so that it is available for HP-UX.
6984         * lib/copy-acl.c (qcopy_acl): Use it.
6985         Reported by Patrick M. Callahan.
6986
6987 2010-08-10  Eric Blake  <eblake@redhat.com>
6988
6989         open, chown: relax license
6990         * modules/open (License): Change to LGPLv2+, with consent by all
6991         authors, for use in augeas.
6992         * modules/chown (License): Likewise.
6993         * modules/lchown (Likewise): Likewise.
6994         Requested by Adam Stokes.
6995
6996 2010-08-09  Karl Berry  <karl@gnu.org>
6997
6998         * build-aux/ar-lib: new file, import from Automake.
6999         * config/srclist.txt: autocheck for updates.
7000
7001 2010-08-09  Eric Blake  <eblake@redhat.com>
7002
7003         readlinkat: adjust client modules
7004         * modules/areadlinkat (Depends-on): Use readlinkat, not
7005         symlinkat.
7006         * modules/areadlinkat-with-size (Depends-on): Likewise.
7007
7008         mknod: be more vocal about danger of running tests as root
7009         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
7010         root, since that is just asking for problems.
7011         Suggested by Bruno Haible, based on a report by Rainer Tammer.
7012
7013         readlinkat: split into its own module
7014         * modules/symlinkat: Split readlinkat...
7015         * modules/readlinkat: ...into separate module.
7016         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
7017         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
7018         * lib/symlinkat.c (readlinkat): Move...
7019         * lib/readlinkat.c: ...into new file.
7020         * modules/symlinkat-tests: Split readlinkat test...
7021         * modules/readlinkat-tests: ...into separate module.
7022         * tests/test-symlinkat.c: Split...
7023         * tests/test-readlinkat.c: ...into new file.
7024         * NEWS: Document the split.
7025         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7026         * lib/unistd.in.h (readlinkat): Likewise.
7027         Suggested by Bruno Haible.
7028
7029 2010-08-08  Bruno Haible  <bruno@clisp.org>
7030
7031         memxfrm: Speed up.
7032         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
7033         that usually only one call to strxfrm is necessary for each string
7034         part.
7035         Reported by Paul Eggert <eggert@cs.ucla.edu>.
7036
7037 2010-08-07  Karl Berry  <karl@gnu.org>
7038
7039         * doc/posix-headers/limits.texi,
7040         * doc/posix-functions/malloc.texi,
7041         * doc/posix-functions/strsignal.texi: missing @item.
7042         * doc/ld-version-script.texi: spurious leading i.
7043         * doc/regex.texi (Interval Operators): no commas inside @var.
7044
7045 2010-08-01  Bruno Haible  <bruno@clisp.org>
7046
7047         Integrate the regex documentation.
7048         * doc/gnulib.texi: Define 'cn' index.
7049         (Regular expressions): New a chapter that includes regex.texi and
7050         regexprops-generic.texi.
7051         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
7052         syntax.
7053
7054         Whitespace cleanup.
7055         * doc/regex.texi: Remove trailing spaces.
7056
7057         Add regex documentation.
7058         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
7059         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
7060         Written by Kathy A. Hargreaves and Karl Berry.
7061
7062 2010-08-01  Bruno Haible  <bruno@clisp.org>
7063
7064         link: Update documentation.
7065         * doc/posix-functions/link.texi: Update regarding Solaris.
7066
7067 2010-07-31  Bruno Haible  <bruno@clisp.org>
7068
7069         Update modules list.
7070         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
7071         (String handling <string.h>): Add memcmp2, memxfrm.
7072         (Container data structures): Add xlist, xsublist, xoset.
7073         (Core language properties): Add alignof, unused-parameter.
7074         (Process control, Numeric conversion functions <stdlib.h>): Renamed
7075         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
7076         (Unibyte characters <ctype.h>): New section.
7077         (String handling <string.h>): New section.
7078         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
7079         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
7080         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
7081         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
7082         tan, tanh, tanl, y0, y1, yn.
7083         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
7084         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
7085         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
7086         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
7087         unlockpt, vdprintf, vdprintf-posix.
7088         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
7089         (File system functions): Add concat-filename, sys_file, sys_ioctl,
7090         xconcat-filename.
7091         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
7092         getdtablesize, pipe2, pipe2-safer.
7093         (Security): New section.
7094         (Networking functions): Add accept4.
7095         (Signal handling): Add sigpipe.
7096         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
7097         mbmemcasecoll.
7098         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
7099         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
7100         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
7101         pipe-filter-ii.
7102         (Misc): Add argp-version-etc, login_tty, parse-duration.
7103
7104 2010-07-31  Bruno Haible  <bruno@clisp.org>
7105
7106         Improve doc in MODULES.html.
7107         * modules/linkat (Description): Add the word "function".
7108         * modules/mkfifo (Description): Likewise.
7109         * modules/mknod (Description): Likewise.
7110         * modules/remove (Description): Likewise.
7111         * modules/renameat (Description): Likewise.
7112         * modules/stat (Description): Likewise.
7113         * modules/symlink (Description): Likewise.
7114         * modules/unlink (Description): Likewise.
7115
7116 2010-07-31  Bruno Haible  <bruno@clisp.org>
7117
7118         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
7119         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
7120         option --enable/disable-c++ instead of --enable/disable-cxx.
7121         * NEWS: Mention the change.
7122
7123 2010-07-31  Bruno Haible  <bruno@clisp.org>
7124
7125         readlink, areadlink: Relax test a bit.
7126         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
7127         alternative to ENOTDIR.
7128         * tests/test-areadlink.h (test_areadlink): Likewise.
7129         Reported by Rainer Tammer.
7130
7131 2010-07-31  Bruno Haible  <bruno@clisp.org>
7132
7133         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
7134         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
7135         character, perform the search using U_STRCHR.
7136         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
7137         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
7138         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
7139         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
7140         Suggested by Paolo Bonzini.
7141
7142 2010-07-31  Bruno Haible  <bruno@clisp.org>
7143
7144         unistr/u*-strstr: Fix dependencies.
7145         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
7146         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
7147         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
7148
7149 2010-07-31  Bruno Haible  <bruno@clisp.org>
7150
7151         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
7152         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
7153         the beginning of the loop.
7154         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
7155         cases in 'switch' statement.
7156
7157         unistr/u8-strchr: Fix several bugs.
7158         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
7159         the string. When not found, return NULL, not a pointer near the end.
7160
7161         More tests for unistr/u8-strchr.
7162         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
7163         that the function does not read past the first occurrence of the byte
7164         being searched.
7165         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
7166         * tests/unistr/test-u16-strchr.c (main): New function.
7167         * tests/unistr/test-u32-strchr.c (main): New function.
7168
7169 2010-07-31  Bruno Haible  <bruno@clisp.org>
7170
7171         posix-modules: Ignore backup files of documentation files.
7172         * posix-modules: grep only through files named *.texi.
7173
7174 2010-07-31  Bruno Haible  <bruno@clisp.org>
7175
7176         symlinkat: Fix documentation.
7177         * doc/posix-functions/readlinkat.texi: Fix module name.
7178
7179 2010-07-31  Bruno Haible  <bruno@clisp.org>
7180
7181         fchownat: Replace also when chown has the trailing slash bug.
7182         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
7183         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
7184         introduced on 2010-04-10.
7185         Reported by Rainer Tammer.
7186
7187 2010-07-31  Bruno Haible  <bruno@clisp.org>
7188
7189         linkat: Work around AIX 7.1 bug.
7190         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
7191         whether linkat handles trailing slash correctly. If not, replace linkat
7192         and define LINKAT_TRAILING_SLASH_BUG.
7193         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
7194         check whether (fd1,file1) points to a directory if file1 or file2 ends
7195         in a slash. Code taken from lib/link.c.
7196         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
7197         Reported by Rainer Tammer.
7198
7199 2010-07-31  Bruno Haible  <bruno@clisp.org>
7200
7201         Correctly determine whether pow is available in libc on AIX 7 with xlc.
7202         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
7203         This disables an xlc optimization that was causing wrong test results.
7204         Reported by Rainer Tammer.
7205
7206 2010-07-31  Bruno Haible  <bruno@clisp.org>
7207
7208         iconv: Work around AIX 6.1..7.1 bug.
7209         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
7210         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
7211         cross-compiling, guess no on all versions of AIX.
7212         Reported by Rainer Tammer.
7213
7214 2010-07-31  Bruno Haible  <bruno@clisp.org>
7215
7216         readlink: Relax test a bit.
7217         * tests/test-readlink.h (test_readlink): Allow different errno value
7218         when readlink is called with a file name that ends in / and refers to
7219         a file.
7220         Suggested by Eric Blake.
7221         Reported by Rainer Tammer.
7222
7223 2010-07-31  Bruno Haible  <bruno@clisp.org>
7224
7225         copysign: Does not require -lm on glibc systems.
7226         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
7227         gl_COMMON_DOUBLE_MATHFUNC.
7228         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
7229
7230 2010-07-31  Bruno Haible  <bruno@clisp.org>
7231
7232         duplocale: Work around AIX 7.1 bug.
7233         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
7234         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
7235         * lib/duplocale.c (rpl_duplocale): Update comment.
7236         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
7237         Reported by Rainer Tammer.
7238
7239 2010-07-30  Bruno Haible  <bruno@clisp.org>
7240
7241         dirfd: Avoid link error on AIX 7.1.
7242         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
7243         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
7244         exist, set REPLACE_DIRFD.
7245         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
7246         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
7247         * doc/posix-functions/dirfd.texi: Update.
7248         Reported by Rainer Tammer.
7249
7250 2010-07-30  Eric Blake  <eblake@redhat.com>
7251
7252         strtod: next round of AIX fixes
7253         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
7254         exponent.
7255         * tests/test-strtod.c (main): Enhance tests.
7256         * doc/posix-functions/strtod.texi (strtod): Document next bug.
7257         Reported by Rainer Tammer.
7258
7259         futimens: fix configure check
7260         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
7261         Reported by Bruno Haible.
7262
7263 2010-07-30  Bruno Haible  <bruno@clisp.org>
7264
7265         getline: Update regarding AIX.
7266         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
7267         Reported by Rainer Tammer.
7268
7269 2010-07-30  Bruno Haible  <bruno@clisp.org>
7270
7271         wcwidth: Drop replacement on AIX 7.
7272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
7273         AIX 7.
7274         Reported by Rainer Tammer.
7275
7276 2010-07-30  Bruno Haible  <bruno@clisp.org>
7277
7278         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
7279         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
7280         a 'char *'.
7281         Reported by Rainer Tammer.
7282
7283 2010-07-30  Bruno Haible  <bruno@clisp.org>
7284
7285         unlink: Update regarding AIX.
7286         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
7287         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
7288         Reported by Rainer Tammer.
7289
7290 2010-07-30  Bruno Haible  <bruno@clisp.org>
7291
7292         symlink: Update regarding AIX.
7293         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
7294         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
7295         Reported by Rainer Tammer.
7296
7297 2010-07-30  Bruno Haible  <bruno@clisp.org>
7298
7299         strndup: Update regarding AIX.
7300         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
7301         AIX 7.
7302         Reported by Rainer Tammer.
7303
7304 2010-07-30  Bruno Haible  <bruno@clisp.org>
7305
7306         stat: Update regarding AIX.
7307         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
7308         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
7309         Reported by Rainer Tammer.
7310
7311 2010-07-30  Bruno Haible  <bruno@clisp.org>
7312
7313         truncl: Fix autoconf test.
7314         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
7315         whether truncl works.
7316         Reported by Rainer Tammer.
7317
7318 2010-07-30  Bruno Haible  <bruno@clisp.org>
7319
7320         round: Update regarding AIX.
7321         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
7322         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
7323         Reported by Rainer Tammer.
7324
7325 2010-07-30  Bruno Haible  <bruno@clisp.org>
7326
7327         rename: Update regarding AIX.
7328         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
7329         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
7330         Reported by Rainer Tammer.
7331
7332 2010-07-30  Bruno Haible  <bruno@clisp.org>
7333
7334         printf.m4: Update regarding AIX.
7335         * m4/printf.m4: Update comments regarding AIX.
7336         Reported by Rainer Tammer.
7337
7338 2010-07-30  Bruno Haible  <bruno@clisp.org>
7339
7340         iconv: Update regarding AIX.
7341         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
7342         AIX 7.
7343         Reported by Rainer Tammer.
7344
7345 2010-07-30  Bruno Haible  <bruno@clisp.org>
7346
7347         getopt: Update regarding AIX.
7348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
7349         no on AIX.
7350         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
7351         Reported by Rainer Tammer.
7352
7353 2010-07-30  Bruno Haible  <bruno@clisp.org>
7354
7355         ldexpl; Update regarding AIX.
7356         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
7357         on AIX 7.
7358         Reported by Rainer Tammer.
7359
7360 2010-07-30  Bruno Haible  <bruno@clisp.org>
7361
7362         frexpl: Update regarding AIX.
7363         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
7364         on AIX 7.
7365         Reported by Rainer Tammer.
7366
7367 2010-07-30  Bruno Haible  <bruno@clisp.org>
7368
7369         open, fopen: Update regarding AIX.
7370         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
7371         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
7372         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
7373         * doc/posix-functions/fopen.texi: Likewise.
7374         Reported by Rainer Tammer.
7375
7376 2010-07-30  Bruno Haible  <bruno@clisp.org>
7377
7378         chown: Update doc regarding AIX.
7379         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
7380         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
7381         Reported by Rainer Tammer.
7382
7383 2010-07-30  Eric Blake  <eblake@redhat.com>
7384
7385         strtod: fix bug in replacement function on AIX
7386         * lib/strtod.c (strtod): Special case broken "0x" parse in
7387         underlying strtod.
7388         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
7389         * doc/posix-functions/strtod.texi (strtod): Likewise.
7390         Reported by Rainer Tammer.
7391
7392 2010-07-30  Bruno Haible  <bruno@clisp.org>
7393
7394         mbrlen: Fix cross-compilation guess for AIX.
7395         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
7396         guess. Leftover from 2008-12-22.
7397
7398 2010-07-30  Bruno Haible  <bruno@clisp.org>
7399
7400         mbrtowc: Fix cross-compilation guess for AIX.
7401         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
7402         guess. Leftover from 2008-12-21.
7403
7404 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
7405
7406         init.sh: work around trap limitation of some shells
7407         * tests/init.sh (setup_): Move exit trap outside of shell function.
7408
7409 2010-07-29  Eric Blake  <eblake@redhat.com>
7410
7411         strtod: aid debugging
7412         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
7413         understanding why strtod is rejected.
7414
7415 2010-07-28  Bruno Haible  <bruno@clisp.org>
7416
7417         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
7418         * lib/unistr/u8-chr.c: Include <string.h>.
7419         * tests/unistr/test-u8-chr.c: Likewise.
7420         * tests/unistr/test-u16-chr.c: Likewise.
7421         * tests/unistr/test-u32-chr.c: Likewise.
7422         * tests/unistr/test-u8-strchr.c: Likewise.
7423         * tests/unistr/test-u16-strchr.c: Likewise.
7424         * tests/unistr/test-u32-strchr.c: Likewise.
7425         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
7426         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
7427         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
7428         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
7429
7430 2010-07-28  Bruno Haible  <bruno@clisp.org>
7431
7432         Use spaces for indentation, not tabs.
7433         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7434
7435 2010-07-27  Bruno Haible  <bruno@clisp.org>
7436
7437         mbspcasecmp: Fix function specification.
7438         * lib/string.in.h (mbspcasecmp): Fix specification comment.
7439         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
7440         Reported by Eric Blake <eblake@redhat.com>.
7441
7442 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
7443
7444         timespec: use cast and not conditional, as truncation isn't possible
7445         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
7446         instead of a conditional.  Comment about the situation in more detail.
7447         This undoes most of the 2009-10-29 patch.
7448
7449 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
7450
7451         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
7452         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
7453         * lib/unistr/u8-strchr.c: Likewise.
7454         * modules/unistr/u8-chr: Depend on memchr.
7455
7456         unistr/u*-strchr: add tests
7457         * modules/unistr/u8-strchr-tests: New file.
7458         * modules/unistr/u16-strchr-tests: New file.
7459         * modules/unistr/u32-strchr-tests: New file.
7460         * tests/unistr/test-strchr.h: New file.
7461         * tests/unistr/test-u8-strchr.c: New file.
7462         * tests/unistr/test-u16-strchr.c: New file.
7463         * tests/unistr/test-u32-strchr.c: New file.
7464
7465         unistr/u*-chr: test multibyte sequences more
7466         * tests/unistr/test-chr.h: Do complete testing of the characters in the
7467         test vector.
7468         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
7469         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
7470         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
7471
7472         unistr/u*-chr: test multibyte sequences
7473         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
7474
7475         unistr/u*-chr: prepare for multibyte tests
7476         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
7477         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
7478         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
7479         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
7480         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
7481         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
7482
7483 2010-07-18  Bruno Haible  <bruno@clisp.org>
7484
7485         unistr/u8-strchr: Optimize non-ASCII argument case.
7486         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
7487         because the first byte often matches anyway.
7488         Reported by Pádraig Brady <P@draigbrady.com>.
7489
7490 2010-07-15  Karl Berry  <karl@gnu.org>
7491
7492         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
7493
7494 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
7495
7496         getcwd: on Solaris, work better if ancestors are inaccessible
7497         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
7498         buffer and size, try again with a large buffer.  This works better
7499         on Solaris, since its getcwd succeeds even if the path to the root
7500         is inaccessible, and this is helpful in common cases such as .zfs
7501         hidden directories.  Problem reported by J Chapman Flack in
7502         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
7503         Use system getcwd if it's declared, not merely if it's partly
7504         working; use the partly-working test only to avoid needless effort
7505         if the system getcwd fails.
7506         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
7507         comment that was already obsolete and is now even more obsolete.
7508         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
7509         now might call strdup.
7510
7511 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
7512
7513         pthread: Add enough so that coreutils/src/sort.c compiles.
7514         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
7515         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
7516         gnulib. Include <sched.h> and <time.h>, as per POSIX.
7517         Include <sys/types.h>, in case it defines pthread_t.
7518         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
7519         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
7520         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
7521         (pthread_rwlockattr_t, pthread_spinlock_t):
7522         New typedefs, if HAVE_PTHREAD_T is not defined.
7523         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
7524         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
7525         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
7526         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
7527         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
7528         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
7529         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
7530         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
7531         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
7532         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
7533         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
7534         New macros.
7535         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
7536         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
7537         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
7538         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
7539         (pthread_spin_unlock): New dummy functions.
7540         (pthread_create): Return EAGAIN; don't set errno.
7541         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
7542         require AC_C_INLINE.
7543         * modules/pthread (Depends-on): Add sched, time.
7544         (pthread.h): Use AM_V_GEN.
7545
7546 2010-07-13  Bruno Haible  <bruno@clisp.org>
7547
7548         striconveh: Don't malloc memory if the result buffer is sufficient.
7549         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
7550         buffer if its size is sufficient.
7551         Reported by Ludovic Courtès <ludo@gnu.org>.
7552
7553 2010-07-13  Bruno Haible  <bruno@clisp.org>
7554
7555         strtod: Add safety check.
7556         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
7557
7558 2010-07-12  Bruno Haible  <bruno@clisp.org>
7559
7560         Unify tests that set gl_cv_func_ldexpl_no_libm.
7561         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
7562         gl_FUNC_LDEXPL.
7563         (gl_FUNC_LDEXPL): Invoke it.
7564         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7565
7566 2010-07-12  Bruno Haible  <bruno@clisp.org>
7567
7568         Unify tests that set gl_cv_func_ldexp_no_libm.
7569         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
7570         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
7571         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
7572         (configure.ac): Simply invoke gl_FUNC_LDEXP.
7573         * modules/strtod (Files): Add m4/ldexp.m4.
7574
7575 2010-07-12  Bruno Haible  <bruno@clisp.org>
7576
7577         Unify tests that set gl_cv_func_frexpl_no_libm.
7578         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
7579         gl_FUNC_FREXPL_NO_LIBM.
7580         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
7581         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7582
7583 2010-07-12  Bruno Haible  <bruno@clisp.org>
7584
7585         Unify tests that set gl_cv_func_frexp_no_libm.
7586         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
7587         gl_FUNC_FREXP_NO_LIBM.
7588         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
7589         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
7590
7591 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7592
7593         memcoll: clarify sizes versus lengths, document better, and tweak perf
7594         * lib/memcoll.c (strcoll_loop, memcoll0):
7595         Improve quality of descriptive comments.  Name variables
7596         consistently as to whether they are lengths (which do not include
7597         terminating null) versus sizes (which do).
7598         * lib/xmemcoll.c (xmemcoll0): Likewise.
7599         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
7600         returned when s1size == 0; this is easier to compile and saves
7601         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
7602
7603 2010-07-12  Bruno Haible  <bruno@clisp.org>
7604
7605         Tests for module '_Exit'.
7606         * modules/_Exit-tests: New file.
7607         * tests/test-_Exit.sh: New file.
7608         * tests/test-_Exit.c: New file.
7609
7610         New module '_Exit'.
7611         * lib/stdlib.in.h (__attribute__): New macro.
7612         (_Exit): New declaration.
7613         * lib/_Exit.c: New file.
7614         * m4/_Exit.m4: New file.
7615         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
7616         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
7617         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
7618         * modules/_Exit: New file.
7619         * tests/test-stdlib-c++.cc (_Exit): Check signature.
7620         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
7621
7622 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
7623
7624         strtod: make it more-accurate typically, and don't require libm
7625         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
7626         Include limits.h.  Don't include string.h.
7627         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
7628         (locale_isspace): New function, so that no casts are needed to
7629         check whether *s is a space.
7630         (ldexp): Provide an unused dummy if not available.
7631         (scale_radix_exp, parse_number, underlying_strtod): New functions.
7632         (strtod): Use them.  This implementation prefers to use the
7633         underlying strtod if available, falling back on our own code
7634         only to fix known bugs.  This is more likely to produce an
7635         accurate result.  Also, it avoids the use of libm functions.
7636         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
7637         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
7638         was absent, but it caused a test failure with coreutils.
7639         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
7640         with libm.
7641         * modules/strtod (Makefile.am, Link): libm is no longer needed.
7642         * modules/strtod-tests (Makefile.am): Likewise.
7643
7644 2010-07-11  Pádraig Brady  <P@draigBrady.com>
7645             Bruno Haible  <bruno@clisp.org>
7646
7647         unistr/u8-strchr: Optimize ASCII argument case.
7648         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
7649
7650 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7651
7652         (x)memcoll: minor tweaks
7653         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
7654         is after the type that it qualifies.
7655         (memcoll0): Likewise.
7656         * lib/memcoll.h (memcoll0): Likewise.
7657         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
7658         * lib/xmemcoll.h (xmemcoll0): Likewise.
7659         * lib/memcoll.c (memcoll0): Correct the comment.  This function
7660         differs from memcoll in that the NUL byte is part of the argument.
7661         Omit the abort-checks, as performance is a real issue here.  Plus,
7662         the checks were wrong anyway (an off-by-one error).  Omit local
7663         variable 'diff', as it's a bit clearer that way.
7664         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
7665         no longer needed.
7666
7667 2010-07-08  Chen Guo <chenguo4@yahoo.com>
7668
7669         (x)memcoll: speedup when input is known to be NUL delimited
7670         * lib/memcoll.c: Include stdlib.
7671         (memcoll0) New function.
7672         (strcoll_loop) New function, refactored for use in both memcoll
7673         and memcoll0.
7674         * lib/memcoll.h: Add prototype for memcoll0.
7675         * lib/xmemcoll.c: (xmemcoll0) New function.
7676         (collate_error) New function, refactored for use in both xmemcoll
7677         and xmemcoll0.
7678         * lib/xmemcoll.h: Add prototype for xmemcoll0.
7679         * m4/memcoll.m4: add inline invocation.
7680
7681 2010-07-06  Pádraig Brady  <P@draigBrady.com>
7682
7683         * build-aux/bootstrap: Remove any local translations
7684         from the translation project synchronization directory,
7685         so that local only translations are not distributed.
7686
7687 2010-07-04  Bruno Haible  <bruno@clisp.org>
7688
7689         fsusage: Clarify which code applies to which platforms.
7690         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
7691         platform.
7692         * lib/fsusage.c (get_fs_usage): Likewise.
7693
7694 2010-07-04  Bruno Haible  <bruno@clisp.org>
7695
7696         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
7697         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
7698         Reported by Martin Lambers <marlam@marlam.de>.
7699
7700 2010-07-04  Jim Meyering  <meyering@redhat.com>
7701
7702         hash: once again explicitly disallow insertion of NULL
7703         * lib/hash.c (hash_insert0): Reinstate just-removed test:
7704         inserting a NULL pointer cannot work with these functions.
7705         Add a comment with details.
7706         This reverts part of the 2010-07-01 commit, 5bef1a35
7707         "hash: extend module to deal with non-pointer keys".
7708
7709 2010-07-01  Bruno Haible  <bruno@clisp.org>
7710
7711         stdbool: Update doc.
7712         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
7713         Info from Christian Weisgerber <naddy@mips.inka.de>.
7714
7715 2010-07-01  Jim Meyering  <meyering@redhat.com>
7716
7717         hash: extend module to deal with non-pointer keys
7718         * lib/hash.c (hash_insert0): New interface, much like hash_insert
7719         but that allows insertion of non-pointer entries.
7720         Do not disallow an ENTRY value of NULL.
7721         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
7722         * lib/hash.h (hash_insert0): Declare.
7723
7724 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7725
7726         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
7727         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
7728         not present (i.e. with autoconf 2.59 and when using gettextize, not
7729         gnulib), require AC_GNU_SOURCE instead.
7730
7731 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
7732
7733         idpriv-drop: Fix tests.
7734         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
7735         not to the test-idpriv-droptemp program.
7736
7737 2010-06-29  Bruno Haible  <bruno@clisp.org>
7738
7739         string: Fix syntax error with g++ 2.96.
7740         * lib/string.in.h (__pure__): Remove definition.
7741         (_GL_ATTRIBUTE_PURE): New macro.
7742         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
7743         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
7744         Reported by Christian Weisgerber <naddy@mips.inka.de>.
7745
7746 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
7747
7748         unitypes: Fix bug introduced on 2010-05-18.
7749         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
7750
7751 2010-06-22  Eric Blake  <eblake@redhat.com>
7752
7753         memmem: slight optimization
7754         * lib/str-two-way.h (critical_factorization): Update comments.
7755         Reduce work during factorization phase.
7756         Reported by Carlos Bueno <carlos@bueno.org>.
7757
7758 2010-06-21  Bruno Haible  <bruno@clisp.org>
7759
7760         Fix HAVE_CALLOC_POSIX misnomer.
7761         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
7762         !HAVE_CALLOC_POSIX.
7763         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
7764         HAVE_CALLOC_POSIX.
7765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
7766         instead of HAVE_CALLOC_POSIX.
7767         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
7768         HAVE_CALLOC_POSIX.
7769
7770         Use modern idiom for calloc() replacement.
7771         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
7772         AC_FUNC_CALLOC.
7773         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
7774         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
7775         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7776         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
7777         (gl_REPLACE_CALLOC): New macro.
7778
7779 2010-06-21  Bruno Haible  <bruno@clisp.org>
7780
7781         Fix HAVE_REALLOC_POSIX misnomer.
7782         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
7783         !HAVE_REALLOC_POSIX.
7784         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
7785         HAVE_REALLOC_POSIX.
7786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
7787         instead of HAVE_REALLOC_POSIX.
7788         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
7789         HAVE_REALLOC_POSIX.
7790
7791         Use modern idiom for realloc() replacement.
7792         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
7793         AC_FUNC_REALLOC.
7794         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
7795         Autoconf's AC_FUNC_REALLOC.
7796         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7797         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
7798         (gl_REPLACE_REALLOC): New macro.
7799         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
7800
7801 2010-06-21  Bruno Haible  <bruno@clisp.org>
7802
7803         Fix HAVE_MALLOC_POSIX misnomer.
7804         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
7805         !HAVE_MALLOC_POSIX.
7806         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
7807         HAVE_MALLOC_POSIX.
7808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
7809         instead of HAVE_MALLOC_POSIX.
7810         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
7811         HAVE_MALLOC_POSIX.
7812
7813         Use modern idiom for malloc() replacement.
7814         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
7815         AC_FUNC_MALLOC.
7816         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
7817         Autoconf's AC_FUNC_MALLOC.
7818         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
7819         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
7820         (gl_REPLACE_MALLOC): New macro.
7821         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
7822
7823 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
7824
7825         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
7826         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
7827         This macro takes 3 arguments, not 4.
7828
7829 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
7830
7831         ipv6: fix detection under mingw
7832         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
7833         in6_addr.
7834
7835 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
7836
7837         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
7838         that strtod() works when cross-compiling to a glibc version known
7839         to work.
7840
7841 2010-06-15  Bruno Haible  <bruno@clisp.org>
7842
7843         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
7844
7845 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
7846
7847         select: Correct timeout.
7848         * lib/select.c (rpl_select): Compute wait_timeout correctly.
7849
7850 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7851
7852         git-version-gen: init shell var to avoid env var influence
7853         * build-aux/git-version-gen (v): Init shell var to empty.
7854
7855 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
7856
7857         priv-set: Don't assume that priv.h exists merely because getppriv does.
7858         See Jan Andersen's bug report about AIX 5L in
7859         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
7860         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
7861         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
7862         * lib/priv-set.h: Likewise.
7863         * tests/test-priv-set.c: Likewise.
7864
7865 2010-06-13  Bruno Haible  <bruno@clisp.org>
7866
7867         relocatable: Make it easier to test whether to install wrappers.
7868         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
7869         RELOCATABLE_VIA_WRAPPER.
7870
7871 2010-06-13  Bruno Haible  <bruno@clisp.org>
7872
7873         gnulib-tool: Display specified modules and dependencies differently.
7874         * gnulib-tool (func_show_module_list): New function.
7875         (func_import, func_create_testdir): Invoke it.
7876         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7877
7878 2010-06-13  Bruno Haible  <bruno@clisp.org>
7879
7880         gnulib-tool: Align code of func_import and func_create_testdir.
7881         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
7882         specified_modules.
7883
7884 2010-06-12  Jim Meyering  <meyering@redhat.com>
7885
7886         test-inttostr: avoid spurious failure on Solaris 9
7887         * tests/test-inttostr.c (main): Skip the test when snprintf fails
7888         to accept "%ju".  Reported by Bruno Haible.
7889
7890 2010-06-11  Jim Meyering  <meyering@redhat.com>
7891
7892         test-sys_socket: mark variables as used more readably
7893         * tests/test-sys_socket.c (main): Mark otherwise unused variables
7894         as "used" explicitly via (void) statement casts.  This is more
7895         readable than using them in an artificial return expression.
7896         Suggestion from Bruno Haible.
7897
7898 2010-06-11  Bruno Haible  <bruno@clisp.org>
7899
7900         Avoid some more warnings from "gcc -Wwrite-strings".
7901         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
7902         to 'const char *'.
7903         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
7904         * tests/test-c-strcasestr.c (main): Likewise.
7905         * tests/test-mbscasestr1.c (main): Likewise.
7906         * tests/test-mbscasestr2.c (main): Likewise.
7907         * tests/test-memmem.c (main): Likewise.
7908         * tests/test-strstr.c (main): Likewise.
7909         * tests/test-strcasestr.c (main): Likewise.
7910
7911 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7912
7913         init.sh: change framework_failure_ to fail with status 99, not 1
7914         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
7915         automake's parallel-tests rule that this is an unexpected failure,
7916         even if the test is listed in XFAIL_TESTS.
7917
7918 2010-06-11  Jim Meyering  <meyering@redhat.com>
7919
7920         test-inttostr: avoid warnings about 4-6KB literal strings
7921         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
7922         Include "macros.h", for its definition of ASSERT.
7923         (CK): s/assert/ASSERT/
7924         * modules/inttostr-tests (Files): Add macros.h.
7925
7926         init.sh: don't use $ME_ or skip_ before they are defined
7927         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
7928         their first uses.  Also hoist their companions: warn_, fail_,
7929         framework_failure_, $stderr_fileno.  Prompted by a patch from
7930         Stefano Lattarini.
7931
7932         test-sys_socket: avoid set-but-not-used warnings from gcc
7933         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
7934         avoid warning about set-but-not-used variables.
7935
7936         test-xvasprintf: avoid 'const' discard warnings
7937         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
7938         "const" when assigning from literal strings.
7939         (test_xasprintf): Add "void" in function argument list to placate
7940         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
7941
7942         tests: avoid compilation warnings in argmatch and exclude tests...
7943         in packages that define ARGMATCH_DIE_DECL, like coreutils.
7944         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
7945         Since it always exits, declare with the "noreturn" attribute.
7946         * tests/test-argmatch.c: Likewise.
7947
7948         tests: avoid 'const' discard warnings in mbsstr tests
7949         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
7950         * tests/test-mbsstr2.c (main): Likewise.
7951
7952         test-verify: avoid warning from gcc's -Wmissing-declarations
7953         * tests/test-verify.c (function): Declare to be static.
7954
7955         test-inttostr.c: include <string.h> for use of strcmp
7956         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
7957
7958         test-linkat: avoid failed assertion on "other" architectures
7959         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
7960         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
7961         sparc: https://bugs.launchpad.net/bugs/591968
7962
7963 2010-06-11  Jim Meyering  <meyering@redhat.com>
7964
7965         printf.m4: avoid autoconf's "Expanded Before Required" warning
7966         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
7967         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
7968         autoconf warning.
7969
7970 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
7971
7972         Replacement header templates are now named with ".in", not "_".
7973         * doc/gnulib-intro.texi: Correct.
7974
7975 2010-06-10  Jim Meyering  <meyering@redhat.com>
7976
7977         inttostr-tests: depend on snprintf, not snprintf-posix
7978         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
7979         snprintf-posix, to avoid this aclocal failure:
7980           missing file gnulib-tests/vasnprintf.c
7981           configure.ac:45: error: expected source file, required through \
7982           AC_LIBSOURCES, not found
7983
7984 2010-06-10  Jim Meyering  <meyering@redhat.com>
7985
7986         inttostr: add a new function, inttostr, and tests
7987         The namesake function was not available.  The existence of the
7988         template file, inttostr.c makes its addition nontrivial.
7989         * lib/anytostr.c: Rename from inttostr.c.
7990         (anytostr): Rename from inttostr.
7991         * lib/inttostr.c: New file.
7992         * modules/inttostr (Files): Add anytostr.c.
7993         (Makefile.am): Set lib_SOURCES instead of ...
7994         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
7995         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
7996         * lib/offtostr.c: Likewise.
7997         * lib/uinttostr.c: Likewise.
7998         * lib/umaxtostr.c: Likewise.
7999         * modules/inttostr-tests: New file.
8000         * tests/test-inttostr.c: New file.  Test these functions.
8001
8002 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
8003             Bruno Haible  <bruno@clisp.org>
8004
8005         Add "Extending Gnulib" chapter to manual.
8006         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
8007         chapter.
8008         (Extending Gnulib): New chapter.
8009         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
8010         chapter.
8011
8012 2010-06-09  Bruno Haible  <bruno@clisp.org>
8013
8014         Avoid relocwrapper link errors due to gnulib replacement functions.
8015         * lib/areadlink.c: Use the system's malloc, realloc functions.
8016         (areadlink): Set errno to ENOMEM explicitly.
8017         * modules/areadlink (Depends-on): Remove malloc-posix.
8018         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8019
8020 2010-06-09  Bruno Haible  <bruno@clisp.org>
8021
8022         Avoid relocwrapper link errors due to gnulib replacement functions.
8023         * lib/canonicalize-lgpl.c: Use the system's malloc function.
8024         * lib/malloca.c: Likewise.
8025         * lib/relocatable.c: Likewise.
8026         * lib/progreloc.c: Use the system's malloc, sprintf functions.
8027         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
8028         * lib/setenv.c: Use the system's malloc, realloc functions.
8029         * lib/strerror.c: Use the system's sprintf function.
8030         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8031
8032 2010-06-04  Bruno Haible  <bruno@clisp.org>
8033
8034         Prefer documented low-level autoconf macro names.
8035         * m4/lib-link.m4: Use m4_translit instead of translit.
8036         * m4/environ.m4: Likewise.
8037         * m4/mathfunc.m4: Likewise.
8038         * m4/onceonly.m4: Likewise.
8039         * m4/stdint.m4: Likewise.
8040         Suggested by Eric Blake.
8041
8042 2010-06-04  Martin Lambers  <marlam@marlam.de>
8043             Bruno Haible  <bruno@clisp.org>
8044
8045         havelib: Allow library names with '+' characters.
8046         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
8047         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
8048
8049 2010-06-09  Bruno Haible  <bruno@clisp.org>
8050
8051         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
8052         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
8053         realloc failed.
8054
8055 2010-06-08  Peter Simons  <simons@cryp.to>
8056
8057         maint.mk: make the news-check rule more configurable
8058         * top/maint.mk (news-check-lines-spec) New variable.
8059         (news-check): Use "sed -n 1,10p" in place of "head".
8060
8061 2010-06-07  Jim Meyering  <meyering@redhat.com>
8062
8063         do-release-commit-and-tag: fix typo in --help
8064         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
8065
8066         regex: avoid new dead-code warning with gcc-4.6.0
8067         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
8068         if-block containing a while-loop.  It's been unused for at least
8069         5 years.
8070
8071 2010-06-05  Bruno Haible  <bruno@clisp.org>
8072
8073         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
8074         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
8075
8076 2010-06-04  Bruno Haible  <bruno@clisp.org>
8077
8078         Update to GNU gettext 0.18.1.
8079         * modules/gettext (configure.ac): Require gettext infrastructure from
8080         version 0.18.1.
8081
8082 2010-06-03  Bruno Haible  <bruno@clisp.org>
8083
8084         Don't use AC_LIBOBJ with file names in subdirectories.
8085         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
8086         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
8087         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
8088         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
8089         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
8090         gl_LIBUNISTRING_LIBSOURCE.
8091         (Makefile.am): Augment lib_SOURCES here, conditionally.
8092         * NEWS: Drop requirement for Automake option 'subdir-objects'.
8093
8094 2010-06-03  Bruno Haible  <bruno@clisp.org>
8095
8096         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
8097         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
8098         expansion does not end with a newline.
8099         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
8100         unnecessary newline.
8101
8102 2010-06-03  Bruno Haible  <bruno@clisp.org>
8103
8104         Reduce dependencies.
8105         * tests/test-quotearg.h: New file, extracted from
8106         tests/test-quotearg.c.
8107         * tests/test-quotearg-simple.c: New file, extracted from
8108         tests/test-quotearg.c.
8109         * tests/test-quotearg.c: Don't include <ctype.h>.
8110         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
8111         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
8112         use_quote_double_quotes, use_quotearg_colon): Moved to
8113         tests/test-quotearg.h.
8114         (results_g, flag_results, custom_quotes, custom_results): Moved
8115         to tests/test-quotearg-simple.c.
8116         (main): Moved the part that does not depend on gettext to
8117         tests/test-quotearg-simple.c. Return 77 if the test cannot be
8118         performed.
8119         * modules/quotearg-simple: New file.
8120         * modules/quotearg-simple-tests: New file.
8121         * modules/quotearg (Depends-on): Add quotearg-simple.
8122         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
8123         (Files): Add tests/test-quotearg.h.
8124         Reported by Paolo Bonzini.
8125
8126 2010-06-03  Bruno Haible  <bruno@clisp.org>
8127
8128         Reduce dependencies.
8129         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
8130
8131 2010-06-03  Bruno Haible  <bruno@clisp.org>
8132
8133         time: Undefine more broken macros.
8134         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
8135         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
8136         Reported by Eric Blake.
8137
8138 2010-06-03  Bruno Haible  <bruno@clisp.org>
8139
8140         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
8141         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
8142         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
8143         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
8144         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
8145         Reported by Ludovic Courtès <ludo@gnu.org>.
8146
8147 2010-06-02  Eric Blake  <eblake@redhat.com>
8148
8149         time: work with mingw + pthreads-win32 library
8150         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
8151         if timespec is defined only in pthread.h.
8152         * modules/time (Makefile.am): Substitute it.
8153         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
8154         <pthread.h>, when needed.
8155         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
8156         from the library.
8157
8158 2010-05-31  Bruno Haible  <bruno@clisp.org>
8159
8160         Avoid expanding two macros in the wrong order.
8161         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
8162         gl_LIBUNISTRING if it is defined.
8163         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
8164         autoconf >= 2.64.
8165         Reported by Ludovic Courtès <ludo@gnu.org>.
8166
8167 2010-05-27  Jim Meyering  <meyering@redhat.com>
8168
8169         maint.mk: also prohibit "#undef" of always-defined symbols
8170         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
8171         Allow more than one space before the symbol name.
8172         (sc_prohibit_always-defined_macros): Use grep's -E, now that
8173         the regexp uses alternation.
8174
8175 2010-05-26  Eric Blake  <eblake@redhat.com>
8176
8177         maint.mk: avoid echo -e
8178         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
8179         Convert all uses of echo -* to printf.
8180         Reported by Matthias Bolte.
8181
8182 2010-05-25  Bruno Haible  <bruno@clisp.org>
8183
8184         Update to GNU gettext 0.18, part 2.
8185         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
8186         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
8187
8188 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8189
8190         Add missing include in test-pwrite.c.
8191         * tests/test-pwrite.c: Include string.h, for strcmp.
8192
8193 2010-05-24  Bruno Haible  <bruno@clisp.org>
8194
8195         * NEWS: Mention requirement for Automake option 'subdir-objects'.
8196
8197 2010-05-24  Bruno Haible  <bruno@clisp.org>
8198
8199         Don't use conversion with transliteration in u{8,16,32}_strcoll.
8200         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
8201         iconveh_error argument.
8202         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
8203         U_STRCONV_TO_LOCALE.
8204         * lib/unistr/u16-strcoll.c: Likewise.
8205         * lib/unistr/u32-strcoll.c: Likewise.
8206         * modules/unistr/u8-strcoll (Depends-on): Add
8207         uniconv/u8-strconv-to-enc, localcharset. Remove
8208         uniconv/u8-strconv-to-locale.
8209         (configure.ac): Bump version number.
8210         * modules/unistr/u16-strcoll (Depends-on): Add
8211         uniconv/u16-strconv-to-enc, localcharset. Remove
8212         uniconv/u16-strconv-to-locale.
8213         (configure.ac): Bump version number.
8214         * modules/unistr/u32-strcoll (Depends-on): Add
8215         uniconv/u32-strconv-to-enc, localcharset. Remove
8216         uniconv/u32-strconv-to-locale.
8217         (configure.ac): Bump version number.
8218
8219 2010-05-24  Bruno Haible  <bruno@clisp.org>
8220
8221         Avoid a test failure on NetBSD 5.0.
8222         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
8223         an iconv() bug.
8224
8225 2010-05-24  Bruno Haible  <bruno@clisp.org>
8226
8227         Adjust #include directive style.
8228         * modules/regex (Includes): Recommend to write <regex.h>.
8229
8230 2010-05-24  Bruno Haible  <bruno@clisp.org>
8231
8232         regex: Don't require alloca.
8233         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
8234         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
8235         only inside if (0).
8236
8237 2010-05-23  Jim Meyering  <meyering@redhat.com>
8238
8239         test-renameat.c: include <sys/stat.h>
8240         * tests/test-renameat.c: Include <sys/stat.h>; required for
8241         definition of S_IS* macros.
8242
8243 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
8244
8245         Update maintainer documentation for 'relocatable-prog' module.
8246         * doc/relocatable-maint.texi: Update.
8247         Comments by Bruno Haible.
8248
8249 2010-05-23  Bruno Haible  <bruno@clisp.org>
8250
8251         git-merge-changelog: Enable --split-merged-entry by default.
8252         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
8253         (usage): Don't mention this option any more.
8254         Reported by Ralf Wildenhues.
8255
8256 2010-05-23  Jim Meyering  <meyering@redhat.com>
8257
8258         test-pwrite: do not leave behind a test file named "out"
8259         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
8260         The trivial-looking use of init.sh is really necessary.
8261         It ensures that the temporary file, "out", is created in
8262         a temporary directory, and removed upon termination.
8263         * tests/test-pwrite.sh: Re-add file.
8264         * modules/pwrite-tests: Reference it.
8265
8266 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8267
8268         Fix output redirection buglet in init.sh.
8269         * tests/init.sh: Fix redirection of stderr.
8270
8271 2010-05-20  Simon Josefsson  <simon@josefsson.org>
8272
8273         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
8274
8275 2010-05-17  Simon Josefsson  <simon@josefsson.org>
8276
8277         * modules/valgrind-tests: New file.
8278         * m4/valgrind-tests.m4: New file.
8279         * doc/valgrind-tests.texi: New file.
8280         * doc/gnulib.texi (Running self-tests under valgrind): New
8281         section.
8282
8283 2010-05-19  Bruno Haible  <bruno@clisp.org>
8284
8285         Clean up dead code in recent commit.
8286         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
8287         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
8288         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
8289         Suggested by Paolo Bonzini.
8290
8291 2010-05-19  Bruno Haible  <bruno@clisp.org>
8292
8293         Avoid valgrind error reports from libunistring.
8294         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
8295         * modules/libunistring (Files): Add it.
8296         * modules/libunistring-optional (Files): Likewise.
8297
8298 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
8299             Bruno Haible  <bruno@clisp.org>
8300
8301         New module 'libunistring-optional'.
8302         * modules/libunistring-optional: New file.
8303         * m4/libunistring-base.m4: New file.
8304         * m4/libunistring-optional.m4: New file.
8305         * lib/unicase.in.h: Renamed from lib/unicase.h.
8306         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
8307         * lib/unictype.in.h: Renamed from lib/unictype.h.
8308         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
8309         * lib/uniname.in.h: Renamed from lib/uniname.h.
8310         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
8311         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
8312         * lib/unistr.in.h: Renamed from lib/unistr.h.
8313         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
8314         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
8315         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
8316         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
8317         gl_LIBUNISTRING. If the library was found, determine the installed
8318         version and set LIBUNISTRING_VERSION.
8319         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
8320         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
8321         handle a configuration option --with-included-libunistring.
8322         * modules/libunistring (Files): Add m4/absolute-header.m4.
8323         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
8324         Add m4/libunistring-base.m4.
8325         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8326         (Makefile.am): Build unicase.h from unicase.in.h.
8327         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
8328         Add m4/libunistring-base.m4.
8329         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8330         (Makefile.am): Build uniconv.h from uniconv.in.h.
8331         * modules/unictype/base (Files): Use unictype.in.h instead of
8332         unictype.h. Add m4/libunistring-base.m4.
8333         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8334         (Makefile.am): Build unictype.h from unictype.in.h.
8335         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
8336         Add m4/libunistring-base.m4.
8337         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8338         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
8339         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
8340         Add m4/libunistring-base.m4.
8341         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8342         (Makefile.am): Build uniname.h from uniname.in.h.
8343         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
8344         Add m4/libunistring-base.m4.
8345         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8346         (Makefile.am): Build uninorm.h from uninorm.in.h.
8347         * modules/unistdio/base (Files): Use unistdio.in.h instead of
8348         unistdio.h. Add m4/libunistring-base.m4.
8349         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8350         (Makefile.am): Build unistdio.h from unistdio.in.h.
8351         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
8352         Add m4/libunistring-base.m4.
8353         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8354         (Makefile.am): Build unistr.h from unistr.in.h.
8355         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
8356         Add m4/libunistring-base.m4.
8357         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8358         (Makefile.am): Build unitypes.h from unitypes.in.h.
8359         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
8360         Add m4/libunistring-base.m4.
8361         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8362         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
8363         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
8364         uniwidth.h. Add m4/libunistring-base.m4.
8365         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
8366         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
8367         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
8368         instead of augmenting lib_SOURCES.
8369         * modules/unicase/empty-suffix-context: Likewise.
8370         * modules/unicase/locale-language: Likewise.
8371         * modules/unicase/tolower: Likewise.
8372         * modules/unicase/totitle: Likewise.
8373         * modules/unicase/toupper: Likewise.
8374         * modules/unicase/u8-casecmp: Likewise.
8375         * modules/unicase/u8-casecoll: Likewise.
8376         * modules/unicase/u8-casefold: Likewise.
8377         * modules/unicase/u8-casexfrm: Likewise.
8378         * modules/unicase/u8-ct-casefold: Likewise.
8379         * modules/unicase/u8-ct-tolower: Likewise.
8380         * modules/unicase/u8-ct-totitle: Likewise.
8381         * modules/unicase/u8-ct-toupper: Likewise.
8382         * modules/unicase/u8-is-cased: Likewise.
8383         * modules/unicase/u8-is-casefolded: Likewise.
8384         * modules/unicase/u8-is-lowercase: Likewise.
8385         * modules/unicase/u8-is-titlecase: Likewise.
8386         * modules/unicase/u8-is-uppercase: Likewise.
8387         * modules/unicase/u8-prefix-context: Likewise.
8388         * modules/unicase/u8-suffix-context: Likewise.
8389         * modules/unicase/u8-tolower: Likewise.
8390         * modules/unicase/u8-totitle: Likewise.
8391         * modules/unicase/u8-toupper: Likewise.
8392         * modules/unicase/u16-casecmp: Likewise.
8393         * modules/unicase/u16-casecoll: Likewise.
8394         * modules/unicase/u16-casefold: Likewise.
8395         * modules/unicase/u16-casexfrm: Likewise.
8396         * modules/unicase/u16-ct-casefold: Likewise.
8397         * modules/unicase/u16-ct-tolower: Likewise.
8398         * modules/unicase/u16-ct-totitle: Likewise.
8399         * modules/unicase/u16-ct-toupper: Likewise.
8400         * modules/unicase/u16-is-cased: Likewise.
8401         * modules/unicase/u16-is-casefolded: Likewise.
8402         * modules/unicase/u16-is-lowercase: Likewise.
8403         * modules/unicase/u16-is-titlecase: Likewise.
8404         * modules/unicase/u16-is-uppercase: Likewise.
8405         * modules/unicase/u16-prefix-context: Likewise.
8406         * modules/unicase/u16-suffix-context: Likewise.
8407         * modules/unicase/u16-tolower: Likewise.
8408         * modules/unicase/u16-totitle: Likewise.
8409         * modules/unicase/u16-toupper: Likewise.
8410         * modules/unicase/u32-casecmp: Likewise.
8411         * modules/unicase/u32-casecoll: Likewise.
8412         * modules/unicase/u32-casefold: Likewise.
8413         * modules/unicase/u32-casexfrm: Likewise.
8414         * modules/unicase/u32-ct-casefold: Likewise.
8415         * modules/unicase/u32-ct-tolower: Likewise.
8416         * modules/unicase/u32-ct-totitle: Likewise.
8417         * modules/unicase/u32-ct-toupper: Likewise.
8418         * modules/unicase/u32-is-cased: Likewise.
8419         * modules/unicase/u32-is-casefolded: Likewise.
8420         * modules/unicase/u32-is-lowercase: Likewise.
8421         * modules/unicase/u32-is-titlecase: Likewise.
8422         * modules/unicase/u32-is-uppercase: Likewise.
8423         * modules/unicase/u32-prefix-context: Likewise.
8424         * modules/unicase/u32-suffix-context: Likewise.
8425         * modules/unicase/u32-tolower: Likewise.
8426         * modules/unicase/u32-totitle: Likewise.
8427         * modules/unicase/u32-toupper: Likewise.
8428         * modules/unicase/ulc-casecmp: Likewise.
8429         * modules/unicase/ulc-casecoll: Likewise.
8430         * modules/unicase/ulc-casexfrm: Likewise.
8431         * modules/uniconv/u8-conv-from-enc: Likewise.
8432         * modules/uniconv/u8-conv-to-enc: Likewise.
8433         * modules/uniconv/u8-strconv-from-enc: Likewise.
8434         * modules/uniconv/u8-strconv-from-locale: Likewise.
8435         * modules/uniconv/u8-strconv-to-enc: Likewise.
8436         * modules/uniconv/u8-strconv-to-locale: Likewise.
8437         * modules/uniconv/u16-conv-from-enc: Likewise.
8438         * modules/uniconv/u16-conv-to-enc: Likewise.
8439         * modules/uniconv/u16-strconv-from-enc: Likewise.
8440         * modules/uniconv/u16-strconv-from-locale: Likewise.
8441         * modules/uniconv/u16-strconv-to-enc: Likewise.
8442         * modules/uniconv/u16-strconv-to-locale: Likewise.
8443         * modules/uniconv/u32-conv-from-enc: Likewise.
8444         * modules/uniconv/u32-conv-to-enc: Likewise.
8445         * modules/uniconv/u32-strconv-from-enc: Likewise.
8446         * modules/uniconv/u32-strconv-from-locale: Likewise.
8447         * modules/uniconv/u32-strconv-to-enc: Likewise.
8448         * modules/uniconv/u32-strconv-to-locale: Likewise.
8449         * modules/unictype/bidicategory-byname: Likewise.
8450         * modules/unictype/bidicategory-name: Likewise.
8451         * modules/unictype/bidicategory-of: Likewise.
8452         * modules/unictype/bidicategory-test: Likewise.
8453         * modules/unictype/block-list: Likewise.
8454         * modules/unictype/block-test: Likewise.
8455         * modules/unictype/category-C: Likewise.
8456         * modules/unictype/category-Cc: Likewise.
8457         * modules/unictype/category-Cf: Likewise.
8458         * modules/unictype/category-Cn: Likewise.
8459         * modules/unictype/category-Co: Likewise.
8460         * modules/unictype/category-Cs: Likewise.
8461         * modules/unictype/category-L: Likewise.
8462         * modules/unictype/category-Ll: Likewise.
8463         * modules/unictype/category-Lm: Likewise.
8464         * modules/unictype/category-Lo: Likewise.
8465         * modules/unictype/category-Lt: Likewise.
8466         * modules/unictype/category-Lu: Likewise.
8467         * modules/unictype/category-M: Likewise.
8468         * modules/unictype/category-Mc: Likewise.
8469         * modules/unictype/category-Me: Likewise.
8470         * modules/unictype/category-Mn: Likewise.
8471         * modules/unictype/category-N: Likewise.
8472         * modules/unictype/category-Nd: Likewise.
8473         * modules/unictype/category-Nl: Likewise.
8474         * modules/unictype/category-No: Likewise.
8475         * modules/unictype/category-P: Likewise.
8476         * modules/unictype/category-Pc: Likewise.
8477         * modules/unictype/category-Pd: Likewise.
8478         * modules/unictype/category-Pe: Likewise.
8479         * modules/unictype/category-Pf: Likewise.
8480         * modules/unictype/category-Pi: Likewise.
8481         * modules/unictype/category-Po: Likewise.
8482         * modules/unictype/category-Ps: Likewise.
8483         * modules/unictype/category-S: Likewise.
8484         * modules/unictype/category-Sc: Likewise.
8485         * modules/unictype/category-Sk: Likewise.
8486         * modules/unictype/category-Sm: Likewise.
8487         * modules/unictype/category-So: Likewise.
8488         * modules/unictype/category-Z: Likewise.
8489         * modules/unictype/category-Zl: Likewise.
8490         * modules/unictype/category-Zp: Likewise.
8491         * modules/unictype/category-Zs: Likewise.
8492         * modules/unictype/category-and: Likewise.
8493         * modules/unictype/category-and-not: Likewise.
8494         * modules/unictype/category-byname: Likewise.
8495         * modules/unictype/category-name: Likewise.
8496         * modules/unictype/category-none: Likewise.
8497         * modules/unictype/category-of: Likewise.
8498         * modules/unictype/category-or: Likewise.
8499         * modules/unictype/category-test: Likewise.
8500         * modules/unictype/combining-class: Likewise.
8501         * modules/unictype/ctype-alnum: Likewise.
8502         * modules/unictype/ctype-alpha: Likewise.
8503         * modules/unictype/ctype-blank: Likewise.
8504         * modules/unictype/ctype-cntrl: Likewise.
8505         * modules/unictype/ctype-digit: Likewise.
8506         * modules/unictype/ctype-graph: Likewise.
8507         * modules/unictype/ctype-lower: Likewise.
8508         * modules/unictype/ctype-print: Likewise.
8509         * modules/unictype/ctype-punct: Likewise.
8510         * modules/unictype/ctype-space: Likewise.
8511         * modules/unictype/ctype-upper: Likewise.
8512         * modules/unictype/ctype-xdigit: Likewise.
8513         * modules/unictype/decimal-digit: Likewise.
8514         * modules/unictype/digit: Likewise.
8515         * modules/unictype/mirror: Likewise.
8516         * modules/unictype/numeric: Likewise.
8517         * modules/unictype/property-alphabetic: Likewise.
8518         * modules/unictype/property-ascii-hex-digit: Likewise.
8519         * modules/unictype/property-bidi-arabic-digit: Likewise.
8520         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
8521         * modules/unictype/property-bidi-block-separator: Likewise.
8522         * modules/unictype/property-bidi-boundary-neutral: Likewise.
8523         * modules/unictype/property-bidi-common-separator: Likewise.
8524         * modules/unictype/property-bidi-control: Likewise.
8525         * modules/unictype/property-bidi-embedding-or-override: Likewise.
8526         * modules/unictype/property-bidi-eur-num-separator: Likewise.
8527         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
8528         * modules/unictype/property-bidi-european-digit: Likewise.
8529         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
8530         * modules/unictype/property-bidi-left-to-right: Likewise.
8531         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
8532         * modules/unictype/property-bidi-other-neutral: Likewise.
8533         * modules/unictype/property-bidi-pdf: Likewise.
8534         * modules/unictype/property-bidi-segment-separator: Likewise.
8535         * modules/unictype/property-bidi-whitespace: Likewise.
8536         * modules/unictype/property-byname: Likewise.
8537         * modules/unictype/property-combining: Likewise.
8538         * modules/unictype/property-composite: Likewise.
8539         * modules/unictype/property-currency-symbol: Likewise.
8540         * modules/unictype/property-dash: Likewise.
8541         * modules/unictype/property-decimal-digit: Likewise.
8542         * modules/unictype/property-default-ignorable-code-point: Likewise.
8543         * modules/unictype/property-deprecated: Likewise.
8544         * modules/unictype/property-diacritic: Likewise.
8545         * modules/unictype/property-extender: Likewise.
8546         * modules/unictype/property-format-control: Likewise.
8547         * modules/unictype/property-grapheme-base: Likewise.
8548         * modules/unictype/property-grapheme-extend: Likewise.
8549         * modules/unictype/property-grapheme-link: Likewise.
8550         * modules/unictype/property-hex-digit: Likewise.
8551         * modules/unictype/property-hyphen: Likewise.
8552         * modules/unictype/property-id-continue: Likewise.
8553         * modules/unictype/property-id-start: Likewise.
8554         * modules/unictype/property-ideographic: Likewise.
8555         * modules/unictype/property-ids-binary-operator: Likewise.
8556         * modules/unictype/property-ids-trinary-operator: Likewise.
8557         * modules/unictype/property-ignorable-control: Likewise.
8558         * modules/unictype/property-iso-control: Likewise.
8559         * modules/unictype/property-join-control: Likewise.
8560         * modules/unictype/property-left-of-pair: Likewise.
8561         * modules/unictype/property-line-separator: Likewise.
8562         * modules/unictype/property-logical-order-exception: Likewise.
8563         * modules/unictype/property-lowercase: Likewise.
8564         * modules/unictype/property-math: Likewise.
8565         * modules/unictype/property-non-break: Likewise.
8566         * modules/unictype/property-not-a-character: Likewise.
8567         * modules/unictype/property-numeric: Likewise.
8568         * modules/unictype/property-other-alphabetic: Likewise.
8569         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
8570         * modules/unictype/property-other-grapheme-extend: Likewise.
8571         * modules/unictype/property-other-id-continue: Likewise.
8572         * modules/unictype/property-other-id-start: Likewise.
8573         * modules/unictype/property-other-lowercase: Likewise.
8574         * modules/unictype/property-other-math: Likewise.
8575         * modules/unictype/property-other-uppercase: Likewise.
8576         * modules/unictype/property-paired-punctuation: Likewise.
8577         * modules/unictype/property-paragraph-separator: Likewise.
8578         * modules/unictype/property-pattern-syntax: Likewise.
8579         * modules/unictype/property-pattern-white-space: Likewise.
8580         * modules/unictype/property-private-use: Likewise.
8581         * modules/unictype/property-punctuation: Likewise.
8582         * modules/unictype/property-quotation-mark: Likewise.
8583         * modules/unictype/property-radical: Likewise.
8584         * modules/unictype/property-sentence-terminal: Likewise.
8585         * modules/unictype/property-soft-dotted: Likewise.
8586         * modules/unictype/property-space: Likewise.
8587         * modules/unictype/property-terminal-punctuation: Likewise.
8588         * modules/unictype/property-test: Likewise.
8589         * modules/unictype/property-titlecase: Likewise.
8590         * modules/unictype/property-unassigned-code-value: Likewise.
8591         * modules/unictype/property-unified-ideograph: Likewise.
8592         * modules/unictype/property-uppercase: Likewise.
8593         * modules/unictype/property-variation-selector: Likewise.
8594         * modules/unictype/property-white-space: Likewise.
8595         * modules/unictype/property-xid-continue: Likewise.
8596         * modules/unictype/property-xid-start: Likewise.
8597         * modules/unictype/property-zero-width: Likewise.
8598         * modules/unictype/scripts: Likewise.
8599         * modules/unictype/syntax-c-ident: Likewise.
8600         * modules/unictype/syntax-c-whitespace: Likewise.
8601         * modules/unictype/syntax-java-ident: Likewise.
8602         * modules/unictype/syntax-java-whitespace: Likewise.
8603         * modules/unilbrk/u8-possible-linebreaks: Likewise.
8604         * modules/unilbrk/u8-width-linebreaks: Likewise.
8605         * modules/unilbrk/u16-possible-linebreaks: Likewise.
8606         * modules/unilbrk/u16-width-linebreaks: Likewise.
8607         * modules/unilbrk/u32-possible-linebreaks: Likewise.
8608         * modules/unilbrk/u32-width-linebreaks: Likewise.
8609         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
8610         * modules/unilbrk/ulc-width-linebreaks: Likewise.
8611         * modules/uniname/uniname: Likewise.
8612         * modules/uninorm/canonical-decomposition: Likewise.
8613         * modules/uninorm/composition: Likewise.
8614         * modules/uninorm/decomposing-form: Likewise.
8615         * modules/uninorm/decomposition: Likewise.
8616         * modules/uninorm/filter: Likewise.
8617         * modules/uninorm/nfc: Likewise.
8618         * modules/uninorm/nfd: Likewise.
8619         * modules/uninorm/nfkc: Likewise.
8620         * modules/uninorm/nfkd: Likewise.
8621         * modules/uninorm/u8-normalize: Likewise.
8622         * modules/uninorm/u8-normcmp: Likewise.
8623         * modules/uninorm/u8-normcoll: Likewise.
8624         * modules/uninorm/u8-normxfrm: Likewise.
8625         * modules/uninorm/u16-normalize: Likewise.
8626         * modules/uninorm/u16-normcmp: Likewise.
8627         * modules/uninorm/u16-normcoll: Likewise.
8628         * modules/uninorm/u16-normxfrm: Likewise.
8629         * modules/uninorm/u32-normalize: Likewise.
8630         * modules/uninorm/u32-normcmp: Likewise.
8631         * modules/uninorm/u32-normcoll: Likewise.
8632         * modules/uninorm/u32-normxfrm: Likewise.
8633         * modules/unistdio/u8-asnprintf: Likewise.
8634         * modules/unistdio/u8-asprintf: Likewise.
8635         * modules/unistdio/u8-snprintf: Likewise.
8636         * modules/unistdio/u8-sprintf: Likewise.
8637         * modules/unistdio/u8-u8-asnprintf: Likewise.
8638         * modules/unistdio/u8-u8-asprintf: Likewise.
8639         * modules/unistdio/u8-u8-snprintf: Likewise.
8640         * modules/unistdio/u8-u8-sprintf: Likewise.
8641         * modules/unistdio/u8-u8-vasnprintf: Likewise.
8642         * modules/unistdio/u8-u8-vasprintf: Likewise.
8643         * modules/unistdio/u8-u8-vsnprintf: Likewise.
8644         * modules/unistdio/u8-u8-vsprintf: Likewise.
8645         * modules/unistdio/u8-vasnprintf: Likewise.
8646         * modules/unistdio/u8-vasprintf: Likewise.
8647         * modules/unistdio/u8-vsnprintf: Likewise.
8648         * modules/unistdio/u8-vsprintf: Likewise.
8649         * modules/unistdio/u16-asnprintf: Likewise.
8650         * modules/unistdio/u16-asprintf: Likewise.
8651         * modules/unistdio/u16-snprintf: Likewise.
8652         * modules/unistdio/u16-sprintf: Likewise.
8653         * modules/unistdio/u16-u16-asnprintf: Likewise.
8654         * modules/unistdio/u16-u16-asprintf: Likewise.
8655         * modules/unistdio/u16-u16-snprintf: Likewise.
8656         * modules/unistdio/u16-u16-sprintf: Likewise.
8657         * modules/unistdio/u16-u16-vasnprintf: Likewise.
8658         * modules/unistdio/u16-u16-vasprintf: Likewise.
8659         * modules/unistdio/u16-u16-vsnprintf: Likewise.
8660         * modules/unistdio/u16-u16-vsprintf: Likewise.
8661         * modules/unistdio/u16-vasnprintf: Likewise.
8662         * modules/unistdio/u16-vasprintf: Likewise.
8663         * modules/unistdio/u16-vsnprintf: Likewise.
8664         * modules/unistdio/u16-vsprintf: Likewise.
8665         * modules/unistdio/u32-asnprintf: Likewise.
8666         * modules/unistdio/u32-asprintf: Likewise.
8667         * modules/unistdio/u32-snprintf: Likewise.
8668         * modules/unistdio/u32-sprintf: Likewise.
8669         * modules/unistdio/u32-u32-asnprintf: Likewise.
8670         * modules/unistdio/u32-u32-asprintf: Likewise.
8671         * modules/unistdio/u32-u32-snprintf: Likewise.
8672         * modules/unistdio/u32-u32-sprintf: Likewise.
8673         * modules/unistdio/u32-u32-vasnprintf: Likewise.
8674         * modules/unistdio/u32-u32-vasprintf: Likewise.
8675         * modules/unistdio/u32-u32-vsnprintf: Likewise.
8676         * modules/unistdio/u32-u32-vsprintf: Likewise.
8677         * modules/unistdio/u32-vasnprintf: Likewise.
8678         * modules/unistdio/u32-vasprintf: Likewise.
8679         * modules/unistdio/u32-vsnprintf: Likewise.
8680         * modules/unistdio/u32-vsprintf: Likewise.
8681         * modules/unistdio/ulc-asnprintf: Likewise.
8682         * modules/unistdio/ulc-asprintf: Likewise.
8683         * modules/unistdio/ulc-fprintf: Likewise.
8684         * modules/unistdio/ulc-snprintf: Likewise.
8685         * modules/unistdio/ulc-sprintf: Likewise.
8686         * modules/unistdio/ulc-vasnprintf: Likewise.
8687         * modules/unistdio/ulc-vasprintf: Likewise.
8688         * modules/unistdio/ulc-vfprintf: Likewise.
8689         * modules/unistdio/ulc-vsnprintf: Likewise.
8690         * modules/unistdio/ulc-vsprintf: Likewise.
8691         * modules/unistr/u8-check: Likewise.
8692         * modules/unistr/u8-chr: Likewise.
8693         * modules/unistr/u8-cmp: Likewise.
8694         * modules/unistr/u8-cmp2: Likewise.
8695         * modules/unistr/u8-cpy: Likewise.
8696         * modules/unistr/u8-cpy-alloc: Likewise.
8697         * modules/unistr/u8-endswith: Likewise.
8698         * modules/unistr/u8-mblen: Likewise.
8699         * modules/unistr/u8-mbsnlen: Likewise.
8700         * modules/unistr/u8-mbtouc: Likewise.
8701         * modules/unistr/u8-mbtouc-unsafe: Likewise.
8702         * modules/unistr/u8-mbtoucr: Likewise.
8703         * modules/unistr/u8-move: Likewise.
8704         * modules/unistr/u8-next: Likewise.
8705         * modules/unistr/u8-prev: Likewise.
8706         * modules/unistr/u8-set: Likewise.
8707         * modules/unistr/u8-startswith: Likewise.
8708         * modules/unistr/u8-stpcpy: Likewise.
8709         * modules/unistr/u8-stpncpy: Likewise.
8710         * modules/unistr/u8-strcat: Likewise.
8711         * modules/unistr/u8-strchr: Likewise.
8712         * modules/unistr/u8-strcmp: Likewise.
8713         * modules/unistr/u8-strcoll: Likewise.
8714         * modules/unistr/u8-strcpy: Likewise.
8715         * modules/unistr/u8-strcspn: Likewise.
8716         * modules/unistr/u8-strdup: Likewise.
8717         * modules/unistr/u8-strlen: Likewise.
8718         * modules/unistr/u8-strmblen: Likewise.
8719         * modules/unistr/u8-strmbtouc: Likewise.
8720         * modules/unistr/u8-strncat: Likewise.
8721         * modules/unistr/u8-strncmp: Likewise.
8722         * modules/unistr/u8-strncpy: Likewise.
8723         * modules/unistr/u8-strnlen: Likewise.
8724         * modules/unistr/u8-strpbrk: Likewise.
8725         * modules/unistr/u8-strrchr: Likewise.
8726         * modules/unistr/u8-strspn: Likewise.
8727         * modules/unistr/u8-strstr: Likewise.
8728         * modules/unistr/u8-strtok: Likewise.
8729         * modules/unistr/u8-to-u16: Likewise.
8730         * modules/unistr/u8-to-u32: Likewise.
8731         * modules/unistr/u8-uctomb: Likewise.
8732         * modules/unistr/u16-check: Likewise.
8733         * modules/unistr/u16-chr: Likewise.
8734         * modules/unistr/u16-cmp: Likewise.
8735         * modules/unistr/u16-cmp2: Likewise.
8736         * modules/unistr/u16-cpy: Likewise.
8737         * modules/unistr/u16-cpy-alloc: Likewise.
8738         * modules/unistr/u16-endswith: Likewise.
8739         * modules/unistr/u16-mblen: Likewise.
8740         * modules/unistr/u16-mbsnlen: Likewise.
8741         * modules/unistr/u16-mbtouc: Likewise.
8742         * modules/unistr/u16-mbtouc-unsafe: Likewise.
8743         * modules/unistr/u16-mbtoucr: Likewise.
8744         * modules/unistr/u16-move: Likewise.
8745         * modules/unistr/u16-next: Likewise.
8746         * modules/unistr/u16-prev: Likewise.
8747         * modules/unistr/u16-set: Likewise.
8748         * modules/unistr/u16-startswith: Likewise.
8749         * modules/unistr/u16-stpcpy: Likewise.
8750         * modules/unistr/u16-stpncpy: Likewise.
8751         * modules/unistr/u16-strcat: Likewise.
8752         * modules/unistr/u16-strchr: Likewise.
8753         * modules/unistr/u16-strcmp: Likewise.
8754         * modules/unistr/u16-strcoll: Likewise.
8755         * modules/unistr/u16-strcpy: Likewise.
8756         * modules/unistr/u16-strcspn: Likewise.
8757         * modules/unistr/u16-strdup: Likewise.
8758         * modules/unistr/u16-strlen: Likewise.
8759         * modules/unistr/u16-strmblen: Likewise.
8760         * modules/unistr/u16-strmbtouc: Likewise.
8761         * modules/unistr/u16-strncat: Likewise.
8762         * modules/unistr/u16-strncmp: Likewise.
8763         * modules/unistr/u16-strncpy: Likewise.
8764         * modules/unistr/u16-strnlen: Likewise.
8765         * modules/unistr/u16-strpbrk: Likewise.
8766         * modules/unistr/u16-strrchr: Likewise.
8767         * modules/unistr/u16-strspn: Likewise.
8768         * modules/unistr/u16-strstr: Likewise.
8769         * modules/unistr/u16-strtok: Likewise.
8770         * modules/unistr/u16-to-u32: Likewise.
8771         * modules/unistr/u16-to-u8: Likewise.
8772         * modules/unistr/u16-uctomb: Likewise.
8773         * modules/unistr/u32-check: Likewise.
8774         * modules/unistr/u32-chr: Likewise.
8775         * modules/unistr/u32-cmp: Likewise.
8776         * modules/unistr/u32-cmp2: Likewise.
8777         * modules/unistr/u32-cpy: Likewise.
8778         * modules/unistr/u32-cpy-alloc: Likewise.
8779         * modules/unistr/u32-endswith: Likewise.
8780         * modules/unistr/u32-mblen: Likewise.
8781         * modules/unistr/u32-mbsnlen: Likewise.
8782         * modules/unistr/u32-mbtouc: Likewise.
8783         * modules/unistr/u32-mbtouc-unsafe: Likewise.
8784         * modules/unistr/u32-mbtoucr: Likewise.
8785         * modules/unistr/u32-move: Likewise.
8786         * modules/unistr/u32-next: Likewise.
8787         * modules/unistr/u32-prev: Likewise.
8788         * modules/unistr/u32-set: Likewise.
8789         * modules/unistr/u32-startswith: Likewise.
8790         * modules/unistr/u32-stpcpy: Likewise.
8791         * modules/unistr/u32-stpncpy: Likewise.
8792         * modules/unistr/u32-strcat: Likewise.
8793         * modules/unistr/u32-strchr: Likewise.
8794         * modules/unistr/u32-strcmp: Likewise.
8795         * modules/unistr/u32-strcoll: Likewise.
8796         * modules/unistr/u32-strcpy: Likewise.
8797         * modules/unistr/u32-strcspn: Likewise.
8798         * modules/unistr/u32-strdup: Likewise.
8799         * modules/unistr/u32-strlen: Likewise.
8800         * modules/unistr/u32-strmblen: Likewise.
8801         * modules/unistr/u32-strmbtouc: Likewise.
8802         * modules/unistr/u32-strncat: Likewise.
8803         * modules/unistr/u32-strncmp: Likewise.
8804         * modules/unistr/u32-strncpy: Likewise.
8805         * modules/unistr/u32-strnlen: Likewise.
8806         * modules/unistr/u32-strpbrk: Likewise.
8807         * modules/unistr/u32-strrchr: Likewise.
8808         * modules/unistr/u32-strspn: Likewise.
8809         * modules/unistr/u32-strstr: Likewise.
8810         * modules/unistr/u32-strtok: Likewise.
8811         * modules/unistr/u32-to-u16: Likewise.
8812         * modules/unistr/u32-to-u8: Likewise.
8813         * modules/unistr/u32-uctomb: Likewise.
8814         * modules/uniwbrk/u8-wordbreaks: Likewise.
8815         * modules/uniwbrk/u16-wordbreaks: Likewise.
8816         * modules/uniwbrk/u32-wordbreaks: Likewise.
8817         * modules/uniwbrk/ulc-wordbreaks: Likewise.
8818         * modules/uniwbrk/wordbreak-property: Likewise.
8819         * modules/uniwidth/u8-strwidth: Likewise.
8820         * modules/uniwidth/u8-width: Likewise.
8821         * modules/uniwidth/u16-strwidth: Likewise.
8822         * modules/uniwidth/u16-width: Likewise.
8823         * modules/uniwidth/u32-strwidth: Likewise.
8824         * modules/uniwidth/u32-width: Likewise.
8825         * modules/uniwidth/width: Likewise.
8826         * modules/unicase/cased-tests (Makefile.am): Link all test programs
8827         with $(LIBUNISTRING).
8828         * modules/unicase/ignorable-tests: Likewise.
8829         * modules/unicase/locale-language-tests: Likewise.
8830         * modules/unicase/tolower-tests: Likewise.
8831         * modules/unicase/totitle-tests: Likewise.
8832         * modules/unicase/toupper-tests: Likewise.
8833         * modules/unicase/u8-casecmp-tests: Likewise.
8834         * modules/unicase/u8-casecoll-tests: Likewise.
8835         * modules/unicase/u8-casefold-tests: Likewise.
8836         * modules/unicase/u8-is-cased-tests: Likewise.
8837         * modules/unicase/u8-is-casefolded-tests: Likewise.
8838         * modules/unicase/u8-is-lowercase-tests: Likewise.
8839         * modules/unicase/u8-is-titlecase-tests: Likewise.
8840         * modules/unicase/u8-is-uppercase-tests: Likewise.
8841         * modules/unicase/u8-tolower-tests: Likewise.
8842         * modules/unicase/u8-totitle-tests: Likewise.
8843         * modules/unicase/u8-toupper-tests: Likewise.
8844         * modules/unicase/u16-casecmp-tests: Likewise.
8845         * modules/unicase/u16-casecoll-tests: Likewise.
8846         * modules/unicase/u16-casefold-tests: Likewise.
8847         * modules/unicase/u16-is-cased-tests: Likewise.
8848         * modules/unicase/u16-is-casefolded-tests: Likewise.
8849         * modules/unicase/u16-is-lowercase-tests: Likewise.
8850         * modules/unicase/u16-is-titlecase-tests: Likewise.
8851         * modules/unicase/u16-is-uppercase-tests: Likewise.
8852         * modules/unicase/u16-tolower-tests: Likewise.
8853         * modules/unicase/u16-totitle-tests: Likewise.
8854         * modules/unicase/u16-toupper-tests: Likewise.
8855         * modules/unicase/u32-casecmp-tests: Likewise.
8856         * modules/unicase/u32-casecoll-tests: Likewise.
8857         * modules/unicase/u32-casefold-tests: Likewise.
8858         * modules/unicase/u32-is-cased-tests: Likewise.
8859         * modules/unicase/u32-is-casefolded-tests: Likewise.
8860         * modules/unicase/u32-is-lowercase-tests: Likewise.
8861         * modules/unicase/u32-is-titlecase-tests: Likewise.
8862         * modules/unicase/u32-is-uppercase-tests: Likewise.
8863         * modules/unicase/u32-tolower-tests: Likewise.
8864         * modules/unicase/u32-totitle-tests: Likewise.
8865         * modules/unicase/u32-toupper-tests: Likewise.
8866         * modules/unicase/ulc-casecmp-tests: Likewise.
8867         * modules/unicase/ulc-casecoll-tests: Likewise.
8868         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
8869         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
8870         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
8871         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
8872         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
8873         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
8874         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
8875         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
8876         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
8877         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
8878         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
8879         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
8880         * modules/unictype/bidicategory-byname-tests: Likewise.
8881         * modules/unictype/bidicategory-name-tests: Likewise.
8882         * modules/unictype/bidicategory-of-tests: Likewise.
8883         * modules/unictype/bidicategory-test-tests: Likewise.
8884         * modules/unictype/block-list-tests: Likewise.
8885         * modules/unictype/block-of-tests: Likewise.
8886         * modules/unictype/block-test-tests: Likewise.
8887         * modules/unictype/category-C-tests: Likewise.
8888         * modules/unictype/category-Cc-tests: Likewise.
8889         * modules/unictype/category-Cf-tests: Likewise.
8890         * modules/unictype/category-Cn-tests: Likewise.
8891         * modules/unictype/category-Co-tests: Likewise.
8892         * modules/unictype/category-Cs-tests: Likewise.
8893         * modules/unictype/category-L-tests: Likewise.
8894         * modules/unictype/category-Ll-tests: Likewise.
8895         * modules/unictype/category-Lm-tests: Likewise.
8896         * modules/unictype/category-Lo-tests: Likewise.
8897         * modules/unictype/category-Lt-tests: Likewise.
8898         * modules/unictype/category-Lu-tests: Likewise.
8899         * modules/unictype/category-M-tests: Likewise.
8900         * modules/unictype/category-Mc-tests: Likewise.
8901         * modules/unictype/category-Me-tests: Likewise.
8902         * modules/unictype/category-Mn-tests: Likewise.
8903         * modules/unictype/category-N-tests: Likewise.
8904         * modules/unictype/category-Nd-tests: Likewise.
8905         * modules/unictype/category-Nl-tests: Likewise.
8906         * modules/unictype/category-No-tests: Likewise.
8907         * modules/unictype/category-P-tests: Likewise.
8908         * modules/unictype/category-Pc-tests: Likewise.
8909         * modules/unictype/category-Pd-tests: Likewise.
8910         * modules/unictype/category-Pe-tests: Likewise.
8911         * modules/unictype/category-Pf-tests: Likewise.
8912         * modules/unictype/category-Pi-tests: Likewise.
8913         * modules/unictype/category-Po-tests: Likewise.
8914         * modules/unictype/category-Ps-tests: Likewise.
8915         * modules/unictype/category-S-tests: Likewise.
8916         * modules/unictype/category-Sc-tests: Likewise.
8917         * modules/unictype/category-Sk-tests: Likewise.
8918         * modules/unictype/category-Sm-tests: Likewise.
8919         * modules/unictype/category-So-tests: Likewise.
8920         * modules/unictype/category-Z-tests: Likewise.
8921         * modules/unictype/category-Zl-tests: Likewise.
8922         * modules/unictype/category-Zp-tests: Likewise.
8923         * modules/unictype/category-Zs-tests: Likewise.
8924         * modules/unictype/category-and-not-tests: Likewise.
8925         * modules/unictype/category-and-tests: Likewise.
8926         * modules/unictype/category-byname-tests: Likewise.
8927         * modules/unictype/category-name-tests: Likewise.
8928         * modules/unictype/category-none-tests: Likewise.
8929         * modules/unictype/category-of-tests: Likewise.
8930         * modules/unictype/category-or-tests: Likewise.
8931         * modules/unictype/category-test-withtable-tests: Likewise.
8932         * modules/unictype/combining-class-tests: Likewise.
8933         * modules/unictype/ctype-alnum-tests: Likewise.
8934         * modules/unictype/ctype-alpha-tests: Likewise.
8935         * modules/unictype/ctype-blank-tests: Likewise.
8936         * modules/unictype/ctype-cntrl-tests: Likewise.
8937         * modules/unictype/ctype-digit-tests: Likewise.
8938         * modules/unictype/ctype-graph-tests: Likewise.
8939         * modules/unictype/ctype-lower-tests: Likewise.
8940         * modules/unictype/ctype-print-tests: Likewise.
8941         * modules/unictype/ctype-punct-tests: Likewise.
8942         * modules/unictype/ctype-space-tests: Likewise.
8943         * modules/unictype/ctype-upper-tests: Likewise.
8944         * modules/unictype/ctype-xdigit-tests: Likewise.
8945         * modules/unictype/decimal-digit-tests: Likewise.
8946         * modules/unictype/digit-tests: Likewise.
8947         * modules/unictype/mirror-tests: Likewise.
8948         * modules/unictype/numeric-tests: Likewise.
8949         * modules/unictype/property-alphabetic-tests: Likewise.
8950         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
8951         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
8952         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
8953         * modules/unictype/property-bidi-block-separator-tests: Likewise.
8954         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
8955         * modules/unictype/property-bidi-common-separator-tests: Likewise.
8956         * modules/unictype/property-bidi-control-tests: Likewise.
8957         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
8958         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
8959         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
8960         * modules/unictype/property-bidi-european-digit-tests: Likewise.
8961         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
8962         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
8963         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
8964         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
8965         * modules/unictype/property-bidi-pdf-tests: Likewise.
8966         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
8967         * modules/unictype/property-bidi-whitespace-tests: Likewise.
8968         * modules/unictype/property-byname-tests: Likewise.
8969         * modules/unictype/property-combining-tests: Likewise.
8970         * modules/unictype/property-composite-tests: Likewise.
8971         * modules/unictype/property-currency-symbol-tests: Likewise.
8972         * modules/unictype/property-dash-tests: Likewise.
8973         * modules/unictype/property-decimal-digit-tests: Likewise.
8974         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
8975         * modules/unictype/property-deprecated-tests: Likewise.
8976         * modules/unictype/property-diacritic-tests: Likewise.
8977         * modules/unictype/property-extender-tests: Likewise.
8978         * modules/unictype/property-format-control-tests: Likewise.
8979         * modules/unictype/property-grapheme-base-tests: Likewise.
8980         * modules/unictype/property-grapheme-extend-tests: Likewise.
8981         * modules/unictype/property-grapheme-link-tests: Likewise.
8982         * modules/unictype/property-hex-digit-tests: Likewise.
8983         * modules/unictype/property-hyphen-tests: Likewise.
8984         * modules/unictype/property-id-continue-tests: Likewise.
8985         * modules/unictype/property-id-start-tests: Likewise.
8986         * modules/unictype/property-ideographic-tests: Likewise.
8987         * modules/unictype/property-ids-binary-operator-tests: Likewise.
8988         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
8989         * modules/unictype/property-ignorable-control-tests: Likewise.
8990         * modules/unictype/property-iso-control-tests: Likewise.
8991         * modules/unictype/property-join-control-tests: Likewise.
8992         * modules/unictype/property-left-of-pair-tests: Likewise.
8993         * modules/unictype/property-line-separator-tests: Likewise.
8994         * modules/unictype/property-logical-order-exception-tests: Likewise.
8995         * modules/unictype/property-lowercase-tests: Likewise.
8996         * modules/unictype/property-math-tests: Likewise.
8997         * modules/unictype/property-non-break-tests: Likewise.
8998         * modules/unictype/property-not-a-character-tests: Likewise.
8999         * modules/unictype/property-numeric-tests: Likewise.
9000         * modules/unictype/property-other-alphabetic-tests: Likewise.
9001         * modules/unictype/property-other-default-ignorable-code-point-tests:
9002         Likewise.
9003         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
9004         * modules/unictype/property-other-id-continue-tests: Likewise.
9005         * modules/unictype/property-other-id-start-tests: Likewise.
9006         * modules/unictype/property-other-lowercase-tests: Likewise.
9007         * modules/unictype/property-other-math-tests: Likewise.
9008         * modules/unictype/property-other-uppercase-tests: Likewise.
9009         * modules/unictype/property-paired-punctuation-tests: Likewise.
9010         * modules/unictype/property-paragraph-separator-tests: Likewise.
9011         * modules/unictype/property-pattern-syntax-tests: Likewise.
9012         * modules/unictype/property-pattern-white-space-tests: Likewise.
9013         * modules/unictype/property-private-use-tests: Likewise.
9014         * modules/unictype/property-punctuation-tests: Likewise.
9015         * modules/unictype/property-quotation-mark-tests: Likewise.
9016         * modules/unictype/property-radical-tests: Likewise.
9017         * modules/unictype/property-sentence-terminal-tests: Likewise.
9018         * modules/unictype/property-soft-dotted-tests: Likewise.
9019         * modules/unictype/property-space-tests: Likewise.
9020         * modules/unictype/property-terminal-punctuation-tests: Likewise.
9021         * modules/unictype/property-test-tests: Likewise.
9022         * modules/unictype/property-titlecase-tests: Likewise.
9023         * modules/unictype/property-unassigned-code-value-tests: Likewise.
9024         * modules/unictype/property-unified-ideograph-tests: Likewise.
9025         * modules/unictype/property-uppercase-tests: Likewise.
9026         * modules/unictype/property-variation-selector-tests: Likewise.
9027         * modules/unictype/property-white-space-tests: Likewise.
9028         * modules/unictype/property-xid-continue-tests: Likewise.
9029         * modules/unictype/property-xid-start-tests: Likewise.
9030         * modules/unictype/property-zero-width-tests: Likewise.
9031         * modules/unictype/scripts-tests: Likewise.
9032         * modules/unictype/syntax-c-ident-tests: Likewise.
9033         * modules/unictype/syntax-c-whitespace-tests: Likewise.
9034         * modules/unictype/syntax-java-ident-tests: Likewise.
9035         * modules/unictype/syntax-java-whitespace-tests: Likewise.
9036         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
9037         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
9038         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
9039         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
9040         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
9041         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
9042         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
9043         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
9044         * modules/uniname/uniname-tests: Likewise.
9045         * modules/uninorm/canonical-decomposition-tests: Likewise.
9046         * modules/uninorm/compat-decomposition-tests: Likewise.
9047         * modules/uninorm/composition-tests: Likewise.
9048         * modules/uninorm/decomposing-form-tests: Likewise.
9049         * modules/uninorm/decomposition-tests: Likewise.
9050         * modules/uninorm/filter-tests: Likewise.
9051         * modules/uninorm/nfc-tests: Likewise.
9052         * modules/uninorm/nfd-tests: Likewise.
9053         * modules/uninorm/nfkc-tests: Likewise.
9054         * modules/uninorm/nfkd-tests: Likewise.
9055         * modules/uninorm/u8-normcmp-tests: Likewise.
9056         * modules/uninorm/u8-normcoll-tests: Likewise.
9057         * modules/uninorm/u16-normcmp-tests: Likewise.
9058         * modules/uninorm/u16-normcoll-tests: Likewise.
9059         * modules/uninorm/u32-normcmp-tests: Likewise.
9060         * modules/uninorm/u32-normcoll-tests: Likewise.
9061         * modules/unistdio/u8-asnprintf-tests: Likewise.
9062         * modules/unistdio/u8-vasnprintf-tests: Likewise.
9063         * modules/unistdio/u8-vasprintf-tests: Likewise.
9064         * modules/unistdio/u8-vsnprintf-tests: Likewise.
9065         * modules/unistdio/u8-vsprintf-tests: Likewise.
9066         * modules/unistdio/u16-asnprintf-tests: Likewise.
9067         * modules/unistdio/u16-vasnprintf-tests: Likewise.
9068         * modules/unistdio/u16-vasprintf-tests: Likewise.
9069         * modules/unistdio/u16-vsnprintf-tests: Likewise.
9070         * modules/unistdio/u16-vsprintf-tests: Likewise.
9071         * modules/unistdio/u32-asnprintf-tests: Likewise.
9072         * modules/unistdio/u32-vasnprintf-tests: Likewise.
9073         * modules/unistdio/u32-vasprintf-tests: Likewise.
9074         * modules/unistdio/u32-vsnprintf-tests: Likewise.
9075         * modules/unistdio/u32-vsprintf-tests: Likewise.
9076         * modules/unistdio/ulc-asnprintf-tests: Likewise.
9077         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
9078         * modules/unistdio/ulc-vasprintf-tests: Likewise.
9079         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
9080         * modules/unistdio/ulc-vsprintf-tests: Likewise.
9081         * modules/unistr/u8-check-tests: Likewise.
9082         * modules/unistr/u8-chr-tests: Likewise.
9083         * modules/unistr/u8-cmp-tests: Likewise.
9084         * modules/unistr/u8-cmp2-tests: Likewise.
9085         * modules/unistr/u8-cpy-alloc-tests: Likewise.
9086         * modules/unistr/u8-cpy-tests: Likewise.
9087         * modules/unistr/u8-mblen-tests: Likewise.
9088         * modules/unistr/u8-mbsnlen-tests: Likewise.
9089         * modules/unistr/u8-mbtouc-tests: Likewise.
9090         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
9091         * modules/unistr/u8-mbtoucr-tests: Likewise.
9092         * modules/unistr/u8-move-tests: Likewise.
9093         * modules/unistr/u8-next-tests: Likewise.
9094         * modules/unistr/u8-prev-tests: Likewise.
9095         * modules/unistr/u8-set-tests: Likewise.
9096         * modules/unistr/u8-stpcpy-tests: Likewise.
9097         * modules/unistr/u8-stpncpy-tests: Likewise.
9098         * modules/unistr/u8-strcat-tests: Likewise.
9099         * modules/unistr/u8-strcmp-tests: Likewise.
9100         * modules/unistr/u8-strcoll-tests: Likewise.
9101         * modules/unistr/u8-strcpy-tests: Likewise.
9102         * modules/unistr/u8-strdup-tests: Likewise.
9103         * modules/unistr/u8-strlen-tests: Likewise.
9104         * modules/unistr/u8-strmblen-tests: Likewise.
9105         * modules/unistr/u8-strmbtouc-tests: Likewise.
9106         * modules/unistr/u8-strncat-tests: Likewise.
9107         * modules/unistr/u8-strncmp-tests: Likewise.
9108         * modules/unistr/u8-strncpy-tests: Likewise.
9109         * modules/unistr/u8-strnlen-tests: Likewise.
9110         * modules/unistr/u8-to-u16-tests: Likewise.
9111         * modules/unistr/u8-to-u32-tests: Likewise.
9112         * modules/unistr/u8-uctomb-tests: Likewise.
9113         * modules/unistr/u16-check-tests: Likewise.
9114         * modules/unistr/u16-chr-tests: Likewise.
9115         * modules/unistr/u16-cmp-tests: Likewise.
9116         * modules/unistr/u16-cmp2-tests: Likewise.
9117         * modules/unistr/u16-cpy-alloc-tests: Likewise.
9118         * modules/unistr/u16-cpy-tests: Likewise.
9119         * modules/unistr/u16-mblen-tests: Likewise.
9120         * modules/unistr/u16-mbsnlen-tests: Likewise.
9121         * modules/unistr/u16-mbtouc-tests: Likewise.
9122         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
9123         * modules/unistr/u16-mbtoucr-tests: Likewise.
9124         * modules/unistr/u16-move-tests: Likewise.
9125         * modules/unistr/u16-next-tests: Likewise.
9126         * modules/unistr/u16-prev-tests: Likewise.
9127         * modules/unistr/u16-set-tests: Likewise.
9128         * modules/unistr/u16-stpcpy-tests: Likewise.
9129         * modules/unistr/u16-stpncpy-tests: Likewise.
9130         * modules/unistr/u16-strcat-tests: Likewise.
9131         * modules/unistr/u16-strcmp-tests: Likewise.
9132         * modules/unistr/u16-strcoll-tests: Likewise.
9133         * modules/unistr/u16-strcpy-tests: Likewise.
9134         * modules/unistr/u16-strdup-tests: Likewise.
9135         * modules/unistr/u16-strlen-tests: Likewise.
9136         * modules/unistr/u16-strmblen-tests: Likewise.
9137         * modules/unistr/u16-strmbtouc-tests: Likewise.
9138         * modules/unistr/u16-strncat-tests: Likewise.
9139         * modules/unistr/u16-strncmp-tests: Likewise.
9140         * modules/unistr/u16-strncpy-tests: Likewise.
9141         * modules/unistr/u16-strnlen-tests: Likewise.
9142         * modules/unistr/u16-to-u32-tests: Likewise.
9143         * modules/unistr/u16-to-u8-tests: Likewise.
9144         * modules/unistr/u16-uctomb-tests: Likewise.
9145         * modules/unistr/u32-check-tests: Likewise.
9146         * modules/unistr/u32-chr-tests: Likewise.
9147         * modules/unistr/u32-cmp-tests: Likewise.
9148         * modules/unistr/u32-cmp2-tests: Likewise.
9149         * modules/unistr/u32-cpy-alloc-tests: Likewise.
9150         * modules/unistr/u32-cpy-tests: Likewise.
9151         * modules/unistr/u32-mblen-tests: Likewise.
9152         * modules/unistr/u32-mbsnlen-tests: Likewise.
9153         * modules/unistr/u32-mbtouc-tests: Likewise.
9154         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
9155         * modules/unistr/u32-mbtoucr-tests: Likewise.
9156         * modules/unistr/u32-move-tests: Likewise.
9157         * modules/unistr/u32-next-tests: Likewise.
9158         * modules/unistr/u32-prev-tests: Likewise.
9159         * modules/unistr/u32-set-tests: Likewise.
9160         * modules/unistr/u32-stpcpy-tests: Likewise.
9161         * modules/unistr/u32-stpncpy-tests: Likewise.
9162         * modules/unistr/u32-strcat-tests: Likewise.
9163         * modules/unistr/u32-strcmp-tests: Likewise.
9164         * modules/unistr/u32-strcoll-tests: Likewise.
9165         * modules/unistr/u32-strcpy-tests: Likewise.
9166         * modules/unistr/u32-strdup-tests: Likewise.
9167         * modules/unistr/u32-strlen-tests: Likewise.
9168         * modules/unistr/u32-strmblen-tests: Likewise.
9169         * modules/unistr/u32-strmbtouc-tests: Likewise.
9170         * modules/unistr/u32-strncat-tests: Likewise.
9171         * modules/unistr/u32-strncmp-tests: Likewise.
9172         * modules/unistr/u32-strncpy-tests: Likewise.
9173         * modules/unistr/u32-strnlen-tests: Likewise.
9174         * modules/unistr/u32-to-u16-tests: Likewise.
9175         * modules/unistr/u32-to-u8-tests: Likewise.
9176         * modules/unistr/u32-uctomb-tests: Likewise.
9177         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
9178         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
9179         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
9180         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
9181         * modules/uniwidth/u8-strwidth-tests: Likewise.
9182         * modules/uniwidth/u8-width-tests: Likewise.
9183         * modules/uniwidth/u16-strwidth-tests: Likewise.
9184         * modules/uniwidth/u16-width-tests: Likewise.
9185         * modules/uniwidth/u32-strwidth-tests: Likewise.
9186         * modules/uniwidth/u32-width-tests: Likewise.
9187         * modules/uniwidth/width-tests: Likewise.
9188
9189 2010-05-18  Richard Jones  <rjones@redhat.com>
9190
9191         doc: users.txt: list hivex
9192         * users.txt: Add hivex.
9193
9194 2010-05-18  Richard Jones  <rjones@redhat.com>
9195
9196         doc: users.txt: list febootstrap
9197         * users.txt: Add febootstrap.
9198
9199 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
9200
9201         bootstrap: fix an error when gnulib is not used as a git submodule
9202         * build-aux/bootstrap (gnulib_path): If its length is zero then
9203         assign "gnulib" to it.
9204         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
9205
9206 2010-05-16  Bruno Haible  <bruno@clisp.org>
9207
9208         Avoid autoconf warnings about AM_ICONV.
9209         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
9210         2.64.
9211
9212 2010-05-16  Bruno Haible  <bruno@clisp.org>
9213
9214         absolute-header: Make the macro usable in more situations.
9215         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
9216         from gl_ABSOLUTE_HEADER.
9217         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
9218
9219 2010-05-16  James Youngman  <jay@gnu.org>
9220
9221         doc: update users.txt
9222         * users.txt: Add CSSC.
9223
9224 2010-05-16  Jim Meyering  <meyering@redhat.com>
9225
9226         init.sh: fix an error in the previous change; add more comments
9227         * tests/init.sh: Compare exit code in loop against 9, not 2.
9228         Patch by Bruno Haible.
9229         Make the two tests more similar by adding an empty "then" clause.
9230         Add comments.
9231
9232         init.sh: avoid unnecessary shell re-exec
9233         * tests/init.sh: Improve the re-exec-required check to first test the
9234         current shell.  If it passes the test, do not search for a shell that
9235         does pass, and do not re-exec.  This test is particularly contorted to
9236         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
9237         of $(...) evokes a syntax error and causes immediate shell exit with
9238         status 2.  Bruno Haible reported that the re-exec made it impossible
9239         to single-step through any init.sh-using script.
9240
9241 2010-05-16  Bruno Haible  <bruno@clisp.org>
9242
9243         Fix collision between gnulib's and libintl's printf replacements.
9244         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
9245         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
9246         (printf): When using GNU C, map the __printf__ function to rpl_printf
9247         via __asm__. When not using GNU C, define rpl_printf instead of
9248         __printf__.
9249         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
9250         commit.
9251         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
9252         commit.
9253         * m4/asm-underscore.m4: New file.
9254         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
9255         * modules/stdio (Files): Add m4/asm-underscore.m4.
9256         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
9257         Reported by Ben Pfaff.
9258
9259 2010-05-16  Bruno Haible  <bruno@clisp.org>
9260
9261         verify: Avoid skipping the test on openSUSE 11.0.
9262         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
9263
9264 2010-05-13  Bruno Haible  <bruno@clisp.org>
9265
9266         Avoid useless warnings from G++.
9267         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
9268         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
9269         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9270
9271 2010-05-11  Jim Meyering  <meyering@redhat.com>
9272
9273         maint.mk: tweak preceding change
9274         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
9275         regexps tighter by anchoring at EOL, and make the new group "shy"
9276         for slightly decreased overhead.
9277
9278 2010-05-11  Eric Blake  <eblake@redhat.com>
9279
9280         maint.mk: gnulib doesn't guarantee NSIG
9281         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
9282
9283 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
9284
9285         test-pwrite.c: Remove unused variable declaration.
9286         * tests/test-pwrite.c (main): Remove read_buf declaration.
9287
9288         Remove useless test-pwrite.sh file.
9289         * tests/test-pwrite.sh: Delete file.
9290         * modules/pwrite-tests: Remove references.
9291         Reported by Bruno Haible.
9292
9293 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
9294
9295         init.sh: fix a typo
9296         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
9297
9298 2010-05-10  Jim Meyering  <meyering@redhat.com>
9299
9300         maint.mk: avoid using a temporary file in the always-defined-macros check
9301         * top/maint.mk (.re-defmac): Remove rule.
9302         (gl_trap_): Remove definition.
9303         (sc_prohibit_always-defined_macros): Rewrite not to create and
9304         depend on a temporary file.  Instead, depend on GNU grep's ability
9305         to read a list of regular expressions from stdin when given "-f -".
9306
9307 2010-05-09  Bruno Haible  <bruno@clisp.org>
9308
9309         Update to GNU gettext 0.18, part 1.
9310         * m4/gettext.m4: Update to GNU gettext 0.18.
9311         * m4/intl.m4: Likewise.
9312         * m4/po.m4: Likewise.
9313         * modules/gettext (Files): Add m4/fcntl-o.m4.
9314         (configure.ac): Require gettext infrastructure from version 0.18.
9315
9316 2010-05-09  Jim Meyering  <meyering@redhat.com>
9317
9318         init.sh: enable MALLOC_PERTURB_
9319         * tests/init.sh: Enable glibc's malloc-perturbing option.
9320
9321         maint.mk: improve sc_cross_check_PATH_usage_in_tests
9322         With my recent change in init.sh from the two-line form:
9323             -#   : ${srcdir=.}
9324             -#   . "$srcdir/init.sh"; path_prepend_ .
9325             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
9326         I noticed that using the one-line form would cause this test
9327         to fail with a false-positive, or to stop working altogether,
9328         depending on whether help-version changed or all the tests did.
9329         * top/maint.mk (_hv_regex): Remove this definition.
9330         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
9331         (_hv_regex_strong): Use a stronger regex to check for conformance.
9332         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
9333         Give a separate diagnostic for lack of conforming use.
9334
9335         maint.mk: prohibit definition of symbols defined by gnulib
9336         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
9337         definition of symbols defined by gnulib.
9338
9339 2010-05-09  Bruno Haible  <bruno@clisp.org>
9340
9341         acl: Avoid test failure on Cygwin-hosted mingw.
9342         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
9343
9344 2010-05-09  Bruno Haible  <bruno@clisp.org>
9345
9346         error: Use system's fcntl function.
9347         * lib/error.c (fcntl): Undefine.
9348
9349 2010-05-09  Jim Meyering  <meyering@redhat.com>
9350
9351         verify: adjust formatting to be more consistent
9352         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
9353         argument-list '('s, and after one comma.
9354
9355 2010-05-09  Bruno Haible  <bruno@clisp.org>
9356
9357         error: More reliable output on mingw.
9358         * lib/error.c: Include <windows.h>.
9359         (is_open): New function.
9360         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
9361         defined.
9362
9363 2010-05-09  Bruno Haible  <bruno@clisp.org>
9364
9365         vasnprintf: Fix syntax errors in libintl build on mingw.
9366         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
9367         pad_ourselves and prec_ourselves after use.
9368
9369 2010-05-08  Bruno Haible  <bruno@clisp.org>
9370
9371         * lib/config.charset: Update comments for Cygwin 1.7.
9372         * lib/localcharset.c: Likewise.
9373
9374 2010-05-07  Jim Meyering  <meyering@redhat.com>
9375
9376         init.sh: improve comments
9377         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
9378         . "${srcdir=.}/init.sh"; path_prepend_ .
9379         Add a note about path_prepend_ and the alternative of using
9380         TESTS_ENVIRONMENT.
9381
9382 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9383
9384         exclude: Unescape hashed patterns in wildcard mode.
9385         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
9386         to the hash list.
9387         * tests/test-exclude8.sh: New test case.
9388         * modules/exclude-tests: Add new test.
9389
9390 2010-05-05  Eric Blake  <eblake@redhat.com>
9391
9392         verify: automate tests
9393         * modules/verify-tests: New module.
9394         * tests/test-verify.sh: New file.
9395         * tests/test-verify.c: Guard each negative test with a unique id.
9396         Also avoid warning about unused left hand of comma expressions.
9397
9398 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9399
9400         Further improvements to verify.h, suggested by Eric Blake.
9401         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
9402         the GL_* versions, to avoid collision with OpenGL.
9403         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
9404         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
9405         than testing merely whether it's defined.
9406
9407         Modify verify.h to pacify gcc -Wredundant_decls.
9408         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
9409         These use the prefix "GL_" since they're likely to be useful elsewhere.
9410         We may need to break them out into a different .h file.
9411         (__COUNTER__): Define to 0 if the compiler doesn't support it.
9412         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
9413         of verify_function__.
9414
9415 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
9416
9417         Tests for module pwrite.
9418         * modules/pwrite-tests: New file.
9419         * tests/test-pwrite.sh: New file.
9420         * tests/test-pwrite.c: New file.
9421
9422         New module pwrite.
9423         * lib/unistd.in.h (pwrite): New declaration.
9424         * lib/pwrite.c: New file, from glibc with modifications.
9425         * m4/pwrite.m4: New file.
9426         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
9427         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
9428         REPLACE_PWRITE.
9429         * modules/pwrite: New file.
9430         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
9431         REPLACE_PWRITE.
9432         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
9433         * doc/posix-functions/pwrite.texi: Mention the new module.
9434
9435 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
9436
9437         pread: Update documentation.
9438         * doc/posix-functions/pread.texi: Mention the 'pread' module.
9439
9440 2010-05-04  Eric Blake  <eblake@redhat.com>
9441
9442         docs: update cygwin progress
9443         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
9444         this bug.
9445         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
9446         Added in cygwin 1.7.2.
9447         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
9448         Likewise.
9449         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
9450         Likewise.
9451         * doc/glibc-functions/dup3.texi (dup3): Likewise.
9452         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
9453         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9454         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
9455         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
9456         Mention nproc module.
9457         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
9458         bug in cygwin 1.7.5 addition.
9459         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
9460         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
9461         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
9462         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
9463         1.7.5.
9464         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
9465         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
9466         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
9467         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
9468         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
9469         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
9470         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
9471         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
9472         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
9473         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
9474         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
9475         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
9476         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
9477         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
9478         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
9479         Likewise.
9480         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
9481         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
9482         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
9483         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
9484         Likewise.
9485         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
9486         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
9487         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
9488         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
9489         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
9490         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
9491         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
9492         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
9493         Likewise.
9494         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
9495         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
9496         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
9497         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
9498         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
9499         Likewise.
9500         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
9501         Likewise.
9502         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
9503         Likewise.
9504         * doc/glibc-functions/xdrrec_endofrecord.texi
9505         (xdrrec_endofrecord): Likewise.
9506         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
9507         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
9508         Likewise.
9509         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
9510         Likewise.
9511
9512 2010-05-04  Jim Meyering  <meyering@redhat.com>
9513
9514         gendocs.sh: make its "-s FILE" option more useful
9515         * build-aux/gendocs.sh: When honoring the -s FILE option, update
9516         $PACKAGE to reflect the probably-different basename of "FILE".
9517
9518 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
9519
9520         bootstrap: don't ignore download_po_files failure
9521         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
9522         failure.
9523
9524 2010-05-03  Jim Meyering  <meyering@redhat.com>
9525
9526         maint.mk: allow to pass options to gendocs.sh
9527         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
9528         (gendocs_options_): New overridable variable.
9529
9530         gnu-web-doc-update: don't ignore configure or build failure
9531         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
9532
9533         announce-gen: backslash-escape '@'s in --help output
9534         * build-aux/announce-gen: Fix syntax errors.
9535
9536         maint.mk, announce-gen: allow project-specific announcement mail headers
9537         * top/maint.mk (translation_project_): Define default.
9538         (announcement_Cc_, announcement_mail_headers_): Likewise.
9539         (announcement): Invoke announce-gen with new --mail-headers option.
9540         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
9541
9542         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
9543         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
9544         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
9545         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
9546         line in the "err2" output file when running "make check" in verbose
9547         mode (i.e., with set -x enabled).
9548
9549 2010-05-03  Bruno Haible  <bruno@clisp.org>
9550
9551         wctob: Fix for weird platforms.
9552         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
9553         argument value.
9554
9555 2010-05-03  Jim Meyering  <meyering@redhat.com>
9556
9557         maint.mk: prohibit unwarranted use of <strings.h>
9558         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
9559         strings.h in a file that does not also use strcasecmp, strncasecmp,
9560         ffs or ffsll.
9561
9562         maint.mk: remove obsolete comments
9563         * top/maint.mk: Remove stale, commented-out rules.
9564
9565 2010-05-02  Bruno Haible  <bruno@clisp.org>
9566
9567         wcwidth: Declare also when it's aliased.
9568         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
9569         macro.
9570
9571 2010-05-02  Bruno Haible  <bruno@clisp.org>
9572
9573         Fix regression from 2010-04-25.
9574         * gnulib-tool (func_modules_transitive_closure): Check the status of
9575         all modules, not only of the tests that are of the form foo-tests where
9576         foo is a module.
9577
9578 2010-05-02  Bruno Haible  <bruno@clisp.org>
9579
9580         wctob: Work around nasty Cygwin 1.7.2 bug.
9581         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
9582         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
9583
9584 2010-05-01  Bruno Haible  <bruno@clisp.org>
9585
9586         fpurge: Sharper test.
9587         * tests/test-fpurge.c (main): Add one more ftell check.
9588         * modules/fpurge-tests (Depends-on): Add ftell.
9589         Suggested by Eric Blake.
9590
9591 2010-05-01  Bruno Haible  <bruno@clisp.org>
9592
9593         ftello: Another test.
9594         * tests/test-ftello3.c: New file.
9595         * modules/ftello-tests (Files): Add it.
9596         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9597         MOSTLYCLEANFILES.
9598
9599         ftell: Another test.
9600         * tests/test-ftell3.c: New file.
9601         * modules/ftell-tests (Files): Add it.
9602         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
9603         MOSTLYCLEANFILES.
9604
9605 2010-05-01  Bruno Haible  <bruno@clisp.org>
9606
9607         ftell, ftello: Work around Solaris bug.
9608         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
9609         * lib/ftello.c: Include stdio-impl.h.
9610         (ftello): On Solaris, when _IOWRT is set, compute the result without
9611         looking at _IOREAD.
9612         * modules/ftello (Files): Add lib/stdio-impl.h.
9613         * doc/posix-functions/ftell.texi: Mention Solaris bug.
9614         * doc/posix-functions/ftello.texi: Likewise.
9615         Reported by Eric Blake.
9616
9617 2010-05-01  Bruno Haible  <bruno@clisp.org>
9618
9619         freading: Adapt to special meaning of _IOREAD flag on Solaris.
9620         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
9621         the _IOWRT flag is also set.
9622
9623 2010-05-01  Bruno Haible  <bruno@clisp.org>
9624
9625         Fix doc about a HP-UX stdio bug.
9626         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
9627         * doc/posix-functions/ftello.texi: Likewise.
9628
9629 2010-05-01  Bruno Haible  <bruno@clisp.org>
9630
9631         lseek test: Fix failure on Solaris.
9632         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
9633         output.
9634
9635 2010-04-30  Jim Meyering  <meyering@redhat.com>
9636
9637         bootstrap: don't ignore failure to generate po*/Makevars
9638         * build-aux/bootstrap (with_gettext): Don't ignore failure
9639         to create po/Makevars or runtime-po/Makevars.
9640
9641 2010-04-29  Eric Blake  <eblake@redhat.com>
9642
9643         headers: relax license to LGPLv2+
9644         * modules/fcntl-h (License): Relax license.
9645         * modules/getopt-posix (License): Likewise.
9646         * modules/locale (License): Likewise.
9647         * modules/math (License): Likewise.
9648         * modules/pty (License): Likewise.
9649         * modules/sched (License): Likewise.
9650         * modules/search (License): Likewise.
9651         * modules/spawn (License): Likewise.
9652         * modules/stdarg (License): Likewise.
9653         * modules/sysexits (License): Likewise.
9654
9655 2010-04-29  Jim Meyering  <meyering@redhat.com>
9656
9657         inttypes: relax license to LGPLv2+
9658         * modules/inttypes (License): Relax license.
9659
9660 2010-04-29  Simon Josefsson  <simon@josefsson.org>
9661
9662         * top/maint.mk (indent): Run twice to produce idempotent results.
9663
9664 2010-04-28  Bruno Haible  <bruno@clisp.org>
9665
9666         getdate: Generate getdate.c in the source directory.
9667         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
9668         MOSTLYCLEANFILES.
9669         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
9670
9671 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
9672
9673         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
9674         is not declared as a const *; avoid warnings in that case.
9675
9676 2010-04-28  Eric Blake  <eblake@redhat.com>
9677
9678         canonicalize-lgpl: avoid compiler warning
9679         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
9680         declaration' / 'extraneous semicolon' warning with some compilers.
9681         Reported by Andreas Gruenbacher.
9682
9683 2010-04-28  Jim Meyering  <meyering@redhat.com>
9684
9685         init.sh: ensure a more reliable exit status when exiting via trap
9686         * tests/init.sh (setup_): Don't rely on $? in signal handler.
9687         Inspired by patches from Dmitry V. Levin.
9688         Also trap on signal 3 (SIGQUIT).
9689
9690 2010-04-27  Bruno Haible  <bruno@clisp.org>
9691
9692         Update doc about utimes().
9693         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
9694         'utimens' module.
9695         Reported by Andreas Gruenbacher <agruen@suse.de>.
9696
9697 2010-04-27  Eric Blake  <eblake@redhat.com>
9698
9699         full-read, full-write: relax license
9700         * modules/full-read (License): Drop to LGPLv2+.
9701         * modules/full-write (License): Likewise.
9702         * modules/safe-read (License): Likewise.
9703         * modules/safe-write (License): Likewise.
9704
9705         pthread: mention library for linking
9706         * modules/pthread (Link): Mention $(LIB_PTHREAD).
9707
9708 2010-04-27  Jim Meyering  <meyering@redhat.com>
9709
9710         maint.mk: fix a bug introduced in last change
9711         * top/maint.mk (gl_assured_headers_): Now that all names are on
9712         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
9713         is not anchored to end of word, it should be adequate.
9714
9715         maint.mk: avoid side-effect in latest syntax-check
9716         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
9717         to run commands via $(shell...), and hence to incur cost only when
9718         the new rule is actually run.
9719
9720         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
9721         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
9722         and use that to create a regexp used to detect all #if HAVE_..._H uses.
9723         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
9724         (gl_assured_headers_, az_, AZ_): Define.
9725         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
9726
9727 2010-04-26  Jim Meyering  <jim@meyering.net>
9728             Bruno Haible  <bruno@clisp.org>
9729
9730         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
9731         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
9732         Prompted by an exchange with Gilles Espinasse.
9733
9734 2010-04-26  Jim Meyering  <meyering@redhat.com>
9735
9736         git-version-gen: aesthetic tweak
9737         * build-aux/git-version-gen: Use "$nl" rather than a literal,
9738         so that the command remains on a single line.
9739
9740 2010-04-26  Eric Blake  <eblake@redhat.com>
9741
9742         git-version-gen: allow use on EBCDIC hosts
9743         * build-aux/git-version-gen (dirty): Use literal rather than tying
9744         ourselves to ascii.
9745         Reported by Steve Goetze.
9746
9747 2010-04-25  Bruno Haible  <bruno@clisp.org>
9748
9749         netdb: Add support for GNULIB_POSIXCHECK.
9750         * lib/netdb.in.h: Include warn-on-use.h.
9751         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
9752         functions are used when GNULIB_POSIXCHECK is defined and the
9753         getaddrinfo module is not in use.
9754         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
9755         freeaddrinfo, gai_strerror, getnameinfo are declared.
9756         * modules/netdb (Depends-on): Add warn-on-use.
9757         (Makefile.am): Include warn-on-use.h in netdb.h.
9758
9759 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
9760
9761         build: avoid "make check" failure without .git/ directory
9762         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
9763         there is no .git/ directory.
9764
9765 2010-04-25  Bruno Haible  <bruno@clisp.org>
9766
9767         ptsname: Fix misuse of ttyname_r.
9768         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
9769         of errno.
9770
9771 2010-04-25  Bruno Haible  <bruno@clisp.org>
9772
9773         ttyname_r: Make it work on Solaris 10.
9774         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
9775         if the system function has the POSIX declaration. Test whether the
9776         function fails if the buffer is less than 128 bytes large.
9777         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
9778         system's ttyname_r function. Provide a reasonably large buffer.
9779         * modules/ttyname_r (Depends-on): Add extensions.
9780         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
9781
9782 2010-04-25  Bruno Haible  <bruno@clisp.org>
9783
9784         Use the 'extensions' module for some more functions on Solaris.
9785         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
9786         module.
9787         * doc/posix-functions/ctime_r.texi: Likewise.
9788         * doc/posix-functions/getgrgid_r.texi: Likewise.
9789         * doc/posix-functions/getgrnam_r.texi: Likewise.
9790         * doc/posix-functions/getpwnam_r.texi: Likewise.
9791         * doc/posix-functions/getpwuid_r.texi: Likewise.
9792         * doc/posix-functions/readdir_r.texi: Likewise.
9793         * doc/posix-functions/sigwait.texi: Likewise.
9794         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
9795         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
9796
9797 2010-04-25  Bruno Haible  <bruno@clisp.org>
9798
9799         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
9800         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
9801         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
9802         * lib/ttyname_r.c: Include <limits.h>.
9803         (ttyname_r): Define using the system's ttyname_r function, if it exists
9804         and not on Solaris.
9805         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
9806         set.
9807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
9808         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
9809         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
9810         Reported by Simon Josefsson.
9811
9812 2010-04-25  Bruno Haible  <bruno@clisp.org>
9813
9814         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
9815         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
9816         * doc/posix-functions/ctime_r.texi: Likewise.
9817         * doc/posix-functions/getgrgid_r.texi: Likewise.
9818         * doc/posix-functions/getgrnam_r.texi: Likewise.
9819         * doc/posix-functions/getlogin_r.texi: Likewise.
9820         * doc/posix-functions/getpwnam_r.texi: Likewise.
9821         * doc/posix-functions/getpwuid_r.texi: Likewise.
9822         * doc/posix-functions/readdir_r.texi: Likewise.
9823         * doc/posix-functions/sigwait.texi: Likewise.
9824         * doc/posix-functions/ttyname_r.texi: Likewise.
9825         Reported by Simon Josefsson.
9826
9827 2010-04-25  Bruno Haible  <bruno@clisp.org>
9828
9829         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
9830         * gnulib-tool (func_usage): Document that --with-*-tests options apply
9831         also to --create-testdir.
9832         (func_acceptable): Don't consider the status of *-tests modules here.
9833         (func_modules_transitive_closure): Consider it here, before including a
9834         test module.
9835         (func_import, func_create_testdir): Set inc_all_direct_tests,
9836         inc_all_indirect_tests.
9837         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
9838         --create-testdir and --create-megatestdir.
9839
9840 2010-04-25  Bruno Haible  <bruno@clisp.org>
9841
9842         gnulib-tool: Add --without-*-tests options.
9843         * gnulib-tool (func_usage): Document the --without-*-tests options.
9844         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
9845         excl_unportable_tests): New variables.
9846         Fail if they are specified with --import or --update.
9847         (func_acceptable): Respect the excl_*_tests variables.
9848         (func_import): Set the excl_*_tests variables to empty.
9849
9850 2010-04-25  Simon Josefsson  <simon@josefsson.org>
9851             Bruno Haible  <bruno@clisp.org>
9852
9853         Work around a MacOS X 10.4 bug with openpty.
9854         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
9855         * tests/test-openpty.c (main): Close the master side explicitly.
9856
9857 2010-04-25  Bruno Haible  <bruno@clisp.org>
9858
9859         strnlen: Fix a C++ test error on MacOS X and Solaris.
9860         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
9861         the function is not declared.
9862         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
9863         Simon Josefsson.
9864
9865 2010-04-24  Bruno Haible  <bruno@clisp.org>
9866
9867         Avoid a gcc warning.
9868         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
9869         of correct type for %08lx directive.
9870         Reported by Eric Blake.
9871
9872 2010-04-24  Bruno Haible  <bruno@clisp.org>
9873
9874         vasnprintf: Correct errno value in case of out-of-memory.
9875         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
9876         or sprintf. Use the errno value from SNPRINTF or sprintf.
9877         Reported by Ian Beckwith <ianb@erislabs.net>.
9878
9879 2010-04-24  Bruno Haible  <bruno@clisp.org>
9880
9881         ansi-c++-opt: Find correct compiler when cross-compiling.
9882         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
9883         AC_CHECK_PROGS.
9884         Reported by Simon Josefsson.
9885
9886 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
9887
9888         vc-list-files: Add support for subversion
9889         * build-aux/vc-list-files: Use "svn list" to generate the list of
9890         files controlled by subversion.
9891
9892 2010-04-23  Jim Meyering  <meyering@redhat.com>
9893
9894         vc-list-files tests: convert to use init.sh
9895         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
9896         path_prepend_.
9897         Use Exit, not exit.
9898         Use skip_ rather than open coding it.
9899         Remove trap set-up and compare definitions.
9900         * tests/test-vc-list-files-git.sh: Likewise.
9901         * modules/vc-list-files-tests (Files): Add tests/init.sh.
9902
9903 2010-04-22  Simon Josefsson  <simon@josefsson.org>
9904
9905         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
9906         backup files.
9907
9908 2010-04-21  Simon Josefsson  <simon@josefsson.org>
9909
9910         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
9911
9912 2010-04-20  Eric Blake  <eblake@redhat.com>
9913
9914         tests: be robust to ignored SIGPIPE
9915         * tests/test-select-in.sh: Consume all output.
9916         * tests/test-lseek.sh: Check correct exit status, while avoiding
9917         EPIPE.
9918
9919 2010-04-20  Simon Josefsson  <simon@josefsson.org>
9920             Bruno Haible  <bruno@clisp.org>
9921
9922         visibility: Don't use -fvisibility if it leads to a warning.
9923         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
9924         yes, don't pretend that visibility works if it leads to a warning.
9925         Reported by Mike Gran <spk121@yahoo.com>.
9926
9927 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
9928
9929         * build-aux/bootstrap: Use "git -h" for testing for supported options
9930         instead of "git --help".  The short-form option only shows a summary,
9931         and doesn't layout the full man page.  Grep for the full option name
9932         in the summary, too.
9933
9934 2010-04-19  Bruno Haible  <bruno@clisp.org>
9935
9936         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
9937         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
9938         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
9939         mention of RELOCATABLE_STRIP.
9940         Reported by Sylvain Beucler <beuc@beuc.net>.
9941
9942 2010-04-19  Bruno Haible  <bruno@clisp.org>
9943
9944         * lib/diffseq.h: Fix typo in comment.
9945         Reported by Eric Blake.
9946
9947 2010-04-19  Bruno Haible  <bruno@clisp.org>
9948
9949         ioctl: Move autoconf macro to a .m4 file.
9950         * m4/ioctl.m4: New file, extracted from modules/ioctl.
9951         * modules/ioctl (Files): Add it.
9952         (configure.ac): Simply invoke gl_FUNC_IOCTL.
9953         Reported by Ian Beckwith <ianb@erislabs.net>.
9954
9955 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
9956             Bruno Haible  <bruno@clisp.org>
9957
9958         diffseq: Accommodate use-case with abstract arrays.
9959         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
9960         is not defined.
9961         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
9962         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
9963
9964 2010-04-18  Bruno Haible  <bruno@clisp.org>
9965
9966         * doc/posix-headers/stdbool.texi: More precise wording.
9967
9968 2010-04-17  Jim Meyering  <meyering@redhat.com>
9969
9970         maint.mk: use gnu-style indentation in an embedded perl script
9971         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
9972         Rename variable: s/two/last_two_bytes/
9973
9974 2010-04-16  Eric Blake  <eblake@redhat.com>
9975
9976         test-stdbool: skip test that fails with Solaris CC
9977         * tests/test-stdbool.c (f): Skip test that causes compilation
9978         error under buggy C++ compiler.
9979         * lib/stdbool.in.h: Document the limitation.
9980         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
9981
9982         setenv: allow compilation with C++
9983         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
9984         register keyword.
9985
9986         stdint: allow test to pass with C++
9987         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
9988
9989         getopt: allow compilation with C++
9990         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
9991         struct.
9992         * lib/getopt.c (_getopt_internal_r): Use correct type.
9993         Reported by Dagobert Michelson, via Joel E. Denny.
9994
9995 2010-04-16  Bruno Haible  <bruno@clisp.org>
9996
9997         Override netdb.h always.
9998         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
9999         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
10000         Reported by Ludovic Courtès <ludo@gnu.org>.
10001
10002 2010-04-15  Bruno Haible  <bruno@clisp.org>
10003
10004         openpty: Fix mistake from 2010-03-21.
10005         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
10006         Reported by Simon Josefsson.
10007
10008 2010-04-15  Eric Blake  <eblake@redhat.com>
10009
10010         test-forkpty: fix expected signature
10011         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
10012         Reported by Simon Josefsson.
10013
10014 2010-04-15  Jim Meyering  <meyering@redhat.com>
10015
10016         maint.mk: texinfo_suffix_re_: correct the default regexp
10017         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
10018
10019         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
10020         make it configurable via texinfo_suffix_re_.
10021
10022 2010-04-14  Eric Blake  <eblake@redhat.com>
10023
10024         strtok_r: relax license to LGPLv2+
10025         * modules/strtok_r (License): Relax license.
10026         Reported by Matthias Bolte.
10027
10028 2010-04-14  Simon Josefsson  <simon@josefsson.org>
10029
10030         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
10031         version 1.4.4 by default instead of requiring the libgcrypt
10032         version used during build.  This makes it possible to use the
10033         application with older but still binary compatible libgcrypt
10034         versions.
10035
10036 2010-04-13  Eric Blake  <eblake@redhat.com>
10037
10038         getopt-gnu: match recent glibc fixes and posix ruling
10039         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
10040         '+' handling, when requesting extensions.
10041         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
10042         'W;' handling.
10043         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
10044         * doc/posix-functions/getopt.texi (getopt): Document this.
10045         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10046         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10047         Likewise.
10048
10049         getopt: merge bug fixes from glibc
10050         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
10051         diagnostics.  Honor '+:' correctly.  Reject ';'.
10052
10053         getopt-posix: detect MacOS bug
10054         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
10055         optind when missing a required argument.
10056         * doc/posix-functions/getopt.texi (getopt): Document the bug.
10057         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10058         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10059         Likewise.
10060
10061         getopt-posix: avoid spurious failure on Solaris
10062         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
10063         an indicator that setting optind=1 is sufficient for reset.
10064
10065         getopt-posix: avoid spurious failure on FreeBSD
10066         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
10067         in POSIX mode, since the m4 test uses it.
10068
10069         gnulib-tool: silence warning on BSD sh
10070         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
10071
10072 2010-04-13  Jim Meyering  <meyering@redhat.com>
10073
10074         doc: users.txt: GNU patch now uses gnulib
10075         * users.txt: Add patch.
10076
10077 2010-04-12  Jim Meyering  <meyering@redhat.com>
10078
10079         maint.mk: generate more concise timing data for syntax-check rules
10080         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
10081         " done" from each line that reports a syntax-check test duration.
10082
10083 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
10084
10085         git-version-gen: use "git update-index..." rather than "git status"
10086         * build-aux/git-version-gen: Use git update-index --refresh, not
10087         "git status".  With some versions of git, "git status" would fail
10088         to update the index and result in an unwarranted "-dirty" suffix.
10089
10090 2010-04-11  Jim Meyering  <meyering@redhat.com>
10091
10092         openat: correct formatting (no semantic change)
10093         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
10094         Suggested by Bruno Haible.
10095
10096 2010-04-11  Bruno Haible  <bruno@clisp.org>
10097
10098         Stricter declaration checking in testdirs.
10099         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10100         If for_tests is true, augment AM_CPPFLAGS to define
10101         GNULIB_STRICT_CHECKING.
10102         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
10103         GNULIB_STRICT_CHECKING is defined, verify that the function is
10104         declared.
10105
10106 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
10107             Bruno Haible  <bruno@clisp.org>
10108
10109         libunistring: Improve configure output.
10110         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
10111         Don't say "consider installing GNU libunistring" when checking again
10112         with libiconv.
10113
10114 2010-04-11  Bruno Haible  <bruno@clisp.org>
10115
10116         libunistring: Correct value of $LTLIBUNISTRING.
10117         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
10118         correct the value of $LTLIBUNISTRING.
10119
10120 2010-04-11  Bruno Haible  <bruno@clisp.org>
10121
10122         havelib: Add static libraries to LIBS in the right order.
10123         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
10124         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
10125
10126 2010-04-11  Bruno Haible  <bruno@clisp.org>
10127
10128         libunistring: Detect libunistring also when it depends on libiconv.
10129         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
10130         the second AC_LIB_HAVE_LINKFLAGS invocation.
10131
10132 2010-04-11  James Youngman  <jay@gnu.org>
10133
10134         close-stream: declare local scalars to be "const"
10135         * lib/close-stream.c (close_stream): Make boolean variables const
10136         to document the fact that we set but do not change them.
10137
10138 2010-04-11  Bruno Haible  <bruno@clisp.org>
10139
10140         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
10141
10142 2010-04-11  Jim Meyering  <meyering@redhat.com>
10143
10144         maint.mk: don't include dist-check.mk
10145         * top/maint.mk: Remove bogus include directive.
10146
10147         maint.mk: improve empty-line-at-EOF check
10148         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
10149         solution, rather than tail+Perl-based one.  The latter would read
10150         a few kilobytes from the end of each file, and did not handle empty
10151         files properly.
10152
10153         maint.mk: print the elapsed time for each syntax-check rule
10154         * top/maint.mk (sc_m_rules_): Save start time in a file.
10155         (sc_z_rules_): New rules: remove temp file and print elapsed time.
10156         (local-check): Interpose the .z rules
10157
10158 2010-04-11  Jim Meyering  <meyering@redhat.com>
10159
10160         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
10161         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
10162         empty file with one that ends in an empty line.
10163
10164 2010-04-10  Bruno Haible  <bruno@clisp.org>
10165
10166         mkdir: Make it work on mingw64.
10167         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
10168         * lib/mkdir.c: Update comment.
10169         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
10170
10171 2010-04-10  Bruno Haible  <bruno@clisp.org>
10172
10173         Don't override improved macro from newer autoconf.
10174         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
10175         autoconf >= 2.62.
10176         Reported by Joel E. Denny <jdenny@clemson.edu>.
10177
10178 2010-04-10  Jim Meyering  <meyering@redhat.com>
10179
10180         maint.mk: new syntax-check rule: prohibit empty lines at end of file
10181         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
10182
10183         maint.mk: correct a diagnostic
10184         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
10185         in diagnostic; now use $prohibit.
10186
10187 2010-04-10  Bruno Haible  <address@hidden>
10188
10189         fchownat: Fix a C++ test error on Solaris 8.
10190         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
10191         the function does not exist.
10192
10193 2010-04-10  Bruno Haible  <bruno@clisp.org>
10194
10195         vasnprintf: Add more tests.
10196         * tests/test-vasnprintf-posix.c: Include <errno.h>.
10197         (test_function): Test converting an invalid wide string.
10198
10199         vasnprintf: Correct handling of unconvertible wide string arguments.
10200         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
10201         VASNPRINTF.
10202         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
10203         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
10204         smaller than the expected maximum need for the directive. Set errno to
10205         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
10206         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
10207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
10208         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
10209         * modules/vasnprintf (Files): Add m4/printf.m4.
10210         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10211
10212 2010-04-10  Bruno Haible  <bruno@clisp.org>
10213
10214         vasnprintf: Fix crash in %ls directive.
10215         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
10216         string is passed as argument to %ls, with no precision and no width.
10217         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10218
10219 2010-04-10  Bruno Haible  <bruno@clisp.org>
10220
10221         vasnprintf: Fix multiple test failures on mingw.
10222         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
10223         _snprintf, or snwprintf, not _snwprintf.
10224
10225 2010-04-10  Bruno Haible  <bruno@clisp.org>
10226
10227         write: Fix a C++ test error on mingw.
10228         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
10229
10230 2010-04-10  Bruno Haible  <bruno@clisp.org>
10231
10232         vasnprintf test: Reduce code duplication.
10233         * tests/test-vasnprintf.c (test_function): New function, extracted from
10234         test_vasnprintf.
10235         (test_vasnprintf, test_asnprintf): Invoke it.
10236
10237 2010-04-10  Bruno Haible  <bruno@clisp.org>
10238
10239         strnlen: Fix warning in C++ mode on MacOS X.
10240         * lib/string.in.h (strnlen): Use the modern idiom.
10241         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
10242         defining strnlen as a macro already in <config.h>.
10243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10244         REPLACE_STRNLEN.
10245         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
10246         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10247
10248 2010-04-08  James Youngman  <jay@gnu.org>
10249
10250         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
10251         the example.
10252
10253 2010-04-09  Jim Meyering  <meyering@redhat.com>
10254
10255         maint.mk: print better diagnostic when there is no $(_hv_file)
10256         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
10257         announce that when $(_hv_file) (aka help-version) does not exist.
10258
10259         init.sh: run tr in the "C" locale to avoid multibyte interpretation
10260         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
10261         not try to interpret its random input bytes.  Jarno Rajahalme reported
10262         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
10263         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
10264         (mktempd_): Likewise, just in case.
10265
10266         ftruncate: add two years to projected module removal date: 2012
10267         * m4/ftruncate.m4: Adjust comments.
10268
10269         ftruncate: mark module as obsolete; even MinGW provides it, now
10270         * modules/ftruncate (Status): Obsolete.
10271         (Notice): Say that.
10272         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
10273         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
10274
10275 2010-04-08  Bruno Haible  <bruno@clisp.org>
10276
10277         Fix side effects from tests-related modules.
10278         * modules/dprintf-posix (Comment): New section.
10279         * modules/fprintf-posix (Comment): Likewise.
10280         * modules/obstack-printf-posix (Comment): Likewise.
10281         * modules/printf-posix (Comment): Likewise.
10282         * modules/snprintf-posix (Comment): Likewise.
10283         * modules/sprintf-posix (Comment): Likewise.
10284         * modules/vasnprintf-posix (Comment): Likewise.
10285         * modules/vasprintf-posix (Comment): Likewise.
10286         * modules/vdprintf-posix (Comment): Likewise.
10287         * modules/vfprintf-posix (Comment): Likewise.
10288         * modules/vprintf-posix (Comment): Likewise.
10289         * modules/vsnprintf-posix (Comment): Likewise.
10290         * modules/vsprintf-posix (Comment): Likewise.
10291         * modules/xprintf-posix (Comment): Likewise.
10292         * modules/xvasprintf-posix (Comment): Likewise.
10293         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
10294         * modules/floorf-tests (Depends-on): Likewise.
10295         * modules/round-tests (Depends-on): Likewise.
10296         * modules/roundf-tests (Depends-on): Likewise.
10297         * modules/trunc-tests (Depends-on): Likewise.
10298         * modules/truncf-tests (Depends-on): Likewise.
10299         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
10300         'fprintf-posix' module is not present.
10301         * tests/test-floorf2.c (check): Likewise.
10302         * tests/test-trunc2.c (check): Likewise.
10303         * tests/test-truncf2.c (check): Likewise.
10304         * tests/test-round2.c (equal): Likewise.
10305         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10306
10307 2010-04-07  Karl Berry  <karl@gnu.org>
10308
10309         * config/srclist.txt,
10310         * config/srclistvars.sh,
10311         * config/srclist-update: doc fixes.
10312
10313 2010-04-07  Jim Meyering  <meyering@redhat.com>
10314
10315         maint.mk: add a PATH crosschecking syntax-check rule
10316         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
10317         Useful if you use a test like the one in help-version (coreutils,
10318         diffutils, grep, gzip) that ensures $(VERSION) matches what is
10319         printed by prog --version.
10320
10321 2010-04-06  Bruno Haible  <bruno@clisp.org>
10322
10323         Fix link error on mingw.
10324         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
10325         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
10326
10327 2010-04-06  Bruno Haible  <bruno@clisp.org>
10328
10329         Assume rmdir exists.
10330         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
10331
10332 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
10333
10334         doc: update users.txt
10335         * users.txt: Add gcal.
10336
10337 2010-04-06  Jim Meyering  <meyering@redhat.com>
10338
10339         init.sh: simply unset TMPDIR rather than risking env -i
10340         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
10341         although it probably works fine on all Unix-based systems, some
10342         systems (Cygwin?) cannot tolerate a totally cleared environment.
10343         Suggestion from Eric Blake.
10344
10345 2010-04-06  Jim Meyering  <meyering@redhat.com>
10346
10347         init.sh: portability fix: use env's POSIX-specified -i option not -u
10348         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
10349         than unportable env -u.  Solaris 5.11's env lacks support for -u.
10350
10351 2010-04-05  Bruno Haible  <bruno@clisp.org>
10352
10353         btowc: Work around Cygwin 1.7.2 bug.
10354         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
10355         does not map NUL to 0.
10356         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
10357
10358 2010-04-05  Bruno Haible  <bruno@clisp.org>
10359
10360         Make the multithread modules work on Cygwin 1.7.2.
10361         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
10362         imported symbols can be declared weak, so that it returns "no" on
10363         Cygwin 1.7.2.
10364
10365 2010-04-05  Bruno Haible  <bruno@clisp.org>
10366
10367         Use the module 'strncat'.
10368         * modules/unistr/u8-strncat (Depends-on): Add strncat.
10369
10370         Tests for module 'strncat'.
10371         * modules/strncat-tests: New file.
10372         * tests/test-strncat.c: New file.
10373
10374         New module 'strncat'.
10375         * lib/string.in.h (strncat): New declaration.
10376         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
10377         * m4/strncat.m4: New file, based on m4/memchr.m4.
10378         * modules/strncat: New file.
10379         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
10380         is declared.
10381         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
10382         REPLACE_STRNCAT.
10383         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
10384         REPLACE_STRNCAT.
10385         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
10386         module.
10387         * tests/test-string-c++.cc: Check signature of strncat.
10388
10389 2010-04-05  Jim Meyering  <meyering@redhat.com>
10390
10391         xstrtoumax-tests: convert to use init.sh
10392         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
10393         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10394         Use Exit, not exit.
10395         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10396
10397         xstrtoimax-tests: convert to use init.sh
10398         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
10399         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10400         Use Exit, not exit.
10401         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10402
10403 2010-04-05  Bruno Haible  <bruno@clisp.org>
10404
10405         sys_socket: Avoid #define replacements in C++ mode.
10406         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
10407         warning to the function if possible, rather than #defining the symbol
10408         to a dysfunctional alias.
10409
10410 2010-04-05  Bruno Haible  <bruno@clisp.org>
10411
10412         fseeko: Fix C++ test error on mingw.
10413         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
10414         gl_FUNC_FSEEKO.
10415         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
10416         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
10417         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
10418         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
10419
10420 2010-04-05  Bruno Haible  <bruno@clisp.org>
10421
10422         duplocale: Improve test output.
10423         * tests/test-duplocale.c (main): Print reason for skipped test.
10424
10425 2010-04-05  Bruno Haible  <bruno@clisp.org>
10426
10427         Assume rmdir exists.
10428         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
10429         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
10430
10431 2010-04-05  Bruno Haible  <bruno@clisp.org>
10432
10433         Fix link error on Solaris 8 with cc.
10434         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
10435
10436 2010-04-05  Bruno Haible  <bruno@clisp.org>
10437
10438         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
10439         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
10440
10441 2010-04-05  Bruno Haible  <bruno@clisp.org>
10442
10443         vasprintf: Update documentation.
10444         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
10445
10446 2010-04-05  Bruno Haible  <bruno@clisp.org>
10447
10448         ptsname: Improve test.
10449         * tests/test-ptsname.c (main): Also try the various master names of BSD
10450         systems.
10451
10452 2010-04-05  Bruno Haible  <bruno@clisp.org>
10453
10454         memchr: Avoid a possible C++ test error.
10455         * lib/string.in.h (memchr): Provide declaration if function is missing.
10456         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
10457         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
10458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
10459         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
10460
10461 2010-04-05  Bruno Haible  <bruno@clisp.org>
10462
10463         strtok_r: Improve idiom.
10464         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
10465         AC_LIBOBJ is used.
10466
10467 2010-04-05  Bruno Haible  <bruno@clisp.org>
10468
10469         strdup: Improve idiom.
10470         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
10471         AC_LIBOBJ is used.
10472         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
10473         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
10474         when AC_LIBOBJ is used.
10475
10476 2010-04-05  Bruno Haible  <bruno@clisp.org>
10477
10478         mbsinit, mbrtowc, wcrtomb: Improve idioms.
10479         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
10480         don't set REPLACE_MBSINIT to 1.
10481         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
10482         don't set REPLACE_MBRTOWC to 1.
10483         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
10484         exist, don't set REPLACE_MBSRTOWCS to 1.
10485         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
10486         exist, don't set REPLACE_MBSNRTOWCS to 1.
10487         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
10488         don't set REPLACE_WCRTOMB to 1.
10489         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
10490         exist, don't set REPLACE_WCSRTOMBS to 1.
10491         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
10492         exist, don't set REPLACE_WCSNRTOMBS to 1.
10493
10494 2010-04-05  Bruno Haible  <bruno@clisp.org>
10495
10496         ldexpl: Improve idiom.
10497         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
10498         make sure to set HAVE_DECL_LDEXPL to 0.
10499
10500 2010-04-05  Jim Meyering  <meyering@redhat.com>
10501
10502         xstrtol-tests: convert to use init.sh
10503         * modules/xstrtol-tests (Files): Add tests/init.sh.
10504         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10505         Use Exit, not exit.
10506         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10507
10508         atexit-tests: convert to use init.sh
10509         * modules/atexit-tests (Files): Add tests/init.sh.
10510         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
10511         Use Exit, not exit.
10512         Remove uses of $EXEEXT and "./" to run a program in the current dir.
10513
10514         init.sh: fix typo
10515         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
10516
10517         init.sh: make it easier for a test script to write to the tty, ...
10518         when using automake's parallel-tests mode.
10519         * tests/init.sh (stderr_fileno_): Define overridable variable.
10520         (warn_): New function, to use it.
10521         (fail_, skip_, framework_failure_): Use warn_.
10522
10523 2010-04-04  Bruno Haible  <bruno@clisp.org>
10524
10525         btowc: Avoid warning.
10526         * lib/btowc.c: Include <stdlib.h>.
10527         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
10528
10529 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
10530             Bruno Haible  <bruno@clisp.org>
10531
10532         wchar: Port to NetBSD 1.5.
10533         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
10534         * lib/wctype.in.h (WEOF): Likewise.
10535
10536 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
10537             Bruno Haible  <bruno@clisp.org>
10538
10539         Port extended stdio to NetBSD 1.5.
10540         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
10541         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
10542         older.
10543
10544 2010-04-04  Bruno Haible  <bruno@clisp.org>
10545
10546         string: Remove unused substitution.
10547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
10548         HAVE_DECL_STRERROR.
10549         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
10550
10551 2010-04-04  Bruno Haible  <bruno@clisp.org>
10552
10553         strtod: Avoid a possible C++ test error.
10554         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
10555         set REPLACE_STRTOD.
10556
10557 2010-04-04  Bruno Haible  <bruno@clisp.org>
10558
10559         strerror: Update documentation.
10560         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
10561
10562 2010-04-04  Bruno Haible  <bruno@clisp.org>
10563
10564         stdio: Fix some C++ test errors on Solaris 8 with GCC.
10565         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
10566         _GL_CXXALIAS_SYS_CAST.
10567
10568 2010-04-04  Bruno Haible  <bruno@clisp.org>
10569
10570         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
10571         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
10572         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
10573         REPLACE_FREXPL to 1.
10574         * doc/posix-functions/frexpl.texi: Update documentation.
10575
10576 2010-04-04  Bruno Haible  <bruno@clisp.org>
10577
10578         math: Fix some C++ test errors on Solaris 8 and Cygwin.
10579         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
10580
10581 2010-04-04  Bruno Haible  <bruno@clisp.org>
10582
10583         Implement nanosleep for native Windows.
10584         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
10585
10586 2010-04-04  Bruno Haible  <bruno@clisp.org>
10587
10588         math: Fix some C++ test errors on Solaris 8.
10589         * lib/math.in.h (truncf, trunc): Use simpler idiom.
10590
10591 2010-04-04  Bruno Haible  <bruno@clisp.org>
10592
10593         math: Fix some C++ test errors on Cygwin.
10594         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
10595         truncl): Provide declaration if the system does not have it.
10596         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
10597         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
10598         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
10599         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
10600         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
10601         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
10602         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
10603         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
10604         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
10605         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
10606         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
10607         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
10608         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
10609         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
10610         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
10611         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
10612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
10613         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10614         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10615         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
10616         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
10617         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
10618
10619 2010-04-04  Bruno Haible  <bruno@clisp.org>
10620
10621         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
10622         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10623         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10624         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10625         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10626         * m4/isinf.m4 (gl_ISINF): Likewise.
10627         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10628
10629 2010-04-04  Bruno Haible  <bruno@clisp.org>
10630
10631         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
10632         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10633
10634 2010-04-04  Bruno Haible  <bruno@clisp.org>
10635
10636         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
10637         * modules/tmpfile (configure.ac): Update.
10638
10639         tmpfile: Fix C++ test error on mingw.
10640         * lib/stdio.in.h (tmpfile): New declaration.
10641         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
10642         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
10643         * modules/tmpfile (Depends-on): Add stdio.
10644         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
10645         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
10646         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
10647         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
10648         REPLACE_TMPFILE.
10649         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
10650
10651 2010-04-04  Bruno Haible  <bruno@clisp.org>
10652
10653         ioctl: Fix C++ test error on mingw.
10654         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
10655         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
10656         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
10657
10658 2010-04-03  Bruno Haible  <bruno@clisp.org>
10659
10660         wcwidth: Fix C++ test error on mingw.
10661         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
10662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
10663         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
10664
10665 2010-04-03  Bruno Haible  <bruno@clisp.org>
10666
10667         nanosleep: Fix C++ test error on mingw.
10668         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
10669         * lib/time.in.h (nanosleep): Use modern idiom.
10670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
10671         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
10672         REPLACE_NANOSLEEP to 1.
10673         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
10674         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
10675
10676 2010-04-03  Bruno Haible  <bruno@clisp.org>
10677
10678         strptime: Fix C++ test error on mingw.
10679         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
10680         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
10681         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
10682         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
10683         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
10684         not REPLACE_STRPTIME.
10685         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
10686         REPLACE_STRPTIME.
10687
10688 2010-04-03  Bruno Haible  <bruno@clisp.org>
10689
10690         timegm: Fix C++ test error on mingw.
10691         * lib/time.in.h (timegm): Use modern idiom.
10692         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
10693         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
10694         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
10695         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
10696
10697 2010-04-03  Bruno Haible  <bruno@clisp.org>
10698
10699         timegm: Assume declaration if function exists.
10700         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
10701         if it exists. Don't clobber ac_cv_func_timegm.
10702
10703 2010-04-03  Bruno Haible  <bruno@clisp.org>
10704
10705         time_r: Fix C++ test error on mingw.
10706         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
10707         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
10708         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
10709         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
10710         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
10711
10712 2010-04-03  Bruno Haible  <bruno@clisp.org>
10713
10714         time_r: Minor updates.
10715         * modules/time_r (Description): Mention the provided functions.
10716         * lib/time_r.c: Don't include <string.h>.
10717         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
10718         * doc/posix-functions/localtime_r.texi: Likewise.
10719
10720 2010-04-03  Bruno Haible  <bruno@clisp.org>
10721
10722         time: Fix regression introduced on 2010-03-08.
10723         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
10724         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
10725
10726 2010-04-03  Jim Meyering  <meyering@redhat.com>
10727
10728         maint.mk: don't silently disable project-specific syntax-check rules
10729         * top/maint.mk (_prohibit_regexp): Define, to help people realize
10730         that they need to convert their project-specific syntax-check rules
10731         to use the new _sc_search_regexp.
10732
10733 2010-04-03  Bruno Haible  <bruno@clisp.org>
10734
10735         fchdir: Fix regression introduced on 2010-03-08.
10736         * lib/unistd.in.h (fchdir): Fix declaration.
10737         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
10738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
10739         REPLACE_FCHDIR.
10740         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
10741         REPLACE_FCHDIR.
10742
10743 2010-04-03  Bruno Haible  <bruno@clisp.org>
10744
10745         getpagesize: Fix C++ test error on mingw.
10746         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
10747         system does not declare the function.
10748         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
10749         declared.
10750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10751         HAVE_DECL_GETPAGESIZE.
10752         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
10753
10754 2010-04-03  Bruno Haible  <bruno@clisp.org>
10755
10756         stdio: Make C++ tests work on mingw.
10757         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
10758         does not declare the function.
10759
10760 2010-04-03  Bruno Haible  <bruno@clisp.org>
10761
10762         ftello: Fix C++ test error on mingw.
10763         * lib/stdio.in.h (ftello): Use modern idiom.
10764         * lib/ftello.c (ftello): Renamed from rpl_ftello.
10765         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
10766         is missing and that it needs to be replaced.
10767         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
10768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
10769         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
10770
10771 2010-04-03  Bruno Haible  <bruno@clisp.org>
10772
10773         fseeko: Fix C++ test error on mingw.
10774         * lib/stdio.in.h (fseeko): Use modern idiom.
10775         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
10776         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
10777         is missing and that it needs to be replaced.
10778         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
10779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
10780         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
10781
10782 2010-04-03  Bruno Haible  <bruno@clisp.org>
10783
10784         mkstemp: Fix C++ test error on mingw.
10785         * lib/stdlib.in.h (mkstemp): Use modern idiom.
10786         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
10787         function is missing and that it needs to be replaced.
10788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
10789         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
10790
10791 2010-04-03  Bruno Haible  <bruno@clisp.org>
10792
10793         stpncpy: Fix C++ test error on mingw.
10794         * lib/string.in.h (stpncpy): Use modern idiom.
10795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
10796         function is missing and that it needs to be replaced.
10797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10798         REPLACE_STPNCPY.
10799         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
10800
10801 2010-04-03  Bruno Haible  <bruno@clisp.org>
10802
10803         sys_stat: Fix C++ test error on mingw.
10804         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
10805         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
10806
10807 2010-04-03  Bruno Haible  <bruno@clisp.org>
10808
10809         pty: Update doc.
10810         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
10811
10812 2010-04-03  Bruno Haible  <bruno@clisp.org>
10813
10814         unistd: Fix C++ test error on mingw.
10815         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
10816
10817 2010-04-03  Bruno Haible  <bruno@clisp.org>
10818
10819         Update doc regarding mingw.
10820         * doc/glibc-functions/openpty.texi: Update regarding mingw.
10821         * doc/glibc-functions/login_tty.texi: Likewise.
10822         * doc/glibc-functions/forkpty.texi: Likewise.
10823
10824 2010-04-03  Bruno Haible  <bruno@clisp.org>
10825
10826         stdlib: Avoid compilation failure of c-strtold on mingw.
10827         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
10828
10829 2010-04-03  Bruno Haible  <bruno@clisp.org>
10830
10831         locale: Make C++ tests work on Cygwin and mingw.
10832         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
10833         cannot provide the function.
10834         Reported by Simon Josefsson.
10835
10836 2010-04-03  Bruno Haible  <bruno@clisp.org>
10837
10838         localename: Port to MacOS X 10.6.
10839         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
10840         memory layout of the locales in MacOS X 10.6 as well.
10841         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
10842
10843 2010-04-02  Bruno Haible  <bruno@clisp.org>
10844
10845         gnulib-tool: Ensure that long-running tests are executed last.
10846         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
10847         running tests after the one for the other tests.
10848
10849 2010-04-02  Bruno Haible  <bruno@clisp.org>
10850
10851         gnulib-tool: Ensure the tests in the main directory are executed first.
10852         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
10853         start with the current directory.
10854
10855 2010-04-02  Bruno Haible  <bruno@clisp.org>
10856
10857         Tests for module 'havelib', moved here from GNU gettext.
10858         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
10859         modifications.
10860         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
10861         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
10862         with modifications.
10863         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
10864         modifications.
10865         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
10866         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
10867         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
10868         with modifications.
10869         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
10870         with modifications.
10871         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
10872         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
10873         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
10874         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
10875         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
10876         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
10877         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
10878         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
10879         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
10880         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
10881         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
10882         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
10883         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
10884         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
10885         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
10886         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
10887         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
10888         with modifications.
10889         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
10890         with modifications.
10891         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
10892         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
10893         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
10894         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
10895         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
10896         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
10897         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
10898         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
10899         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
10900         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
10901         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
10902         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
10903         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
10904         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
10905         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
10906         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
10907         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
10908         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
10909         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
10910         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
10911         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
10912         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
10913         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
10914         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
10915         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
10916         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
10917         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
10918         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
10919         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
10920         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
10921         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
10922         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
10923         * tests/havelib/rpathx/rpathx.c: New file, from
10924         gettext/autoconf-lib-link.
10925         * tests/havelib/rpathx/Makefile.am: New file, from
10926         gettext/autoconf-lib-link.
10927         * tests/havelib/rpathx/configure.ac: New file, from
10928         gettext/autoconf-lib-link with modifications.
10929         * tests/havelib/rpathy/rpathy.c: New file, from
10930         gettext/autoconf-lib-link.
10931         * tests/havelib/rpathy/Makefile.am: New file, from
10932         gettext/autoconf-lib-link.
10933         * tests/havelib/rpathy/configure.ac: New file, from
10934         gettext/autoconf-lib-link with modifications.
10935         * tests/havelib/rpathz/rpathz.c: New file, from
10936         gettext/autoconf-lib-link.
10937         * tests/havelib/rpathz/Makefile.am: New file, from
10938         gettext/autoconf-lib-link.
10939         * tests/havelib/rpathz/configure.ac: New file, from
10940         gettext/autoconf-lib-link with modifications.
10941         * tests/havelib/rpathlx/usex.c: New file, from
10942         gettext/autoconf-lib-link.
10943         * tests/havelib/rpathlx/Makefile.am: New file, from
10944         gettext/autoconf-lib-link.
10945         * tests/havelib/rpathlx/configure.ac: New file, from
10946         gettext/autoconf-lib-link with modifications.
10947         * tests/havelib/rpathly/usey.c: New file, from
10948         gettext/autoconf-lib-link.
10949         * tests/havelib/rpathly/Makefile.am: New file, from
10950         gettext/autoconf-lib-link.
10951         * tests/havelib/rpathly/configure.ac: New file, from
10952         gettext/autoconf-lib-link with modifications.
10953         * tests/havelib/rpathlz/usez.c: New file, from
10954         gettext/autoconf-lib-link.
10955         * tests/havelib/rpathlz/Makefile.am: New file, from
10956         gettext/autoconf-lib-link.
10957         * tests/havelib/rpathlz/configure.ac: New file, from
10958         gettext/autoconf-lib-link with modifications.
10959         * tests/havelib/rpathlyx/usey.c: New file, from
10960         gettext/autoconf-lib-link.
10961         * tests/havelib/rpathlyx/Makefile.am: New file, from
10962         gettext/autoconf-lib-link.
10963         * tests/havelib/rpathlyx/configure.ac: New file, from
10964         gettext/autoconf-lib-link with modifications.
10965         * tests/havelib/rpathlzyx/usez.c: New file, from
10966         gettext/autoconf-lib-link.
10967         * tests/havelib/rpathlzyx/Makefile.am: New file, from
10968         gettext/autoconf-lib-link.
10969         * tests/havelib/rpathlzyx/configure.ac: New file, from
10970         gettext/autoconf-lib-link with modifications.
10971         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
10972         with modifications.
10973
10974 2010-04-02  Bruno Haible  <bruno@clisp.org>
10975
10976         gnulib-tool: Create distributed built sources also for the tests.
10977         * gnulib-tool (func_create_testdir): Also generate distributed built
10978         sources in the tests directory.
10979
10980 2010-04-02  Bruno Haible  <bruno@clisp.org>
10981
10982         gnulib-tool: Obey user's environment variables.
10983         * gnulib-tool (func_create_testdir): When creating built sources,
10984         respect the environment variables for autoconf, automake, etc. given by
10985         the user.
10986
10987 2010-04-02  Bruno Haible  <bruno@clisp.org>
10988
10989         gnulib-tool: Provide the value of --m4-base to modules.
10990         * gnulib-tool (func_import, func_create_testdir): Emit a definition
10991         of gl_m4_base.
10992
10993 2010-04-02  Eric Blake  <eblake@redhat.com>
10994
10995         maint.mk: fix some fallout
10996         * NEWS: Document the incompatible change, and its effect on cfg.mk.
10997         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
10998
10999 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
11000
11001         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
11002         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
11003         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
11004         (sc_cast_of_x_alloc_return_value): Likewise.
11005         (sc_cast_of_alloca_return_value): Likewise.
11006         (sc_space_tab): Likewise.
11007         (sc_prohibit_atoi_atof): Likewise.
11008         (sc_prohibit_magic_number_exit): Likewise.
11009         (sc_error_exit_success): Likewise.
11010         (sc_file_system): Likewise.
11011         (sc_prohibit_have_config_h): Likewise.
11012         (sc_require_config_h): Likewise.
11013         (sc_prohibit_HAVE_MBRTOWC): Likewise.
11014         (sc_obsolete_symbols): Likewise.
11015         (sc_changelog): Likewise.
11016         (sc_program_name): Likewise.
11017         (sc_the_the): Likewise.
11018         (sc_trailing_blank): Likewise.
11019         (sc_two_space_separator_in_usage): Likewise.
11020         (sc_useless_cpp_parens): Likewise.
11021         (sc_GPL_version): Likewise.
11022         (sc_GFDL_version): Likewise.
11023         (sc_texinfo_acronym): Likewise.
11024         (sc_prohibit_cvs_keyword): Likewise.
11025         (sc_prohibit_stat_st_blocks): Likewise.
11026         (sc_prohibit_S_IS_definition): Likewise.
11027         (sc_redundant_const): Likewise.
11028         (sc_makefile_TAB_only_indentation): Likewise.
11029         (sc_m4_quote_check): Likewise.
11030         (sc_makefile_path_separator_check): Likewise.
11031         (sc_copyright_check): Likewise.
11032         (sc_Wundef_boolean): Likewise.
11033         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11034
11035         maint.mk: match 0 or more whitespace-before-function-call '('
11036         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
11037         that have zero or two-and-more spaces between the function name
11038         and the open parenthesis.
11039         (sc_error_message_warn_fatal): Likewise.
11040         (sc_error_message_uppercase): Likewise.
11041         (sc_error_message_period): Likewise.
11042
11043 2010-03-31  Eric Blake  <eblake@redhat.com>
11044
11045         maint.mk: check for [ as well as test
11046         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
11047         Based on a libvirt report by Matthias Bolte.
11048
11049         gnumakefile: don't squelch _version output
11050         * top/GNUmakefile (_version): Create one-shot dependency rather
11051         than using $(shell) when version must be regenerated.
11052         (_autoreconf): Run verbosely, by default.
11053
11054         sys_time: avoid compiler warnings
11055         * lib/sys_time.in.h (includes): Ensure gcc pragma is
11056         unconditional, fixing regression from 2010-03-29.
11057         Reported by Simon Josefsson.
11058
11059 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
11060
11061         maint.mk: s/_header_without_use/_sc_header_without_use/
11062         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
11063         (sc_prohibit_assert_without_use): Use the new name.
11064         (sc_prohibit_close_stream_without_use): Likewise.
11065         (sc_prohibit_getopt_without_use): Likewise.
11066         (sc_prohibit_quotearg_without_use): Likewise.
11067         (sc_prohibit_quote_without_use): Likewise.
11068         (sc_prohibit_long_options_without_use): Likewise.
11069         (sc_prohibit_inttostr_without_use): Likewise.
11070         (sc_prohibit_ignore_value_without_use): Likewise.
11071         (sc_prohibit_error_without_use): Likewise.
11072         (sc_prohibit_xalloc_without_use): Likewise.
11073         (sc_prohibit_hash_without_use): Likewise.
11074         (sc_prohibit_hash_pjw_without_use): Likewise.
11075         (sc_prohibit_safe_read_without_use): Likewise.
11076         (sc_prohibit_argmatch_without_use): Likewise.
11077         (sc_prohibit_canonicalize_without_use): Likewise.
11078         (sc_prohibit_root_dev_ino_without_use): Likewise.
11079         (sc_prohibit_openat_without_use): Likewise.
11080         (sc_prohibit_c_ctype_without_use): Likewise.
11081         (sc_prohibit_signal_without_use): Likewise.
11082         (sc_prohibit_intprops_without_use): Likewise.
11083
11084 2010-03-30  Eric Blake  <eblake@redhat.com>
11085
11086         maint: improve module indicators
11087         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
11088         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
11089         columns, and avoid extra macro expansion.
11090
11091         fdopendir: work around FreeBSD bug
11092         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
11093         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
11094         * modules/dirent (Makefile.am): Substitute it.
11095         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
11096         declaration.
11097         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
11098         fix.
11099         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11100
11101 2010-03-29  Bruno Haible  <bruno@clisp.org>
11102
11103         Emit #pragma system_header after the inclusion guard, not before.
11104         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
11105         guard that spans the entire file, not before. This enables an
11106         optimization in GCC's preprocessor.
11107         * lib/ctype.in.h: Likewise.
11108         * lib/dirent.in.h: Likewise.
11109         * lib/errno.in.h: Likewise.
11110         * lib/float.in.h: Likewise.
11111         * lib/getopt.in.h: Likewise.
11112         * lib/iconv.in.h: Likewise.
11113         * lib/langinfo.in.h: Likewise.
11114         * lib/locale.in.h: Likewise.
11115         * lib/math.in.h: Likewise.
11116         * lib/netdb.in.h: Likewise.
11117         * lib/netinet_in.in.h: Likewise.
11118         * lib/pty.in.h: Likewise.
11119         * lib/sched.in.h: Likewise.
11120         * lib/se-selinux.in.h: Likewise.
11121         * lib/search.in.h: Likewise.
11122         * lib/spawn.in.h: Likewise.
11123         * lib/stdarg.in.h: Likewise.
11124         * lib/stdint.in.h: Likewise.
11125         * lib/string.in.h: Likewise.
11126         * lib/strings.in.h: Likewise.
11127         * lib/sys_file.in.h: Likewise.
11128         * lib/sys_ioctl.in.h: Likewise.
11129         * lib/sys_time.in.h: Likewise.
11130         * lib/sys_times.in.h: Likewise.
11131         * lib/sys_utsname.in.h: Likewise.
11132         * lib/sys_wait.in.h: Likewise.
11133         * lib/sysexits.in.h: Likewise.
11134         * lib/wctype.in.h: Likewise.
11135
11136 2010-03-28  James Youngman  <jay@gnu.org>
11137
11138         save-cwd: don't leak a file descriptor when the caller execs.
11139         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
11140         saved file descriptor.
11141         * modules/save-cwd (Depends-on): Depend on cloexec.
11142
11143 2010-03-29  Bruno Haible  <bruno@clisp.org>
11144
11145         Remove vestiges of fts-lgpl module.
11146         * lib/fts_.h: Assume GNULIB_FTS is 1.
11147         * lib/fts.c: Likewise.
11148         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
11149
11150 2010-03-28  Bruno Haible  <bruno@clisp.org>
11151
11152         Fix definition of tests witness macro.
11153         * gnulib-tool (func_import): Fix definition of witness macro.
11154
11155 2010-03-28  Bruno Haible  <bruno@clisp.org>
11156
11157         Fix ioctl's protoype on glibc systems.
11158         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
11159         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
11160         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
11161         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
11162         signature. If not, arrange to replace the ioctl function.
11163         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11164         REPLACE_IOCTL.
11165         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
11166         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
11167         Reported by Ludovic Courtès <ludo@gnu.org>.
11168
11169 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
11170
11171         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
11172         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
11173         made it so grep -r --include=GLOB* ... did not work.
11174
11175 2010-03-26  Jim Meyering  <meyering@redhat.com>
11176             Eric Blake  <eblake@redhat.com>
11177
11178         maint.mk: prohibit use of test's -o and -a operators
11179         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
11180
11181 2010-03-28  Bruno Haible  <bruno@clisp.org>
11182
11183         Remove unused GNULIB_XYZ macro definitions.
11184         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
11185         invocation.
11186
11187 2010-03-28  Bruno Haible  <bruno@clisp.org>
11188
11189         Mark privileged tests modules.
11190         * modules/idpriv-drop-tests (Status): New section.
11191         * modules/idpriv-droptemp-tests (Status): New section.
11192
11193 2010-03-28  Bruno Haible  <bruno@clisp.org>
11194
11195         Split C++ tests into separate tests modules.
11196         * modules/dirent-c++-tests: New file, extracted from
11197         modules/dirent-tests.
11198         * modules/dirent-tests: Depend on it.
11199         * modules/fcntl-h-c++-tests: New file, extracted from
11200         modules/fcntl-h-tests.
11201         * modules/fcntl-h-tests: Depend on it.
11202         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
11203         * modules/glob-tests: Depend on it.
11204         * modules/iconv-h-c++-tests: New file, extracted from
11205         modules/iconv-h-tests.
11206         * modules/iconv-h-tests: Depend on it.
11207         * modules/langinfo-c++-tests: New file, extracted from
11208         modules/langinfo-tests.
11209         * modules/langinfo-tests: Depend on it.
11210         * modules/locale-c++-tests: New file, extracted from
11211         modules/locale-tests.
11212         * modules/locale-tests: Depend on it.
11213         * modules/math-c++-tests: New file, extracted from modules/math-tests.
11214         * modules/math-tests: Depend on it.
11215         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
11216         * modules/pty-tests: Depend on it.
11217         * modules/search-c++-tests: New file, extracted from
11218         modules/search-tests.
11219         * modules/search-tests: Depend on it.
11220         * modules/signal-c++-tests: New file, extracted from
11221         modules/signal-tests.
11222         * modules/signal-tests: Depend on it.
11223         * modules/spawn-c++-tests: New file, extracted from
11224         modules/spawn-tests.
11225         * modules/spawn-tests: Depend on it.
11226         * modules/stdio-c++-tests: New file, extracted from
11227         modules/stdio-tests.
11228         * modules/stdio-tests: Depend on it.
11229         * modules/stdlib-c++-tests: New file, extracted from
11230         modules/stdlib-tests.
11231         * modules/stdlib-tests: Depend on it.
11232         * modules/string-c++-tests: New file, extracted from
11233         modules/string-tests.
11234         * modules/string-tests: Depend on it.
11235         * modules/sys_ioctl-c++-tests: New file, extracted from
11236         modules/sys_ioctl-tests.
11237         * modules/sys_ioctl-tests: Depend on it.
11238         * modules/sys_select-c++-tests: New file, extracted from
11239         modules/sys_select-tests.
11240         * modules/sys_select-tests: Depend on it.
11241         * modules/sys_socket-c++-tests: New file, extracted from
11242         modules/sys_socket-tests.
11243         * modules/sys_socket-tests: Depend on it.
11244         * modules/sys_stat-c++-tests: New file, extracted from
11245         modules/sys_stat-tests.
11246         * modules/sys_stat-tests: Depend on it.
11247         * modules/sys_time-c++-tests: New file, extracted from
11248         modules/sys_time-tests.
11249         * modules/sys_time-tests: Depend on it.
11250         * modules/time-c++-tests: New file, extracted from modules/time-tests.
11251         * modules/time-tests: Depend on it.
11252         * modules/unistd-c++-tests: New file, extracted from
11253         modules/unistd-tests.
11254         * modules/unistd-tests: Depend on it.
11255         * modules/wchar-c++-tests: New file, extracted from
11256         modules/wchar-tests.
11257         * modules/wchar-tests: Depend on it.
11258         * modules/wctype-c++-tests: New file, extracted from
11259         modules/wctype-tests.
11260         * modules/wctype-tests: Depend on it.
11261         Reported by Simon Josefsson.
11262
11263 2010-03-28  Bruno Haible  <bruno@clisp.org>
11264
11265         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
11266         * gnulib-tool (func_exists_module): New function, extracted from
11267         func_verify_module.
11268         (func_verify_module): Use it.
11269         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
11270         'foo' only if 'foo' exists.
11271         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
11272         module.
11273
11274 2010-03-28  Bruno Haible  <bruno@clisp.org>
11275
11276         gnulib-tool: Add support for special categories of tests.
11277         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
11278         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
11279         (func_usage): Document them.
11280         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
11281         inc_unportable_tests, inc_all_tests): New variables.
11282         (func_acceptable): Consider these variables.
11283         (func_modules_transitive_closure): Make it work when the 'Status' field
11284         consists of multiple words.
11285         (func_import): Store and restore the values of inc_cxx_tests,
11286         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
11287         inc_all_tests in gnulib-comp.m4.
11288         (func_create_testdir): Set inc_all_tests to true.
11289         * doc/gnulib.texi (Extra tests modules): New section.
11290         Suggested by Jim Meyering.
11291
11292 2010-03-28  Bruno Haible  <bruno@clisp.org>
11293
11294         ansi-c++-opt: Allow turning off the C++ build by default.
11295         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
11296         gl_CXX_CHOICE_DEFAULT_NO is defined.
11297         Requested by Eric Blake.
11298
11299 2010-03-28  Bruno Haible  <bruno@clisp.org>
11300
11301         unistd: Avoid #define replacements in C++ mode.
11302         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11303         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11304         setsockopt, shutdown, select): In C++, attach a warning to the function
11305         if possible, rather than #defining the symbol to a dysfunctional alias.
11306         Reported by John W. Eaton <jwe@gnu.org>.
11307
11308 2010-03-28  Bruno Haible  <bruno@clisp.org>
11309
11310         Fix link errors on mingw.
11311         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
11312         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
11313         $(LIBSOCKET).
11314         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
11315         $(LIBSOCKET).
11316
11317 2010-03-28  Bruno Haible  <bruno@clisp.org>
11318             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11319
11320         lib-ignore: Determine different options for different compilers.
11321         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
11322         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
11323         Add comments.
11324         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
11325         * NEWS: Mention the change.
11326
11327 2010-03-27  Bruno Haible  <bruno@clisp.org>
11328
11329         Remove unused GNULIB_XYZ macro definitions.
11330         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
11331         * modules/fseek (configure.ac): Likewise.
11332         * modules/ioctl (configure.ac): Likewise.
11333         * modules/open (configure.ac): Likewise.
11334         * modules/stdlib-safer (configure.ac): Likewise.
11335
11336 2010-03-27  Bruno Haible  <bruno@clisp.org>
11337
11338         Add a remark about certain modules.
11339         * modules/malloc (Comment): New section.
11340         * modules/realloc (Comment): Likewise.
11341         * modules/sigpipe (Comment): Likewise.
11342
11343 2010-03-27  Bruno Haible  <bruno@clisp.org>
11344
11345         Resolve conflict between the two kinds of module indicators.
11346         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
11347         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
11348         * modules/canonicalize (configure.ac): Invoke
11349         gl_MODULE_INDICATOR_FOR_TESTS.
11350         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
11351         GNULIB_XYZ.
11352         * tests/test-dirent-c++.cc: Likewise.
11353         * tests/test-dirent-safer.c: Likewise.
11354         * tests/test-dup2.c: Likewise.
11355         * tests/test-fchdir.c: Likewise.
11356         * tests/test-fcntl-h-c++.cc: Likewise.
11357         * tests/test-getopt.c: Likewise.
11358         * tests/test-getopt.h: Likewise.
11359         * tests/test-langinfo-c++.cc: Likewise.
11360         * tests/test-locale-c++.cc: Likewise.
11361         * tests/test-math-c++.cc: Likewise.
11362         * tests/test-pty-c++.cc: Likewise.
11363         * tests/test-search-c++.cc: Likewise.
11364         * tests/test-signal-c++.cc: Likewise.
11365         * tests/test-spawn-c++.cc: Likewise.
11366         * tests/test-stdio-c++.cc: Likewise.
11367         * tests/test-stdlib-c++.cc: Likewise.
11368         * tests/test-string-c++.cc: Likewise.
11369         * tests/test-sys_ioctl-c++.cc: Likewise.
11370         * tests/test-sys_select-c++.cc: Likewise.
11371         * tests/test-sys_socket-c++.cc: Likewise.
11372         * tests/test-sys_stat-c++.cc: Likewise.
11373         * tests/test-sys_time-c++.cc: Likewise.
11374         * tests/test-time-c++.cc: Likewise.
11375         * tests/test-unistd-c++.cc: Likewise.
11376         * tests/test-wchar-c++.cc: Likewise.
11377         * tests/uninorm/test-u8-nfc.c: Likewise.
11378         * tests/uninorm/test-u8-nfd.c: Likewise.
11379         * tests/uninorm/test-u8-nfkc.c: Likewise.
11380         * tests/uninorm/test-u8-nfkd.c: Likewise.
11381         * tests/uninorm/test-u16-nfc.c: Likewise.
11382         * tests/uninorm/test-u16-nfd.c: Likewise.
11383         * tests/uninorm/test-u16-nfkc.c: Likewise.
11384         * tests/uninorm/test-u16-nfkd.c: Likewise.
11385         * tests/uninorm/test-u32-nfc.c: Likewise.
11386         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11387         * tests/uninorm/test-u32-nfd.c: Likewise.
11388         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11389         * tests/uninorm/test-u32-nfkc.c: Likewise.
11390         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11391         * tests/uninorm/test-u32-nfkd.c: Likewise.
11392         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11393         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11394
11395 2010-03-27  Bruno Haible  <bruno@clisp.org>
11396
11397         Distinguish two kinds of module indicators.
11398         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
11399         gl_MODULE_INDICATOR.
11400         (gl_MODULE_INDICATOR): New macro.
11401         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
11402         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
11403         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
11404         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
11405         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
11406         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
11407         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
11408         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
11409         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
11410         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
11411         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
11412         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
11413         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
11414         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
11415         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
11416         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
11417         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
11418         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
11419         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
11420         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
11421         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
11422         * modules/cloexec (configure.ac): Likewise.
11423         * modules/getopt-gnu (configure.ac): Likewise.
11424         * modules/uninorm/u8-normalize (configure.ac): Likewise.
11425         * modules/uninorm/u16-normalize (configure.ac): Likewise.
11426         * modules/uninorm/u32-normalize (configure.ac): Likewise.
11427         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
11428
11429 2010-03-27  Bruno Haible  <bruno@clisp.org>
11430
11431         New module description field 'Comment'.
11432         * gnulib-tool: New option --extract-comment.
11433         (func_usage): Document it.
11434         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
11435         (func_get_comment): New function.
11436         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
11437
11438 2010-03-27  Bruno Haible  <bruno@clisp.org>
11439
11440         Addendum to 2010-02-07 commit.
11441         * gnulib-tool (func_usage): Document --extract-applicability option.
11442
11443 2010-03-27  Bruno Haible  <bruno@clisp.org>
11444
11445         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
11446         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
11447         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
11448         rather than link errors.
11449
11450 2010-03-27  Bruno Haible  <bruno@clisp.org>
11451
11452         Avoid side effects from tests-related modules on the compilation of lib.
11453         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
11454         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
11455         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
11456         parameter. Emit into AM_CPPFLAGS a definition of the designated C
11457         macro.
11458         (func_import): Define a witness macro. Assign it a value that depends
11459         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
11460         tests-related modules.
11461         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
11462         Reported by Jim Meyering.
11463
11464 2010-03-27  Bruno Haible  <bruno@clisp.org>
11465
11466         Factorize common .m4 code.
11467         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
11468         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
11469         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
11470         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
11471         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
11472         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
11473         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
11474         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
11475         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
11476         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
11477         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
11478         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
11479         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
11480         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
11481         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
11482         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
11483         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
11484         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
11485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
11486         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
11487         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
11488         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
11489         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
11490         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
11491         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
11492         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
11493         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
11494         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
11495         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
11496         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
11497         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
11498         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
11499
11500 2010-03-27  Bruno Haible  <bruno@clisp.org>
11501
11502         Fix a compilation error on Cygwin with g++ >= 4.3.
11503         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
11504         if it is undefined or if we alias it to chmod.
11505         (lstat): Don't warn about the use of this function if it is undefined
11506         or if we alias it to stat.
11507         Reported by Simon Josefsson.
11508
11509 2010-03-27  Bruno Haible  <bruno@clisp.org>
11510
11511         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
11512         * modules/getlogin (configure.ac): Update.
11513
11514         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
11515         * modules/getlogin_r (configure.ac): Update.
11516
11517         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
11518         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
11519         * modules/inet_ntop (configure.ac): Update.
11520
11521         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
11522         * modules/inet_pton (configure.ac): Update.
11523
11524         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
11525         * modules/mbslen (configure.ac): Update.
11526
11527         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
11528         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
11529         * modules/forkpty (configure.ac): Update.
11530         * modules/openpty (configure.ac): Update.
11531
11532 2010-03-26  Simon Josefsson  <simon@josefsson.org>
11533
11534         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
11535         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
11536
11537 2010-03-25  Eric Blake  <eblake@redhat.com>
11538
11539         maint: use pragma consistently across replacement headers
11540         * lib/ctype.in.h (system_header): Hoist for consistent placement.
11541         * lib/dirent.in.h (system_header): Likewise.
11542         * lib/errno.in.h (system_header): Likewise.
11543         * lib/float.in.h (system_header): Likewise.
11544         * lib/getopt.in.h (system_header): Likewise.
11545         * lib/iconv.in.h (system_header): Likewise.
11546         * lib/inttypes.in.h (system_header): Likewise.
11547         * lib/langinfo.in.h (system_header): Likewise.
11548         * lib/locale.in.h (system_header): Likewise.
11549         * lib/math.in.h (system_header): Likewise.
11550         * lib/netdb.in.h (system_header): Likewise.
11551         * lib/netinet_in.in.h (system_header): Likewise.
11552         * lib/pty.in.h (system_header): Likewise.
11553         * lib/sched.in.h (system_header): Likewise.
11554         * lib/se-selinux.in.h (system_header): Likewise.
11555         * lib/search.in.h (system_header): Likewise.
11556         * lib/spawn.in.h (system_header): Likewise.
11557         * lib/stdarg.in.h (system_header): Likewise.
11558         * lib/stdint.in.h (system_header): Likewise.
11559         * lib/string.in.h (system_header): Likewise.
11560         * lib/strings.in.h (system_header): Likewise.
11561         * lib/sys_file.in.h (system_header): Likewise.
11562         * lib/sys_ioctl.in.h (system_header): Likewise.
11563         * lib/sys_socket.in.h (system_header): Likewise.
11564         * lib/sys_times.in.h (system_header): Likewise.
11565         * lib/sys_utsname.in.h (system_header): Likewise.
11566         * lib/sys_wait.in.h (system_header): Likewise.
11567         * lib/sysexits.in.h (system_header): Likewise.
11568         * lib/unistd.in.h (system_header): Likewise.
11569         * lib/wctype.in.h (system_header): Likewise.
11570
11571         arpa/inet: fix mingw compilation warning
11572         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
11573         Reported by Matthew Bolte.
11574
11575 2010-03-25  Bruno Haible  <bruno@clisp.org>
11576
11577         Avoid collision between gnulib wrapper and libintl wrapper.
11578         * lib/printf.c (printf): Don't define if a printf wrapper is already
11579         defined in intl/printf.c.
11580         Reported by Michel Boaventura <michel@michelboaventura.com>.
11581
11582 2010-03-25  Bruno Haible  <bruno@clisp.org>
11583
11584         Use ANSI C.
11585         * lib/readutmp.h (getutent): Provide ANSI C prototype.
11586
11587 2010-03-25  Bruno Haible  <bruno@clisp.org>
11588
11589         Minor formatting changes.
11590         * lib/acosl.c: Insert space before function argument list.
11591         * lib/argz.c: Likewise.
11592         * lib/asinl.c: Likewise.
11593         * lib/expl.c: Likewise.
11594         * lib/gen-uni-tables.c: Likewise.
11595         * lib/gettext.h: Likewise.
11596         * lib/glthread/lock.h: Likewise.
11597         * lib/tanl.c: Likewise.
11598         * lib/uniname/uniname.c: Likewise.
11599         * tests/test-idpriv-drop.c: Likewise.
11600         * tests/test-idpriv-droptemp.c: Likewise.
11601         * tests/test-lock.c: Likewise.
11602         * tests/test-tls.c: Likewise.
11603         * lib/argp-help.c: Insert space before function-like macro argument
11604         list.
11605         * lib/memcmp.c: Likewise.
11606         * tests/test-base64.c: Likewise.
11607         * lib/localename.c: Insert space before sizeof's argument list.
11608         * lib/safe-alloc.h: Likewise.
11609         * lib/file-set.h: Insert space before macro argument list.
11610         * tests/test-argp.c: Likewise.
11611         * lib/argp-namefrob.h: Insert space before function parameter list.
11612         * lib/getaddrinfo.c: Likewise.
11613         * lib/netdb.in.h: Likewise.
11614         * lib/parse-duration.h: Likewise.
11615         * lib/parse-duration.c: Likewise.
11616         * lib/poll.c: Likewise.
11617         * lib/select.c: Likewise.
11618         * lib/trim.h: Likewise.
11619         * tests/test-usleep.c: Likewise.
11620         * lib/ldexpl.c: Insert space before function parameter list and before
11621         function argument list.
11622         * lib/logl.c: Likewise.
11623         * lib/sqrtl.c: Likewise.
11624         * lib/trim.c: Likewise.
11625         * lib/cosl.c: Use GNU style indentation. Insert space before function
11626         argument list.
11627         * lib/sinl.c: Likewise.
11628         * lib/tsearch.c: Insert space after 'for'.
11629         Reported by Jim Meyering.
11630
11631 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
11632
11633         * maint.mk (sc_Wundef_boolean): Check for the presence of the
11634         config header before grepping, as it's not present before
11635         autoreconf/configure are run.  Reported by Simon Josefsson.
11636
11637 2010-03-23  Bruno Haible  <bruno@clisp.org>
11638
11639         pt_chown: Make it work with automake < 1.11.
11640         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
11641         Reported by Simon Josefsson.
11642
11643 2010-03-23  Bruno Haible  <bruno@clisp.org>
11644
11645         pt_chown: Don't depend on GPLed modules.
11646         * lib/pt_chown.c: Don't include idpriv.h.
11647         (main): Don't drop privileges.
11648         * modules/pt_chown (Depends-on): Remove idpriv-drop.
11649         Reported by Simon Josefsson.
11650
11651 2010-03-24  Simon Josefsson  <simon@josefsson.org>
11652
11653         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
11654         suggestions from karl@freefriends.org (Karl Berry).
11655
11656 2010-03-22  Eric Blake  <eblake@redhat.com>
11657
11658         gethostname: further tweaks
11659         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
11660         are overriding gethostname.
11661         Suggested by Bruno Haible.
11662
11663 2010-03-21  Bruno Haible  <bruno@clisp.org>
11664
11665         Fix comments.
11666         * lib/forkpty.c (rpl_forkpty): Fix comment.
11667         * lib/openpty.c (rpl_openpty): Likewise.
11668         Reported by Eric Blake.
11669
11670 2010-03-22  Eric Blake  <eblake@redhat.com>
11671
11672         gethostname: fix build on mingw
11673         * lib/unistd.in.h (includes): Work around fact that mingw
11674         <winsock2.h> re-includes <unistd.h>, by avoiding any
11675         redeclarations if we are being included by <winsock2.h>.
11676         Reported by Matthias Bolte.
11677
11678 2010-03-21  Bruno Haible  <bruno@clisp.org>
11679
11680         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11681         * lib/forkpty.c (forkpty): New replacement function, from glibc with
11682         modifications.
11683         * lib/pty.in.h (forkpty): Update declaration. Add comments.
11684         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
11685         provide the replacement.
11686         * modules/forkpty (Depends-on): Add openpty, login_tty.
11687         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
11688         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
11689         * doc/glibc-functions/forkpty.texi: More supported platforms.
11690         * config/srclist.txt: Add forkpty.c (commented).
11691
11692 2010-03-21  Bruno Haible  <bruno@clisp.org>
11693
11694         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
11695         (Makefile.am): Verify that PTY_LIB is defined.
11696
11697         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
11698
11699 2010-03-21  Bruno Haible  <bruno@clisp.org>
11700
11701         Tests for module 'login_tty'.
11702         * modules/login_tty-tests: New file.
11703         * tests/test-login_tty.c: New file.
11704
11705         New module 'login_tty'.
11706         * lib/login_tty.c: New file.
11707         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
11708         * modules/login_tty: New file.
11709         * doc/glibc-functions/login_tty.texi: Mention the new module.
11710
11711 2010-03-21  Bruno Haible  <bruno@clisp.org>
11712
11713         login_tty: Documentation.
11714         * doc/glibc-functions/login_tty.texi: New file.
11715         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
11716
11717 2010-03-21  Bruno Haible  <bruno@clisp.org>
11718
11719         pty: Consistent macro naming.
11720         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
11721         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
11722         * modules/pty (configure.ac): Update.
11723
11724 2010-03-21  Bruno Haible  <bruno@clisp.org>
11725
11726         Tests for openpty: Make stricter.
11727         * tests/test-openpty.c (main): Add test of canonical processing and
11728         erase.
11729         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
11730
11731         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
11732         * lib/openpty.c (openpty): New replacement function.
11733         * lib/pty.in.h: Include <termios.h>.
11734         (openpty): Update declaration. Add comments.
11735         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
11736         is not declared, arrange to provide the replacement. Check for _getpty
11737         and posix_openpt.
11738         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
11739         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
11740         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
11741         * modules/pty-tests (test_pty_c___LDADD): New variable.
11742         * doc/glibc-functions/openpty.texi: More supported platforms.
11743
11744 2010-03-21  Bruno Haible  <bruno@clisp.org>
11745
11746         setenv: Tweaks.
11747         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
11748         the test program.
11749         * doc/posix-functions/setenv.texi: Update platforms list.
11750
11751 2010-03-21  Bruno Haible  <bruno@clisp.org>
11752
11753         New module 'unlockpt'.
11754         * lib/unlockpt.c: New file, from glibc with modifications.
11755         * m4/unlockpt.m4: New file.
11756         * modules/unlockpt: New file.
11757         * lib/stdlib.in.h (unlockpt): New declaration.
11758         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
11759         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
11760         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
11761         HAVE_UNLOCKPT.
11762         * doc/posix-functions/unlockpt.texi: Mention the new module.
11763         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
11764         * config/srclist.txt: Add unlockpt.c (commented).
11765
11766 2010-03-21  Jim Meyering  <meyering@redhat.com>
11767
11768         maint.mk: prohibit inclusion of "intprops.h" without use
11769         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
11770
11771 2010-03-21  Bruno Haible  <bruno@clisp.org>
11772
11773         New module 'grantpt'.
11774         * lib/grantpt.c: New file, from glibc with modifications.
11775         * m4/grantpt.m4: New file.
11776         * modules/grantpt: New file.
11777         * lib/stdlib.in.h (grantpt): New declaration.
11778         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
11779         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
11780         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
11781         HAVE_GRANTPT.
11782         * doc/posix-functions/grantpt.texi: Mention the new module.
11783         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
11784         * config/srclist.txt: Add grantpt.c (commented).
11785
11786 2010-03-21  Bruno Haible  <bruno@clisp.org>
11787
11788         New module 'pt_chown'.
11789         * lib/pt_chown.c: New file, from glibc with modifications.
11790         * lib/pty-private.h: New file, from glibc with modifications.
11791         * modules/pt_chown: New file.
11792         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
11793
11794 2010-03-21  Bruno Haible  <bruno@clisp.org>
11795
11796         Tests for module 'ptsname'.
11797         * modules/ptsname-tests: New file.
11798         * tests/test-ptsname.c: New file.
11799
11800         New module 'ptsname'.
11801         * lib/ptsname.c: New file, from glibc with modifications.
11802         * m4/ptsname.m4: New file.
11803         * modules/ptsname: New file.
11804         * lib/stdlib.in.h (ptsname): New declaration.
11805         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
11806         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
11807         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
11808         HAVE_PTSNAME.
11809         * doc/posix-functions/ptsname.texi: Mention the new module.
11810         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
11811         * config/srclist.txt: Add ptsname.c (commented).
11812
11813 2010-03-21  Bruno Haible  <bruno@clisp.org>
11814
11815         Tests for module 'ttyname_r'.
11816         * modules/ttyname_r-tests: New file.
11817         * tests/test-ttyname_r.c: New file.
11818
11819         New module 'ttyname_r'.
11820         * lib/ttyname_r.c: New file.
11821         * m4/ttyname_r.m4: New file.
11822         * modules/ttyname_r: New file.
11823         * lib/unistd.in.h (ttyname_r): New declaration.
11824         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
11825         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
11826         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
11827         HAVE_TTYNAME_R.
11828         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
11829         * doc/posix-functions/ttyname_r.texi: Mention the new module.
11830
11831 2010-03-20  Bruno Haible  <bruno@clisp.org>
11832
11833         signal: Undefine macro definitions in C++ mode.
11834         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
11835         sigfillset): Undefine macro definitions from the system header in C++
11836         mode.
11837         Reported by John W. Eaton <jwe@gnu.org>.
11838
11839 2010-03-20  Bruno Haible  <bruno@clisp.org>
11840
11841         Ensure no #include statements inside extern "C" { ... }.
11842         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
11843         contain #include statements.
11844         * lib/time.in.h: Likewise.
11845
11846 2010-03-20  Bruno Haible  <bruno@clisp.org>
11847
11848         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
11849         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
11850         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
11851         Reported by John W. Eaton <jwe@gnu.org>.
11852
11853 2010-03-20  Bruno Haible  <bruno@clisp.org>
11854
11855         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
11856         Reported by Jim Meyering.
11857
11858 2010-03-20  Bruno Haible  <bruno@clisp.org>
11859
11860         pipe: Set errno upon failure.
11861         * lib/pipe.h: Specify that when -1 is returned, errno is set.
11862         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
11863         errno value in error message.
11864
11865 2010-03-20  Bruno Haible  <bruno@clisp.org>
11866             Jim Meyering  <meyering@redhat.com>
11867
11868         lchown: Avoid "unused variable" warning.
11869         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
11870
11871 2010-03-20  Bruno Haible  <bruno@clisp.org>
11872
11873         Work around unlink() bug on MacOS X 10.5.6.
11874         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
11875         attempting to unlink a parent directory.
11876         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
11877         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
11878         activate for the replacement function.
11879         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
11880
11881 2010-03-20  Bruno Haible  <bruno@clisp.org>
11882
11883         Fix link errors on Solaris 8.
11884         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
11885         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
11886
11887 2010-03-19  Jim Meyering  <meyering@redhat.com>
11888
11889         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
11890         The _LIBC implementation of build_range_exp correctly honors the
11891         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
11892         However, the non-_LIBC implementation would ignore that syntax-bit
11893         flag and return REG_ERANGE unconditionally.
11894         This change makes it honor that flag.
11895         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
11896         Make two pointer parameters "const".
11897         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
11898         (parse_bracket_exp): Update caller.
11899
11900         regex.m4: correct the reversed range endpoint ([b-a]) test
11901         * m4/regex.m4: When requiring that [b-a] evoke failure,
11902         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
11903         test pass once again for x86-based systems.
11904
11905 2010-03-19  Bruno Haible  <bruno@clisp.org>
11906
11907         scandir: Fix link error on Solaris 8.
11908         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
11909         macros.
11910
11911 2010-03-19  Bruno Haible  <bruno@clisp.org>
11912
11913         getusershell: Fix documentation.
11914         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
11915         module.
11916         * doc/glibc-functions/setusershell.texi: Likewise.
11917
11918         getusershell: Provide declaration, missing on Solaris 9.
11919         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
11920         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
11921         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
11922         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
11923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11924         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
11925         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
11926         HAVE_GETUSERSHELL.
11927         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
11928
11929 2010-03-19  Bruno Haible  <bruno@clisp.org>
11930
11931         wctype: Provide iswblank function.
11932         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
11933         exists and is fine.
11934         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
11935         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
11936         * tests/test-wctype.c (main): Re-enable the iswblank tests.
11937         * doc/posix-functions/iswblank.texi: Update.
11938
11939 2010-03-19  Bruno Haible  <bruno@clisp.org>
11940
11941         Tests of module 'pty' in C++ mode.
11942         * modules/pty-tests: New file.
11943         * tests/test-pty-c++.cc: New file.
11944         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
11945
11946 2010-03-19  Eric Blake  <eblake@redhat.com>
11947
11948         logb: fix documentation
11949         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
11950         1.5 declaration bug.
11951
11952         forkpty, openpty: prefer glibc's const-safe prototype
11953         * lib/forkpty.c (rpl_forkpty): New file.
11954         * lib/openpty.c (rpl_openpty): Likewise.
11955         * modules/forkpty (Files): Distribute it.
11956         * modules/openpty (Files): Likewise.
11957         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
11958         check...
11959         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
11960         replacement for for non-const BSD signature.
11961         * modules/pty (Makefile.am): Substitute witnesses.
11962         * lib/pty.in.h (forkpty, openpty): Declare replacements.
11963         * tests/test-forkpty.c: Update signature check.
11964         * tests/test-openpty.c: Likewise.
11965         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
11966         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11967
11968         forkpty, openpty: split functions into new modules
11969         * modules/pty (Makefile.am): Substitute new witnesses.
11970         (Libraries): Move library detection...
11971         * modules/forkpty: ...into new module.
11972         * modules/openpty: Another new module.
11973         * modules/pty-tests: Rename and split...
11974         * modules/forkpty-tests: ...to this...
11975         * modules/openpty-tests: ...and this.
11976         * tests/test-pty.c: Rename and split...
11977         * tests/test-forkpty.c: ...to this...
11978         * tests/test-openpty.c: ...and this.
11979         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
11980         (gl_PTY): Split library searching...
11981         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
11982         (gl_FORKPTY, gl_OPENPTY): New macros.
11983         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
11984         * NEWS: Mention the split.
11985         * MODULES.html.sh (Misc): Document the modules.
11986         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
11987         * doc/glibc-functions/openpty.texi (openpty): Likewise.
11988
11989         pty: improve replacement header
11990         * lib/pty.in.h: New file.
11991         * modules/pty (Files): Ship it.
11992         (Makefile.am): Always build replacement.
11993         * m4/pty.m4: Rename...
11994         * m4/pty_h.m4: ...to this.
11995         (gl_PTY): Modernize setting of witness macros; update check of
11996         forkpty to take proper advantage of cache.
11997         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
11998
11999         getopt: avoid compiler warning
12000         * lib/getopt.c (attribute_hidden): Remove unused macro.
12001
12002 2010-03-18  Bruno Haible  <bruno@clisp.org>
12003
12004         Fix link errors on Solaris 8.
12005         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
12006         * modules/search-tests (test_search_c___LDADD): Likewise.
12007         * modules/signal-tests (test_signal_c___LDADD): Likewise.
12008         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
12009         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
12010         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
12011         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
12012         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
12013         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
12014
12015 2010-03-18  Bruno Haible  <bruno@clisp.org>
12016
12017         Fix bug introduced on 2010-03-14.
12018         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
12019         (gl_SPAWN_H): Require it.
12020         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
12021         Reported by Simon Josefsson.
12022
12023 2010-03-18  Bruno Haible  <bruno@clisp.org>
12024
12025         Fix typo introduced on 2009-12-31.
12026         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
12027         posix_spawn_file_actions_adddup2.
12028
12029 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
12030         and Eric Blake  <eblake@redhat.com>
12031
12032         test-vc-list-files-git: make more robust
12033         * tests/test-vc-list-files-git.sh: Unset problematic environment
12034         variables.  Chain commands together.
12035
12036 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
12037
12038         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
12039         `AC_CHECK_DECL' invocation.
12040
12041 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
12042
12043         * lib/inttostr.c (inttostr): Make sure the invocation of verify
12044         appears before executable statements. Suggested by Petr Sumbera
12045         <Petr.Sumbera@Sun.COM>.
12046
12047 2010-03-14  Bruno Haible  <bruno@clisp.org>
12048
12049         * tests/test-flock.c (test_exclusive): Comment out a test that causes
12050         portability problems. Instead use a simpler test.
12051         (main): Check that invalid arguments are rejected only on Linux.
12052
12053 2010-03-14  Bruno Haible  <bruno@clisp.org>
12054
12055         Fix bug introduced on 2009-12-31.
12056         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12057         gl_PREREQ_SYS_H_WINSOCK2 always.
12058         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
12059         SYS_SOCKET_H variable.
12060         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
12061         Update comments.
12062         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
12063         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12064         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12065         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12066         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12067
12068 2010-03-14  Bruno Haible  <bruno@clisp.org>
12069
12070         Fix values returned by sinl, cosl.
12071         * lib/trigl.h: Add specification comments.
12072         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
12073         that combines the values from the precomputed table with the values of
12074         the Chebyshev polynomials.
12075
12076 2010-03-14  Bruno Haible  <bruno@clisp.org>
12077
12078         Fix compilation error when modules 'posix_spawn[p]' are not used.
12079         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
12080         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
12081
12082 2010-03-14  Bruno Haible  <bruno@clisp.org>
12083
12084         Fix compilation error on mingw when module 'time_r' is not used.
12085         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
12086         is 1.
12087         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
12088         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
12089         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
12090         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
12091
12092 2010-03-14  Bruno Haible  <bruno@clisp.org>
12093
12094         Fix compilation error with Sun C.
12095         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
12096         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
12097         instead of GCC specific ULONG_LONG_MAX.
12098         * lib/xstrtoll.c: Likewise.
12099         * lib/xstrtoull.c: Likewise.
12100
12101 2010-03-13  Bruno Haible  <bruno@clisp.org>
12102
12103         Allow the user to disable C++ code and tests.
12104         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
12105         (gl_PROG_ANSI_CXX): Require it.
12106
12107 2010-03-13  Bruno Haible  <bruno@clisp.org>
12108
12109         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
12110         cases.
12111
12112 2010-03-13  Bruno Haible  <bruno@clisp.org>
12113
12114         Test that gnulib does not break the standard C++ headers.
12115         * tests/test-locale-c++2.cc: New file.
12116         * modules/locale-tests (Files): Add it.
12117         (Makefile.am): Compile it for test-locale-c++.
12118         * tests/test-math-c++2.cc: New file.
12119         * modules/math-tests (Files): Add it.
12120         (Makefile.am): Compile it for test-math-c++.
12121         * tests/test-signal-c++2.cc: New file.
12122         * modules/signal-tests (Files): Add it.
12123         (Makefile.am): Compile it for test-signal-c++.
12124         * tests/test-stdio-c++2.cc: New file.
12125         * modules/stdio-tests (Files): Add it.
12126         (Makefile.am): Compile it for test-stdio-c++.
12127         * tests/test-stdlib-c++2.cc: New file.
12128         * modules/stdlib-tests (Files): Add it.
12129         (Makefile.am): Compile it for test-stdlib-c++.
12130         * tests/test-string-c++2.cc: New file.
12131         * modules/string-tests (Files): Add it.
12132         (Makefile.am): Compile it for test-string-c++.
12133         * tests/test-time-c++2.cc: New file.
12134         * modules/time-tests (Files): Add it.
12135         (Makefile.am): Compile it for test-time-c++.
12136         Reported by John W. Eaton <jwe@gnu.org>.
12137
12138 2010-03-13  Bruno Haible  <bruno@clisp.org>
12139
12140         * gnulib-tool (func_usage): Clarify which options are available for
12141         --create-testdir and --create-megatestdir.
12142
12143 2010-03-13  Bruno Haible  <bruno@clisp.org>
12144
12145         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
12146         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
12147         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
12148         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12149         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
12150         when appropriate.
12151         Reported by Jim Meyering.
12152
12153 2010-03-12  Simon Josefsson  <simon@josefsson.org>
12154
12155         * gnulib-tool (func_import): Explain origin of code.
12156
12157 2010-03-12  Bruno Haible  <bruno@clisp.org>
12158
12159         Fix problem with automake's definition of CXXLINK.
12160         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
12161         Reported by Simon Josefsson and Ludovic Courtès.
12162
12163 2010-03-12  Bruno Haible  <bruno@clisp.org>
12164
12165         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
12166         stable releases.
12167
12168 2010-03-11  Bruno Haible  <bruno@clisp.org>
12169
12170         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
12171         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
12172         whether the system provides one variant or multiple variants of the
12173         function.
12174         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
12175         C++ compilers.
12176         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
12177         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
12178         Reported by Jim Meyering.
12179
12180 2010-03-09  Simon Josefsson  <simon@josefsson.org>
12181
12182         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
12183
12184 2010-03-08  Bruno Haible  <bruno@clisp.org>
12185
12186         gnulib-tool: Add support for --libtool in --create-testdir.
12187         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
12188         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
12189
12190 2010-03-08  Eric Blake  <eblake@redhat.com>
12191
12192         gnulib-tool.texi: mention possibility of git submodule
12193         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
12194         submodules.
12195         * doc/.gitignore: Ignore another generated file.
12196
12197 2010-03-08  Karl Berry  <karl@gnu.org>
12198
12199         * doc/gnulib-tool.texi (VCS Issues): Mention third option
12200         of committing gnulib files while skipping others.
12201
12202 2010-03-07  Bruno Haible  <bruno@clisp.org>
12203
12204         Tests of module 'wctype' in C++ mode.
12205         * tests/test-wctype-c++.cc: New file.
12206         * modules/wctype-tests (Files): Add it and tests/signature.h.
12207         (Depends-on): Add ansi-c++-opt.
12208         (Makefile.am): Arrange to compile and run test-wctype-c++.
12209
12210         Tests of module 'wchar' in C++ mode.
12211         * tests/test-wchar-c++.cc: New file.
12212         * modules/wchar-tests (Files): Add it and tests/signature.h.
12213         (Depends-on): Add ansi-c++-opt.
12214         (Makefile.am): Arrange to compile and run test-wchar-c++.
12215         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
12216         gl_MODULE_INDICATOR.
12217
12218         Tests of module 'unistd' in C++ mode.
12219         * tests/test-unistd-c++.cc: New file.
12220         * modules/unistd-tests (Files): Add it and tests/signature.h.
12221         (Depends-on): Add ansi-c++-opt.
12222         (Makefile.am): Arrange to compile and run test-unistd-c++.
12223         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
12224         gl_MODULE_INDICATOR.
12225
12226         Tests of module 'time' in C++ mode.
12227         * tests/test-time-c++.cc: New file.
12228         * modules/time-tests (Files): Add it and tests/signature.h.
12229         (Depends-on): Add ansi-c++-opt.
12230         (Makefile.am): Arrange to compile and run test-time-c++.
12231         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12232
12233         Tests of module 'sys_time' in C++ mode.
12234         * tests/test-sys_time-c++.cc: New file.
12235         * modules/sys_time-tests (Files): Add it and tests/signature.h.
12236         (Depends-on): Add ansi-c++-opt.
12237         (Makefile.am): Arrange to compile and run test-sys_time-c++.
12238         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
12239         gl_MODULE_INDICATOR.
12240
12241         Tests of module 'sys_stat' in C++ mode.
12242         * tests/test-sys_stat-c++.cc: New file.
12243         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
12244         (Depends-on): Add ansi-c++-opt.
12245         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
12246         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
12247         gl_MODULE_INDICATOR.
12248
12249         Tests of module 'sys_socket' in C++ mode.
12250         * tests/test-sys_socket-c++.cc: New file.
12251         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
12252         (Depends-on): Add ansi-c++-opt.
12253         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
12254         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
12255         gl_MODULE_INDICATOR.
12256
12257         Tests of module 'sys_select' in C++ mode.
12258         * tests/test-sys_select-c++.cc: New file.
12259         * modules/sys_select-tests (Files): Add it and tests/signature.h.
12260         (Depends-on): Add ansi-c++-opt.
12261         (Makefile.am): Arrange to compile and run test-sys_select-c++.
12262         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
12263         gl_MODULE_INDICATOR.
12264
12265         Tests of module 'sys_ioctl' in C++ mode.
12266         * tests/test-sys_ioctl-c++.cc: New file.
12267         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
12268         (Depends-on): Add ansi-c++-opt.
12269         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
12270         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
12271         gl_MODULE_INDICATOR.
12272
12273         Tests of module 'string' in C++ mode.
12274         * tests/test-string-c++.cc: New file.
12275         * modules/string-tests (Files): Add it and tests/signature.h.
12276         (Depends-on): Add ansi-c++-opt.
12277         (Makefile.am): Arrange to compile and run test-string-c++.
12278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
12279         gl_MODULE_INDICATOR.
12280
12281         Tests of module 'stdlib' in C++ mode.
12282         * tests/test-stdlib-c++.cc: New file.
12283         * modules/stdlib-tests (Files): Add it and tests/signature.h.
12284         (Depends-on): Add ansi-c++-opt.
12285         (Makefile.am): Arrange to compile and run test-stdlib-c++.
12286         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
12287         gl_MODULE_INDICATOR.
12288
12289         Tests of module 'stdio' in C++ mode.
12290         * tests/test-stdio-c++.cc: New file.
12291         * modules/stdio-tests (Files): Add it and tests/signature.h.
12292         (Depends-on): Add ansi-c++-opt.
12293         (Makefile.am): Arrange to compile and run test-stdio-c++.
12294         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
12295         gl_MODULE_INDICATOR.
12296
12297         Tests of module 'spawn' in C++ mode.
12298         * tests/test-spawn-c++.cc: New file.
12299         * modules/spawn-tests (Files): Add it and tests/signature.h.
12300         (Depends-on): Add ansi-c++-opt.
12301         (Makefile.am): Arrange to compile and run test-spawn-c++.
12302         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
12303         gl_MODULE_INDICATOR.
12304
12305         Tests of module 'signal' in C++ mode.
12306         * tests/test-signal-c++.cc: New file.
12307         * modules/signal-tests (Files): Add it and tests/signature.h.
12308         (Depends-on): Add ansi-c++-opt.
12309         (Makefile.am): Arrange to compile and run test-signal-c++.
12310         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
12311         gl_MODULE_INDICATOR.
12312
12313         Tests of module 'search' in C++ mode.
12314         * tests/test-search-c++.cc: New file.
12315         * modules/search-tests (Files): Add it and tests/signature.h.
12316         (Depends-on): Add ansi-c++-opt.
12317         (Makefile.am): Arrange to compile and run test-search-c++.
12318         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
12319         gl_MODULE_INDICATOR.
12320
12321         Tests of module 'math' in C++ mode.
12322         * tests/test-math-c++.cc: New file.
12323         * modules/math-tests (Files): Add it and tests/signature.h.
12324         (Depends-on): Add ansi-c++-opt.
12325         (Makefile.am): Arrange to compile and run test-math-c++.
12326         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
12327
12328         Tests of module 'locale' in C++ mode.
12329         * tests/test-locale-c++.cc: New file.
12330         * modules/locale-tests (Files): Add it and tests/signature.h.
12331         (Depends-on): Add ansi-c++-opt.
12332         (Makefile.am): Arrange to compile and run test-locale-c++.
12333         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
12334         gl_MODULE_INDICATOR.
12335
12336         Tests of module 'langinfo' in C++ mode.
12337         * tests/test-langinfo-c++.cc: New file.
12338         * modules/langinfo-tests (Files): Add it and tests/signature.h.
12339         (Depends-on): Add ansi-c++-opt.
12340         (Makefile.am): Arrange to compile and run test-langinfo-c++.
12341         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
12342         gl_MODULE_INDICATOR.
12343
12344         Tests of module 'iconv-h' in C++ mode.
12345         * tests/test-iconv-h-c++.cc: New file.
12346         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
12347         (Depends-on): Add ansi-c++-opt.
12348         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
12349
12350         Tests of module 'glob' in C++ mode.
12351         * tests/test-glob-c++.cc: New file.
12352         * modules/glob-tests (Files): Add it.
12353         (Depends-on): Add ansi-c++-opt.
12354         (Makefile.am): Arrange to compile and run test-glob-c++.
12355
12356         Tests of module 'fcntl-h' in C++ mode.
12357         * tests/test-fcntl-h-c++.cc: New file.
12358         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
12359         (Depends-on): Add ansi-c++-opt.
12360         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
12361         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
12362         gl_MODULE_INDICATOR.
12363
12364         Tests of module 'dirent' in C++ mode.
12365         * tests/test-dirent-c++.cc: New file.
12366         * modules/dirent-tests (Files): Add it and tests/signature.h.
12367         (Depends-on): Add ansi-c++-opt.
12368         (Makefile.am): Arrange to compile and run test-dirent-c++.
12369         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
12370         gl_MODULE_INDICATOR.
12371
12372         New module 'ansi-c++-opt'.
12373         * modules/ansi-c++-opt: New file.
12374         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
12375
12376         Document C++ namespace mode.
12377         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
12378
12379         wctype: Avoid #define replacements in C++ mode.
12380         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
12381         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
12382         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
12383         In C++, define a namespaced alias symbol.
12384         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
12385         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
12386         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
12387         rule.
12388
12389         wchar: Avoid #define replacements in C++ mode.
12390         * lib/wchar.in.h: Include c++defs.h.
12391         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
12392         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
12393         symbol.
12394         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
12395         * modules/wchar (Depends-on): Add c++defs.
12396         (Makefile.am): Update wchar.h rule.
12397
12398         unistd: Avoid #define replacements in C++ mode.
12399         * lib/unistd.in.h: Include c++defs.h.
12400         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
12401         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
12402         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
12403         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
12404         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
12405         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
12406         symbol.
12407         (environ): Update.
12408         * modules/unistd (Depends-on): Add c++defs.
12409         (Makefile.am): Update unistd.h rule.
12410
12411         time: Avoid #define replacements in C++ mode.
12412         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
12413         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
12414         define a namespaced alias symbol.
12415         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
12416         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
12417         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
12418         * modules/time (Depends-on): Add c++defs, warn-on-use.
12419         (Makefile.am): Update time.h rule.
12420         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
12421         * modules/nanosleep (configure.ac): Likewise.
12422         * modules/strptime (configure.ac): Likewise.
12423         * modules/timegm (configure.ac): Likewise.
12424
12425         sys_time: Avoid #define replacements in C++ mode.
12426         * lib/sys_time.in.h: Include c++defs.h.
12427         (gettimeofday): In C++, define a namespaced alias symbol.
12428         * modules/sys_time (Depends-on): Add c++defs.
12429         (Makefile.am): Update sys/time.h rule.
12430
12431         sys_stat: Avoid #define replacements in C++ mode.
12432         * lib/sys_stat.in.h: Include c++defs.h.
12433         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
12434         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
12435         namespaced alias symbol.
12436         In C++, define a namespaced alias symbol.
12437         * modules/sys_stat (Depends-on): Add c++defs.
12438         (Makefile.am): Update sys/stat.h rule.
12439
12440         sys_socket: Avoid #define replacements in C++ mode.
12441         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
12442         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
12443         definitions also when the system has a <sys/socket.h>.
12444         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12445         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
12446         In C++, define a namespaced alias symbol.
12447         * modules/sys_socket (Depends-on): Add c++defs.
12448         (Makefile.am): Update sys/socket.h rule.
12449
12450         sys_select: Avoid #define replacements in C++ mode.
12451         * lib/sys_select.in.h: Include c++defs.h. Enable the function
12452         definitions also when the system has a <sys/select.h>.
12453         (select): In C++, define a namespaced alias symbol.
12454         * modules/sys_select (Depends-on): Add c++defs.
12455         (Makefile.am): Update sys/select.h rule.
12456
12457         sys_ioctl: Avoid #define replacements in C++ mode.
12458         * lib/sys_ioctl.in.h: Include c++defs.h.
12459         (ioctl): In C++, define a namespaced alias symbol.
12460         * modules/sys_ioctl (Depends-on): Add c++defs.
12461         (Makefile.am): Update sys/ioctl.h rule.
12462
12463         string: Avoid #define replacements in C++ mode.
12464         * lib/string.in.h: Include c++defs.h.
12465         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
12466         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12467         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12468         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
12469         strsignal, strverscmp): In C++, define a namespaced alias symbol.
12470         * modules/string (Depends-on): Add c++defs.
12471         (Makefile.am): Update string.h rule.
12472
12473         stdlib: Avoid #define replacements in C++ mode.
12474         * lib/stdlib.in.h: Include c++defs.h.
12475         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
12476         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
12477         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
12478         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
12479         symbol.
12480         * modules/stdlib (Depends-on): Add c++defs.
12481         (Makefile.am): Update stdlib.h rule.
12482
12483         stdio: Avoid #define replacements in C++ mode.
12484         * lib/stdio.in.h: Include c++defs.h.
12485         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
12486         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
12487         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
12488         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
12489         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
12490         namespaced alias symbol.
12491         * modules/stdio (Depends-on): Add c++defs.
12492         (Makefile.am): Update stdio.h rule.
12493
12494         spawn: Avoid #define replacements in C++ mode.
12495         * lib/spawn.in.h: Include c++defs.h.
12496         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12497         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12498         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12499         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12500         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12501         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12502         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12503         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12504         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12505         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12506         In C++, define a namespaced alias symbol.
12507         * modules/spawn (Depends-on): Add c++defs.
12508         (Makefile.am): Update spawn.h rule.
12509
12510         signal: Avoid #define replacements in C++ mode.
12511         * lib/signal.in.h: Include c++defs.h.
12512         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12513         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
12514         namespaced alias symbol.
12515         * modules/signal (Depends-on): Add c++defs.
12516         (Makefile.am): Update signal.h rule.
12517
12518         search: Avoid #define replacements in C++ mode.
12519         * lib/search.in.h: Include c++defs.h.
12520         (_gl_search_compar_fn, _gl_search_action_fn): New types.
12521         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
12522         symbol.
12523         * modules/search (Depends-on): Add c++defs.
12524         (Makefile.am): Update search.h rule.
12525
12526         math: Avoid #define replacements in C++ mode.
12527         * lib/math.in.h: Include c++defs.h.
12528         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
12529         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
12530         trunc, truncl): In C++, define a namespaced alias symbol.
12531         * modules/math (Depends-on): Add c++defs.
12532         (Makefile.am): Update math.h rule.
12533
12534         locale: Avoid #define replacements in C++ mode.
12535         * lib/locale.in.h: Include c++defs.h.
12536         (duplocale): In C++, define a namespaced alias symbol.
12537         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
12538         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
12539         * modules/locale (Depends-on): Add c++defs.
12540         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
12541
12542         langinfo: Avoid #define replacements in C++ mode.
12543         * lib/langinfo.in.h: Include c++defs.h.
12544         (nl_langinfo): In C++, define a namespaced alias symbol.
12545         * modules/langinfo (Depends-on): Add c++defs.
12546         (Makefile.am): Update langinfo.h rule.
12547
12548         iconv-h: Avoid #define replacements in C++ mode.
12549         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
12550         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
12551         symbol.
12552         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
12553         whenever iconv is present.
12554         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
12555         (Makefile.am): Update iconv.h rule.
12556
12557         glob: Avoid #define replacements in C++ mode.
12558         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
12559         (_gl_glob_errfunc_fn): New type.
12560         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
12561         symbol.
12562         * modules/glob (Depends-on): Add c++defs, warn-on-use.
12563         (Makefile.am): Update glob.h rule.
12564
12565         fcntl-h: Avoid #define replacements in C++ mode.
12566         * lib/fcntl.in.h: Include c++defs.h.
12567         (fcntl, open, openat): In C++, define a namespaced alias symbol.
12568         * modules/fcntl-h (Depends-on): Add c++defs.
12569         (Makefile.am): Update fcntl.h rule.
12570
12571         dirent: Avoid #define replacements in C++ mode.
12572         * lib/dirent.in.h: Include c++defs.h.
12573         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
12574         namespaced alias symbol.
12575         (dirfd): Update declaration.
12576         * modules/dirent (Depends-on): Add c++defs.
12577         (Makefile.am): Update dirent.h rule.
12578
12579         ctype: Make it usable in C++ code.
12580         * lib/ctype.in.h: Include c++defs.h.
12581         (isblank): Declare as extern "C".
12582         * modules/ctype (Depends-on): Add c++defs.
12583         (Makefile.am): Update ctype.h rule.
12584
12585         New module 'c++defs'.
12586         * modules/c++defs: New file.
12587         * build-aux/c++defs.h: New file.
12588         Reported by John W. Eaton <jwe@gnu.org>.
12589
12590 2010-03-07  Bruno Haible  <bruno@clisp.org>
12591
12592         logb: Provide missing declaration for Cygwin.
12593         * lib/math.in.h (logb): New declaration.
12594         * m4/logb.m4: New file.
12595         * modules/logb (Files): Add m4/logb.m4.
12596         (Depends-on): Add math.
12597         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
12598         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
12599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
12600         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
12601         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
12602
12603 2010-03-07  Bruno Haible  <bruno@clisp.org>
12604
12605         Fix test-cond link error.
12606         * tests/test-cond.c: Include <stdio.h>.
12607
12608 2010-03-07  Bruno Haible  <bruno@clisp.org>
12609
12610         Fix test-dirent-safer link error.
12611         * modules/dirent-safer-tests (Makefile.am): Define
12612         test_dirent_safer_LDADD.
12613
12614 2010-03-07  Bruno Haible  <bruno@clisp.org>
12615
12616         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
12617         among default module list.
12618
12619 2010-03-07  Bruno Haible  <bruno@clisp.org>
12620
12621         Fix link error on platforms with GNU libiconv.
12622         * modules/unistr/u8-strcoll-tests (Makefile): Define
12623         test_u8_strcoll_LDADD.
12624         * modules/unistr/u16-strcoll-tests (Makefile): Define
12625         test_u16_strcoll_LDADD.
12626         * modules/unistr/u32-strcoll-tests (Makefile): Define
12627         test_u32_strcoll_LDADD.
12628
12629 2010-03-07  Bruno Haible  <bruno@clisp.org>
12630
12631         Use POSIX declarations for socket functions.
12632         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
12633         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
12634         rpl_sendto): Change declaration to match POSIX.
12635         * lib/connect.c (rpl_connect): Likewise.
12636         * lib/accept.c (rpl_accept): Likewise.
12637         * lib/bind.c (rpl_bind): Likewise.
12638         * lib/getpeername.c (rpl_getpeername): Likewise.
12639         * lib/getsockname.c (rpl_getsockname): Likewise.
12640         * lib/recv.c (rpl_recv): Likewise.
12641         * lib/send.c (rpl_send): Likewise.
12642         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12643         * lib/sendto.c (rpl_sendto): Likewise.
12644
12645 2010-03-06  Bruno Haible  <bruno@clisp.org>
12646
12647         Clarify access, euidaccess, faccessat.
12648         * doc/posix-functions/faccessat.texi: Mention security problem under
12649         "Other problems", not "Portability problems".
12650         * doc/posix-functions/access.texi: Likewise. Mention a related security
12651         problem.
12652         * doc/glibc-functions/euidaccess.texi: Mention security problems.
12653         * lib/euidaccess.c: Add comments about platforms.
12654         * lib/unistd.in.h (access, euidaccess): Add warnings.
12655
12656 2010-03-07  Bruno Haible  <bruno@clisp.org>
12657
12658         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
12659         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
12660         (POSIX_SPAWN_SETSCHEDULER): Likewise.
12661         (POSIX_SPAWN_USEVFORK): Define in a way that works when
12662         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12663         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
12664         declare when POSIX_SPAWN_SETSCHEDULER is zero.
12665         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
12666         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
12667         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
12668         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
12669         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
12670         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
12671         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
12672         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
12673         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
12674         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
12675         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
12676         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
12677         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
12678         Likewise.
12679         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
12680         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
12681         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
12682         Likewise.
12683         * tests/test-spawn.c (main): Make it work when
12684         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
12685
12686 2010-03-07  Bruno Haible  <bruno@clisp.org>
12687
12688         Fix incorrect Makefile.am generation in German locale.
12689         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12690         Execute sed command with character range in C locale.
12691
12692 2010-03-06  Bruno Haible  <bruno@clisp.org>
12693
12694         Tests for module 'iconv-h'.
12695         * modules/iconv-h-tests: New file.
12696         * tests/test-iconv-h.c: New file.
12697
12698         New module 'iconv-h'.
12699         * modules/iconv-h: New file.
12700         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
12701         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
12702         (configure.ac): Remove gl_ICONV_H.
12703         (Makefile.am): Remove rule for iconv.h.
12704
12705 2010-03-06  Bruno Haible  <bruno@clisp.org>
12706
12707         More consistent naming of *.m4 files.
12708         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
12709         * modules/wctype (Files): Update.
12710
12711         More consistent naming of *.m4 files.
12712         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
12713         * modules/wchar (Files): Update.
12714
12715 2010-03-06  Jim Meyering  <meyering@redhat.com>
12716
12717         euidaccess: relax license to LGPLv2+
12718         * modules/euidaccess (License): Relax to LGPLv2+.
12719
12720 2010-03-06  Bruno Haible  <bruno@clisp.org>
12721
12722         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
12723         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
12724         (Makefile.am): Augment lib_SOURCES instead.
12725
12726 2010-03-04  Jim Meyering  <meyering@redhat.com>
12727
12728         utime: remove obsolete module
12729         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
12730         unnecessary for years, and has been marked as obsolete for 10 months.
12731         * modules/utime: Remove file.
12732         * lib/utime.c: Remove file.
12733         * m4/utime.m4: Remove file.
12734         * m4/utimes-null.m4: Remove file.
12735         * doc/posix-functions/utime.texi (utime): Remove reference to
12736         the module.  Move the sole "fixed by gnulib" item into the
12737         "problems not fixed by Gnulib" list.
12738         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
12739
12740 2010-03-05  Simon Josefsson  <simon@josefsson.org>
12741
12742         * modules/exit (License): Relax license to LGPLv2+.
12743         (Status): Mark as obsolete.
12744         * NEWS: Mention deprecated 'exit' module.
12745         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
12746         of now obsolete 'exit'.
12747
12748 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12749
12750         fts-lgpl: remove unused module
12751         * modules/fts-lgpl: Remove.
12752         * MODULES.html.sh (func_all_modules): Adjust.
12753         * check-module (find_included_lib_files): Adjust.
12754         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
12755
12756 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
12757
12758         copy-acl: enhance Solaris ACL error handling
12759         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
12760         * lib/set-mode-acl.c (qset_acl): Likewise.
12761
12762 2010-03-02  Bruno Haible  <bruno@clisp.org>
12763
12764         spawn: Don't override the system defined values on FreeBSD 8.
12765         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
12766         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
12767         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
12768         if HAVE_POSIX_SPAWN is 1.
12769         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
12770
12771 2010-03-01  Bruno Haible  <bruno@clisp.org>
12772
12773         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
12774         regarding Automake.
12775
12776 2010-02-25  Bruno Haible  <bruno@clisp.org>
12777
12778         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
12779         * gnulib-tool: Define 'echo' as a function only before the ksh alias
12780         setting, not afterwards.
12781         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
12782
12783 2010-02-24  Eric Blake  <eblake@redhat.com>
12784
12785         bootstrap, git-version-gen: use timestamp
12786         * build-aux/git-version-gen (scriptversion): Force UTC.
12787         * build-aux/bootstrap (scriptversion): New variable.
12788
12789         bootstrap: allow older git
12790         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
12791         older than 1.6.4.  Requested by the libvirt project.
12792
12793 2010-02-23  Eric Blake  <eblake@redhat.com>
12794
12795         warn-on-use: work with old autoconf
12796         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
12797         AS_VAR semantics of autoconf 2.60.
12798         Reported by Bruno Haible.
12799
12800         bootstrap: improve some comments
12801         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
12802         clarification comments.
12803
12804         gettimeofday: provide correct function
12805         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
12806         when replacement is declared, otherwise provide gettimeofday.
12807         Reported by Michael Goffioul.
12808
12809 2010-02-23  Jim Meyering  <meyering@redhat.com>
12810
12811         lib-ignore: relax license to "unlimited", not LGPLv2+
12812         * modules/lib-ignore (License): Relax to "unlimited".
12813
12814 2010-02-23  Jim Meyering  <meyering@redhat.com>
12815
12816         lib-ignore: relax license to LGPLv2+
12817         * modules/lib-ignore (License): Relax to LGPLv2+.
12818
12819 2010-02-22  Eric Blake  <eblake@redhat.com>
12820
12821         lseek: avoid bash 3.2 broken pipe bug
12822         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
12823         warning from bash 3.2.
12824         Reported by Ben Pfaff, with analysis from Bruno Haible.
12825
12826         bootstrap: support non-FSF copyright holder
12827         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
12828         bootstrap.conf override of COPYRIGHT_HOLDER.
12829         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
12830
12831         bootstrap: interoperate with gettext 0.14.1
12832         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
12833
12834         bootstrap: allow for alternate submodule location
12835         * build-aux/bootstrap (gnulib_path): New variable; use instead of
12836         hardcoding submodule location.
12837         (gnulib_mk): Allow direct use of Makefile.am.
12838
12839         bootstrap: use GNULIB_SRCDIR to reduce disk usage
12840         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
12841         rather than reconfiguring where the submodule points.
12842
12843         gettimeofday: restore support for platforms that lack function
12844         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
12845         replacement if function is missing.
12846         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
12847         * modules/sys_time (Makefile.am): Substitute it.
12848         * lib/sys_time.in.h (gettimeofday): Check it.
12849         Reported by Michael Goffioul.
12850
12851 2010-02-21  Bruno Haible  <bruno@clisp.org>
12852
12853         * lib/stdio.in.h (obstack_printf): Fix typo.
12854
12855 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
12856
12857         vc-list-files: use bzr ls's -R option
12858         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
12859         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
12860
12861 2010-02-21  Jim Meyering  <meyering@redhat.com>
12862
12863         init.sh: fix EXEEXT shims to work also for names like test-prog
12864         * tests/init.sh: Re-exec a better shell, when needed.
12865         If the current shell lacks support for posix $(...), an init.sh-using
12866         test will now try to find a shell that supports that.  If EXEEXT is
12867         nonempty, we also require support for hyphen-in-alias-name and shell
12868         substitutions like ${var#glob}.  Failure to find such a shell results
12869         in a skipped test.
12870
12871 2010-02-21  Bruno Haible  <bruno@clisp.org>
12872
12873         Really work around around "broken pipe" error message from bash 3.2.
12874         * gnulib-tool (func_reset_sigpipe): Remove function.
12875         (echo): In bash 3.2, define to a function that uses printf.
12876         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
12877
12878 2010-02-20  Bruno Haible  <bruno@clisp.org>
12879
12880         Restore support for automake 1.9.6 with autoconf 2.61.
12881         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
12882         Reported by James Youngman <jay@gnu.org>.
12883
12884 2010-02-20  Bruno Haible  <bruno@clisp.org>
12885
12886         Improve *printf warning condition.
12887         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
12888         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
12889         and the function is overridden due to SIGPIPE emulation.
12890
12891 2010-02-20  Bruno Haible  <bruno@clisp.org>
12892
12893         * lib/stdio.in.h: Tweak comments.
12894
12895 2010-02-19  Bruno Haible  <bruno@clisp.org>
12896
12897         Make it easier to find modules. New gnulib-tool option '--find'.
12898         * gnulib-tool: New option --find.
12899         (func_usage): Document it.
12900         (func_sanitize_modulelist): New function, extracted from
12901         func_all_modules.
12902         (func_all_modules): Invoke it.
12903         * doc/gnulib-tool.texi (Which modules?): New node.
12904
12905 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
12906
12907         * lib/sys_select.in.h: Provide select replacement even if
12908         sys/select.h exists on a system, for Interix.
12909
12910 2010-02-18  Jim Meyering  <meyering@redhat.com>
12911
12912         init.sh: don't use $(...) just yet
12913         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
12914         to accommodate e.g., Solaris' /bin/sh.
12915
12916 2010-02-17  Bruno Haible  <bruno@clisp.org>
12917
12918         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
12919         Reported by Ludovic Courtès <ludo@gnu.org>.
12920
12921 2010-02-16  Simon Josefsson  <simon@josefsson.org>
12922
12923         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
12924         linking with -lintl.
12925
12926 2010-02-17  Simon Josefsson  <simon@josefsson.org>
12927
12928         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
12929         if not provided by the system's netdb.h.  Reported by
12930         ludo@gnu.org (Ludovic Courtès).
12931
12932 2010-02-15  Jim Meyering  <meyering@redhat.com>
12933
12934         init.sh: improve portability and efficiency
12935         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
12936         "dummy" in a for loop.
12937         Use '!', not '^' to select the complement of a character set used
12938         in a "case" statement.
12939         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
12940         Suggestions from Eric Blake.
12941
12942         init.sh: automatically accommodate programs with the .exe suffix
12943         Automatically arrange for an invocation of "prog" to execute the
12944         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
12945         may use the simpler "prog", yet still work when built on a system
12946         that requires specifying the added suffix.
12947         Do this by constructing a function named "prog" that invokes
12948         "prog.exe" for each .exe file in selected directories.
12949         * tests/init.sh (find_exe_basenames_): New function.
12950         (create_exe_shim_functions_): New function.
12951         (path_prepend_): Use it.
12952
12953         maint.mk: mark syntax-check sc_*.m rules as .PHONY
12954         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
12955         "make -t syntax-check" doesn't create a ton of sc_*.m files.
12956
12957 2010-02-14  Jim Meyering  <meyering@redhat.com>
12958
12959         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
12960         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
12961         (sc_prohibit_hash_pjw_without_use): New rule.
12962
12963         maint.mk: allow the default upload destination dir to be overridden
12964         * top/maint.mk (upload_dest_dir_): Define with a default that
12965         preserves the status quo.
12966         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
12967         Reported by Peter Simons.
12968
12969         maint.mk: prohibit inclusion of "hash.h" without_use
12970         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
12971
12972 2010-02-10  Jim Meyering  <meyering@redhat.com>
12973
12974         maint.mk: prohibit inclusion of "ignore-value.h" without_use
12975         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
12976
12977 2010-02-09  Eric Blake  <ebb9@byu.net>
12978         and Bruno Haible  <bruno@clisp.org>
12979
12980         obstack-printf-posix: ensure declaration
12981         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
12982         extracted from gl_FUNC_OBSTACK_PRINTF.
12983         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
12984         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
12985         Likewise.
12986         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
12987         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
12988         0.
12989
12990 2010-02-08  Bruno Haible  <bruno@clisp.org>
12991
12992         gnulib-tool: Fix typo in 2010-02-07 commit.
12993         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
12994         Reported by Eric Blake.
12995
12996 2010-02-07  Bruno Haible  <bruno@clisp.org>
12997
12998         gnulib-tool: Fix up caching patches.
12999         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
13000         option --no-cache. Use associative arrays when supported by the shell.
13001         (sed_comments): New variable.
13002         (modcache): Renamed from do_cache.
13003         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
13004         abbreviate unnecessarily.
13005         (have_associative): New variable.
13006         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
13007         way also for ksh and zsh.
13008         (func_init_sed_convert_to_cache_statements): New function, extracted
13009         from func_cache_lookup_module. Add support for associative arrays.
13010         Don't set the c_MODULE_cached variable here. Ignore all lines before
13011         the first field header. Remove only the final newline, not all trailing
13012         newlines. Support empty fields correctly. Limit the use of 'eval' to
13013         assignments.
13014         (func_get_description, func_get_status, func_get_notice,
13015         func_get_applicability, func_get_filelist, func_get_dependencies,
13016         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
13017         func_get_automake_snippet, func_get_include_directive,
13018         func_get_link_directive, func_get_license, func_get_maintainer):
13019         Update documentation. List the unoptimized code first. Add support for
13020         associative arrays. Limit the use of 'eval' to assignments.
13021         (func_get_applicability): Undo stylistic pessimisations.
13022         (func_get_automake_snippet, func_get_include_directive): Reduce code
13023         duplication.
13024         (func_modules_transitive_closure, func_modules_add_dummy,
13025         func_modules_notice, func_modules_to_filelist, func_add_file,
13026         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
13027         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
13028         func_create_testdir, func_create_megatestdir): Update documentation.
13029
13030 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13031
13032         * gnulib-tool (func_cache_lookup_module): Store the module name
13033         belonging to the cache variable; error out if two different
13034         module names map to the same cache variable name.
13035
13036 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13037
13038         gnulib-tool: Make caching optional.
13039         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
13040         Update matching short versions of --no-changelog.
13041         (func_usage): Update.
13042         (sed_extract_cache_prog): Renamed from ...
13043         (sed_extract_prog): ... this; revert to old extraction script.
13044         (func_get_description, func_get_status)
13045         (func_get_notice, func_get_applicability, func_get_filelist)
13046         (func_get_dependencies, func_get_autoconf_early_snippet)
13047         (func_get_autoconf_snippet, func_get_automake_snippet)
13048         (func_get_include_directive, func_get_link_directive)
13049         (func_get_license, func_get_maintainer): If $do_cache is false,
13050         use old, non-caching extraction scripts.
13051         Suggestion by Bruno Haible.
13052
13053 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13054
13055         gnulib-tool: cache module metainformation.
13056         * gnulib-tool (sed_extract_prog): Match newline before each
13057         header, and rewrite header to a shell variable suffix.
13058         (func_cache_var, func_cache_lookup_module): New functions,
13059         to turn a module name into a cache variable prefix, and to
13060         look up and cache module metainformation.
13061         (func_get_description, func_get_status)
13062         (func_get_notice, func_get_applicability, func_get_filelist)
13063         (func_get_dependencies, func_get_autoconf_early_snippet)
13064         (func_get_autoconf_snippet, func_get_automake_snippet)
13065         (func_get_include_directive, func_get_link_directive)
13066         (func_get_license, func_get_maintainer): Use
13067         func_cache_lookup_module.
13068
13069 2010-02-07  Bruno Haible  <bruno@clisp.org>
13070
13071         fnctl: Fix missing dependency.
13072         * modules/fcntl (Depends-on): Add getdtablesize.
13073         Reported by John W. Eaton <jwe@gnu.org>.
13074
13075 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13076
13077         Argp: fix recognition of short alias options.
13078
13079         * lib/argp-parse.c (convert_options): Fix improper use of
13080         `|' between character values.
13081         * tests/test-argp.c (group1_option): New alias option
13082         --read (-r).
13083         (group1_parser): Special handling for 'r'.
13084         (test15): New test case.
13085         (test_fun): Add test15.
13086         * tests/test-argp-2.sh: Update expected --help and --usage
13087         outputs.
13088
13089 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13090
13091         * tests/test-argp.c: Fix indentation.
13092
13093 2010-02-04  Eric Blake  <ebb9@byu.net>
13094
13095         gettimeofday: expose type of second argument
13096         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
13097         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
13098         * tests/test-gettimeofday.c: Use it to silence warning.
13099         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
13100         the issue.
13101
13102 2010-02-03  Jim Meyering  <meyering@redhat.com>
13103
13104         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
13105         * lib/regcomp.c (TYPE_SIGNED): Define.
13106         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
13107
13108         regcomp.c: avoid a new -Wshadow warning
13109         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
13110
13111 2010-02-01  Jim Meyering  <meyering@redhat.com>
13112
13113         removing useless parentheses in cpp #define directives
13114         For motivation, see commit c0221df4, "define STREQ(a,b)
13115         consistently, removing useless parentheses"
13116         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
13117         * lib/mountlist.c (MNT_IGNORE): Likewise.
13118         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
13119
13120 2010-02-01  Eric Blake  <ebb9@byu.net>
13121
13122         sys_time: use link-warning
13123         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
13124         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
13125         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
13126         * modules/sys_time (Depends-on): Add warn-on-use.
13127         (Makefile.am): Always build replacement.
13128         (configure.ac): Update substitutions.
13129         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
13130         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
13131         bother with SYS_TIME_H.
13132         * modules/gettimeofday (configure.ac): Declare indicator.
13133         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
13134         in use.
13135
13136         closein-tests: silence compiler warning
13137         * tests/test-closein.c (main): Ignore fread result.
13138         * modules/closein-tests (Depends-on): Add ignore-value.
13139
13140         tests: silence warning about system return
13141         * tests/test-areadlink-with-size.c (main): Ignore system result.
13142         * tests/test-areadlink.c (main): Likewise.
13143         * tests/test-areadlinkat-with-size.c (main): Likewise.
13144         * tests/test-areadlinkat.c (main): Likewise.
13145         * tests/test-canonicalize-lgpl.c (main): Likewise.
13146         * tests/test-canonicalize.c (main): Likewise.
13147         * tests/test-chown.c (main): Likewise.
13148         * tests/test-fchownat.c (main): Likewise.
13149         * tests/test-fdutimensat.c (main): Likewise.
13150         * tests/test-fstatat.c (main): Likewise.
13151         * tests/test-futimens.c (main): Likewise.
13152         * tests/test-lchown.c (main): Likewise.
13153         * tests/test-link.c (main): Likewise.
13154         * tests/test-linkat.c (main): Likewise.
13155         * tests/test-lstat.c (main): Likewise.
13156         * tests/test-mkdir.c (main): Likewise.
13157         * tests/test-mkdirat.c (main): Likewise.
13158         * tests/test-mkfifo.c (main): Likewise.
13159         * tests/test-mkfifoat.c (main): Likewise.
13160         * tests/test-mknod.c (main): Likewise.
13161         * tests/test-readlink.c (main): Likewise.
13162         * tests/test-remove.c (main): Likewise.
13163         * tests/test-rename.c (main): Likewise.
13164         * tests/test-renameat.c (main): Likewise.
13165         * tests/test-rmdir.c (main): Likewise.
13166         * tests/test-symlink.c (main): Likewise.
13167         * tests/test-symlinkat.c (main): Likewise.
13168         * tests/test-unlink.c (main): Likewise.
13169         * tests/test-unlinkat.c (main): Likewise.
13170         * tests/test-utimens.c (main): Likewise.
13171         * tests/test-utimensat.c (main): Likewise.
13172         * modules/areadlink-tests (Depends-on): Add ignore-value.
13173         * modules/areadlink-with-size-tests (Depends-on): Likewise.
13174         * modules/areadlinkat-tests (Depends-on): Likewise.
13175         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
13176         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13177         * modules/canonicalize-tests (Depends-on): Likewise.
13178         * modules/chown-tests (Depends-on): Likewise.
13179         * modules/fdutimensat-tests (Depends-on): Likewise.
13180         * modules/futimens-tests (Depends-on): Likewise.
13181         * modules/lchown-tests (Depends-on): Likewise.
13182         * modules/link-tests (Depends-on): Likewise.
13183         * modules/linkat-tests (Depends-on): Likewise.
13184         * modules/lstat-tests (Depends-on): Likewise.
13185         * modules/mkdir-tests (Depends-on): Likewise.
13186         * modules/mkfifo-tests (Depends-on): Likewise.
13187         * modules/mkfifoat-tests (Depends-on): Likewise.
13188         * modules/mknod-tests (Depends-on): Likewise.
13189         * modules/openat-tests (Depends-on): Likewise.
13190         * modules/readlink-tests (Depends-on): Likewise.
13191         * modules/remove-tests (Depends-on): Likewise.
13192         * modules/rename-tests (Depends-on): Likewise.
13193         * modules/renameat-tests (Depends-on): Likewise.
13194         * modules/rmdir-tests (Depends-on): Likewise.
13195         * modules/symlink-tests (Depends-on): Likewise.
13196         * modules/symlinkat-tests (Depends-on): Likewise.
13197         * modules/unlink-tests (Depends-on): Likewise.
13198         * modules/utimens-tests (Depends-on): Likewise.
13199         * modules/utimensat-tests (Depends-on): Likewise.
13200
13201 2010-01-31  Bruno Haible  <bruno@clisp.org>
13202
13203         Perform the same test for many <math.h> functions.
13204         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
13205         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
13206         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
13207         of gl_MATHFUNC.
13208         * modules/acos (configure.ac): Likewise.
13209         * modules/asin (configure.ac): Likewise.
13210         * modules/atan (configure.ac): Likewise.
13211         * modules/atan2 (configure.ac): Likewise.
13212         * modules/cbrt (configure.ac): Likewise.
13213         * modules/copysign (configure.ac): Likewise.
13214         * modules/cos (configure.ac): Likewise.
13215         * modules/cosh (configure.ac): Likewise.
13216         * modules/erf (configure.ac): Likewise.
13217         * modules/erfc (configure.ac): Likewise.
13218         * modules/exp (configure.ac): Likewise.
13219         * modules/fmod (configure.ac): Likewise.
13220         * modules/hypot (configure.ac): Likewise.
13221         * modules/j0 (configure.ac): Likewise.
13222         * modules/j1 (configure.ac): Likewise.
13223         * modules/jn (configure.ac): Likewise.
13224         * modules/lgamma (configure.ac): Likewise.
13225         * modules/log (configure.ac): Likewise.
13226         * modules/log10 (configure.ac): Likewise.
13227         * modules/log1p (configure.ac): Likewise.
13228         * modules/pow (configure.ac): Likewise.
13229         * modules/remainder (configure.ac): Likewise.
13230         * modules/sin (configure.ac): Likewise.
13231         * modules/sinh (configure.ac): Likewise.
13232         * modules/tan (configure.ac): Likewise.
13233         * modules/tanh (configure.ac): Likewise.
13234         * modules/y0 (configure.ac): Likewise.
13235         * modules/y1 (configure.ac): Likewise.
13236         * modules/yn (configure.ac): Likewise.
13237         Suggested by Paolo Bonzini.
13238
13239 2010-01-31  Bruno Haible  <bruno@clisp.org>
13240
13241         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
13242
13243 2010-01-31  Bruno Haible  <bruno@clisp.org>
13244
13245         Work around getdelim() bug on FreeBSD 8.0.
13246         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
13247         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
13248         not work.
13249         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
13250         is 1.
13251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
13252         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
13253         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
13254         a non-zero size.
13255         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
13256
13257 2010-01-31  Bruno Haible  <bruno@clisp.org>
13258
13259         Work around getline() bug on FreeBSD 8.0.
13260         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
13261         and a non-zero size.
13262         * tests/test-getline.c (main): Likewise.
13263         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
13264         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
13265
13266 2010-01-28  Eric Blake  <ebb9@byu.net>
13267
13268         regex: fix build failure
13269         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
13270         platforms.
13271
13272 2010-01-28  Jim Meyering  <meyering@redhat.com>
13273
13274         regex: do not ignore memory allocation failure
13275         * lib/regex_internal.c (create_cd_newstate): Detect
13276         re_node_set_init_copy failure.   Extracted from glibc commit
13277         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13278
13279         regex: sync more white-space changes from libc
13280         * lib/regex_internal.c: White-space only changes.
13281         * lib/regexec.c: Likewise.
13282
13283         regex: add many uses of __attribute_warn_unused_result__
13284         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
13285         * lib/regexec.c: Likewise.
13286         Extracted from a messy glibc commit.
13287
13288         regcomp.c: spelling and merge-artifact from glibc
13289         * lib/regcomp.c: Merge remainder of glibc's
13290         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13291
13292         regcomp.c: sync white-space changes from glibc
13293         * lib/regcomp.c: Merge to accommodate white space
13294         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
13295
13296         regcomp.c: do not ignore internal return values
13297         * lib/regcomp.c: Do not ignore internal return values.
13298         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
13299         but without its white-space changes and spelling fixes.
13300
13301         regex_internal.h: define __attribute_warn_unused_result__
13302         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
13303
13304         maint: add a syntax-check rule to check for vulnerable Makefile.in
13305         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
13306
13307 2010-01-27  Jim Meyering  <meyering@redhat.com>
13308
13309         ncftpput-ftp: clean up spaces
13310         * build-aux/ncftpput-ftp: Make Copyright line consistent.
13311         Remove trailing blanks.
13312
13313 2010-01-27  Simon Josefsson  <simon@josefsson.org>
13314
13315         * build-aux/git-version-gen: Fix copyright statement.
13316         * build-aux/gnupload: Likewise.
13317         * tests/test-arcfour.c: Likewise.
13318         * tests/test-arctwo.c: Likewise.
13319         * tests/test-count-one-bits.c: Likewise.
13320         * tests/test-crc.c: Likewise.
13321         * tests/test-des.c: Likewise.
13322         * tests/test-gc-arcfour.c: Likewise.
13323         * tests/test-gc-arctwo.c: Likewise.
13324         * tests/test-gc-des.c: Likewise.
13325         * tests/test-gc-hmac-md5.c: Likewise.
13326         * tests/test-gc-hmac-sha1.c: Likewise.
13327         * tests/test-gc-md2.c: Likewise.
13328         * tests/test-gc-md4.c: Likewise.
13329         * tests/test-gc-md5.c: Likewise.
13330         * tests/test-gc-pbkdf2-sha1.c: Likewise.
13331         * tests/test-gc-rijndael.c: Likewise.
13332         * tests/test-gc-sha1.c: Likewise.
13333         * tests/test-gc.c: Likewise.
13334         * tests/test-gethostname.c: Likewise.
13335         * tests/test-gettimeofday.c: Likewise.
13336         * tests/test-hash.c: Likewise.
13337         * tests/test-hmac-md5.c: Likewise.
13338         * tests/test-hmac-sha1.c: Likewise.
13339         * tests/test-md2.c: Likewise.
13340         * tests/test-md4.c: Likewise.
13341         * tests/test-md5.c: Likewise.
13342         * tests/test-memchr.c: Likewise.
13343         * tests/test-memchr2.c: Likewise.
13344         * tests/test-memcmp.c: Likewise.
13345         * tests/test-memmem.c: Likewise.
13346         * tests/test-memrchr.c: Likewise.
13347         * tests/test-rawmemchr.c: Likewise.
13348         * tests/test-read-file.c: Likewise.
13349         * tests/test-rijndael.c: Likewise.
13350         * tests/test-sockets.c: Likewise.
13351         * tests/test-strchrnul.c: Likewise.
13352         * tests/test-strstr.c: Likewise.
13353         * tests/test-strtod.c: Likewise.
13354         * build-aux/ncftpput-ftp: Likewise.
13355
13356 2010-01-26  Eric Blake  <ebb9@byu.net>
13357
13358         ignore-value: update recommended header name
13359         * modules/ignore-value (Include): Only use <> for headers that
13360         exist in glibc.
13361
13362 2010-01-26  Jim Meyering  <meyering@redhat.com>
13363
13364         test-userspec.c: avoid compiler warnings
13365         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
13366         and "initialization discards qualifiers..." warnings.
13367         Put the first "uid" in its own scope, and make char* members "const".
13368
13369 2010-01-25  Bruno Haible  <bruno@clisp.org>
13370
13371         gnulib-tool: Make warning diagnostics consistent.
13372         * gnulib-tool (func_warning): New function.
13373         Use it everywhere where gnulib-tool produces output to stderr and it is
13374         not a fatal error.
13375
13376 2010-01-25  Bruno Haible  <bruno@clisp.org>
13377
13378         Fix test dependencies.
13379         * modules/xstrtol-tests (Depends-on): Add inttypes.
13380         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
13381
13382 2010-01-25 Pádraig Brady <P@draigBrady.com>
13383
13384         syntax-check: detect incorrect boolean macro values in config.h
13385         * modules/maintainer-makefile (configure.ac): Parameterize the location
13386         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
13387         The logic is from Eric Blake and the location indicated by Jim Meyering.
13388         Note the more natural CONFIG_HEADER name is prohibited by automake
13389         for backwards compatibility reasons.
13390         * top/maint.mk (sc_Wundef_boolean): New rule.
13391
13392 2010-01-25  Jim Meyering  <meyering@redhat.com>
13393
13394         bootstrap: detect MacOS 10.6's shasum, too
13395         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
13396         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
13397
13398 2010-01-23  Jim Meyering  <meyering@redhat.com>
13399
13400         xstrtoll: new module
13401         * modules/xstrtoll: New file.
13402         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
13403         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
13404         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
13405         ./configure fails if you use this module and lack "long long".
13406         * modules/xstrtoll-tests: New module.
13407         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
13408         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
13409         new init.sh-based test framework.
13410
13411 2010-01-24  Bruno Haible  <bruno@clisp.org>
13412
13413         Tests for module 'yn'.
13414         * modules/yn-tests: New file.
13415         * tests/test-yn.c: New file.
13416
13417         Tests for module 'y1'.
13418         * modules/y1-tests: New file.
13419         * tests/test-y1.c: New file.
13420
13421         Tests for module 'y0'.
13422         * modules/y0-tests: New file.
13423         * tests/test-y0.c: New file.
13424
13425         Tests for module 'tanh'.
13426         * modules/tanh-tests: New file.
13427         * tests/test-tanh.c: New file.
13428
13429         Tests for module 'tan'.
13430         * modules/tan-tests: New file.
13431         * tests/test-tan.c: New file.
13432
13433         Tests for module 'sqrt'.
13434         * modules/sqrt-tests: New file.
13435         * tests/test-sqrt.c: New file.
13436
13437         Tests for module 'sinh'.
13438         * modules/sinh-tests: New file.
13439         * tests/test-sinh.c: New file.
13440
13441         Tests for module 'sin'.
13442         * modules/sin-tests: New file.
13443         * tests/test-sin.c: New file.
13444
13445         Tests for module 'rint'.
13446         * modules/rint-tests: New file.
13447         * tests/test-rint.c: New file.
13448
13449         Tests for module 'remainder'.
13450         * modules/remainder-tests: New file.
13451         * tests/test-remainder.c: New file.
13452
13453         Tests for module 'pow'.
13454         * modules/pow-tests: New file.
13455         * tests/test-pow.c: New file.
13456
13457         Tests for module 'nextafter'.
13458         * modules/nextafter-tests: New file.
13459         * tests/test-nextafter.c: New file.
13460
13461         Tests for module 'modf'.
13462         * modules/modf-tests: New file.
13463         * tests/test-modf.c: New file.
13464
13465         Tests for module 'logb'.
13466         * modules/logb-tests: New file.
13467         * tests/test-logb.c: New file.
13468
13469         Tests for module 'log1p'.
13470         * modules/log1p-tests: New file.
13471         * tests/test-log1p.c: New file.
13472
13473         Tests for module 'log10'.
13474         * modules/log10-tests: New file.
13475         * tests/test-log10.c: New file.
13476
13477         Tests for module 'log'.
13478         * modules/log-tests: New file.
13479         * tests/test-log.c: New file.
13480
13481         Tests for module 'lgamma'.
13482         * modules/lgamma-tests: New file.
13483         * tests/test-lgamma.c: New file.
13484
13485         Tests for module 'ldexp'.
13486         * modules/ldexp-tests: New file.
13487         * tests/test-ldexp.c: New file.
13488
13489         Tests for module 'jn'.
13490         * modules/jn-tests: New file.
13491         * tests/test-jn.c: New file.
13492
13493         Tests for module 'j1'.
13494         * modules/j1-tests: New file.
13495         * tests/test-j1.c: New file.
13496
13497         Tests for module 'j0'.
13498         * modules/j0-tests: New file.
13499         * tests/test-j0.c: New file.
13500
13501         Tests for module 'hypot'.
13502         * modules/hypot-tests: New file.
13503         * tests/test-hypot.c: New file.
13504
13505         Tests for module 'fmod'.
13506         * modules/fmod-tests: New file.
13507         * tests/test-fmod.c: New file.
13508
13509         Tests for module 'fabs'.
13510         * modules/fabs-tests: New file.
13511         * tests/test-fabs.c: New file.
13512
13513         Tests for module 'exp'.
13514         * modules/exp-tests: New file.
13515         * tests/test-exp.c: New file.
13516
13517         Tests for module 'erfc'.
13518         * modules/erfc-tests: New file.
13519         * tests/test-erfc.c: New file.
13520
13521         Tests for module 'erf'.
13522         * modules/erf-tests: New file.
13523         * tests/test-erf.c: New file.
13524
13525         Tests for module 'cosh'.
13526         * modules/cosh-tests: New file.
13527         * tests/test-cosh.c: New file.
13528
13529         Tests for module 'cos'.
13530         * modules/cos-tests: New file.
13531         * tests/test-cos.c: New file.
13532
13533         Tests for module 'copysign'.
13534         * modules/copysign-tests: New file.
13535         * tests/test-copysign.c: New file.
13536
13537         Tests for module 'cbrt'.
13538         * modules/cbrt-tests: New file.
13539         * tests/test-cbrt.c: New file.
13540
13541         Tests for module 'atan2'.
13542         * modules/atan2-tests: New file.
13543         * tests/test-atan2.c: New file.
13544
13545         Tests for module 'atan'.
13546         * modules/atan-tests: New file.
13547         * tests/test-atan.c: New file.
13548
13549         Tests for module 'asin'.
13550         * modules/asin-tests: New file.
13551         * tests/test-asin.c: New file.
13552
13553         Tests for module 'acos'.
13554         * modules/acos-tests: New file.
13555         * tests/test-acos.c: New file.
13556
13557 2010-01-24  Bruno Haible  <bruno@clisp.org>
13558
13559         Fix tests for common <math.h> functions.
13560         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
13561         code snippet that references the function pointer, rather than merely
13562         calling the function. Substitute the FUNC_LIBM variable.
13563         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
13564         * modules/acos (configure.ac): Likewise.
13565         * modules/asin (configure.ac): Likewise.
13566         * modules/atan (configure.ac): Likewise.
13567         * modules/atan2 (configure.ac): Likewise.
13568         * modules/cbrt (configure.ac): Likewise.
13569         * modules/copysign (configure.ac): Likewise.
13570         * modules/cos (configure.ac): Likewise.
13571         * modules/cosh (configure.ac): Likewise.
13572         * modules/erf (configure.ac): Likewise.
13573         * modules/erfc (configure.ac): Likewise.
13574         * modules/exp (configure.ac): Likewise.
13575         * modules/fabs (configure.ac): Likewise.
13576         * modules/fmod (configure.ac): Likewise.
13577         * modules/hypot (configure.ac): Likewise.
13578         * modules/j0 (configure.ac): Likewise.
13579         * modules/j1 (configure.ac): Likewise.
13580         * modules/jn (configure.ac): Likewise.
13581         * modules/ldexp (configure.ac): Likewise.
13582         * modules/lgamma (configure.ac): Likewise.
13583         * modules/log (configure.ac): Likewise.
13584         * modules/log10 (configure.ac): Likewise.
13585         * modules/log1p (configure.ac): Likewise.
13586         * modules/logb (configure.ac): Likewise.
13587         * modules/modf (configure.ac): Likewise.
13588         * modules/nextafter (configure.ac): Likewise.
13589         * modules/pow (configure.ac): Likewise.
13590         * modules/remainder (configure.ac): Likewise.
13591         * modules/rint (configure.ac): Likewise.
13592         * modules/sin (configure.ac): Likewise.
13593         * modules/sinh (configure.ac): Likewise.
13594         * modules/tan (configure.ac): Likewise.
13595         * modules/tanh (configure.ac): Likewise.
13596         * modules/y0 (configure.ac): Likewise.
13597         * modules/y1 (configure.ac): Likewise.
13598         * modules/yn (configure.ac): Likewise.
13599
13600 2010-01-24  Bruno Haible  <bruno@clisp.org>
13601
13602         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
13603         * tests/test-acosl.c (x): New variable.
13604         (main): Store argument in x and fetch it from x.
13605         * tests/test-asinl.c (x): New variable.
13606         (main): Store argument in x and fetch it from x.
13607         * tests/test-atanl.c (x): New variable.
13608         (main): Store argument in x and fetch it from x.
13609         * tests/test-cosl.c (x): New variable.
13610         (main): Store argument in x and fetch it from x.
13611         * tests/test-expl.c (x): New variable.
13612         (main): Store argument in x and fetch it from x.
13613         * tests/test-logl.c (x): New variable.
13614         (main): Store argument in x and fetch it from x.
13615         * tests/test-sinl.c (x): New variable.
13616         (main): Store argument in x and fetch it from x.
13617         * tests/test-sqrtl.c (x): New variable.
13618         (main): Store argument in x and fetch it from x.
13619         * tests/test-tanl.c (x): New variable.
13620         (main): Store argument in x and fetch it from x.
13621
13622 2010-01-24  Bruno Haible  <bruno@clisp.org>
13623
13624         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
13625         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
13626         assignments to the initial TESTS_ENVIRONMENT.
13627         * doc/gnulib.texi (Unit test modules): Document it.
13628         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
13629         TESTS_ENVIRONMENT.
13630         * modules/btowc-tests (Makefile.am): Likewise.
13631         * modules/c-stack-tests (Makefile.am): Likewise.
13632         * modules/c-strcase-tests (Makefile.am): Likewise.
13633         * modules/copy-file-tests (Makefile.am): Likewise.
13634         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
13635         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
13636         * modules/mbrtowc-tests (Makefile.am): Likewise.
13637         * modules/mbscasecmp-tests (Makefile.am): Likewise.
13638         * modules/mbscasestr-tests (Makefile.am): Likewise.
13639         * modules/mbschr-tests (Makefile.am): Likewise.
13640         * modules/mbscspn-tests (Makefile.am): Likewise.
13641         * modules/mbsinit-tests (Makefile.am): Likewise.
13642         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
13643         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
13644         * modules/mbspbrk-tests (Makefile.am): Likewise.
13645         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
13646         * modules/mbsrchr-tests (Makefile.am): Likewise.
13647         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
13648         * modules/mbsspn-tests (Makefile.am): Likewise.
13649         * modules/mbsstr-tests (Makefile.am): Likewise.
13650         * modules/nl_langinfo-tests (Makefile.am): Likewise.
13651         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
13652         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
13653         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
13654         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
13655         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
13656         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
13657         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
13658         * modules/wcrtomb-tests (Makefile.am): Likewise.
13659         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
13660         * modules/wcsrtombs-tests (Makefile.am): Likewise.
13661         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
13662         assignments from TESTS_ENVIRONMENT.
13663         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
13664         augmentation.
13665         * modules/argp-version-etc-tests (Makefile.am): Likewise.
13666         * modules/atexit-tests (Makefile.am): Likewise.
13667         * modules/binary-io-tests (Makefile.am): Likewise.
13668         * modules/closein-tests (Makefile.am): Likewise.
13669         * modules/dprintf-posix-tests (Makefile.am): Likewise.
13670         * modules/exclude-tests (Makefile.am): Likewise.
13671         * modules/fflush-tests (Makefile.am): Likewise.
13672         * modules/fpending-tests (Makefile.am): Likewise.
13673         * modules/fprintf-posix-tests (Makefile.am): Likewise.
13674         * modules/freadahead-tests (Makefile.am): Likewise.
13675         * modules/freadptr-tests (Makefile.am): Likewise.
13676         * modules/freadseek-tests (Makefile.am): Likewise.
13677         * modules/fseek-tests (Makefile.am): Likewise.
13678         * modules/fseeko-tests (Makefile.am): Likewise.
13679         * modules/ftell-tests (Makefile.am): Likewise.
13680         * modules/ftello-tests (Makefile.am): Likewise.
13681         * modules/idpriv-drop-tests (Makefile.am): Likewise.
13682         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
13683         * modules/lseek-tests (Makefile.am): Likewise.
13684         * modules/parse-duration-tests (Makefile.am): Likewise.
13685         * modules/perror-tests (Makefile.am): Likewise.
13686         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
13687         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
13688         * modules/pipe-tests (Makefile.am): Likewise.
13689         * modules/pread-tests (Makefile.am): Likewise.
13690         * modules/printf-posix-tests (Makefile.am): Likewise.
13691         * modules/select-tests (Makefile.am): Likewise.
13692         * modules/sigpipe-tests (Makefile.am): Likewise.
13693         * modules/tsearch-tests (Makefile.am): Likewise.
13694         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
13695         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
13696         * modules/uniname/uniname-tests (Makefile.am): Likewise.
13697         * modules/uniwidth/width-tests (Makefile.am): Likewise.
13698         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
13699         * modules/version-etc-tests (Makefile.am): Likewise.
13700         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
13701         * modules/vprintf-posix-tests (Makefile.am): Likewise.
13702         * modules/xalloc-die-tests (Makefile.am): Likewise.
13703         * modules/xprintf-posix-tests (Makefile.am): Likewise.
13704         * modules/xstrtoimax-tests (Makefile.am): Likewise.
13705         * modules/xstrtol-tests (Makefile.am): Likewise.
13706         * modules/xstrtoumax-tests (Makefile.am): Likewise.
13707         * modules/yesno-tests (Makefile.am): Likewise.
13708         Suggested by Jim Meyering.
13709
13710 2010-01-24  Bruno Haible  <bruno@clisp.org>
13711
13712         More documentation.
13713         * doc/gnulib.texi (Writing modules): New chapter.
13714         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
13715         the new chapter.
13716
13717 2010-01-24  Jim Meyering  <meyering@redhat.com>
13718
13719         maint.mk: do not prepend "./" after filtering
13720         * top/maint.mk (_prepend_srcdir_prefix): New variable
13721         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
13722         "./" when $(srcdir) is ".".
13723
13724         define STREQ(a,b) consistently, removing useless parentheses
13725         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
13726         since the only risk is that "a" or "b" contains an unparenthesized
13727         comma, but if either did that, STREQ would have 3 or more arguments.
13728         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
13729         * lib/fts.c (STREQ): Remove unnecessary parentheses.
13730         * lib/hash-triple.c (STREQ): Likewise.
13731         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
13732         * lib/getugroups.c (STREQ): Likewise.
13733
13734 2010-01-23  Jim Meyering  <meyering@redhat.com>
13735
13736         maint.mk: fix syntax-check in a non-srcdir build directory
13737         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
13738         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
13739
13740 2010-01-22  Jim Meyering  <meyering@redhat.com>
13741
13742         userspec: add unit tests
13743         * tests/test-userspec.c: New file.
13744         * modules/userspec-tests: Likewise.
13745
13746 2010-01-21  Jim Meyering  <meyering@redhat.com>
13747
13748         maint.mk: handle source file names containing "." robustly
13749         * top/maint.mk (_dot_escaped_srcdir): Define.
13750         (VC_LIST): Use it in LHS of sed substitution.
13751
13752 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
13753
13754         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
13755         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
13756         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
13757         from a non-srcdir build.
13758
13759 2010-01-20  Eric Blake  <ebb9@byu.net>
13760
13761         warn-on-use: use instead of link-warning
13762         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
13763         * modules/unistd (Depends-on, Makefile.am): Likewise.
13764         * modules/arpa_inet (Depends-on): Replace link-warning with
13765         warn-on-use.
13766         (Makefile.am): Update rules accordingly.
13767         * modules/ctype (Depends-on, Makefile.am): Likewise.
13768         * modules/dirent (Depends-on, Makefile.am): Likewise.
13769         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
13770         * modules/inttypes (Depends-on, Makefile.am): Likewise.
13771         * modules/langinfo (Depends-on, Makefile.am): Likewise.
13772         * modules/locale (Depends-on, Makefile.am): Likewise.
13773         * modules/math (Depends-on, Makefile.am): Likewise.
13774         * modules/search (Depends-on, Makefile.am): Likewise.
13775         * modules/signal (Depends-on, Makefile.am): Likewise.
13776         * modules/spawn (Depends-on, Makefile.am): Likewise.
13777         * modules/stdlib (Depends-on, Makefile.am): Likewise.
13778         * modules/string (Depends-on, Makefile.am): Likewise.
13779         * modules/strings (Depends-on, Makefile.am): Likewise.
13780         * modules/sys_file (Depends-on, Makefile.am): Likewise.
13781         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
13782         * modules/sys_select (Depends-on, Makefile.am): Likewise.
13783         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
13784         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
13785         * modules/sys_times (Depends-on, Makefile.am): Likewise.
13786         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
13787         * modules/wchar (Depends-on, Makefile.am): Likewise.
13788         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
13789         should be poisoned.
13790         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
13791         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
13792         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
13793         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13794         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
13795         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13796         * m4/math_h.m4 (gl_MATH_H): Likewise.
13797         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13798         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13799         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13800         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
13801         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
13802         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
13803         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13804         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
13805         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
13806         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13807         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13808         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13809         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13810         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13811         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13812         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13813         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
13814         GL_LINK_WARNING.
13815         * lib/ctype.in.h: Likewise.
13816         * lib/dirent.in.h: Likewise.
13817         * lib/fcntl.in.h: Likewise.
13818         * lib/inttypes.in.h: Likewise.
13819         * lib/langinfo.in.h: Likewise.
13820         * lib/locale.in.h: Likewise.
13821         * lib/math.in.h: Likewise.
13822         * lib/search.in.h: Likewise.
13823         * lib/signal.in.h: Likewise.
13824         * lib/spawn.in.h: Likewise.
13825         * lib/stdio.in.h: Likewise.
13826         * lib/stdlib.in.h: Likewise.
13827         * lib/string.in.h: Likewise.
13828         * lib/strings.in.h: Likewise.
13829         * lib/sys_file.in.h: Likewise.
13830         * lib/sys_ioctl.in.h: Likewise.
13831         * lib/sys_select.in.h: Likewise.
13832         * lib/sys_socket.in.h: Likewise.
13833         * lib/sys_stat.in.h: Likewise.
13834         * lib/sys_times.in.h: Likewise.
13835         * lib/sys_utsname.in.h: Likewise.
13836         * lib/unistd.in.h: Likewise.
13837         * lib/wchar.in.h: Likewise.
13838
13839 2010-01-20  Bruno Haible  <bruno@clisp.org>
13840
13841         Avoid duplicate -lm.
13842         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
13843         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
13844         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
13845         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
13846         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
13847         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
13848         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
13849         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
13850         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
13851         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
13852         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
13853         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13854         Reported by Paolo Bonzini.
13855
13856 2010-01-19  Bruno Haible  <bruno@clisp.org>
13857
13858         langinfo, nl_langinfo: Relicense under LGPLv2+.
13859         * modules/langinfo (License): Change to LGPLv2+.
13860         * modules/nl_langinfo (License): Likewise.
13861         Patch by David Lutterkort <lutter@redhat.com>.
13862
13863 2010-01-19  Bruno Haible  <bruno@clisp.org>
13864
13865         Avoid compilation error with cc on OSF/1 5.1.
13866         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
13867         statement, not before.
13868         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13869
13870 2010-01-18  Bruno Haible  <bruno@clisp.org>
13871
13872         Avoid a link error due to the __printf__ symbol.
13873         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
13874         and 2.6.x.
13875         (__format__, __printf__): Remove definitions.
13876         * lib/argp-fmtstream.h: Likewise.
13877         * lib/argp.h: Likewise.
13878         * lib/error.h: Likewise.
13879         * lib/vasnprintf.h: Likewise.
13880         * lib/xprintf.h: Likewise.
13881         * lib/xvasprintf.h: Likewise.
13882         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13883
13884 2010-01-18  Bruno Haible  <bruno@clisp.org>
13885
13886         Tests for module 'tanl'.
13887         * modules/tanl-tests: New file.
13888         * tests/test-tanl.c: New file.
13889
13890         Tests for module 'sqrtl'.
13891         * modules/sqrtl-tests: New file.
13892         * tests/test-sqrtl.c: New file.
13893
13894         Tests for module 'sinl'.
13895         * modules/sinl-tests: New file.
13896         * tests/test-sinl.c: New file.
13897
13898         Tests for module 'logl'.
13899         * modules/logl-tests: New file.
13900         * tests/test-logl.c: New file.
13901
13902         Tests for module 'expl'.
13903         * modules/expl-tests: New file.
13904         * tests/test-expl.c: New file.
13905
13906         Tests for module 'cosl'.
13907         * modules/cosl-tests: New file.
13908         * tests/test-cosl.c: New file.
13909
13910         Tests for module 'atanl'.
13911         * modules/atanl-tests: New file.
13912         * tests/test-atanl.c: New file.
13913
13914         Tests for module 'asinl'.
13915         * modules/asinl-tests: New file.
13916         * tests/test-asinl.c: New file.
13917
13918         Tests for module 'acosl'.
13919         * modules/acosl-tests: New file.
13920         * tests/test-acosl.c: New file.
13921
13922         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
13923         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
13924         tanl): Use the standard gnulib idiom.
13925         * lib/cosl.c: Don't include trigl.c and sincosl.c.
13926         * lib/sinl.c: Likewise.
13927         * lib/tanl.c: Don't include trigl.c.
13928         (kernel_tanl): Make static.
13929         * lib/sincosl.c: Include trigl.h first.
13930         * lib/trigl.c: Likewise.
13931         * m4/acosl.m4: New file.
13932         * m4/asinl.m4: New file.
13933         * m4/atanl.m4: New file.
13934         * m4/cosl.m4: New file.
13935         * m4/expl.m4: New file.
13936         * m4/logl.m4: New file.
13937         * m4/sinl.m4: New file.
13938         * m4/sqrtl.m4: New file.
13939         * m4/tanl.m4: New file.
13940         * m4/mathl.m4: Remove file.
13941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
13942         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
13943         Don't initialize GNULIB_MATHL.
13944         * modules/acosl: New file.
13945         * modules/asinl: New file.
13946         * modules/atanl: New file.
13947         * modules/cosl: New file.
13948         * modules/expl: New file.
13949         * modules/logl: New file.
13950         * modules/sinl: New file.
13951         * modules/sqrtl: New file.
13952         * modules/tanl: New file.
13953         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
13954         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
13955         substitute GNULIB_MATHL.
13956         * modules/mathl: Rewritten.
13957         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
13958         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
13959         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
13960         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
13961         * doc/posix-functions/expl.texi: Mention the 'expl' module.
13962         * doc/posix-functions/logl.texi: Mention the 'logl' module.
13963         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
13964         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
13965         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
13966
13967 2010-01-18  Bruno Haible  <bruno@clisp.org>
13968
13969         sqrt: Make gl_FUNC_SQRT requirable.
13970         * m4/sqrt.m4: New file.
13971         * modules/sqrt (Files): Add it.
13972         (configure.ac): Invoke gl_FUNC_SQRT.
13973
13974 2010-01-18  Bruno Haible  <bruno@clisp.org>
13975
13976         New modules for common <math.h> functions.
13977         * m4/mathfunc.m4: New file.
13978         * modules/acos: New file.
13979         * modules/asin: New file.
13980         * modules/atan: New file.
13981         * modules/atan2: New file.
13982         * modules/cbrt: New file.
13983         * modules/copysign: New file.
13984         * modules/cos: New file.
13985         * modules/cosh: New file.
13986         * modules/erf: New file.
13987         * modules/erfc: New file.
13988         * modules/exp: New file.
13989         * modules/fabs: New file.
13990         * modules/fmod: New file.
13991         * modules/hypot: New file.
13992         * modules/j0: New file.
13993         * modules/j1: New file.
13994         * modules/jn: New file.
13995         * modules/ldexp: New file.
13996         * modules/lgamma: New file.
13997         * modules/log: New file.
13998         * modules/log10: New file.
13999         * modules/log1p: New file.
14000         * modules/logb: New file.
14001         * modules/modf: New file.
14002         * modules/nextafter: New file.
14003         * modules/pow: New file.
14004         * modules/remainder: New file.
14005         * modules/rint: New file.
14006         * modules/sin: New file.
14007         * modules/sinh: New file.
14008         * modules/sqrt: New file.
14009         * modules/tan: New file.
14010         * modules/tanh: New file.
14011         * modules/y0: New file.
14012         * modules/y1: New file.
14013         * modules/yn: New file.
14014         * doc/posix-functions/acos.texi: Mention the 'acos' module.
14015         * doc/posix-functions/asin.texi: Mention the 'asin' module.
14016         * doc/posix-functions/atan.texi: Mention the 'atan' module.
14017         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
14018         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
14019         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
14020         * doc/posix-functions/cos.texi: Mention the 'cos' module.
14021         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
14022         * doc/posix-functions/erf.texi: Mention the 'erf' module.
14023         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
14024         * doc/posix-functions/exp.texi: Mention the 'exp' module.
14025         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
14026         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
14027         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
14028         * doc/posix-functions/j0.texi: Mention the 'j0' module.
14029         * doc/posix-functions/j1.texi: Mention the 'j1' module.
14030         * doc/posix-functions/jn.texi: Mention the 'jn' module.
14031         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
14032         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
14033         * doc/posix-functions/log.texi: Mention the 'log' module.
14034         * doc/posix-functions/log10.texi: Mention the 'log10' module.
14035         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
14036         * doc/posix-functions/logb.texi: Mention the 'logb' module.
14037         * doc/posix-functions/modf.texi: Mention the 'modf' module.
14038         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
14039         * doc/posix-functions/pow.texi: Mention the 'pow' module.
14040         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
14041         * doc/posix-functions/rint.texi: Mention the 'rint' module.
14042         * doc/posix-functions/sin.texi: Mention the 'sin' module.
14043         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
14044         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
14045         * doc/posix-functions/tan.texi: Mention the 'tan' module.
14046         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
14047         * doc/posix-functions/y0.texi: Mention the 'y0' module.
14048         * doc/posix-functions/y1.texi: Mention the 'y1' module.
14049         * doc/posix-functions/yn.texi: Mention the 'yn' module.
14050
14051 2010-01-18  Jim Meyering  <meyering@redhat.com>
14052
14053         ignore-value: relax license to LGPLv2+
14054         * modules/ignore-value (License): Relax to LGPLv2+.
14055
14056         getdate: don't leak when TZ contains two or more '"'s
14057         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
14058         double quote in TZ after the first one.
14059
14060         readtokens: do not leak internal token_lengths buffer
14061         * lib/readtokens.c (readtokens): Free the local, lengths,
14062         when the supplied "token_lengths" parameter is NULL.
14063
14064 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14065
14066         Fix a couple of missing LIBTHREAD link failures on AIX.
14067         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
14068         $(LIBTHREAD).
14069         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
14070
14071         Link test-poll against INET_PTON_LIB.
14072         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
14073         for inet_pton on Solaris 10.
14074
14075 2010-01-17  Bruno Haible  <bruno@clisp.org>
14076
14077         unistdio/*-sprintf: Fix typo in module description.
14078         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
14079         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
14080         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
14081         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
14082         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
14083         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
14084         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
14085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14086
14087 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14088
14089         gnulib-tool: fix filelist for AIX, HP-UX ksh.
14090         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
14091         variables in shell case patterns, for AIX and HP-UX ksh.
14092
14093         Split large sed scripts, for HP-UX sed.
14094         * modules/stdio: Split sed scripts around 50 sed commands,
14095         to avoid HP-UX limit of 99 commands, in the near future.
14096         * modules/string: Likewise.
14097         * modules/unistd: Likewise.
14098
14099         gnulib-tool: avoid writing in the current directory.
14100         * gnulib-tool (func_emit_lib_Makefile_am)
14101         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
14102         not in the current directory, so concurrent gnulib-tool
14103         instances do not interfere.
14104
14105 2010-01-16  Jim Meyering  <meyering@redhat.com>
14106
14107         doc: update users.txt
14108         * users.txt: Add grep.
14109         (diffutils, gzip): Update URLs.
14110
14111 2010-01-12  Bruno Haible  <bruno@clisp.org>
14112
14113         posix_spawn: Avoid test failure on Cygwin.
14114         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
14115         characters.
14116         Reported by Simon Josefsson.
14117
14118 2010-01-12  Bruno Haible  <bruno@clisp.org>
14119
14120         * tests/test-cond.c (main): When skipping the test, show the reason.
14121
14122 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14123
14124         * lib/striconv.c (str_cd_iconv): Avoid if before free.
14125
14126 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14127
14128         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
14129         VC_LIST_ALWAYS_EXCLUDE_REGEX.
14130
14131 2010-01-12  Eric Blake  <ebb9@byu.net>
14132
14133         build: guarantee AS_VAR_IF
14134         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
14135         (gl_AS_VAR_IF): Move...
14136         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
14137         Reported by Simon Josefsson.
14138
14139 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14140
14141         * lib/stdio.in.h: Fix typo.
14142
14143 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14144
14145         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
14146         libgpg-error.
14147
14148 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14149
14150         * tests/test-xalloc-die.sh: Use $EXEEXT.
14151
14152 2010-01-12  Simon Josefsson  <simon@josefsson.org>
14153             Bruno Haible  <bruno@clisp.org>
14154
14155         getlogin, getlogin_r: Avoid test failure.
14156         * tests/test-getlogin.c: Include <stdio.h>.
14157         (main): Skip the test when the function fails because stdin is not a
14158         tty.
14159         * tests/test-getlogin_r.c: Include <stdio.h>.
14160         (main): Skip the test when the function fails because stdin is not a
14161         tty.
14162
14163 2010-01-11  Eric Blake  <ebb9@byu.net>
14164
14165         tests: avoid more large file warnings
14166         * tests/test-fflush.c: Avoid warning about ftell use.
14167         * tests/test-fseek.c: Avoid warning about fseek use.
14168
14169 2010-01-10  Bruno Haible  <bruno@clisp.org>
14170
14171         nproc: Work better on Linux when /proc and /sys are not mounted.
14172         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
14173         as lower bound when, on glibc/Linux systems,
14174         sysconf (_SC_NPROCESSORS_CONF) returns 1.
14175         Suggested by Pádraig Brady <P@draigbrady.com>.
14176         Reported by Dmitry V. Levin <ldv@altlinux.org>.
14177
14178         nproc: Refactor.
14179         * lib/nproc.c (num_processors_via_affinity_mask): New function,
14180         extracted from num_processors.
14181         (num_processors): Call it.
14182
14183 2010-01-11  Jim Meyering  <meyering@redhat.com>
14184
14185         utimecmp: avoid new warning from upcoming gcc-4.5.0
14186         * lib/utimecmp.c (BILLION): Define using #define rather than an
14187         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
14188
14189 2010-01-11  Eric Blake  <ebb9@byu.net>
14190
14191         math: add portability warnings for classification macros
14192         * modules/math (Depends-on): Add warn-on-use.
14193         (Makefile.am): Provide new substitutions.
14194         * m4/math_h.m4 (gl_MATH_H): Require inline.
14195         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
14196         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
14197         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
14198         implement warnings.
14199
14200         unistd: warn on use of environ without module
14201         * modules/unistd (Depends-on): Add warn-on-use.
14202         (Makefile.am): Provide new substitutions.
14203         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
14204         * lib/unistd.in.h (environ): Wrap with a warning helper function.
14205
14206         stdio: warn on suspicious uses
14207         * modules/stdio (Depends-on): Add warn-on-use.
14208         (Makefile.am): Provide new substitutions.
14209         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
14210         fseeko.
14211         * lib/stdio.in.h (gets): Always warn on use.
14212         (fseek, ftell): Adjust when warnings are issued, and honor
14213         _GL_NO_LARGE_FILES as a way to silence the warning.
14214         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
14215         any warning about large file offsets.
14216         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
14217         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
14218         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
14219         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
14220         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
14221         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
14222         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
14223         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
14224
14225         warn-on-use: new module
14226         * modules/warn-on-use: New file.
14227         * build-aux/warn-on-use.h: Likewise.
14228         * m4/warn-on-use.m4: Likewise.
14229         * MODULES.html.sh (Support for building): Mention it.
14230
14231 2010-01-10  Bruno Haible  <bruno@clisp.org>
14232
14233         Tests for module 'unistr/u32-strdup'.
14234         * modules/unistr/u32-strdup-tests: New file.
14235         * tests/unistr/test-u32-strdup.c: New file.
14236
14237         Tests for module 'unistr/u16-strdup'.
14238         * modules/unistr/u16-strdup-tests: New file.
14239         * tests/unistr/test-u16-strdup.c: New file.
14240
14241         Tests for module 'unistr/u8-strdup'.
14242         * modules/unistr/u8-strdup-tests: New file.
14243         * tests/unistr/test-u8-strdup.c: New file.
14244         * tests/unistr/test-strdup.h: New file.
14245
14246         Tests for module 'unistr/u32-strncmp'.
14247         * modules/unistr/u32-strncmp-tests: New file.
14248         * tests/unistr/test-u32-strncmp.c: New file.
14249
14250         Tests for module 'unistr/u16-strncmp'.
14251         * modules/unistr/u16-strncmp-tests: New file.
14252         * tests/unistr/test-u16-strncmp.c: New file.
14253
14254         Tests for module 'unistr/u8-strncmp'.
14255         * modules/unistr/u8-strncmp-tests: New file.
14256         * tests/unistr/test-u8-strncmp.c: New file.
14257         * tests/unistr/test-strncmp.h: New file.
14258
14259         Tests for module 'unistr/u32-strcoll'.
14260         * modules/unistr/u32-strcoll-tests: New file.
14261         * tests/unistr/test-u32-strcoll.c: New file.
14262
14263         Tests for module 'unistr/u16-strcoll'.
14264         * modules/unistr/u16-strcoll-tests: New file.
14265         * tests/unistr/test-u16-strcoll.c: New file.
14266
14267         Tests for module 'unistr/u8-strcoll'.
14268         * modules/unistr/u8-strcoll-tests: New file.
14269         * tests/unistr/test-u8-strcoll.c: New file.
14270
14271         Tests for module 'unistr/u32-strcmp'.
14272         * modules/unistr/u32-strcmp-tests: New file.
14273         * tests/unistr/test-u32-strcmp.c: New file.
14274         * tests/unistr/test-u32-strcmp.h: New file.
14275
14276         Tests for module 'unistr/u16-strcmp'.
14277         * modules/unistr/u16-strcmp-tests: New file.
14278         * tests/unistr/test-u16-strcmp.c: New file.
14279         * tests/unistr/test-u16-strcmp.h: New file.
14280
14281         Tests for module 'unistr/u8-strcmp'.
14282         * modules/unistr/u8-strcmp-tests: New file.
14283         * tests/unistr/test-u8-strcmp.c: New file.
14284         * tests/unistr/test-u8-strcmp.h: New file.
14285         * tests/unistr/test-strcmp.h: New file.
14286
14287         Tests for module 'unistr/u32-strncat'.
14288         * modules/unistr/u32-strncat-tests: New file.
14289         * tests/unistr/test-u32-strncat.c: New file.
14290
14291         Tests for module 'unistr/u16-strncat'.
14292         * modules/unistr/u16-strncat-tests: New file.
14293         * tests/unistr/test-u16-strncat.c: New file.
14294
14295         Tests for module 'unistr/u8-strncat'.
14296         * modules/unistr/u8-strncat-tests: New file.
14297         * tests/unistr/test-u8-strncat.c: New file.
14298         * tests/unistr/test-strncat.h: New file.
14299
14300         Tests for module 'unistr/u32-strcat'.
14301         * modules/unistr/u32-strcat-tests: New file.
14302         * tests/unistr/test-u32-strcat.c: New file.
14303
14304         Tests for module 'unistr/u16-strcat'.
14305         * modules/unistr/u16-strcat-tests: New file.
14306         * tests/unistr/test-u16-strcat.c: New file.
14307
14308         Tests for module 'unistr/u8-strcat'.
14309         * modules/unistr/u8-strcat-tests: New file.
14310         * tests/unistr/test-u8-strcat.c: New file.
14311         * tests/unistr/test-strcat.h: New file.
14312
14313         Tests for module 'unistr/u32-stpncpy'.
14314         * modules/unistr/u32-stpncpy-tests: New file.
14315         * tests/unistr/test-u32-stpncpy.c: New file.
14316
14317         Tests for module 'unistr/u16-stpncpy'.
14318         * modules/unistr/u16-stpncpy-tests: New file.
14319         * tests/unistr/test-u16-stpncpy.c: New file.
14320
14321         Tests for module 'unistr/u8-stpncpy'.
14322         * modules/unistr/u8-stpncpy-tests: New file.
14323         * tests/unistr/test-u8-stpncpy.c: New file.
14324         * tests/unistr/test-stpncpy.h: New file.
14325
14326         Tests for module 'unistr/u32-strncpy'.
14327         * modules/unistr/u32-strncpy-tests: New file.
14328         * tests/unistr/test-u32-strncpy.c: New file.
14329
14330         Tests for module 'unistr/u16-strncpy'.
14331         * modules/unistr/u16-strncpy-tests: New file.
14332         * tests/unistr/test-u16-strncpy.c: New file.
14333
14334         Tests for module 'unistr/u8-strncpy'.
14335         * modules/unistr/u8-strncpy-tests: New file.
14336         * tests/unistr/test-u8-strncpy.c: New file.
14337         * tests/unistr/test-strncpy.h: New file.
14338
14339         Tests for module 'unistr/u32-stpcpy'.
14340         * modules/unistr/u32-stpcpy-tests: New file.
14341         * tests/unistr/test-u32-stpcpy.c: New file.
14342
14343         Tests for module 'unistr/u16-stpcpy'.
14344         * modules/unistr/u16-stpcpy-tests: New file.
14345         * tests/unistr/test-u16-stpcpy.c: New file.
14346
14347         Tests for module 'unistr/u8-stpcpy'.
14348         * modules/unistr/u8-stpcpy-tests: New file.
14349         * tests/unistr/test-u8-stpcpy.c: New file.
14350         * tests/unistr/test-stpcpy.h: New file.
14351
14352         Tests for module 'unistr/u32-strcpy'.
14353         * modules/unistr/u32-strcpy-tests: New file.
14354         * tests/unistr/test-u32-strcpy.c: New file.
14355
14356         Tests for module 'unistr/u16-strcpy'.
14357         * modules/unistr/u16-strcpy-tests: New file.
14358         * tests/unistr/test-u16-strcpy.c: New file.
14359
14360         Tests for module 'unistr/u8-strcpy'.
14361         * modules/unistr/u8-strcpy-tests: New file.
14362         * tests/unistr/test-u8-strcpy.c: New file.
14363         * tests/unistr/test-strcpy.h: New file.
14364
14365         Tests for module 'unistr/u32-strnlen'.
14366         * modules/unistr/u32-strnlen-tests: New file.
14367         * tests/unistr/test-u32-strnlen.c: New file.
14368
14369         Tests for module 'unistr/u16-strnlen'.
14370         * modules/unistr/u16-strnlen-tests: New file.
14371         * tests/unistr/test-u16-strnlen.c: New file.
14372
14373         Tests for module 'unistr/u8-strnlen'.
14374         * modules/unistr/u8-strnlen-tests: New file.
14375         * tests/unistr/test-u8-strnlen.c: New file.
14376         * tests/unistr/test-strnlen.h: New file.
14377
14378         Tests for module 'unistr/u32-strlen'.
14379         * modules/unistr/u32-strlen-tests: New file.
14380         * tests/unistr/test-u32-strlen.c: New file.
14381
14382         Tests for module 'unistr/u16-strlen'.
14383         * modules/unistr/u16-strlen-tests: New file.
14384         * tests/unistr/test-u16-strlen.c: New file.
14385
14386         Tests for module 'unistr/u8-strlen'.
14387         * modules/unistr/u8-strlen-tests: New file.
14388         * tests/unistr/test-u8-strlen.c: New file.
14389
14390         Tests for module 'unistr/u32-prev'.
14391         * modules/unistr/u32-prev-tests: New file.
14392         * tests/unistr/test-u32-prev.c: New file.
14393
14394         Tests for module 'unistr/u16-prev'.
14395         * modules/unistr/u16-prev-tests: New file.
14396         * tests/unistr/test-u16-prev.c: New file.
14397
14398         Tests for module 'unistr/u8-prev'.
14399         * modules/unistr/u8-prev-tests: New file.
14400         * tests/unistr/test-u8-prev.c: New file.
14401
14402         Tests for module 'unistr/u32-next'.
14403         * modules/unistr/u32-next-tests: New file.
14404         * tests/unistr/test-u32-next.c: New file.
14405
14406         Tests for module 'unistr/u16-next'.
14407         * modules/unistr/u16-next-tests: New file.
14408         * tests/unistr/test-u16-next.c: New file.
14409
14410         Tests for module 'unistr/u8-next'.
14411         * modules/unistr/u8-next-tests: New file.
14412         * tests/unistr/test-u8-next.c: New file.
14413
14414         Tests for module 'unistr/u32-strmbtouc'.
14415         * modules/unistr/u32-strmbtouc-tests: New file.
14416         * tests/unistr/test-u32-strmbtouc.c: New file.
14417
14418         Tests for module 'unistr/u16-strmbtouc'.
14419         * modules/unistr/u16-strmbtouc-tests: New file.
14420         * tests/unistr/test-u16-strmbtouc.c: New file.
14421
14422         Tests for module 'unistr/u8-strmbtouc'.
14423         * modules/unistr/u8-strmbtouc-tests: New file.
14424         * tests/unistr/test-u8-strmbtouc.c: New file.
14425
14426         Tests for module 'unistr/u32-strmblen'.
14427         * modules/unistr/u32-strmblen-tests: New file.
14428         * tests/unistr/test-u32-strmblen.c: New file.
14429
14430         Tests for module 'unistr/u16-strmblen'.
14431         * modules/unistr/u16-strmblen-tests: New file.
14432         * tests/unistr/test-u16-strmblen.c: New file.
14433
14434         Tests for module 'unistr/u8-strmblen'.
14435         * modules/unistr/u8-strmblen-tests: New file.
14436         * tests/unistr/test-u8-strmblen.c: New file.
14437
14438         Tests for module 'unistr/u32-cpy-alloc'.
14439         * modules/unistr/u32-cpy-alloc-tests: New file.
14440         * tests/unistr/test-u32-cpy-alloc.c: New file.
14441
14442         Tests for module 'unistr/u16-cpy-alloc'.
14443         * modules/unistr/u16-cpy-alloc-tests: New file.
14444         * tests/unistr/test-u16-cpy-alloc.c: New file.
14445
14446         Tests for module 'unistr/u8-cpy-alloc'.
14447         * modules/unistr/u8-cpy-alloc-tests: New file.
14448         * tests/unistr/test-u8-cpy-alloc.c: New file.
14449         * tests/unistr/test-cpy-alloc.h: New file.
14450
14451         Tests for module 'unistr/u32-mbsnlen'.
14452         * modules/unistr/u32-mbsnlen-tests: New file.
14453         * tests/unistr/test-u32-mbsnlen.c: New file.
14454
14455         Tests for module 'unistr/u16-mbsnlen'.
14456         * modules/unistr/u16-mbsnlen-tests: New file.
14457         * tests/unistr/test-u16-mbsnlen.c: New file.
14458
14459         Tests for module 'unistr/u8-mbsnlen'.
14460         * modules/unistr/u8-mbsnlen-tests: New file.
14461         * tests/unistr/test-u8-mbsnlen.c: New file.
14462
14463         Tests for module 'unistr/u32-chr'.
14464         * modules/unistr/u32-chr-tests: New file.
14465         * tests/unistr/test-u32-chr.c: New file.
14466
14467         Tests for module 'unistr/u16-chr'.
14468         * modules/unistr/u16-chr-tests: New file.
14469         * tests/unistr/test-u16-chr.c: New file.
14470
14471         Tests for module 'unistr/u8-chr'.
14472         * modules/unistr/u8-chr-tests: New file.
14473         * tests/unistr/test-u8-chr.c: New file.
14474         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
14475
14476         Tests for module 'unistr/u32-cmp2'.
14477         * modules/unistr/u32-cmp2-tests: New file.
14478         * tests/unistr/test-u32-cmp2.c: New file.
14479
14480         Tests for module 'unistr/u16-cmp2'.
14481         * modules/unistr/u16-cmp2-tests: New file.
14482         * tests/unistr/test-u16-cmp2.c: New file.
14483
14484         Tests for module 'unistr/u8-cmp2'.
14485         * modules/unistr/u8-cmp2-tests: New file.
14486         * tests/unistr/test-u8-cmp2.c: New file.
14487         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
14488
14489         Tests for module 'unistr/u32-cmp'.
14490         * modules/unistr/u32-cmp-tests: New file.
14491         * tests/unistr/test-u32-cmp.c: New file.
14492
14493         Tests for module 'unistr/u16-cmp'.
14494         * modules/unistr/u16-cmp-tests: New file.
14495         * tests/unistr/test-u16-cmp.c: New file.
14496
14497         Tests for module 'unistr/u8-cmp'.
14498         * modules/unistr/u8-cmp-tests: New file.
14499         * tests/unistr/test-u8-cmp.c: New file.
14500         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
14501
14502         Tests for module 'unistr/u32-set'.
14503         * modules/unistr/u32-set-tests: New file.
14504         * tests/unistr/test-u32-set.c: New file.
14505
14506         Tests for module 'unistr/u16-set'.
14507         * modules/unistr/u16-set-tests: New file.
14508         * tests/unistr/test-u16-set.c: New file.
14509
14510         Tests for module 'unistr/u8-set'.
14511         * modules/unistr/u8-set-tests: New file.
14512         * tests/unistr/test-u8-set.c: New file.
14513         * tests/unistr/test-set.h: New file.
14514
14515         Tests for module 'unistr/u32-move'.
14516         * modules/unistr/u32-move-tests: New file.
14517         * tests/unistr/test-u32-move.c: New file.
14518
14519         Tests for module 'unistr/u16-move'.
14520         * modules/unistr/u16-move-tests: New file.
14521         * tests/unistr/test-u16-move.c: New file.
14522
14523         Tests for module 'unistr/u8-move'.
14524         * modules/unistr/u8-move-tests: New file.
14525         * tests/unistr/test-u8-move.c: New file.
14526         * tests/unistr/test-move.h: New file.
14527
14528         Tests for module 'unistr/u32-cpy'.
14529         * modules/unistr/u32-cpy-tests: New file.
14530         * tests/unistr/test-u32-cpy.c: New file.
14531
14532         Tests for module 'unistr/u16-cpy'.
14533         * modules/unistr/u16-cpy-tests: New file.
14534         * tests/unistr/test-u16-cpy.c: New file.
14535
14536         Tests for module 'unistr/u8-cpy'.
14537         * modules/unistr/u8-cpy-tests: New file.
14538         * tests/unistr/test-u8-cpy.c: New file.
14539         * tests/unistr/test-cpy.h: New file.
14540
14541 2010-01-09  Bruno Haible  <bruno@clisp.org>
14542
14543         Tests for module 'unistr/u32-uctomb'.
14544         * modules/unistr/u32-uctomb-tests: New file.
14545         * tests/unistr/test-u32-uctomb.c: New file.
14546
14547         Tests for module 'unistr/u16-uctomb'.
14548         * modules/unistr/u16-uctomb-tests: New file.
14549         * tests/unistr/test-u16-uctomb.c: New file.
14550
14551         Tests for module 'unistr/u8-uctomb'.
14552         * modules/unistr/u8-uctomb-tests: New file.
14553         * tests/unistr/test-u8-uctomb.c: New file.
14554
14555         Tests for module 'unistr/u32-mbtoucr'.
14556         * modules/unistr/u32-mbtoucr-tests: New file.
14557         * tests/unistr/test-u32-mbtoucr.c: New file.
14558
14559         Tests for module 'unistr/u16-mbtoucr'.
14560         * modules/unistr/u16-mbtoucr-tests: New file.
14561         * tests/unistr/test-u16-mbtoucr.c: New file.
14562
14563         Tests for module 'unistr/u8-mbtoucr'.
14564         * modules/unistr/u8-mbtoucr-tests: New file.
14565         * tests/unistr/test-u8-mbtoucr.c: New file.
14566
14567         Tests for module 'unistr/u32-mbtouc'.
14568         * modules/unistr/u32-mbtouc-tests: New file.
14569         * tests/unistr/test-u32-mbtouc.c: New file.
14570
14571         Tests for module 'unistr/u16-mbtouc'.
14572         * modules/unistr/u16-mbtouc-tests: New file.
14573         * tests/unistr/test-u16-mbtouc.c: New file.
14574
14575         Tests for module 'unistr/u8-mbtouc'.
14576         * modules/unistr/u8-mbtouc-tests: New file.
14577         * tests/unistr/test-u8-mbtouc.c: New file.
14578
14579         Tests for module 'unistr/u32-mbtouc-unsafe'.
14580         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
14581         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
14582         * tests/unistr/test-u32-mbtouc.h: New file.
14583
14584         Tests for module 'unistr/u16-mbtouc-unsafe'.
14585         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
14586         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
14587         * tests/unistr/test-u16-mbtouc.h: New file.
14588
14589         Tests for module 'unistr/u8-mbtouc-unsafe'.
14590         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
14591         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
14592         * tests/unistr/test-u8-mbtouc.h: New file.
14593
14594         Tests for module 'unistr/u32-mblen'.
14595         * modules/unistr/u32-mblen-tests: New file.
14596         * tests/unistr/test-u32-mblen.c: New file.
14597
14598         Tests for module 'unistr/u16-mblen'.
14599         * modules/unistr/u16-mblen-tests: New file.
14600         * tests/unistr/test-u16-mblen.c: New file.
14601
14602         Tests for module 'unistr/u8-mblen'.
14603         * modules/unistr/u8-mblen-tests: New file.
14604         * tests/unistr/test-u8-mblen.c: New file.
14605
14606         Tests for module 'unistr/u32-to-u16'.
14607         * modules/unistr/u32-to-u16-tests: New file.
14608         * tests/unistr/test-u32-to-u16.c: New file.
14609
14610         Tests for module 'unistr/u32-to-u8'.
14611         * modules/unistr/u32-to-u8-tests: New file.
14612         * tests/unistr/test-u32-to-u8.c: New file.
14613
14614         Tests for module 'unistr/u16-to-u32'.
14615         * modules/unistr/u16-to-u32-tests: New file.
14616         * tests/unistr/test-u16-to-u32.c: New file.
14617
14618         Tests for module 'unistr/u16-to-u8'.
14619         * modules/unistr/u16-to-u8-tests: New file.
14620         * tests/unistr/test-u16-to-u8.c: New file.
14621
14622         Tests for module 'unistr/u8-to-u32'.
14623         * modules/unistr/u8-to-u32-tests: New file.
14624         * tests/unistr/test-u8-to-u32.c: New file.
14625
14626         Tests for module 'unistr/u8-to-u16'.
14627         * modules/unistr/u8-to-u16-tests: New file.
14628         * tests/unistr/test-u8-to-u16.c: New file.
14629
14630         Tests for module 'unistr/u32-check'.
14631         * modules/unistr/u32-check-tests: New file.
14632         * tests/unistr/test-u32-check.c: New file.
14633
14634         Tests for module 'unistr/u16-check'.
14635         * modules/unistr/u16-check-tests: New file.
14636         * tests/unistr/test-u16-check.c: New file.
14637
14638         Tests for module 'unistr/u8-check'.
14639         * modules/unistr/u8-check-tests: New file.
14640         * tests/unistr/test-u8-check.c: New file.
14641
14642         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
14643         (category_equals): New function.
14644         (main): Add more tests.
14645         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
14646
14647         * tests/unictype/test-bidi_byname.c (main): Add more tests.
14648
14649 2010-01-10  Bruno Haible  <bruno@clisp.org>
14650
14651         unistr/u*-strcoll: Try harder to distinguish different strings.
14652         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
14653         compare s1 and s2 to see if they are different.
14654
14655 2010-01-10  Bruno Haible  <bruno@clisp.org>
14656
14657         unistr/u*-stpncpy: Fix the return value.
14658         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
14659         description of the return value consistent with stpncpy in glibc.
14660         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
14661         written non-NUL unit.
14662
14663 2010-01-10  Bruno Haible  <bruno@clisp.org>
14664
14665         unistr/u*-next: Add missing dependencies.
14666         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
14667         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
14668         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
14669
14670 2010-01-10  Bruno Haible  <bruno@clisp.org>
14671
14672         unistr/u8-mbsnlen: Fix return value for incomplete character.
14673         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
14674         u8_mblen.
14675         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
14676         Remove unistr/u8-mblen.
14677         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
14678         u16_mblen.
14679         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
14680         Remove unistr/u16-mblen.
14681
14682 2010-01-10  Bruno Haible  <bruno@clisp.org>
14683
14684         wchar: Fix compilation error when <wchar.h> is used from coreutils.
14685         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
14686         Reported by Brian Gough <bjg@gnu.org> and
14687         Chris Clayton <chris2553@googlemail.com> via
14688         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
14689
14690 2010-01-09  Bruno Haible  <bruno@clisp.org>
14691
14692         unistr/u16-to-u32: Reject invalid input.
14693         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
14694         u16_mbtouc.
14695         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
14696         Remove unistr/u16-mbtouc.
14697
14698         unistr/u16-to-u8: Reject invalid input.
14699         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
14700         u16_mbtouc.
14701         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
14702         Remove unistr/u16-mbtouc.
14703
14704         unistr/u8-to-u32: Reject invalid input.
14705         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
14706         u8_mbtouc.
14707         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
14708         Remove unistr/u8-mbtouc.
14709
14710         unistr/u8-to-u16: Reject invalid input.
14711         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
14712         u8_mbtouc.
14713         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
14714         Remove unistr/u8-mbtouc.
14715
14716 2010-01-09  Bruno Haible  <bruno@clisp.org>
14717
14718         Tests for module 'getlogin'.
14719         * modules/getlogin-tests: New file.
14720         * tests/test-getlogin.c: New file.
14721
14722         New module 'getlogin'.
14723         * lib/unistd.in.h (getlogin): New declaration.
14724         * lib/getlogin.c: New file.
14725         * m4/getlogin.m4: New file.
14726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
14727         HAVE_GETLOGIN.
14728         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
14729         HAVE_GETLOGIN.
14730         * modules/getlogin: New file.
14731         * doc/posix-functions/getlogin.texi: Mention the new module.
14732         Reported by John W. Eaton <jwe@gnu.org>.
14733
14734 2010-01-09  Bruno Haible  <bruno@clisp.org>
14735
14736         getlogin_r: Support for native Windows.
14737         * lib/getlogin_r.c: Include <windows.h>
14738         (getlogin_r): Implement for native Windows.
14739         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
14740         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
14741         via John W. Eaton <jwe@gnu.org>.
14742
14743 2010-01-09  Bruno Haible  <bruno@clisp.org>
14744
14745         getlogin_r: Small fixes.
14746         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
14747         succeeds.
14748         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
14749         before testing whether getlogin_r is declared. No need to set
14750         HAVE_DECL_GETLOGIN_R to 1.
14751         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
14752
14753 2010-01-09  Bruno Haible  <bruno@clisp.org>
14754
14755         * lib/unistd.in.h (getlogin_r): Add comment.
14756
14757 2010-01-09  Bruno Haible  <bruno@clisp.org>
14758
14759         Tests for module 'getlogin_r'.
14760         * modules/getlogin_r-tests: New file.
14761         * tests/test-getlogin_r.c: New file.
14762
14763 2010-01-09  Jim Meyering  <meyering@redhat.com>
14764
14765         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
14766         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
14767         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
14768
14769 2010-01-08  Simon Josefsson  <simon@josefsson.org>
14770
14771         * lib/dup2.c (rpl_dup2): Improve comment.
14772
14773 2010-01-08  Eric Blake  <ebb9@byu.net>
14774
14775         maint.mk: allow packages to add makefile @@ exceptions
14776         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
14777         (sc_makefile_check): Rename...
14778         (sc_makefile_at_at_check): ...to this, and use hook.
14779
14780         dup2: work around mingw bug
14781         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
14782         Reported by Simon Josefsson.
14783
14784 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
14785
14786         glob: Fix C++ compilation.
14787         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
14788         C++.
14789
14790 2010-01-07  Bruno Haible  <bruno@clisp.org>
14791
14792         Fix indentation of wctype.in.h, broken since 2007-01-06.
14793         * lib/wctype.in.h: Fix indentation of preprocessor directives.
14794
14795 2010-01-07  Bruno Haible  <bruno@clisp.org>
14796
14797         mbslen: Avoid collision with system function.
14798         * lib/string.in.h [MirBSD]: Include <wchar.h>.
14799         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
14800         * m4/mbslen.m4: New file.
14801         * modules/mbslen (Files): Add it.
14802         (configure.ac): Invoke gl_MBSLEN.
14803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
14804         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
14805         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
14806         via Ian Beckwith <ianb@erislabs.net>.
14807
14808 2010-01-07  Bruno Haible  <bruno@clisp.org>
14809
14810         dirent: Document the last fix.
14811         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
14812
14813 2010-01-07  Bruno Haible  <bruno@clisp.org>
14814
14815         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
14816         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
14817         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
14818         va_list are defined.
14819         * doc/posix-headers/stdio.texi: Document the bug of missing types.
14820         Reported by Eric Blake.
14821
14822 2010-01-07  Bruno Haible  <bruno@clisp.org>
14823
14824         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
14825         * modules/xlist (Depends-on): Add 'list',
14826         * modules/xoset (Depends-on): Add 'oset'.
14827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14828
14829 2010-01-07  Bruno Haible  <bruno@clisp.org>
14830
14831         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
14832         * doc/posix-functions/strncasecmp.texi: Likewise.
14833
14834 2010-01-07  Bruno Haible  <bruno@clisp.org>
14835
14836         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
14837
14838 2010-01-07  John W. Eaton  <jwe@octave.org>
14839
14840         wctype: allow C++ use
14841         * lib/wctype.in.h: Add extern "C" block for C++.
14842
14843 2010-01-06  Eric Blake  <ebb9@byu.net>
14844
14845         maint.mk: detect incorrect GFDL usage
14846         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
14847
14848 2010-01-06  Jim Meyering  <meyering@redhat.com>
14849         and Eric Blake  <ebb9@byu.net>
14850
14851         maint.mk: ignore multi-line copyright in NEWS
14852         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
14853
14854 2010-01-06  Eric Blake  <ebb9@byu.net>
14855
14856         select: add missing dependency
14857         * modules/select-tests (Depends-on): Move sockets dependency...
14858         * modules/select (Depends-on): ...here.
14859         Reported by Ian Beckwith.
14860
14861         doc: regenerate INSTALL
14862         * doc/INSTALL: Reflect recent autoconf update.
14863         * doc/INSTALL.ISO: Likewise.
14864         * doc/INSTALL.UTF-8: Likewise.
14865
14866         pread: fix compilation on glibc
14867         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
14868         Reported by Ralf Wildenhues.
14869
14870         dirent: fix test failure
14871         * lib/dirent.in.h (includes): Guarantee ino_t.
14872         Reported by Ralf Wildenhues.
14873
14874 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
14875
14876         linkat, renameat: avoid bad free
14877         * lib/at-func2.c (at_func2): Fix typo.
14878         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
14879
14880 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14881
14882         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
14883         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
14884         to avoid failure of symlink test later.
14885
14886 2010-01-06  Eric Blake  <ebb9@byu.net>
14887
14888         stdio, unistd: guarantee ssize_t
14889         * lib/unistd.in.h (includes): Ensure that types required by POSIX
14890         2008 are exposed when needed.
14891         * lib/stdio.in.h (includes): Likewise.
14892         Reported by Ralf Wildenhues.
14893
14894 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
14895
14896         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
14897         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
14898         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
14899
14900 2010-01-06  Jim Meyering  <meyering@redhat.com>
14901
14902         readtokens: this module *does* require xalloc.h
14903         It uses only functions that were omitted by the old syntax-check rule.
14904         * lib/readtokens.c: Include "xalloc.h" once again.
14905         * modules/readtokens (Depends-on): Add xalloc.
14906         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
14907
14908 2010-01-05  Eric Blake  <ebb9@byu.net>
14909
14910         maint: support 'make announcement' from a VPATH build
14911         * top/maint.mk (announcement): Look for correct NEWS file.
14912
14913 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
14914
14915         utimens (fdutimens): ignore a negative FD, per contract
14916         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
14917         when we have a valid file descriptor.  Otherwise, using a brand
14918         new glibc (with just-patched futimens that now fails with EBADF)
14919         would cause this function to fail with ENOSYS.
14920         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
14921         See also http://bugzilla.redhat.com/552320.
14922
14923 2010-01-05  Eric Blake  <ebb9@byu.net>
14924
14925         strcase: document what it provides
14926         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
14927         gnulib module.
14928         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
14929         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
14930
14931 2010-01-05  Jim Meyering  <meyering@redhat.com>
14932
14933         maint: remove useless inclusions of "xalloc.h"
14934         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
14935         * lib/readtokens.c: Likewise.
14936         * lib/same.c: Likewise.
14937         * modules/getloadavg (Depends-on): Remove xalloc.
14938         * modules/readtokens: Likewise.
14939         * modules/same: Likewise.
14940
14941         maint.mk: include 4 more function names in alloca.h-checking regexp
14942         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
14943         regexp.  Before, we would give a false-positive (saying alloca.h
14944         is included unnecessarily) when the only uses involved omitted symbols.
14945
14946         xalloc.h: use consistent formatting
14947         * lib/xalloc.h: Move declarations to start in the first column.
14948
14949 2010-01-05  Eric Blake  <ebb9@byu.net>
14950
14951         mkdir: avoid xalloc
14952         * lib/mkdir.c (includes): Drop unused header.
14953         Reported by John W. Eaton.
14954
14955 2010-01-04  Jim Meyering  <meyering@redhat.com>
14956
14957         nl_langinfo: avoid configure-time syntax error
14958         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
14959         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
14960         the empty string.  Don't let that provoke a shell syntax error.
14961
14962         regcomp, regexec, fnmatch: avoid array bounds read error
14963         * lib/regcomp.c (build_equiv_class): From glibc:
14964         Use only the low 24 bits of a findidx return value as an index
14965         into the weights array.  Patch by Ulrich Drepper:
14966         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
14967         * lib/regexec.c (check_node_accept_bytes): Likewise.
14968         * lib/fnmatch_loop.c (FCT): Likewise.
14969
14970         regcomp: skip collseq lookup when there are no rules
14971         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
14972         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
14973
14974         regcomp: recognize ill-formed { } expressions
14975         * lib/regcomp.c (parse_dup_op): From glibc:
14976         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
14977
14978         regcomp: fix typo in comment
14979         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
14980         s/satisfy/satisfies/.
14981
14982         regcomp: sync from glibc: remove dead store
14983         * lib/regcomp.c (duplicate_node_closure): Remove useless
14984         search_duplicated_node call and dead store.
14985
14986         regcomp: sync from glibc; always use nl_langinfo
14987         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
14988         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
14989         * modules/regex (Depends-on): Add nl_langinfo.
14990
14991 2010-01-04  Eric Blake  <ebb9@byu.net>
14992
14993         fdopendir: fix configure test
14994         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
14995
14996 2010-01-01  Bruno Haible  <bruno@clisp.org>
14997
14998         wchar: Remove unused configure check.
14999         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
15000
15001 2010-01-01  Eric Blake  <ebb9@byu.net>
15002
15003         headers: make check of system header explicit
15004         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
15005         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
15006         ourselves.
15007         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15008         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15009         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
15010         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
15011         internals.
15012         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
15013         missing.
15014         Suggested by Bruno Haible.
15015
15016 2010-01-01  Jim Meyering  <meyering@redhat.com>
15017
15018         ChangeLog: tweak to eliminate unnecessary copyright line
15019         * ChangeLog: Remove a copyright line that was mistakenly updated
15020         by today's update-copyright run.  Reported by Eric Blake.
15021
15022         test-update-copyright: don't let envvar setting cause test failure
15023         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
15024
15025 2010-01-01  Bruno Haible  <bruno@clisp.org>
15026
15027         localename: Avoid gcc warning.
15028         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
15029         function if it is not used.
15030
15031 2010-01-01  Jim Meyering  <meyering@redhat.com>
15032
15033         update nearly all FSF copyright year lists to include 2010
15034         Use the same procedure as for 2009, outlined in
15035         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
15036
15037         version-etc: set COPYRIGHT_YEAR to 2010
15038         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
15039
15040 2009-12-31  Eric Blake  <ebb9@byu.net>
15041
15042         doc: correct availability of cygwin 1.5.x getopt
15043         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
15044         variables.
15045         * doc/posix-functions/opterr.texi (opterr): Likewise.
15046         * doc/posix-functions/optind.texi (optind): Likewise.
15047         * doc/posix-functions/optopt.texi (optopt): Likewise.
15048         * doc/posix-functions/tzname.texi (tzname): Likewise.
15049
15050         openat: update maintainer
15051         * modules/openat (Maintainer): Add myself.
15052
15053         utimens: avoid shadowing warning
15054         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
15055         buffers into one, to avoid shadowing, as well as avoiding a
15056         redundant stat.
15057         Reported by Jim Meyering.
15058
15059         test-dup2: avoid compiler warning
15060         * tests/test-dup2.c (is_inheritable): Only define if used.
15061
15062 2010-01-01  Bruno Haible  <bruno@clisp.org>
15063
15064         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
15065         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
15066         defined, use wctomb instead of wcrtomb.
15067
15068 2010-01-01  Bruno Haible  <bruno@clisp.org>
15069
15070         iconv: Reject native Solaris iconv.
15071         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
15072         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
15073
15074 2009-12-31  Bruno Haible  <bruno@clisp.org>
15075
15076         * tests/test-signal.c (main): Remove test of 'SIG'.
15077
15078 2009-12-31  Bruno Haible  <bruno@clisp.org>
15079
15080         spawn: Fix incomplete fix.
15081         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
15082         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
15083         warnings for GNULIB_POSIXCHECK again.
15084         Reported by Eric Blake.
15085
15086 2009-12-31  Bruno Haible  <bruno@clisp.org>
15087
15088         Avoid namespace pollution on glibc systems.
15089         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
15090         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
15091         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
15092         glibc systems.
15093
15094 2009-12-31  Bruno Haible  <bruno@clisp.org>
15095
15096         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
15097         (gl_REPLACE_WCHAR_H): Turn into a no-op.
15098         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
15099         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15100         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15101         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15102         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15103
15104 2009-12-31  Bruno Haible  <bruno@clisp.org>
15105
15106         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15107         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
15108         afterwards.
15109
15110 2009-12-31  Bruno Haible  <bruno@clisp.org>
15111
15112         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
15113         SYS_UTSNAME_H.
15114
15115 2009-12-31  Bruno Haible  <bruno@clisp.org>
15116
15117         spawn: Fix misapplied patch.
15118         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
15119         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
15120         warnings for GNULIB_POSIXCHECK.
15121
15122 2009-12-31  Bruno Haible  <bruno@clisp.org>
15123
15124         times: Update after sys_times changed.
15125         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
15126         * modules/times (Files): Add it.
15127         (configure.ac): Invoke gl_FUNC_TIMES.
15128
15129 2009-12-31  Bruno Haible  <bruno@clisp.org>
15130
15131         Use AC_C_INLINE where necessary.
15132         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
15133         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
15134         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
15135         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
15136         * m4/mbfile.m4 (gl_MBFILE): Likewise.
15137         * m4/mbiter.m4 (gl_MBITER): Likewise.
15138         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15139         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15140         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
15141         * modules/u64 (configure.ac): Likewise.
15142
15143 2009-12-31  Bruno Haible  <bruno@clisp.org>
15144
15145         Use AC_C_INLINE instead of module 'inline' where possible.
15146         * modules/inline (Description): Clarify purpose.
15147         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
15148         * modules/count-one-bits (Depends-on): Remove inline.
15149         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
15150         * modules/openat (Depends-on): Remove inline.
15151         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
15152         instead of depending on module 'inline'.
15153         * modules/filevercmp (Depends-on, configure.ac): Likewise.
15154         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
15155         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
15156         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
15157         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
15158         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
15159         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
15160         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
15161         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
15162         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
15163         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
15164         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
15165         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
15166         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
15167         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
15168         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
15169         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
15170         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
15171         Likewise.
15172         * modules/unictype/property-ascii-hex-digit (Depends-on,
15173         configure.ac): Likewise.
15174         * modules/unictype/property-bidi-arabic-digit (Depends-on,
15175         configure.ac): Likewise.
15176         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
15177         configure.ac): Likewise.
15178         * modules/unictype/property-bidi-block-separator (Depends-on,
15179         configure.ac): Likewise.
15180         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
15181         configure.ac): Likewise.
15182         * modules/unictype/property-bidi-common-separator (Depends-on,
15183         configure.ac): Likewise.
15184         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
15185         Likewise.
15186         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
15187         configure.ac): Likewise.
15188         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
15189         configure.ac): Likewise.
15190         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
15191         configure.ac): Likewise.
15192         * modules/unictype/property-bidi-european-digit (Depends-on,
15193         configure.ac): Likewise.
15194         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
15195         configure.ac): Likewise.
15196         * modules/unictype/property-bidi-left-to-right (Depends-on,
15197         configure.ac): Likewise.
15198         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
15199         configure.ac): Likewise.
15200         * modules/unictype/property-bidi-other-neutral (Depends-on,
15201         configure.ac): Likewise.
15202         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
15203         Likewise.
15204         * modules/unictype/property-bidi-segment-separator (Depends-on,
15205         configure.ac): Likewise.
15206         * modules/unictype/property-bidi-whitespace (Depends-on,
15207         configure.ac): Likewise.
15208         * modules/unictype/property-combining (Depends-on, configure.ac):
15209         Likewise.
15210         * modules/unictype/property-composite (Depends-on, configure.ac):
15211         Likewise.
15212         * modules/unictype/property-currency-symbol (Depends-on,
15213         configure.ac): Likewise.
15214         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
15215         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
15216         Likewise.
15217         * modules/unictype/property-default-ignorable-code-point (Depends-on,
15218         configure.ac): Likewise.
15219         * modules/unictype/property-deprecated (Depends-on, configure.ac):
15220         Likewise.
15221         * modules/unictype/property-diacritic (Depends-on, configure.ac):
15222         Likewise.
15223         * modules/unictype/property-extender (Depends-on, configure.ac):
15224         Likewise.
15225         * modules/unictype/property-format-control (Depends-on, configure.ac):
15226         Likewise.
15227         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
15228         Likewise.
15229         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
15230         Likewise.
15231         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
15232         Likewise.
15233         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
15234         Likewise.
15235         * modules/unictype/property-hyphen (Depends-on, configure.ac):
15236         Likewise.
15237         * modules/unictype/property-id-continue (Depends-on, configure.ac):
15238         Likewise.
15239         * modules/unictype/property-id-start (Depends-on, configure.ac):
15240         Likewise.
15241         * modules/unictype/property-ideographic (Depends-on, configure.ac):
15242         Likewise.
15243         * modules/unictype/property-ids-binary-operator (Depends-on,
15244         configure.ac): Likewise.
15245         * modules/unictype/property-ids-trinary-operator (Depends-on,
15246         configure.ac): Likewise.
15247         * modules/unictype/property-ignorable-control (Depends-on,
15248         configure.ac): Likewise.
15249         * modules/unictype/property-iso-control (Depends-on, configure.ac):
15250         Likewise.
15251         * modules/unictype/property-join-control (Depends-on, configure.ac):
15252         Likewise.
15253         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
15254         Likewise.
15255         * modules/unictype/property-line-separator (Depends-on, configure.ac):
15256         Likewise.
15257         * modules/unictype/property-logical-order-exception (Depends-on,
15258         configure.ac): Likewise.
15259         * modules/unictype/property-lowercase (Depends-on, configure.ac):
15260         Likewise.
15261         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
15262         * modules/unictype/property-non-break (Depends-on, configure.ac):
15263         Likewise.
15264         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
15265         Likewise.
15266         * modules/unictype/property-numeric (Depends-on, configure.ac):
15267         Likewise.
15268         * modules/unictype/property-other-alphabetic (Depends-on,
15269         configure.ac): Likewise.
15270         * modules/unictype/property-other-default-ignorable-code-point
15271         (Depends-on, configure.ac): Likewise.
15272         * modules/unictype/property-other-grapheme-extend (Depends-on,
15273         configure.ac): Likewise.
15274         * modules/unictype/property-other-id-continue (Depends-on,
15275         configure.ac): Likewise.
15276         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
15277         Likewise.
15278         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
15279         Likewise.
15280         * modules/unictype/property-other-math (Depends-on, configure.ac):
15281         Likewise.
15282         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
15283         Likewise.
15284         * modules/unictype/property-paired-punctuation (Depends-on,
15285         configure.ac): Likewise.
15286         * modules/unictype/property-paragraph-separator (Depends-on,
15287         configure.ac): Likewise.
15288         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
15289         Likewise.
15290         * modules/unictype/property-pattern-white-space (Depends-on,
15291         configure.ac): Likewise.
15292         * modules/unictype/property-private-use (Depends-on, configure.ac):
15293         Likewise.
15294         * modules/unictype/property-punctuation (Depends-on, configure.ac):
15295         Likewise.
15296         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
15297         Likewise.
15298         * modules/unictype/property-radical (Depends-on, configure.ac):
15299         Likewise.
15300         * modules/unictype/property-sentence-terminal (Depends-on,
15301         configure.ac): Likewise.
15302         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
15303         Likewise.
15304         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
15305         * modules/unictype/property-terminal-punctuation (Depends-on,
15306         configure.ac): Likewise.
15307         * modules/unictype/property-titlecase (Depends-on, configure.ac):
15308         Likewise.
15309         * modules/unictype/property-unassigned-code-value (Depends-on,
15310         configure.ac): Likewise.
15311         * modules/unictype/property-unified-ideograph (Depends-on,
15312         configure.ac): Likewise.
15313         * modules/unictype/property-uppercase (Depends-on, configure.ac):
15314         Likewise.
15315         * modules/unictype/property-variation-selector (Depends-on,
15316         configure.ac): Likewise.
15317         * modules/unictype/property-white-space (Depends-on, configure.ac):
15318         Likewise.
15319         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
15320         Likewise.
15321         * modules/unictype/property-xid-start (Depends-on, configure.ac):
15322         Likewise.
15323         * modules/unictype/property-zero-width (Depends-on, configure.ac):
15324         Likewise.
15325         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
15326         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
15327         Likewise.
15328
15329 2009-12-31  Bruno Haible  <bruno@clisp.org>
15330
15331         Remove unnecessary AC_C_INLINE invocation.
15332         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
15333         since 2009-08-21.
15334
15335 2009-12-31  Jim Meyering  <meyering@redhat.com>
15336
15337         maint.mk: don't require explicit gpg_key_ID in cfg.mk
15338         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
15339         With this change, we can all remove the gpg_key_ID = ... definition
15340         from our respective cfg.mk files.
15341
15342         maint.mk: create announcement template in ~/, not in /tmp
15343         * top/maint.mk (emit_upload_commands): Adjust.
15344         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
15345         Remove temporary file, .ci-msg.
15346
15347 2009-12-31  Eric Blake  <ebb9@byu.net>
15348
15349         link-warning: always build headers with link warnings
15350         * modules/arpa_inet (Makefile.am): Always build replacement
15351         header.
15352         * modules/ctype (Makefile.am): Likewise.
15353         * modules/dirent (Makefile.am): Likewise.
15354         * modules/inttypes (Makefile.am): Likewise.
15355         * modules/langinfo (Makefile.am): Likewise.
15356         * modules/locale (Makefile.am): Likewise.
15357         * modules/spawn (Makefile.am): Likewise.
15358         * modules/sys_file (Makefile.am): Likewise.
15359         * modules/sys_ioctl (Makefile.am): Likewise.
15360         * modules/sys_select (Makefile.am): Likewise.
15361         * modules/sys_socket (Makefile.am): Likewise.
15362         * modules/sys_times (Makefile.am): Likewise.
15363         * modules/sys_utsname (Makefile.am): Likewise.
15364         * modules/sys_wait (Makefile.am): Likewise.
15365         * modules/wchar (Makefile.am): Likewise.
15366         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
15367         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
15368         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
15369         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
15370         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
15371         Likewise.
15372         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15373         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15374         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
15375         Likewise.
15376         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
15377         Likewise.
15378         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15379         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
15380         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
15381         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15382         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15383         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
15384         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
15385         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
15386         (gl_WCHAR_H_DEFAULTS): Likewise.
15387
15388 2009-12-31  Eric Blake  <ebb9@byu.net>
15389
15390         signal, spawn: use link warnings
15391         * lib/signal.in.h (sigset_t): Make unconditional.
15392         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
15393         (sigpending, sigprocmask, sigaction): Add link warnings.
15394         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
15395         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
15396         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
15397         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
15398         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
15399         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
15400         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
15401         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
15402         (posix_spawn_file_actions_destroy)
15403         (posix_spawn_file_actions_addopen)
15404         (posix_spawn_file_actions_addclose)
15405         (posix_spawn_file_actions_adddup2): Likewise.
15406         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
15407         * tests/test-signal.c (main): Enhance test.
15408
15409         spawn: improve wrapper support
15410         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
15411         (gl_SPAWN_H_DEFAULTS): New defaults.
15412         * modules/spawn (Makefile.am): Substitute them.
15413         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
15414         Only declare if missing or broken.
15415
15416         sys_times, sys_utsname: use include_next
15417         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
15418         header.
15419         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
15420         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
15421         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
15422         * modules/sys_times (Depends-on): Add include_next.
15423         (Makefile.am): Substitute additional values.
15424         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
15425         * lib/sys_times.in.h (includes): Include native header, if
15426         available.
15427         * lib/sys_utsname.in.h (includes): Likewise.
15428         * tests/test-sys_times.c (main): Enhance test.
15429
15430         fdutimensat: revert prior patch
15431         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
15432         utimens.h.
15433         Reported by Bruno Haible.
15434
15435 2009-12-30  Eric Blake  <ebb9@byu.net>
15436
15437         sys_wait: drop link-warning dependency
15438         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
15439         link-warning efforts.
15440         * lib/sys_wait.in.h: Likewise.
15441
15442         fdutimensat: remove bogus dependency
15443         * modules/fdutimensat (Depends-on): Drop inline.
15444
15445         unistd: fix typo
15446         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
15447
15448 2009-12-30  Bruno Haible  <bruno@clisp.org>
15449
15450         Fix compilation error with Solaris cc.
15451         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
15452         * lib/unicase/u16-is-invariant.c: Likewise.
15453         * lib/unicase/u32-is-invariant.c: Likewise.
15454         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
15455
15456 2009-12-30  Bruno Haible  <bruno@clisp.org>
15457
15458         Fix test crash.
15459         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
15460         locales.
15461         Reported by Simon Josefsson <simon@josefsson.org>.
15462
15463 2009-12-30  Bruno Haible  <bruno@clisp.org>
15464
15465         Fix compilation error on most platforms.
15466         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
15467         Reported by Simon Josefsson <simon@josefsson.org>
15468         and Nelson H. F. Beebe <beebe@math.utah.edu>.
15469
15470 2009-12-30  Eric Blake  <ebb9@byu.net>
15471
15472         futimens, utimensat: work around ntfs-3g bug
15473         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
15474         a ctime bug is present, and expand workaround to cover ntfs-3g.
15475         * lib/utimens.c (fdutimens, lutimens): Likewise.
15476         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
15477         (validate_timespec): Adjust return value.
15478         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
15479         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15480         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
15481
15482 2009-12-29  Eric Blake  <ebb9@byu.net>
15483
15484         link-warning: make usage consistent
15485         * modules/ctype (Depends-on): Add link-warning.
15486         (Makefile.am): Update rules accordingly.
15487         * modules/langinfo (Depends-on, Makefile.am): Likewise.
15488         * modules/locale (Depends-on, Makefile.am): Likewise.
15489         * modules/sys_file (Makefile.am): Likewise.
15490         * modules/getopt-posix (Makefile.am): Delete unused link warning
15491         efforts.
15492         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
15493         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
15494         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
15495         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
15496
15497         stdio: remove unused variables
15498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
15499         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
15500         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
15501
15502         tests: test more substitute headers
15503         * modules/ctype-tests: New file.
15504         * modules/dirent-tests: Likewise.
15505         * modules/spawn-tests: Likewise.
15506         * modules/sys_file-tests: Likewise.
15507         * modules/sys_ioctl-tests: Likewise.
15508         * modules/sys_wait-tests: Likewise.
15509         * tests/test-ctype.c: Likewise.
15510         * tests/test-dirent.c: Likewise.
15511         * tests/test-spawn.c: Likewise.
15512         * tests/test-sys_file.c: Likewise.
15513         * tests/test-sys_ioctl.c: Likewise.
15514         * tests/test-sys_wait.c: Likewise.
15515         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
15516         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
15517         whether or not flock is in use.
15518
15519         tests: remove License section from module
15520         * modules/arpa_inet-tests: Remove unneeded section.
15521         * modules/byteswap-tests: Likewise.
15522         * modules/ceilf-tests: Likewise.
15523         * modules/ceill-tests: Likewise.
15524         * modules/crypto/des-tests: Likewise.
15525         * modules/crypto/gc-arcfour-tests: Likewise.
15526         * modules/crypto/gc-arctwo-tests: Likewise.
15527         * modules/crypto/gc-des-tests: Likewise.
15528         * modules/crypto/gc-hmac-md5-tests: Likewise.
15529         * modules/crypto/gc-hmac-sha1-tests: Likewise.
15530         * modules/crypto/gc-md2-tests: Likewise.
15531         * modules/crypto/gc-md4-tests: Likewise.
15532         * modules/crypto/gc-md5-tests: Likewise.
15533         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
15534         * modules/crypto/gc-rijndael-tests: Likewise.
15535         * modules/crypto/gc-sha1-tests: Likewise.
15536         * modules/crypto/gc-tests: Likewise.
15537         * modules/crypto/md2-tests: Likewise.
15538         * modules/crypto/md4-tests: Likewise.
15539         * modules/fcntl-h-tests: Likewise.
15540         * modules/floorf-tests: Likewise.
15541         * modules/floorl-tests: Likewise.
15542         * modules/frexp-nolibm-tests: Likewise.
15543         * modules/frexp-tests: Likewise.
15544         * modules/frexpl-nolibm-tests: Likewise.
15545         * modules/frexpl-tests: Likewise.
15546         * modules/getaddrinfo-tests: Likewise.
15547         * modules/inttypes-tests: Likewise.
15548         * modules/isfinite-tests: Likewise.
15549         * modules/isinf-tests: Likewise.
15550         * modules/ldexpl-tests: Likewise.
15551         * modules/locale-tests: Likewise.
15552         * modules/math-tests: Likewise.
15553         * modules/netdb-tests: Likewise.
15554         * modules/netinet_in-tests: Likewise.
15555         * modules/printf-frexp-tests: Likewise.
15556         * modules/printf-frexpl-tests: Likewise.
15557         * modules/priv-set-tests: Likewise.
15558         * modules/random_r-tests: Likewise.
15559         * modules/round-tests: Likewise.
15560         * modules/roundf-tests: Likewise.
15561         * modules/roundl-tests: Likewise.
15562         * modules/search-tests: Likewise.
15563         * modules/select-tests: Likewise.
15564         * modules/signal-tests: Likewise.
15565         * modules/stdbool-tests: Likewise.
15566         * modules/stddef-tests: Likewise.
15567         * modules/stdint-tests: Likewise.
15568         * modules/stdio-tests: Likewise.
15569         * modules/stdlib-tests: Likewise.
15570         * modules/string-tests: Likewise.
15571         * modules/strings-tests: Likewise.
15572         * modules/sys_select-tests: Likewise.
15573         * modules/sys_socket-tests: Likewise.
15574         * modules/sys_stat-tests: Likewise.
15575         * modules/sys_time-tests: Likewise.
15576         * modules/sys_utsname-tests: Likewise.
15577         * modules/sysexits-tests: Likewise.
15578         * modules/time-tests: Likewise.
15579         * modules/trunc-tests: Likewise.
15580         * modules/truncf-tests: Likewise.
15581         * modules/truncl-tests: Likewise.
15582         * modules/tsearch-tests: Likewise.
15583         * modules/unistd-tests: Likewise.
15584         * modules/wchar-tests: Likewise.
15585         * modules/wctype-tests: Likewise.
15586
15587         tests: fix license on several tests
15588         * tests/test-des.c: Update to GPLv3+.
15589         * tests/test-flock.c: Likewise.
15590         * tests/test-fsync.c: Likewise.
15591         * tests/test-futimens.h: Likewise.
15592         * tests/test-gc-arcfour.c: Likewise.
15593         * tests/test-gc-arctwo.c: Likewise.
15594         * tests/test-gc-des.c: Likewise.
15595         * tests/test-gc-hmac-md5.c: Likewise.
15596         * tests/test-gc-hmac-sha1.c: Likewise.
15597         * tests/test-gc-md2.c: Likewise.
15598         * tests/test-gc-md4.c: Likewise.
15599         * tests/test-gc-md5.c: Likewise.
15600         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15601         * tests/test-gc-rijndael.c: Likewise.
15602         * tests/test-gc-sha1.c: Likewise.
15603         * tests/test-gc.c: Likewise.
15604         * tests/test-getcwd.c: Likewise.
15605         * tests/test-link.c: Likewise.
15606         * tests/test-link.h: Likewise.
15607         * tests/test-lutimens.h: Likewise.
15608         * tests/test-md2.c: Likewise.
15609         * tests/test-md4.c: Likewise.
15610         * tests/test-mkdir.h: Likewise.
15611         * tests/test-rename.c: Likewise.
15612         * tests/test-rename.h: Likewise.
15613         * tests/test-safe-alloc.c: Likewise.
15614         * tests/test-utimens-common.h: Likewise.
15615         * tests/test-utimens.h: Likewise.
15616
15617         maint: sync license texts
15618         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
15619         * doc/gpl-3.0.texi: Revert copyright year update.
15620         * doc/lgpl-3.0.texi: Likewise.
15621
15622 2009-12-29  Jim Meyering  <meyering@redhat.com>
15623
15624         update nearly all FSF copyright year lists to include 2009
15625         The files named by the following are exempted:
15626             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
15627               test -f "$dst" && { echo "$dst"; continue; }
15628               test -d "$dst" || continue
15629               echo "$dst"/$(basename "$src")
15630             done > exempt
15631             git ls-files tests/unictype >> exempt
15632         In the remaining files, convert to all-interval notation if
15633         - there is already at least one year interval like 2000-2003
15634         - the file is maintained by me
15635         - the file is in lib/uni*/, where that style already prevails
15636         Otherwise, use update-copyright's default.
15637
15638 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15639         and Eric Blake  <ebb9@byu.net>
15640
15641         tests: don't require debug system() to pass
15642         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
15643         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15644         * tests/test-unlink.h (test_unlink_func): Likewise.
15645         * tests/test-fstatat.c (main): ...into callers.
15646         * tests/test-lstat.c (main): Likewise.
15647         * tests/test-rmdir.c (main): Likewise.
15648         * tests/test-unlink.c (main): Likewise.
15649         * tests/test-unlinkat.c (main): Likewise.
15650         * tests/test-areadlink-with-size.c (main): Don't require a
15651         debug-only system call to pass, aiding cross-testing to mingw.
15652         * tests/test-areadlink.c (main): Likewise.
15653         * tests/test-areadlinkat-with-size.c (main): Likewise.
15654         * tests/test-areadlinkat.c (main): Likewise.
15655         * tests/test-canonicalize-lgpl.c (main): Likewise.
15656         * tests/test-canonicalize.c (main): Likewise.
15657         * tests/test-chown.c (main): Likewise.
15658         * tests/test-fchownat.c (main): Likewise.
15659         * tests/test-lchown.c (main): Likewise.
15660         * tests/test-fdutimensat.c (main): Likewise.
15661         * tests/test-futimens.c (main): Likewise.
15662         * tests/test-link.c (main): Likewise.
15663         * tests/test-linkat.c (main): Likewise.
15664         * tests/test-mkdir.c (main): Likewise.
15665         * tests/test-mkdirat.c (main): Likewise.
15666         * tests/test-mkfifo.c (main): Likewise.
15667         * tests/test-mkfifoat.c (main): Likewise.
15668         * tests/test-mknod.c (main): Likewise.
15669         * tests/test-readlink.c (main): Likewise.
15670         * tests/test-remove.c (main): Likewise.
15671         * tests/test-rename.c (main): Likewise.
15672         * tests/test-renameat.c (main): Likewise.
15673         * tests/test-symlink.c (main): Likewise.
15674         * tests/test-symlinkat.c (main): Likewise.
15675         * tests/test-utimens.c (main): Likewise.
15676         * tests/test-utimensat.c (main): Likewise.
15677
15678 2009-12-29  Simon Josefsson  <simon@josefsson.org>
15679
15680         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
15681         on $(UNUSED_PARAMETER_H) to avoid build failure.
15682
15683 2009-12-28  Jim Meyering  <meyering@redhat.com>
15684
15685         update-copyright: you may specify a max. line length other than 72
15686         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
15687
15688         maint: use consistent FSF copyright line syntax
15689         * lib/posixtm.c: Add missing comma in FSF copyright line.
15690         * lib/posixtm.h: Likewise.
15691         * lib/getugroups.c: Add missing ", Inc.".
15692
15693         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
15694         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
15695         FSF copyright line.  Remove trailing blanks.
15696
15697 2009-12-28  Eric Blake  <ebb9@byu.net>
15698
15699         test-dup2: reduce dependencies
15700         * modules/cloexec (Configure.ac): Set witness.
15701         * modules/dup2-tests (Depends-on): Drop cloexec.
15702         * tests/test-dup2.c (main): Skip portion of test if cloexec module
15703         not present.
15704         Suggested by Bruno Haible.
15705
15706 2009-12-26  Bruno Haible  <bruno@clisp.org>
15707
15708         Remove an unneeded dependency.
15709         * modules/fseterr (Depends-on): Remove dup2.
15710
15711 2009-12-26  Eric Blake  <ebb9@byu.net>
15712
15713         tests: use macros.h in more places
15714         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
15715         (ASSERT_STREAM): Provide default of stderr.
15716         * tests/test-dirent-safer.c: Include macros.h, using alternate
15717         stream for assertions.
15718         * tests/test-dup-safer.c: Likewise.
15719         * tests/test-freopen-safer.c: Likewise.
15720         * tests/test-getopt.c: Likewise.
15721         * tests/test-openat-safer.c: Likewise.
15722         * tests/test-pipe.c: Likewise.
15723         * tests/test-popen-safer.c: Likewise.
15724         * modules/dirent-safer-tests (Files): Include macros.h.
15725         * modules/unistd-safer-tests (Files): Likewise.
15726         * modules/freopen-safer-tests (Files): Likewise.
15727         * modules/getopt-posix-tests (Files): Likewise.
15728         * modules/openat-safer-tests (Files): Likewise.
15729         * modules/pipe-tests (Files): Likewise.
15730
15731 2009-12-26  Bruno Haible  <bruno@clisp.org>
15732
15733         javacomp: Portability fix.
15734         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
15735         that it also works on Solaris.
15736
15737 2009-12-26  Bruno Haible  <bruno@clisp.org>
15738
15739         localename: Fix storage allocation of gl_locale_name_thread's result.
15740         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
15741         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
15742         all platforms that have 'uselocale'.
15743         (gl_locale_name_thread_unsafe): New function, extracted from
15744         gl_locale_name_thread.
15745         (gl_locale_name_thread): Call struniq on all platforms that have
15746         'uselocale'.
15747         * tests/test-localename.c (test_locale_name_thread): Check that the
15748         resulting strings are permanently allocated.
15749         * modules/localename-tests (Depends-on): Add strdup.
15750
15751 2009-12-26  Bruno Haible  <bruno@clisp.org>
15752
15753         * tests/test-localename.c (categories): Fill in the strings.
15754
15755 2009-12-26  Jim Meyering  <meyering@redhat.com>
15756
15757         isdir: complete the removal of m4/isdir.m4
15758         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
15759
15760         isdir: clean up, since at least grep still uses it
15761         * lib/isdir.c: Include "isdir.h".
15762         (S_ISDIR): Remove now-unneeded definition.
15763         * modules/isdir (Files): Add lib/isdir.h.
15764         * lib/isdir.h: New file, with declaration.
15765         * m4/isdir.m4: Remove file -- unneeded.
15766
15767 2009-12-25  Bruno Haible  <bruno@clisp.org>
15768
15769         selinux-h: Make generated .h files standalone.
15770         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
15771         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
15772         * lib/se-selinux.in.h: Likewise.
15773         * modules/selinux-h (Depends-on): Add unused-parameter.
15774         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
15775         selinux/selinux.h and selinux/context.h.
15776         Suggested by Eric Blake.
15777
15778 2009-12-25  Bruno Haible  <bruno@clisp.org>
15779
15780         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
15781         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
15782         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
15783         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
15784         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
15785
15786 2009-12-24  Bruno Haible  <bruno@clisp.org>
15787
15788         openat: Fix warning.
15789         * lib/openat-proc.c: Include <unistd.h>.
15790
15791 2009-12-24  Bruno Haible  <bruno@clisp.org>
15792
15793         New module 'unused-parameter'.
15794         * build-aux/unused-parameter.h: New file, extracted from earlier
15795         gnulib-common.m4.
15796         * modules/unused-parameter: New file.
15797         * lib/unistr.h: Include unused-parameter.h.
15798         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
15799         _GL_UNUSED.
15800         * modules/unistr/base (Depends-on): Add unused-parameter.
15801
15802 2009-12-24  Bruno Haible  <bruno@clisp.org>
15803
15804         Add missing dependencies to 'extensions' module.
15805         * m4/extensions.m4: Add comment.
15806         * modules/accept4 (Depends-on): Add extensions.
15807         * modules/dup3 (Depends-on): Likewise.
15808         * modules/fcntl (Depends-on): Likewise.
15809         * modules/futimens (Depends-on): Likewise.
15810         * modules/mknod (Depends-on): Likewise.
15811         * modules/pipe2 (Depends-on): Likewise.
15812         * modules/stat-time (Depends-on): Likewise.
15813         * modules/strcasestr-simple (Depends-on): Likewise.
15814         * modules/strsignal (Depends-on): Likewise.
15815         * modules/utimensat (Depends-on): Likewise.
15816         * modules/localcharset (Depends-on): Likewise. Needed because of
15817         gl_FCNTL_O_FLAGS.
15818         * modules/wcrtomb (Depends-on): Likewise. Needed because of
15819         AC_TYPE_MBSTATE_T.
15820         * modules/wcsnrtombs (Depends-on): Likewise.
15821         * modules/wcsrtombs (Depends-on): Likewise.
15822
15823 2009-12-24  Bruno Haible  <bruno@clisp.org>
15824
15825         binary-io: Avoid gcc warning due to SET_BINARY.
15826         * lib/binary-io.h (SET_BINARY): Cast the result to void.
15827         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
15828
15829 2009-12-24  Bruno Haible  <bruno@clisp.org>
15830
15831         Avoid future namespace pollution on glibc systems.
15832         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
15833         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
15834         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
15835         glibc systems.
15836
15837 2009-12-24  Bruno Haible  <bruno@clisp.org>
15838
15839         Refactor common macros used in tests.
15840         * tests/macros.h: New file.
15841         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
15842         and/or <stdlib.h>, if appropriate.
15843         (ASSERT, SIZEOF): Remove macros.
15844         * tests/test-areadlink-with-size.c: Likewise.
15845         * tests/test-areadlinkat.c: Likewise.
15846         * tests/test-areadlinkat-with-size.c: Likewise.
15847         * tests/test-argmatch.c: Likewise.
15848         * tests/test-argv-iter.c: Likewise.
15849         * tests/test-array-mergesort.c: Likewise.
15850         * tests/test-array_list.c: Likewise.
15851         * tests/test-array_oset.c: Likewise.
15852         * tests/test-avltree_list.c: Likewise.
15853         * tests/test-avltree_oset.c: Likewise.
15854         * tests/test-avltreehash_list.c: Likewise.
15855         * tests/test-base64.c: Likewise.
15856         * tests/test-binary-io.c: Likewise.
15857         * tests/test-bitrotate.c: Likewise.
15858         * tests/test-btowc.c: Likewise.
15859         * tests/test-byteswap.c: Likewise.
15860         * tests/test-c-ctype.c: Likewise.
15861         * tests/test-c-stack.c: Likewise.
15862         * tests/test-c-strcasecmp.c: Likewise.
15863         * tests/test-c-strcasestr.c: Likewise.
15864         * tests/test-c-strncasecmp.c: Likewise.
15865         * tests/test-c-strstr.c: Likewise.
15866         * tests/test-canonicalize-lgpl.c: Likewise.
15867         * tests/test-canonicalize.c: Likewise.
15868         * tests/test-carray_list.c: Likewise.
15869         * tests/test-ceilf1.c: Likewise.
15870         * tests/test-ceilf2.c: Likewise.
15871         * tests/test-ceill.c: Likewise.
15872         * tests/test-chown.c: Likewise.
15873         * tests/test-cloexec.c: Likewise.
15874         * tests/test-copy-acl.c: Likewise.
15875         * tests/test-copy-file.c: Likewise.
15876         * tests/test-count-one-bits.c: Likewise.
15877         * tests/test-dprintf-posix.c: Likewise.
15878         * tests/test-dup2.c: Likewise.
15879         * tests/test-dup3.c: Likewise.
15880         * tests/test-duplocale.c: Likewise.
15881         * tests/test-fbufmode.c: Likewise.
15882         * tests/test-fchdir.c: Likewise.
15883         * tests/test-fchownat.c: Likewise.
15884         * tests/test-fcntl-safer.c: Likewise.
15885         * tests/test-fcntl.c: Likewise.
15886         * tests/test-fdopendir.c: Likewise.
15887         * tests/test-fdutimensat.c: Likewise.
15888         * tests/test-fflush2.c: Likewise.
15889         * tests/test-file-has-acl.c: Likewise.
15890         * tests/test-filevercmp.c: Likewise.
15891         * tests/test-flock.c: Likewise.
15892         * tests/test-floorf1.c: Likewise.
15893         * tests/test-floorf2.c: Likewise.
15894         * tests/test-floorl.c: Likewise.
15895         * tests/test-fnmatch.c: Likewise.
15896         * tests/test-fopen.h: Likewise.
15897         * tests/test-fpending.c: Likewise.
15898         * tests/test-fprintf-posix.c: Likewise.
15899         * tests/test-fpurge.c: Likewise.
15900         * tests/test-freadable.c: Likewise.
15901         * tests/test-freadahead.c: Likewise.
15902         * tests/test-freading.c: Likewise.
15903         * tests/test-freadptr.c: Likewise.
15904         * tests/test-freadptr2.c: Likewise.
15905         * tests/test-freadseek.c: Likewise.
15906         * tests/test-freopen.c: Likewise.
15907         * tests/test-frexp.c: Likewise.
15908         * tests/test-frexpl.c: Likewise.
15909         * tests/test-fseek.c: Likewise.
15910         * tests/test-fseeko.c: Likewise.
15911         * tests/test-fstatat.c: Likewise.
15912         * tests/test-fstrcmp.c: Likewise.
15913         * tests/test-fsync.c: Likewise.
15914         * tests/test-ftell.c: Likewise.
15915         * tests/test-ftello.c: Likewise.
15916         * tests/test-func.c: Likewise.
15917         * tests/test-futimens.c: Likewise.
15918         * tests/test-fwritable.c: Likewise.
15919         * tests/test-fwriting.c: Likewise.
15920         * tests/test-getcwd.c: Likewise.
15921         * tests/test-getdate.c: Likewise.
15922         * tests/test-getdelim.c: Likewise.
15923         * tests/test-getdtablesize.c: Likewise.
15924         * tests/test-getgroups.c: Likewise.
15925         * tests/test-getline.c: Likewise.
15926         * tests/test-getndelim2.c: Likewise.
15927         * tests/test-glob.c: Likewise.
15928         * tests/test-hash.c: Likewise.
15929         * tests/test-i-ring.c: Likewise.
15930         * tests/test-iconv-utf.c: Likewise.
15931         * tests/test-iconv.c: Likewise.
15932         * tests/test-idpriv-drop.c: Likewise.
15933         * tests/test-idpriv-droptemp.c: Likewise.
15934         * tests/test-inet_ntop.c: Likewise.
15935         * tests/test-inet_pton.c: Likewise.
15936         * tests/test-isblank.c: Likewise.
15937         * tests/test-isfinite.c: Likewise.
15938         * tests/test-isinf.c: Likewise.
15939         * tests/test-isnan.c: Likewise.
15940         * tests/test-isnand.h: Likewise.
15941         * tests/test-isnanf.h: Likewise.
15942         * tests/test-isnanl.h: Likewise.
15943         * tests/test-lchown.c: Likewise.
15944         * tests/test-ldexpl.c: Likewise.
15945         * tests/test-link.c: Likewise.
15946         * tests/test-linkat.c: Likewise.
15947         * tests/test-linked_list.c: Likewise.
15948         * tests/test-linkedhash_list.c: Likewise.
15949         * tests/test-localename.c: Likewise.
15950         * tests/test-lseek.c: Likewise.
15951         * tests/test-lstat.c: Likewise.
15952         * tests/test-mbmemcasecmp.c: Likewise.
15953         * tests/test-mbmemcasecoll.c: Likewise.
15954         * tests/test-mbrtowc.c: Likewise.
15955         * tests/test-mbscasecmp.c: Likewise.
15956         * tests/test-mbscasestr1.c: Likewise.
15957         * tests/test-mbscasestr2.c: Likewise.
15958         * tests/test-mbscasestr3.c: Likewise.
15959         * tests/test-mbscasestr4.c: Likewise.
15960         * tests/test-mbschr.c: Likewise.
15961         * tests/test-mbscspn.c: Likewise.
15962         * tests/test-mbsinit.c: Likewise.
15963         * tests/test-mbsncasecmp.c: Likewise.
15964         * tests/test-mbsnrtowcs.c: Likewise.
15965         * tests/test-mbspbrk.c: Likewise.
15966         * tests/test-mbspcasecmp.c: Likewise.
15967         * tests/test-mbsrchr.c: Likewise.
15968         * tests/test-mbsrtowcs.c: Likewise.
15969         * tests/test-mbsspn.c: Likewise.
15970         * tests/test-mbsstr1.c: Likewise.
15971         * tests/test-mbsstr2.c: Likewise.
15972         * tests/test-mbsstr3.c: Likewise.
15973         * tests/test-memchr.c: Likewise.
15974         * tests/test-memchr2.c: Likewise.
15975         * tests/test-memcmp.c: Likewise.
15976         * tests/test-memmem.c: Likewise.
15977         * tests/test-memrchr.c: Likewise.
15978         * tests/test-mkdir.c: Likewise.
15979         * tests/test-mkdirat.c: Likewise.
15980         * tests/test-mkfifo.c: Likewise.
15981         * tests/test-mkfifoat.c: Likewise.
15982         * tests/test-mknod.c: Likewise.
15983         * tests/test-nanosleep.c: Likewise.
15984         * tests/test-nl_langinfo.c: Likewise.
15985         * tests/test-obstack-printf.c: Likewise.
15986         * tests/test-open.c: Likewise.
15987         * tests/test-openat.c: Likewise.
15988         * tests/test-pipe-filter-gi1.c: Likewise.
15989         * tests/test-pipe-filter-gi2-main.c: Likewise.
15990         * tests/test-pipe-filter-ii1.c: Likewise.
15991         * tests/test-pipe-filter-ii2-main.c: Likewise.
15992         * tests/test-pipe2.c: Likewise.
15993         * tests/test-popen.h: Likewise.
15994         * tests/test-posixtm.c: Likewise.
15995         * tests/test-pread.c: Likewise.
15996         * tests/test-printf-frexp.c: Likewise.
15997         * tests/test-printf-frexpl.c: Likewise.
15998         * tests/test-printf-posix.c: Likewise.
15999         * tests/test-priv-set.c: Likewise.
16000         * tests/test-quotearg.c: Likewise.
16001         * tests/test-random_r.c: Likewise.
16002         * tests/test-rawmemchr.c: Likewise.
16003         * tests/test-rbtree_list.c: Likewise.
16004         * tests/test-rbtree_oset.c: Likewise.
16005         * tests/test-rbtreehash_list.c: Likewise.
16006         * tests/test-readlink.c: Likewise.
16007         * tests/test-remove.c: Likewise.
16008         * tests/test-rename.c: Likewise.
16009         * tests/test-renameat.c: Likewise.
16010         * tests/test-rmdir.c: Likewise.
16011         * tests/test-round1.c: Likewise.
16012         * tests/test-roundf1.c: Likewise.
16013         * tests/test-roundl.c: Likewise.
16014         * tests/test-safe-alloc.c: Likewise.
16015         * tests/test-sameacls.c: Likewise.
16016         * tests/test-set-mode-acl.c: Likewise.
16017         * tests/test-setenv.c: Likewise.
16018         * tests/test-sigaction.c: Likewise.
16019         * tests/test-signbit.c: Likewise.
16020         * tests/test-sleep.c: Likewise.
16021         * tests/test-snprintf-posix.c: Likewise.
16022         * tests/test-snprintf.c: Likewise.
16023         * tests/test-sprintf-posix.c: Likewise.
16024         * tests/test-stat-time.c: Likewise.
16025         * tests/test-stat.c: Likewise.
16026         * tests/test-strcasestr.c: Likewise.
16027         * tests/test-strchrnul.c: Likewise.
16028         * tests/test-strerror.c: Likewise.
16029         * tests/test-striconv.c: Likewise.
16030         * tests/test-striconveh.c: Likewise.
16031         * tests/test-striconveha.c: Likewise.
16032         * tests/test-strsignal.c: Likewise.
16033         * tests/test-strstr.c: Likewise.
16034         * tests/test-strtod.c: Likewise.
16035         * tests/test-strverscmp.c: Likewise.
16036         * tests/test-symlink.c: Likewise.
16037         * tests/test-symlinkat.c: Likewise.
16038         * tests/test-trunc1.c: Likewise.
16039         * tests/test-trunc2.c: Likewise.
16040         * tests/test-truncf1.c: Likewise.
16041         * tests/test-truncf2.c: Likewise.
16042         * tests/test-truncl.c: Likewise.
16043         * tests/test-uname.c: Likewise.
16044         * tests/test-unlink.c: Likewise.
16045         * tests/test-unlinkat.c: Likewise.
16046         * tests/test-unsetenv.c: Likewise.
16047         * tests/test-usleep.c: Likewise.
16048         * tests/test-utimens.c: Likewise.
16049         * tests/test-utimensat.c: Likewise.
16050         * tests/test-vasnprintf-posix.c: Likewise.
16051         * tests/test-vasnprintf-posix2.c: Likewise.
16052         * tests/test-vasnprintf.c: Likewise.
16053         * tests/test-vasprintf-posix.c: Likewise.
16054         * tests/test-vasprintf.c: Likewise.
16055         * tests/test-vdprintf-posix.c: Likewise.
16056         * tests/test-vfprintf-posix.c: Likewise.
16057         * tests/test-vprintf-posix.c: Likewise.
16058         * tests/test-vsnprintf-posix.c: Likewise.
16059         * tests/test-vsnprintf.c: Likewise.
16060         * tests/test-vsprintf-posix.c: Likewise.
16061         * tests/test-wcrtomb.c: Likewise.
16062         * tests/test-wcsnrtombs.c: Likewise.
16063         * tests/test-wcsrtombs.c: Likewise.
16064         * tests/test-wctype.c: Likewise.
16065         * tests/test-wcwidth.c: Likewise.
16066         * tests/test-xfprintf-posix.c: Likewise.
16067         * tests/test-xmemdup0.c: Likewise.
16068         * tests/test-xprintf-posix.c: Likewise.
16069         * tests/test-xvasprintf.c: Likewise.
16070         * tests/unicase/test-locale-language.c: Likewise.
16071         * tests/unicase/test-mapping-part1.h: Likewise.
16072         * tests/unicase/test-predicate-part1.h: Likewise.
16073         * tests/unicase/test-u8-casecmp.c: Likewise.
16074         * tests/unicase/test-u8-casecoll.c: Likewise.
16075         * tests/unicase/test-u8-casefold.c: Likewise.
16076         * tests/unicase/test-u8-is-cased.c: Likewise.
16077         * tests/unicase/test-u8-is-casefolded.c: Likewise.
16078         * tests/unicase/test-u8-is-lowercase.c: Likewise.
16079         * tests/unicase/test-u8-is-titlecase.c: Likewise.
16080         * tests/unicase/test-u8-is-uppercase.c: Likewise.
16081         * tests/unicase/test-u8-tolower.c: Likewise.
16082         * tests/unicase/test-u8-totitle.c: Likewise.
16083         * tests/unicase/test-u8-toupper.c: Likewise.
16084         * tests/unicase/test-u16-casecmp.c: Likewise.
16085         * tests/unicase/test-u16-casecoll.c: Likewise.
16086         * tests/unicase/test-u16-casefold.c: Likewise.
16087         * tests/unicase/test-u16-is-cased.c: Likewise.
16088         * tests/unicase/test-u16-is-casefolded.c: Likewise.
16089         * tests/unicase/test-u16-is-lowercase.c: Likewise.
16090         * tests/unicase/test-u16-is-titlecase.c: Likewise.
16091         * tests/unicase/test-u16-is-uppercase.c: Likewise.
16092         * tests/unicase/test-u16-tolower.c: Likewise.
16093         * tests/unicase/test-u16-totitle.c: Likewise.
16094         * tests/unicase/test-u16-toupper.c: Likewise.
16095         * tests/unicase/test-u32-casecmp.c: Likewise.
16096         * tests/unicase/test-u32-casecoll.c: Likewise.
16097         * tests/unicase/test-u32-casefold.c: Likewise.
16098         * tests/unicase/test-u32-is-cased.c: Likewise.
16099         * tests/unicase/test-u32-is-casefolded.c: Likewise.
16100         * tests/unicase/test-u32-is-lowercase.c: Likewise.
16101         * tests/unicase/test-u32-is-titlecase.c: Likewise.
16102         * tests/unicase/test-u32-is-uppercase.c: Likewise.
16103         * tests/unicase/test-u32-tolower.c: Likewise.
16104         * tests/unicase/test-u32-totitle.c: Likewise.
16105         * tests/unicase/test-u32-toupper.c: Likewise.
16106         * tests/unicase/test-ulc-casecmp.c: Likewise.
16107         * tests/unicase/test-ulc-casecoll.c: Likewise.
16108         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
16109         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
16110         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
16111         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
16112         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
16113         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
16114         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
16115         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
16116         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
16117         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
16118         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
16119         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
16120         * tests/unictype/test-bidi_byname.c: Likewise.
16121         * tests/unictype/test-bidi_name.c: Likewise.
16122         * tests/unictype/test-bidi_of.c: Likewise.
16123         * tests/unictype/test-bidi_test.c: Likewise.
16124         * tests/unictype/test-block_list.c: Likewise.
16125         * tests/unictype/test-block_of.c: Likewise.
16126         * tests/unictype/test-block_test.c: Likewise.
16127         * tests/unictype/test-categ_and.c: Likewise.
16128         * tests/unictype/test-categ_and_not.c: Likewise.
16129         * tests/unictype/test-categ_byname.c: Likewise.
16130         * tests/unictype/test-categ_name.c: Likewise.
16131         * tests/unictype/test-categ_none.c: Likewise.
16132         * tests/unictype/test-categ_of.c: Likewise.
16133         * tests/unictype/test-categ_or.c: Likewise.
16134         * tests/unictype/test-categ_test_withtable.c: Likewise.
16135         * tests/unictype/test-combining.c: Likewise.
16136         * tests/unictype/test-decdigit.c: Likewise.
16137         * tests/unictype/test-digit.c: Likewise.
16138         * tests/unictype/test-mirror.c: Likewise.
16139         * tests/unictype/test-numeric.c: Likewise.
16140         * tests/unictype/test-pr_byname.c: Likewise.
16141         * tests/unictype/test-pr_test.c: Likewise.
16142         * tests/unictype/test-predicate-part1.h: Likewise.
16143         * tests/unictype/test-scripts.c: Likewise.
16144         * tests/unictype/test-sy_c_ident.c: Likewise.
16145         * tests/unictype/test-sy_java_ident.c: Likewise.
16146         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
16147         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
16148         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
16149         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
16150         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
16151         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
16152         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
16153         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
16154         * tests/uninorm/test-canonical-decomposition.c: Likewise.
16155         * tests/uninorm/test-compat-decomposition.c: Likewise.
16156         * tests/uninorm/test-composition.c: Likewise.
16157         * tests/uninorm/test-decomposing-form.c: Likewise.
16158         * tests/uninorm/test-decomposition.c: Likewise.
16159         * tests/uninorm/test-u8-nfc.c: Likewise.
16160         * tests/uninorm/test-u8-nfd.c: Likewise.
16161         * tests/uninorm/test-u8-nfkc.c: Likewise.
16162         * tests/uninorm/test-u8-nfkd.c: Likewise.
16163         * tests/uninorm/test-u8-normcmp.c: Likewise.
16164         * tests/uninorm/test-u8-normcoll.c: Likewise.
16165         * tests/uninorm/test-u16-nfc.c: Likewise.
16166         * tests/uninorm/test-u16-nfd.c: Likewise.
16167         * tests/uninorm/test-u16-nfkc.c: Likewise.
16168         * tests/uninorm/test-u16-nfkd.c: Likewise.
16169         * tests/uninorm/test-u16-normcmp.c: Likewise.
16170         * tests/uninorm/test-u16-normcoll.c: Likewise.
16171         * tests/uninorm/test-u32-nfc.c: Likewise.
16172         * tests/uninorm/test-u32-nfd.c: Likewise.
16173         * tests/uninorm/test-u32-nfkc.c: Likewise.
16174         * tests/uninorm/test-u32-nfkd.c: Likewise.
16175         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16176         * tests/uninorm/test-u32-normcmp.c: Likewise.
16177         * tests/uninorm/test-u32-normcoll.c: Likewise.
16178         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
16179         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
16180         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
16181         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
16182         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
16183         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
16184         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16185         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16186         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
16187         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
16188         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
16189         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
16190         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
16191         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16192         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16193         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
16194         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
16195         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
16196         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
16197         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
16198         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16199         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16200         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
16201         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
16202         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
16203         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
16204         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
16205         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16206         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16207         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
16208         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
16209         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
16210         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
16211         * tests/uniwidth/test-u8-strwidth.c: Likewise.
16212         * tests/uniwidth/test-u8-width.c: Likewise.
16213         * tests/uniwidth/test-u16-strwidth.c: Likewise.
16214         * tests/uniwidth/test-u16-width.c: Likewise.
16215         * tests/uniwidth/test-u32-strwidth.c: Likewise.
16216         * tests/uniwidth/test-u32-width.c: Likewise.
16217         * tests/uniwidth/test-uc_width.c: Likewise.
16218         * tests/uniwidth/test-uc_width2.c: Likewise.
16219         * modules/acl-tests (Files): Add tests/macros.h.
16220         * modules/areadlink-tests (Files): Likewise.
16221         * modules/areadlink-with-size-tests (Files): Likewise.
16222         * modules/areadlinkat-tests (Files): Likewise.
16223         * modules/areadlinkat-with-size-tests (Files): Likewise.
16224         * modules/argmatch-tests (Files): Likewise.
16225         * modules/argv-iter-tests (Files): Likewise.
16226         * modules/array-list-tests (Files): Likewise.
16227         * modules/array-mergesort-tests (Files): Likewise.
16228         * modules/array-oset-tests (Files): Likewise.
16229         * modules/avltree-list-tests (Files): Likewise.
16230         * modules/avltree-oset-tests (Files): Likewise.
16231         * modules/avltreehash-list-tests (Files): Likewise.
16232         * modules/base64-tests (Files): Likewise.
16233         * modules/binary-io-tests (Files): Likewise.
16234         * modules/bitrotate-tests (Files): Likewise.
16235         * modules/btowc-tests (Files): Likewise.
16236         * modules/byteswap-tests (Files): Likewise.
16237         * modules/c-ctype-tests (Files): Likewise.
16238         * modules/c-stack-tests (Files): Likewise.
16239         * modules/c-strcase-tests (Files): Likewise.
16240         * modules/c-strcasestr-tests (Files): Likewise.
16241         * modules/c-strstr-tests (Files): Likewise.
16242         * modules/canonicalize-lgpl-tests (Files): Likewise.
16243         * modules/canonicalize-tests (Files): Likewise.
16244         * modules/carray-list-tests (Files): Likewise.
16245         * modules/ceilf-tests (Files): Likewise.
16246         * modules/ceill-tests (Files): Likewise.
16247         * modules/chown-tests (Files): Likewise.
16248         * modules/cloexec-tests (Files): Likewise.
16249         * modules/copy-file-tests (Files): Likewise.
16250         * modules/count-one-bits-tests (Files): Likewise.
16251         * modules/dprintf-posix-tests (Files): Likewise.
16252         * modules/dup2-tests (Files): Likewise.
16253         * modules/dup3-tests (Files): Likewise.
16254         * modules/duplocale-tests (Files): Likewise.
16255         * modules/fbufmode-tests (Files): Likewise.
16256         * modules/fchdir-tests (Files): Likewise.
16257         * modules/fcntl-safer-tests (Files): Likewise.
16258         * modules/fcntl-tests (Files): Likewise.
16259         * modules/fdopendir-tests (Files): Likewise.
16260         * modules/fdutimensat-tests (Files): Likewise.
16261         * modules/fflush-tests (Files): Likewise.
16262         * modules/filevercmp-tests (Files): Likewise.
16263         * modules/flock-tests (Files): Likewise.
16264         * modules/floorf-tests (Files): Likewise.
16265         * modules/floorl-tests (Files): Likewise.
16266         * modules/fnmatch-tests (Files): Likewise.
16267         * modules/fopen-safer-tests (Files): Likewise.
16268         * modules/fopen-tests (Files): Likewise.
16269         * modules/fpending-tests (Files): Likewise.
16270         * modules/fprintf-posix-tests (Files): Likewise.
16271         * modules/fpurge-tests (Files): Likewise.
16272         * modules/freadable-tests (Files): Likewise.
16273         * modules/freadahead-tests (Files): Likewise.
16274         * modules/freading-tests (Files): Likewise.
16275         * modules/freadptr-tests (Files): Likewise.
16276         * modules/freadseek-tests (Files): Likewise.
16277         * modules/freopen-tests (Files): Likewise.
16278         * modules/frexp-nolibm-tests (Files): Likewise.
16279         * modules/frexp-tests (Files): Likewise.
16280         * modules/frexpl-nolibm-tests (Files): Likewise.
16281         * modules/frexpl-tests (Files): Likewise.
16282         * modules/fseek-tests (Files): Likewise.
16283         * modules/fseeko-tests (Files): Likewise.
16284         * modules/fstrcmp-tests (Files): Likewise.
16285         * modules/fsync-tests (Files): Likewise.
16286         * modules/ftell-tests (Files): Likewise.
16287         * modules/ftello-tests (Files): Likewise.
16288         * modules/func-tests (Files): Likewise.
16289         * modules/futimens-tests (Files): Likewise.
16290         * modules/fwritable-tests (Files): Likewise.
16291         * modules/fwriting-tests (Files): Likewise.
16292         * modules/getcwd-tests (Files): Likewise.
16293         * modules/getdate-tests (Files): Likewise.
16294         * modules/getdelim-tests (Files): Likewise.
16295         * modules/getdtablesize-tests (Files): Likewise.
16296         * modules/getgroups-tests (Files): Likewise.
16297         * modules/getline-tests (Files): Likewise.
16298         * modules/getndelim2-tests (Files): Likewise.
16299         * modules/glob-tests (Files): Likewise.
16300         * modules/hash-tests (Files): Likewise.
16301         * modules/i-ring-tests (Files): Likewise.
16302         * modules/iconv-tests (Files): Likewise.
16303         * modules/iconv_open-utf-tests (Files): Likewise.
16304         * modules/idpriv-drop-tests (Files): Likewise.
16305         * modules/idpriv-droptemp-tests (Files): Likewise.
16306         * modules/inet_ntop-tests (Files): Likewise.
16307         * modules/inet_pton-tests (Files): Likewise.
16308         * modules/isblank-tests (Files): Likewise.
16309         * modules/isfinite-tests (Files): Likewise.
16310         * modules/isinf-tests (Files): Likewise.
16311         * modules/isnan-tests (Files): Likewise.
16312         * modules/isnand-nolibm-tests (Files): Likewise.
16313         * modules/isnand-tests (Files): Likewise.
16314         * modules/isnanf-nolibm-tests (Files): Likewise.
16315         * modules/isnanf-tests (Files): Likewise.
16316         * modules/isnanl-nolibm-tests (Files): Likewise.
16317         * modules/isnanl-tests (Files): Likewise.
16318         * modules/lchown-tests (Files): Likewise.
16319         * modules/ldexpl-tests (Files): Likewise.
16320         * modules/link-tests (Files): Likewise.
16321         * modules/linkat-tests (Files): Likewise.
16322         * modules/linked-list-tests (Files): Likewise.
16323         * modules/linkedhash-list-tests (Files): Likewise.
16324         * modules/localename-tests (Files): Likewise.
16325         * modules/lseek-tests (Files): Likewise.
16326         * modules/lstat-tests (Files): Likewise.
16327         * modules/mbmemcasecmp-tests (Files): Likewise.
16328         * modules/mbmemcasecoll-tests (Files): Likewise.
16329         * modules/mbrtowc-tests (Files): Likewise.
16330         * modules/mbscasecmp-tests (Files): Likewise.
16331         * modules/mbscasestr-tests (Files): Likewise.
16332         * modules/mbschr-tests (Files): Likewise.
16333         * modules/mbscspn-tests (Files): Likewise.
16334         * modules/mbsinit-tests (Files): Likewise.
16335         * modules/mbsncasecmp-tests (Files): Likewise.
16336         * modules/mbsnrtowcs-tests (Files): Likewise.
16337         * modules/mbspbrk-tests (Files): Likewise.
16338         * modules/mbspcasecmp-tests (Files): Likewise.
16339         * modules/mbsrchr-tests (Files): Likewise.
16340         * modules/mbsrtowcs-tests (Files): Likewise.
16341         * modules/mbsspn-tests (Files): Likewise.
16342         * modules/mbsstr-tests (Files): Likewise.
16343         * modules/memchr-tests (Files): Likewise.
16344         * modules/memchr2-tests (Files): Likewise.
16345         * modules/memcmp-tests (Files): Likewise.
16346         * modules/memmem-tests (Files): Likewise.
16347         * modules/memrchr-tests (Files): Likewise.
16348         * modules/mkdir-tests (Files): Likewise.
16349         * modules/mkfifo-tests (Files): Likewise.
16350         * modules/mkfifoat-tests (Files): Likewise.
16351         * modules/mknod-tests (Files): Likewise.
16352         * modules/nanosleep-tests (Files): Likewise.
16353         * modules/nl_langinfo-tests (Files): Likewise.
16354         * modules/obstack-printf-tests (Files): Likewise.
16355         * modules/open-tests (Files): Likewise.
16356         * modules/openat-tests (Files): Likewise.
16357         * modules/pipe-filter-gi-tests (Files): Likewise.
16358         * modules/pipe-filter-ii-tests (Files): Likewise.
16359         * modules/pipe2-tests (Files): Likewise.
16360         * modules/popen-safer-tests (Files): Likewise.
16361         * modules/popen-tests (Files): Likewise.
16362         * modules/posixtm-tests (Files): Likewise.
16363         * modules/pread-tests (Files): Likewise.
16364         * modules/printf-frexp-tests (Files): Likewise.
16365         * modules/printf-frexpl-tests (Files): Likewise.
16366         * modules/printf-posix-tests (Files): Likewise.
16367         * modules/priv-set-tests (Files): Likewise.
16368         * modules/quotearg-tests (Files): Likewise.
16369         * modules/random_r-tests (Files): Likewise.
16370         * modules/rawmemchr-tests (Files): Likewise.
16371         * modules/rbtree-list-tests (Files): Likewise.
16372         * modules/rbtree-oset-tests (Files): Likewise.
16373         * modules/rbtreehash-list-tests (Files): Likewise.
16374         * modules/readlink-tests (Files): Likewise.
16375         * modules/remove-tests (Files): Likewise.
16376         * modules/rename-tests (Files): Likewise.
16377         * modules/renameat-tests (Files): Likewise.
16378         * modules/rmdir-tests (Files): Likewise.
16379         * modules/round-tests (Files): Likewise.
16380         * modules/roundf-tests (Files): Likewise.
16381         * modules/roundl-tests (Files): Likewise.
16382         * modules/safe-alloc-tests (Files): Likewise.
16383         * modules/setenv-tests (Files): Likewise.
16384         * modules/sigaction-tests (Files): Likewise.
16385         * modules/signbit-tests (Files): Likewise.
16386         * modules/sleep-tests (Files): Likewise.
16387         * modules/snprintf-posix-tests (Files): Likewise.
16388         * modules/snprintf-tests (Files): Likewise.
16389         * modules/sprintf-posix-tests (Files): Likewise.
16390         * modules/stat-tests (Files): Likewise.
16391         * modules/stat-time-tests (Files): Likewise.
16392         * modules/strcasestr-tests (Files): Likewise.
16393         * modules/strchrnul-tests (Files): Likewise.
16394         * modules/strerror-tests (Files): Likewise.
16395         * modules/striconv-tests (Files): Likewise.
16396         * modules/striconveh-tests (Files): Likewise.
16397         * modules/striconveha-tests (Files): Likewise.
16398         * modules/strsignal-tests (Files): Likewise.
16399         * modules/strstr-tests (Files): Likewise.
16400         * modules/strtod-tests (Files): Likewise.
16401         * modules/strverscmp-tests (Files): Likewise.
16402         * modules/symlink-tests (Files): Likewise.
16403         * modules/symlinkat-tests (Files): Likewise.
16404         * modules/trunc-tests (Files): Likewise.
16405         * modules/truncf-tests (Files): Likewise.
16406         * modules/truncl-tests (Files): Likewise.
16407         * modules/uname-tests (Files): Likewise.
16408         * modules/unicase/cased-tests (Files): Likewise.
16409         * modules/unicase/ignorable-tests (Files): Likewise.
16410         * modules/unicase/locale-language-tests (Files): Likewise.
16411         * modules/unicase/tolower-tests (Files): Likewise.
16412         * modules/unicase/totitle-tests (Files): Likewise.
16413         * modules/unicase/toupper-tests (Files): Likewise.
16414         * modules/unicase/u8-casecmp-tests (Files): Likewise.
16415         * modules/unicase/u8-casecoll-tests (Files): Likewise.
16416         * modules/unicase/u8-casefold-tests (Files): Likewise.
16417         * modules/unicase/u8-is-cased-tests (Files): Likewise.
16418         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
16419         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
16420         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
16421         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
16422         * modules/unicase/u8-tolower-tests (Files): Likewise.
16423         * modules/unicase/u8-totitle-tests (Files): Likewise.
16424         * modules/unicase/u8-toupper-tests (Files): Likewise.
16425         * modules/unicase/u16-casecmp-tests (Files): Likewise.
16426         * modules/unicase/u16-casecoll-tests (Files): Likewise.
16427         * modules/unicase/u16-casefold-tests (Files): Likewise.
16428         * modules/unicase/u16-is-cased-tests (Files): Likewise.
16429         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
16430         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
16431         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
16432         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
16433         * modules/unicase/u16-tolower-tests (Files): Likewise.
16434         * modules/unicase/u16-totitle-tests (Files): Likewise.
16435         * modules/unicase/u16-toupper-tests (Files): Likewise.
16436         * modules/unicase/u32-casecmp-tests (Files): Likewise.
16437         * modules/unicase/u32-casecoll-tests (Files): Likewise.
16438         * modules/unicase/u32-casefold-tests (Files): Likewise.
16439         * modules/unicase/u32-is-cased-tests (Files): Likewise.
16440         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
16441         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
16442         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
16443         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
16444         * modules/unicase/u32-tolower-tests (Files): Likewise.
16445         * modules/unicase/u32-totitle-tests (Files): Likewise.
16446         * modules/unicase/u32-toupper-tests (Files): Likewise.
16447         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
16448         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
16449         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
16450         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
16451         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
16452         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
16453         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
16454         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
16455         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
16456         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
16457         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
16458         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
16459         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
16460         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
16461         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
16462         * modules/unictype/bidicategory-name-tests (Files): Likewise.
16463         * modules/unictype/bidicategory-of-tests (Files): Likewise.
16464         * modules/unictype/bidicategory-test-tests (Files): Likewise.
16465         * modules/unictype/block-list-tests (Files): Likewise.
16466         * modules/unictype/block-of-tests (Files): Likewise.
16467         * modules/unictype/block-test-tests (Files): Likewise.
16468         * modules/unictype/category-C-tests (Files): Likewise.
16469         * modules/unictype/category-Cc-tests (Files): Likewise.
16470         * modules/unictype/category-Cf-tests (Files): Likewise.
16471         * modules/unictype/category-Cn-tests (Files): Likewise.
16472         * modules/unictype/category-Co-tests (Files): Likewise.
16473         * modules/unictype/category-Cs-tests (Files): Likewise.
16474         * modules/unictype/category-L-tests (Files): Likewise.
16475         * modules/unictype/category-Ll-tests (Files): Likewise.
16476         * modules/unictype/category-Lm-tests (Files): Likewise.
16477         * modules/unictype/category-Lo-tests (Files): Likewise.
16478         * modules/unictype/category-Lt-tests (Files): Likewise.
16479         * modules/unictype/category-Lu-tests (Files): Likewise.
16480         * modules/unictype/category-M-tests (Files): Likewise.
16481         * modules/unictype/category-Mc-tests (Files): Likewise.
16482         * modules/unictype/category-Me-tests (Files): Likewise.
16483         * modules/unictype/category-Mn-tests (Files): Likewise.
16484         * modules/unictype/category-N-tests (Files): Likewise.
16485         * modules/unictype/category-Nd-tests (Files): Likewise.
16486         * modules/unictype/category-Nl-tests (Files): Likewise.
16487         * modules/unictype/category-No-tests (Files): Likewise.
16488         * modules/unictype/category-P-tests (Files): Likewise.
16489         * modules/unictype/category-Pc-tests (Files): Likewise.
16490         * modules/unictype/category-Pd-tests (Files): Likewise.
16491         * modules/unictype/category-Pe-tests (Files): Likewise.
16492         * modules/unictype/category-Pf-tests (Files): Likewise.
16493         * modules/unictype/category-Pi-tests (Files): Likewise.
16494         * modules/unictype/category-Po-tests (Files): Likewise.
16495         * modules/unictype/category-Ps-tests (Files): Likewise.
16496         * modules/unictype/category-S-tests (Files): Likewise.
16497         * modules/unictype/category-Sc-tests (Files): Likewise.
16498         * modules/unictype/category-Sk-tests (Files): Likewise.
16499         * modules/unictype/category-Sm-tests (Files): Likewise.
16500         * modules/unictype/category-So-tests (Files): Likewise.
16501         * modules/unictype/category-Z-tests (Files): Likewise.
16502         * modules/unictype/category-Zl-tests (Files): Likewise.
16503         * modules/unictype/category-Zp-tests (Files): Likewise.
16504         * modules/unictype/category-Zs-tests (Files): Likewise.
16505         * modules/unictype/category-and-not-tests (Files): Likewise.
16506         * modules/unictype/category-and-tests (Files): Likewise.
16507         * modules/unictype/category-byname-tests (Files): Likewise.
16508         * modules/unictype/category-name-tests (Files): Likewise.
16509         * modules/unictype/category-none-tests (Files): Likewise.
16510         * modules/unictype/category-of-tests (Files): Likewise.
16511         * modules/unictype/category-or-tests (Files): Likewise.
16512         * modules/unictype/category-test-withtable-tests (Files): Likewise.
16513         * modules/unictype/combining-class-tests (Files): Likewise.
16514         * modules/unictype/ctype-alnum-tests (Files): Likewise.
16515         * modules/unictype/ctype-alpha-tests (Files): Likewise.
16516         * modules/unictype/ctype-blank-tests (Files): Likewise.
16517         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
16518         * modules/unictype/ctype-digit-tests (Files): Likewise.
16519         * modules/unictype/ctype-graph-tests (Files): Likewise.
16520         * modules/unictype/ctype-lower-tests (Files): Likewise.
16521         * modules/unictype/ctype-print-tests (Files): Likewise.
16522         * modules/unictype/ctype-punct-tests (Files): Likewise.
16523         * modules/unictype/ctype-space-tests (Files): Likewise.
16524         * modules/unictype/ctype-upper-tests (Files): Likewise.
16525         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
16526         * modules/unictype/decimal-digit-tests (Files): Likewise.
16527         * modules/unictype/digit-tests (Files): Likewise.
16528         * modules/unictype/mirror-tests (Files): Likewise.
16529         * modules/unictype/numeric-tests (Files): Likewise.
16530         * modules/unictype/property-alphabetic-tests (Files): Likewise.
16531         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
16532         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
16533         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
16534         Likewise.
16535         * modules/unictype/property-bidi-block-separator-tests (Files):
16536         Likewise.
16537         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
16538         Likewise.
16539         * modules/unictype/property-bidi-common-separator-tests (Files):
16540         Likewise.
16541         * modules/unictype/property-bidi-control-tests (Files): Likewise.
16542         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
16543         Likewise.
16544         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
16545         Likewise.
16546         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
16547         Likewise.
16548         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
16549         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
16550         Likewise.
16551         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
16552         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
16553         Likewise.
16554         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
16555         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
16556         * modules/unictype/property-bidi-segment-separator-tests (Files):
16557         Likewise.
16558         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
16559         * modules/unictype/property-byname-tests (Files): Likewise.
16560         * modules/unictype/property-combining-tests (Files): Likewise.
16561         * modules/unictype/property-composite-tests (Files): Likewise.
16562         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
16563         * modules/unictype/property-dash-tests (Files): Likewise.
16564         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
16565         * modules/unictype/property-default-ignorable-code-point-tests (Files):
16566         Likewise.
16567         * modules/unictype/property-deprecated-tests (Files): Likewise.
16568         * modules/unictype/property-diacritic-tests (Files): Likewise.
16569         * modules/unictype/property-extender-tests (Files): Likewise.
16570         * modules/unictype/property-format-control-tests (Files): Likewise.
16571         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
16572         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
16573         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
16574         * modules/unictype/property-hex-digit-tests (Files): Likewise.
16575         * modules/unictype/property-hyphen-tests (Files): Likewise.
16576         * modules/unictype/property-id-continue-tests (Files): Likewise.
16577         * modules/unictype/property-id-start-tests (Files): Likewise.
16578         * modules/unictype/property-ideographic-tests (Files): Likewise.
16579         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
16580         * modules/unictype/property-ids-trinary-operator-tests (Files):
16581         Likewise.
16582         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
16583         * modules/unictype/property-iso-control-tests (Files): Likewise.
16584         * modules/unictype/property-join-control-tests (Files): Likewise.
16585         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
16586         * modules/unictype/property-line-separator-tests (Files): Likewise.
16587         * modules/unictype/property-logical-order-exception-tests (Files):
16588         Likewise.
16589         * modules/unictype/property-lowercase-tests (Files): Likewise.
16590         * modules/unictype/property-math-tests (Files): Likewise.
16591         * modules/unictype/property-non-break-tests (Files): Likewise.
16592         * modules/unictype/property-not-a-character-tests (Files): Likewise.
16593         * modules/unictype/property-numeric-tests (Files): Likewise.
16594         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
16595         * modules/unictype/property-other-default-ignorable-code-point-tests
16596         (Files): Likewise.
16597         * modules/unictype/property-other-grapheme-extend-tests (Files):
16598         Likewise.
16599         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
16600         * modules/unictype/property-other-id-start-tests (Files): Likewise.
16601         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
16602         * modules/unictype/property-other-math-tests (Files): Likewise.
16603         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
16604         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
16605         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
16606         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
16607         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
16608         * modules/unictype/property-private-use-tests (Files): Likewise.
16609         * modules/unictype/property-punctuation-tests (Files): Likewise.
16610         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
16611         * modules/unictype/property-radical-tests (Files): Likewise.
16612         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
16613         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
16614         * modules/unictype/property-space-tests (Files): Likewise.
16615         * modules/unictype/property-terminal-punctuation-tests (Files):
16616         Likewise.
16617         * modules/unictype/property-test-tests (Files): Likewise.
16618         * modules/unictype/property-titlecase-tests (Files): Likewise.
16619         * modules/unictype/property-unassigned-code-value-tests (Files):
16620         Likewise.
16621         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
16622         * modules/unictype/property-uppercase-tests (Files): Likewise.
16623         * modules/unictype/property-variation-selector-tests (Files): Likewise.
16624         * modules/unictype/property-white-space-tests (Files): Likewise.
16625         * modules/unictype/property-xid-continue-tests (Files): Likewise.
16626         * modules/unictype/property-xid-start-tests (Files): Likewise.
16627         * modules/unictype/property-zero-width-tests (Files): Likewise.
16628         * modules/unictype/scripts-tests (Files): Likewise.
16629         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
16630         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
16631         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
16632         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
16633         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
16634         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
16635         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
16636         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
16637         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
16638         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
16639         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
16640         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
16641         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
16642         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
16643         * modules/uninorm/composition-tests (Files): Likewise.
16644         * modules/uninorm/decomposing-form-tests (Files): Likewise.
16645         * modules/uninorm/decomposition-tests (Files): Likewise.
16646         * modules/uninorm/filter-tests (Files): Likewise.
16647         * modules/uninorm/nfc-tests (Files): Likewise.
16648         * modules/uninorm/nfd-tests (Files): Likewise.
16649         * modules/uninorm/nfkc-tests (Files): Likewise.
16650         * modules/uninorm/nfkd-tests (Files): Likewise.
16651         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
16652         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
16653         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
16654         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
16655         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
16656         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
16657         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
16658         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16659         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
16660         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
16661         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
16662         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
16663         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16664         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
16665         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
16666         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
16667         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
16668         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16669         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
16670         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
16671         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
16672         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
16673         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16674         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
16675         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
16676         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
16677         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
16678         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
16679         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
16680         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
16681         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
16682         * modules/uniwidth/u8-width-tests (Files): Likewise.
16683         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
16684         * modules/uniwidth/u16-width-tests (Files): Likewise.
16685         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
16686         * modules/uniwidth/u32-width-tests (Files): Likewise.
16687         * modules/uniwidth/width-tests (Files): Likewise.
16688         * modules/unlink-tests (Files): Likewise.
16689         * modules/unsetenv-tests (Files): Likewise.
16690         * modules/usleep-tests (Files): Likewise.
16691         * modules/utimens-tests (Files): Likewise.
16692         * modules/utimensat-tests (Files): Likewise.
16693         * modules/vasnprintf-posix-tests (Files): Likewise.
16694         * modules/vasnprintf-tests (Files): Likewise.
16695         * modules/vasprintf-posix-tests (Files): Likewise.
16696         * modules/vasprintf-tests (Files): Likewise.
16697         * modules/vdprintf-posix-tests (Files): Likewise.
16698         * modules/vfprintf-posix-tests (Files): Likewise.
16699         * modules/vprintf-posix-tests (Files): Likewise.
16700         * modules/vsnprintf-posix-tests (Files): Likewise.
16701         * modules/vsnprintf-tests (Files): Likewise.
16702         * modules/vsprintf-posix-tests (Files): Likewise.
16703         * modules/wcrtomb-tests (Files): Likewise.
16704         * modules/wcsnrtombs-tests (Files): Likewise.
16705         * modules/wcsrtombs-tests (Files): Likewise.
16706         * modules/wctype-tests (Files): Likewise.
16707         * modules/wcwidth-tests (Files): Likewise.
16708         * modules/xmemdup0-tests (Files): Likewise.
16709         * modules/xprintf-posix-tests (Files): Likewise.
16710         * modules/xvasprintf-tests (Files): Likewise.
16711
16712 2009-12-24  Eric Blake  <ebb9@byu.net>
16713
16714         test-nanosleep: fix typo
16715         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
16716         patch.
16717         Reported by Bruno Haible.
16718
16719 2009-12-24  Bruno Haible  <bruno@clisp.org>
16720
16721         Reduce namespace pollution on glibc systems.
16722         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
16723         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
16724         systems.
16725         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
16726         <getopt.h> on glibc systems.
16727         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
16728         systems.
16729         * lib/fcntl.c: Include <unistd.h> here instead.
16730
16731 2009-12-24  Bruno Haible  <bruno@clisp.org>
16732
16733         * lib/stdlib.in.h (includes): Fix typo in today's commit.
16734
16735 2009-12-24  Eric Blake  <ebb9@byu.net>
16736
16737         tests: add signature checks
16738         * tests/signature.h (SIGNATURE_CHECK): New file.
16739         * modules/atexit-tests (Files): Use it.
16740         * modules/btowc-tests (Files): Likewise.
16741         * modules/canonicalize-lgpl-tests (Files): Likewise.
16742         * modules/ceilf-tests (Files): Likewise.
16743         * modules/ceill-tests (Files): Likewise.
16744         * modules/chown-tests (Files): Likewise.
16745         * modules/dprintf-posix-tests (Files): Likewise.
16746         * modules/dup2-tests (Files): Likewise.
16747         * modules/dup3-tests (Files): Likewise.
16748         * modules/duplocale-tests (Files): Likewise.
16749         * modules/fchdir-tests (Files): Likewise.
16750         * modules/fcntl-tests (Files): Likewise.
16751         * modules/fdopendir-tests (Files): Likewise.
16752         * modules/fflush-tests (Files): Likewise.
16753         * modules/flock-tests (Files): Likewise.
16754         * modules/floorf-tests (Files): Likewise.
16755         * modules/floorl-tests (Files): Likewise.
16756         * modules/fnmatch-tests (Files): Likewise.
16757         * modules/fopen-tests (Files): Likewise.
16758         * modules/fprintf-posix-tests (Files): Likewise.
16759         * modules/freopen-tests (Files): Likewise.
16760         * modules/frexp-nolibm-tests (Files): Likewise.
16761         * modules/frexp-tests (Files): Likewise.
16762         * modules/frexpl-nolibm-tests (Files): Likewise.
16763         * modules/frexpl-tests (Files): Likewise.
16764         * modules/fseek-tests (Files): Likewise.
16765         * modules/fseeko-tests (Files): Likewise.
16766         * modules/fsync-tests (Files): Likewise.
16767         * modules/ftell-tests (Files): Likewise.
16768         * modules/ftello-tests (Files): Likewise.
16769         * modules/futimens-tests (Files): Likewise.
16770         * modules/getaddrinfo-tests (Files): Likewise.
16771         * modules/getcwd-tests (Files): Likewise.
16772         * modules/getdelim-tests (Files): Likewise.
16773         * modules/getdtablesize-tests (Files): Likewise.
16774         * modules/getgroups-tests (Files): Likewise.
16775         * modules/gethostname-tests (Files): Likewise.
16776         * modules/getline-tests (Files): Likewise.
16777         * modules/getopt-posix-tests (Files): Likewise.
16778         * modules/gettimeofday-tests (Files): Likewise.
16779         * modules/glob-tests (Files): Likewise.
16780         * modules/iconv-tests (Files): Likewise.
16781         * modules/inet_ntop-tests (Files): Likewise.
16782         * modules/inet_pton-tests (Files): Likewise.
16783         * modules/isblank-tests (Files): Likewise.
16784         * modules/lchown-tests (Files): Likewise.
16785         * modules/ldexpl-tests (Files): Likewise.
16786         * modules/link-tests (Files): Likewise.
16787         * modules/linkat-tests (Files): Likewise.
16788         * modules/lseek-tests (Files): Likewise.
16789         * modules/lstat-tests (Files): Likewise.
16790         * modules/mbrtowc-tests (Files): Likewise.
16791         * modules/mbsinit-tests (Files): Likewise.
16792         * modules/mbsnrtowcs-tests (Files): Likewise.
16793         * modules/mbsrtowcs-tests (Files): Likewise.
16794         * modules/memchr-tests (Files): Likewise.
16795         * modules/memcmp-tests (Files): Likewise.
16796         * modules/memmem-tests (Files): Likewise.
16797         * modules/memrchr-tests (Files): Likewise.
16798         * modules/mkdir-tests (Files): Likewise.
16799         * modules/mkfifo-tests (Files): Likewise.
16800         * modules/mkfifoat-tests (Files): Likewise.
16801         * modules/mknod-tests (Files): Likewise.
16802         * modules/nanosleep-tests (Files): Likewise.
16803         * modules/nl_langinfo-tests (Files): Likewise.
16804         * modules/obstack-printf-tests (Files): Likewise.
16805         * modules/open-tests (Files): Likewise.
16806         * modules/openat-tests (Files): Likewise.
16807         * modules/perror-tests (Files): Likewise.
16808         * modules/pipe2-tests (Files): Likewise.
16809         * modules/poll-tests (Files): Likewise.
16810         * modules/popen-tests (Files): Likewise.
16811         * modules/posix_spawn-tests (Files): Likewise.
16812         * modules/posix_spawnp-tests (Files): Likewise.
16813         * modules/pread-tests (Files): Likewise.
16814         * modules/printf-posix-tests (Files): Likewise.
16815         * modules/pty-tests (Files): Likewise.
16816         * modules/random_r-tests (Files): Likewise.
16817         * modules/rawmemchr-tests (Files): Likewise.
16818         * modules/readlink-tests (Files): Likewise.
16819         * modules/remove-tests (Files): Likewise.
16820         * modules/rename-tests (Files): Likewise.
16821         * modules/renameat-tests (Files): Likewise.
16822         * modules/rmdir-tests (Files): Likewise.
16823         * modules/round-tests (Files): Likewise.
16824         * modules/roundf-tests (Files): Likewise.
16825         * modules/roundl-tests (Files): Likewise.
16826         * modules/select-tests (Files): Likewise.
16827         * modules/setenv-tests (Files): Likewise.
16828         * modules/sigaction-tests (Files): Likewise.
16829         * modules/sleep-tests (Files): Likewise.
16830         * modules/snprintf-posix-tests (Files): Likewise.
16831         * modules/snprintf-tests (Files): Likewise.
16832         * modules/sprintf-posix-tests (Files): Likewise.
16833         * modules/stat-tests (Files): Likewise.
16834         * modules/strcasestr-tests (Files): Likewise.
16835         * modules/strchrnul-tests (Files): Likewise.
16836         * modules/strerror-tests (Files): Likewise.
16837         * modules/strsignal-tests (Files): Likewise.
16838         * modules/strstr-tests (Files): Likewise.
16839         * modules/strtod-tests (Files): Likewise.
16840         * modules/strverscmp-tests (Files): Likewise.
16841         * modules/symlink-tests (Files): Likewise.
16842         * modules/symlinkat-tests (Files): Likewise.
16843         * modules/times-tests (Files): Likewise.
16844         * modules/trunc-tests (Files): Likewise.
16845         * modules/truncf-tests (Files): Likewise.
16846         * modules/truncl-tests (Files): Likewise.
16847         * modules/tsearch-tests (Files): Likewise.
16848         * modules/uname-tests (Files): Likewise.
16849         * modules/unlink-tests (Files): Likewise.
16850         * modules/unsetenv-tests (Files): Likewise.
16851         * modules/usleep-tests (Files): Likewise.
16852         * modules/utimensat-tests (Files): Likewise.
16853         * modules/vasprintf-tests (Files): Likewise.
16854         * modules/vdprintf-posix-tests (Files): Likewise.
16855         * modules/vfprintf-posix-tests (Files): Likewise.
16856         * modules/vprintf-posix-tests (Files): Likewise.
16857         * modules/vsnprintf-posix-tests (Files): Likewise.
16858         * modules/vsnprintf-tests (Files): Likewise.
16859         * modules/vsprintf-posix-tests (Files): Likewise.
16860         * modules/wcrtomb-tests (Files): Likewise.
16861         * modules/wcsnrtombs-tests (Files): Likewise.
16862         * modules/wcsrtombs-tests (Files): Likewise.
16863         * modules/wcwidth-tests (Files): Likewise.
16864         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
16865         * tests/test-isinf.c (isinf): Likewise.
16866         * tests/test-isnan.c (isnan): Likewise.
16867         * tests/test-signbit.c (signbit): Likewise.
16868         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
16869         declaration, either as macro or with correct signature.
16870         (select): Ensure function under test is declared with correct
16871         signature in correct header.
16872         * tests/test-atexit.c (atexit): Likewise.
16873         * tests/test-btowc.c (btowc): Likewise.
16874         * tests/test-canonicalize-lgpl.c (realpath)
16875         (canonicalize_file_name): Likewise.
16876         * tests/test-ceilf1.c (ceilf): Likewise.
16877         * tests/test-ceill.c (ceill): Likewise.
16878         * tests/test-chown.c (chown): Likewise.
16879         * tests/test-dprintf-posix.c (dprintf): Likewise.
16880         * tests/test-dup2.c (dup2): Likewise.
16881         * tests/test-dup3.c (dup3): Likewise.
16882         * tests/test-duplocale.c (duplocale): Likewise.
16883         * tests/test-fchdir.c (fchdir): Likewise.
16884         * tests/test-fchownat.c (fchownat): Likewise.
16885         * tests/test-fcntl.c (fcntl): Likewise.
16886         * tests/test-fdopendir.c (fdopendir): Likewise.
16887         * tests/test-fflush.c (fflush): Likewise.
16888         * tests/test-flock.c (flock): Likewise.
16889         * tests/test-floorf1.c (floorf): Likewise.
16890         * tests/test-floorl.c (floorl): Likewise.
16891         * tests/test-fnmatch.c (fnmatch): Likewise.
16892         * tests/test-fopen.c (fopen): Likewise.
16893         * tests/test-fprintf-posix.c (fprintf): Likewise.
16894         * tests/test-freopen.c (freopen): Likewise.
16895         * tests/test-frexp.c (frexp): Likewise.
16896         * tests/test-frexpl.c (frexpl): Likewise.
16897         * tests/test-fseek.c (fseek): Likewise.
16898         * tests/test-fseeko.c (fseeko): Likewise.
16899         * tests/test-fstatat.c (fstatat): Likewise.
16900         * tests/test-fsync.c (fsync): Likewise.
16901         * tests/test-ftell.c (ftell): Likewise.
16902         * tests/test-ftello.c (ftello): Likewise.
16903         * tests/test-futimens.c (futimens): Likewise.
16904         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
16905         (gai_strerror): Likewise.
16906         * tests/test-getcwd.c (getcwd): Likewise.
16907         * tests/test-getdelim.c (getdelim): Likewise.
16908         * tests/test-getdtablesize.c (getdtablesize): Likewise.
16909         * tests/test-getgroups.c (getgroups): Likewise.
16910         * tests/test-gethostname.c (gethostname): Likewise.
16911         * tests/test-getline.c (getline): Likewise.
16912         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
16913         Likewise.
16914         * tests/test-gettimeofday.c (gettimeofday): Likewise.
16915         * tests/test-glob.c (glob, globfree): Likewise.
16916         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
16917         * tests/test-inet_ntop.c (inet_ntop): Likewise.
16918         * tests/test-inet_pton.c (inet_pton): Likewise.
16919         * tests/test-isblank.c (isblank): Likewise.
16920         * tests/test-lchown.c (lchown): Likewise.
16921         * tests/test-ldexpl.c (ldexpl): Likewise.
16922         * tests/test-link.c (link): Likewise.
16923         * tests/test-linkat.c (linkat): Likewise.
16924         * tests/test-lseek.c (lseek): Likewise.
16925         * tests/test-lstat.c (lstat): Likewise.
16926         * tests/test-mbrtowc.c (mbrtowc): Likewise.
16927         * tests/test-mbsinit.c (mbsinit): Likewise.
16928         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
16929         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
16930         * tests/test-memchr.c (memchr): Likewise.
16931         * tests/test-memcmp.c (memcmp): Likewise.
16932         * tests/test-memmem.c (memmem): Likewise.
16933         * tests/test-memrchr.c (memrchr): Likewise.
16934         * tests/test-mkdir.c (mkdir): Likewise.
16935         * tests/test-mkdirat.c (mkdirat): Likewise.
16936         * tests/test-mkfifo.c (mkfifo): Likewise.
16937         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
16938         * tests/test-mknod.c (mknod): Likewise.
16939         * tests/test-nanosleep.c (nanosleep): Likewise.
16940         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
16941         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
16942         Likewise.
16943         * tests/test-open.c (open): Likewise.
16944         * tests/test-openat.c (openat): Likewise.
16945         * tests/test-perror.c (perror): Likewise.
16946         * tests/test-pipe2.c (pipe2): Likewise.
16947         * tests/test-poll.c (poll): Likewise.
16948         * tests/test-popen.c (popen, pclose): Likewise.
16949         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
16950         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
16951         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
16952         (posix_spawn_file_actions_destroy)
16953         (posix_spawn_file_actions_addclose)
16954         (posix_spawn_file_actions_addopen)
16955         (posix_spawn_file_actions_adddup2): Likewise.
16956         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
16957         * tests/test-pread.c (pread): Likewise.
16958         * tests/test-printf-posix.c (printf): Likewise.
16959         * tests/test-pty.c (openpty, forkpty): Likewise.
16960         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
16961         (random_r): Likewise.
16962         * tests/test-rawmemchr.c (rawmemchr): Likewise.
16963         * tests/test-readlink.c (readlink): Likewise.
16964         * tests/test-remove.c (remove): Likewise.
16965         * tests/test-rename.c (rename): Likewise.
16966         * tests/test-renameat.c (renameat): Likewise.
16967         * tests/test-rmdir.c (rmdir): Likewise.
16968         * tests/test-round1.c (round): Likewise.
16969         * tests/test-roundf1.c (roundf): Likewise.
16970         * tests/test-roundl.c (roundl): Likewise.
16971         * tests/test-setenv.c (setenv): Likewise.
16972         * tests/test-sigaction.c (sigaction): Likewise.
16973         * tests/test-sleep.c (sleep): Likewise.
16974         * tests/test-snprintf.c (snprintf): Likewise.
16975         * tests/test-sprintf-posix.c (sprintf): Likewise.
16976         * tests/test-stat.c (stat): Likewise.
16977         * tests/test-stpncpy.c (stpncpy): Likewise.
16978         * tests/test-strcasestr.c (strcasestr): Likewise.
16979         * tests/test-strchrnul.c (strchrnul): Likewise.
16980         * tests/test-strerror.c (strerror): Likewise.
16981         * tests/test-strsignal.c (strsignal): Likewise.
16982         * tests/test-strstr.c (strstr): Likewise.
16983         * tests/test-strtod.c (strtod): Likewise.
16984         * tests/test-strverscmp.c (strverscmp): Likewise.
16985         * tests/test-symlink.c (symlink): Likewise.
16986         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
16987         * tests/test-times.c (times): Likewise.
16988         * tests/test-trunc1.c (trunc): Likewise.
16989         * tests/test-truncf1.c (truncf): Likewise.
16990         * tests/test-truncl.c (truncl): Likewise.
16991         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
16992         Likewise.
16993         * tests/test-uname.c (uname): Likewise.
16994         * tests/test-unlink.c (unlink): Likewise.
16995         * tests/test-unlinkat.c (unlinkat): Likewise.
16996         * tests/test-unsetenv.c (unsetenv): Likewise.
16997         * tests/test-usleep.c (usleep): Likewise.
16998         * tests/test-utimensat.c (utimensat): Likewise.
16999         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
17000         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
17001         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
17002         * tests/test-vprintf-posix.c (vprintf): Likewise.
17003         * tests/test-vsnprintf.c (vsnprintf): Likewise.
17004         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
17005         * tests/test-wcrtomb.c (wcrtomb): Likewise.
17006         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
17007         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
17008         * tests/test-wcwidth.c (wcwidth): Likewise.
17009
17010         build: pull in conditional headers during GNULIB_POSIXCHECK
17011         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
17012         definitions from any conditionally-included headers.
17013         * lib/stdlib.in.h (includes): Likewise.
17014         * lib/unistd.in.h (includes): Likewise.
17015
17016 2009-12-24  Bruno Haible  <bruno@clisp.org>
17017
17018         * tests/test-argv-iter.c: Include header file being tested immediately
17019         after config.h.
17020         * tests/test-base64.c: Likewise.
17021         * tests/test-flock.c: Likewise.
17022         * tests/test-fsync.c: Likewise.
17023         * tests/test-getdate.c: Likewise.
17024         * tests/test-getndelim2.c: Likewise.
17025         * tests/test-isfinite.c: Likewise.
17026         * tests/test-isinf.c: Likewise.
17027         * tests/test-strerror.c: Likewise.
17028         * tests/test-strsignal.c: Likewise.
17029
17030 2009-12-23  Eric Blake  <ebb9@byu.net>
17031
17032         unistd: work around cygwin bug
17033         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
17034         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
17035         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17036
17037 2009-12-23  Bruno Haible  <bruno@clisp.org>
17038
17039         localename: More tests.
17040         * tests/test-localename.c (SIZEOF): New macro.
17041         (categories): New variable.
17042         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
17043         test_locale_name_default): Add test w.r.t. thread locale.
17044         (test_locale_name_thread): New function.
17045         (main): Invoke it.
17046
17047         localename: Make aware of thread locale.
17048         * lib/localename.h (gl_locale_name_thread): New declaration.
17049         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
17050         behaviour with respect to thread locale.
17051         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
17052         <langinfo.h>, glthread/lock.h.
17053         (SIZE_BITS): New macro.
17054         (string_hash): New function.
17055         (struct hash_node): New type.
17056         (HASH_TABLE_SIZE): New macro.
17057         (struniq_hash_table, struniq_lock): New variables.
17058         (struniq): New function.
17059         (gl_locale_name_thread): New function.
17060         (gl_locale_name): Invoke it.
17061         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
17062         * modules/localename (Depends-on): Add lock.
17063         Reported by Mike Gran <spk121@yahoo.com>.
17064
17065 2009-12-23  Eric Blake  <ebb9@byu.net>
17066
17067         va-args: new module
17068         * modules/va-args: New file.
17069         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
17070         * MODULES.html.sh (Core language properties): Mention it.
17071
17072         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
17073         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
17074         named alias for __attribute__((__unused__)).
17075         * lib/chown.c: Update client.
17076         * lib/fchmodat.c: Likewise.
17077         * lib/fts.c: Likewise.
17078         * lib/getdate.y: Likewise.
17079         * lib/getgroups.c: Likewise.
17080         * lib/getopt.c: Likewise.
17081         * lib/getugroups.c: Likewise.
17082         * lib/mkdir.c: Likewise.
17083         * lib/mkfifo.c: Likewise.
17084         * lib/mkfifoat.c: Likewise.
17085         * lib/mknod.c: Likewise.
17086         * lib/mknodat.c: Likewise.
17087         * lib/readlink.c: Likewise.
17088         * lib/se-context.in.h: Likewise.
17089         * lib/se-selinux.in.h: Likewise.
17090         * lib/sockets.c: Likewise.
17091         * lib/symlink.c: Likewise.
17092         * lib/symlinkat.c: Likewise.
17093         * lib/unicodeio.c: Likewise.
17094         * lib/unistr.h: Likewise.
17095         * tests/test-areadlink.c: Likewise.
17096         * tests/test-areadlinkat.c: Likewise.
17097         * tests/test-filenamecat.c: Likewise.
17098         * tests/test-fseeko.c: Likewise.
17099         * tests/test-ftello.c: Likewise.
17100         * tests/test-getdate.c: Likewise.
17101         * tests/test-getgroups.c: Likewise.
17102         * tests/test-gethostname.c: Likewise.
17103         * tests/test-quotearg.c: Likewise.
17104         * tests/test-version-etc.c: Likewise.
17105         * tests/test-xalloc-die.c: Likewise.
17106         * tests/test-xfprintf-posix.c: Likewise.
17107         * tests/test-xprintf-posix.c: Likewise.
17108         * tests/test-xvasprintf.c: Likewise.
17109
17110         tests: avoid compiler warnings
17111         * tests/test-fcntl.c (main): Delete unused parameters.
17112         * tests/test-freopen-safer.c (main): Likewise.
17113         * tests/test-xalloc-die.c (main): Mark unused parameters.
17114         * tests/test-fseeko.c (main): Likewise.
17115         * tests/test-ftello.c (main): Likewise.
17116         * tests/test-nanosleep.c (main): Avoid declaration warning.
17117         * tests/test-sleep.c (main): Likewise.
17118         * tests/test-unsetenv.c (main): Silence warning about string
17119         literal.
17120         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17121
17122 2009-12-23  Bruno Haible  <bruno@clisp.org>
17123
17124         * tests/test-localename.c (test_locale_name): New function, extracted
17125         from main. Also test mixed situations.
17126         (test_locale_name_posix, test_locale_name_environ,
17127         test_locale_name_default): New functions.
17128         (main): Invoke them all.
17129         * modules/localename-tests (configure.ac): Test for newlocale.
17130
17131 2009-12-23  Bruno Haible  <bruno@clisp.org>
17132
17133         unistd: Ensure getcwd gets declared before being overridden.
17134         * lib/unistd.in.h: Conditionally include <io.h>.
17135
17136 2009-12-22  Bruno Haible  <bruno@clisp.org>
17137
17138         wchar: Diagnose broken combination of glibc and gcc versions and flags.
17139         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
17140         (gl_WCHAR_H): Invoke it.
17141         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
17142         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
17143         Reported by Karl Berry <karl@freefriends.org>.
17144
17145 2009-12-22  Eric Blake  <ebb9@byu.net>
17146
17147         math, unistd: avoid redundant includes
17148         * lib/math.in.h (isnan): No need to re-include <math.h>.
17149         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
17150
17151         getsubopt: work around cygwin bug
17152         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
17153         avoid conflicting with system getsubopt.
17154         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
17155         bug.
17156
17157         getopt: synchronize from glibc
17158         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
17159         parameter order.  Adjust all callers.
17160         (_getopt_internal_r, main): Adjust quoting in error messages.
17161         Drop considerations for outdated POSIX 1003.2 error message.
17162         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
17163         callers.
17164         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
17165
17166         test-getopt: test stderr behavior
17167         * modules/getopt-posix-tests (Depends-on): Add dup2.
17168         * tests/test-getopt.c (ASSERT): Avoid stderr.
17169         (main): Move stderr to a temporary file.
17170         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
17171         Instead, add parameter to inform caller if output occurred.
17172         (test_getopt): Adjust all existing tests to expect silence, and
17173         add new tests of leading ":".
17174         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
17175         glibc shortcomings with leading "-:" or "+:" in optstring.
17176         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17177         Likewise.
17178         * doc/posix-functions/getopt.texi (getopt): Likewise.
17179
17180         test-getopt: enhance test
17181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
17182         supports optind=0.
17183         * tests/test-getopt.c (OPTIND_MIN): Move...
17184         * tests/test-getopt.h (OPTIND_MIN): ...here.
17185         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
17186         Require that optind=0 works, since modern BSD supports it in
17187         addition to optreset, and since coreutils expects it.
17188         (test_getopt_long_only): New test.
17189         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
17190         glibc shortcomings with 'W;', and enforcement of optind=0.
17191         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17192         Likewise.
17193
17194 2009-12-21  Bruno Haible  <bruno@clisp.org>
17195
17196         localename: Improvements for MacOS X and Cygwin.
17197         * lib/localename.h (gl_locale_name_environ): New declaration.
17198         * lib/localename.c (gl_locale_name_environ): New function, extracted from
17199         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
17200         (gl_locale_name_posix): Invoke it.
17201         (gl_locale_name_default): Add comments. Use Windows native API also on
17202         Cygwin.
17203
17204 2009-12-21  Bruno Haible  <bruno@clisp.org>
17205
17206         Update list of Win32 locale ids.
17207         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
17208         (LANG_SAMI): Renamed from LANG_SAAMI.
17209         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
17210         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
17211         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
17212         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
17213         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
17214         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
17215         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
17216         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
17217         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
17218         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
17219         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
17220         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
17221         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
17222         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
17223         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
17224         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
17225         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
17226         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
17227         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
17228         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
17229         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
17230         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
17231         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
17232         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
17233         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
17234         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
17235         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
17236         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
17237         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
17238         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
17239         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
17240         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
17241         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
17242         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
17243         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
17244         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
17245         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
17246         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
17247         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
17248         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
17249         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
17250         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
17251         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
17252         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
17253         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
17254         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
17255         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
17256         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
17257         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
17258         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
17259         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
17260         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
17261         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
17262         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
17263         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
17264         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
17265         Add more languages and countries for Sami, Sorbian. Add more countries
17266         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
17267         for Pashto. Change country for Syriac, Tswana.
17268
17269 2009-12-21  Eric Blake  <ebb9@byu.net>
17270
17271         test-utimens: avoid spurious failure
17272         * tests/test-chown.h (nap): Factor...
17273         * tests/nap.h: ...into new file.
17274         * tests/test-lchown.h (nap): Avoid duplication.
17275         * tests/test-utimens-common.h (nap): Use shared implementation,
17276         necessary on file systems with 1-second resolution.
17277         * modules/chown-tests (Files): Include new file.
17278         * modules/fdutimensat-tests (Files): Likewise.
17279         * modules/futimens-tests (Files): Likewise.
17280         * modules/lchown-tests (Files): Likewise.
17281         * modules/openat-tests (Files): Likewise.
17282         * modules/utimens-tests (Files): Likewise.
17283         * modules/utimensat-tests (Files): Likewise.
17284
17285 2009-12-19  Eric Blake  <ebb9@byu.net>
17286
17287         futimens, utimensat: work around Linux bug
17288         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
17289         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17290         * lib/utimensat.c (rpl_utimensat): Work around it.
17291         * lib/futimens.c (rpl_futimens): Adjust comment.
17292
17293         utimens: work around Linux ctime bug
17294         * lib/utimens.c (detect_ctime_bug): New helper function.
17295         (update_timespec): Differentiate between workaround needed for
17296         this bug vs. what is needed for systems that lack utimensat.
17297         (fdutimens, lutimens): Work around bug.
17298
17299         utimens: check for ctime update
17300         * tests/test-utimens-common.h (check_ctime): Define.
17301         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
17302         * tests/test-futimens.h (test_futimens): Likewise.
17303         * tests/test-lutimens.h (test_lutimens): Likewise.
17304         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17305         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17306
17307 2009-12-19  Bruno Haible  <bruno@clisp.org>
17308
17309         dprintf-posix: Check against memory leak fixed on 2009-12-15.
17310         * tests/test-dprintf-posix2.sh: New file.
17311         * tests/test-dprintf-posix2.c: New file.
17312         * modules/dprintf-posix-tests (Files): Add them.
17313         (configure.ac): Check for getrlimit and setrlimit.
17314         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
17315
17316 2009-12-19  Bruno Haible  <bruno@clisp.org>
17317
17318         fprintf-posix: Check against memory leak fixed on 2009-12-15.
17319         * tests/test-fprintf-posix3.sh: New file.
17320         * tests/test-fprintf-posix3.c: New file.
17321         * modules/fprintf-posix-tests (Files): Add them.
17322         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
17323
17324 2009-12-19  Eric Blake  <ebb9@byu.net>
17325
17326         dirfd: fix prototype
17327         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
17328         * lib/dirfd.c (dirfd): Likewise.
17329
17330         canonicalize: reduce memory usage
17331         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
17332         allocation to size.
17333         Reported by Solar Designer <solar@openwall.com>.
17334
17335 2009-12-19  Bruno Haible  <bruno@clisp.org>
17336
17337         New module attribute 'Applicability'.
17338         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
17339         * gnulib-tool: New option --extract-applicability.
17340         (func_usage): Document it.
17341         (sed_extract_prog): Recognize it.
17342         (func_get_applicability): New function.
17343         (func_import): Generalize handling of 'link-warning' module.
17344         * modules/link-warning (Applicability): New section.
17345         * modules/arg-nonnull (Applicability): New section.
17346         Repoted by Simon Josefsson <simon@josefsson.org>.
17347
17348 2009-12-19  Bruno Haible  <bruno@clisp.org>
17349
17350         fflush: tweak
17351         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
17352         * lib/fseeko.c (rpl_fseeko): Likewise.
17353
17354 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
17355
17356         * lib/gl_list.h: Fix typo in comment.
17357
17358 2009-12-16  Eric Blake  <ebb9@byu.net>
17359
17360         fcntl: use to simplify other modules
17361         * modules/cloexec (Depends-on): Add fcntl.
17362         * modules/fchdir (Depends-on): Likewise.
17363         * modules/fd-safer-flag (Depends-on): Likewise.
17364         * modules/unistd-safer (Depends-on): Likewise.
17365         * modules/dup3 (configure.ac): Set module indicator.
17366         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
17367         missing.
17368         * lib/fchdir.c (_gl_register_dup): Fix comment.
17369         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
17370         * lib/dup-safer.c (dup_safer): Likewise.
17371         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
17372         * lib/dup3.c (dup3): Likewise.
17373         * tests/test-fchdir.c (main): Enhance test.
17374         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
17375
17376         fcntl: port portions of fcntl to mingw
17377         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
17378         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
17379         replacement for mingw.
17380         * modules/fcntl (Description): Update.
17381         (Depends-on): Add dup2.
17382         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
17383         * modules/fcntl-h (Makefile.am): Substitute it.
17384         * lib/fcntl.in.h (fcntl): Update declaration.
17385         (F_DUPFD, F_GETFD): New macros, when needed.
17386         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17387         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
17388         * tests/test-fcntl.c (check_flags, main): Enhance test for items
17389         we now guarantee.
17390
17391         fcntl: work around cygwin bug in F_DUPFD
17392         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
17393         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
17394         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
17395         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
17396         * doc/posix-functions/fcntl.texi (fcntl): Document it.
17397
17398         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
17399         * modules/fcntl (Files): List new files.
17400         (configure.ac): Run a test.
17401         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
17402         * lib/fcntl.c (rpl_fcntl): Likewise.
17403         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
17404         (gl_FCNTL_H): Always replace fcntl.h.
17405         * modules/fcntl-h (Makefile.am): Substitute witnesses.
17406         * lib/fcntl.in.h (fcntl): Declare replacement.
17407         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
17408         needed, plus a witness.
17409         * doc/posix-functions/fcntl.texi (fcntl): Document this.
17410         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17411         * tests/test-fcntl.c: New file.
17412         * modules/fcntl-tests: Likewise.
17413
17414         binary-io: avoid potential compilation warning
17415         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
17416         directives.
17417
17418         fflush: avoid compilation error on NetBSD
17419         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
17420         between off_t and fpos_t, since the latter is sometimes a struct.
17421         * lib/fseeko.c (rpl_fseeko): Likewise.
17422         Reported by Alexander Nasonov <alnsn@yandex.ru>.
17423
17424 2009-12-15  Eric Blake  <ebb9@byu.net>
17425
17426         fcntl-h, stdio, sys_ioctl: fix declarations
17427         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
17428         function must not take arguments.
17429         * lib/sys_ioctl.in.h (ioctl): Likewise.
17430         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
17431         (open): Add a link warning.
17432
17433 2009-12-15  Jim Meyering  <meyering@redhat.com>
17434
17435         areadlink, areadlink-with-size: relax license to LGPLv2+
17436         * modules/areadlink (License): Relax to LGPLv2+.
17437         * modules/areadlink-with-size (License): Likewise.
17438
17439 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
17440             Bruno Haible  <bruno@clisp.org>
17441
17442         *printf: Fix memory leak.
17443         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
17444         * lib/vfprintf.c (vfprintf): Likewise.
17445         * lib/dprintf.c (dprintf): Likewise.
17446         * lib/vdprintf.c (vdprintf): Likewise.
17447
17448 2009-12-14  Eric Blake  <ebb9@byu.net>
17449
17450         accept4: adjust module dependencies
17451         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
17452
17453         utimens: one more try at avoiding compiler warning
17454         * lib/utimens.c (lutimens): Lower scope of result.
17455
17456 2009-12-13  Bruno Haible  <bruno@clisp.org>
17457
17458         Move the malloc checking from module 'list' to new module 'xlist'.
17459         * modules/xlist: New file.
17460         * lib/gl_xlist.h: New file.
17461         * lib/gl_xlist.c: New file.
17462         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
17463         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
17464         gl_list_add_last, gl_list_add_before, gl_list_add_after,
17465         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
17466         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
17467         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
17468         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
17469         gl_sortedlist_nx_add): New declarations.
17470         (struct gl_list_implementation): Rename and change methods accordingly.
17471         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
17472         (gl_list_nx_create): Renamed from gl_list_create.
17473         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
17474         (gl_list_nx_set_at): Renamed from gl_list_set_at.
17475         (gl_list_nx_add_first): Renamed from gl_list_add_first.
17476         (gl_list_nx_add_last): Renamed from gl_list_add_last.
17477         (gl_list_nx_add_before): Renamed from gl_list_add_before.
17478         (gl_list_nx_add_after): Renamed from gl_list_add_after.
17479         (gl_list_nx_add_at): Renamed from gl_list_add_at.
17480         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
17481         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
17482         gl_list_create_empty.
17483         (gl_list_nx_create): Renamed from gl_list_create.
17484         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
17485         (gl_list_nx_set_at): Renamed from gl_list_set_at.
17486         (gl_list_nx_add_first): Renamed from gl_list_add_first.
17487         (gl_list_nx_add_last): Renamed from gl_list_add_last.
17488         (gl_list_nx_add_before): Renamed from gl_list_add_before.
17489         (gl_list_nx_add_after): Renamed from gl_list_add_after.
17490         (gl_list_nx_add_at): Renamed from gl_list_add_at.
17491         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
17492         * lib/gl_array_list.c: Don't include xalloc.h.
17493         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
17494         NULL upon out-of-memory.
17495         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
17496         out-of-memory.
17497         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
17498         Change return type to 'int'.
17499         (gl_array_nx_set_at): Renamed from gl_array_set_at.
17500         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
17501         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
17502         upon out-of-memory.
17503         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
17504         upon out-of-memory.
17505         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
17506         upon out-of-memory.
17507         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
17508         upon out-of-memory.
17509         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
17510         out-of-memory.
17511         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
17512         Update.
17513         (gl_array_list_implementation): Update.
17514         * lib/gl_carray_list.c: Don't include xalloc.h.
17515         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
17516         Return NULL upon out-of-memory.
17517         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
17518         out-of-memory.
17519         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
17520         Change return type to 'int'.
17521         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
17522         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
17523         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
17524         upon out-of-memory.
17525         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
17526         upon out-of-memory.
17527         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
17528         out-of-memory.
17529         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
17530         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
17531         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
17532         Update.
17533         (gl_carray_list_implementation): Update.
17534         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
17535         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
17536         gl_linked_create_empty. Return NULL upon out-of-memory.
17537         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
17538         out-of-memory.
17539         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
17540         Change return type to 'int'. Return -1 upon out-of-memory.
17541         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
17542         out-of-memory.
17543         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
17544         upon out-of-memory.
17545         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
17546         upon out-of-memory.
17547         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
17548         NULL upon out-of-memory.
17549         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
17550         upon out-of-memory.
17551         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
17552         out-of-memory.
17553         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
17554         Update.
17555         * lib/gl_linked_list.c: Don't include xalloc.h.
17556         (gl_linked_list_implementation): Update.
17557         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
17558         (add_to_bucket): Change return type to 'int'.
17559         (gl_linkedhash_list_implementation): Update.
17560         * lib/gl_anytree_list1.h (free_subtree): New function.
17561         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
17562         gl_tree_create_empty. Return NULL upon out-of-memory.
17563         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
17564         Change return type to 'int'. Return -1 upon out-of-memory.
17565         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
17566         out-of-memory.
17567         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
17568         (gl_tree_remove_node): New function, moved here from
17569         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
17570         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
17571         Update.
17572         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
17573         malloc, not xmalloc. Return NULL upon out-of-memory.
17574         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17575         out-of-memory.
17576         (gl_tree_remove_node_from_tree): New function, extracted from
17577         gl_tree_remove_node.
17578         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17579         upon out-of-memory.
17580         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17581         out-of-memory.
17582         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17583         upon out-of-memory.
17584         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17585         upon out-of-memory.
17586         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17587         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
17588         not xmalloc. Return NULL upon out-of-memory.
17589         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
17590         out-of-memory.
17591         (gl_tree_remove_node_from_tree): New function, extracted from
17592         gl_tree_remove_node.
17593         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
17594         upon out-of-memory.
17595         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
17596         out-of-memory.
17597         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
17598         upon out-of-memory.
17599         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
17600         upon out-of-memory.
17601         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
17602         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
17603         gl_anytree_list1.h before gl_anyavltree_list2.h.
17604         (gl_avltree_list_implementation): Update.
17605         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
17606         gl_anytree_list1.h before gl_anyavltree_list2.h.
17607         (gl_rbtree_list_implementation): Update.
17608         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
17609         Change return type to 'int'. Return -1 upon out-of-memory. Use
17610         __builtin_expect.
17611         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
17612         (gl_avltreehash_list_implementation): Update.
17613         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
17614         (gl_rbtreehash_list_implementation): Update.
17615         * modules/array-list (Depends-on): Remove xalloc.
17616         * modules/carray-list (Depends-on): Likewise.
17617         * modules/linked-list (Depends-on): Likewise.
17618         * modules/linkedhash-list (Depends-on): Likewise.
17619         * modules/avltree-list (Depends-on): Likewise.
17620         * modules/rbtree-list (Depends-on): Likewise.
17621         * modules/avltreehash-list (Depends-on): Likewise.
17622         * modules/rbtreehash-list (Depends-on): Likewise.
17623
17624         * modules/xsublist: New file.
17625         * lib/gl_xsublist.h: New file.
17626         * lib/gl_xsublist.c: New file.
17627         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
17628         (gl_sublist_nx_create): New declaration.
17629         * lib/gl_sublist.c: Don't include xalloc.h.
17630         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
17631         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
17632         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
17633         Change return type to 'int'. Return -1 upon out-of-memory.
17634         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
17635         upon out-of-memory.
17636         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
17637         NULL upon out-of-memory.
17638         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
17639         upon out-of-memory.
17640         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
17641         NULL upon out-of-memory.
17642         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
17643         NULL upon out-of-memory.
17644         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
17645         upon out-of-memory.
17646         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
17647         (gl_sublist_list_implementation): Update.
17648         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
17649         upon out-of-memory.
17650         * modules/sublist (Depends-on): Remove xalloc.
17651
17652         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
17653         * tests/test-carray_list.c: Likewise.
17654         * tests/test-linked_list.c: Likewise.
17655         * tests/test-linkedhash_list.c: Likewise.
17656         * tests/test-avltree_list.c: Likewise.
17657         * tests/test-rbtree_list.c: Likewise.
17658         * tests/test-avltreehash_list.c: Likewise.
17659         * tests/test-rbtreehash_list.c: Likewise.
17660         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
17661         * modules/carray-list-tests (Makefile.am): Likewise.
17662         * modules/linked-list-tests (Makefile.am): Likewise.
17663         * modules/linkedhash-list-tests (Makefile.am): Likewise.
17664         * modules/avltree-list-tests (Makefile.am): Likewise.
17665         * modules/rbtree-list-tests (Makefile.am): Likewise.
17666         * modules/avltreehash-list-tests (Makefile.am): Likewise.
17667         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
17668
17669         * NEWS: Mention the changes.
17670
17671         * lib/clean-temp.c: Include gl_xlist.h.
17672         * modules/clean-temp (Depends-on): Add xlist.
17673
17674         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
17675         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
17676
17677         * tests/test-array_oset.c: Include gl_xlist.h.
17678         * modules/array-oset-tests (Depends-on): Add xlist.
17679
17680         Reported by José E. Marchesi <jemarch@gnu.org>.
17681
17682 2009-12-13  Bruno Haible  <bruno@clisp.org>
17683
17684         Move the malloc checking from module 'oset' to new module 'xoset'.
17685         * modules/xoset: New file.
17686         * lib/gl_xoset.h: New file.
17687         * lib/gl_xoset.c: New file.
17688         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
17689         declarations.
17690         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
17691         (struct gl_oset_implementation): Rename and change methods accordingly.
17692         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
17693         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17694         'int'. Mark as __warn_unused_result__.
17695         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
17696         gl_oset_create_empty.
17697         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
17698         'int'.
17699         * lib/gl_array_oset.c: Don't include xalloc.h.
17700         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
17701         malloc, not xmalloc.
17702         (grow): Change return type to 'int'. Don't call xalloc_die.
17703         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
17704         to 'int'.
17705         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
17706         'int'.
17707         (gl_array_oset_implementation): Update.
17708         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
17709         gl_tree_create_empty.
17710         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
17711         'int'.
17712         * lib/gl_avltree_oset.c: Don't include xalloc.h.
17713         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17714         xmalloc.
17715         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17716         not xmalloc.
17717         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17718         xmalloc.
17719         (gl_avltree_oset_implementation): Update.
17720         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
17721         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
17722         xmalloc.
17723         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
17724         not xmalloc.
17725         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
17726         xmalloc.
17727         (gl_rbtree_oset_implementation): Update.
17728         * modules/array-oset (Depends-on): Remove xalloc.
17729         * modules/avltree-oset (Depends-on): Likewise.
17730         * modules/rbtree-oset (Depends-on): Likewise.
17731         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
17732         * tests/test-avltree_oset.c: Likewise.
17733         * tests/test-rbtree_oset.c: Likewise.
17734         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17735         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
17736         * modules/rbtree-oset-tests (Makefile.am): Likewise.
17737         * NEWS: Mention the change.
17738
17739 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
17740
17741         maint.mk: allow a project to override release-prep commands
17742         * top/maint.mk (alpha, beta, stable): Move release-preparatory
17743         commands into a new rule.
17744         (release-prep): New rule.
17745         (release-prep-hook): New overridable variable.
17746
17747 2009-12-13  Bruno Haible  <bruno@clisp.org>
17748
17749         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
17750
17751 2009-12-13  Jim Meyering  <meyering@redhat.com>
17752
17753         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
17754         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
17755
17756 2009-12-12  Bruno Haible  <bruno@clisp.org>
17757
17758         duplocale: Tweak.
17759         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
17760
17761 2009-12-12  Karl Berry  <karl@gnu.org>
17762
17763         * config/srclist.txt (strtoll.c): tab changes, no more sync.
17764
17765 2009-12-12  Bruno Haible  <bruno@clisp.org>
17766
17767         * m4/po.m4: Undo incorrect untabification.
17768
17769 2009-12-12  Bruno Haible  <bruno@clisp.org>
17770
17771         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
17772         * modules/c-strtod (Depends-on): Add locale.
17773         * modules/c-strtold (Depends-on): Likewise.
17774
17775 2009-12-12  Bruno Haible  <bruno@clisp.org>
17776
17777         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
17778
17779 2009-12-11  Eric Blake  <ebb9@byu.net>
17780
17781         setenv: relax requirement in light of POSIX ruling
17782         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
17783         not NULL.
17784         * tests/test-setenv.c (main): Relax test.
17785         * tests/test-unsetenv.c (main): Likewise.
17786         * doc/posix-functions/setenv.texi (setenv): Document this.
17787         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
17788
17789 2009-12-11  Bruno Haible  <bruno@clisp.org>
17790
17791         New module 'fd-safer-flag'.
17792         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
17793         * lib/dup-safer.c (dup_safer_flag): Remove function.
17794         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
17795         * lib/fd-safer.c (fd_safer_flag): Remove function.
17796         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
17797         * modules/cloexec (configure.ac): Drop indicator macro.
17798         * modules/fd-safer-flag: New file.
17799         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
17800         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
17801         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
17802
17803 2009-12-11  Bruno Haible  <bruno@clisp.org>
17804
17805         Tests for module 'nl_langinfo'.
17806         * modules/nl_langinfo-tests: New file.
17807         * tests/test-nl_langinfo.sh: New file.
17808         * tests/test-nl_langinfo.c: New file.
17809
17810         New module 'nl_langinfo'.
17811         * lib/nl_langinfo.c: New file.
17812         * m4/nl_langinfo.m4: New file.
17813         * modules/nl_langinfo: New file.
17814         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
17815
17816 2009-12-11  Bruno Haible  <bruno@clisp.org>
17817
17818         Tests for module 'langinfo'.
17819         * modules/langinfo-tests: New file.
17820         * tests/test-langinfo.c: New file.
17821
17822         New module 'langinfo'.
17823         * lib/langinfo.in.h: New file.
17824         * m4/langinfo_h.m4: New file.
17825         * modules/langinfo: New file.
17826         * doc/posix-headers/langinfo.texi: Mention the new module.
17827
17828 2009-12-11  Bruno Haible  <bruno@clisp.org>
17829
17830         * lib/config.charset: Untabify.
17831
17832 2009-12-11  Bruno Haible  <bruno@clisp.org>
17833
17834         * modules/unistd-safer (configure.ac): Drop indicator macro.
17835
17836 2009-12-11  Bruno Haible  <bruno@clisp.org>
17837
17838         Move pipe2-safer code to its own file.
17839         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
17840         * lib/pipe-safer.c (pipe2_safer): Remove function.
17841         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
17842         (Makefile.am): Add it to lib_SOURCES.
17843
17844 2009-12-10  Bruno Haible  <bruno@clisp.org>
17845
17846         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
17847
17848 2009-12-10  Bruno Haible  <bruno@clisp.org>
17849
17850         Declare which arguments expect non-NULL values, for GCC and clang.
17851         * build-aux/arg-nonnull.h: New file.
17852         * modules/arg-nonnull: New file.
17853         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
17854         (inet_ntop, inet_pton): Use it.
17855         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
17856         (closedir, dirfd, opendir, scandir, alphasort): Use it.
17857         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
17858         (open, openat): Use it.
17859         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
17860         (fnmatch): Use it.
17861         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
17862         (getopt, getopt_long, getopt_long_only): Use it.
17863         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
17864         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
17865         Use it.
17866         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
17867         (iconv_open): Use it.
17868         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
17869         (strtoimax, strtoumax): Use it.
17870         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
17871         (duplocale): Use it.
17872         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
17873         (frexp, frexpl): Use it.
17874         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
17875         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
17876         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
17877         (tsearch, tfind, tdelete, twalk): Use it.
17878         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
17879         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17880         sigpending): Use it.
17881         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
17882         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17883         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17884         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17885         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17886         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17887         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17888         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17889         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17890         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17891         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17892         Use it.
17893         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
17894         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
17895         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
17896         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
17897         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
17898         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
17899         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
17900         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
17901         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
17902         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
17903         strtoull, unsetenv): Use it.
17904         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
17905         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17906         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17907         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
17908         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
17909         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
17910         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
17911         (strcasecmp, strncasecmp): Use it.
17912         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
17913         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
17914         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
17915         rpl_setsockopt): Use it.
17916         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
17917         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
17918         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
17919         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
17920         (gettimeofday): Use it.
17921         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
17922         (times): Use it.
17923         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
17924         (uname): Use it.
17925         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
17926         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
17927         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
17928         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
17929         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
17930         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
17931         unlinkat, write): Use it.
17932         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
17933         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
17934         * lib/argv-iter.h: Include arg-nonnull.h.
17935         (_ATTRIBUTE_NONNULL_): Remove macro.
17936         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
17937         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
17938         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
17939         optimization.
17940         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
17941         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
17942         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
17943         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
17944         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
17945         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
17946         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
17947         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
17948         * modules/arpa_inet (Depends-on): Add arg-nonnull.
17949         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
17950         * modules/dirent (Depends-on): Add arg-nonnull.
17951         (Makefile.am): Insert arg-nonnull.h into dirent.h.
17952         * modules/fcntl-h (Depends-on): Add arg-nonnull.
17953         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
17954         * modules/fnmatch (Depends-on): Add arg-nonnull.
17955         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
17956         * modules/getopt-posix (Depends-on): Add arg-nonnull.
17957         (Makefile.am): Insert arg-nonnull.h into getopt.h.
17958         * modules/glob (Depends-on): Add arg-nonnull.
17959         (Makefile.am): Insert arg-nonnull.h into glob.h.
17960         * modules/iconv_open (Depends-on): Add arg-nonnull.
17961         (Makefile.am): Insert arg-nonnull.h into iconv.h.
17962         * modules/inttypes (Depends-on): Add arg-nonnull.
17963         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
17964         * modules/locale (Depends-on): Add arg-nonnull.
17965         (Makefile.am): Insert arg-nonnull.h into locale.h.
17966         * modules/math (Depends-on): Add arg-nonnull.
17967         (Makefile.am): Insert arg-nonnull.h into math.h.
17968         * modules/netdb (Depends-on): Add arg-nonnull.
17969         (Makefile.am): Insert arg-nonnull.h into netdb.h.
17970         * modules/search (Depends-on): Add arg-nonnull.
17971         (Makefile.am): Insert arg-nonnull.h into search.h.
17972         * modules/signal (Depends-on): Add arg-nonnull.
17973         (Makefile.am): Insert arg-nonnull.h into signal.h.
17974         * modules/spawn (Depends-on): Add arg-nonnull.
17975         (Makefile.am): Insert arg-nonnull.h into spawn.h.
17976         * modules/stdio (Depends-on): Add arg-nonnull.
17977         (Makefile.am): Insert arg-nonnull.h into stdio.h.
17978         * modules/stdlib (Depends-on): Add arg-nonnull.
17979         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
17980         * modules/string (Depends-on): Add arg-nonnull.
17981         (Makefile.am): Insert arg-nonnull.h into string.h.
17982         * modules/strings (Depends-on): Add arg-nonnull.
17983         (Makefile.am): Insert arg-nonnull.h into strings.h.
17984         * modules/sys_socket (Depends-on): Add arg-nonnull.
17985         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
17986         * modules/sys_stat (Depends-on): Add arg-nonnull.
17987         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
17988         * modules/sys_time (Depends-on): Add arg-nonnull.
17989         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
17990         * modules/sys_times (Depends-on): Add arg-nonnull.
17991         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
17992         * modules/sys_utsname (Depends-on): Add arg-nonnull.
17993         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
17994         * modules/time (Depends-on): Add arg-nonnull.
17995         (Makefile.am): Insert arg-nonnull.h into time.h.
17996         * modules/unistd (Depends-on): Add arg-nonnull.
17997         (Makefile.am): Insert arg-nonnull.h into unistd.h.
17998         * modules/wchar (Depends-on): Add arg-nonnull.
17999         (Makefile.am): Insert arg-nonnull.h into wchar.h.
18000         * modules/argv-iter (Depends-on): Add arg-nonnull.
18001         * tests/test-canonicalize.c (null_ptr): New function.
18002         (main): Use it.
18003         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
18004         (main): Use it.
18005         * tests/test-memmem.c (null_ptr): New function.
18006         (main): Use it.
18007         Reported by Jim Meyering.
18008
18009 2009-12-10  Bruno Haible  <bruno@clisp.org>
18010
18011         Use spaces for indentation, not tabs.
18012         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18013         * m4/*.m4: Untabify.
18014         * build-aux/*.h: Untabify.
18015         * tests/**/*.[hc]: Untabify.
18016         * README: New section "Indent with spaces, not TABs", based on
18017         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
18018         * NEWS: Mention the change.
18019
18020 2009-12-10  Bruno Haible  <bruno@clisp.org>
18021
18022         pty test: Fix link error.
18023         * modules/pty-tests (Makefile.am): Add the default LDADD value to
18024         test_pty_LDADD.
18025
18026 2009-12-07  Simon Josefsson  <simon@josefsson.org>
18027
18028         * modules/pty: New file.
18029         * modules/pty-tests: New file.
18030         * m4/pty.m4: New file.
18031         * tests/test-pty.c: New file.
18032         * doc/glibc-headers/pty.texi: Modified.
18033         * doc/glibc-functions/forkpty.texi: Modified.
18034         * doc/glibc-functions/openpty.texi: Modified.
18035
18036 2009-12-10  Bruno Haible  <bruno@clisp.org>
18037
18038         Avoid syntax error in C++ mode.
18039         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
18040
18041 2009-12-10  Bruno Haible  <bruno@clisp.org>
18042
18043         Use sed with option -e.
18044         * gnulib-tool (func_version, func_emit_copyright_notice,
18045         func_emit_initmacro_end, func_import, func_create_testdir): Pass
18046         option -e to sed.
18047         * modules/link-warning (Makefile.am): Likewise.
18048
18049 2009-12-10  Jim Meyering  <meyering@redhat.com>
18050
18051         mgetgroups: do not write bytes beyond end of malloc'd buffer
18052         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
18053         username, we call getgroups with a one-element-shorter buffer,
18054         but still told it the length was original, max_n_groups.
18055
18056 2009-12-09  Eric Blake  <ebb9@byu.net>
18057
18058         cloexec: relax license
18059         * modules/cloexec (Maintainer): Add myself.
18060         (License): Use LGPL, not GPL.
18061
18062         link-warning: optimize generation
18063         * modules/link-warning (Makefile.am): Reduce process usage.
18064
18065 2009-12-09  Bruno Haible  <bruno@clisp.org>
18066
18067         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
18068         workaround was added on 2009-11-17.
18069
18070 2009-12-09  Jim Meyering  <meyering@redhat.com>
18071             Bruno Haible  <bruno@clisp.org>
18072
18073         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
18074         * modules/link-warning (Makefile.am): Make the comment-removing sed
18075         command more robust in the face of bootstrap-prepended comment lines.
18076
18077 2009-12-09  Bruno Haible  <bruno@clisp.org>
18078
18079         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
18080         most one group.
18081
18082 2009-12-09  Simon Josefsson <simon@josefsson.org>
18083             Bruno Haible  <bruno@clisp.org>
18084
18085         * build-aux/link-warning.h: Add copyright notice.
18086         * modules/link-warning (Makefile.am): Generate link-warning.h from
18087         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
18088         * NEWS: Mention change in link-warning module.
18089         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
18090         * modules/dirent (Makefile.am): Add dependency to dirent.h.
18091         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
18092         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
18093         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
18094         * modules/math (Makefile.am): Add dependency to math.h.
18095         * modules/search (Makefile.am): Add dependency to search.h.
18096         * modules/signal (Makefile.am): Add dependency to signal.h.
18097         * modules/spawn (Makefile.am): Add dependency to spawn.h.
18098         * modules/stdio (Makefile.am): Add dependency to stdio.h.
18099         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
18100         * modules/string (Makefile.am): Add dependency to string.h.
18101         * modules/strings (Makefile.am): Add dependency to strings.h.
18102         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
18103         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
18104         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
18105         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
18106         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
18107         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
18108         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
18109         * modules/unistd (Makefile.am): Add dependency to unistd.h.
18110         * modules/wchar (Makefile.am): Add dependency to wchar.h.
18111
18112 2009-12-09  Bruno Haible  <bruno@clisp.org>
18113
18114         fchdir: Optimize away rpl_fstat when possible.
18115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
18116         REPLACE_OPEN_DIRECTORY.
18117         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
18118
18119 2009-12-09  Bruno Haible  <bruno@clisp.org>
18120
18121         * lib/fchdir.c: Update comment.
18122
18123 2009-12-09  Bruno Haible  <bruno@clisp.org>
18124
18125         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
18126
18127 2009-12-08  Eric Blake  <ebb9@byu.net>
18128
18129         fchdir: avoid memory leak on re-registration.
18130         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
18131
18132 2009-12-08  Jim Meyering  <meyering@redhat.com>
18133
18134         init.sh: avoid Solaris 10 /bin/sh portability problem
18135         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
18136         sourced script:
18137           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
18138           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
18139           bar
18140         tests/init.sh relied on that, accepting a --set-path=DIR argument,
18141         and two tests used that idiom.
18142         * tests/init.sh: Update suggested usage comments.
18143         (path_prepend_): New function, to be used in place
18144         of the --src-path=DIR option.
18145         (setup_): Move PATH-prepending code into path_prepend_.
18146         * tests/test-pread.sh: Adapt to new usage.
18147         * tests/test-xalloc-die.sh: Likewise.
18148
18149 2009-12-08  Simon Josefsson  <simon@josefsson.org>
18150
18151         * doc/gnulib.texi (Glibc pty.h): Add.
18152         * doc/glibc-functions/forkpty.texi: Add.
18153         * doc/glibc-functions/openpty.texi: Add.
18154         Suggested by Bruno Haible.
18155
18156 2009-12-08  Eric Blake  <ebb9@byu.net>
18157
18158         fchdir: fix logic bugs
18159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
18160         * tests/test-fchdir.c (main): Enhance test.
18161         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
18162         is in use.
18163
18164         dup2: fix logic bugs
18165         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
18166         REPLACE_DUP2 to decide when rpl_dup2 is needed.
18167         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
18168         exists.
18169         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
18170
18171 2009-12-07  Eric Blake  <ebb9@byu.net>
18172
18173         unlink: fix m4 detection
18174         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
18175
18176         unistd-safer: add unit test
18177         * modules/unistd-safer-tests: New file.
18178         * tests/test-dup-safer.c: Likewise.
18179         * tests/test-cloexec.c (setmode): Avoid compiler warning.
18180         * tests/test-dup2.c (setmode): Likewise.
18181         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
18182
18183         cloexec: preserve text vs. binary across dup_cloexec
18184         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
18185         mode.
18186         * modules/dup2-tests (Depends-on): Add binary-io.
18187         * modules/cloexec-tests (Depends-on): Likewise.
18188         * tests/test-dup2.c (setmode, is_mode): New helpers.
18189         (main): Add tests that translation mode is preserved.
18190         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
18191         Reported by Bruno Haible.
18192
18193         mgetgroups: reduce duplicate listings
18194         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
18195         resulting array.
18196         * tests/test-chown.h (test_chown): Simplify client.
18197         * tests/test-lchown.h (test_lchown): Likewise.
18198
18199 2009-12-06  Bruno Haible  <bruno@clisp.org>
18200
18201         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
18202         value.
18203
18204 2009-12-06  Bruno Haible  <bruno@clisp.org>
18205
18206         * lib/progname.c: Include stdio.h, stdlib.h.
18207         (set_program_name): Reject a NULL argument.
18208
18209 2009-12-05  Eric Blake  <ebb9@byu.net>
18210
18211         pipe2-safer: new module
18212         * modules/pipe2-safer: New file.
18213         * lib/unistd-safer.h (pipe2_safer): New prototype.
18214         * lib/unistd--.h (pipe2): New wrapper.
18215         * lib/pipe-safer.c (pipe2_safer): New function.
18216         * modules/pipe (Depends-on): Add pipe2-safer.
18217         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
18218
18219         stdlib-safer: preserve cloexec flag for mkostemp[s]
18220         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
18221         fd_safer_flag.
18222
18223         unistd-safer: allow preservation of cloexec status via flag
18224         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
18225         prototypes.
18226         * lib/dup-safer.c (dup_safer_flag): New function.
18227         * lib/fd-safer.c (fd_safer_flag): Likewise.
18228         * modules/cloexec (configure.ac): Set witness.
18229
18230         test-dup2: enhance test
18231         * modules/dup2-tests (Depends-on): Add cloexec.
18232         * tests/test-dup2.c (main): Enhance test.
18233
18234         cloexec: add dup_cloexec
18235         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
18236         header and comments.
18237         * lib/cloexec.c (set_cloexec_flag): Add comments.
18238         (dup_cloexec): New function, with mingw implementation borrowed
18239         from...
18240         * lib/w32spawn.h (dup_noinherit): ...here.
18241         * modules/execute (Depends-on): Add cloexec.
18242         * modules/pipe (Depends-on): Likewise.
18243         * modules/cloexec (Depends-on): Add dup2.
18244         * modules/cloexec-tests (Files): New file.
18245         * tests/test-cloexec.c: Likewise.
18246
18247         test-xalloc-die: fix test for mingw
18248         * modules/xalloc-die-tests (Files): Add tests/init.sh.
18249         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
18250         directory and .exe suffix off argv[0] output.
18251
18252         test-fseeko: fix test for mingw
18253         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
18254         than undefining fseek, so test will pass on mingw.
18255
18256 2009-12-05  Bruno Haible  <bruno@clisp.org>
18257
18258         * lib/progname.h (set_program_name): Clarify specification.
18259         * lib/progname.c (set_program_name): Likewise.
18260         Reported by Jim Meyering.
18261
18262 2009-12-05  Jim Meyering  <meyering@redhat.com>
18263
18264         maint.mk: backslash-escape parens in default regexp
18265         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
18266         backslash-escape the literal parentheses.
18267
18268         maint.mk: news-date-check: use grep -E
18269         * top/maint.mk (today): Define a Make variable, not a...
18270         (news-date-check): ...shell variable.
18271         (news-date-regexp): Use the Make variable.
18272         Use grep's -E option.  Change the failing diagnostic to mention
18273         the variable, $(news-date-regexp).
18274
18275 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
18276
18277         maintainer-makefile: allow customization of NEWS entry format
18278         * top/maint.mk (news-date-regexp): New overridable variable.
18279         (news-date-check): Use it.
18280
18281 2009-12-04  Eric Blake  <ebb9@byu.net>
18282
18283         mgetgroups: add xgetgroups, and avoid ENOSYS failures
18284         * lib/mgetgroups.h (xgetgroups): New prototype.
18285         * lib/mgetgroups.c (xgetgroups): New wrapper.
18286         (mgetgroups): Handle ENOSYS.
18287         * modules/mgetgroups (Depends-on): Add realloc.
18288         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
18289
18290         mgetgroups: avoid argument promotion issues with -1
18291         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
18292         for invalid gid_t.
18293         * tests/test-chown.h (getegid, test_chown): Likewise.
18294         * tests/test-lchown.h (getegid, test_lchown): Likewise.
18295
18296 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
18297
18298         exclude: Fix header file problems.
18299         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
18300
18301 2009-12-01  Jim Meyering  <meyering@redhat.com>
18302
18303         fts: fts_open: do not let an empty string cause immediate failure
18304         This is required in support of GNU rm, for which the command
18305         "rm A '' B" must process and remove both A and B, in spite of
18306         the empty string argument.
18307         * lib/fts.c (fts_open): Do not let the presence of an empty string
18308         cause fts_open to fail immediately.  Most fts-using tools must be
18309         able to process all arguments, in order, and can be expected to
18310         diagnose such arguments themselves.
18311
18312 2009-11-30  Eric Blake  <ebb9@byu.net>
18313
18314         utimens: fix compilation error
18315         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
18316         Declare variable at right scope.
18317
18318 2009-11-29  Jim Meyering  <meyering@redhat.com>
18319
18320         bootstrap: handle perl-5.11's changed --version output
18321         * build-aux/bootstrap (get_version): Handle perl separately,
18322         since perl-5.11's --version output is different.
18323
18324 2009-11-28  Jim Meyering  <meyering@redhat.com>
18325
18326         userspec: depend on the inttostr module, too
18327         * modules/userspec (Depends-on): Add inttostr.
18328
18329         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
18330         * lib/userspec.c (parse_with_separator): Do not accept a user ID
18331         number of MAXUID when it evaluates to (uid_t) -1.
18332         Likewise for group ID.  Reported by Matt McCutchen in
18333         <http://savannah.gnu.org/bugs/?28113>
18334
18335         userspec: reformat to use spaces, not TABs
18336         * lib/userspec.c: Expand TABs to spaces.
18337         Add Emacs' "indent-tabs-mode: nil" hint.
18338
18339 2009-11-27  Eric Blake  <ebb9@byu.net>
18340
18341         getopt-gnu: flush out another BSD bug
18342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
18343         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
18344         flush out BSD bug.
18345         * tests/test-getopt.h (test_getopt): End lists with NULL.
18346         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18347         (test_getopt_long_posix): Enhance test.
18348         * modules/getopt-posix-tests (Depends-on): Add stdbool.
18349         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
18350         getopt-gnu.
18351         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18352         Likewise.
18353
18354 2009-11-27  Simon Josefsson  <simon@josefsson.org>
18355
18356         * modules/idpriv-droptemp-tests (Notice): Fix text.
18357
18358 2009-11-27  Jim Meyering  <meyering@redhat.com>
18359
18360         test-xalloc-die: avoid spurious failure due to libtool argv difference
18361         In a libtool-enabled project, this test would fail due to a difference
18362         in the emitted program name, e.g.,
18363         -test-xalloc-die: memory exhausted
18364         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
18365         Use program to avoid that.
18366         * modules/xalloc-die-tests (Depends-on): Add progname.
18367         * tests/test-xalloc-die.c: Include progname.h".
18368         (program_name): Remove decl.
18369         (main): Call set_program_name.
18370         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
18371
18372 2009-11-26  Richard Jones  <rjones@redhat.com>
18373
18374         w32sock: leave win32 error in place.
18375         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
18376
18377 2009-11-26  Eric Blake  <ebb9@byu.net>
18378
18379         init.sh: suggest to use skip_ and fail_ functions in comments
18380         * tests/init.sh: Add a sentence.
18381
18382 2009-11-25  Bruno Haible  <bruno@clisp.org>
18383
18384         init.sh: add documentation in comments
18385         * tests/init.sh: Add some developer and user documentation.
18386
18387 2009-11-26  Jim Meyering  <meyering@redhat.com>
18388
18389         init.sh: accommodate even those who specify bogus srcdir manually
18390         * tests/init.sh: Normally, srcdir is guaranteed by automake and
18391         configure-time tests to be sanitized, so that there is no need to
18392         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
18393         (with no double quotes) suffices.  However, since tests may be
18394         invoked manually, and since you may explicitly set srcdir to the
18395         name of a directory containing spaces, do quote its uses here.
18396         * tests/test-pread.sh: Likewise.
18397         Suggested by Bruno Haible.
18398
18399         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
18400         * tests/test-pread.sh: Write no data into the pipe, because
18401         test-pread actually reads none.  This avoids a diagnostic,
18402         "bash: echo: write error: Broken pipe", that arises in the unusual
18403         event something is ignoring SIGPIPE, and might be interpreted
18404         as some sort of failure.  Reported by Bruno Haible.
18405
18406 2009-11-25  Jim Meyering  <meyering@redhat.com>
18407
18408         test-pread: cover failure with ESPIPE and EINVAL
18409         * tests/test-pread.c (main): Test for failure, too.
18410         * tests/test-pread.sh: Invoke with stdin on a pipe.
18411         Suggested by Eric Blake.
18412
18413         pread: improvement and fix
18414         * modules/pread (Depends-on): Depend on lseek, for portability to
18415         e.g., mingw.  Suggested by Eric Blake.
18416         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
18417
18418         unistd.in.h: correct declaration of pread
18419         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
18420         Reported by Richard W.M. Jones.
18421
18422         test-pread.sh: distribute the test script
18423         * modules/pread-tests (Files): Include test-pread.sh.
18424
18425         test-pread.sh: clean up
18426         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
18427         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
18428         That is unnecessary, since it's always ".".
18429         Suggestion from Eric Blake.
18430
18431         test-pread.sh: make executable
18432         * tests/test-pread.sh: Set executable bit.
18433         Reported by Eric Blake.
18434
18435         correct typo in test-pread.sh
18436         * tests/test-pread.sh: Add #! line.
18437
18438         test pread
18439         * tests/test-pread.c: New file.
18440         * tests/test-pread.sh: Likewise.
18441         * modules/pread-tests: Likewise.
18442
18443         pread: new module
18444         * modules/pread: New file.
18445         * lib/unistd.in.h (pread): Define/declare.
18446         * lib/pread.c (pread): New file.
18447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
18448         * modules/unistd (Makefile.am): Substitute witnesses.
18449         * doc/posix-functions/pread.texi (pread): Update.
18450         * MODULES.html.sh: Add pread.
18451
18452 2009-11-25  Jim Meyering  <meyering@redhat.com>
18453
18454         tests/init.sh: new file to be used via most *.sh tests
18455         * tests/init.sh: New file.
18456
18457 2009-11-25  Eric Blake  <ebb9@byu.net>
18458
18459         utimens: work around older Linux failure with symlinks
18460         * lib/utimens.c (lutimensat_works_really): New variable.
18461         (fdutimens, lutimens): Use it to manage kernels that support
18462         nanosecond times on files, but not on symlinks.
18463         Reported by OndÅ™ej Vašík.
18464
18465         utimes: fix configure grammar
18466         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
18467
18468 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
18469
18470         regex: Fix fastmap for multibyte character ranges.
18471         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
18472         characters when a multibyte character range is included.
18473
18474 2009-11-22  Andy Wingo  <wingo@pobox.com>
18475
18476         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
18477         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
18478
18479 2009-11-24  Bruno Haible  <bruno@clisp.org>
18480
18481         doc: Most *_l functions exist in MacOS X 10.5.
18482         * doc/posix-functions/duplocale.texi: Update platforms list.
18483         * doc/posix-functions/freelocale.texi: Likewise.
18484         * doc/posix-functions/newlocale.texi: Likewise.
18485         * doc/posix-functions/uselocale.texi: Likewise.
18486         * doc/posix-functions/isalnum_l.texi: Likewise.
18487         * doc/posix-functions/isalpha_l.texi: Likewise.
18488         * doc/posix-functions/isblank_l.texi: Likewise.
18489         * doc/posix-functions/iscntrl_l.texi: Likewise.
18490         * doc/posix-functions/isdigit_l.texi: Likewise.
18491         * doc/posix-functions/isgraph_l.texi: Likewise.
18492         * doc/posix-functions/islower_l.texi: Likewise.
18493         * doc/posix-functions/isprint_l.texi: Likewise.
18494         * doc/posix-functions/ispunct_l.texi: Likewise.
18495         * doc/posix-functions/isspace_l.texi: Likewise.
18496         * doc/posix-functions/isupper_l.texi: Likewise.
18497         * doc/posix-functions/iswalnum_l.texi: Likewise.
18498         * doc/posix-functions/iswalpha_l.texi: Likewise.
18499         * doc/posix-functions/iswblank_l.texi: Likewise.
18500         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18501         * doc/posix-functions/iswctype_l.texi: Likewise.
18502         * doc/posix-functions/iswdigit_l.texi: Likewise.
18503         * doc/posix-functions/iswgraph_l.texi: Likewise.
18504         * doc/posix-functions/iswlower_l.texi: Likewise.
18505         * doc/posix-functions/iswprint_l.texi: Likewise.
18506         * doc/posix-functions/iswpunct_l.texi: Likewise.
18507         * doc/posix-functions/iswspace_l.texi: Likewise.
18508         * doc/posix-functions/iswupper_l.texi: Likewise.
18509         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18510         * doc/posix-functions/isxdigit_l.texi: Likewise.
18511         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
18512         * doc/posix-functions/strcasecmp_l.texi: Likewise.
18513         * doc/posix-functions/strcoll_l.texi: Likewise.
18514         * doc/posix-functions/strfmon_l.texi: Likewise.
18515         * doc/posix-functions/strftime_l.texi: Likewise.
18516         * doc/posix-functions/strncasecmp_l.texi: Likewise.
18517         * doc/posix-functions/strxfrm_l.texi: Likewise.
18518         * doc/posix-functions/tolower_l.texi: Likewise.
18519         * doc/posix-functions/toupper_l.texi: Likewise.
18520         * doc/posix-functions/towctrans_l.texi: Likewise.
18521         * doc/posix-functions/towlower_l.texi: Likewise.
18522         * doc/posix-functions/towupper_l.texi: Likewise.
18523         * doc/posix-functions/wcscoll_l.texi: Likewise.
18524         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18525         * doc/posix-functions/wctrans_l.texi: Likewise.
18526         * doc/posix-functions/wctype_l.texi: Likewise.
18527         * doc/glibc-functions/strptime_l.texi: Likewise.
18528         * doc/glibc-functions/strtod_l.texi: Likewise.
18529         * doc/glibc-functions/strtof_l.texi: Likewise.
18530         * doc/glibc-functions/strtol_l.texi: Likewise.
18531         * doc/glibc-functions/strtold_l.texi: Likewise.
18532         * doc/glibc-functions/strtoll_l.texi: Likewise.
18533         * doc/glibc-functions/strtoul_l.texi: Likewise.
18534         * doc/glibc-functions/strtoull_l.texi: Likewise.
18535         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18536         * doc/glibc-functions/wcstod_l.texi: Likewise.
18537         * doc/glibc-functions/wcstof_l.texi: Likewise.
18538         * doc/glibc-functions/wcstol_l.texi: Likewise.
18539         * doc/glibc-functions/wcstold_l.texi: Likewise.
18540         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18541         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18542         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18543
18544 2009-11-24  Bruno Haible  <bruno@clisp.org>
18545
18546         duplocale: Fix logic bug.
18547         * lib/duplocale.c: Don't include <langinfo.h>.
18548         (_NL_LOCALE_NAME): Remove macro.
18549         (rpl_duplocale): Use setlocale instead of nl_langinfo.
18550         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
18551
18552 2009-11-23  Jim Meyering  <meyering@redhat.com>
18553
18554         test-update-copyright: don't hard-code /usr/bin/perl
18555         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
18556         perl to print the current year.  Gilles Espinasse reported that
18557         the replaced use of perl was hard-coded as /usr/bin/perl.
18558
18559 2009-11-23  Bruno Haible  <bruno@clisp.org>
18560
18561         duplocale: Add support for glibc 2.3.x.
18562         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
18563
18564 2009-11-22  Bruno Haible  <bruno@clisp.org>
18565
18566         vasnprintf: Tiny optimization.
18567         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
18568         MacOS X.
18569
18570 2009-11-22  Bruno Haible  <bruno@clisp.org>
18571
18572         Tests for module 'duplocale'.
18573         * modules/duplocale-tests: New file.
18574         * tests/test-duplocale.c: New file.
18575
18576         New module 'duplocale'.
18577         * m4/duplocale.m4: New file.
18578         * lib/locale.in.h (duplocale): New declaration.
18579         * lib/duplocale.c: New file.
18580         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
18581         gl_LOCALE_H_DEFAULTS): New macros.
18582         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
18583         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
18584         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
18585         REPLACE_DUPLOCALE.
18586         * modules/duplocale: New file.
18587         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
18588
18589 2009-11-22  Bruno Haible  <bruno@clisp.org>
18590
18591         * modules/locale-tests (configure.ac): Test for newlocale function.
18592         * tests/test-locale.c: When the system has extended locale functions,
18593         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
18594
18595         locale: Make locale_t available when possible.
18596         * lib/locale.in.h: Include <xlocale.h> when it exists.
18597         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
18598         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
18599         * modules/locale (Depends-on): Add extensions.
18600         (Makefile.am): Also substitute HAVE_XLOCALE_H.
18601         * doc/posix-headers/locale.texi: Document the problem with locale_t.
18602
18603 2009-11-22  Bruno Haible  <bruno@clisp.org>
18604
18605         Add comments.
18606         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
18607         invocation.
18608         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
18609         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18610         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18611
18612 2009-11-22  Bruno Haible  <bruno@clisp.org>
18613
18614         error: account for the possibility of freopen (stdout).
18615         * lib/error.c: Include <unistd.h>.
18616         (flush_stdout): New function, extracted from error and error_at_line.
18617         Determine stdout's fd dynamically.
18618         (error, error_at_line): Invoke flush_stdout.
18619         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
18620         * modules/error (Depends-on): Add unistd.
18621
18622 2009-11-22  Bruno Haible  <bruno@clisp.org>
18623
18624         diffseq: Add comment.
18625         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
18626
18627 2009-11-22  Jim Meyering  <meyering@redhat.com>
18628
18629         c-stack: avoid defining an unused static function
18630         * lib/c-stack.c (find_stack_direction): Do not define this function
18631         when it will not be used.
18632
18633         diffseq: avoid spurious gcc warnings
18634         * lib/diffseq.h (IF_LINT2): Define.
18635         (compareseq): Use it to initialize two members of "part".
18636         This avoids two used-uninitialized warnings.
18637
18638 2009-11-21  Jim Meyering  <meyering@redhat.com>
18639
18640         c-stack: avoid "ignoring return value of `write'" warning
18641         * lib/c-stack.c: Include "ignore-value.h".
18642         (die): Explicitly ignore each write return value.
18643         * modules/c-stack (Depends-on): Add ignore-value.
18644
18645 2009-11-21  Bruno Haible  <bruno@clisp.org>
18646
18647         diffseq: reduce scope of variable 'best'.
18648         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
18649         variable, earlier used for two different purposes.
18650
18651 2009-11-21  Jim Meyering  <meyering@redhat.com>
18652
18653         diffseq: remove useless assignment to "best"
18654         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
18655         assignment.  At that point "best" is already guaranteed to be zero.
18656
18657 2009-11-20  Eric Blake  <ebb9@byu.net>
18658
18659         build: mention ftp redirector in release announcements
18660         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
18661         values that used to come from cfg.mk; mention FTP redirect URL.
18662         * build-aux/announce-gen: Mention the mirror list.
18663         Suggested by Karl Berry.
18664
18665         nanosleep: improve port to mingw
18666         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
18667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
18668         LIB_NANOSLEEP, but only when needed.
18669         * modules/select (Link): Document LIBSOCKET.
18670         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
18671         enough.
18672
18673         nanosleep: work around cygwin bug
18674         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
18675         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
18676         bug.
18677         (getnow): Delete, not needed.
18678         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
18679         LIB_CLOCK_GETTIME.
18680         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
18681         clock-time, gettime.
18682         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
18683         bug.
18684         * modules/nanosleep-tests: New test.
18685         * tests/test-nanosleep.c: New file.
18686
18687         sleep: work around cygwin bug
18688         * lib/sleep.c (rpl_sleep): Work around the bug.
18689         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
18690         (gl_PREREQ_SLEEP): Delete unused macro.
18691         * modules/sleep (Depends-on): Add verify.
18692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
18693         * modules/unistd (Makefile.am): Substitute witness.
18694         * lib/unistd.in.h (sleep): Update prototype.
18695         * doc/posix-functions/sleep.texi (sleep): Document the bug.
18696         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
18697         * modules/sleep-tests (Depends-on): Check for alarm.
18698
18699 2009-11-20  Jim Meyering  <meyering@redhat.com>
18700
18701         maint.mk: improve sc_prohibit_magic_number_exit
18702         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
18703         so it does not match uses like System.exit(1).
18704         Add comments showing how to correct all offenders.
18705
18706 2009-11-19  Eric Blake  <ebb9@byu.net>
18707
18708         xalloc-die-tests: add missing library
18709         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
18710
18711         test-xvasprintf: silence compiler warnings
18712         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
18713         empty string from gcc.
18714
18715 2009-11-19  Jim Meyering  <meyering@redhat.com>
18716
18717         xfreopen: new module, from coreutils
18718         * modules/xfreopen: New module.
18719         * lib/xfreopen.c: New file.
18720         * lib/xfreopen.h: New file.
18721         * MODULES.html.sh (File stream based Input/Output"): Add it.
18722
18723 2009-11-19  Eric Blake  <ebb9@byu.net>
18724
18725         manywarnings: depend on warnings
18726         * modules/manywarnings (Depends-on): Add warnings.
18727
18728         build: avoid compiler warnings
18729         * lib/select.c (rpl_select): Delete unused variable.
18730         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
18731
18732 2009-11-18  Eric Blake  <ebb9@byu.net>
18733
18734         tests: avoid false negative with --with-packager
18735         * tests/test-version-etc.sh: Discard packager information.
18736         * tests/test-argp-version-etc-1.sh: Likewise.
18737         Reported by Mike Frysinger.
18738
18739         utimens: fix regression on Solaris
18740         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
18741         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
18742         can only change fd timestamps via futimesat.  Instead, use an
18743         additional witness macro to avoid BSD bug.
18744         Reported by Jim Meyering.
18745
18746 2009-11-17  Eric Blake  <ebb9@byu.net>
18747
18748         usleep: use it to simplify tests
18749         * modules/stat-time-tests (Depends-on): Add usleep.
18750         (configure.ac): Drop usleep check.
18751         * modules/chown-tests (Depends-on, configure.ac): Likewise.
18752         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
18753         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
18754         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
18755         * modules/openat-tests (Depends-on, configure.ac): Likewise.
18756         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
18757         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
18758         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
18759         Likewise.
18760         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
18761         * tests/test-lchown.h (nap): Likewise.
18762         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
18763         * tests/test-stat-time.c (nap): Likewise.
18764         * tests/test-utimens-common.h (nap): Update comments.
18765
18766         usleep: new module
18767         * modules/usleep: New file.
18768         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18769         * lib/usleep.c (usleep): Likewise.
18770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
18771         * modules/unistd (Makefile.am): Substitute witnesses.
18772         * lib/unistd.in.h (usleep): Add declaration.
18773         * doc/pastposix-functions/usleep.texi (usleep): Document this.
18774         * MODULES.html.sh (Date and time): Likewise.
18775         * modules/usleep-tests (Depends-on): New test.
18776         * tests/test-usleep.c: New file.
18777
18778         chown: work around OpenBSD bug
18779         * lib/chown.c (rpl_chown): Work around the bug.
18780         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
18781         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
18782         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
18783         * modules/chown (Depends-on): Add stdbool.
18784         * modules/lchown (Depends-on): Likewise.
18785         * doc/posix-functions/chown.texi (chown): Document the bug.
18786         * doc/posix-functions/lchown.texi (lchown): Likewise.
18787         * tests/test-lchown.h (test_chown): Relax test.
18788
18789         mkstemp: avoid conflict with C++ keyword template
18790         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
18791         * lib/mkostemp.c (mkostemp): Likewise.
18792         * lib/mkostemps.c (mkostemps): Likewise.
18793         * lib/mkstemp.c (mkstemp): Likewise.
18794         * lib/mkstemps.c (mkstemps): Likewise.
18795
18796         xalloc-die-tests: optimize
18797         * tests/test-xalloc-die.sh: Reduce number of processes.
18798
18799 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18800
18801         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
18802         patch from ludo@gnu.org (Ludovic Courtès).
18803
18804 2009-11-17  Jim Meyering  <meyering@redhat.com>
18805
18806         version-etc: use proper license string
18807         * modules/version-etc (License): Use LGPL, not LGPLv3+.
18808         * modules/version-etc-fsf: Likewise.
18809
18810 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18811
18812         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
18813         printed to stdout.  Deal with EOL differences.
18814
18815 2009-11-17  Eric Blake  <ebb9@byu.net>
18816
18817         unsetenv: work around Solaris bug
18818         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
18819         * lib/unsetenv.c (rpl_unsetenv): Work around it.
18820         Reported by Jim Meyering.
18821
18822         vasnprintf: avoid compiler warnings
18823         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
18824         variables.
18825         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
18826
18827 2009-11-17  Simon Josefsson  <simon@josefsson.org>
18828
18829         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
18830         settings since xalloc-die is no longer the self test,
18831         xalloc-die.sh is.
18832
18833 2009-11-17  Jim Meyering  <meyering@redhat.com>
18834
18835         test-xalloc-die.sh: make the code agree with the commit log
18836         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
18837         at the end, just in case you happen to have a test-xalloc-die
18838         program in some other PATH directory.
18839
18840         test-xalloc-die.sh: fix a portability bug
18841         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
18842         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
18843         Otherwise, argv[0] (as often seen in diagnostics) would be too
18844         system-dependent, sometimes with, and sometimes without the leading "./".
18845
18846         version-etc-fsf: relax license to LGPLv3+
18847         * modules/version-etc-fsf (License): Relax license.
18848
18849 2009-11-16  Eric Blake  <ebb9@byu.net>
18850
18851         xalloc-die-tests: avoid printing null pointer
18852         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
18853         shell script.
18854         * tests/test-xalloc-die.c (program_name): Declare.
18855         * tests/test-xalloc-die.sh (tmpfiles): New file.
18856
18857         setenv, unsetenv: work around various bugs
18858         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
18859         (setenv) [HAVE_SETENV]: Work around bugs.
18860         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
18861         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
18862         for bugs.
18863         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
18864         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
18865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
18866         * modules/stdlib (Makefile.am): Update substitutions.
18867         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
18868         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
18869         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
18870         * modules/setenv-tests: New test.
18871         * modules/unsetenv-tests: Likewise.
18872         * tests/test-setenv.c: New file.
18873         * tests/test-unsetenv.c: Likewise.
18874
18875 2009-11-16  Jim Meyering  <meyering@redhat.com>
18876
18877         version-etc: relax license to LGPLv3+
18878         * modules/version-etc (License): Relax license.
18879
18880         better AC_REQUIRE expanded-before-required-warning avoidance
18881         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
18882         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
18883         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
18884         which is no longer needed.
18885
18886 2009-11-16  Eric Blake  <ebb9@byu.net>
18887
18888         test-freading: clean up temporary file
18889         * tests/test-freading.c (main): Remove file on success, and use
18890         ASSERT more liberally.
18891         Reported by Jim Meyering.
18892
18893 2009-11-16  Jim Meyering  <meyering@redhat.com>
18894
18895         avoid new AC_REQUIRE expanded-before-required warnings
18896         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
18897         merely using it.
18898         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
18899         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
18900
18901 2009-11-15  Simon Josefsson  <simon@josefsson.org>
18902
18903         * tests/test-xalloc-die.c: New file.
18904         * modules/xalloc-die-tests: New file.
18905         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
18906         XFAIL_TESTS so it can be appended by modules.
18907
18908 2009-11-15  Simon Josefsson  <simon@josefsson.org>
18909
18910         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
18911         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
18912
18913 2009-11-14  Eric Blake  <ebb9@byu.net>
18914
18915         fnmatch: avoid compiler warning
18916         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
18917         to silence compiler warning about mismatch signedness in ?:.
18918         Reported by Robert Millan.
18919
18920         intprops: add double-inclusion guard
18921         * lib/intprops.h: Allow idempotent includes.
18922         Suggested by Bruce Korb.
18923
18924         openat: detect Solaris fchownat bug
18925         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
18926         penalizing glibc chownat when only lchownat is broken.
18927         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
18928         trailing slash bugs.
18929         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
18930         * modules/openat-tests (Files): Include more files.
18931         (Depends-on): Add mgetgroups, sleep, stat-time.
18932         (configure.ac): Add additional checks.
18933         (Makefile.am): Build new test.
18934         * tests/test-fchownat.c: New file.
18935
18936         lchown: detect Solaris and FreeBSD bug
18937         * lib/lchown.c (rpl_lchown): Work around bug.
18938         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
18939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18940         * modules/unistd (Makefile.am): Populate it.
18941         * lib/unistd.in.h (lchown): Update declaration.
18942         * doc/posix-functions/lchown.texi (lchown): Document the bug.
18943         * modules/lchown-tests: New file.
18944         * tests/test-lchown.h (test_lchown): Likewise.
18945         * tests/test-lchown.c (main): Likewise.
18946
18947         chown: detect Solaris and FreeBSD bug
18948         * lib/chown.c (rpl_chown): Work around bug.
18949         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
18950         (gl_PREREQ_CHOWN): Delete.
18951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18952         * modules/unistd (Makefile.am): Populate it.
18953         * lib/unistd.in.h (chown): Update declaration.
18954         * lib/lchown.c (chown): Update client.
18955         * modules/lchown (Depends-on): Add lstat.
18956         * doc/posix-functions/chown.texi (chown): Document the bug.
18957         * doc/posix-functions/getgroups.texi (getgroups): Document
18958         getgroups pitfall.
18959         * modules/chown-tests: New file.
18960         * tests/test-chown.h (test_chown): Likewise.
18961         * tests/test-chown.c (main): Likewise.
18962
18963 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
18964
18965         gnulib-tool: correctly detect absence of m4 directories
18966         * gnulib-tool: Avoid extra newline on data passed to wc -l.
18967
18968 2009-11-14  Jim Meyering  <meyering@redhat.com>
18969
18970         maint.mk: Prohibit inclusion of "xalloc.h" without use.
18971         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
18972
18973 2009-11-14  John W. Eaton  <jwe@gnu.org>
18974
18975         strftime.h: wrap funtion declaration in extern "C" block
18976         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
18977
18978 2009-11-13  Eric Blake  <ebb9@byu.net>
18979
18980         getgroups: avoid compiler warning
18981         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
18982
18983         getgroups: work around FreeBSD bug
18984         * lib/getgroups.c (rpl_getgroups): Work around the bug.
18985         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
18986         * doc/posix-functions/getgroups.texi (getgroups): Document it.
18987         * tests/test-getgroups.c (main): Fix buffer overrun.
18988
18989         getgroups: avoid compilation failure
18990         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
18991         * modules/getgroups (Depends-on): Add stdint.
18992
18993 2009-11-13  Jim Meyering  <meyering@redhat.com>
18994
18995         test-getgroups: avoid compilation failure
18996         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
18997
18998 2009-11-13  Eric Blake  <ebb9@byu.net>
18999
19000         mgetgroups: new module, taken from coreutils
19001         * modules/mgetgroups: New file.
19002         * lib/mgetgroups.h: Likewise.
19003         * lib/mgetgroups.c (mgetgroups): Likewise.
19004         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
19005         * MODULES.html.sh (Users and groups): Mention it.
19006
19007         getgroups: don't expose GETGROUPS_T to user
19008         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
19009         an element at a time if GETGROUPS_T is wrong size.
19010         * lib/getugroups.h (getugroups): Change signature.
19011         * lib/unistd.in.h (getgroups): Likewise.
19012         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
19013         signature needs fixing.
19014         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
19015         AC_TYPE_GETGROUPS.
19016         * modules/group-member (Depends-on): Add getgroups.
19017         * lib/group-member.c (group_info, get_group_info): Use gid_t.
19018         (group_member): Rely on getgroups replacement.
19019         * lib/getugroups.c (getugroups): Use gid_t.
19020         * tests/test-getgroups.c (main): Likewise.
19021         * NEWS: Mention the signature change.
19022         * doc/posix-functions/getgroups.texi (getgroups): Mention the
19023         problem with signature.
19024         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
19025         GETGROUPS_T is still useful for setgroups.
19026
19027         getgroups, getugroups: provide stubs for mingw
19028         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
19029         * lib/getugroups.c (getugroups): Likewise.
19030         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
19031         function.  Modernize replacement scheme.
19032         (gl_PREREQ_GETGROUPS): Delete.
19033         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
19034         * modules/getgroups (configure.ac): Declare witness.
19035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
19036         * modules/unistd (Depends-on): Substitute witness.
19037         * lib/unistd.in.h (getgroups): Declare replacement.
19038
19039         getgroups: avoid calling exit
19040         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
19041         drop xalloc.
19042         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
19043         dependencies.
19044         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
19045         exiting, in the rare case of malloc failure.
19046
19047         getgroups: fix logic error
19048         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
19049         has more than 20 groups.
19050         * modules/getgroups-tests: New test.
19051         * tests/test-getgroups.c: New file.
19052
19053 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19054
19055         * tests/test-base64.c: Improve.
19056
19057 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19058
19059         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
19060         Blake <ebb9@byu.net>.
19061
19062 2009-11-13  Simon Josefsson  <simon@josefsson.org>
19063
19064         * tests/test-xvasprintf.c: Add %s%s related checks.
19065
19066 2009-11-12  Eric Blake  <ebb9@byu.net>
19067
19068         version-etc: match standards.texi style
19069         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
19070         and use <> only for URLs.
19071
19072 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
19073
19074         fts: do not fail on a submount during traversal
19075         * lib/fts.c (fts_build): Read the stat info again after opening
19076         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
19077         Original report at http://bugzilla.redhat.com/501848.
19078
19079 2009-11-12  Jim Meyering  <meyering@redhat.com>
19080
19081         bootstrap: sync from coreutils
19082         * build-aux/bootstrap (bootstrap_epilogue): New function.
19083         Use git_modules_config in one more place.  This make bootstrap's
19084         --gnulib-srcdir option more useful for testing.
19085
19086         bootstrap: generalize autoheader check
19087         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
19088         AC_CONFIG_HEADERS.
19089
19090 2009-11-11  Eric Blake  <ebb9@byu.net>
19091
19092         mkfifoat: use new modules for Solaris and BSD bugs
19093         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
19094         * lib/mkfifoat.c (mknodat): Split...
19095         * lib/mknodat.c (mknodat): ...into new file.
19096         * modules/mkfifoat (Files): Ship new file.
19097         (Depends-on): Add mkfifo, mknod.
19098         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
19099         (Depends-on): Add symlink.
19100         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
19101         redundant with test_mkfifo.h.
19102         (do_mkfifoat, do_mknodat): New helpers.
19103
19104         mknod: new module
19105         * modules/mknod: New file.
19106         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
19107         * lib/mknod.c (mknod): Likewise.
19108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
19109         defaults.
19110         * modules/sys_stat (Makefile.am): Substitute them.
19111         * lib/sys_stat.in.h (mknod): Declare replacement.
19112         * MODULES.html.sh (Support for systems lacking POSIX:2008):
19113         Document it.
19114         * doc/posix-functions/mknod.texi (mknod): Likewise.
19115         * modules/mknod-tests: New test.
19116         * tests/test-mknod.c: Likewise.
19117
19118         mkfifo: new module
19119         * modules/mkfifo: New file.
19120         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19121         * lib/mkfifo.c (mkfifo): Likewise.
19122         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
19123         defaults.
19124         * modules/sys_stat (Makefile.am): Substitute them.
19125         * lib/sys_stat.in.h (mkfifo): Declare replacement.
19126         * MODULES.html.sh (Support for systems lacking POSIX:2008):
19127         Document it.
19128         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
19129         * modules/mkfifo-tests: New test.
19130         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
19131         from test-mkfifoat.c.
19132         * tests/test-mkfifo.c: New file.
19133
19134         readlink: detect FreeBSD bug
19135         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
19136         slash on symlink.
19137         * doc/posix-functions/readlink.texi (readlink): Document the bug.
19138         * tests/test-readlink.h (test_readlink): Enhance test.
19139
19140         symlink: detect FreeBSD bug
19141         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
19142         slash on symlink.
19143         * doc/posix-functions/symlink.texi (symlink): Document the bug.
19144         * tests/test-symlink.h (test_symlink): Enhance test.
19145
19146 2009-11-10  Eric Blake  <ebb9@byu.net>
19147
19148         link: detect FreeBSD bug
19149         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
19150         symlink.
19151         * doc/posix-functions/link.texi (link): Document the bug.
19152         * tests/test-link.h (test_link): Enhance test.
19153         * tests/test-linkat.c (main): Update caller.
19154
19155         unlink, remove: detect FreeBSD bug
19156         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
19157         slash on symlink.
19158         * doc/posix-functions/unlink.texi (unlink): Document the bug.
19159         * doc/posix-functions/remove.texi (remove): Likewise.
19160         * tests/test-unlink.h (test_unlink): Enhance test.
19161         * tests/test-remove.c (main): Likewise.
19162
19163 2009-11-09  Eric Blake  <ebb9@byu.net>
19164
19165         rename: detect FreeBSD bug
19166         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
19167         slash on symlink.
19168         * modules/renameat-tests (Depends-on): Add filenamecat.
19169         * tests/test-rename.h (test_rename): Allow one more errno.
19170         * tests/test-renameat.c (main): Likewise.
19171         * doc/posix-functions/rename.texi (rename): Document the bug.
19172
19173         open: detect FreeBSD bug
19174         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
19175         symlink.
19176         * doc/posix-functions/open.texi (open): Document the bug.
19177         * doc/posix-functions/utimes.texi (utimes): Likewise.
19178         * tests/test-open.h (test_open): Add parameters, and test symlink
19179         handling.
19180         * tests/test-open.c (main): Adjust caller.
19181         * tests/test-fcntl-safer.c (main): Likewise.
19182         * modules/open-tests (Depends-on): Add stdbool, symlink.
19183         * modules/fcntl-safer-tests (Depends-on): Likewise.
19184         * tests/test-openat.c (main): Add test-open tests.
19185
19186         stat: detect FreeBSD bug
19187         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
19188         symlink.
19189         * doc/posix-functions/stat.texi (stat): Document the bug.
19190         * tests/test-stat.h (test_stat_func): Add argument.
19191         * tests/test-stat.c (main): Adjust caller.
19192         * tests/test-fstatat.c (main): Likewise.
19193         * modules/stat-tests (Depends-on): Add stdbool, symlink.
19194         Reported by Jim Meyering.
19195
19196 2009-11-09  James Youngman  <jay@gnu.org>
19197
19198         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
19199         * lib/strftime.c: Correct placement of #include "ignore-value.h".
19200
19201 2009-11-08  Jim Meyering  <meyering@redhat.com>
19202
19203         utimens: remove invalid futimesat call
19204         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
19205         It used the file descriptor of the target file as the DIR_FD
19206         parameter and NULL as the file name.  That caused failure with
19207         errno == EFAULT on FreeBSD-8.0-rc2
19208
19209 2009-11-07  Eric Blake  <ebb9@byu.net>
19210
19211         fflush, freadseek: use fseeko, not fseek
19212         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19213         (clear_ungetc_buffer): Avoid potential problems on large files.
19214         * lib/freadseek.c (freadseek): Likewise.
19215         * modules/freadseek (Depends-on): Add fseeko.
19216         * modules/fseek (configure.ac): Set a witness.
19217         * tests/test-fflush.c (main): Use fseeko.
19218         * tests/test-fpurge.c (fseek): Disable link warning.
19219         * tests/test-freadable.c (fseek): Likewise.
19220         * tests/test-freading.c (fseek): Likewise.
19221         * tests/test-fseeko.c (fseek): Likewise.
19222         * tests/test-ftell.c (fseek): Likewise.
19223         * tests/test-ftello.c (fseek): Likewise.
19224         * tests/test-fwritable.c (fseek): Likewise.
19225         * tests/test-fwriting.c (fseek): Likewise.
19226
19227 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19228
19229         * modules/memchr (Depends-on): Drop getpagesize dependency.
19230
19231 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19232
19233         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
19234         Reported by Ludovic Courtès.
19235         * build-aux/pmccabe2html: Improve example usage.
19236         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
19237
19238 2009-11-06  Jim Meyering  <meyering@redhat.com>
19239
19240         do-release-commit-and-tag: New module.
19241         Automate the release-commit and tag process.
19242         * build-aux/do-release-commit-and-tag: New script, from coreutils.
19243         * modules/do-release-commit-and-tag: New file.
19244         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19245
19246 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19247
19248         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
19249         because test-select.c uses inet_pton.
19250
19251 2009-11-06  Simon Josefsson  <simon@josefsson.org>
19252
19253         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
19254         GETADDRINFO_LIB.  Bump serial number.
19255         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
19256         Suggested by Eric Blake <ebb9@byu.net>.
19257
19258 2009-11-05  Eric Blake  <ebb9@byu.net>
19259
19260         strtod: detect darwin bug
19261         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
19262         Reported by Leo Davis.
19263
19264         freopen-safer: new module
19265         * modules/freopen-safer: New module.
19266         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
19267         * lib/freopen-safer.c (freopen_safer): New file.
19268         * lib/stdio-safer.h (freopen_safer): New declaration.
19269         * lib/stdio--.h (freopen): New override.
19270         * MODULES.html.sh (File stream based Input/Output): Mention it.
19271         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
19272         freopen-safer module.
19273         * doc/posix-functions/stderr.texi (stderr): Likewise.
19274         * doc/posix-functions/stdin.texi (stdin): Likewise.
19275         * doc/posix-functions/stdout.texi (stdout): Likewise.
19276         * modules/freopen-safer-tests: New test.
19277         * tests/test-reopen-safer.c: New file.
19278
19279 2009-11-05  Jim Meyering  <meyering@redhat.com>
19280
19281         maint.mk: Prohibit inclusion of "close-stream.h" without use.
19282         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
19283
19284 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19285
19286         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
19287
19288 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19289
19290         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
19291
19292 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19293
19294         Fix link error.
19295         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
19296         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19297
19298 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19299
19300         * tests/test-func.c: Also test value of __func__.
19301
19302 2009-11-05  Simon Josefsson  <simon@josefsson.org>
19303
19304         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
19305         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
19306
19307 2009-11-05  Bruno Haible  <bruno@clisp.org>
19308
19309         Fix link error.
19310         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
19311         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19312         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
19313
19314 2009-11-05  Bruno Haible  <bruno@clisp.org>
19315
19316         Tests for module 'inet_pton'.
19317         * modules/inet_pton-tests: New file.
19318         * tests/test-inet_pton.c: New file.
19319
19320 2009-11-05  Bruno Haible  <bruno@clisp.org>
19321
19322         Tests for module 'inet_ntop'.
19323         * modules/inet_ntop-tests: New file.
19324         * tests/test-inet_ntop.c: New file.
19325
19326 2009-11-04  Eric Blake  <ebb9@byu.net>
19327
19328         stdlib-safer: wrap all mkstemp variants
19329         * modules/mkostemp (configure.ac): Set witness.
19330         * modules/mkostemps (configure.ac): Likewise.
19331         * modules/mkstemps (configure.ac): Likewise.
19332         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
19333         (mkstemps_safer): Wrap more functions.
19334         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
19335         wrapping.
19336         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
19337         (mkstemps_safer): Implement the wrappers.
19338
19339         mkstemps, mkostemps: new modules
19340         * modules/mkostemps: New module.
19341         * modules/mkstemps: Likewise.
19342         * lib/mkostemps.c (mkostemps): New file.
19343         * lib/mkstemps.c (mkstemps): Likewise.
19344         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
19345         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
19346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
19347         * modules/stdlib (Makefile.am): Substitute them.
19348         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
19349         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
19350         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19351         * doc/gnulib.texi (Glibc stdlib.h): Include them.
19352         * MODULES.html.sh (File system functions): Mention them.
19353
19354         tempname: resync from glibc
19355         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
19356         same values for __GT_FILE as glibc.  Abort even when assertions
19357         are disabled.
19358         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
19359         match its value otherwise.  Allow idempotent inclusion.
19360         * lib/mkdtemp.c (mkdtemp): Adjust caller.
19361         * lib/mkostemp.c (mkostemp): Likewise.
19362         * lib/mkstemp.c (mkstemp): Likewise.
19363         * lib/tmpfile.c (tmpfile): Likewise.
19364         * NEWS: Document this.
19365
19366         utimens: fix use of futimens on older Linux
19367         * lib/utimens.c (fdutimens): Use updated, rather than original,
19368         timespec to avoid bug in older Linux kernel.
19369         Reported by Simon Josefsson.
19370
19371 2009-11-04  Bruno Haible  <bruno@clisp.org>
19372
19373         Make num_processors more flexible and consistent.
19374         * lib/nproc.h (enum nproc_query): New type.
19375         (num_processors): Add a 'query' argument.
19376         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
19377         (num_processors): Add a 'query' argument. Test the value of the
19378         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
19379         mingw, count the number of CPUs available for the current process.
19380         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
19381         Check for sched_getaffinity and sched_getaffinity_np.
19382         * modules/nproc (Depends-on): Add c-ctype, extensions.
19383         * NEWS: Mention the change.
19384
19385 2009-11-03  Bruno Haible  <bruno@clisp.org>
19386
19387         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
19388
19389 2009-11-03  Jim Meyering  <meyering@redhat.com>
19390
19391         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
19392         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
19393         if it is defined.
19394
19395 2009-11-02  Eric Blake  <ebb9@byu.net>
19396
19397         mktime, timegm: share common declaration
19398         * lib/mktime-internal.h: New file.
19399         * lib/mktime.c: Use it rather than open-coding a declaration.
19400         * lib/timegm.c: Likewise.
19401         * modules/mktime (Files): Ship it.
19402         * modules/timegm (Files): Likewise.
19403         Suggested by Bruno Haible.
19404
19405         test-update-copyright: update test to match script changes
19406         * tests/test-update-copyright.sh: Avoid hard-coding perl
19407         location.  Don't update *.bak created by earlier runs.
19408
19409 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
19410             Simon Josefsson  <simon@josefsson.org>
19411             Bruno Haible  <bruno@clisp.org>
19412
19413         Fix link error on Solaris 8.
19414         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
19415         also in libnsl. Define also INET_PTON_LIB.
19416         * modules/inet_pton (Link): New section.
19417
19418 2009-11-02  Simon Josefsson  <simon@josefsson.org>
19419             Bruno Haible  <bruno@clisp.org>
19420
19421         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
19422         * modules/inet_ntop (Link): New section.
19423         Reported by Boyan Kasarov <bkasarov@gmail.com>.
19424
19425 2009-11-02  Eric Blake  <ebb9@byu.net>
19426
19427         maint: avoid compiler warnings in m4 macros
19428         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
19429         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
19430
19431 2009-11-02  Simon Josefsson  <simon@josefsson.org>
19432
19433         * m4/pmccabe2html.m4: Remove file.
19434         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
19435         function.  Change maintainer.
19436         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
19437         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
19438         Courtès).
19439
19440 2009-10-31  Eric Blake  <ebb9@byu.net>
19441
19442         fseeko: fix m4 regression
19443         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
19444         regression from 2009-10-27.
19445         Reported by Ralf Wildenhues.
19446
19447 2009-10-31  Jim Meyering  <meyering@redhat.com>
19448
19449         inttostr: aesthetics and improved (compile-time) safety
19450         Define inttype_is_signed rather than inttype_is_unsigned,
19451         since the sole use is via "#if inttype_is_signed".
19452         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
19453         inttype_is_unsigned.
19454         * lib/offtostr.c (inttype_is_signed): Likewise.
19455         * lib/uinttostr.c (inttype_is_signed): Likewise.
19456         * lib/umaxtostr.c (inttype_is_signed): Likewise.
19457         * lib/inttostr.c (inttostr): Use verify to cross-check the
19458         inttype_is_signed value and the signedness of the actual type.
19459         * modules/inttostr (Depends-on): Add verify.
19460
19461 2009-10-30  Eric Blake  <ebb9@byu.net>
19462
19463         build: avoid compiler warnings
19464         * lib/fchmodat.c (lchmod): Mark unused variables.
19465         * lib/getopt.c (_getopt_initialize): Likewise.
19466         * lib/mktime.c (__mktime_internal): Provide prototype.
19467         * lib/inttostr.c (inttostr): Avoid compiler warning even with
19468         older gcc that do not understand #pragma GCC diagnostic.
19469         * lib/uinttostr.c (inttype_is_unsigned): Define.
19470         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
19471
19472 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
19473
19474         stat: fix compilation on AIX
19475         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
19476         only see struct stat64.
19477
19478 2009-10-30  Eric Blake  <ebb9@byu.net>
19479
19480         exclude: make more robust
19481         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
19482         rather than masking a coding bug.
19483         Suggested by Bruno Haible.
19484
19485 2009-10-30  Jim Meyering  <meyering@redhat.com>
19486
19487         perl scripts: remove #!/usr/bin/perl in favor of more portable...
19488         Rather than putting #!/usr/bin/perl on the first line,
19489         start with a variant of what's recommended by "man perlrun" that
19490         invokes the first "perl" program from your shell's search path.
19491         * build-aux/gitlog-to-changelog: Replace #!... as above.
19492         Add a "Local Variables" perl mode setting.
19493         Prompted by a patch from Ludovic Courtès.
19494         Improved by Eric Blake.
19495         * build-aux/useless-if-before-free: Likewise.
19496         * build-aux/announce-gen: Likewise.
19497         * build-aux/update-copyright: Likewise.
19498
19499 2009-10-29  Eric Blake  <ebb9@byu.net>
19500
19501         filenamecat-lgpl: adjust clients
19502         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
19503         filenamecat.
19504         * modules/renameat (Depends-on): Likewise.
19505
19506         filenamecat: split into filenamecat-lgpl
19507         * modules/filenamecat-lgpl: New module.
19508         * modules/filenamecat (Files): Move library-safe files into
19509         filenamecat-lgpl.
19510         (Depends-on): Add filenamecat-lgpl.
19511         (configure.ac): Declare witness.
19512         * lib/filenamecat.h (file_name_concat): Only declare when using
19513         GPL module.
19514         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
19515         Move...
19516         * lib/filenamecat-lgpl.c: ...into new file.
19517         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
19518         (gl_FILE_NAME_CONCAT): Use it.
19519         * MODULES.html.sh (File system functions): Mention new module.
19520
19521         argp: avoid memory leak
19522         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
19523         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
19524         base_name, since the latter malloc()s and can call exit().
19525         Leak introduced 2006-07-03.
19526
19527         dirname-lgpl: adjust clients that don't need full dirname
19528         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
19529         * modules/filenamecat (Depends-on): Likewise.
19530         * modules/linkat (Depends-on): Likewise.
19531         * modules/mkancesdirs (Depends-on): Likewise.
19532         * modules/mkdir (Depends-on): Likewise.
19533         * modules/openat (Depends-on): Likewise.
19534         * modules/savewd (Depends-on): Likewise.
19535         * modules/rename (Depends-on): Likewise.
19536         (License): Relax license.
19537         * modules/mkdir-tests (Depends-on): Drop progname.
19538         (Makefile.am): Delete unneeded LDADD.
19539         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
19540
19541         dirname: split into dirname-lgpl
19542         * modules/dirname-lgpl: New module.
19543         * modules/dirname (Files): Move library-safe files into
19544         dirname-lgpl.
19545         (Depends-on): Add dirname-lgpl.
19546         (configure.ac): Declare witness.
19547         * modules/double-slash-root (License): Relax license.
19548         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
19549         module.
19550         * lib/dirname.c (dir_len, mdir_name): Move...
19551         * lib/dirname-lgpl.c: ...into new file.
19552         * lib/basename.c (last_component, base_len): Move...
19553         * lib/basename-lgpl.c: ...into new file.
19554         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
19555         (gl_DIRNAME): Use it.
19556         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
19557         Mention new module.
19558         * modules/dirname-tests (Depends-on): Add progname.
19559         * tests/test-dirname.c (program_name): Delete.
19560
19561         mkdir: make safe for libraries
19562         * modules/mkdir (Depends-on): Drop xalloc.
19563         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
19564         exit.
19565
19566         tests: avoid some compiler warnings
19567         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
19568         literals.
19569         * tests/test-memchr.c (main): Avoid type mismatch.
19570         * tests/test-arpa_inet.c (main): Avoid unused parameters.
19571         * tests/test-base64.c (main): Likewise.
19572         * tests/test-getdelim.c (main): Likewise.
19573         * tests/test-gethostname.c (main): Likewise.
19574         * tests/test-getline.c (main): Likewise.
19575         * tests/test-netinet_in.c (main): Likewise.
19576         * tests/test-select.c (open_server_socket, main): Likewise.
19577         * tests/test-select-stdin.c (main): Likewise.
19578         * tests/test-sockets.c (main): Likewise.
19579         * tests/test-strsignal.c (main): Likewise.
19580         * tests/test-sys_select.c (main): Likewise.
19581         * tests/test-sys_socket.c (main): Likewise.
19582         * tests/test-u64.c (main): Likewise.
19583         * tests/test-xfprintf-posix.c (main): Likewise.
19584         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
19585
19586         sockets: avoid compiler warning
19587         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
19588
19589         maint: detect usage(1) and other suspicious exits
19590         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
19591
19592 2009-10-29  Jim Meyering  <meyering@redhat.com>
19593
19594         timespec: long-to-int truncation could make timespec_cmp malfunction
19595         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
19596         a multiple of 2^32 nanoseconds as no difference.
19597
19598 2009-10-28  Jim Meyering  <meyering@redhat.com>
19599
19600         fprintftime: wrap macro code argument in "do {...} while(0)"
19601         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
19602         cpy macro must be a statement that can be followed by a semicolon.
19603         Now that the else clause contains a comment and is hence longer
19604         than one line, I require curly braces.  That in turn requires
19605         that we wrap this code block in the standard do...while(0).
19606
19607         fprintftime: remove stray semicolon from previous change
19608         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
19609
19610         fprintftime: avoid a warning about ignored fwrite return value
19611         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
19612         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
19613         that is unsafe.
19614         * modules/fprintftime (Depends-on): Add ignore-value.
19615
19616         exclude: avoid an unwarranted warning
19617         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
19618
19619 2009-10-27  Eric Blake  <ebb9@byu.net>
19620
19621         fseek: avoid compilation failure when fflush is replaced
19622         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
19623         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
19624         module is in use.
19625         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
19626         module is not in use; since REPLACE_FSEEK worked otherwise.
19627         (GNULIB_FTELLO): Likewise for ftell.
19628         Reported by Ian Beckwith and others.
19629
19630 2009-10-27  Bruno Haible  <bruno@clisp.org>
19631
19632         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
19633         Reported by Jim Meyering.
19634
19635 2009-10-27  Jim Meyering  <jim@meyering.net>
19636             Bruno Haible  <bruno@clisp.org>
19637
19638         Avoid warning despite dropping the return value of fwrite.
19639         * lib/unicodeio.c: Include ignore-value.h.
19640         (fwrite_success_callback): Explicitly ignore fwrite's return value.
19641         * modules/unicodeio (Depends-on): Add ignore-value.
19642
19643 2009-10-26  Eric Blake  <ebb9@byu.net>
19644
19645         areadlinkat: fix fallback path
19646         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
19647         pointer and zero.
19648
19649 2009-10-22  Pádraig Brady  <P@draigBrady.com>
19650
19651         Use a better IO block size for modern systems
19652         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
19653         * lib/md2.c: Likewise.
19654         * lib/md4.c: Likewise.
19655         * lib/md5.c: Likewise.
19656         * lib/sha1.c: Likewise.
19657         * lib/sha256.c: Likewise.
19658         * lib/sha512.c: Likewise.
19659
19660 2009-10-22  Eric Blake  <ebb9@byu.net>
19661
19662         tests: avoid several compiler warnings
19663         * tests/test-getcwd.c (main): Avoid buffer underflow.
19664         * tests/test-getdate.c (main): String literals are not safe with
19665         putenv, so use setenv.  Declare unused argument.
19666         * modules/getdate-tests (Depends-on): Add setenv.
19667         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
19668         problems with string literals in char *.
19669         * tests/test-hash.c (main): Avoid shadowing declaration.
19670         (insert_new): Treat string literals as char const *.
19671         * tests/test-getopt.h (test_getopt): Likewise.
19672         (getopt_loop): Alter types to minimize casting elsewhere.
19673         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
19674         (test_getopt_long_posix): Likewise.
19675         (do_getopt_long): Add wrapper to minimize casting.
19676         * tests/test-atexit.c (clear_temp_file): Use void.
19677         * tests/test-areadlink-with-size.c (main): Declare unused
19678         arguments.
19679         * tests/test-areadlink.c (main): Likewise.
19680         * tests/test-areadlinkat-with-size.c (main): Likewise.
19681         * tests/test-areadlinkat.c (main): Likewise.
19682         * tests/test-canonicalize-lgpl.c (main): Likewise.
19683         * tests/test-canonicalize.c (main): Likewise.
19684         * tests/test-dirent-safer.c (main): Likewise.
19685         * tests/test-dirname.c (main): Likewise.
19686         * tests/test-dup2.c (main): Likewise.
19687         * tests/test-fchdir.c (main): Likewise.
19688         * tests/test-fcntl-h.c (main): Likewise.
19689         * tests/test-fcntl-safer.c (main): Likewise.
19690         * tests/test-fdopendir.c (main): Likewise.
19691         * tests/test-fdutimensat.c (main): Likewise.
19692         * tests/test-fflush.c (main): Likewise.
19693         * tests/test-filenamecat.c (main): Likewise.
19694         * tests/test-filevercmp.c (main): Likewise.
19695         * tests/test-fopen-safer.c (main): Likewise.
19696         * tests/test-fopen.c (main): Likewise.
19697         * tests/test-fpending.c (main): Likewise.
19698         * tests/test-fpurge.c (main): Likewise.
19699         * tests/test-freading.c (main): Likewise.
19700         * tests/test-fstatat.c (main): Likewise.
19701         * tests/test-fsync.c (main): Likewise.
19702         * tests/test-futimens.c (main): Likewise.
19703         * tests/test-getndelim2.c (main): Likewise.
19704         * tests/test-gettimeofday.c (main): Likewise.
19705         * tests/test-getopt.c (main): Likewise.
19706         * tests/test-i-ring.c (main): Likewise.
19707         * tests/test-inttypes.c (main): Likewise.
19708         * tests/test-link.c (main): Likewise.
19709         * tests/test-lstat.c (main): Likewise.
19710         * tests/test-math.c (main): Likewise.
19711         * tests/test-md5.c (main): Likewise.
19712         * tests/test-memchr2.c (main): Likewise.
19713         * tests/test-memrchr.c (main): Likewise.
19714         * tests/test-mkdir.c (main): Likewise.
19715         * tests/test-mkdirat.c (main): Likewise.
19716         * tests/test-mkfifoat.c (main): Likewise.
19717         * tests/test-open.c (main): Likewise.
19718         * tests/test-openat-safer.c (main): Likewise.
19719         * tests/test-openat.c (main): Likewise.
19720         * tests/test-quotearg.c (main): Likewise.
19721         * tests/test-rawmemchr.c (main): Likewise.
19722         * tests/test-readlink.c (main): Likewise.
19723         * tests/test-remove.c (main): Likewise.
19724         * tests/test-rename.c (main): Likewise.
19725         * tests/test-renameat.c (main): Likewise.
19726         * tests/test-rmdir.c (main): Likewise.
19727         * tests/test-sha1.c (main): Likewise.
19728         * tests/test-signal.c (main): Likewise.
19729         * tests/test-sigaction.c (main): Likewise.
19730         * tests/test-stat.c (main): Likewise.
19731         * tests/test-stat-time.c (main): Likewise.
19732         * tests/test-stddef.c (main): Likewise.
19733         * tests/test-stdint.c (main): Likewise.
19734         * tests/test-stdio.c (main): Likewise.
19735         * tests/test-stdlib.c (main): Likewise.
19736         * tests/test-strchrnul.c (main): Likewise.
19737         * tests/test-strerror.c (main): Likewise.
19738         * tests/test-string.c (main): Likewise.
19739         * tests/test-strtod.c (main): Likewise.
19740         * tests/test-strverscmp.c (main): Likewise.
19741         * tests/test-symlink.c (main): Likewise.
19742         * tests/test-symlinkat.c (main): Likewise.
19743         * tests/test-sys_stat.c (main): Likewise.
19744         * tests/test-sys_time.c (main): Likewise.
19745         * tests/test-time.c (main): Likewise.
19746         * tests/test-unistd.c (main): Likewise.
19747         * tests/test-unlink.c (main): Likewise.
19748         * tests/test-unlinkat.c (main): Likewise.
19749         * tests/test-utimens.c (main): Likewise.
19750         * tests/test-utimensat.c (main): Likewise.
19751         * tests/test-version-etc.c (main): Likewise.
19752         * tests/test-wchar.c (main): Likewise.
19753         * tests/test-wctype.c (main): Likewise.
19754         * tests/test-xprintf-posix.c (main): Likewise.
19755         * tests/test-posixtm.c (main): Likewise.
19756         (STREQ): Delete unused macro.
19757         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
19758         shadowed variables.
19759         * tests/test-memchr.c (main): Likewise.
19760
19761 2009-10-21  Eric Blake  <ebb9@byu.net>
19762
19763         areadlinkat: avoid failure on older glibc
19764         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
19765         rather than mis-comparing 0 against FUNC_RESULT of char*.
19766
19767 2009-10-21  Bruno Haible  <bruno@clisp.org>
19768
19769         * modules/stpncpy (License): Relicense under LGPLv2+.
19770         Reported by David Lutterkort <lutter@redhat.com>.
19771
19772 2009-10-20  Eric Blake  <ebb9@byu.net>
19773
19774         utimensat: work around Solaris 9 bug
19775         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
19776         has trailing slash bugs.
19777         * tests/test-lutimens.h (test_lutimens): Enhance test.
19778         * tests/test-utimens.h (test_utimens): Likewise.
19779         * doc/posix-functions/utime.texi (utime): Enhance documentation.
19780         * doc/posix-functions/utimes.texi (utimes): Likewise.
19781         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19782         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
19783         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
19784         * doc/posix-functions/futimens.texi (futimens): Likewise.
19785
19786         fdutimensat: new module
19787         * modules/fdutimensat: New file.
19788         * lib/fdutimensat.c (fdutimensat): Likewise.
19789         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
19790         * MODULES.html.sh (File system functions): Mention module.
19791         * modules/fdutimensat-tests: New test.
19792         * tests/test-fdutimensat.c: Likewise.
19793
19794         doc: regenerate INSTALL
19795         * doc/INSTALL: Reflect recent autoconf update.
19796         * doc/INSTALL.ISO: Likewise.
19797         * doc/INSTALL.UTF-8: Likewise.
19798
19799 2009-10-20  Pádraig Brady  <P@draigBrady.com>
19800
19801         acl: warn if ACL support is not detected
19802         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
19803
19804 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
19805
19806         * lib/nproc.h: Add extern "C" block for C++.
19807
19808 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
19809             Bruno Haible  <bruno@clisp.org>
19810
19811         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
19812         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
19813         * doc/posix-functions/isalpha.texi: Likewise.
19814         * doc/posix-functions/isblank.texi: Likewise.
19815         * doc/posix-functions/iscntrl.texi: Likewise.
19816         * doc/posix-functions/isdigit.texi: Likewise.
19817         * doc/posix-functions/isgraph.texi: Likewise.
19818         * doc/posix-functions/islower.texi: Likewise.
19819         * doc/posix-functions/isprint.texi: Likewise.
19820         * doc/posix-functions/ispunct.texi: Likewise.
19821         * doc/posix-functions/isspace.texi: Likewise.
19822         * doc/posix-functions/isupper.texi: Likewise.
19823         * doc/posix-functions/isxdigit.texi: Likewise.
19824
19825 2009-10-18  Bruno Haible  <bruno@clisp.org>
19826
19827         Tests for module 'isblank'.
19828         * modules/isblank-tests: New file.
19829         * tests/test-isblank.c: New file.
19830
19831         New module 'isblank'.
19832         * lib/isblank.c: New file.
19833         * m4/isblank.m4: New file.
19834         * modules/isblank: New file.
19835         * doc/posix-functions/isblank.texi: Mention the new module.
19836
19837 2009-10-18  Bruno Haible  <bruno@clisp.org>
19838
19839         New module 'ctype'.
19840         * lib/ctype.in.h: New file.
19841         * m4/ctype.m4: New file.
19842         * modules/ctype: New file.
19843         * doc/posix-headers/ctype.texi: Mention the new module.
19844
19845 2009-10-18  Jim Meyering  <meyering@redhat.com>
19846
19847         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
19848         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
19849         right after its initialization, rather than farther down.
19850         Keeping these in close proximity makes it easier to ensure
19851         that each such variable is initialized.  E.g.,
19852
19853             LIB_CLOCK_GETTIME=
19854             AC_SUBST([LIB_CLOCK_GETTIME])
19855
19856         This change also increments these serial numbers.
19857         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
19858         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19860
19861 2009-10-18  Bruno Haible  <bruno@clisp.org>
19862
19863         Don't let environment variables perturb build.
19864         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
19865         (gl_PREREQ_GETHRXTIME): ... not here.
19866
19867 2009-10-18  Bruno Haible  <bruno@clisp.org>
19868
19869         Avoid symlink attack in localcharset module.
19870         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
19871         (O_NOFOLLOW): Define fallback.
19872         (get_charset_aliases): Don't open the file if it is a symbolic link.
19873         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
19874         gl_FCNTL_H.
19875         (gl_FCNTL_H): Require it.
19876         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
19877         * modules/localcharset (Files): Add m4/fcntl_h.m4.
19878         Reported by Fergal Glynn <fglynn@veracode.com>.
19879
19880 2009-10-18  Bruno Haible  <bruno@clisp.org>
19881
19882         Implement nproc for mingw.
19883         * lib/nproc.c: Include <windows.h>
19884         (num_processors): On native Windows platforms, try GetSystemInfo.
19885
19886 2009-10-18  Bruno Haible  <bruno@clisp.org>
19887
19888         Implement nproc for IRIX.
19889         * lib/nproc.c: Include <sys/sysmp.h>.
19890         (num_processors): On IRIX systems, try sysmp.
19891         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
19892
19893 2009-10-18  Bruno Haible  <bruno@clisp.org>
19894
19895         Implement nproc for HP-UX.
19896         * lib/nproc.c: Include <sys/pstat.h>
19897         (num_processors): On HP-UX systems, try pstat_getdynamic.
19898         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
19899         pstat_getdynamic.
19900
19901 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
19902             Bruno Haible  <bruno@clisp.org>
19903
19904         Implement nproc for NetBSD, OpenBSD.
19905         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
19906         (ARRAY_SIZE): New macro.
19907         (num_processors): On BSD systems, try sysctl of HW_NCPU.
19908         * m4/nproc.m4: New file.
19909         * modules/nproc (Files): Add m4/nproc.m4.
19910         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
19911         (Makefile.am): Instead, augment lib_SOURCES.
19912
19913 2009-10-18  Bruno Haible  <bruno@clisp.org>
19914
19915         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
19916         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
19917         sys/param.h.
19918
19919 2009-10-16  Eric Blake  <ebb9@byu.net>
19920
19921         utimensat: new module
19922         * modules/utimensat: New file.
19923         * lib/utimensat.c (utimensat): Likewise.
19924         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19925         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
19926         so we can work around Linux bugs.
19927         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19928         * modules/sys_stat (Makefile.am): Substitute them.
19929         * lib/sys_stat.in.h (utimensat): Declare it.
19930         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
19931         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19932         * modules/utimensat-tests: New test.
19933         * tests/test-utimensat.c: Likewise.
19934
19935         utimens: let lutimens work on non-symlinks
19936         * lib/utimens.c (lutimens): Fall back to utimens rather than
19937         failing with ENOSYS, when file is not a symlink.
19938         (utimens): Reduce redirection.
19939         * tests/test-lutimens.h (test_lutimens): Update test to cover
19940         non-symlinks.
19941         * tests/test-utimens.h (test_utimens): Update test to cover
19942         symlinks.
19943         * tests/test-utimens.c (main): Update caller.
19944
19945         utimens: cache whether utimensat syscall works
19946         * lib/utimens.c (utimensat_works_really): New cache variable.
19947         (fdutimens, lutimens): Use it to avoid failing syscall.
19948
19949         test-stat-time, test-utimens: improve portability
19950         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
19951         ext4 on alpha, and for cygwin.
19952         * tests/test-utimens-common.h: New file.
19953         (nap): Factor delays into single function.
19954         * tests/test-lutimens.h (test_lutimens): Use new header.
19955         * tests/test-futimens.h (test_futimens): Likewise.
19956         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
19957         timestamps to occur from same machine, as was done previously for
19958         test_utimens.
19959         * modules/utimens-tests (Files): Ship new file.
19960         * modules/futimens-tests (Files): Likewise.
19961         Reported in part by Jim Meyering.
19962
19963         sys_stat: sort replacement declarations
19964         * lib/sys_stat.in.h: Sort declarations.
19965         * lib/futimens.c (futimens): Fix typo.
19966
19967 2009-10-15  Jim Meyering  <meyering@redhat.com>
19968
19969         don't let environment settings perturb build
19970         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
19971         could cause a configure-time and/or build-time malfunction.
19972         Typically, a configure-time function-in-library test is performed
19973         via code like this:
19974
19975           LIB_VAR=
19976           AC_SUBST([LIB_VAR])
19977           prefix_saved_LIBS=$LIBS
19978             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
19979                        [test "$ac_cv_search_FUNC" = "none required" ||
19980                         LIB_VAR=$ac_cv_search_FUNC])
19981           LIBS=$prefix_saved_LIBS
19982
19983         However, in each of the files affected by this change, the LIB_VAR=
19984         initialization was omitted.  Thus, when set in the environment, its
19985         value would propagate into generated Makefiles when FUNC is not found
19986         in LIB_NAME.
19987         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
19988         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
19989         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19990
19991 2009-10-14  Eric Blake  <ebb9@byu.net>
19992
19993         fchdir: avoid infinite recursion in mingw
19994         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
19995         recursing.
19996
19997         test-stat-time: port to mingw
19998         * tests/test-stat-time.c (force_unlink): Return a value.
19999         (test_ctime) [W32]: Fix compilation error.
20000         (nap): Don't call usleep with too large an argument.  Use
20001         force_unlink.
20002         * doc/pastposix-functions/usleep.texi (usleep): Document the
20003         portability issue.
20004
20005 2009-10-13  Jim Meyering  <meyering@redhat.com>
20006
20007         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
20008         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
20009         * modules/pipe-filter-ii: Likewise.
20010         * modules/sys_socket-tests: Likewise.
20011         * modules/tsearch-tests: Likewise.
20012         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
20013         (check): Depend on it.
20014
20015 2009-10-12  Eric Blake  <ebb9@byu.net>
20016
20017         utimens-tests: port to NFS file systems
20018         * tests/test-utimens.h (test_utimens): Refactor utimecmp
20019         comparisons to avoid spurious failures from timestamp drift
20020         between NFS machines.
20021
20022 2009-10-12  Eric Blake  <ebb9@byu.net>
20023
20024         stat-time-tests: minor cleanups
20025         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
20026         * tests/test-stat-time.c (nap): Separate assignment from call.
20027         Suggested by Paolo Bonzini and Bruno Haible.
20028
20029         sys_stat: guarantee struct timespec
20030         * lib/sys_stat.in.h (includes): Always include <time.h>
20031         * modules/sys_stat (Depends-on): Add time.
20032         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
20033         mode_t permission values.
20034         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
20035         get at subsecond timestamps.
20036
20037 2009-10-10  Eric Blake  <ebb9@byu.net>
20038
20039         futimens: new module
20040         * modules/futimens: New file.
20041         * lib/futimens.c (futimens): Likewise.
20042         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
20043         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
20044         we can work around Linux bugs.
20045         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20046         * modules/sys_stat (Makefile.am): Substitute them.
20047         * lib/sys_stat.in.h (futimens): Declare it.
20048         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20049         * doc/posix-functions/futimens.texi (futimens): Likewise.
20050         * modules/futimens-tests: New test.
20051         * tests/test-futimens.c: Likewise.
20052
20053         utimens: introduce fdutimens
20054         * lib/utimens.h (fdutimens): New prototype.
20055         * lib/utimens.c (gl_futimens): Move guts...
20056         (fdutimens): ...to new interface.
20057         * tests/test-utimens.c (do_fdutimens): Use it.
20058
20059         utimens: add UTIME_NOW and UTIME_OMIT support
20060         * lib/utimens.c (validate_timespec, update_timespec): New helper
20061         functions.
20062         (gl_futimens, lutimens): Use them.
20063         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
20064         stdbool, sys_stat.
20065         (Link): Mention resulting library dependency.
20066         * modules/utimecmp (Link): Likewise.
20067         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
20068         (Makefile.am): Pick up library dependency.
20069         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
20070         definition.
20071         * tests/test-sys_stat.c: Test the definitions.
20072         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
20073         * NEWS: Document library dependency.
20074
20075         utimecmp: support symlink timestamps
20076         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
20077         hashing when possible.  Use pathconf when available.
20078         (SYSCALL_RESOLUTION): Recognize tighter resolution.
20079         * modules/utimecmp (Depends-on): Add lstat.
20080
20081         utimens: add lutimens interface
20082         * lib/utimens.c (lutimens): New function.
20083         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
20084         * lib/utimens.h (lutimens): Declare new interface.
20085         * tests/test-utimens.c (main): Enhance test.
20086         * tests/test-lutimens.h (test_lutimens): New file.
20087         * modules/utimens-tests (Files): Distribute it.
20088         (Depends-on): Add symlink.
20089         (configure.ac): Check for usleep.
20090
20091         utimens: validate futimens usage
20092         * lib/utimens.c (gl_futimens): Require valid fd up front, using
20093         fewer syscalls on failure later on.  Avoid compiler warning on
20094         mingw.
20095         * modules/utimens (Depends-on): Add dup2.
20096
20097         utimens: add test
20098         * modules/utimens-tests: New test.
20099         * tests/test-utimens.h: New file.
20100         * tests/test-futimens.h: Likewise.
20101         * tests/test-utimens.c: Likewise.
20102
20103         doc: mention timestamp portability issues
20104         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
20105         instead.
20106         * doc/posix-functions/utime.texi (utime): Likewise.
20107         * doc/posix-functions/utimes.texi (utimes): Likewise.
20108         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
20109         instead.
20110         * doc/posix-functions/futimens.texi (futimens): Mention utimens
20111         module.
20112         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20113         Mention weakness with symlink timestamps.
20114         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
20115         to utimensat/futimens instead.
20116         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
20117
20118         test-dup2: enhance test
20119         * tests/test-dup2.c (main): Also check AT_FDCWD.
20120
20121         test-stat-time: avoid more spurious failures
20122         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
20123         xfs; and avoid race if the two timestamps cross quantization edge.
20124
20125         relocatable: prefer 'file system' over 'filesystem'
20126         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
20127         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
20128         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
20129         * doc/relocatable.texi (Enabling Relocatability): Likewise.
20130         * lib/relocatable.c (compute_curr_prefix): Likewise.
20131
20132 2009-10-10  Jim Meyering  <meyering@redhat.com>
20133
20134         stat-time-tests: check for the usleep function
20135         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
20136
20137 2009-10-10  Bruno Haible  <bruno@clisp.org>
20138
20139         * modules/xnanosleep: Put the Link section after the Include section.
20140
20141 2009-10-09  Eric Blake  <ebb9@byu.net>
20142
20143         dup2: work around FreeBSD 6.1 bug
20144         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
20145         * doc/posix-functions/dup2.texi (dup2): Document it.
20146         Reported by Nelson H. F. Beebe and Jim Meyering.
20147
20148         test-stat-time: port to buggy NFS clients
20149         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
20150         (test_ctime): Also skip test if mtime and ctime are skewed.
20151
20152         maint: prefer 'file system' over 'filesystem'
20153         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
20154         * doc/posix-functions/lstat.texi (lstat): Likewise.
20155         * lib/file-has-acl.c (file_has_acl): Likewise.
20156         * lib/fwriteerror.c [TEST]: Likewise.
20157         * tests/test-areadlink.h (test_areadlink): Likewise.
20158         * tests/test-areadlinkat-with-size.c (main): Likewise.
20159         * tests/test-areadlinkat.c (main): Likewise.
20160         * tests/test-canonicalize-lgpl.c (main): Likewise.
20161         * tests/test-canonicalize.c (main): Likewise.
20162         * tests/test-fstatat.c (main): Likewise.
20163         * tests/test-linkat.c (main): Likewise.
20164         * tests/test-lstat.h (test_lstat_func): Likewise.
20165         * tests/test-mkdir.h (test_mkdir): Likewise.
20166         * tests/test-readlink.h (test_readlink): Likewise.
20167         * tests/test-remove.c (main): Likewise.
20168         * tests/test-rename.h (test_rename): Likewise.
20169         * tests/test-renameat.c (main): Likewise.
20170         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20171         * tests/test-symlink.h (test_symlink): Likewise.
20172         * tests/test-symlinkat.c (main): Likewise.
20173         * tests/test-unlink.h (test_unlink_func): Likewise.
20174         * tests/test-unlinkat.c (main): Likewise.
20175
20176         maint: make realtime library usage explicit
20177         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
20178         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
20179         * modules/settime (Link): Likewise.
20180         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
20181
20182         test-stat-time: speed up execution
20183         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
20184         warning on mingw.
20185         (nap): New helper function.
20186         (prepare_test): Use it to reduce sleep time.
20187         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
20188         execution.
20189         * modules/stat-time-tests (configure.ac): Check for usleep.
20190
20191 2009-10-09  Jim Meyering  <meyering@redhat.com>
20192
20193         selinux-h: always use getfilecon wrappers
20194         * lib/getfilecon.c: New file.
20195         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
20196         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
20197         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
20198         (fgetfilecon): Provide a stub.
20199         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
20200         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
20201         file unconditionally.
20202         When <selinux/selinux.h> is found, arrange to use wrappers.
20203         * modules/selinux-h (Files): Add getfilecon.c.
20204         (Makefile.am): Substitute include-next-related bits
20205         into the now-always-generated selinux/selinux.h file.
20206         * doc/glibc-functions/lgetfilecon.texi: New file.
20207         * doc/glibc-functions/fgetfilecon.texi: New file.
20208         * doc/glibc-functions/getfilecon.texi: New file.
20209         * doc/glibc-functions/getfilecon-desc.texi: New file.
20210         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
20211         which to pull in the new files.
20212         * MODULES.html.sh (Misc): Add selinux-h.
20213
20214 2009-10-08  Jim Meyering  <meyering@redhat.com>
20215
20216         unistd: fix comment typo
20217         * lib/unistd.in.h (euidaccess): Fix a comment typo.
20218
20219 2009-10-08  Eric Blake  <ebb9@byu.net>
20220
20221         areadlink: use SIZE_MAX consistently
20222         * modules/areadlink (Depends-on): Add stdint.
20223         * modules/areadlink-with-size (Depends-on): Likewise.
20224         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
20225         gives NULL; drop sys/types, since unistd gives size_t; and add
20226         stdint for SIZE_MAX.
20227         (SIZE_MAX): Rely on headers.
20228         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
20229         and add stdint.
20230         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
20231         (SIZE_MAX): Likewise.
20232         (INITIAL_BUF_SIZE): Turn into enum.
20233         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
20234
20235 2009-10-08  Jim Meyering  <meyering@redhat.com>
20236
20237         areadlinkat: avoid compilation failure
20238         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
20239         Fix typo in comment.
20240
20241 2009-10-07  Eric Blake  <ebb9@byu.net>
20242
20243         areadlinkat-with-size: new module
20244         * modules/areadlinkat-with-size: New module.
20245         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
20246         * lib/areadlink.h (areadlinkat): Declare it.
20247         * MODULES.html.sh (File system functions): Mention it.
20248         * modules/areadlinkat-with-size-tests: New test.
20249         * tests/test-areadlinkat-with-size.c: New file.
20250
20251         xreadlinkat: new module
20252         * modules/xreadlinkat: New module.
20253         * lib/xreadlinkat.c (xreadlinkat): New file.
20254         * lib/xreadlink.h (xreadlinkat): Declare it.
20255         * MODULES.html.sh (File system functions): Mention it.
20256
20257         areadlinkat: new module
20258         * lib/at-func.c (FUNC_FAIL): New define.
20259         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
20260         * modules/areadlinkat: New module.
20261         * lib/linkat.c (areadlinkat): Move...
20262         * lib/areadlinkat.c (areadlinkat): ...to new file.
20263         * lib/areadlink.h (areadlinkat): Declare it.
20264         * modules/linkat (Depends-on): Add areadlinkat.
20265         * MODULES.html.sh (File system functions): Mention it.
20266         * modules/areadlinkat-tests: New test.
20267         * tests/test-areadlinkat.c: New file.
20268
20269         areadlink, areadlink-with-size: add tests
20270         * modules/areadlink-tests: New test.
20271         * modules/areadlink-with-size-tests: Likewise.
20272         * tests/test-areadlink.h: New file.
20273         * tests/test-areadlink.c: Likewise.
20274         * tests/test-areadlink-with-size.c: Likewise.
20275
20276         maint: minor cleanups
20277         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
20278         _UNUSED_PARAMETER_ instead.
20279         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
20280         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
20281         * modules/linkat-tests (Files): Distribute test-link.h.
20282
20283         openat, utimens: whitespace cleanup
20284         * lib/openat.c: Prefer space throughout, rather than mix of 8
20285         spaces vs. tabs.
20286         * lib/at-func.c: Likewise.
20287         * lib/utimens.c: Likewise.
20288
20289         openat: avoid using wrong fd
20290         * lib/openat.c (openat_permissive): Reject user's fd if saving the
20291         working directory chooses same fd.
20292         * lib/at-func.c (AT_FUNC_NAME): Likewise.
20293
20294         mkdir, mkdirat: fix cygwin 1.5.x bug
20295         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
20296         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
20297         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
20298         bug.
20299         (gl_PREREQ_MKDIR): Delete unused macro.
20300         * modules/mkdir (Files): Track file rename.
20301         (configure.ac): Update macro name.
20302         * modules/openat (Depends-on): Add mkdir.
20303         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
20304
20305         mkdir, mkdirat: add tests
20306         * modules/mkdir-tests: New test.
20307         * tests/test-mkdir.h: New file.
20308         * tests/test-mkdir.c: Likewise.
20309         * tests/test-mkdirat.c: Likewise.
20310         * modules/openat-tests (Files): Add new files.
20311         (Makefile.am): Run new test.
20312
20313 2009-10-06  Eric Blake  <ebb9@byu.net>
20314
20315         doc: tweak *at function documentation
20316         * doc/posix-functions/faccessat.texi (faccessat): Mention
20317         known issue with replacement.
20318         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
20319         * doc/posix-functions/linkat.texi (linkat): Likewise.
20320         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
20321         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
20322         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20323         * doc/posix-functions/renameat.texi (renameat): Likewise.
20324         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20325
20326         openat: fix GNU/Hurd bug in unlinkat
20327         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
20328         broken.
20329         * doc/posix-functions/unlink.texi (unlink): Document this.
20330         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
20331
20332         fdopendir: fix GNU/Hurd bug
20333         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
20334         allowing non-directory fds.
20335         * lib/fdopendir.c (rpl_fdopendir): Work around it.
20336         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
20337         * modules/dirent (Makefile.am): Substitute it.
20338         * lib/dirent.in.h (fdopendir): Declare replacement.
20339         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
20340         * tests/test-fdopendir.c (main): Test something other than
20341         /dev/null, since on Hurd that behaves like a directory.
20342
20343         test-symlink: port to GNU/Hurd
20344         * tests/test-symlink.h (test_symlink): Relax expected errno.
20345
20346         doc: tweak more cygwin information
20347         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
20348         now compatible with glibc.
20349         * doc/posix-functions/getopt.texi (getopt): Likewise.
20350
20351         getopt-gnu: add another test
20352         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
20353         guarantee behavior relied on by m4.
20354         * tests/test-getopt.c (main): Use it.
20355         * modules/getopt-posix-tests (Depends-on): Add setenv.
20356         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
20357
20358         getopt: fix compilation on darwin
20359         * lib/getopt.in.h (includes): Leave breadcrumbs during system
20360         include.
20361         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
20362         Reported by Ludovic Courtès.
20363
20364 2009-10-06  Bruno Haible  <bruno@clisp.org>
20365
20366         * modules/size_max (Description): Discourage its use.
20367         Reported by Simon Josefsson.
20368
20369 2009-10-06  Jim Meyering  <meyering@redhat.com>
20370
20371         linkat: avoid compilation failure
20372         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
20373
20374 2009-10-05  Eric Blake  <ebb9@byu.net>
20375
20376         linkat: support Linux 2.6.17
20377         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
20378         linkat on Linux, but allow cache variable override.
20379         * lib/linkat.c (rpl_linkat): Define override.
20380         * modules/linkat (Depends-on): Add symlinkat.
20381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
20382         * modules/unistd (Makefile.am): Substitute it.
20383         * lib/unistd.in.h (linkat): Declare replacement.
20384         Reported by Pádraig Brady.
20385
20386         quotearg: port test to systems with C.UTF-8 locale
20387         * tests/test-quotearg.c (struct result_strings): Add another
20388         member, differentiating between C.ASCII and C.UTF-8 handling.
20389         (compare_strings): Add parameter.
20390         (main): Adjust all callers.
20391
20392         getopt: avoid clash with FreeBSD _getopt_internal
20393         * lib/getopt.in.h (_getopt_internal): Override the name.
20394         * lib/getopt_int.h (includes): Pick up any overrides.
20395         Reported by Reuben Thomas.
20396
20397         hash: allow C89 compilation
20398         * lib/hash.c (check_tuning): Move declaration before statement.
20399         Reported by Reuben Thomas.
20400
20401 2009-10-05  Karl Berry  <karl@gnu.org>
20402
20403         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
20404
20405 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
20406             Bruno Haible  <bruno@clisp.org>
20407
20408         * lib/uname.c (uname): Use a table-driven algorithm to compute
20409         Windows NT versions.
20410
20411 2009-10-04  Bruno Haible  <bruno@clisp.org>
20412
20413         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
20414         program_invocation_short_name.
20415         * modules/progname (configure.ac): Test for presence of
20416         program_invocation_short_name.
20417         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
20418
20419 2009-10-04  Bruno Haible  <bruno@clisp.org>
20420
20421         * lib/progname.c (set_program_name): Fix comment.
20422         Reported by Jim Meyering.
20423
20424 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
20425             Bruno Haible  <bruno@clisp.org>
20426
20427         * lib/uname.c: Include <string.h>.
20428         (uname): Do only one call to GetVersionEx in the common case.
20429
20430 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
20431             Bruno Haible  <bruno@clisp.org>
20432
20433         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
20434         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
20435         (uname): Add support for Windows CE and various non-x86 CPU types.
20436
20437 2009-10-03  Bruno Haible  <bruno@clisp.org>
20438
20439         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
20440         invocation to tests/configure.ac.
20441         Reported by Ian Beckwith <ianb@erislabs.net>.
20442
20443 2009-10-02  Eric Blake  <ebb9@byu.net>
20444
20445         fchdir: avoid compiler warning
20446         * lib/fchdir.c (canonicalize_file_name)
20447         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
20448
20449         test-open: support mingw errno values
20450         * tests/test-open.h (test_open): Relax test.
20451         * tests/test-fopen.h (test_fopen): Likewise.
20452         * tests/test-openat-safer.c (main): Likewise.
20453
20454         open: fix opening directory on mingw
20455         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
20456
20457         test-open: on GNU/Hurd, /dev/null is a directory
20458         * tests/test-fopen.h (main): Rename...
20459         (test_fopen): ...to this.  Use a guaranteed non-directory when
20460         confirming open behavior on trailing slash.
20461         * tests/test-openat-safer.c (main): Likewise.
20462         * tests/test-open.h (main): Likewise....
20463         (test_open): ...to this.
20464         * tests/test-fopen.c (main): Adjust caller.
20465         * tests/test-fopen-safer.c (main): Likewise.
20466         * tests/test-open.c (main): Likewise.
20467         * tests/test-fcntl-safer.c (main): Likewise.
20468         Reported by Samuel Thibault.
20469
20470         rename, fchdir: don't ignore chdir failure
20471         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
20472         * lib/rename.c (rpl_rename) [W32]: Likewise.
20473         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
20474         an empty destination directory if source cannot be renamed,
20475         although there is still possibility for failure.
20476         * doc/posix-functions/rename.texi (rename): Document the race.
20477         Reported by Jim Meyering.
20478
20479         maint: cleanup whitespace in recent commits
20480         * lib/rename.c (rpl_rename): Remove tabs.
20481         * tests/test-link.h (test_link): Likewise.
20482         * lib/fchdir.c (get_name): Likewise.
20483         Reported by Jim Meyering.
20484
20485 2009-10-02  Ben Pfaff  <blp@gnu.org>
20486
20487         relocatable-prog-wrapper: Add missing dependency on
20488         double-slash-root.
20489         * modules/relocatable-prog-wrapper: Add dependency.
20490         Reported by Ian Beckwith <ianb@erislabs.net>.
20491
20492 2009-10-02  Eric Blake  <ebb9@byu.net>
20493
20494         renameat: fix Solaris bugs
20495         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
20496         needed fixing.
20497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
20498         * modules/stdio (Makefile.am): Substitute it.
20499         * lib/stdio.in.h (renameat): Declare replacement.
20500         * lib/renameat.c (rpl_renameat): Implement fix.
20501
20502         renameat: new module
20503         * modules/renameat: New file.
20504         * lib/renameat.c (renameat): Likewise.
20505         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
20506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
20507         * modules/stdio (Makefile.am): Substitute them.
20508         * lib/stdio.in.h (renameat): Declare it.
20509         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20510         * doc/posix-functions/renameat.texi (renameat): Likewise.
20511         * modules/renameat-tests: New test.
20512         * tests/test-renameat.c: Likewise.
20513
20514         rename: fix mingw bugs
20515         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
20516         directory overwrite bugs.
20517
20518         rename: fix another cygwin 1.5 bug
20519         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
20520         checks.
20521         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
20522         unnecessary cygwin workarounds.  Also work around bug with moving
20523         full directory onto an empty one.
20524         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
20525
20526         rename-dest-slash: merge into rename module
20527         * modules/rename-dest-slash (Status): Mark obsolete.
20528         (Depends-on): Add rename.
20529         (Files): Let rename do it all.
20530         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
20531         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
20532         * m4/rename-dest-slash.m4: ...so this file can be deleted.
20533         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
20534         * lib/rename.c (rpl_rename): Update comments.
20535
20536         rename: fix cygwin 1.5.x bugs
20537         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
20538         * lib/rename.c (rpl_rename): Work around them.
20539         * modules/rename (Depends-on): Add same-inode.
20540
20541         rename: fix Solaris 10 bug
20542         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20543         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
20544         was the only bug.
20545
20546         rename: fix Solaris 9 bug
20547         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
20548         on non-directory.  Avoid calling exit.
20549         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
20550         strdup.
20551         * modules/rename-tests (Depends-on): Drop lstat.
20552         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
20553         (gl_PREREQ_RENAME): Delete unused macro.
20554
20555         rename-dest-slash: fix NetBSD bug
20556         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
20557         links.
20558         * modules/rename-dest-slash (Depends-on): Add same-inode.
20559
20560         rename-tests: new test, exposes several platform bugs
20561         * modules/rename-tests: New file.
20562         * tests/test-rename.h: Likewise.
20563         * tests/test-rename.c: Likewise.
20564         * doc/posix-functions/rename.texi (rename): Improve documentation,
20565         including bugs that will eventually be fixed in gnulib.
20566
20567 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
20568
20569         * lib/uname.c: Include <stdlib.h>
20570         (uname): Assume version info is available.
20571
20572 2009-10-02  Jim Meyering  <meyering@redhat.com>
20573
20574         gnu-web-doc-update: correct --help output
20575         * build-aux/gnu-web-doc-update: Make --help output relevant.
20576
20577         gnu-web-doc-update: add standard options
20578         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
20579
20580         gnu-web-doc-update: New module.
20581         Use this script to automatically update the on-line web documentation
20582         for your GNU project at http://www.gnu.org/software/$pkg/manual/
20583         * modules/gnu-web-doc-update: New file, from coreutils.
20584         * build-aux/gnu-web-doc-update: New script.
20585
20586 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
20587
20588         link: LoadLibrary is not needed.
20589         * lib/link.c: Use GetModuleHandle.
20590
20591 2009-10-01  Eric Blake  <ebb9@byu.net>
20592
20593         getopt: bump serial number
20594         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
20595         change.
20596
20597         tests: tighten link, rmdir, and remove tests
20598         * tests/test-link.h (includes): No need to use <config.h> here.
20599         Clean up if directory hard link was created, otherwise test for
20600         trailing '.'.
20601         * tests/test-linkat.c (main): Simplify.
20602         * tests/test-remove.c (main): Enhance test for trailing '.'.
20603         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20604
20605 2009-10-01  Jim Meyering  <meyering@redhat.com>
20606
20607         maint.mk: requiring "make major" was annoying, for a "minor" release.
20608         What is intended is "stable", to contrast with alpha and beta,
20609         so require "make stable", not "make major".
20610         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
20611         (get_tool_versions): Likewise.
20612         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
20613
20614 2009-09-30  Ben Pfaff  <blp@gnu.org>
20615
20616         Fix broken build of replacement for Windows tmpfile().
20617         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
20618         flags argument added along with the 'mkostemp' module.
20619
20620 2009-09-28  Bruno Haible  <bruno@clisp.org>
20621
20622         Avoid identifier clash with POSIX function 'remove' defined as a macro.
20623         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
20624         to 'remove_elt'.
20625         (gl_list_remove): Update.
20626         * lib/gl_list.c (gl_list_remove): Update.
20627         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
20628         to 'remove_elt'.
20629         (gl_oset_remove): Update.
20630         * lib/gl_list.c (gl_oset_remove): Update.
20631         Reported by Eric Blake.
20632
20633 2009-09-28  Eric Blake  <ebb9@byu.net>
20634
20635         doc: mention yet more cygwin 1.7 status
20636         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
20637         cygwin.
20638         * doc/glibc-functions/execvpe.texi (execvpe): New file.
20639         * doc/gnulib.texi (Glibc unistd.h): Mention it.
20640
20641         argp: fix test failure
20642         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
20643         that are not upper-case.  Pass correct range to tolower.
20644
20645 2009-09-27  Jim Meyering  <meyering@redhat.com>
20646
20647         test-yesno: work around sparc-dash here-document infelicity
20648         Without this change, the literal \177 byte in a here document
20649         would make dash 0.5.5.1-3 access uninitialized memory.
20650         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
20651         Instead, use a marker, "@", and filter through tr to create the desired
20652         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
20653
20654 2009-09-27  Bruno Haible  <bruno@clisp.org>
20655
20656         Disable untested support for new flavours of ACLs on AIX.
20657         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
20658         progress.
20659         * lib/set-mode-acl.c (qset_acl): Likewise.
20660
20661 2008-12-07  Bruno Haible  <bruno@clisp.org>
20662
20663         Add support for new flavours of ACLs on AIX. (Untested.)
20664         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
20665         (file_has_acl): Add support for newer AIX.
20666         * lib/set-mode-acl.c (qset_acl): Likewise.
20667         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
20668         Rainer Tammer <tammer@tammer.net>.
20669
20670 2009-09-26  Eric Blake  <ebb9@byu.net>
20671
20672         argp: fix compilation of getopt
20673         * lib/getopt.in.h (includes): Use different guard than glibc.
20674         Reported by Sergey Poznyakoff.
20675
20676         doc: mention more cygwin 1.7 status
20677         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
20678         bug.
20679         * doc/posix-functions/execl.texi (execl): Likewise.
20680         * doc/posix-functions/execle.texi (execle): Likewise.
20681         * doc/posix-functions/execlp.texi (execlp): Likewise.
20682         * doc/posix-functions/execv.texi (execv): Likewise.
20683         * doc/posix-functions/execve.texi (execve): Likewise.
20684         * doc/posix-functions/execvp.texi (execvp): Likewise.
20685         * doc/glibc-functions/canonicalize_file_name.texi
20686         (canonicalize_file_name): Cygwin 1.7 now provides this.
20687         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
20688         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
20689         on AT_SYMLINK_NOFOLLOW.
20690
20691 2009-09-24  Eric Blake  <ebb9@byu.net>
20692
20693         test-linkat: make test more robust
20694         * tests/test-linkat.c (main): Avoid collision with EEXIST.
20695
20696         getopt: fix inclusion guards for cygwin
20697         * modules/getopt-posix (Depends-on): Add include-next.
20698         (Makefile.am): Substitute more items in replacement header.
20699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
20700         <getopt.h>.
20701         * lib/getopt.in.h (includes): Use split inclusion guard, and
20702         prefer <getopt.h> over include <unistd.h> when one is present.
20703         (option): Also override name of 'struct option'.
20704
20705         same-inode: revert prior change; it is not yet ready
20706         * NEWS: Undo mention of this change.
20707         * lib/same-inode.h (same-inode.h): Undo tri-state change.
20708         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20709         * lib/cycle-check.c (cycle_check): Likewise.
20710         * lib/same.c (same_name): Likewise.
20711         * lib/at-func2.c (at_func2): Likewise.
20712
20713 2009-09-23  Eric Blake  <ebb9@byu.net>
20714
20715         linkat: new module
20716         * modules/linkat: New file.
20717         * lib/at-func2.c (at_func2): Likewise.
20718         * lib/linkat.c (linkat): Likewise.
20719         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20720         * lib/openat-priv.h (at_func2): Add declaration.
20721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20722         * modules/unistd (Makefile.am): Substitute them.
20723         * lib/unistd.in.h (linkat): Declare it.
20724         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20725         * doc/posix-functions/linkat.texi (linkat): Likewise.
20726         * doc/posix-functions/link.texi (link): Tweak wording.
20727         * tests/test-link.c (main): Move guts...
20728         * tests/test-link.h (test_link): ...into new file.
20729         * modules/linkat-tests: New test.
20730         * tests/test-linkat.c: Likewise.
20731         * modules/link-tests (Files): Ship new file.
20732         (Depends-on): Add stdbool.
20733
20734         dirname: add library-safe mdir_name
20735         * lib/dirname.h (mdir_name): New prototype.
20736         * lib/dirname.c (dir_name): Move guts...
20737         (mdir_name): ...to new function that avoids xalloc_die.
20738
20739         fchdir: another mingw fix
20740         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
20741         * lib/fchdir.c (get_name): New helper method; skips canonicalize
20742         on mingw (where it has not yet been ported), and make it optional
20743         elsewhere.
20744         (_gl_register_fd): Use it.
20745
20746         same-inode: make SAME_INODE tri-state, to port to mingw
20747         * NEWS: Mention this change.
20748         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
20749         st_ino always being 0.
20750         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
20751         * lib/cycle-check.c (cycle_check): Likewise.
20752         * lib/same.c (same_name): Likewise.
20753
20754         lstat: avoid mingw compilation error
20755         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
20756         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
20757         lstat ourselves.
20758         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
20759         was adequate.
20760         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
20761         the checks for lstat.
20762         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
20763
20764         link: fix test failure on Solaris 9
20765         * lib/link.c (rpl_link): Don't assume link will catch bogus
20766         trailing slash on source.
20767
20768         test-symlinkat: enhance test
20769         * tests/test-readlink.c (main): Move guts...
20770         * tests/test-readlink.h (test_readlink): ...into new file.
20771         * tests/test-symlink.c (main): Move guts...
20772         * tests/test-symlink.h (test_symlink): ...into new file.
20773         * tests/test-symlinkat.c (main): Use new files for further
20774         coverage.
20775         (do_symlink, do_readlink): New helper functions.
20776         * modules/symlink-tests (Files): Ship new file.
20777         (Depends-on): Add stdbool.
20778         * modules/readlink-tests (Files): Ship new file.
20779         (Depends-on): Add stdbool.
20780         * modules/symlinkat-tests (Files): Use new files.
20781
20782 2009-09-23  Eric Blake  <ebb9@byu.net>
20783
20784         readlink: document portability issue with symlink length
20785         * doc/posix-functions/lstat.texi (lstat): Mention that some file
20786         systems have bogus st_size on symlinks, and mention the
20787         areadlink-with-size module.
20788         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
20789         * doc/posix-functions/readlink.texi (readlink): Mention the
20790         areadlink module, and ERANGE failure.
20791         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20792         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
20793
20794         readlink: fix Solaris 9 bug with trailing slash
20795         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
20796         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
20797         * doc/posix-functions/readlink.texi (readlink): Document this.
20798         * modules/readlink-tests: New test.
20799         * tests/test-readlink.c: Likewise.
20800
20801         readlink: fix cygwin 1.5.x bug with return type
20802         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
20803         * lib/unistd.in.h (readlink): Use ssize_t.
20804         * lib/readlink.c (readlink): Likewise.
20805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20806         * modules/unistd (Makefile.am): Substitute it.
20807         * lib/unistd.in.h (readlink): Declare replacement.
20808         * doc/posix-functions/readlink.texi (readlink): Document this.
20809
20810         symlink: use throughout gnulib
20811         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
20812         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
20813         symlink is not used.
20814         * modules/symlinkat (Depends-on): Add symlink.
20815         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20816         * modules/canonicalize-tests (Depends-on): Likewise.
20817         * modules/lstat-tests (Depends-on): Likewise.
20818         * modules/openat-tests (Depends-on): Likewise.
20819         * modules/remove-tests (Depends-on): Likewise.
20820         * modules/rmdir-tests (Depends-on): Likewise.
20821         * modules/unlink-tests (Depends-on): Likewise.
20822         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
20823         * tests/test-canonicalize.c (symlink): Likewise.
20824         * tests/test-fstatat.c (symlink): Likewise.
20825         * tests/test-lstat.c (symlink): Likewise.
20826         * tests/test-remove.c (symlink): Likewise.
20827         * tests/test-rmdir.c (symlink): Likewise.
20828         * tests/test-unlink.c (symlink): Likewise.
20829         * tests/test-unlinkat.c (symlink): Likewise.
20830
20831         symlink: new module, for Solaris 9 bug
20832         * modules/symlink: New file.
20833         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20834         * lib/symlink.c: Likewise.
20835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
20836         * modules/unistd (Makefile.am): Substitute them.
20837         * lib/unistd.in.h (symlink): Declare replacement.
20838         * MODULES.html.sh (File system functions): Mention it.
20839         * doc/posix-functions/symlink.texi (symlink): Likewise.
20840         * modules/symlink-tests: New test.
20841         * tests/test-symlink.c: Likewise.
20842
20843 2009-09-23  Bruno Haible  <bruno@clisp.org>
20844
20845         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
20846         when needed.
20847         Test case: gnulib-tool --import --with-tests atexit inttypes.
20848         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
20849
20850 2009-09-23  Bruno Haible  <bruno@clisp.org>
20851
20852         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
20853         subcommand, not in a subshell.
20854
20855 2009-09-22  Eric Blake  <ebb9@byu.net>
20856
20857         unistd: sort replacement declarations
20858         * lib/unistd.in.h: Sort declarations.
20859
20860         open, openat: minor optimization
20861         * lib/open.c (open): If open succeeded, len is non-zero.
20862         * lib/openat.c (rpl_openat): Likewise.
20863
20864         link-follow: ensure correct result
20865         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
20866         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
20867         distinguish between possible failures.
20868
20869 2009-09-21  Eric Blake  <ebb9@byu.net>
20870
20871         fts: avoid compiler warning
20872         * lib/fts.c (dirent_inode_sort_may_be_useful)
20873         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
20874
20875 2009-09-19  Bruno Haible  <bruno@clisp.org>
20876
20877         * lib/progreloc.c (canonicalize_file_name): New declaration.
20878
20879 2009-09-19  Eric Blake  <ebb9@byu.net>
20880
20881         link: fix quoting
20882         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
20883
20884         openat: fix openat bugs on Solaris 9
20885         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
20886         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
20887         * modules/openat (Depends-on): Add open.
20888         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
20889         * modules/fcntl-h (Makefile.am): Substitute it.
20890         * lib/fcntl.in.h (openat): Declare replacement.
20891         * doc/posix-functions/openat.texi (openat): Document this.
20892
20893         openat: move fstatat and unlinkat into correct files
20894         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
20895         compiled.
20896         * lib/openat.c (fstatat, unlinkat): Move...
20897         * lib/fstatat.c (fstatat): ...into correct files.
20898         * lib/unlinkat.c (unlinkat): Likewise.
20899
20900         openat: fix unlinkat bugs on Solaris 9
20901         * lib/unlinkat.c (unlinkat): New file.
20902         * modules/openat (Depends-on): Add unlink.
20903         (Files): Distribute it.
20904         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
20905         trailing slash behavior is broken.
20906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20907         * modules/unistd (Makefile.am): Substitute it.
20908         * lib/unistd.in.h (unlinkat): Declare replacement.
20909         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
20910
20911         openat: fix fstatat bugs on Solaris 9
20912         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
20913         stat.
20914         * doc/posix-functions/fstatat.texi (fstatat): Document this.
20915
20916         test-unlinkat: enhance test, to expose Solaris 9 bug
20917         * tests/test-unlink.c (main): Factor guts...
20918         * tests/test-unlink.h (test_rmdir_func): ...into new file.
20919         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
20920         * tests/test-rmdir.c (main): Adjust caller.
20921         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
20922         (unlinker): New helper function.
20923         (rmdirat): Enhance check.
20924         * modules/rmdir-tests (Depends-on): Add stdbool.
20925         * modules/unlink-tests (Depends-on): Likewise.
20926         (Files): Add test-unlink.h.
20927         * modules/openat-tests (Files): Likewise.
20928         (Depends-on): Add unlinkdir.
20929
20930         test-fstatat: new test, to expose Solaris 9 bugs
20931         * tests/test-stat.c (main): Factor guts...
20932         * tests/test-stat.h (test_stat_func): ...into new file.
20933         * tests/test-lstat.c (main): Factor guts...
20934         * tests/test-lstat.h (test_lstat_func): ...into new file.
20935         * tests/test-fstatat.c: New file.
20936         * modules/stat-tests (Files): Add test-stat.h.
20937         * modules/lstat-tests (Files): Add test-lstat.h.
20938         (Depends-on): Add stdbool.
20939         * modules/openat-tests (Depends-on): Add pathmax.
20940         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
20941         (Makefile.am): Run new test.
20942
20943         remove: new module, for mingw and Solaris 9 bugs
20944         * modules/remove: New file.
20945         * lib/remove.c: Likewise.
20946         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
20947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
20948         * modules/stdio (Makefile.am): Use them.
20949         * lib/stdio.in.h (remove): Declare replacement.
20950         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20951         * doc/posix-functions/remove.texi (remove): Likewise.
20952         * modules/remove-tests: New test.
20953         * tests/test-remove.c: Likewise.
20954
20955         unlink: new module, for Solaris 9 bug
20956         * modules/unlink: New file.
20957         * lib/unlink.c: Likewise.
20958         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
20960         * modules/unistd (Makefile.am): Use them.
20961         * lib/unistd.in.h (stat): Declare replacement.
20962         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
20963         * doc/posix-functions/unlink.texi (unlink): Likewise.
20964         * modules/unlink-tests: New test.
20965         * tests/test-unlink.c: Likewise.
20966
20967         lstat: fix Solaris 9 bug
20968         * lib/lstat.c (lstat): Also check for trailing slash on
20969         non-symlink, non-directories.  Use stat module to simplify logic.
20970         * doc/posix-functions/lstat.texi (lstat): Document it.
20971         * modules/lstat-tests (Depends-on): Add errno, same-inode.
20972         (configure.ac): Check for symlink.
20973         * tests/test-lstat.c (main): Add more tests.
20974
20975         stat: add as dependency to other modules
20976         * modules/chown (Depends-on): Add stat.
20977         * modules/euidaccess (Depends-on): Likewise.
20978         * modules/fchdir (Depends-on): Likewise.
20979         * modules/isdir (Depends-on): Likewise.
20980         * modules/link (Depends-on): Likewise.
20981         * modules/lstat (Depends-on): Likewise.
20982         * modules/mkdir-p (Depends-on): Likewise.
20983         * modules/modechange (Depends-on): Likewise.
20984         * modules/open (Depends-on): Likewise.
20985         * modules/readlink (Depends-on): Likewise.
20986         * modules/same (Depends-on): Likewise.
20987
20988         stat: fix Solaris 9 bug
20989         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
20990         slash.
20991         * lib/stat.c (rpl_stat): Work around it.
20992         * doc/posix-functions/stat.texi (stat): Update documentation.
20993
20994         stat: new module, for mingw bug
20995         * modules/stat: New file.
20996         * lib/stat.c: Likewise.
20997         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20998         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
20999         * modules/sys_stat (Makefile.am): Use them.
21000         * lib/sys_stat.in.h (stat): Declare replacement.
21001         * lib/openat.c (fstatat): Deal with lstat and stat being function
21002         macros.
21003         * modules/openat (Depends-on): Add inline.
21004         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
21005         * doc/posix-functions/stat.texi (stat): Likewise.
21006         * modules/stat-tests: New test.
21007         * tests/test-stat.c: Likewise.
21008
21009 2009-09-19  Jim Meyering  <meyering@redhat.com>
21010
21011         syntax-check: detect unnecessary inclusion of canonicalize.h
21012         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
21013
21014 2009-09-19  Eric Blake  <ebb9@byu.net>
21015
21016         canonicalize-lgpl: adjust clients to use correct header
21017         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21018         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
21019         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
21020         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
21021         * lib/progreloc.c (includes): Likewise.
21022
21023 2009-09-19  Jim Meyering  <meyering@redhat.com>
21024
21025         test-posixtm.c: correct a comment
21026         * tests/test-posixtm.c: Correct first-line comment.
21027         Spotted by Eric Blake.
21028
21029 2009-09-16  Jim Meyering  <meyering@redhat.com>
21030
21031         posixtm-tests: make T const-correct; add a test case
21032         * tests/test-posixtm.c (T): Declare const.
21033         Add a test for -(2^31+1).
21034         Remove useless can-succeed-only-in-2002 test.
21035
21036         posixtm-tests: adjust the sole failing test
21037         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
21038         expected output matches what mktime now produces.  Cross-checked via
21039         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
21040
21041         posixtm: move #ifdef'd tests into a new module
21042         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
21043         * tests/test-posixtm.c: ... this new file.
21044         * modules/posixtm-tests: New module.
21045
21046 2009-09-19  Eric Blake  <ebb9@byu.net>
21047
21048         openat: simplify use of at-func.c
21049         * lib/at-func.c (includes): Include prerequisites here, to
21050         simplify requirements on client files.
21051         * lib/openat-priv.h: Add double-inclusion guard.
21052         * lib/faccessat.c (includes): Simplify.
21053         * lib/fchmodat.c (includes): Likewise.
21054         * lib/fchownat.c (includes): Likewise.
21055         * lib/mkdirat.c (includes): Likewise.
21056         * lib/mkfifoat.c (includes): Likewise.
21057         * lib/symlinkat.c (includes): Likewise.
21058
21059         openat: allow return of fd 0
21060         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
21061         * modules/save-cwd (Depends-on): Replace fcntl-safer with
21062         unistd-safer.
21063         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
21064         <fcntl.h>; this module does not leak fds.
21065         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
21066         must be allowed to return 0, leaving openat_safer to add the
21067         safety.
21068         (openat_permissive): Avoid writing to just-opened fd 2 if
21069         restoring the current directory fails.
21070         * lib/openat-die.c (openat_restore_fail): Add comment.
21071         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
21072         (save_cwd): Guarantee safe fd, but without use of open_safer.
21073         * tests/test-openat.c: New test.
21074         * modules/openat-tests (Files, Makefile.am): Distribute and build
21075         new file.
21076
21077         relocatable-prog-wrapper: fix build
21078         * modules/relocatable-prog-wrapper (Files): Update name of
21079         canonicalize m4 file, broken on 2009-09-17.
21080         Reported by emad hajjar <aleppos@hotmail.com>.
21081
21082 2009-09-19  Bruno Haible  <bruno@clisp.org>
21083
21084         * lib/safe-alloc.h: Use the standard header with GPL copyright.
21085         * lib/safe-alloc.c: Likewise.
21086         Reported by Ian Beckwith <ianb@erislabs.net>.
21087
21088 2009-09-18  Bruno Haible  <bruno@clisp.org>
21089
21090         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
21091         Reported by <erobles@sensacd.com.mx>.
21092
21093 2009-09-17  Eric Blake  <ebb9@byu.net>
21094
21095         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
21096         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
21097         slashes when checking if last component is missing.
21098         * tests/test-canonicalize.c (main): Test this.
21099
21100         canonicalize, canonicalize-lgpl: honor // if distinct from /
21101         * modules/canonicalize (Files): Add double-slash-root.m4.
21102         * modules/canonicalize-lgpl (Files): Likewise.
21103         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21104         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
21105         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
21106         fallback definition.
21107         (canonicalize_filename_mode): Use it to protect //.
21108         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
21109         (__realpath): Likewise.
21110         * tests/test-canonicalize.c (main): Test this.
21111         * tests/test-canonicalize-lgpl.c (main): Likewise.
21112         * modules/canonicalize-tests (Depends-on): Add same-inode.
21113         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21114
21115         canonicalize-lgpl: fix glibc bug with trailing slash
21116         * m4/canonicalize-lgpl.m4: Move contents...
21117         * m4/canonicalize.m4: ...here.
21118         (gl_CANONICALIZE_LGPL): Factor realpath check...
21119         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
21120         glibc 2.3.5 bug, fixed 2005-04-27.
21121         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
21122         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
21123         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
21124         * modules/canonicalize-lgpl (Files): Manage file rename.
21125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
21126         * modules/stdlib (Makefile.am): Substitute witness.
21127         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
21128         is needed.
21129         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
21130         replacement is required.
21131         * lib/canonicalize.c (canonicalize_file_name): Likewise.
21132         * doc/glibc-functions/canonicalize_file_name.texi
21133         (canonicalize_file_name): Document this.
21134         * doc/posix-functions/realpath.texi (realpath): Likewise.
21135
21136         canonicalize-lgpl: reject non-directory with trailing slash
21137         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
21138         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
21139         catches failures in glibc 2.3.5.
21140         * tests/test-canonicalize.c (main): Likewise.
21141
21142         canonicalize-lgpl: use native realpath if it works
21143         * lib/canonicalize-lgpl.c (realpath): Guard with
21144         FUNC_REALPATH_WORKS.
21145         * lib/stdlib.in.h (realpath): Make declaration optional based on
21146         HAVE_REALPATH.
21147         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
21148         native realpath works.
21149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
21150         * modules/stdlib (Makefile.am): Substitute witness.
21151
21152         canonicalize, canonicalize-lgpl: use <stdlib.h>
21153         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
21154         (Include): Mention <stdlib.h>.
21155         (configure.ac): Mention functions we provide.
21156         * modules/canonicalize (configure.ac): Likewise.
21157         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
21158         realpath if canonicalize_file_name is missing.
21159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
21160         * modules/stdlib (Makefile.am): Substitute witnesses.
21161         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
21162         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
21163         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
21164         * NEWS: Document this.
21165         * doc/glibc-functions/canonicalize_file_name.texi
21166         (canonicalize_file_name): Likewise.
21167         * doc/posix-functions/realpath.texi (realpath): Likewise.
21168         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
21169
21170         test-canonicalize: consolidate into single C program
21171         * tests/test-canonicalize.sh: Delete; move setup into...
21172         * tests/test-canonicalize.c (main): ...the program, making it
21173         easier to run in debugger.  Add some tests.
21174         * modules/canonicalize-tests (Files): Remove unused file.
21175         (Depends-on): Add progname.
21176         (configure.ac, Makefile.am): Simplify.
21177
21178         test-canonicalize-lgpl: consolidate into single C program
21179         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
21180         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
21181         easier to run in debugger.  Add some tests.
21182         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
21183         (configure.ac, Makefile.am): Simplify.
21184
21185         canonicalize: avoid resolvepath
21186         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
21187         unnecessary checks.
21188         * lib/canonicalize.c (includes): Simplify.
21189         (canonicalize_file_name): Drop resolvepath implementation.
21190         * modules/canonicalize (Depends-on): Drop filenamecat.
21191
21192         canonicalize: don't lose errno
21193         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
21194         over calls to free.
21195
21196         canonicalize: simplify errno handling
21197         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
21198         assignment.
21199
21200         canonicalize, canonicalize-lgpl: update module dependencies
21201         * modules/canonicalize (Depends-on): Add extensions, lstat,
21202         pathmax, stdlib.
21203         (Files): Drop pathmax.h.
21204         (configure.ac): Adjust macro name.
21205         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
21206         lstat, stdlib, sys_stat.
21207         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
21208         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
21209         extensions.
21210         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
21211         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
21212         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
21213         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
21214         declaration, if available.
21215         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
21216         we can rely on the readlink module.
21217         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
21218         (includes): Use <unistd.h> unconditionally.
21219
21220 2009-09-17  Eric Blake  <ebb9@byu.net>
21221
21222         maint: make Include sections of modules consistent
21223         * modules/alloca: Use only header name; no need to list #include.
21224         * modules/alloca-opt: Likewise.
21225         * modules/arpa_inet: Likewise.
21226         * modules/canon-host: Likewise.
21227         * modules/configmake: Likewise.
21228         * modules/dirent: Likewise.
21229         * modules/eealloc: Likewise.
21230         * modules/environ: Likewise.
21231         * modules/fchdir: Likewise.
21232         * modules/fcntl: Likewise.
21233         * modules/fcntl-h: Likewise.
21234         * modules/gethrxtime: Likewise.
21235         * modules/gettime: Likewise.
21236         * modules/ignore-value: Likewise.
21237         * modules/inet_ntop: Likewise.
21238         * modules/inet_pton: Likewise.
21239         * modules/inttypes: Likewise.
21240         * modules/isnand-nolibm: Likewise.
21241         * modules/isnanf-nolibm: Likewise.
21242         * modules/mbchar: Likewise.
21243         * modules/mbfile: Likewise.
21244         * modules/mbiter: Likewise.
21245         * modules/mbuiter: Likewise.
21246         * modules/netdb: Likewise.
21247         * modules/netinet_in: Likewise.
21248         * modules/nproc: Likewise.
21249         * modules/pagealign_alloc: Likewise.
21250         * modules/poll: Likewise.
21251         * modules/printf-frexp: Likewise.
21252         * modules/pthread: Likewise.
21253         * modules/putenv: Likewise.
21254         * modules/random_r: Likewise.
21255         * modules/relocatable-prog: Likewise.
21256         * modules/search: Likewise.
21257         * modules/select: Likewise.
21258         * modules/selinux-h: Likewise.
21259         * modules/settime: Likewise.
21260         * modules/signal: Likewise.
21261         * modules/size_max: Likewise.
21262         * modules/socklen: Likewise.
21263         * modules/ssize_t: Likewise.
21264         * modules/stdarg: Likewise.
21265         * modules/stdbool: Likewise.
21266         * modules/stddef: Likewise.
21267         * modules/stdint: Likewise.
21268         * modules/stdio: Likewise.
21269         * modules/stdlib: Likewise.
21270         * modules/string: Likewise.
21271         * modules/strings: Likewise.
21272         * modules/sys_file: Likewise.
21273         * modules/sys_ioctl: Likewise.
21274         * modules/sys_select: Likewise.
21275         * modules/sys_socket: Likewise.
21276         * modules/sys_stat: Likewise.
21277         * modules/sys_time: Likewise.
21278         * modules/sys_times: Likewise.
21279         * modules/sys_utsname: Likewise.
21280         * modules/sys_wait: Likewise.
21281         * modules/sysexits: Likewise.
21282         * modules/time: Likewise.
21283         * modules/times: Likewise.
21284         * modules/tmpfile: Likewise.
21285         * modules/trim: Likewise.
21286         * modules/unistd: Likewise.
21287         * modules/wchar: Likewise.
21288         * modules/wctype: Likewise.
21289
21290 2009-09-17  Bruno Haible  <bruno@clisp.org>
21291
21292         Make getdate.y compile on QNX and NetBSD 5 / i386.
21293         * m4/getdate.m4 (gl_GETDATE): Conditionally define
21294         TIME_T_FITS_IN_LONG_INT.
21295         * lib/getdate.y (long_time_t): New type.
21296         (relative_time): Change type of 'seconds' field to long_time_t.
21297         (get_date): Update types of local variables. Check against overflow
21298         during conversion from long_time_t to time_t.
21299         Reported by Matt Kraai <kraai@ftbfs.org>
21300         and Hasso Tepper <hasso@netbsd.org>.
21301
21302 2009-09-17  Bruno Haible  <bruno@clisp.org>
21303
21304         * modules/COPYING: Update copyright years.
21305         * modules/README: Likeiwse.
21306         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
21307         Reported by Ian Beckwith <ianb@erislabs.net>.
21308
21309 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
21310
21311         * users.txt: Update references for gnuit package.
21312
21313 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
21314
21315         * m4/getdelim.m4: Fix typo in copyright line.
21316
21317 2009-09-17  Bruno Haible  <bruno@clisp.org>
21318
21319         * lib/atoll.c: Use the standard header with GPL copyright.
21320         * lib/argz.in.h: Likewise.
21321         * lib/glob.c: Likewise.
21322         * lib/glob-libc.h: Likewise.
21323         * lib/random_r.c: Likewise.
21324         * lib/siglist.h: Likewise.
21325         * lib/strsignal.c: Likewise.
21326         Reported by Ian Beckwith <ianb@erislabs.net>.
21327
21328 2009-09-17  Eric Blake  <ebb9@byu.net>
21329
21330         rmdir: ensure correct dependency order
21331         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
21332
21333 2009-09-17  Bruno Haible  <bruno@clisp.org>
21334
21335         Disable assertion that fails on NetBSD 5 / i386.
21336         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
21337         Reported by Sam Steingold <sds@gnu.org>
21338         and Hasso Tepper <hasso@netbsd.org>.
21339
21340 2009-09-16  Eric Blake  <ebb9@byu.net>
21341
21342         unlinkdir: port to mingw
21343         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
21344         on which no one can unlink a directory.
21345
21346         stdlib: sort witness names
21347         * modules/stdlib (Makefile.am): Sort replacements.
21348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
21349         * lib/stdlib.in.h: Likewise.
21350
21351         parse-duration-tests: avoid link failure
21352         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
21353         LIBINTL.
21354         Reported by Tom G. Christensen.
21355
21356         openat-tests: ensure unlinkat behaves like rmdir
21357         * tests/test-rmdir.c (main): Factor guts...
21358         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
21359         * modules/rmdir-tests (Files): Ship new file.
21360         * modules/openat-tests: New test.
21361         * tests/test-unlinkat.c: Likewise.
21362
21363         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
21364         * modules/rmdir-errno (Status, Notice): Now obsolete.
21365
21366         rmdir: work around cygwin 1.5.x and mingw bugs
21367         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
21368         * lib/rmdir.c (rmdir): Work around it.
21369         * modules/rmdir (Status, Notice): No longer obsolete.
21370         (Files): Add dos.m4.
21371         (Depends-on): Add unistd.
21372         (configure.ac): Set witnesses.
21373         (License): Relax to LGPLv2+.
21374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
21375         * modules/unistd (Makefile.am): Substitute witnesses.
21376         * lib/unistd.in.h (rmdir): Declare replacement.
21377         * doc/posix-functions/rmdir.texi (rmdir): Document this.
21378         * modules/rmdir-tests: New tests.
21379         * tests/test-rmdir.c: Likewise.
21380
21381 2009-09-15  Eric Blake  <ebb9@byu.net>
21382
21383         fchdir: improve use of replacement functions
21384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
21385         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
21386         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
21387         REPLACE_CLOSEDIR.
21388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
21389         * modules/sys_stat (Makefile.am): Substitute correct witness.
21390         * modules/dirent (Makefile.am): Likewise.
21391         * modules/unistd (Makefile.am): Likewise.
21392         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
21393         * lib/unistd.in.h (dup): Likewise.
21394         * lib/sys_stat.in.h (fstat): Likewise.
21395
21396         maint: ignore gnulib-tool temp files
21397         * .gitignore: Ignore files created during gnulib-tool --test.
21398
21399 2009-09-13  Jim Meyering  <meyering@redhat.com>
21400
21401         posixtm: don't reject a time that specify "60" as the number of seconds
21402         * lib/posixtm.c (posixtime): The code to reject invalid dates
21403         would also reject a time specified with the .60 suffix.
21404         But POSIX allows that, in order to accommodate leap seconds.
21405         So don't reject it.
21406         (main): Adjust tests accordingly.
21407         * modules/posixtm (Depends-on): Add stpcpy.
21408
21409 2009-09-11  Jim Meyering  <meyering@redhat.com>
21410
21411         announce-gen: include [$release_type] in emitted Subject:
21412         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
21413         e.g., [stable] in the emitted Subject: line.
21414
21415 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21416
21417         Remove obsolete macros from several modules.
21418         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
21419         obsolete Autoconf macros with their modern counterparts.
21420         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
21421         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
21422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
21423         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
21424         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
21425         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21427         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21428         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21429         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
21430         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21431         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21432         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
21433         * m4/sockets.m4 (gl_SOCKETS): Likewise.
21434         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
21435         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
21436         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
21437         * m4/time_r.m4 (gl_TIME_R): Likewise.
21438         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21439         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
21440         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21441
21442         Fix copyright header in build-aux scripts.
21443         * build-aux/git-version-gen: Fix copyright header to match GPLv3
21444         recommendation.
21445         * build-aux/ncftpput-ftp: Likewise.
21446         * build-aux/update-copyright: Likewise.
21447
21448 2009-09-09  Eric Blake  <ebb9@byu.net>
21449
21450         test-link: allow Linux choice of errno
21451         * tests/test-link.c (main): Relax test for alternate error.
21452
21453         strndup: fix improper m4 caching
21454         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
21455         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
21456         (gl_PREREQ_STRNDUP): Delete.
21457         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
21458         * modules/string (Makefile.am): Substitute it.
21459         * lib/string.in.h (strndup): Modernize prototype.
21460
21461         getcwd: port to mingw
21462         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
21463         different from the POSIX assumptions made throughout the getcwd
21464         module; fortunately, the mingw getcwd does not need replacement.
21465         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
21466         * modules/getcwd-tests: New test.
21467         * tests/test-getcwd.c: Likewise.
21468
21469         link: fix platform bugs
21470         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
21471         * lib/link.c (link): Work around them.  Fix related mingw bug.
21472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
21473         * modules/unistd (Makefile.am): Substitute it.
21474         * lib/unistd.in.h (link): Declare replacement.
21475         * doc/posix-functions/link.texi (link): Document this.
21476         * modules/link (Depends-on): Add strdup-posix, sys_stat.
21477
21478         test-link: consolidate into single C program, test more cases
21479         * tests/test-link.sh: Delete.
21480         * tests/test-link.c: Test more error conditions.  Exposes bugs on
21481         at least Cygwin and Solaris.
21482         * modules/link-tests (Files): Remove unused file.
21483         (Depends-on): Add errno, sys_stat.
21484         (Makefile.am): Simplify.
21485
21486 2009-09-08  Bruno Haible  <bruno@clisp.org>
21487
21488         Work around towlower, towupper bug on mingw.
21489         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
21490         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
21491         * doc/posix-functions/towlower.texi: Mention the mingw bug.
21492         * doc/posix-functions/towupper.texi: Likewise.
21493         Reported by Eric Blake.
21494
21495 2009-09-08  Jim Meyering  <meyering@redhat.com>
21496
21497         build: don't try to run autoheader if we don't use it
21498         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
21499         is not used in configure.ac.
21500
21501 2009-09-08  Eric Blake  <ebb9@byu.net>
21502
21503         euidaccess: fix compilation error
21504         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
21505
21506         rawmemchr: relax license
21507         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
21508         okay.
21509         Reported by Jim Meyering.
21510
21511         mkfifoat: new module
21512         * modules/mkfifoat: New file.
21513         * lib/mkfifoat.c: Likewise.
21514         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
21515         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
21516         * modules/sys_stat (Makefile.am): Use them.
21517         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
21518         * MODULES.html.sh (File system functions): Mention module.
21519         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
21520         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
21521         * modules/mkfifoat-tests: New test.
21522         * tests/test-mkfifoat.c: Likewise.
21523
21524         strchrnul: relax license
21525         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
21526         okay.
21527         Reported by Jim Meyering.
21528
21529 2009-09-08  Eric Blake  <ebb9@byu.net>
21530
21531         fstatat: fix compilation on Solaris
21532         * lib/fstatat.c (includes): Add fcntl.h.
21533         Reported by Pádraig Brady.
21534
21535 2009-09-07  Eric Blake  <ebb9@byu.net>
21536
21537         rename: modernize replacement
21538         * modules/rename (Depends-on): Add stdio.
21539         (configure.ac): Declare witness.
21540         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
21541         stdio take care of replacement.
21542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
21543         * modules/stdio (Makefile.am): Substitute them.
21544         * lib/stdio.in.h (rename): Declare replacement.
21545         * lib/rename.c (includes): Allow cross-compilation to non-windows
21546         machines.
21547         * doc/posix-functions/rename.texi (rename): Improve
21548         documentation.
21549
21550         stdio: sort witness names
21551         * modules/stdio (Makefile.am): Sort replacements.
21552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21553         * lib/stdio.in.h: Likewise.
21554
21555         getcwd: minor cleanups
21556         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
21557         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
21558
21559         openat: provide more convenience names
21560         * modules/faccessat (configure.ac): Add C witness.
21561         * lib/unistd.in.h (readlinkat): Fix typo.
21562         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
21563         convenience wrappers.
21564         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
21565         wrappers in syntax checks.
21566
21567 2009-09-06  Eric Blake  <ebb9@byu.net>
21568
21569         doc: fix comments in recent patches
21570         * lib/faccessat.c: Mention correct function.
21571         * lib/fchmodat.c: Likewise.
21572         * lib/fchownat.c: Likewise.
21573         * lib/symlinkat.c: Likewise.
21574         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
21575         constants.
21576
21577         faccessat, symlinkat: continue cleanup of previous patch
21578         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
21579         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21580         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
21581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
21582         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
21583         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
21584         set.
21585
21586 2009-09-06  Bruno Haible  <bruno@clisp.org>
21587
21588         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
21589         (fstatat): Declare if GNULIB_FSTATAT is set.
21590         (mkdirat): Declare if GNULIB_MKDIRAT is set.
21591         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
21592         (unlinkat): Declare if GNULIB_UNLINKAT is set.
21593         * modules/fcntl-h (Files): Remove m4/openat.m4.
21594         * modules/sys_stat (Files): Remove m4/openat.m4.
21595         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
21596         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
21597         * modules/unistd (Files): Remove m4/openat.m4.
21598         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
21599         GNULIB_OPENAT.
21600         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
21601         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
21602         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
21603         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
21604         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
21605         gl_OPENAT_DEFAULTS.
21606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
21607         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
21608         Don't require gl_OPENAT_DEFAULTS.
21609         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
21610         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
21611         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
21612         (gl_OPENAT_DEFAULTS): Remove macro.
21613
21614 2009-09-06  Bruno Haible  <bruno@clisp.org>
21615
21616         * modules/openat (configure.ac): Remove unneeded witness.
21617
21618 2009-09-06  Bruno Haible  <bruno@clisp.org>
21619
21620         Set errno to ENOSYS when a function is entirely unsupported.
21621         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
21622         EOPNOTSUPP.
21623         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
21624         * modules/chown (Depends-on): Remove errno.
21625
21626 2009-09-06  Bruno Haible  <bruno@clisp.org>
21627
21628         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
21629
21630 2009-09-06  Bruno Haible  <bruno@clisp.org>
21631
21632         * lib/sys_stat.in.h: Fix preprocessor command indentation.
21633
21634 2009-09-06  Ben Pfaff  <blp@gnu.org>
21635             Bruno Haible  <bruno@clisp.org>
21636
21637         Work around a glibc bug in strtok_r.
21638         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
21639         Undefine if UNDEFINE_STRTOK_R is set.
21640         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
21641         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21642         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
21643         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
21644         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
21645         UNDEFINE_STRTOK_R.
21646         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
21647
21648 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
21649
21650         exclude: minor fix
21651         * lib/exclude.c: Include wctype.h
21652
21653 2009-09-06  Akim Demaille  <demaille@gostai.com>
21654
21655         bootstrap: improve error message
21656         * build-aux/bootstrap (find_tool): Upon failure, report the list
21657         of candidates.
21658         Honor the initial value of the envvar.
21659
21660 2009-09-05  Eric Blake  <ebb9@byu.net>
21661
21662         symlinkat: new module
21663         * modules/symlinkat: New file.
21664         * lib/symlinkat.c: Likewise.
21665         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
21667         * modules/unistd (Makefile.am): Use them.
21668         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
21669         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
21670         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
21671         * MODULES.html.sh (File system functions): Mention module.
21672         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21673         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21674         * modules/symlinkat-tests: New test.
21675         * tests/test-symlinkat.c: Likewise.
21676
21677         test-openat-safer: add more checks
21678         * tests/test-openat-safer.c (main): Check more code paths.
21679
21680 2009-09-05  Jim Meyering  <meyering@redhat.com>
21681
21682         syntax-check: detect unnecessary inclusion of openat.h
21683         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
21684
21685 2009-09-05  Bruno Haible  <bruno@clisp.org>
21686
21687         Support towlower, towupper.
21688         * doc/posix-functions/towlower.texi: Mention module wctype.
21689         * doc/posix-functions/towupper.texi: Likewise.
21690         * lib/wctype.in.h (towlower, towupper): New functions.
21691         * tests/test-wctype.c: Include stdio.h, stdlib.h.
21692         (ASSERT): New macro.
21693         (e): New variable.
21694         (main): Test also towlower, towupper. Test WEOF argument.
21695         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21696
21697 2009-09-05  Bruno Haible  <bruno@clisp.org>
21698
21699         Fix conversion behaviour when the input is invalid.
21700         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
21701         mark occurring in first pass of indirect conversion.
21702         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
21703         input.
21704         Found by clang's static analyzer.
21705
21706 2009-09-05  Bruno Haible  <bruno@clisp.org>
21707
21708         * tests/test-striconveh.c (main): Test indirect conversion on platforms
21709         where direct conversion is possible.
21710
21711 2009-09-04  Eric Blake  <ebb9@byu.net>
21712
21713         openat: fail with ENOENT on empty name
21714         * lib/openat-proc.c (openat_proc_name): Special-case the empty
21715         buffer.
21716
21717         link-follow: fix logic bug in prior patch
21718         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
21719         reversed sense of yes and no in prior patch.  Avoid confusing
21720         compilation failure with desired semantics.
21721
21722         link-follow: accomodate mingw and cross-compilation
21723         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
21724         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
21725         cross-compilation results to -1, to make linkat easier to
21726         implement when cross-compiling.  Trivially support mingw.
21727         * modules/link-follow (configure.ac): Call new name.
21728         * NEWS: Mention this.
21729
21730 2009-09-03  Eric Blake  <ebb9@byu.net>
21731
21732         faccessat: compile replacement
21733         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
21734         needed.
21735
21736         fts: fix compilation error
21737         * lib/fts.c (includes): Re-add "openat.h", for
21738         openat_needs_fchdir.
21739
21740         faccessat: new module
21741         * modules/faccessat: New file.
21742         * lib/faccessat.c: Likewise.
21743         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
21744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21745         * modules/unistd (Makefile.am): Use it.
21746         * lib/unistd.in.h (faccessat): Declare it.
21747         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
21748         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
21749         * MODULES.html.sh (File system functions): Mention it.
21750         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
21751         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21752
21753         euidaccess: prefer POSIX over non-standard implementation
21754         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
21755         * lib/euidaccess.c (euidaccess): Use it if available.
21756
21757         openat: make template easier to use
21758         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
21759         AT_FUNC_F2 to be undefined.
21760         (VALIDATE_FLAG): New macro; use it to reject bad flags.
21761         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
21762         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
21763         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
21764         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
21765         Likewise.
21766         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
21767         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
21768         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
21769         Likewise.
21770
21771         openat: declare in POSIX headers
21772         * NEWS: Mention this.
21773         * modules/openat (configure.ac): Declare witnesses.
21774         (Depends-on): Add fcntl-h, sys_stat, unistd.
21775         (Include): Mention correct headers.
21776         * modules/fcntl-h (Depends-on): Add link-warning.
21777         (Files): Add openat.m4.
21778         (Makefile.am): Substitute witnesses.
21779         * modules/sys_stat (Files, Makefile.am): Likewise.
21780         * modules/unistd (Files, Makefile.am): Likewise.
21781         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
21782         (gl_OPENAT_DEFAULTS): New macro.
21783         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
21784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
21785         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
21786         (SYS_STAT_H): Remove unused variable.
21787         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
21788         * lib/fcntl--.h (includes): Remove unneeded header.
21789         * lib/openat-safer.c (includes): Likewise.
21790         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
21791         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
21792         appropriate headers.
21793         (__OPENAT_PREFIX): Delete.
21794         * lib/fcntl.in.h (openat): Provide declaration.
21795         (AT_FDCWD): Fix Solaris bug.
21796         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
21797         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
21798         * lib/fchmodat.c (includes):  Adjust to find declaration.
21799         * lib/fchownat.c (includes): Likewise.
21800         * lib/mkdirat.c (includes): Likewise.
21801         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
21802         still visible.
21803
21804 2009-09-02  Eric Blake  <ebb9@byu.net>
21805
21806         errno: use consistently
21807         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
21808         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
21809         * lib/canonicalize.c (ELOOP): Likewise.
21810         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
21811         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
21812         * lib/lchown.c (EOPNOTSUPP): Likewise.
21813         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
21814         * lib/savewd.c (ESTALE): Likewise.
21815         * lib/settime.c (ENOSYS): Likewise.
21816         * lib/utimens.c (ENOSYS): Likewise.
21817         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
21818         * lib/chdir-safer.c (ELOOP): Likewise.
21819         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
21820         * modules/c-stack (Depends-on): Add errno.
21821         * modules/canonicalize (Depends-on): Likewise.
21822         * modules/chdir-safer (Depends-on): Likewise.
21823         * modules/fdopendir (Depends-on): Likewise.
21824         * modules/inet_ntop (Depends-on): Likewise.
21825         * modules/inet_pton (Depends-on): Likewise.
21826         * modules/lchown (Depends-on): Likewise.
21827         * modules/openat (Depends-on): Likewise.
21828         * modules/savewd (Depends-on): Likewise.
21829         * modules/settime (Depends-on): Likewise.
21830         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
21831
21832         fts: avoid leaking fds
21833         * modules/fts (Depends-on): Add cloexec.
21834         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
21835         flag.
21836
21837         fts: make directory fds more robust
21838         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
21839         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
21840
21841         backupfile, chdir-long, fts, savedir: make safer
21842         * lib/backupfile.c (includes): Use "dirent--.h", since
21843         numbered_backup can write to stderr during readdir.
21844         * lib/savedir.c (includes): Likewise.
21845         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
21846         emulation can write to stderr on failure.
21847         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
21848         * lib/getcwd.c: Document why opendir_safer is unused.
21849         * lib/glob.c: Likewise.
21850         * lib/scandir.c: Likewise.
21851         * lib/openat-proc.c: Likewise, for open_safer.
21852         * modules/backupfile (Depends-on): Add dirent-safer.
21853         * modules/savedir (Depends-on): Likewise.
21854         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
21855         * modules/chdir-long (Depends-on): Add openat-safer.
21856
21857         openat-safer: new module
21858         * modules/openat-safer: New file.
21859         * lib/openat-safer.c: Likewise.
21860         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
21861         * lib/fcntl-safer.h (openat_safer): Declare.
21862         * lib/fcntl--.h (openat): Override.
21863         * MODULES.html.sh (File descriptor based I/O): Mention it.
21864         * lib/openat.h: Add double-inclusion guards.
21865         * lib/openat.c (includes): Only include "fcntl-safer.h", not
21866         "fcntl--.h", so we can implement openat.
21867         * modules/openat-safer-tests: New test.
21868         * tests/test-openat-safer.c: New file.
21869
21870         dirent-safer: new module
21871         * modules/dirent-safer: New file.
21872         * lib/dirent--.h: Likewise.
21873         * lib/dirent-safer.h: Likewise.
21874         * lib/opendir-safer.c: Likewise.
21875         * m4/dirent-safer.m4: Likewise.
21876         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
21877         * modules/dirent-safer-tests: New test.
21878         * tests/test-dirent-safer.c: New file.
21879         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
21880
21881         fdopendir: optimize on mingw
21882         * lib/unistd.in.h (_gl_directory_name): New prototype.
21883         * lib/fchdir.c (_gl_directory_name): Implement it.
21884         (fchdir): Use it to simplify implementation.
21885         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
21886         fchdir, when available, to avoid calling [f]chdir().
21887
21888         fdopendir: split into its own module
21889         * lib/openat.c (fdopendir): Move...
21890         * lib/fdopendir.c: ...into new file.
21891         * modules/fdopendir: New module.
21892         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
21893         * modules/openat (Depends-on): Add fdopendir.
21894         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
21895         fdopendir here.
21896         * modules/savedir (Depends-on): Only need fdopendir, not full
21897         openat.
21898         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
21899         * lib/openat.h (fdopendir): Drop prototype.
21900         * lib/dirent.in.h (fdopendir): Provide prototype.
21901         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
21902         * modules/dirent (Makefile.am): Substitute them.
21903         * MODULES.html.sh (File system functions): Mention it.
21904         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
21905         * modules/fdopendir-tests: New file.
21906         * tests/test-fdopendir.c: Likewise.
21907
21908         fchdir: use more consistent macro convention
21909         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
21910         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
21911         REPLACE_FCHDIR, rather than relying on config.h macros.
21912         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
21913         inside a single make-time REPLACE_FCHDIR block, rather than using
21914         the config.h FCHDIR_REPLACEMENT.
21915         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
21916         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
21917         Manage fstat replacement.
21918         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
21919         REPLACE_FCHDIR.
21920         * modules/sys_stat (Files): Add m4/unistd_h.m4.
21921         (Makefile.am): Substitute REPLACE_FCHDIR.
21922         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
21923         FCHDIR_REPLACEMENT.
21924         * lib/dup-safer.c (dup_safer): Likewise.
21925         * lib/dup2.c (rpl_dup2): Likewise.
21926         * lib/dup3.c (rpl_dup3): Likewise.
21927         * lib/open.c (rpl_open): Likewise.
21928
21929         fchdir: simplify error handling, and support dup3
21930         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
21931         stdbool, malloc-posix, realloc-posix.
21932         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
21933         (ensure_dirs_slot): Return false on allocation failure.
21934         (rpl_dup2): Delete.
21935         (_gl_register_dup): New function.
21936         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
21937         (_gl_register_fd): Close fd on allocation failure.
21938         * lib/fcntl.in.h (_gl_register_fd): Update signature.
21939         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
21940         prototype.
21941         (rpl_dup2_fchdir): Delete prototype.
21942         * lib/open.c (open): Update caller.
21943         * lib/dup2.c (dup2): Track fchdir metadata.
21944         * lib/dup3.c (dup3): Likewise.
21945         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
21946         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
21947
21948 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21949
21950         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
21951         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
21952         don't pass arguments to AC_OUTPUT.
21953
21954 2009-09-02  Bruno Haible  <bruno@clisp.org>
21955
21956         * modules/mkdtemp (License): Relicense under LGPLv2+.
21957         Reported by Paolo Bonzini.
21958
21959 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21960
21961         Replace uses of obsolete autoconf macros in Jim's modules.
21962         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
21963         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
21964         can evoke a warning from autoconf when run with -Wobsolete
21965         enabled.  They were declared obsolete for good reasons (see
21966         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
21967         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
21968         should not continue using the deprecated macros.
21969         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
21970         obsolete Autoconf macros with modern counterparts.
21971         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21972         * m4/dos.m4 (gl_AC_DOS): Likewise.
21973         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
21974         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21975         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
21976         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
21977         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
21978         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21979         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
21980         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
21981         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
21982         Likewise.
21983         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21984         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21985         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
21986         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
21987         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
21988         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21989
21990 2009-09-01  Eric Blake  <ebb9@byu.net>
21991
21992         fchdir: fix off-by-one bug in previous patch
21993         * lib/fchdir.c (rpl_fstat): Use correct bounds.
21994         (_gl_unregister_fd): Delete useless if.
21995
21996 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
21997
21998         maint.mk: sort the list of syntax-check rules
21999         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
22000         easier to get a sense of progress when the rules are run sequentially
22001         and take a long time.
22002
22003 2009-09-01  Simon Josefsson  <simon@josefsson.org>
22004
22005         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
22006         * modules/netinet_in: Likewise.
22007         * modules/sys_file: Likewise.
22008         * modules/sys_ioctl: Likewise.
22009         * modules/sys_select: Likewise.
22010         * modules/sys_socket: Likewise.
22011         * modules/sys_stat: Likewise.
22012         * modules/sys_time: Likewise.
22013         * modules/sys_times: Likewise.
22014         * modules/sys_utsname: Likewise.
22015         * modules/sys_wait: Likewise.
22016
22017 2009-09-01  Jim Meyering  <meyering@redhat.com>
22018
22019         fts: help ensure that return values are not ignored
22020         * lib/fts_.h (__GNUC_PREREQ): Define.
22021         (__attribute_warn_unused_result__): Define.
22022         (fts_children, fts_close, fts_open, fts_read): Declare with
22023         __attribute_warn_unused_result__.
22024
22025         fts: fts_close now fails also when closing a dir file descriptor fails
22026         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
22027         and propagate to caller, along with errno.
22028
22029         announce-gen: correct formatting in --help output
22030         * build-aux/announce-gen (usage): Move the one-line description in
22031         --help output "up", to where it belongs, just after Usage:.
22032
22033 2009-08-31  Eric Blake  <ebb9@byu.net>
22034
22035         fchdir: port to mingw
22036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
22037         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
22038         opened, then use a substitute.
22039         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
22040         replacement.
22041         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
22042         (_gl_register_fd): No need to check stat if open already filters
22043         all directories.
22044         (fchdir): Fix error condition to match POSIX.
22045         * modules/fchdir (Depends-on): Add sys_stat.
22046         * doc/posix-functions/open.texi (open): Document the limitation.
22047         * modules/fchdir-tests: New file.
22048         * tests/test-fchdir.c: Likewise.
22049
22050         canonicalize: allow cross-testing from cygwin to mingw
22051         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
22052         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
22053         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
22054         Likewise.
22055         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
22056         target does not support symlinks.
22057         * tests/test-canonicalize-lgpl.sh: Likewise.
22058
22059         chown: avoid compilation warning on mingw
22060         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
22061         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
22062         mingw.
22063         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
22064         * modules/chown (Depends-on): Add errno.
22065
22066 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22067
22068         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
22069         command.
22070
22071 2009-08-31  Jim Meyering  <meyering@redhat.com>
22072
22073         canonicalize: remove useless initialization
22074         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
22075         initialization of local, "end".
22076
22077 2009-08-30  Bruno Haible  <bruno@clisp.org>
22078
22079         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
22080         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
22081         ENOSYS.
22082
22083 2009-08-30  Bruno Haible  <bruno@clisp.org>
22084
22085         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
22086         /usr/xpg4/bin/tr when it exists.
22087         * tests/test-pipe-filter-gi1.sh: Likewise.
22088
22089 2009-08-30  Bruno Haible  <bruno@clisp.org>
22090
22091         Work around deficient /usr/bin/id program on Solaris.
22092         * tests/test-file-has-acl.sh (ID): New variable.
22093         * tests/test-set-mode-acl.sh (ID): Likewise.
22094         * tests/test-copy-acl.sh (ID): Likewise.
22095         * tests/test-copy-file.sh (ID): Likewise.
22096
22097 2009-08-30  Bruno Haible  <bruno@clisp.org>
22098
22099         New module 'xstriconveh'.
22100         * lib/xstriconveh.h: New file.
22101         * lib/xstriconveh.c: New file.
22102         * modules/xstriconveh: New file.
22103
22104 2009-08-30  Bruno Haible  <bruno@clisp.org>
22105
22106         Make it easier to use mem_cd_iconveh.
22107         * lib/striconveh.h (iconveh_t): New type.
22108         (iconveh_open, iconveh_close): New declarations.
22109         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
22110         with a single 'const iconveh_t *' argument.
22111         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
22112         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
22113         with a single 'const iconveh_t *' argument.
22114         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
22115         * tests/test-striconveh.c (main): Update.
22116         * NEWS: Mention the change.
22117
22118 2009-08-30  Bruno Haible  <bruno@clisp.org>
22119
22120         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
22121         problem.
22122
22123 2009-08-30  Bruno Haible  <bruno@clisp.org>
22124
22125         Work around iconv_open problem on Solaris.
22126         * lib/iconv_open-solaris.gperf: New file.
22127         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
22128         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
22129         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
22130         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
22131         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
22132         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
22133
22134 2009-08-29  Jim Meyering  <meyering@redhat.com>
22135
22136         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
22137         * top/maint.mk (cvs-check): Remove target; it was just an alias
22138         to the better-named vc-diff-check.
22139         (maintainer-distcheck): Remove rule.  It was used only from
22140         the (alpha/beta/major) target, and all of its commands but one
22141         were coreutils-specific.
22142         (vc-dist): Remove rule.
22143         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
22144         Run vc-diff-check, not vc-dist.
22145         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
22146
22147 2009-08-27  Bruno Haible  <bruno@clisp.org>
22148
22149         * tests/test-bitrotate.c (main): Remove test that uses a shift count
22150         of 0.
22151
22152 2009-08-27  Bruno Haible  <bruno@clisp.org>
22153
22154         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
22155         compilers.
22156         * doc/func.texi: Document the SunPRO C bug.
22157
22158 2009-08-27  Bruno Haible  <bruno@clisp.org>
22159
22160         Fix link error on Solaris.
22161         * tests/test-parse-duration.c (xstrdup): Remove function.
22162
22163 2009-08-26  Pádraig Brady  <P@draigbrady.com>
22164
22165         ignore-value: handle pointer types, too
22166         * lib/ignore-value.h (__attribute__): Remove definition.
22167         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
22168         of a more concise and more-often effective "(void) i" statement.
22169         (ignore_ptr): New function to suppress warnings from functions that
22170         return pointers, and to make it explicit that one function doesn't
22171         handle all cases.
22172
22173 2009-08-25  Bruno Haible  <bruno@clisp.org>
22174
22175         dup2: work around a Linux bug.
22176         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
22177         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
22178         * doc/posix-functions/dup2.texi: Mention the Linux bug.
22179         Reported by Simon Josefsson.
22180
22181 2009-08-25  Jim Meyering  <meyering@redhat.com>
22182
22183         libguestfs uses gnulib
22184         * users.txt: Add libguestfs.
22185
22186 2009-08-24  Eric Blake  <ebb9@byu.net>
22187
22188         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
22189         * lib/pipe2.c (includes): Add binary-io.h.
22190         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
22191
22192 2009-08-24  Bruno Haible  <bruno@clisp.org>
22193
22194         Tolerate declared but missing accept4 syscall.
22195         * lib/accept4.c (accept4): Invoke original accept4 function first, if
22196         available.
22197         * lib/sys_socket.in.h (accept4): If the function is already present,
22198         override it.
22199         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
22200         * modules/accept4 (Makefile.am): Compile accept4.c always.
22201         Reported by Paolo Bonzini and Eric Blake.
22202
22203 2009-08-23  Bruno Haible  <bruno@clisp.org>
22204
22205         New module 'accept4'.
22206         * lib/sys_socket.in.h (accept4): New declaration.
22207         * lib/accept4.c: New file.
22208         * m4/accept4.m4: New file.
22209         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22210         GNULIB_ACCEPT4, HAVE_ACCEPT4.
22211         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
22212         HAVE_ACCEPT4.
22213         * modules/accept4: New file.
22214         * doc/glibc-functions/accept4.texi: Mention the new module.
22215
22216 2009-08-24  Jim Meyering  <meyering@redhat.com>
22217
22218         progname: also set global program_invocation_name, when possible
22219         Before this change, a libtool-enabled program that calls glibc's
22220         error function would report the program name as
22221         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
22222         * modules/progname (configure.ac): Check for a declaration of
22223         program_invocation_name.
22224         * lib/progname.c:  Include <errno.h>.
22225         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
22226         Set program_invocation_name.
22227
22228 2009-08-23  Bruno Haible  <bruno@clisp.org>
22229
22230         * lib/dup3.c: Include <string.h>.
22231
22232 2009-08-23  Bruno Haible  <bruno@clisp.org>
22233
22234         * lib/dup3.c (dup3): Test only once whether the system actually exists.
22235         * lib/pipe2.c (pipe2): Likewise.
22236         Suggested by Eric Blake.
22237
22238 2009-08-23  Bruno Haible  <bruno@clisp.org>
22239
22240         Tolerate declared but missing dup3 syscall.
22241         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
22242         * lib/unistd.in.h (dup3): If the function is already present,
22243         override it.
22244         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
22245         * modules/dup3 (Makefile.am): Compile dup3.c always.
22246         Reported by Paolo Bonzini.
22247
22248 2009-08-23  Bruno Haible  <bruno@clisp.org>
22249
22250         Tolerate declared but missing pipe2 syscall.
22251         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
22252         available.
22253         * lib/unistd.in.h (pipe2): If the function is already present,
22254         override it.
22255         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
22256         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
22257         Reported by Paolo Bonzini.
22258
22259 2009-08-23  Bruno Haible  <bruno@clisp.org>
22260
22261         * lib/pipe2.c (pipe2): Move #ifs inside function.
22262
22263 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22264
22265         quotearg: document limitations of quote_these_too
22266         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
22267         those limitations are created.
22268         * lib/quotearg.h (set_char_quoting): Document that digits and
22269         letters that are special after backslash are not permitted.
22270         (quotearg_char): Cross-reference set_char_quoting documentation.
22271
22272 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
22273
22274         quotearg: implement custom_quoting_style
22275         * lib/quotearg.c: (struct quoting_options): Add left_quote and
22276         right_quote fields.
22277         (set_custom_quoting): New public function.
22278         (quotearg_buffer_restyled): Add left_quote and right_quote
22279         arguments, handle them very much like locale quoting, and update
22280         all uses.
22281         (quotearg_n_custom): New public function.
22282         (quotearg_n_custom_mem): New public function.
22283         (quotearg_custom): New public function.
22284         (quotearg_custom_mem): New public function.
22285         * lib/quotearg.h: Prototype and document new public functions.
22286         (enum quoting_style): For escape_quoting_style and
22287         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
22288         ignored even though they're otherwise like c_quoting_style.
22289         Add custom_quoting_style member and document with comparison to
22290         clocale_quoting_style.
22291         * tests/test-quotearg.c (custom_quotes): New array.
22292         (custom_results): New array.
22293         (main): Extend to test custom quoting.
22294
22295 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22296
22297         quotearg: fix right quote escaping when it's in quote_these_too
22298         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
22299         quote, be sure to prepend only one backslash.
22300         * tests/test-quotearg.c (use_quote_double_quotes): New function.
22301         (main): Test it.
22302
22303 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
22304
22305         quotearg-tests: test escaping of embedded locale quotes
22306         * tests/test-quotearg.c (struct result_strings): Add member for
22307         new input.
22308         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
22309         (inputs): Add new input.
22310         (results_g): Add expected results.
22311         (flag_results): Likewise.
22312         (locale_results): Likewise.
22313         (compare_strings): Check those.
22314
22315 2009-08-23  Bruno Haible  <bruno@clisp.org>
22316
22317         Tests for module 'dup3'.
22318         * modules/dup3-tests: New file.
22319         * tests/test-dup3.c: New file.
22320
22321         New module 'dup3'.
22322         * lib/unistd.in.h (dup3): New declaration.
22323         * lib/dup3.c: New file.
22324         * m4/dup3.m4: New file.
22325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
22326         HAVE_DUP3.
22327         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
22328         * modules/dup3: New file.
22329         * doc/glibc-functions/dup3.texi: Mention the new module.
22330
22331 2009-08-23  Bruno Haible  <bruno@clisp.org>
22332
22333         Tweak the dup2 test.
22334         * tests/test-dup2.c (main): Create the test file empty. Verify that an
22335         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
22336         the test file is still empty. Fix argument order of lseek.
22337
22338 2009-08-23  Bruno Haible  <bruno@clisp.org>
22339
22340         Avoid test link errors when the modules getopt-gnu, gettext are used.
22341         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
22342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22343
22344 2009-08-23  Bruno Haible  <bruno@clisp.org>
22345
22346         Fix getdtablesize() on mingw.
22347         * lib/getdtablesize.c (getdtablesize): Implement differently.
22348         * lib/unistd.in.h (getdtablesize): Improve comment.
22349
22350 2009-08-23  Bruno Haible  <bruno@clisp.org>
22351
22352         New module 'mkostemp'.
22353         Based on Ulrich Drepper's 2007-08-10 change in glibc.
22354         * lib/stdlib.in.h (mksotemp): New declaration.
22355         * lib/mkostemp.c: New file, from glibc with modifications.
22356         * lib/tempname.h (GT_FILE): Remove outdated comment.
22357         (gen_tempname): Add flags argument.
22358         * lib/tempname.c (__GT_BIGFILE): Remove macro.
22359         (__GT_FILE): Map to 1.
22360         (small_open, large_open): Remove macros.
22361         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
22362         * lib/mkstemp.c (mkstemp): Update.
22363         * lib/mkdtemp.c (mkdtemp): Likewise.
22364         * m4/mkostemp.m4: New file.
22365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
22366         HAVE_MKOSTEMP.
22367         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
22368         HAVE_MKOSTEMP.
22369         * modules/mkostemp: New file, based on modules/mkstemp.
22370         * doc/glibc-functions/mkostemp.texi: Mention the new module.
22371         * NEWS: Mention the change.
22372
22373 2009-08-23  Bruno Haible  <bruno@clisp.org>
22374
22375         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
22376         Reported by Eric Blake.
22377
22378 2009-08-23  Bruno Haible  <bruno@clisp.org>
22379
22380         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
22381         Reported by Eric Blake.
22382
22383 2009-08-23  Bruno Haible  <bruno@clisp.org>
22384
22385         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
22386         * modules/pipe2 (Depends-on): Likewise.
22387
22388 2009-08-23  Eric Blake  <ebb9@byu.net>
22389
22390         fcntl-h: add O_TTY_INIT support
22391         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
22392         * tests/test-fcntl-h.c (o): Test it.
22393         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22394
22395         fcntl-h: rename from fcntl, in preparation for fcntl(2)
22396         * modules/fcntl: Move <fcntl.h> header replacement...
22397         * modules/fcntl-h: ...to new name, so as not to collide with
22398         like-named function.
22399         * tests/test-fcntl.c: Rename...
22400         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
22401         * modules/fcntl-tests: Rename...
22402         * modules/fcntl-h-tests: ...to this.  Update test file name.
22403         * modules/chdir-long (Depends-on): Update clients.
22404         * modules/chdir-safer (Depends-on): Likewise.
22405         * modules/fcntl-safer (Depends-on): Likewise.
22406         * modules/fts (Depends-on): Likewise.
22407         * modules/mkancesdirs (Depends-on): Likewise.
22408         * modules/mkdir-p (Depends-on): Likewise.
22409         * modules/open (Depends-on): Likewise.
22410         * modules/savewd (Depends-on): Likewise.
22411         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
22412         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22413
22414 2009-08-22  Bruno Haible  <bruno@clisp.org>
22415
22416         * modules/binary-io (License): Relicense under LGPL.
22417         * modules/pipe2 (License): Likewise.
22418
22419 2009-08-22  Bruno Haible  <bruno@clisp.org>
22420
22421         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
22422         return value.
22423         * lib/pipe-filter-gi.c (filter_init): Likewise.
22424         Reported by Eric Blake.
22425
22426 2009-08-22  Bruno Haible  <bruno@clisp.org>
22427
22428         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
22429         * modules/pipe (Depends-on): Add pipe2.
22430
22431 2009-08-22  Bruno Haible  <bruno@clisp.org>
22432
22433         Tests for module 'pipe2'.
22434         * modules/pipe2-tests: New file.
22435         * tests/test-pipe2.c: New file.
22436
22437         New module 'pipe2'.
22438         * lib/unistd.in.h (pipe2): New declaration.
22439         * lib/pipe2.c: New file.
22440         * m4/pipe2.m4: New file.
22441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
22442         HAVE_PIPE2.
22443         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
22444         * modules/pipe2: New file.
22445         * doc/glibc-functions/pipe2.texi: Mention the new module.
22446
22447 2009-08-22  Bruno Haible  <bruno@clisp.org>
22448
22449         Reference some new glibc functions.
22450         * doc/glibc-functions/accept4.texi: New file.
22451         * doc/glibc-functions/dup3.texi: New file.
22452         * doc/glibc-functions/mkostemp.texi: New file.
22453         * doc/glibc-functions/pipe2.texi: New file.
22454         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
22455         (Glibc sys/socket.h): Refer to accept4.
22456         (Glibc unistd.h): Refer to dup3, pipe2.
22457         Reported by Eric Blake.
22458
22459 2009-08-22  Jim Meyering  <meyering@redhat.com>
22460             Bruno Haible  <bruno@clisp.org>
22461
22462         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
22463         This makes it so packages using automake-1.11's silent-rules option
22464         can print e.g., a single "GEN    configmake.h" line, rather than
22465         the 30+ statements that perform the job.  If you want to see the
22466         actual commands, you can still run "make V=1".
22467         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
22468         so that make output is abbreviated when those variables are defined
22469         appropriately.
22470         * modules/argz: Likewise.
22471         * modules/arpa_inet: Likewise.
22472         * modules/byteswap: Likewise.
22473         * modules/configmake: Likewise.
22474         * modules/dirent: Likewise.
22475         * modules/errno: Likewise.
22476         * modules/fcntl: Likewise.
22477         * modules/float: Likewise.
22478         * modules/fnmatch: Likewise.
22479         * modules/getopt-posix: Likewise.
22480         * modules/glob: Likewise.
22481         * modules/iconv_open: Likewise.
22482         * modules/inttypes: Likewise.
22483         * modules/localcharset: Likewise.
22484         * modules/locale: Likewise.
22485         * modules/math: Likewise.
22486         * modules/netdb: Likewise.
22487         * modules/netinet_in: Likewise.
22488         * modules/poll: Likewise.
22489         * modules/posix_spawnp-tests: Likewise.
22490         * modules/sched: Likewise.
22491         * modules/search: Likewise.
22492         * modules/selinux-h: Likewise.
22493         * modules/signal: Likewise.
22494         * modules/spawn: Likewise.
22495         * modules/stdarg: Likewise.
22496         * modules/stdbool: Likewise.
22497         * modules/stddef: Likewise.
22498         * modules/stdint: Likewise.
22499         * modules/stdio: Likewise.
22500         * modules/stdlib: Likewise.
22501         * modules/string: Likewise.
22502         * modules/strings: Likewise.
22503         * modules/sys_file: Likewise.
22504         * modules/sys_ioctl: Likewise.
22505         * modules/sys_select: Likewise.
22506         * modules/sys_socket: Likewise.
22507         * modules/sys_stat: Likewise.
22508         * modules/sys_time: Likewise.
22509         * modules/sys_times: Likewise.
22510         * modules/sys_utsname: Likewise.
22511         * modules/sys_wait: Likewise.
22512         * modules/sysexits: Likewise.
22513         * modules/time: Likewise.
22514         * modules/unistd: Likewise.
22515         * modules/wchar: Likewise.
22516         * modules/wctype: Likewise.
22517
22518 2009-08-22  Jim Meyering  <meyering@redhat.com>
22519
22520         announce-gen: detect write failure
22521         * build-aux/announce-gen: Add Coda at end.
22522         Remove equivalent-but-more-verbose block at top.
22523
22524 2009-08-19  Akim Demaille  <demaille@gostai.com>
22525
22526         bootstrap: --help to stdout.
22527         * bootstrap (usage): Don't send --help to stderr.
22528         Use a here doc instead of a long string.
22529
22530 2009-08-21  Eric Blake  <ebb9@byu.net>
22531
22532         test-popen-safer: split from test-popen
22533         * tests/test-popen.c (main): Move...
22534         * tests/test-popen.h: ...into new file.
22535         * tests/test-popen-safer2.c: New file.
22536         * modules/popen-tests (Files): Add test-popen.h.
22537         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
22538         Suggested by Bruno Haible.
22539
22540         test-fcntl-safer: split from test-open
22541         * tests/test-open.c (main): Move...
22542         * tests/test-open.h: ...into new file.
22543         * tests/test-fcntl-safer.c: New file.
22544         * modules/open-tests (Files): Add test-open.h.
22545         * modules/fcntl-safer-tests: New file.
22546         Suggested by Bruno Haible.
22547
22548         test-fopen-safer: split from test-fopen
22549         * tests/test-fopen.c (main): Move...
22550         * tests/test-fopen.h: ...into new file.
22551         * tests/test-fopen-safer.c: New file.
22552         * modules/fopen-tests (Files): Add test-fopen.h.
22553         * modules/fopen-safer-tests: New file.
22554         Suggested by Bruno Haible.
22555
22556 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22557
22558         popen-safer: test O_CLOEXEC at run-time.
22559         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
22560
22561 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
22562
22563         fcntl: move more flags to the header
22564         * lib/cloexec.c: Do not define FD_CLOEXEC here.
22565         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
22566         * lib/fcntl.in.h: Do both things here.
22567
22568 2009-08-21  Jim Meyering  <meyering@redhat.com>
22569
22570         consistently remove $@-t before redirecting to it
22571         * modules/argz: Remove $@-t and $@ before redirecting to the former.
22572         * modules/alloca-opt: Likewise.
22573         * modules/byteswap: Likewise.
22574         * modules/fnmatch: Likewise.
22575         * modules/getopt-posix: Likewise.
22576         * modules/glob: Likewise.
22577         * modules/poll: Likewise.
22578         * modules/posix_spawnp-tests: Likewise.
22579         * modules/sys_socket: Likewise.
22580         * modules/sysexits: Likewise.
22581
22582 2009-08-21  Eric Blake  <ebb9@byu.net>
22583
22584         popen: simplify access to original popen
22585         * lib/popen.c (rpl_popen): No need to worry about popen being a
22586         macro.
22587         Reported by Bruno Haible.
22588
22589 2009-08-20  Eric Blake  <ebb9@byu.net>
22590
22591         build: avoid some compiler warnings
22592         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
22593         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
22594         type.
22595         (new_exclude_segment, excluded_file_pattern_p)
22596         (excluded_file_name_p): Reduce scope.
22597         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
22598         old-style declaration.
22599
22600 2009-08-20  Simon Josefsson  <simon@josefsson.org>
22601
22602         * tests/test-exclude1.sh: Handle Windows EOL.
22603         * tests/test-exclude2.sh: Likewise.
22604         * tests/test-exclude3.sh: Likewise.
22605         * tests/test-exclude4.sh: Likewise.
22606         * tests/test-exclude5.sh: Likewise.
22607         * tests/test-exclude6.sh: Likewise.
22608         * tests/test-exclude7.sh: Likewise.
22609
22610 2009-08-19  Akim Demaille  <demaille@gostai.com>
22611
22612         bootstrap: find sha1sum when named gsha1sum.
22613         * bootstrap (find_tool): New.
22614         ($SHA1SUM): New.
22615         Use it.
22616
22617 2009-08-20  Jim Meyering  <meyering@redhat.com>
22618
22619         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
22620         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
22621         expression that converts "." in a file name to "\." in the resulting
22622         regexp.  Start with a dummy statement, so that prior shell variable
22623         definitions are expanded portably.  Reported by Simon Josefsson.
22624
22625 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
22626
22627         Fix polling for writeability of a screen buffer.
22628         * lib/poll.c: Distinguish input and screen buffers for the
22629         Win32 implementation.
22630         * lib/select.c: Likewise.
22631
22632 2009-08-19  Eric Blake  <ebb9@byu.net>
22633
22634         popen-safer: prevent popen from clobbering std descriptors
22635         * modules/popen-safer: New file.
22636         * lib/popen-safer.c: Likewise.
22637         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
22638         * lib/stdio--.h (popen): Provide override.
22639         * lib/stdio-safer.h (popen_safer): Provide declaration.
22640         * tests/test-popen.c (includes): Partially test this.
22641         * modules/popen-safer-tests: New file, for more tests.
22642         * tests/test-popen-safer.c: Likewise.
22643         * MODULES.html.sh (file stream based Input/Output): Mention it.
22644
22645         tests: test some of the *-safer modules
22646         * modules/fopen-safer (Depends-on): Add fopen.
22647         * modules/fcntl-safer (Depends-on): Add fcntl.
22648         * modules/stdlib-safer (Depends-on): Add stdlib.
22649         (configure.ac): Set indicator.
22650         * modules/unistd-safer (configure.ac): Likewise.
22651         * modules/tmpfile-safer (configure.ac): Likewise.
22652         (Depends-on): Add tmpfile.
22653         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
22654         active.
22655         * tests/test-fopen.c (includes): Test safer versions when they are
22656         in use.
22657         * tests/test-open.c (includes): Likewise.
22658
22659         popen: fix cygwin 1.5 bug when stdin closed
22660         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
22661         * modules/popen: New file.
22662         * modules/popen-tests: Likewise.
22663         * tests/test-popen.c: Likewise.
22664         * m4/popen.m4: Likewise.
22665         * lib/popen.c: Likewise.
22666         * lib/stdio.in.h (popen): New declaration.
22667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
22668         * modules/stdio (Makefile.am): Likewise.
22669         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
22670
22671 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
22672
22673         maint.mk: give full control over update-copyright exclusions
22674         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
22675         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
22676         (update-copyright): Don't force inclusion of top-level
22677         ChangeLog.  Don't force exclusion of all COPYING files, but make
22678         them the default exclusion instead.
22679
22680 2009-08-16  Bruno Haible  <bruno@clisp.org>
22681
22682         Fix test failures on Solaris 10.
22683         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
22684         tests when Solaris iconv() is used.
22685         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
22686         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
22687         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
22688         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
22689         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
22690
22691 2009-08-16  Bruno Haible  <bruno@clisp.org>
22692
22693         Fix test failures on Solaris 10.
22694         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
22695         'tr' program and pass it as first argument.
22696         * tests/test-pipe-filter-gi1.sh: Likewise.
22697         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
22698         program as first argument.
22699         * tests/test-pipe-filter-gi1.c (main): Likewise.
22700
22701 2009-08-16  Eric Blake  <ebb9@byu.net>
22702
22703         fpurge: fix previous commits
22704         * modules/fpurge (Makefile.am): Make replacement conditional,
22705         partially reverting 2007-04-29 change; missed in previous
22706         attempt.
22707         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
22708         is missing.
22709
22710 2009-08-16  Bruno Haible  <bruno@clisp.org>
22711
22712         Clarify fpurge's effect on the file position.
22713         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
22714         * tests/test-fpurge.c (main): Make a second pass for checking the file
22715         position.
22716
22717 2009-08-16  Bruno Haible  <bruno@clisp.org>
22718
22719         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
22720         declaration of fpurge is missing.
22721         * tests/test-fpurge.c (main): Check that the file has not more contents
22722         than expected. Close the file before removing it.
22723
22724 2009-08-15  Eric Blake  <ebb9@byu.net>
22725
22726         fpurge: don't wrap working cygwin implementation
22727         * lib/fpurge.c (fpurge): Fix comment typo.
22728         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
22729         1.7 to avoid replacement.
22730         * tests/test-fpurge.c (main): Enhance test.
22731
22732 2009-08-15  Eric Blake  <ebb9@byu.net>
22733         and Jim Meyering  <meyering@redhat.com>
22734
22735         test-update-copyright: skip if perl is insufficient
22736         * tests/test-update-copyright.sh: Failure to run maintainer tool
22737         should not cause testsuite failure on cygwin 1.5.
22738
22739 2009-08-14  Eric Blake  <ebb9@byu.net>
22740
22741         doc: mention more functions added in cygwin 1.7.0
22742         * doc/posix-headers/limits.texi (limits.h): Update for recent
22743         cygwin additions.
22744         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
22745         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
22746         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
22747         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
22748         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
22749
22750 2009-08-14  Eric Blake  <ebb9@byu.net>
22751
22752         maint.mk: simplify update-copyright rule
22753         * top/maint.mk (update-copyright-local): Delete, and document how
22754         to do it in cfg.mk instead.
22755         (update-copyright-exclude-regexp): Delete, and document how to do
22756         it in .x-update-copyright instead.
22757         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
22758         exclude ChangeLog.
22759
22760 2009-08-14  Bruno Haible  <bruno@clisp.org>
22761
22762         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
22763
22764 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22765
22766         maint.mk: support update-copyright-env
22767         * top/maint.mk (update-copyright-env): Define place-holder.
22768         (update-copyright): Expand $(update-copyright-env) before
22769         invoking update-copyright.
22770
22771 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22772
22773         update-copyright: implement forced reformatting
22774         * build-aux/update-copyright: Implement and document
22775         UPDATE_COPYRIGHT_FORCE.
22776         * tests/test-update-copyright.sh: Test it.
22777
22778 2009-08-14  Eric Blake  <ebb9@byu.net>
22779         and Bruno Haible  <bruno@clisp.org>
22780
22781         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
22782         * tests/test-locale.c: Revert previous patch related to NULL.
22783         * tests/test-stdio.c: Likewise.
22784         * tests/test-stdlib.c: Likewise.
22785         * tests/test-string.c: Likewise.
22786         * tests/test-unistd.c: Likewise.
22787         * modules/time-tests (Depends-on): Add verify.
22788         * modules/wchar-tests (Depends-on): Likewise.
22789         * tests/test-time.c: Test for NULL compliance.
22790         * tests/test-wchar.c: Likewise.
22791         * modules/locale (Depends-on): Add stddef.
22792         * modules/stdio (Depends-on): Likewise.
22793         * modules/stdlib (Depends-on): Likewise.
22794         * modules/string (Depends-on): Likewise.
22795         * modules/time (Depends-on): Likewise.
22796         * modules/unistd (Depends-on): Likewise.
22797         * modules/wchar (Depends-on): Likewise.
22798         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
22799         * lib/stdlib.in.h (includes): Likewise.
22800         * lib/string.in.h (includes): Likewise.
22801         * lib/time.in.h (includes): Likewise.
22802         * lib/unistd.in.h (includes): Likewise.
22803         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
22804         replaced.
22805         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22806         * m4/stddef_h.m4: New file.
22807         * modules/stddef: Likewise.
22808         * lib/stddef.in.h: Likewise.
22809         * modules/stddef-tests: Likewise.
22810         * tests/test-stddef.c: Likewise.
22811         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
22812         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
22813         * doc/posix-headers/locale.texi (locale.h): Likewise.
22814         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
22815         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22816         * doc/posix-headers/string.texi (string.h): Likewise.
22817         * doc/posix-headers/time.texi (time.h): Likewise.
22818         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
22819         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
22820
22821 2009-08-14  Eric Blake  <ebb9@byu.net>
22822
22823         doc: improve git diff of texinfo files
22824         * .gitattributes: Add rule for *.texi files, with hint on how to
22825         use it.
22826         Copied from m4, and based on a report by Bruno Haible.
22827
22828 2009-08-14  Bruno Haible  <bruno@clisp.org>
22829
22830         Disable multithread support by default on Cygwin 1.5.x for real.
22831         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
22832
22833 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
22834
22835         update-copyright: much ado about intervals
22836         * build-aux/update-copyright: Implement and document
22837         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
22838         of copyright year intervals.
22839         Also, document UPDATE_COPYRIGHT_YEAR.
22840         * tests/test-update-copyright.sh: Test it.
22841
22842         update-copyright: convert 2-digit to 4-digit years
22843         * build-aux/update-copyright: Implement and document.
22844         * tests/test-update-copyright.sh: Update.
22845
22846 2009-08-14  Jim Meyering  <meyering@redhat.com>
22847
22848         test-exclude: avoid coreutils "make check" failure
22849         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
22850         just as in test-argmatch.c.
22851
22852 2009-08-13  Eric Blake  <ebb9@byu.net>
22853
22854         test-dup2: fix bad assumption
22855         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
22856         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
22857
22858         test-version-etc: fix CRLF portability issue
22859         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
22860         recognize \r.
22861         * tests/test-argp-version-etc-1.sh: Likewise.
22862
22863         getopt: update client modules
22864         * modules/argp (Depends-on): Use getopt-gnu.
22865         * modules/git-merge-changelog (Depends-on): Likewise.
22866         * modules/long-options (Depends-on): Likewise.
22867         * modules/xstrtol (Depends-on): Likewise.
22868
22869 2009-08-13  Simon Josefsson  <simon@josefsson.org>
22870
22871         * tests/test-version-etc.sh: Don't fail on different
22872         project/version.  Don't fail on CRLF differences.  Rewrite to use
22873         multiple -e instead of multiple sed forks, suggested by Eric Blake
22874         <ebb9@byu.net>.
22875         * tests/test-argp-version-etc-1.sh: Likewise.
22876
22877 2009-08-13  Simon Josefsson  <simon@josefsson.org>
22878
22879         * tests/test-version-etc.sh: Don't fail on different
22880         project/version.
22881
22882 2009-08-12  Bruno Haible  <bruno@clisp.org>
22883
22884         Tests for modules 'getopt-posix', 'getopt-gnu'.
22885         * modules/getopt-posix-tests: New file.
22886         * tests/test-getopt.c: New file.
22887         * tests/test-getopt.h: New file.
22888         * tests/test-getopt_long.h: New file.
22889
22890         New modules 'getopt-posix', 'getopt-gnu'.
22891         * modules/getopt-gnu: New file, renamed from modules/getopt.
22892         * modules/getopt-posix: New file.
22893         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
22894         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
22895         (gl_GETOPT): Remove macro.
22896         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
22897         Disable the test against BSD systems that declare optreset. Test
22898         against mingw bug. Test against lack of support of optional arguments
22899         on many platforms.
22900         * doc/glibc-headers/getopt.texi: Update module name and list of
22901         relevant platforms.
22902         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
22903         'getopt-gnu' and more portability problems.
22904         * NEWS: Mention the changes.
22905
22906 2009-08-12  Bruno Haible  <bruno@clisp.org>
22907
22908         Ensure that optarg etc. get declared by <unistd.h>.
22909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
22910         AC_USE_SYSTEM_EXTENSIONS.
22911         * modules/getopt (Depends-on): Add 'extensions'.
22912
22913 2009-08-12  Bruno Haible  <bruno@clisp.org>
22914
22915         Avoid test link errors.
22916         * modules/pipe-filter-ii-tests (Makefile.am): Define
22917         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
22918         * modules/pipe-filter-gi-tests (Makefile.am): Define
22919         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
22920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22921
22922 2009-08-12  Bruno Haible  <bruno@clisp.org>
22923
22924         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
22925         gl_GETOPT_SUBSTITUTE before.
22926         (gl_GETOPT): Use it.
22927         * m4/argp.m4 (gl_ARGP): Update.
22928         Reported by Sergey Poznyakoff.
22929
22930         * m4/getopt.m4: Reorder macros.
22931         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
22932         (gl_GETOPT_SUBSTITUTE): Remove macro.
22933
22934 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22935
22936         Minor improvement in gitlog-to-changelog
22937
22938         * build-aux/gitlog-to-changelog: New option `--format' makes
22939         output format string configurable.
22940
22941 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22942
22943         Optimize exclude: use hash tables for non-wildcard patterns.
22944
22945         * lib/exclude.c: Include hash.h and mbuiter.h
22946         (struct exclude_pattern, exclude_segment): New data types.
22947         (struct exclude): Rewrite.
22948         (fnmatch_pattern_has_wildcards): New function.
22949         (new_exclude_segment, free_exclude_segment): New functions.
22950         (excluded_file_pattern_p, excluded_file_name_p): New functions.
22951         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
22952         * lib/exclude.h (is_fnmatch_pattern): New prototype.
22953         * modules/exclude: Depend on hash and mbuiter.
22954
22955         * modules/exclude-tests: New file.
22956         * tests/test-exclude.c: New file.
22957         * tests/test-exclude1.sh: New file.
22958         * tests/test-exclude2.sh: New file.
22959         * tests/test-exclude3.sh: New file.
22960         * tests/test-exclude4.sh: New file.
22961         * tests/test-exclude5.sh: New file.
22962         * tests/test-exclude6.sh: New file.
22963         * tests/test-exclude7.sh: New file.
22964
22965 2009-08-12  Bruno Haible  <bruno@clisp.org>
22966
22967         Ensure that getopt() gets declared by <unistd.h>.
22968         * lib/unistd.in.h: Conditionally include getopt.h.
22969         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
22970         Set GNULIB_UNISTD_H_GETOPT.
22971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22972         GNULIB_UNISTD_H_GETOPT.
22973         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
22974
22975 2009-08-12  Bruno Haible  <bruno@clisp.org>
22976
22977         Clarify logic.
22978         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
22979         gl_replace_getopt instead of GETOPT_H.
22980
22981 2009-08-12  Bruno Haible  <bruno@clisp.org>
22982
22983         * m4/getopt.m4: Add comments.
22984
22985 2009-08-12  Bruno Haible  <bruno@clisp.org>
22986
22987         Disable multithread support by default on Cygwin 1.5.x.
22988         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
22989         set gl_use_threads=no if not specified otherwise.
22990
22991 2009-08-11  Bruno Haible  <bruno@clisp.org>
22992
22993         Avoid compilation error on NetBSD 5.0.
22994         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
22995         * tests/test-stdio.c: Likewise.
22996         * tests/test-stdlib.c: Likewise.
22997         * tests/test-string.c: Likewise.
22998         * tests/test-unistd.c: Likewise.
22999         Reported by Greg Troxel <gdt@ir.bbn.com>
23000         at <https://savannah.gnu.org/support/?106973>.
23001
23002 2009-08-11  Bruno Haible  <bruno@clisp.org>
23003
23004         * modules/dup2-tests (Depends-on): Remove close.
23005
23006         Undo 2009-07-19 commit.
23007         * modules/acl-tests (Depends-on): Remove close.
23008         * modules/binary-io-tests (Depends-on): Likewise.
23009         * modules/closein-tests (Depends-on): Likewise.
23010         * modules/flock-tests (Depends-on): Likewise.
23011         * modules/fsync-tests (Depends-on): Likewise.
23012         * modules/lseek-tests (Depends-on): Likewise.
23013         * modules/pipe-tests (Depends-on): Likewise.
23014         * modules/posix_spawn-tests (Depends-on): Likewise.
23015         * modules/posix_spawnp-tests (Depends-on): Likewise.
23016         * modules/stat-time-tests (Depends-on): Likewise.
23017         * modules/yesno-tests (Depends-on): Likewise.
23018
23019 2009-08-10  Bruno Haible  <bruno@clisp.org>
23020
23021         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
23022
23023 2009-08-10  Bruno Haible  <bruno@clisp.org>
23024
23025         Fix a gcc warning.
23026         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
23027
23028 2009-08-10  Bruno Haible  <bruno@clisp.org>
23029
23030         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
23031         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
23032         not only the first time.
23033         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
23034         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
23035         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
23036         is 1, not only the the first time.
23037
23038 2009-08-10  Bruno Haible  <bruno@clisp.org>
23039
23040         Make it possible to use module 'gethostname' without module 'close'.
23041         * lib/unistd.in.h (close): Evoke a link error only if
23042         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
23043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23044         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23045         * modules/unistd (Makefile.am): Substitute
23046         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23047         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
23048         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
23049         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23050         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23051         * modules/sys_ioctl (Makefile.am): Substitute
23052         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23053         * modules/socket (configure.ac): On native Windows, set
23054         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
23055         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
23056         Reported by Sam Steingold <sds@gnu.org>.
23057
23058 2009-08-10  Bruno Haible  <bruno@clisp.org>
23059
23060         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
23061         * modules/ioctl (configure.ac): Likewise.
23062
23063 2009-08-10  Bruno Haible  <bruno@clisp.org>
23064
23065         Avoid collision between gnulib wrapper and libintl wrapper.
23066         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
23067         already defined in intl/printf.c.
23068         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
23069         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
23070
23071 2009-08-09  Bruno Haible  <bruno@clisp.org>
23072
23073         Make <sys/select.h> really self-contained, also on Solaris 10.
23074         * lib/sys_select.in.h: Include <string.h>.
23075         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
23076         Solaris 10 problem.
23077         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
23078         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
23079         Reported by Jim Meyering.
23080
23081 2009-08-09  Bruno Haible  <bruno@clisp.org>
23082
23083         Avoid warnings from 'aclocal' that are due to a use of macro name
23084         AM_XGETTEXT_OPTION that is not defined in automake.
23085         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
23086         automake.
23087         * modules/error (configure.ac): Likewise.
23088         * modules/propername (configure.ac): Likewise.
23089         * modules/vasprintf (configure.ac): Likewise.
23090         * modules/verror (configure.ac): Likewise.
23091         * modules/xprintf (configure.ac): Likewise.
23092         * modules/xvasprintf (configure.ac): Likewise.
23093
23094 2009-08-08  Bruno Haible  <bruno@clisp.org>
23095
23096         Avoid compilation error in C++ mode.
23097         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
23098         Reported by Sam Steingold <sds@gnu.org>.
23099
23100 2009-08-08  Bruno Haible  <bruno@clisp.org>
23101
23102         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
23103         for the various Unix platforms.
23104         * doc/posix-headers/limits.texi: Update platforms list regarding
23105         HOST_NAME_MAX.
23106         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23107
23108 2009-08-07  Jim Meyering  <meyering@redhat.com>
23109
23110         selinux-at: fix typo in a comment
23111         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
23112         Spotted by Paolo Bonzini.
23113
23114         selinux-at: remove redundant m4 code, add documentation
23115         * modules/selinux-at (configure.ac): Remove redundant code.
23116         LIB_SELINUX is already set via the dependent module, selinux-h.
23117         (Include): Add quotes around selinux-at.h.
23118         * lib/selinux-at.h: Add documentation.
23119         Reported by Bruno Haible in
23120         http://marc.info/?l=gnulib-bug&m=124958988300749
23121
23122 2009-08-07  Bruno Haible  <bruno@clisp.org>
23123
23124         Avoid link error on MacOS X 10.3 and 10.4.
23125         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
23126         on non-ELF systems.
23127         * lib/argp-pv.c (argp_program_version): Likewise.
23128         Reported by Simon Josefsson.
23129
23130 2009-08-07  Simon Josefsson  <simon@josefsson.org>
23131
23132         * tests/test-version-etc.sh: Use $EXEEXT.
23133
23134 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
23135
23136         update-copyright: update documentation to point to maint.mk
23137         * build-aux/update-copyright: Here.
23138
23139 2009-08-06  Jim Meyering  <meyering@redhat.com>
23140
23141         maint.mk: support update-copyright-local
23142         * top/maint.mk (update-copyright-local): Define place-holder.
23143         (update-copyright): Depend on $(update-copyright-local).
23144
23145 2009-08-06  Jim Meyering  <meyering@redhat.com>
23146
23147         selinux-at: new module
23148         Initially written for coreutils, this module will soon be
23149         used by findutils, too.
23150         * MODULES.html.sh [Misc]: Add selinux-at.
23151         * lib/selinux-at.h: New file, from coreutils.
23152         * lib/selinux-at.c: Likewise.
23153         * modules/selinux-at: Likewise.
23154         (License): Change from LGPL to GPL, since it depends
23155         on the GPL'd openat module.
23156
23157         doc: update README
23158         * README: Remove references to cogito.
23159         Remove cvs-repo-updating instructions from 2007.
23160         Don't imply that CVS is better if you have limited disk space.
23161
23162 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23163
23164         update-copyright: support C-style comments
23165         * build-aux/update-copyright: Implement and document.
23166         * tests/test-update-copyright.sh: Test.
23167
23168 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23169
23170         update-copyright: support omitted "(C)"
23171         * build-aux/update-copyright: Implement and document.  Also,
23172         allow variable whitespace before "(C)".
23173         * tests/test-update-copyright.sh: Test.
23174
23175 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23176
23177         update-copyright: don't trip on non-FSF copyright statements
23178         * build-aux/update-copyright: Fix so that the first correctly
23179         formatted FSF copyright statement is recognized no matter what
23180         appears before it.  Update documentation.
23181         * tests/test-update-copyright.sh: Test that.
23182
23183 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23184
23185         update-copyright: clean up code a little
23186         * build-aux/update-copyright: Append "_re" to the name of any
23187         variable holding a regular expression.
23188         Replace "old" and "new" with "stmt" in variable names.
23189         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
23190         handled correctly.
23191         Format code more consistently.
23192
23193 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
23194
23195         update-copyright-tests: improve portability
23196         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
23197         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
23198
23199 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
23200
23201         update-copyright: support @copyright{} and &copy;
23202         * build-aux/update-copyright: Implement and document.
23203         * tests/test-update-copyright.sh: Test.
23204
23205 2009-08-04  Jim Meyering  <meyering@redhat.com>
23206
23207         update-copyright-tests: correctly test EOL=\r\n handling
23208         * tests/test-update-copyright.sh: Put \r at the end of some lines
23209         for the dos-eol tests.  Based on a patch by Joel E. Denny.
23210
23211         maint.mk: make update-copyright exclusion list more configurable
23212         * top/maint.mk (update-copyright): Default to excluding COPYING,
23213         but allow an override, in case someone does want to update that file.
23214
23215         maint.mk: don't update copyright date in COPYING
23216         * top/maint.mk (update-copyright): Exclude COPYING.
23217
23218         maint.mk: add a copyright-updating rule
23219         * top/maint.mk (update-copyright): New rule.
23220         Derived from coreutils/Makefile.am.
23221
23222         update-copyright: rename some variables
23223         * build-aux/update-copyright: Rename a few variables for clarity.
23224         Tweak syntax.  List Joel E. Denny as coauthor.
23225
23226 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
23227
23228         update-copyright: fix bug for 2-digit last year and add tests
23229         * build-aux/update-copyright: Fix bug.
23230         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
23231         specified.
23232         * modules/update-copyright-tests: New
23233         * tests/test-update-copyright.sh: New.
23234
23235 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
23236
23237         update-copyright: handle leading tabs in line prefix
23238         * build-aux/update-copyright: Count leading tabs as 8 spaces
23239         when computing margin.  This helps with the formatting of
23240         ChangeLogs, for example.
23241         Fix documentation a little.
23242
23243 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
23244
23245         update-copyright: support EOL=\r\n
23246         * build-aux/update-copyright: Implement that.
23247
23248 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
23249
23250         update-copyright: automatically format copyright statements
23251         * build-aux/update-copyright: Implement that.
23252         Also, be a little more predictable and safer by always failing
23253         when the full copyright format is not perfectly recognized as an
23254         unbroken whole.  Discussed at
23255         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
23256         Rewrite documentation.
23257
23258 2009-08-03  Bruno Haible  <bruno@clisp.org>
23259
23260         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
23261
23262 2009-08-02  Bruno Haible  <bruno@clisp.org>
23263
23264         Tests for module 'uname'.
23265         * modules/uname-tests: New file.
23266         * tests/test-uname.c: New file.
23267
23268         New module 'uname'.
23269         * lib/uname.c: New file.
23270         * m4/uname.m4: New file.
23271         * modules/uname: New file.
23272         * doc/posix-functions/uname.texi: Mention the new module.
23273
23274 2009-08-02  Bruno Haible  <bruno@clisp.org>
23275
23276         Tests for module 'sys_utsname'.
23277         * modules/sys_utsname-tests: New file.
23278         * tests/test-sys_utsname.c: New file.
23279
23280         New module 'sys_utsname'.
23281         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
23282         * m4/sys_utsname_h.m4: New file.
23283         * modules/sys_utsname: New file.
23284         * doc/posix-headers/sys_utsname.texi: Mention the new module.
23285
23286 2009-08-02  Bruno Haible  <bruno@clisp.org>
23287
23288         Implicitly initialize the sockets library.
23289         * lib/gethostname.c: Include sockets.h.
23290         (rpl_gethostname): Invoke gl_sockets_startup.
23291         * lib/socket.c: Include sockets.h.
23292         (rpl_socket): Invoke gl_sockets_startup.
23293         * modules/gethostname (Depends-on): Add sockets.
23294         * modules/socket (Depends-on): Likewise.
23295         * tests/test-poll.c: Don't include sockets.h.
23296         (main): Don't invoke gl_sockets_startup.
23297         * tests/test-select.c: Don't include sockets.h.
23298         (main): Don't invoke gl_sockets_startup.
23299
23300 2009-08-02  Bruno Haible  <bruno@clisp.org>
23301
23302         Allow multiple calls to gl_sockets_startup.
23303         * lib/sockets.c (initialized_sockets_version): New variable.
23304         (gl_sockets_startup): Do nothing if already called for this or a higher
23305         version.
23306         (gl_sockets_cleanup): Reset initialized_sockets_version.
23307
23308 2009-08-03  Simon Josefsson  <simon@josefsson.org>
23309
23310         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
23311         different project/version.
23312
23313 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
23314             Bruno Haible  <bruno@clisp.org>
23315
23316         Tests for module 'pipe-filter-gi'.
23317         * modules/pipe-filter-gi-tests: New file.
23318         * tests/test-pipe-filter-gi1.sh: New file.
23319         * tests/test-pipe-filter-gi1.c: New file.
23320         * tests/test-pipe-filter-gi2.sh: New file.
23321         * tests/test-pipe-filter-gi2-main.c: New file.
23322         * tests/test-pipe-filter-gi2-child.c: New file.
23323
23324         New module 'pipe-filter-gi'.
23325         * lib/pipe-filter-gi.c: New file.
23326         * modules/pipe-filter-gi: New file.
23327
23328 2009-08-02  Bruno Haible  <bruno@clisp.org>
23329             Paolo Bonzini  <bonzini@gnu.org>
23330
23331         Tests for module 'pipe-filter-ii'.
23332         * modules/pipe-filter-ii-tests: New file.
23333         * tests/test-pipe-filter-ii1.sh: New file.
23334         * tests/test-pipe-filter-ii1.c: New file.
23335         * tests/test-pipe-filter-ii2.sh: New file.
23336         * tests/test-pipe-filter-ii2-main.c: New file.
23337         * tests/test-pipe-filter-ii2-child.c: New file.
23338
23339         New module 'pipe-filter-ii'.
23340         * lib/pipe-filter.h: New file.
23341         * lib/pipe-filter-ii.c: New file.
23342         * lib/pipe-filter-aux.h: New file.
23343         * modules/pipe-filter-ii: New file.
23344
23345 2009-08-02  Simon Josefsson  <simon@josefsson.org>
23346
23347         * lib/gc-libgcrypt.c: Change copyright to FSF.
23348         * lib/gc-gnulib.c: Likewise.
23349
23350 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
23351
23352         * lib/gethostname.c: Include limits.h.
23353
23354 2009-08-02  Simon Josefsson  <simon@josefsson.org>
23355             Bruno Haible  <bruno@clisp.org>
23356
23357         Ensure HOST_NAME_MAX as part of the gethostname module.
23358         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
23359         define also HOST_NAME_MAX.
23360         * tests/test-gethostname.c: Include <limits.h>.
23361         (main): Check also HOST_NAME_MAX.
23362         * doc/posix-headers/limits.texi: Document the mingw problem.
23363
23364 2009-08-02  Bruno Haible  <bruno@clisp.org>
23365
23366         * lib/gethostname.c (gethostname): Fix handling of large len argument.
23367         Add comments.
23368
23369 2009-03-31  Simon Josefsson  <simon@josefsson.org>
23370
23371         * lib/gethostname.c: Add Windows wrapper.
23372         * m4/gethostname.m4: Look for gethostname in -lws2_32.
23373         * modules/gethostname: Depend on sys_socket & errno, for also
23374         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
23375         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
23376
23377 2009-07-31  Jim Meyering  <meyering@redhat.com>
23378
23379         getloadavg: fix symbol name in comment
23380         * lib/getloadavg.c: Correct a typo I introduced when adding
23381         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
23382         Matt Kraai spotted the problem.
23383
23384 2009-07-29  Matt Kraai  <mkraai@beckman.com>
23385
23386         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
23387         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
23388         code also if ! defined N_NAME_POINTER.
23389         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
23390         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
23391         but the n_name member is a 12-byte array.
23392
23393 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
23394
23395         update-copyright: generalize comment handling
23396         * build-aux/update-copyright: Handle copyright statements
23397         within more comment styles.
23398         Document usage.
23399         Report any file with an external copyright holder or parse failure.
23400
23401 2009-07-29  Jim Meyering  <meyering@redhat.com>
23402
23403         mktime: correct setting of REPLACE_MKTIME
23404         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
23405
23406         update-copyright: new module
23407         * modules/update-copyright: New file.
23408         * build-aux/update-copyright: New file.
23409         * MODULES.html.sh (maint+release support): Add update-copyright.
23410
23411 2009-07-27  Bruno Haible  <bruno@clisp.org>
23412
23413         Fix compilation error when <ctime> is used and mktime is replaced.
23414         * lib/time.in.h (mktime): New declaration.
23415         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
23416         REPLACE_MKTIME instead of defining mktime in config.h.
23417         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
23418         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
23419         Reported by Ross McFarland <rwmcfa1@neces.com>.
23420
23421 2009-07-27  Bruno Haible  <bruno@clisp.org>
23422
23423         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
23424         Reported by Matt Kraai <mkraai@beckman.com>.
23425
23426 2009-07-25  Jim Meyering  <meyering@redhat.com>
23427
23428         maint.mk: avoid warnings about missing files
23429         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
23430         diagnostic when .prev-version does not exist.
23431         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
23432         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
23433         nonexistent cfg.mk.
23434         Suggestions from Simon Josefsson.
23435
23436 2009-07-25  Bruno Haible  <bruno@clisp.org>
23437
23438         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
23439         defined as macros. Needed on QNX 6.4.1.
23440         Reported by Matt Kraai <mkraai@beckman.com>.
23441
23442 2009-07-23  Jim Meyering  <meyering@redhat.com>
23443
23444         maint.mk: invoke "make dist" with a working value of XZ_OPT
23445         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
23446
23447 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
23448
23449         Make fseeko.c compile on QNX.
23450         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
23451
23452 2009-07-22  Peter Simons  <simons@cryp.to>
23453
23454         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
23455         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
23456         * lib/md4.h: Likewise.
23457         * lib/md5.h: Likewise.
23458         * lib/sha1.h: Likewise.
23459         * lib/sha256.h: Likewise.
23460         * lib/sha512.h: Likewise.
23461
23462         tests-sha1: don't assign literal string to 'char *' variable
23463         * tests/test-sha1.c (main): Declare locals with "const" to match
23464         attributes of the right hand side.
23465
23466 2009-07-21  Eric Blake  <ebb9@byu.net>
23467
23468         dup2: fix more mingw problems
23469         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
23470         fd to itself.
23471         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23472         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
23473         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
23474         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
23475         care of mingw bugs.
23476
23477 2009-07-21  Jim Meyering  <meyering@redhat.com>
23478
23479         vc-list-files: avoid failure when /bin/sh is dash
23480         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
23481         On some Debian based systems, /bin/sh is a symlink to dash, and running
23482         this command would omit the "/" following each 'tests' prefix:
23483           dash -x build-aux/vc-list-files -C . tests
23484         That is because bash and dash work differently:
23485           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
23486           bash ok
23487           dash odd
23488
23489 2009-07-21  Eric Blake  <ebb9@byu.net>
23490
23491         dup2-tests: test previous patch
23492         * modules/dup2-tests: New file.
23493         * tests/test-dup2.c: Likewise.
23494         * tests/test-open.c (main): Avoid unspecified behavior.
23495         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
23496         test.
23497
23498         dup2: work around mingw and cygwin 1.5 bug
23499         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
23500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23501         * modules/unistd (Makefile.am): Substitute it.
23502         * lib/unistd.in.h (dup2): Declare the replacement.
23503         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
23504         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
23505         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
23506         * modules/execute (Depends-on): Add dup2.
23507         * modules/fseterr (Depends-on): Likewise.
23508         * modules/pipe (Depends-on): Likewise.
23509         * modules/posix_spawn-internal (Depends-on): Likewise.
23510
23511 2009-07-21  Bruno Haible  <bruno@clisp.org>
23512
23513         * modules/.gitattributes: New file.
23514
23515 2009-07-20  Bruno Haible  <bruno@clisp.org>
23516
23517         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
23518         (main): Use it.
23519
23520 2009-07-20  Eric Blake  <ebb9@byu.net>
23521
23522         test-pipe: make a bit more robust.
23523         * tests/test-pipe.c (myerr): Allow error messages regardless of
23524         what we do to stderr.
23525         (test_pipe): Rearrange to avoid deadlock.
23526         (child_main): Try a larger read, to ensure we avoided deadlock.
23527         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
23528         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
23529         if misused.
23530
23531 2009-07-19  Jim Meyering  <meyering@redhat.com>
23532
23533         fts: avoid false-positive cycle-detection
23534         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
23535         for each new command line argument.
23536
23537 2009-07-19  Bruno Haible  <bruno@clisp.org>
23538
23539         Fix build error on mingw with the modules sys_select and unistd.
23540         * modules/acl-tests (Depends-on): Add close.
23541         * modules/binary-io-tests (Depends-on): Likewise.
23542         * modules/closein-tests (Depends-on): Likewise.
23543         * modules/flock-tests (Depends-on): Likewise.
23544         * modules/fsync-tests (Depends-on): Likewise.
23545         * modules/lseek-tests (Depends-on): Likewise.
23546         * modules/pipe-tests (Depends-on): Likewise.
23547         * modules/posix_spawn-tests (Depends-on): Likewise.
23548         * modules/posix_spawnp-tests (Depends-on): Likewise.
23549         * modules/stat-time-tests (Depends-on): Likewise.
23550         * modules/yesno-tests (Depends-on): Likewise.
23551
23552 2009-07-19  Bruno Haible  <bruno@clisp.org>
23553
23554         Unify conditionals.
23555         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
23556         macros, not at the compiler macros.
23557         * lib/pipe.c: Likewise.
23558         * lib/execute.c: Likewise.
23559         * lib/spawni.c: Likewise.
23560
23561 2009-07-19  Bruno Haible  <bruno@clisp.org>
23562
23563         Fix handling of closed stdin/stdout/stderr on mingw.
23564         * lib/w32spawn.h: Include unistd.h.
23565         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
23566         file descriptor with O_NOINHERIT flag.
23567         (fd_safer_noinherit): New function, based on fd-safer.c.
23568         (dup_safer_noinherit): New function, based on dup-safer.c.
23569         (undup_safer_noinherit): New function.
23570         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
23571         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
23572         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
23573         instead of fd_safer.
23574         * tests/test-pipe.c: Include <windows.h>.
23575         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
23576
23577         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
23578         from main.
23579         (test_pipe): Pass an extra argument for disambiguation.
23580         (main): Invoke parent_main or child_main.
23581
23582         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
23583         consistently.
23584
23585 2009-07-18  Eric Blake  <ebb9@byu.net>
23586
23587         test-pipe: fix mingw build
23588         * tests/test-pipe.c (main): Avoid fcntl on mingw.
23589
23590 2009-07-18  Bruno Haible  <bruno@clisp.org>
23591
23592         * modules/pipe-tests (Makefile.am): Fix typo.
23593
23594 2009-07-18  Eric Blake  <ebb9@byu.net>
23595
23596         error: fix mingw build
23597         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
23598         Reported by Bruno Haible.
23599
23600         error: avoid undefined use of stdout
23601         * lib/error.c (error, error_at_line): Check that fd 1 is open
23602         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
23603         is handling faults and the close_stdout module wants to report the
23604         detection of closed stdout as an error.
23605
23606 2009-07-17  Eric Blake  <ebb9@byu.net>
23607
23608         pipe: be robust in face of closed fds
23609         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
23610         should cause child to misbehave.
23611         * modules/pipe-tests: New module.
23612         * tests/test-pipe.c: New file.
23613         * tests/test-pipe.sh: New file.
23614         Reported by Akim Demaille.
23615
23616 2009-07-14  Bruno Haible  <bruno@clisp.org>
23617
23618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
23619         Reported by anonymous kc.
23620
23621 2009-07-07  Jim Meyering  <meyering@redhat.com>
23622
23623         maint.mk: don't look for translatable strings in *.m4 or *.mk
23624         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
23625         when searching for translatable strings.
23626
23627 2009-07-05  Jim Meyering  <meyering@redhat.com>
23628
23629         remove superfluous parentheses in STREQ definition
23630         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
23631         * lib/getugroups.c (STREQ): Likewise.
23632         * lib/fnmatch.c (STREQ): Likewise.
23633         Spotted by Bruno Haible.
23634
23635 2009-07-04  Jim Meyering  <meyering@redhat.com>
23636
23637         argv-iter: new module
23638         * MODULES.html.sh: Add argv-iter.
23639         * lib/argv-iter.c, lib/argv-iter.h: New files.
23640         * modules/argv-iter: New file.
23641         * modules/argv-iter-tests: New file.
23642         * tests/test-argv-iter.c: Test it.
23643
23644 2009-07-04  Bruno Haible  <bruno@clisp.org>
23645
23646         Fix assertion.
23647         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
23648         contains more exact copies of a given entry than file2, leave the extra
23649         copies unpaired rather than aborting.
23650         Reported by Eric Blake.
23651
23652 2009-07-02  Bruno Haible  <bruno@clisp.org>
23653
23654         Speedup git-merge-changelog for git cherry-pick.
23655         * lib/git-merge-changelog.c (struct entries_mapping): New type.
23656         (entries_mapping_get): New function, extracted from compute_mapping.
23657         (entries_mapping_reverse_get): New function.
23658         (compute_mapping): Add a 'full' argument. Return the result in a
23659         'struct entries_mapping'.
23660         (main): Update. Access the mappings through entries_mapping_get.
23661         Reported by Eric Blake.
23662
23663 2009-07-02  Bruno Haible  <bruno@clisp.org>
23664
23665         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
23666         best_i.
23667
23668 2009-07-02  Bruno Haible  <bruno@clisp.org>
23669
23670         Speed up approximate search for matching ChangeLog entries.
23671         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
23672         argument. Call fstrcmp_bounded instead of fstrcmp.
23673         (compute_mapping, try_split_merged_entry, main): Update callers.
23674
23675 2009-07-02  Bruno Haible  <bruno@clisp.org>
23676
23677         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
23678
23679 2009-06-30  Bruno Haible  <bruno@clisp.org>
23680
23681         Reduce the number of uc_is_cased calls.
23682         * lib/unicase.h (casing_suffix_context_t): Add
23683         'first_char_except_ignorable' field.
23684         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
23685         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
23686         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
23687         Update initializer.
23688         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
23689         case-ignorable characters.
23690         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
23691         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
23692         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
23693         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
23694         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
23695
23696 2009-06-30  Bruno Haible  <bruno@clisp.org>
23697
23698         Tests for module 'unicase/ignorable'.
23699         * modules/unicase/ignorable-tests: New file.
23700         * tests/unicase/test-ignorable.c: New file, generated by
23701         gen-uni-tables.
23702
23703         Tests for module 'unicase/cased'.
23704         * modules/unicase/cased-tests: New file.
23705         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
23706         * tests/unicase/test-predicate-part1.h: New file, derived from
23707         tests/unictype/test-predicate-part1.h.
23708         * tests/unicase/test-predicate-part2.h: New file, same as
23709         tests/unictype/test-predicate-part2.h.
23710
23711         Fix evaluation of "Before C" condition of FINAL_SIGMA.
23712         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
23713         (output_casing_properties): New function.
23714         (main): Call it.
23715         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
23716         * lib/unicase/cased.c: Include unictype/bitmap.h.
23717         (uc_is_cased): Define through a bitmap lookup.
23718         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
23719         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
23720         (uc_is_case_ignorable): Define through a bitmap lookup.
23721         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
23722         lib/unictype/bitmap.h.
23723         (Depends-on): Add inline. Clean up.
23724         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
23725         lib/unictype/bitmap.h.
23726         (Depends-on): Add inline. Clean up.
23727         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
23728         recognition.
23729         * tests/unicase/test-u16-tolower.c (main): Likewise.
23730         * tests/unicase/test-u32-tolower.c (main): Likewise.
23731
23732 2009-06-30  Bruno Haible  <bruno@clisp.org>
23733
23734         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
23735         * lib/unicase/u16-casemap.c: Likewise.
23736         * lib/unicase/u32-casemap.c: Likewise.
23737
23738 2009-06-29  Bruno Haible  <bruno@clisp.org>
23739
23740         Define u32_casefold as a wrapper around u32_ct_casefold.
23741         * lib/unicase/u32-casefold.c: Update.
23742         * modules/unicase/u32-casefold (Depends-on): Add
23743         unicase/u32-ct-casefold, unicase/empty-prefix-context,
23744         unicase/empty-suffix-context. Clean up.
23745
23746         Define u16_casefold as a wrapper around u16_ct_casefold.
23747         * lib/unicase/u16-casefold.c: Update.
23748         * modules/unicase/u16-casefold (Depends-on): Add
23749         unicase/u16-ct-casefold, unicase/empty-prefix-context,
23750         unicase/empty-suffix-context. Clean up.
23751
23752         Define u8_casefold as a wrapper around u8_ct_casefold.
23753         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
23754         * lib/unicase/u8-casefold.c: Update.
23755         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
23756         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23757
23758         Define u32_totitle as a wrapper around u32_ct_totitle.
23759         * lib/unicase/u32-totitle.c: Update.
23760         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
23761         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23762
23763         Define u16_totitle as a wrapper around u16_ct_totitle.
23764         * lib/unicase/u16-totitle.c: Update.
23765         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
23766         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23767
23768         Define u8_totitle as a wrapper around u8_ct_totitle.
23769         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
23770         functions.
23771         (FUNC): Delegate to U_CT_TOTITLE.
23772         * lib/unicase/u8-totitle.c: Update.
23773         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
23774         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
23775
23776         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
23777         invocation.
23778         * modules/unicase/u32-tolower (Depends-on): Add
23779         unicase/empty-prefix-context, unicase/empty-suffix-context.
23780
23781         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
23782         invocation.
23783         * modules/unicase/u16-tolower (Depends-on): Add
23784         unicase/empty-prefix-context, unicase/empty-suffix-context.
23785
23786         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
23787         * modules/unicase/u8-tolower (Depends-on): Add
23788         unicase/empty-prefix-context, unicase/empty-suffix-context.
23789
23790         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
23791         invocation.
23792         * modules/unicase/u32-toupper (Depends-on): Add
23793         unicase/empty-prefix-context, unicase/empty-suffix-context.
23794
23795         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
23796         invocation.
23797         * modules/unicase/u16-toupper (Depends-on): Add
23798         unicase/empty-prefix-context, unicase/empty-suffix-context.
23799
23800         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
23801         * modules/unicase/u8-toupper (Depends-on): Add
23802         unicase/empty-prefix-context, unicase/empty-suffix-context.
23803
23804         New module 'unicase/u32-ct-casefold'.
23805         * lib/unicase/u32-ct-casefold.c: New file.
23806         * modules/unicase/u32-ct-casefold: New file.
23807
23808         New module 'unicase/u16-ct-casefold'.
23809         * lib/unicase/u16-ct-casefold.c: New file.
23810         * modules/unicase/u16-ct-casefold: New file.
23811
23812         New module 'unicase/u8-ct-casefold'.
23813         * lib/unicase/u8-ct-casefold.c: New file.
23814         * lib/unicase/u-ct-casefold.h: New file, derived from
23815         lib/unicase/u-casefold.h.
23816         * modules/unicase/u8-ct-casefold: New file.
23817
23818         New module 'unicase/u32-ct-totitle'.
23819         * lib/unicase/u32-ct-totitle.c: New file.
23820         * modules/unicase/u32-ct-totitle: New file.
23821
23822         New module 'unicase/u16-ct-totitle'.
23823         * lib/unicase/u16-ct-totitle.c: New file.
23824         * modules/unicase/u16-ct-totitle: New file.
23825
23826         New module 'unicase/u8-ct-totitle'.
23827         * lib/unicase/u8-ct-totitle.c: New file.
23828         * lib/unicase/u-ct-totitle.h: New file, derived from
23829         lib/unicase/u-totitle.h.
23830         * modules/unicase/u8-ct-totitle: New file.
23831
23832         New module 'unicase/u32-ct-tolower'.
23833         * lib/unicase/u32-ct-tolower.c: New file.
23834         * modules/unicase/u32-ct-tolower: New file.
23835
23836         New module 'unicase/u16-ct-tolower'.
23837         * lib/unicase/u16-ct-tolower.c: New file.
23838         * modules/unicase/u16-ct-tolower: New file.
23839
23840         New module 'unicase/u8-ct-tolower'.
23841         * lib/unicase/u8-ct-tolower.c: New file.
23842         * modules/unicase/u8-ct-tolower: New file.
23843
23844         New module 'unicase/u32-ct-toupper'.
23845         * lib/unicase/u32-ct-toupper.c: New file.
23846         * modules/unicase/u32-ct-toupper: New file.
23847
23848         New module 'unicase/u16-ct-toupper'.
23849         * lib/unicase/u16-ct-toupper.c: New file.
23850         * modules/unicase/u16-ct-toupper: New file.
23851
23852         New module 'unicase/u8-ct-toupper'.
23853         * lib/unicase/u8-ct-toupper.c: New file.
23854         * modules/unicase/u8-ct-toupper: New file.
23855
23856         Add context arguments to u*_casemap functions.
23857         * lib/unicase/unicasemap.h: Include unicase.h.
23858         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
23859         suffix_context arguments.
23860         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
23861         functions.
23862         (FUNC): Add prefix_context and suffix_context arguments. Use
23863         uc_is_cased and uc_is_case_ignorable.
23864         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
23865         * lib/unicase/u16-casemap.c: Likewise.
23866         * lib/unicase/u32-casemap.c: Likewise.
23867         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
23868         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23869         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
23870         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23871         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
23872         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
23873
23874         New module 'unicase/u32-suffix-context'.
23875         * lib/unicase/u32-suffix-context.c: New file.
23876         * modules/unicase/u32-suffix-context: New file.
23877
23878         New module 'unicase/u16-suffix-context'.
23879         * lib/unicase/u16-suffix-context.c: New file.
23880         * modules/unicase/u16-suffix-context: New file.
23881
23882         New module 'unicase/u8-suffix-context'.
23883         * lib/unicase/u8-suffix-context.c: New file.
23884         * lib/unicase/u-suffix-context.h: New file.
23885         * modules/unicase/u8-suffix-context: New file.
23886
23887         New module 'unicase/empty-suffix-context'.
23888         * lib/unicase/empty-suffix-context.c: New file.
23889         * modules/unicase/empty-suffix-context: New file.
23890
23891         New module 'unicase/u32-prefix-context'.
23892         * lib/unicase/u32-prefix-context.c: New file.
23893         * modules/unicase/u32-prefix-context: New file.
23894
23895         New module 'unicase/u16-prefix-context'.
23896         * lib/unicase/u16-prefix-context.c: New file.
23897         * modules/unicase/u16-prefix-context: New file.
23898
23899         New module 'unicase/u8-prefix-context'.
23900         * lib/unicase/u8-prefix-context.c: New file.
23901         * lib/unicase/u-prefix-context.h: New file.
23902         * lib/unicase/context.h: New file.
23903         * modules/unicase/u8-prefix-context: New file.
23904
23905         New module 'unicase/empty-prefix-context'.
23906         * lib/unicase/empty-prefix-context.c: New file.
23907         * modules/unicase/empty-prefix-context: New file.
23908
23909         New module 'unicase/ignorable'.
23910         * lib/unicase/ignorable.c: New file.
23911         * modules/unicase/ignorable: New file.
23912
23913         New module 'unicase/cased'.
23914         * lib/unicase/caseprop.h: New file.
23915         * lib/unicase/cased.c: New file.
23916         * modules/unicase/cased: New file.
23917
23918         New functions for case mapping of substrings.
23919         * lib/unicase.h (casing_prefix_context_t): New type.
23920         (unicase_empty_prefix_context): New variable.
23921         (u8_casing_prefix_context, u16_casing_prefix_context,
23922         u32_casing_prefix_context, u8_casing_prefixes_context,
23923         u16_casing_prefixes_context, u32_casing_prefixes_context): New
23924         declarations.
23925         (casing_suffix_context_t): New type.
23926         (unicase_empty_suffix_context): New variable.
23927         (u8_casing_suffix_context, u16_casing_suffix_context,
23928         u32_casing_suffix_context, u8_casing_suffixes_context,
23929         u16_casing_suffixes_context, u32_casing_suffixes_context,
23930         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
23931         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
23932         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
23933         declarations.
23934
23935 2009-06-28  Jim Meyering  <meyering@redhat.com>
23936
23937         boostrap: indent only with spaces
23938         * build-aux/bootstrap: Indent only with spaces, never TABs.
23939
23940         bootstrap: split long lines
23941         * build-aux/bootstrap: Keep line length < 80.
23942
23943         bootstrap: sync from coreutils
23944         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
23945         just as autoreconf does.  Verify a list of prerequisite
23946         package-name,version-number pairs if defined in bootstrap.conf.
23947         Refer to README-prereq, if prerequisites are not satisfied.
23948
23949 2009-06-27  Eric Blake  <ebb9@byu.net>
23950
23951         tests: add test for bogus NULL definition
23952         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
23953         * tests/test-stdlib.c: Likewise.
23954         * tests/test-string.c: Likewise.
23955         * tests/test-locale.c: Likewise.
23956         * tests/test-unistd.c: Likewise.
23957         * modules/stdio-tests (Depends-on): Add verify.
23958         * modules/stdlib-tests (Depends-on): Likewise.
23959         * modules/string-tests (Depends-on): Likewise.
23960         * modules/locale-tests (Depends-on): Likewise.
23961         * modules/unistd-tests (Depends-on): Likewise.
23962
23963 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
23964
23965         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
23966         self-explaining comment.
23967         * m4/selinux-selinux-h: Update serial.
23968         (gl_LIBSELINUX): New macro, adding a warning for missing development
23969         packages to code extracted from...
23970         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
23971         Add warning for missing development packages here, too.
23972
23973 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
23974
23975         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
23976
23977 2009-06-25  Eric Blake  <ebb9@byu.net>
23978
23979         version-etc: fix regression
23980         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
23981         gcc.
23982         (version_etc): Use it, to catch bugs with trailing NULL.
23983         * lib/version-etc.c (version_etc_arn): Delete unused argument.
23984         (version_etc_va): Fix logic bug.
23985         * modules/version-etc-tests: Add test.
23986         * tests/test-version-etc.c: New file.
23987         * tests/test-version-etc.sh: Likewise.
23988
23989 2009-06-25  Sam Steingold  <sds@gnu.org>
23990
23991         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
23992         mbtowc declaration.
23993
23994 2009-06-25  Eric Blake  <ebb9@byu.net>
23995
23996         fpurge: migrate into <stdio.h>
23997         * lib/fpurge.h: Delete...
23998         * lib/stdio.in.h (fpurge): ...and declare here, instead.
23999         * lib/fpurge.c (fpurge): Change declaring header.
24000         * modules/fpurge (Files): Drop deleted file.
24001         (Depends-on): Add stdio.
24002         (configure.ac): Set witness.
24003         * modules/stdio (Makefile.am): Support fpurge macros.
24004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24005         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
24006         * lib/fflush.c: Update client.
24007         * tests/test-fpurge.c: Likewise.
24008         * NEWS: Mention the change.
24009
24010 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24011
24012         * lib/argp-version-etc.c (program_authors): Add const
24013         qualifier.
24014         * lib/version-etc.c: Fix typos in the comments.
24015         * modules/argp-version-etc: Depends on version-etc.
24016
24017 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24018
24019         argp-version-etc: new module.
24020
24021         * lib/argp-version-etc.c: New file.
24022         * lib/argp-version-etc.h: New file.
24023         * modules/argp-version-etc: New file.
24024         * modules/argp-version-etc-tests: New file.
24025         * tests/test-argp-version-etc.c: New test.
24026         * tests/test-argp-version-etc-1.sh: New test.
24027
24028 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24029
24030         Provide additional interfaces and documentation for version-etc
24031         module.
24032
24033         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
24034         interfaces.
24035         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
24036         prototypes.
24037
24038 2009-06-24  Bruno Haible  <bruno@clisp.org>
24039
24040         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
24041         HAVE_LIB${NAME} macro.
24042         Reported by Sam Steingold <sds@gnu.org>.
24043
24044 2009-06-23  Simon Josefsson  <simon@josefsson.org>
24045
24046         * modules/hash-tests (test_hash_LDADD): Link to libintl when
24047         needed.
24048
24049 2009-06-21  Bruno Haible  <bruno@clisp.org>
24050
24051         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
24052         work.
24053         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
24054         together with LIB${NAME}, LTLIB${NAME}.
24055         Reported by Sam Steingold <sds@gnu.org>.
24056
24057 2009-06-20  Jim Meyering  <meyering@redhat.com>
24058
24059         tests: make sc_require_test_exit_idiom more generic
24060         * top/maint.mk (Exit_witness_file): New overridable variable.
24061         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
24062         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
24063
24064 2009-06-19  Jim Meyering  <meyering@redhat.com>
24065
24066         hash: reverse order of src/dst parameters in an internal interface
24067         * lib/hash.c (transfer_entries): Reverse order of parameters to
24068         put DST before SRC.  Adjust callers.
24069
24070         tests: test-hash: avoid wholesale duplication
24071         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
24072         Instead, use a loop and add a single conditional.
24073
24074         tests: test-hash: allow seed selection via a command line argument
24075         * tests/test-hash.c (get_seed): New function.
24076         (main): Use it.
24077
24078 2009-06-19  Eric Blake  <ebb9@byu.net>
24079
24080         hash: avoid memory leak on allocation failure
24081         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
24082         failure.  Factor repeated algorithm...
24083         (transfer_entries): ...into new helper routine.
24084         (hash_delete): React to hash_rehash return value.
24085
24086         hash: reduce memory pressure in hash_rehash no-op case
24087         * lib/hash.c (next_prime): Avoid overflow.
24088         (hash_initialize): Factor bucket size computation...
24089         (compute_bucket_size): ...into new helper function.
24090         (hash_rehash): Use new function and open coding to reduce memory
24091         pressure, and avoid a memory leak in USE_OBSTACK code.
24092         Reported by Jim Meyering.
24093
24094 2009-06-18  Eric Blake  <ebb9@byu.net>
24095
24096         hash: make rotation more obvious
24097         * modules/hash (Depends-on): Add bitrotate and stdint.
24098         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
24099         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
24100         (SIZE_MAX): Rely on headers for definition.
24101         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
24102         (raw_hasher): Use rotr_sz.
24103         Suggested by Jim Meyering.
24104
24105         hash: fix memory leak in last patch
24106         * lib/hash.c (hash_rehash): Avoid memory leak.
24107
24108         hash: avoid no-op rehashing
24109         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
24110
24111         hash: provide default callback functions
24112         * lib/hash.c (raw_hasher, raw_comparator): New functions.
24113         (hash_initialize): Use them as defaults.
24114         * tests/test-hash.c (main): Test this.
24115
24116         hash: minor optimization
24117         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
24118         when possible.
24119         (hash_initialize): Document this promise.
24120         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
24121         * tests/test-hash.c (hash_compare_strings): Test this.
24122
24123 2009-06-18  Bruno Haible  <bruno@clisp.org>
24124
24125         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
24126         going to be replaced anyway.
24127
24128 2009-06-18  Bruno Haible  <bruno@clisp.org>
24129
24130         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
24131         in one place.
24132         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
24133         be replaced anyway.
24134
24135 2009-06-18  Eric Blake  <ebb9@byu.net>
24136
24137         hash: check for resize before insertion
24138         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
24139         threshold before insertion, so that a pathological hash_rehash
24140         that fills every bucket can still trigger another rehash.
24141
24142 2009-06-18  Jim Meyering  <meyering@redhat.com>
24143
24144         hash-tests: add a loop around the small tests
24145         * tests/test-hash.c (main): Repeat small tests with selected
24146         small initial table sizes.
24147
24148 2009-06-17  Eric Blake  <ebb9@byu.net>
24149
24150         hash: minor cleanups
24151         * lib/hash.h (hash_entry): Make opaque, by moving...
24152         * lib/hash.c (hash_entry): ...here.
24153         (hash_insert): Clarify restrictions on what can be inserted.
24154         (hash_get_next): Clarify when it is safe to remove an element
24155         during traversal.
24156         (check_tuning): Skip verification when tuning is known safe.
24157         (hash_initialize): Clarify restrictions on tuning.
24158
24159 2009-06-17  Jim Meyering  <jim@meyering.net>
24160         and Eric Blake  <ebb9@byu.net>
24161
24162         hash-tests: new module
24163         * modules/hash-tests: New file.
24164         * tests/test-hash.c: New file.
24165
24166 2009-06-17  Eric Blake  <ebb9@byu.net>
24167
24168         strstr-simple: document new module
24169         * MODULES.html.sh: Document new module.
24170
24171         strstr, strcasestr: replace on platforms with broken memchr
24172         * modules/strstr: Split into...
24173         * modules/strstr-simple: ...new module that does not care about
24174         performance, but does care about glibc bug.
24175         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
24176         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
24177         if platform memchr is broken, per Debian bug 521737.
24178         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
24179         memchr.
24180         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
24181         * doc/posix-functions/strstr.texi (strstr): Document the fix.
24182         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24183         * modules/mountlist (Depends-on): Add strstr-simple.
24184         * modules/gen-uni-tables (Depends-on): Likewise.
24185         * modules/argz (Depends-on): Add strstr.
24186
24187 2009-06-17  Bruno Haible  <bruno@clisp.org>
24188
24189         * modules/posix_spawn-internal (Depends-on): Add errno.
24190
24191 2009-06-17  Bruno Haible  <bruno@clisp.org>
24192
24193         Define missing ESTALE on Interix 3.5.
24194         * lib/errno.in.h (ESTALE): Assign a value if missing.
24195         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
24196         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
24197         missing.
24198         * doc/posix-headers/errno.texi: Mention the Interix bug.
24199         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
24200
24201 2009-06-15  Eric Blake  <ebb9@byu.net>
24202
24203         memchr, memchr2: add valgrind exception
24204         * lib/memchr.valgrind: New file.
24205         * lib/memchr2.valgrind: New file.
24206         * modules/memchr (Files): Distribute valgrind file.
24207         * modules/memchr2 (Files): Likewise.
24208
24209         docs: memchr is no longer obsolete
24210         * MODULES.html.sh: Move memchr from obsolete to string.h section.
24211         * lib/string.in.h (memchr): Simplify logic.
24212
24213 2009-06-14  Jim Meyering  <meyering@redhat.com>
24214
24215         link-follow: fix the "checking..." message to not mention trailing slash
24216         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
24217         never considered trailing slashes.
24218
24219 2009-06-14  Bruno Haible  <bruno@clisp.org>
24220
24221         * m4/memchr.m4: Mention also the bug on IA-64.
24222         * doc/posix-functions/memchr.texi: Likewise.
24223
24224 2009-06-12  Eric Blake  <ebb9@byu.net>
24225
24226         memchr: detect broken x86_64 and alpha implementations
24227         * modules/memchr-tests (Depends-on): Move mmap detection...
24228         * modules/memchr (Depends-on): ...here.
24229         (configure.ac): Set indicator.
24230         * lib/string.in.h (memchr): Declare replacement.
24231         * modules/string (Makefile.am): Trigger replacement.
24232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
24233         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
24234         bugs.
24235         * doc/posix-functions/memchr.texi (memchr): Document the bug.
24236         * modules/getpagesize (License): Relax license.
24237
24238 2009-06-11  Bruno Haible  <bruno@clisp.org>
24239
24240         * lib/idpriv.h: Add more references.
24241
24242 2009-06-08  Bruno Haible  <bruno@clisp.org>
24243
24244         Tests for module 'idpriv-droptemp'.
24245         * modules/idpriv-droptemp-tests: New file.
24246         * tests/test-idpriv-droptemp.sh: New file.
24247         * tests/test-idpriv-droptemp.su.sh: New file.
24248         * tests/test-idpriv-droptemp.c: New file.
24249
24250         New module 'idpriv-droptemp'.
24251         * lib/idpriv-droptemp.c: New file.
24252         * modules/idpriv-droptemp: New file.
24253
24254 2009-06-08  Bruno Haible  <bruno@clisp.org>
24255
24256         Tests for module 'idpriv-drop'.
24257         * modules/idpriv-drop-tests: New file.
24258         * tests/test-idpriv-drop.sh: New file.
24259         * tests/test-idpriv-drop.su.sh: New file.
24260         * tests/test-idpriv-drop.c: New file.
24261
24262         New module 'idpriv-drop'.
24263         * lib/idpriv.h: New file.
24264         * lib-idpriv-drop.c: New file.
24265         * m4/idpriv.m4: New file.
24266         * modules/idpriv-drop: New file.
24267
24268 2009-06-08  Bruno Haible  <bruno@clisp.org>
24269
24270         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
24271         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24272         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24273         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24274         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24275         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24276         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24277
24278 2009-06-08  Eric Blake  <ebb9@byu.net>
24279
24280         test-strstr: use memory fence, when possible
24281         * tests/test-strstr.c (main): Use memory fence, in order to be
24282         more likely to trigger Debian bug 521737.
24283         * modules/strstr-tests (Files): Pull in additional files.
24284
24285         memchr: no longer obsolete, for wider field testing
24286         * modules/memchr (Status, Notice): Delete, this module is no
24287         longer obsolete.
24288         * modules/vasnprintf (Depends-on): Add memchr.
24289
24290 2009-06-07  Jim Meyering  <meyering@redhat.com>
24291
24292         hash: declare some functions with the warn_unused_result attribute
24293         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
24294
24295 2009-06-07  Bruno Haible  <bruno@clisp.org>
24296
24297         * tests/test-alignof.c: Don't test int64_t if it does not exist.
24298         Reported by Eric Blake.
24299
24300 2009-06-06  Eric Blake  <ebb9@byu.net>
24301
24302         test-alignof: fix typo with long double
24303         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
24304         compiler error.
24305
24306 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
24307
24308         Escape non-texinfo { and }s.
24309         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
24310         markup error.
24311
24312 2009-06-04  Jim Meyering  <meyering@redhat.com>
24313
24314         gitlog-to-changelog: don't infloop on an empty commit log
24315         * build-aux/gitlog-to-changelog: Warn about an empty log message.
24316         Reported by Boris Petersen <transacid@centerim.org>.
24317
24318 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
24319
24320         version-etc: extend for packagers
24321         Add three new configure options, intended for packagers:
24322           --with-packager="packager name"
24323           --with-packager-version="packager-specific version"
24324           --with-packager-bug-reports="packager bug reporting"
24325         An example with coreutils:
24326           $ ./configure \
24327             --with-packager=Gentoo \
24328             --with-packager-bug-report=http://bugs.gentoo.org/ \
24329             --with-packager-version="patchset 1.6"
24330           $ ./src/ls --version | head -n2
24331           ls (GNU coreutils) 7.1-dirty
24332           Packaged by Gentoo (patchset 1.6)
24333         Note that the bug reporting info via --help doesn't show up because
24334         coreutils uses its own custom emit_bug_reporting_address() implementation
24335         in src/system.h.  If it didn't, it'd look like:
24336           $ ./src/ls --help | tail -n4
24337           Report bugs to <bug-coreutils@gnu.org>.
24338           Report Gentoo bugs to <http://bugs.gentoo.org/>.
24339           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
24340           General help using GNU software: <http://www.gnu.org/gethelp/>.
24341         * lib/version-etc.c: Print new information, if provided.
24342         * m4/version-etc.m4: New file.
24343         * modules/version-etc (Files): Add m4/version-etc.m4.
24344         (configure.ac): Add gl_VERSION_ETC.
24345
24346 2009-05-31  Bruno Haible  <bruno@clisp.org>
24347
24348         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
24349         and 'int64_t'.
24350         * modules/alignof-tests (Dependencies): Add stdint.
24351         Reported by Eric Blake.
24352
24353 2009-05-31  Bruno Haible  <bruno@clisp.org>
24354
24355         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
24356         restriction due to compiler bugs.
24357         Reported by Eric Blake.
24358
24359 2009-05-31  Simon Josefsson  <simon@josefsson.org>
24360             Bruno Haible  <bruno@clisp.org>
24361
24362         Fix test-alignof failure.
24363         * lib/alignof.h (alignof_slot): New macro.
24364         (alignof_type): New macro, with the same semantics as the previous
24365         'alignof'.
24366         (alignof): Alias to alignof_slot.
24367         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
24368         check that the results are usable as constant expressions.
24369
24370 2009-05-31  Bruno Haible  <bruno@clisp.org>
24371
24372         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
24373         * tests/test-memchr.c (main): Check that memchr does not read past the
24374         first occurrence of the byte.
24375         * tests/test-strstr.c (main): Update comment.
24376         Suggested by Eric Blake.
24377
24378 2009-05-30  Bruno Haible  <bruno@clisp.org>
24379
24380         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
24381         detail how to use dumpbin.
24382         Reported by David Byron <dbyron@dbyron.com>.
24383
24384 2009-06-02  Simon Josefsson  <simon@josefsson.org>
24385
24386         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
24387
24388 2009-06-02  Simon Josefsson  <simon@josefsson.org>
24389
24390         * m4/manywarnings.m4: Add GCC 4.4 warnings.
24391
24392 2009-05-28  Bruno Haible  <bruno@clisp.org>
24393
24394         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
24395         build-aux/ files.
24396
24397 2009-05-28  Simon Josefsson  <simon@josefsson.org>
24398
24399         * gnulib-tool (func_import): Transform license on build-aux/ files too.
24400
24401 2009-05-27  Simon Josefsson  <simon@josefsson.org>
24402
24403         * gnulib-tool (sed_transform_main_lib_file)
24404         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
24405         regexps.
24406
24407 2009-05-26  Simon Josefsson  <simon@josefsson.org>
24408
24409         * tests/test-strstr.c: Add another self-test.
24410         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
24411         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
24412
24413 2009-05-23  Bruno Haible  <bruno@clisp.org>
24414
24415         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
24416         change.
24417
24418 2009-05-21  Bruno Haible  <bruno@clisp.org>
24419
24420         Simplify use of mode_t varargs.
24421         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
24422         uses 'mode_t' or 'int'.
24423         * lib/openat.c (openat): Likewise.
24424         * lib/open-safer.c (open_safer): Likewise.
24425         * m4/mode_t.m4: New file.
24426         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
24427         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
24428         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
24429         * modules/open (Files): Add m4/mode_t.m4.
24430         * modules/openat (Files): Likewise.
24431         * modules/fcntl-safer (Files): Likewise.
24432         Suggested by Eric Blake.
24433
24434 2009-05-21  Pádraig Brady  <P@draigbrady.com>
24435
24436         * doc/glibc-functions/fallocate.texi: New file.
24437         * doc/gnulib.texi: Include it.
24438
24439 2009-05-21  Eric Blake  <ebb9@byu.net>
24440             Bruno Haible  <bruno@clisp.org>
24441
24442         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
24443         invocations.
24444         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24445
24446 2009-05-21  Eric Blake  <ebb9@byu.net>
24447             Bruno Haible  <bruno@clisp.org>
24448
24449         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
24450         include_next. Fix of 2008-11-20 commit.
24451         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
24452         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
24453         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
24454         NEXT_MATH_H.
24455         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
24456         instead of NEXT_MATH_H.
24457
24458 2009-05-21  Bruno Haible  <bruno@clisp.org>
24459
24460         Avoid redefinition warnings for SIZE_MAX.
24461         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
24462         Reported by Simon Josefsson.
24463
24464 2009-05-21  Bruno Haible  <bruno@clisp.org>
24465
24466         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
24467         AC_CACHE_VAL.
24468
24469 2009-05-20  Bruno Haible  <bruno@clisp.org>
24470
24471         Make zeroptr.h work on mingw.
24472         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
24473         mprotect.
24474         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
24475         * modules/memchr2-tests (configure.ac): Likewise.
24476         * modules/memcmp-tests (configure.ac): Likewise.
24477         * modules/memmem-tests (configure.ac): Likewise.
24478         * modules/memrchr-tests (configure.ac): Likewise.
24479         Reported by Simon Josefsson.
24480
24481 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24482
24483         * tests/test-glob.c: Include string.h for strcmp prototype.
24484
24485 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24486
24487         * modules/getdelim (Depends-on): Add explicit stdint, although it
24488         was implicitly already pulled in via realloc-posix.
24489         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
24490
24491 2009-05-20  Simon Josefsson  <simon@josefsson.org>
24492
24493         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
24494         G. Christensen" <tgc@jupiterrise.com>.
24495         * m4/sys_socket_h.m4: Check for sa_family_t.
24496         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
24497         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
24498         * tests/test-sys_socket.c: Check that sa_family_t works.
24499
24500 2009-05-18  Eric Blake  <ebb9@byu.net>
24501
24502         maint.mk: allow gnulib_dir in VPATH build
24503         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
24504
24505 2009-05-15  Jim Meyering  <meyering@redhat.com>
24506
24507         maint.mk: Give gnulib_dir a default definition.
24508         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
24509         Thus, most packages no longer need to specify this variable in cfg.mk
24510
24511 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
24512
24513         rename.m4: fix typos that would make non-mingw cross-configure fail
24514         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
24515
24516 2009-05-13  Eric Blake  <ebb9@byu.net>
24517
24518         mmap-anon: avoid out-of-order autoconf expansion
24519         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
24520         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
24521         * modules/memchr-tests (Depends-on): Add extensions.
24522         * modules/memchr2-tests (Depends-on): Add extensions.
24523         * modules/memcmp-tests (Depends-on): Add extensions.
24524         * modules/memmem-tests (Depends-on): Add extensions.
24525         * modules/memrchr-tests (Depends-on): Add extensions.
24526
24527 2009-05-13  Bruno Haible  <bruno@clisp.org>
24528
24529         Make some tests ISO C 99 compliant.
24530         * tests/zerosize-ptr.h: New file.
24531         * tests/test-memchr.c: Include zerosize-ptr.h.
24532         (main): Use a zero-size object pointer instead of NULL.
24533         * tests/test-memchr2.c: Include zerosize-ptr.h.
24534         (main): Use a zero-size object pointer instead of NULL.
24535         * tests/test-memcmp.c: Include zerosize-ptr.h.
24536         (main): Use a zero-size object pointer instead of NULL.
24537         * tests/test-memmem.c: Include zerosize-ptr.h.
24538         (main): Use a zero-size object pointer instead of NULL.
24539         * tests/test-memrchr.c: Include zerosize-ptr.h.
24540         (main): Use a zero-size object pointer instead of NULL.
24541         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
24542         m4/mmap-anon.m4.
24543         (Depends-on): Add getpagesize.
24544         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24545         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
24546         m4/mmap-anon.m4.
24547         (Depends-on): Add getpagesize.
24548         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24549         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
24550         m4/mmap-anon.m4.
24551         (Depends-on): Add getpagesize.
24552         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24553         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
24554         m4/mmap-anon.m4.
24555         (Depends-on): Add getpagesize.
24556         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24557         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
24558         m4/mmap-anon.m4.
24559         (Depends-on): Add getpagesize.
24560         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
24561
24562 2009-05-12  Bruno Haible  <bruno@clisp.org>
24563
24564         Tests for module 'alignof'.
24565         * modules/alignof-tests: New file.
24566         * tests/test-alignof.c: New file.
24567
24568 2009-05-12  Bruno Haible  <bruno@clisp.org>
24569
24570         Fix alignof macro.
24571         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
24572         vendor compilers that are always correct.
24573
24574 2009-05-12  Bruno Haible  <bruno@clisp.org>
24575
24576         Make the MAP_ANONYMOUS detection work on HP-UX 11.
24577         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
24578         not whether its fully works.
24579
24580 2009-05-12  Bruno Haible  <bruno@clisp.org>
24581
24582         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
24583
24584 2009-05-12  Jim Meyering  <meyering@redhat.com>
24585
24586         * top/maint.mk: Adjust backslash alignment.
24587
24588 2009-05-11  Simon Josefsson  <simon@josefsson.org>
24589
24590         * top/maint.mk: Make $(srcdir)/build-aux configurable.
24591
24592 2009-05-11  Eric Blake  <ebb9@byu.net>
24593
24594         argp: avoid undefined behavior
24595         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
24596         macros.
24597
24598 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24599
24600         * tests/test-vc-list-files-git.sh: Do git config of user.email and
24601         user.name to prevent git commit from complaining.
24602
24603 2009-05-10  Bruno Haible  <bruno@clisp.org>
24604
24605         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
24606         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
24607         it rewrites every file name only once.
24608         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
24609
24610 2009-05-08  Bruno Haible  <bruno@clisp.org>
24611
24612         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
24613         instead of 'max'.
24614
24615 2009-05-08  Simon Josefsson  <simon@josefsson.org>
24616
24617         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
24618         sockaddr_storage test.
24619
24620 2009-05-07  Simon Josefsson  <simon@josefsson.org>
24621
24622         * modules/sys_socket (Makefile.am): Substitute
24623         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
24624         * m4/sys_socket_h.m4: Check for sockaddr_storage.
24625         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
24626         * tests/test-sys_socket.c: Check sockaddr_storage.
24627
24628 2009-05-08  Bruno Haible  <bruno@clisp.org>
24629
24630         New module 'alignof'.
24631         * lib/alignof.h: New file.
24632         * modules/alignof: New file.
24633
24634 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24635             Bruno Haible  <bruno@clisp.org>
24636
24637         Fix test-file-has-acl on FreeBSD.
24638         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
24639         mask is implicitly added.
24640         * tests/test-file-has-acl.c: Include <signal.h>.
24641         (main): Terminate the test after 5 seconds.
24642         * modules/acl-tests (configure.ac): Check for alarm function.
24643
24644 2009-05-04  Bruno Haible  <bruno@clisp.org>
24645
24646         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
24647         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
24648         * modules/errno (configure.ac): Drop AC_REQUIRE.
24649         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
24650         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
24651
24652 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24653
24654         * modules/glob-tests: New module.
24655         * tests/test-glob.c: Add.
24656
24657 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24658
24659         * modules/fnmatch-tests: New module.
24660         * tests/test-fnmatch.c: Add.
24661
24662 2009-05-04  Eric Blake  <ebb9@byu.net>
24663
24664         maint: make the new no-submodule-changes rule VPATH-safe
24665         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
24666
24667 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24668             Bruno Haible  <bruno@clisp.org>
24669
24670         acl: Fix infinite loop on FreeBSD.
24671         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
24672         of return value from acl_get_entry.
24673         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
24674         Likewise.
24675
24676 2009-05-03  Bruno Haible  <bruno@clisp.org>
24677
24678         * lib/acl-internal.h (acl_entries): Clarify return value.
24679         * lib/acl_entries.c (acl_entries): Likewise.
24680
24681 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24682
24683         Bug fix in acl module.
24684         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
24685
24686 2009-05-03  Bruno Haible  <bruno@clisp.org>
24687
24688         Create gperf-generated file in the source dir, not in the build dir.
24689         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
24690         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
24691         * modules/unicase/locale-language (unicase/locale-languages.h):
24692         Likewise.
24693         * modules/unicase/special-casing (unicase/special-casing-table.h):
24694         Likewise.
24695         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
24696         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
24697         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
24698         Reported by Ralf Wildenhues.
24699
24700 2009-05-03  Bruno Haible  <bruno@clisp.org>
24701
24702         * modules/fnmatch (Description, configure.ac): Taken from
24703         fnmatch-posix.
24704         * modules/fnmatch-posix: Turn into a symbolic reference to the
24705         'fnmatch' module, and deprecate.
24706         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
24707
24708 2009-05-03  Bruno Haible  <bruno@clisp.org>
24709
24710         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
24711         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
24712         Reported by Ralf Wildenhues.
24713
24714 2009-05-04  Simon Josefsson  <simon@josefsson.org>
24715
24716         * m4/fnmatch.m4: Fix fnmatch re-define.
24717
24718 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
24719
24720         priv-set: new module and tests; adapt write-any-file
24721         * lib/priv-set.c: New file.
24722         * lib/priv-set.h: New file.
24723         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
24724         * lib/write-any-file.c: Simplify by using priv-set module.
24725         * m4/priv-set.m4: New file.
24726         * modules/priv-set: New file.
24727         * modules/unlinkdir: Add dependency on priv-set module.
24728         * modules/write-any-file: Likewise.
24729
24730         Tests for module 'priv-set'.
24731         * modules/priv-set-tests: New file.
24732         * tests/test-priv-set.c: New file.
24733
24734 2009-05-03  Jim Meyering  <meyering@redhat.com>
24735             Bruno Haible  <bruno@clisp.org>
24736
24737         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
24738         use the converted UTF-8 variant of the name instead.
24739
24740 2009-05-03  Jim Meyering  <meyering@redhat.com>
24741
24742         tests: tighten some getdate tests
24743         * tests/test-getdate.c (main): Tighten tests: require equality,
24744         not just greater than.  Set TZ envvar to UTC0.
24745
24746 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24747
24748         getdate: correctly interpret "next monday" when run on a Monday
24749         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
24750         that e.g., "next tues" (when run on a tuesday) results in a date
24751         that is one week in the future, and not today's date.
24752         I.e., add a week when the wday is the same as the current one.
24753         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
24754         and earlier by Martin Bernreuther and Jan Minář.
24755         * tests/test-getdate.c (main): Check that "next DAY" is always in
24756         the future and that "last DAY" is always in the past.
24757
24758 2009-05-02  Jim Meyering  <meyering@redhat.com>
24759
24760         build: ensure that a release build fails when a submodule is unclean
24761         * top/maint.mk (no-submodule-changes): New rule.
24762         (alpha beta major): Depend on it.
24763
24764 2009-05-02  Bruno Haible  <bruno@clisp.org>
24765
24766         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
24767         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
24768         shell variable gl_fnmatch_required to detect which variant is
24769         requested.
24770         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
24771         gl_FUNC_FNMATCH_POSIX.
24772         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
24773         exclude fnmatch-posix.
24774
24775 2009-05-02  Bruno Haible  <bruno@clisp.org>
24776
24777         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
24778         * modules/mbsrtowcs (License): Change to LGPLv2+.
24779         * modules/strnlen1 (License): Likewise.
24780         Reported by Simon Josefsson.
24781
24782 2009-05-02  Bruno Haible  <bruno@clisp.org>
24783
24784         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
24785         "cross".
24786         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
24787         gnulib-tool was called with option --source-base=lib.
24788
24789 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24790
24791         Use automake *-local hooks without commands, for extensibility.
24792         * modules/localcharset (Makefile.am): Rename install-exec-local
24793         rule to install-exec-localcharset, and make it a prerequisite of
24794         install-exec-local.  Likewise, rename the uninstall-local rule to
24795         uninstall-localcharset, and make it a prerequisite of the former.
24796
24797 2009-05-01  Bruno Haible  <bruno@clisp.org>
24798
24799         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
24800         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
24801         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
24802         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
24803         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
24804         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
24805         m4/locale-zh.m4, m4/codeset.m4.
24806
24807         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
24808         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
24809         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
24810         m4/locale-zh.m4.
24811
24812         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
24813         REPLACE_WCRTOMB if mbstate_t must be replaced.
24814         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
24815         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
24816
24817 2009-05-01  Bruno Haible  <bruno@clisp.org>
24818
24819         Avoid compiler warnings when redefining macros defined by <libintl.h>.
24820         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
24821         dngettext, dcngettext, textdomain, bindtextdomain,
24822         bind_textdomain_codeset): Undefine before redefining.
24823
24824 2009-04-30  Bruno Haible  <bruno@clisp.org>
24825
24826         Fix bug introduced on 2009-04-25.
24827         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
24828         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
24829         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
24830         is defined.
24831         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
24832         is defined.
24833         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
24834         is defined.
24835         Reported by Elbert_Pol <elbert.pol@gmail.com>.
24836
24837 2009-04-28  Bruno Haible  <bruno@clisp.org>
24838
24839         Comment tweaks.
24840         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
24841         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
24842         * lib/unicase.h (u*_casexfrm): Likewise.
24843         Reported by Paolo Bonzini.
24844
24845 2009-04-28  Bruno Haible  <bruno@clisp.org>
24846
24847         Fix a compilation error.
24848         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
24849         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
24850         Reported by Jim Meyering.
24851
24852 2009-04-27  Bruno Haible  <bruno@clisp.org>
24853
24854         New module 'libunistring'.
24855         * modules/libunistring: New file.
24856         * m4/libunistring.m4: New file.
24857         * MODULES.html.sh (Unicode string functions): Add it.
24858
24859 2009-04-27  Eric Blake  <ebb9@byu.net>
24860
24861         maint.mk: allow package-specific header to provide <config.h>
24862         * top/maint.mk (sc_require_config_h): New variable.
24863         (sc_require_config_h, sc_require_config_h_first): Use it.
24864
24865 2009-04-27  Simon Josefsson  <simon@josefsson.org>
24866
24867         * top/maint.mk (sc_avoid_if_before_free): Except
24868         useless-if-before-free script.
24869
24870 2009-04-27  Eric Blake  <ebb9@byu.net>
24871
24872         maintainer-makefile: depend on all required helper scripts
24873         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
24874         useless-if-before-free.
24875         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
24876         version, rather than assuming gnulib checkout is available.
24877         Reported by Simen Josefsson.
24878
24879 2009-04-26  Bruno Haible  <bruno@clisp.org>
24880
24881         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
24882         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
24883         "../" or "..".
24884
24885 2009-04-26  Bruno Haible  <bruno@clisp.org>
24886
24887         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
24888         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
24889         AC_LIB_HAVE_LINKFLAGS.
24890
24891 2009-04-26  Bruno Haible  <bruno@clisp.org>
24892
24893         Simplify calling convention of u*_conv_from_encoding.
24894         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
24895         u32_conv_from_encoding): Expect a resultbuf argument and return the
24896         result directly as a pointer.
24897         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
24898         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
24899         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
24900         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
24901         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
24902         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
24903         Update.
24904         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
24905         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
24906         * lib/vasnprintf.c (VASNPRINTF): Update.
24907         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
24908         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
24909         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
24910         * NEWS: Mention the change.
24911
24912 2009-04-26  Bruno Haible  <bruno@clisp.org>
24913
24914         Simplify calling convention of u*_conv_to_encoding.
24915         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
24916         u32_conv_to_encoding): Expect a resultbuf argument and return the
24917         result directly as a pointer.
24918         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24919         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
24920         freeing scaled_offsets if mem_iconveha failed.
24921         * lib/unicase/u-casexfrm.h (FUNC): Update.
24922         * lib/uninorm/u-normxfrm.h (FUNC): Update.
24923         * lib/vasnprintf.c (VASNPRINTF): Update.
24924         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
24925         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
24926         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
24927         * NEWS: Mention the change.
24928
24929 2009-04-26  Bruno Haible  <bruno@clisp.org>
24930
24931         Avoid test failures on AIX and OSF/1.
24932         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
24933         malloc(0).
24934         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
24935         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
24936         Likewise.
24937         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
24938         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
24939         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
24940         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
24941         * doc/posix-functions/malloc.texi: Document the portability problem
24942         related to malloc(0).
24943
24944 2009-04-26  Bruno Haible  <bruno@clisp.org>
24945
24946         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
24947         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
24948         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
24949
24950 2009-04-25  Bruno Haible  <bruno@clisp.org>
24951
24952         Avoid link error when creating a namespace clean library.
24953         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
24954         as macro with arguments if already defined as an alias.
24955         * lib/signbitf.c (gl_signbitf): Don't undefine.
24956         * lib/signbitd.c (gl_signbitd): Don't undefine.
24957         * lib/signbitl.c (gl_signbitl): Don't undefine.
24958
24959 2009-04-25  Jim Meyering  <meyering@redhat.com>
24960
24961         vc-list-files: fix another quoting bug
24962         * build-aux/vc-list-files: Avoid sed backslash expansion
24963         of pathological directory names.
24964
24965 2009-04-25  Eric Blake  <ebb9@byu.net>
24966
24967         vc-list-files: fix shell quoting error
24968         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
24969         timestamp.
24970
24971 2009-04-25  Jim Meyering  <meyering@redhat.com>
24972
24973         vc-list-files: restore lost functionality with subdir argument
24974         * build-aux/vc-list-files: When given a non-"." sub-directory
24975         argument, substitute the $dir/ prefix back onto each resulting name.
24976         Otherwise, coreutils' root_tests check would fail.
24977
24978 2009-04-24  Eric Blake  <ebb9@byu.net>
24979
24980         vc-list-files: ignore git symlinks
24981         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
24982         than ls-files, to ignore git symlinks.
24983
24984         maint.mk: import improvements from m4
24985         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
24986         (move_if_change): Delete unused macro.
24987         (news-date-check, vc-diff-check): Support VPATH builds.
24988         (announcement): Likewise.  Split --bootstrap-tools list...
24989         (boostrap-tools): ...into separate list, which can be overridden
24990         in cfg.mk.
24991         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
24992         requiring dependency on useless-if-before-free module.
24993         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
24994         Support VPATH builds.
24995
24996 2009-04-24  Jim Meyering  <meyering@redhat.com>
24997
24998         maint.mk: remove coreutils-specific rules and variables
24999         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
25000         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
25001         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
25002
25003         maint.mk: remove obsolete rule
25004         * top/maint.mk (rel-check): Remove rule.
25005         (WGET, WGETFLAGS): Remove now-unused variables.
25006
25007 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25008
25009         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
25010         consistency.
25011
25012         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
25013         '$(PATH_SEPARATOR)' instead of ':'.
25014
25015 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25016
25017         * lib/getopt1.c (main): Use 'const' for static array.
25018
25019 2009-04-24  Simon Josefsson  <simon@josefsson.org>
25020
25021         * top/maint.mk: Sync with coreutils.
25022         * NEWS: Explain incompatibilities.
25023
25024 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25025             Bruno Haible  <bruno@clisp.org>
25026
25027         Fix cross-compilation results.
25028         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
25029         statement, as third argument of AC_TRY_RUN.
25030         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25031         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25032         Likewise.
25033         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25034         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25035         Likewise.
25036         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25037         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
25038         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
25039
25040 2009-04-20  Bruno Haible  <bruno@clisp.org>
25041
25042         Avoid test failure on mingw.
25043         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
25044
25045 2009-04-20  Bruno Haible  <bruno@clisp.org>
25046
25047         Avoid compilation error on mingw.
25048         * modules/localename-tests (Depends-on): Add locale.
25049
25050 2009-04-19  Bruno Haible  <bruno@clisp.org>
25051
25052         Support for building a shared library on Windows platforms.
25053         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
25054         (main): Test the presence of UNINORM_NFC here.
25055         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
25056         (main): Test the presence of UNINORM_NFD here.
25057         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
25058         (main): Test the presence of UNINORM_NFKC here.
25059         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
25060         (main): Test the presence of UNINORM_NFKD here.
25061
25062 2009-04-19  Bruno Haible  <bruno@clisp.org>
25063
25064         Avoid a compiler warning.
25065         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
25066         Change type of variable 'sequence'.
25067
25068 2009-04-19  Bruno Haible  <bruno@clisp.org>
25069
25070         * modules/configmake (Makefile.am): When the contents of configmake.h
25071         does not change, arrange to preserve its modification time.
25072
25073 2009-04-17  Simon Josefsson  <simon@josefsson.org>
25074
25075         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
25076         gettext domain.
25077
25078 2009-04-16  Jim Meyering  <meyering@redhat.com>
25079
25080         useless-if-before-free: improve conversion code
25081         * build-aux/useless-if-before-free: Adjust code-in-comment to match
25082         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
25083
25084 2009-04-14  Bruno Haible  <bruno@clisp.org>
25085
25086         * modules/fcntl (Depends-on): Add extensions.
25087         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
25088
25089 2009-04-12  Ben Pfaff  <blp@gnu.org>
25090
25091         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
25092         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
25093
25094 2009-03-20  Ben Pfaff  <blp@gnu.org>
25095
25096         Make rename replace existing destinations on Windows.
25097         * m4/rename.m4: Add test for Mingw.
25098         * lib/rename.c: Add rename replacement that uses MoveFileEx with
25099         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
25100         * doc/posix-functions/rename.texi: Document.
25101
25102 2009-04-10  Bruno Haible  <bruno@clisp.org>
25103
25104         New include file "iconveh.h".
25105         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
25106         * lib/striconveh.h: Include it.
25107         (enum iconv_ilseq_handler): Remove definition.
25108         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
25109         striconveh.h.
25110         * lib/striconveha.c: Include striconveh.h.
25111         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
25112         * modules/striconveh (Files): Add lib/iconveh.h.
25113         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
25114         lib/striconveh.h.
25115
25116 2009-04-10  Bruno Haible  <bruno@clisp.org>
25117
25118         * lib/uniconv.h: Update comment.
25119
25120 2009-04-10  Bruno Haible  <bruno@clisp.org>
25121
25122         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
25123         always.
25124         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
25125         * lib/unistr/u16-mbtouc-aux.c: Likewise.
25126         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
25127         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
25128         "unistring-notinline.h", so that the function gets defined always.
25129         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
25130         * lib/unistr/u8-uctomb.c: Likewise.
25131         * lib/unistr/u16-mbtouc.c: Likewise.
25132         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
25133         * lib/unistr/u16-uctomb.c: Likewise.
25134         * lib/unistr/u32-mbtouc.c: Likewise.
25135         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
25136         * lib/unistr/u32-uctomb.c: Likewise.
25137
25138 2009-04-10  Bruno Haible  <bruno@clisp.org>
25139
25140         Mark 'utime' obsolete.
25141         * modules/utime (Status, Notice): New sections.
25142         Suggested by Jim Meyering.
25143
25144         Fix cross-compile guess for utime test.
25145         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
25146         autoconf.
25147         * doc/posix-functions/utime.texi: Give more precisions.
25148         Reported by Jan <ipif@ymail.com>.
25149
25150 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
25151
25152         filevercmp: correct today's change
25153         * lib/filevercmp.c: Also handle coreutils' test inputs.
25154         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
25155
25156         Fix regression in 'filevercmp' module. Thanks Sven Joachim
25157         for reporting it.
25158         * lib/filevercmp.c: Special handle for "", "." and "..".
25159         * tests/test-filevercmp.c: Enlarge the set suite.
25160
25161 2009-04-07  Jim Meyering  <meyering@redhat.com>
25162
25163         useless-if-before-free: show how to remove braced useless free, too
25164         * build-aux/useless-if-before-free: still only in a comment, though.
25165
25166 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
25167
25168         maint.mk: import changes to syntax-check macros from coreutils
25169         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
25170         Use them in the relevant macros.
25171
25172 2009-04-06  Bruno Haible  <bruno@clisp.org>
25173
25174         Fix unportable use of bit-fields.
25175         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
25176         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
25177         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
25178
25179 2009-04-06  Bruno Haible  <bruno@clisp.org>
25180
25181         Avoid test failures on AIX and OSF/1.
25182         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
25183         that malloc(0) = NULL.
25184         * tests/unicase/test-u8-tolower.c (check): Likewise.
25185         * tests/unicase/test-u8-totitle.c (check): Likewise.
25186         * tests/unicase/test-u8-toupper.c (check): Likewise.
25187         * tests/unicase/test-u16-casefold.c (check): Likewise.
25188         * tests/unicase/test-u16-tolower.c (check): Likewise.
25189         * tests/unicase/test-u16-totitle.c (check): Likewise.
25190         * tests/unicase/test-u16-toupper.c (check): Likewise.
25191         * tests/unicase/test-u32-casefold.c (check): Likewise.
25192         * tests/unicase/test-u32-tolower.c (check): Likewise.
25193         * tests/unicase/test-u32-totitle.c (check): Likewise.
25194         * tests/unicase/test-u32-toupper.c (check): Likewise.
25195         * tests/uninorm/test-u8-nfc.c (check): Likewise.
25196         * tests/uninorm/test-u8-nfd.c (check): Likewise.
25197         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
25198         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
25199         * tests/uninorm/test-u16-nfc.c (check): Likewise.
25200         * tests/uninorm/test-u16-nfd.c (check): Likewise.
25201         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
25202         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
25203         * tests/uninorm/test-u32-nfc.c (check): Likewise.
25204         * tests/uninorm/test-u32-nfd.c (check): Likewise.
25205         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
25206         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
25207
25208 2009-04-05  Bruno Haible  <bruno@clisp.org>
25209
25210         Work around an autoconf limitation.
25211         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
25212         comment line if it would be longer than 3 KB.
25213
25214 2009-04-05  Bruno Haible  <bruno@clisp.org>
25215
25216         Avoid test failure with libiconv-1.13.
25217         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
25218         of the expected test results.
25219
25220 2009-04-05  Bruno Haible  <bruno@clisp.org>
25221
25222         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
25223         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
25224         that it should be installed.
25225
25226 2009-04-05  Bruno Haible  <bruno@clisp.org>
25227
25228         * gnulib-tool: New option --copy-file.
25229         (func_usage): Document it.
25230         (func_dest_tmpfilename): Moved out of func_import.
25231         (func_add_file, func_update_file): New functions, extracted from
25232         func_import.
25233         (func_import): Update.
25234
25235 2009-04-05  Karl Berry  <karl@gnu.org>
25236
25237         * README: prominently mention gnulib-tool.
25238         Rearrange sections so getting the code is near the top.
25239
25240 2009-04-05  Bruno Haible  <bruno@clisp.org>
25241
25242         * lib/unicase.h: Mention u*_cmp2.
25243         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
25244         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
25245         * lib/unicase/ulc-casecmp.c: Likewise.
25246         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
25247         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
25248         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
25249         unistr/u8-cmp.
25250         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
25251         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
25252         unistr/u16-cmp.
25253         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
25254         unistr/u32-cmp.
25255
25256         * lib/uninorm.h: Mention u*_cmp2.
25257         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
25258         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
25259         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
25260         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
25261         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
25262         unistr/u8-cmp.
25263         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
25264         unistr/u16-cmp.
25265         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
25266         unistr/u32-cmp.
25267
25268         New module 'unistr/u32-cmp2'.
25269         * lib/unistr/u32-cmp2.c: New file.
25270         * modules/unistr/u32-cmp2: New file.
25271
25272         New module 'unistr/u16-cmp2'.
25273         * lib/unistr/u16-cmp2.c: New file.
25274         * modules/unistr/u16-cmp2: New file.
25275
25276         New module 'unistr/u8-cmp2'.
25277         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
25278         * lib/unistr/u8-cmp2.c: New file.
25279         * lib/unistr/u-cmp2.h: New file.
25280         * modules/unistr/u8-cmp2: New file.
25281
25282 2009-04-05  Bruno Haible  <bruno@clisp.org>
25283
25284         * lib/unictype.h (uc_property_is_valid): New macro.
25285         * tests/unictype/test-pr_byname.c (main): Use it.
25286
25287         * lib/unistr.h: Doc fixes.
25288         * lib/uniconv.h: Doc fixes.
25289         * lib/unictype.h: Doc fixes.
25290
25291 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
25292
25293         Port coreutils 7.2 to Solaris 8.
25294
25295         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
25296         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
25297         for Solaris 8.  This is a bit of a hack, as it means it's the
25298         caller's responsibility to add -lnsl if needed, but most likely it
25299         won't be needed since only getaddrinfo uses this and getaddrinfo
25300         isn't needed on Solaris 8.
25301
25302         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
25303         problem to Solaris 8 encountered with coreutils 7.2, which
25304         resulted in a message "fnmatch.c:292: warning: passing argument 4
25305         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
25306         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
25307
25308 2009-04-03  Simon Josefsson  <simon@josefsson.org>
25309
25310         * m4/ld-version-script.m4: Add FIXME comment.
25311
25312 2009-04-02  Simon Josefsson  <simon@josefsson.org>
25313
25314         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
25315         SOVERSION variable.
25316
25317 2009-04-02  Bruno Haible  <bruno@clisp.org>
25318
25319         * Makefile (info, html, dvi, pdf): Combine the rules.
25320         Suggested by Jim Meyering.
25321
25322 2009-04-01  Bruno Haible  <bruno@clisp.org>
25323
25324         * Makefile (info, html, dvi, pdf): New targets.
25325         Reported by Reuben Thomas <rrt@sc3d.org>.
25326
25327 2009-04-01  Bruno Haible  <bruno@clisp.org>
25328
25329         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
25330         can be put into PATH.
25331         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
25332
25333 2009-04-01  Bruno Haible  <bruno@clisp.org>
25334
25335         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
25336
25337 2009-04-01  Bruno Haible  <bruno@clisp.org>
25338
25339         Rename module 'visibility'.
25340         * modules/lib-symbol-visibility: Renamed from modules/visibility.
25341         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
25342         * doc/gnulib.texi: Update.
25343         * MODULES.html.sh (Misc): Update.
25344         * NEWS: Mention the change.
25345
25346 2009-04-01  Simon Josefsson  <simon@josefsson.org>
25347
25348         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
25349         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
25350         Eric Blake <ebb9@byu.net> for review.
25351         * MODULES.html.sh: Add lib-msvc-compat.
25352         * doc/gnulib.texi: Link to new section.
25353         * m4/ld-output-def.m4: New file.
25354         * doc/ld-output-def.texi: New file.
25355
25356 2009-04-01  Simon Josefsson  <simon@josefsson.org>
25357
25358         Rename ld-version-script to lib-symbol-versions.  Suggested by
25359         Bruno Haible <bruno@clisp.org>.
25360         * modules/ld-version-script: Renamed to lib-symbol-versions.
25361         * doc/ld-version-script.texi: Fix module name.
25362         * MODULES.html.sh: Add lib-symbol-versions.
25363
25364 2009-03-31  Simon Josefsson  <simon@josefsson.org>
25365
25366         * modules/u64-tests: New file.
25367         * tests/test-u64.c: New file.
25368
25369 2009-03-04  Simon Josefsson  <simon@josefsson.org>
25370
25371         * MODULES.html.sh: Mention u64.
25372         * modules/u64: New module.
25373         * modules/crypto/sha512: Depend on u64 module instead of providing
25374         u64.h.
25375
25376 2009-03-27  Eric Blake  <ebb9@byu.net>
25377
25378         test-strerror: make debugging EAI_SYSTEM easier
25379         * modules/getaddrinfo-tests (Depends-on): Add strerror.
25380         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
25381         failure was EAI_SYSTEM.
25382
25383 2009-03-25  Bruno Haible  <bruno@clisp.org>
25384
25385         Fix a problem with --enable-relocatable on Solaris 7.
25386         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
25387         since 2008-02-24.
25388
25389 2009-03-25  Eric Blake  <ebb9@byu.net>
25390
25391         test-sockets: avoid gcc warning
25392         * tests/test-sockets.c (main): Silence compiler warning.
25393
25394 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25395
25396         New modules nproc, pthread, contributed by Glen Lenker.
25397
25398         * MODULES.html.sh: Add pthread, nproc.
25399         * lib/nproc.c: New file.
25400         * lib/nproc.h: New file.
25401         * lib/pthread.in.h: New file.
25402         * m4/pthread.m4: New file.
25403         * modules/nproc: New file.
25404         * modules/pthread: New file.
25405
25406 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25407
25408         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
25409         New variable.
25410
25411 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
25412
25413         filevercmp: handle simple~ and numbered.~3~ backup suffixes
25414         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
25415         * tests/test-filevercmp.c: Add tests for backup suffixes.
25416
25417 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25418
25419         * modules/stdlib (Depends-on): Add stdint, needed when defining
25420         struct random_data on, for example, HP-UX 10.20.  Reported by
25421         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25422
25423 2009-03-24  Simon Josefsson  <simon@josefsson.org>
25424
25425         * lib/readline.c (readline): Call fflush on stdout after printing
25426         prompt.
25427
25428 2009-03-20  Bruno Haible  <bruno@clisp.org>
25429
25430         Remove dependency from 'close' module to -lws2_32 on native Windows.
25431         * lib/close-hook.h: New file.
25432         * lib/close-hook.c: New file.
25433         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
25434         w32sock.h.
25435         (_gl_close_fd_maybe_socket): Remove function.
25436         (rpl_close): Invoke execute_all_close_hooks instead of
25437         _gl_close_fd_maybe_socket.
25438         * lib/sockets.c: Include close-hook.h, w32sock.h.
25439         (close_fd_maybe_socket): New function, essentially from lib/close.c.
25440         (close_sockets_hook): New variable.
25441         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
25442         (gl_sockets_cleanup): Unregister it.
25443         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
25444         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
25445         * modules/close-hook: New file.
25446         * modules/close (Files): Remove lib/w32sock.h.
25447         (Depends-on): Add close-hook.
25448         (Link): Remove section.
25449         * modules/sockets (Files): Add lib/w32sock.h.
25450         (Depends-on): Add close-hook.
25451         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
25452         invocation.
25453         * NEWS: Mention that LIB_CLOSE is gone.
25454
25455 2009-03-23  Eric Blake  <ebb9@byu.net>
25456
25457         signal-tests: test previous patch
25458         * tests/test-signal.c: New file.
25459         * modules/signal-tests: Likewise.
25460
25461         signal.h: always support 'volatile sig_atomic_t'
25462         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
25463         (gl_SIGNAL_H_DEFAULTS): Add a default.
25464         * modules/signal (Makefile.am): Substitute if needed.
25465         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
25466         users can blindly add volatile.
25467         * doc/posix-headers/signal.texi (signal.h): Document it.
25468         Reported by Matthew Woehlke.
25469
25470 2009-03-23  Jim Meyering  <meyering@redhat.com>
25471
25472         pathmax: PATH_MAX: use pathconf only when available
25473         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
25474         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
25475         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
25476         This avoids a link failure in a PSP cross-compilation environment
25477         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
25478
25479         * lib/vasnprintf.c (divide): Fix typo in comment.
25480
25481 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25482
25483         * gnulib-tool (func_filter_filelist): Fix comment.
25484
25485 2009-03-20  Bruno Haible  <bruno@clisp.org>
25486
25487         Make sockets.h self-contained.
25488         * lib/sockets.c: Include sockets.h first.
25489         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
25490
25491 2009-03-19  Eric Blake  <ebb9@byu.net>
25492
25493         doc: mention more functions added in cygwin 1.7.0
25494         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
25495         addition.
25496         * doc/posix-functions/log2f.texi: Likewise.
25497
25498 2009-03-19  Jim Meyering  <meyering@redhat.com>
25499
25500         fsusage: avoid syntax error due to statement-before-declaration
25501         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
25502         after all declarations.  Reported by Matthew Woehlke in
25503         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
25504
25505 2009-03-18  Eric Blake  <ebb9@byu.net>
25506
25507         build-aux/compile: sync from automake
25508         * build-aux/compile: New file, from automake.
25509         * config/srclist.txt: Mention build-aux/compile.
25510
25511 2009-03-17  Bruno Haible  <bruno@clisp.org>
25512
25513         * lib/git-merge-changelog.c: Fix typo in comment.
25514         Reported by Reuben Thomas <rrt@sc3d.org>.
25515
25516 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
25517
25518         * m4/regex.m4: update and improve help for
25519         --without-included-regex.
25520
25521 2009-03-17  Simon Josefsson  <simon@josefsson.org>
25522
25523         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
25524         failure on missing include files.
25525
25526 2009-03-17  Eric Blake  <ebb9@byu.net>
25527
25528         doc: mention more functions added in cygwin 1.7.0
25529         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
25530         addition.
25531         * doc/posix-functions/fwscanf.texi: Likewise.
25532         * doc/posix-functions/swprintf.texi: Likewise.
25533         * doc/posix-functions/swscanf.texi: Likewise.
25534         * doc/posix-functions/vfwprintf.texi: Likewise.
25535         * doc/posix-functions/vfwscanf.texi: Likewise.
25536         * doc/posix-functions/vswprintf.texi: Likewise.
25537         * doc/posix-functions/vswscanf.texi: Likewise.
25538         * doc/posix-functions/vwprintf.texi: Likewise.
25539         * doc/posix-functions/vwscanf.texi: Likewise.
25540         * doc/posix-functions/wcscasecmp.texi: Likewise.
25541         * doc/posix-functions/wcsdup.texi: Likewise.
25542         * doc/posix-functions/wcsftime.texi: Likewise.
25543         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25544         * doc/posix-functions/wprintf.texi: Likewise.
25545         * doc/posix-functions/wscanf.texi: Likewise.
25546         * doc/glibc-functions/gethostbyname2.texi: Likewise.
25547
25548 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25549
25550         maint.mk: really add $(AM_MAKEFLAGS)
25551         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
25552         was inadvertently omitted in the last commit.
25553         Spotted by Bruno Haible.
25554
25555         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
25556         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
25557         $(AM_MAKEFLAGS)' rather than plain `make'.
25558
25559         gnulib-tool: execute $MAKE not make
25560         * gnulib-tool: Default $MAKE to 'make'.
25561         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
25562         than make.  Initialize $MAKE in the do-autobuild script.
25563
25564         gnulib-tool: use $MAKE not make in generated files
25565         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
25566         make, in generated files.  Initialize $MAKE in the do-autobuild
25567         script.
25568
25569         * top/GNUmakefile (_have-git-version-gen): Fix typo.
25570
25571         GNUmakefile: disable parallelism only for multiple, recursive targets
25572         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
25573         additions in the Makefile.
25574         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
25575         by Automake.
25576         (.NOTPARALLEL): Only disable parallel builds if multiple targets
25577         are listed on the command line and at least one of them is
25578         listed in $(ALL_RECURSIVE_TARGETS).
25579
25580 2009-03-14  Bruno Haible  <bruno@clisp.org>
25581
25582         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
25583         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
25584         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
25585         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
25586         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
25587         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
25588         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
25589         unistr/u8-uctomb.
25590         * modules/unistr/u8-strchr (Depends-on): Likewise.
25591         * modules/unistr/u8-strrchr (Depends-on): Likewise.
25592         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
25593         unistr/u16-uctomb.
25594         * modules/unistr/u16-strchr (Depends-on): Likewise.
25595         * modules/unistr/u16-strrchr (Depends-on): Likewise.
25596
25597 2009-03-12  Bruno Haible  <bruno@clisp.org>
25598
25599         Work around select() bug on Interix 3.5.
25600         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
25601         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
25602         * m4/select.m4: New file.
25603         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
25604         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
25605         * modules/select (Files): Add m4/select.m4.
25606         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
25607         * modules/nanosleep (Depends-on): Add select.
25608         * modules/poll (Depends-on): Likewise.
25609         * doc/posix-functions/select.texi: Mention the Interix bug.
25610         Reported by Markus Duft <mduft@gentoo.org>.
25611
25612         * lib/select.c: Renamed from lib/winsock-select.c.
25613         * modules/select (Files): Add lib/select.c, remove
25614         lib/winsock-select.c.
25615         (configure.ac): Update.
25616
25617 2009-03-12  Jim Meyering  <meyering@redhat.com>
25618
25619         avoid gcc warnings about unused macro definitions
25620         * lib/readtokens.c (STREQ): Remove unused definition.
25621         * lib/xmalloc.c (SIZE_MAX): Likewise.
25622         * lib/openat-die.c (N_): Likewise.
25623         * lib/mountlist.c (SIZE_MAX): Remove definition.
25624         Instead, include <stdint.h>.
25625         * lib/readutmp.c: Likewise.
25626         * modules/readutmp (Depends-on): Add stdint.
25627         * modules/mountlist (Depends-on): Add stdint.
25628         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
25629
25630 2009-03-10  Bruno Haible  <bruno@clisp.org>
25631
25632         Tests for module 'mbmemcasecoll'.
25633         * modules/mbmemcasecoll-tests: New file.
25634         * tests/test-mbmemcasecoll1.sh: New file.
25635         * tests/test-mbmemcasecoll2.sh: New file.
25636         * tests/test-mbmemcasecoll3.sh: New file.
25637         * tests/test-mbmemcasecoll.c: New file.
25638
25639         New module 'mbmemcasecoll'.
25640         * lib/mbmemcasecoll.h: New file.
25641         * lib/mbmemcasecoll.c: New file.
25642         * modules/mbmemcasecoll: New file.
25643
25644         * tests/test-mbmemcasecmp.h: New file, extracted from
25645         tests/test-mbmemcasecmp.c.
25646         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
25647         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
25648         (main): Update.
25649         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
25650
25651 2009-03-09  Bruno Haible  <bruno@clisp.org>
25652
25653         Tests for module 'mbmemcasecmp'.
25654         * modules/mbmemcasecmp-tests: New file.
25655         * tests/test-mbmemcasecmp1.sh: New file.
25656         * tests/test-mbmemcasecmp2.sh: New file.
25657         * tests/test-mbmemcasecmp3.sh: New file.
25658         * tests/test-mbmemcasecmp.c: New file.
25659
25660         New module 'mbmemcasecmp'.
25661         * lib/mbmemcasecmp.h: New file.
25662         * lib/mbmemcasecmp.c: New file.
25663         * modules/mbmemcasecmp: New file.
25664
25665 2009-03-09  Bruno Haible  <bruno@clisp.org>
25666
25667         Tests for module 'unicase/ulc-casecoll'.
25668         * modules/unicase/ulc-casecoll-tests: New file.
25669         * tests/unicase/test-ulc-casecoll1.sh: New file.
25670         * tests/unicase/test-ulc-casecoll2.sh: New file.
25671         * tests/unicase/test-ulc-casecoll.c: New file.
25672
25673         New module 'unicase/ulc-casecoll'.
25674         * lib/unicase.h (ulc_casecoll): New declaration.
25675         * lib/unicase/ulc-casecoll.c: New file.
25676         * modules/unicase/ulc-casecoll: New file.
25677
25678         New module 'unicase/ulc-casexfrm'.
25679         * lib/unicase.h (ulc_casexfrm): New declaration.
25680         * lib/unicase/ulc-casexfrm.c: New file.
25681         * modules/unicase/ulc-casexfrm: New file.
25682
25683 2009-03-09  Bruno Haible  <bruno@clisp.org>
25684
25685         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
25686         invocations.
25687
25688         * m4/mbscasecmp.m4: Remove file.
25689         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
25690         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
25691
25692         * m4/mbscasestr.m4: Remove file.
25693         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
25694         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
25695
25696         * m4/mbschr.m4: Remove file.
25697         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
25698         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
25699
25700         * m4/mbscspn.m4: Remove file.
25701         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
25702         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
25703
25704         * m4/mbslen.m4: Remove file.
25705         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
25706         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
25707
25708         * m4/mbsncasecmp.m4: Remove file.
25709         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
25710         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
25711
25712         * m4/mbsnlen.m4: Remove file.
25713         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
25714         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
25715
25716         * m4/mbspbrk.m4: Remove file.
25717         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
25718         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
25719
25720         * m4/mbspcasecmp.m4: Remove file.
25721         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
25722         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
25723
25724         * m4/mbsrchr.m4: Remove file.
25725         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
25726         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
25727
25728         * m4/mbssep.m4: Remove file.
25729         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
25730         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
25731
25732         * m4/mbsspn.m4: Remove file.
25733         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
25734         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
25735
25736         * m4/mbsstr.m4: Remove file.
25737         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
25738         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
25739
25740         * m4/mbstok_r.m4: Remove file.
25741         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
25742         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
25743
25744         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
25745
25746         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
25747         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
25748
25749         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
25750
25751 2009-03-08  Bruno Haible  <bruno@clisp.org>
25752
25753         Tests for module 'unicase/ulc-casecmp'.
25754         * modules/unicase/ulc-casecmp-tests: New file.
25755         * tests/unicase/test-ulc-casecmp1.sh: New file.
25756         * tests/unicase/test-ulc-casecmp2.sh: New file.
25757         * tests/unicase/test-ulc-casecmp.c: New file.
25758
25759         New module 'unicase/ulc-casecmp'.
25760         * lib/unicase.h (ulc_casecmp): New declaration.
25761         * lib/unicase/ulc-casecmp.c: New file.
25762         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
25763         'const SRC_UNIT *'.
25764         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
25765         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
25766         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
25767         * modules/unicase/ulc-casecmp: New file.
25768
25769         Tests for module 'unicase/u32-is-cased'.
25770         * modules/unicase/u32-is-cased-tests: New file.
25771         * tests/unicase/test-u32-is-cased.c: New file.
25772
25773         Tests for module 'unicase/u16-is-cased'.
25774         * modules/unicase/u16-is-cased-tests: New file.
25775         * tests/unicase/test-u16-is-cased.c: New file.
25776
25777         Tests for module 'unicase/u8-is-cased'.
25778         * modules/unicase/u8-is-cased-tests: New file.
25779         * tests/unicase/test-u8-is-cased.c: New file.
25780         * tests/unicase/test-is-cased.h: New file.
25781
25782         New module 'unicase/u32-is-cased'.
25783         * lib/unicase/u32-is-cased.c: New file.
25784         * modules/unicase/u32-is-cased: New file.
25785
25786         New module 'unicase/u16-is-cased'.
25787         * lib/unicase/u16-is-cased.c: New file.
25788         * modules/unicase/u16-is-cased: New file.
25789
25790         New module 'unicase/u8-is-cased'.
25791         * lib/unicase/u8-is-cased.c: New file.
25792         * lib/unicase/u-is-cased.h: New file.
25793         * modules/unicase/u8-is-cased: New file.
25794
25795         Tests for module 'unicase/u32-is-casefolded'.
25796         * modules/unicase/u32-is-casefolded-tests: New file.
25797         * tests/unicase/test-u32-is-casefolded.c: New file.
25798
25799         Tests for module 'unicase/u16-is-casefolded'.
25800         * modules/unicase/u16-is-casefolded-tests: New file.
25801         * tests/unicase/test-u16-is-casefolded.c: New file.
25802
25803         Tests for module 'unicase/u8-is-casefolded'.
25804         * modules/unicase/u8-is-casefolded-tests: New file.
25805         * tests/unicase/test-u8-is-casefolded.c: New file.
25806         * tests/unicase/test-is-casefolded.h: New file.
25807
25808         New module 'unicase/u32-is-casefolded'.
25809         * lib/unicase/u32-is-casefolded.c: New file.
25810         * modules/unicase/u32-is-casefolded: New file.
25811
25812         New module 'unicase/u16-is-casefolded'.
25813         * lib/unicase/u16-is-casefolded.c: New file.
25814         * modules/unicase/u16-is-casefolded: New file.
25815
25816         New module 'unicase/u8-is-casefolded'.
25817         * lib/unicase/u8-is-casefolded.c: New file.
25818         * modules/unicase/u8-is-casefolded: New file.
25819
25820         Tests for module 'unicase/u32-is-titlecase'.
25821         * modules/unicase/u32-is-titlecase-tests: New file.
25822         * tests/unicase/test-u32-is-titlecase.c: New file.
25823
25824         Tests for module 'unicase/u16-is-titlecase'.
25825         * modules/unicase/u16-is-titlecase-tests: New file.
25826         * tests/unicase/test-u16-is-titlecase.c: New file.
25827
25828         Tests for module 'unicase/u8-is-titlecase'.
25829         * modules/unicase/u8-is-titlecase-tests: New file.
25830         * tests/unicase/test-u8-is-titlecase.c: New file.
25831         * tests/unicase/test-is-titlecase.h: New file.
25832
25833         New module 'unicase/u32-is-titlecase'.
25834         * lib/unicase/u32-is-titlecase.c: New file.
25835         * modules/unicase/u32-is-titlecase: New file.
25836
25837         New module 'unicase/u16-is-titlecase'.
25838         * lib/unicase/u16-is-titlecase.c: New file.
25839         * modules/unicase/u16-is-titlecase: New file.
25840
25841         New module 'unicase/u8-is-titlecase'.
25842         * lib/unicase/u8-is-titlecase.c: New file.
25843         * modules/unicase/u8-is-titlecase: New file.
25844
25845         Tests for module 'unicase/u32-is-lowercase'.
25846         * modules/unicase/u32-is-lowercase-tests: New file.
25847         * tests/unicase/test-u32-is-lowercase.c: New file.
25848
25849         Tests for module 'unicase/u16-is-lowercase'.
25850         * modules/unicase/u16-is-lowercase-tests: New file.
25851         * tests/unicase/test-u16-is-lowercase.c: New file.
25852
25853         Tests for module 'unicase/u8-is-lowercase'.
25854         * modules/unicase/u8-is-lowercase-tests: New file.
25855         * tests/unicase/test-u8-is-lowercase.c: New file.
25856         * tests/unicase/test-is-lowercase.h: New file.
25857
25858         New module 'unicase/u32-is-lowercase'.
25859         * lib/unicase/u32-is-lowercase.c: New file.
25860         * modules/unicase/u32-is-lowercase: New file.
25861
25862         New module 'unicase/u16-is-lowercase'.
25863         * lib/unicase/u16-is-lowercase.c: New file.
25864         * modules/unicase/u16-is-lowercase: New file.
25865
25866         New module 'unicase/u8-is-lowercase'.
25867         * lib/unicase/u8-is-lowercase.c: New file.
25868         * modules/unicase/u8-is-lowercase: New file.
25869
25870         Tests for module 'unicase/u32-is-uppercase'.
25871         * modules/unicase/u32-is-uppercase-tests: New file.
25872         * tests/unicase/test-u32-is-uppercase.c: New file.
25873
25874         Tests for module 'unicase/u16-is-uppercase'.
25875         * modules/unicase/u16-is-uppercase-tests: New file.
25876         * tests/unicase/test-u16-is-uppercase.c: New file.
25877
25878         Tests for module 'unicase/u8-is-uppercase'.
25879         * modules/unicase/u8-is-uppercase-tests: New file.
25880         * tests/unicase/test-u8-is-uppercase.c: New file.
25881         * tests/unicase/test-is-uppercase.h: New file.
25882
25883         New module 'unicase/u32-is-uppercase'.
25884         * lib/unicase/u32-is-uppercase.c: New file.
25885         * modules/unicase/u32-is-uppercase: New file.
25886
25887         New module 'unicase/u16-is-uppercase'.
25888         * lib/unicase/u16-is-uppercase.c: New file.
25889         * modules/unicase/u16-is-uppercase: New file.
25890
25891         New module 'unicase/u8-is-uppercase'.
25892         * lib/unicase/u8-is-uppercase.c: New file.
25893         * modules/unicase/u8-is-uppercase: New file.
25894
25895         New module 'unicase/u32-is-invariant'.
25896         * lib/unicase/u32-is-invariant.c: New file.
25897         * modules/unicase/u32-is-invariant: New file.
25898
25899         New module 'unicase/u16-is-invariant'.
25900         * lib/unicase/u16-is-invariant.c: New file.
25901         * modules/unicase/u16-is-invariant: New file.
25902
25903         New module 'unicase/u8-is-invariant'.
25904         * lib/unicase/u8-is-invariant.c: New file.
25905         * lib/unicase/invariant.h: New file.
25906         * lib/unicase/u-is-invariant.h: New file.
25907         * modules/unicase/u8-is-invariant: New file.
25908
25909         Tests for module 'unicase/u32-casecoll'.
25910         * modules/unicase/u32-casecoll-tests: New file.
25911         * tests/unicase/test-u32-casecoll.c: New file.
25912
25913         Tests for module 'unicase/u16-casecoll'.
25914         * modules/unicase/u16-casecoll-tests: New file.
25915         * tests/unicase/test-u16-casecoll.c: New file.
25916
25917         Tests for module 'unicase/u8-casecoll'.
25918         * modules/unicase/u8-casecoll-tests: New file.
25919         * tests/unicase/test-u8-casecoll.c: New file.
25920
25921         New module 'unicase/u32-casecoll'.
25922         * lib/unicase/u32-casecoll.c: New file.
25923         * modules/unicase/u32-casecoll: New file.
25924
25925         New module 'unicase/u16-casecoll'.
25926         * lib/unicase/u16-casecoll.c: New file.
25927         * modules/unicase/u16-casecoll: New file.
25928
25929         New module 'unicase/u8-casecoll'.
25930         * lib/unicase/u8-casecoll.c: New file.
25931         * lib/unicase/u-casecoll.h: New file.
25932         * modules/unicase/u8-casecoll: New file.
25933
25934         New module 'unicase/u32-casexfrm'.
25935         * lib/unicase/u32-casexfrm.c: New file.
25936         * modules/unicase/u32-casexfrm: New file.
25937
25938         New module 'unicase/u16-casexfrm'.
25939         * lib/unicase/u16-casexfrm.c: New file.
25940         * modules/unicase/u16-casexfrm: New file.
25941
25942         New module 'unicase/u8-casexfrm'.
25943         * lib/unicase/u8-casexfrm.c: New file.
25944         * lib/unicase/u-casexfrm.h: New file.
25945         * modules/unicase/u8-casexfrm: New file.
25946
25947         Tests for module 'unicase/u32-casecmp'.
25948         * modules/unicase/u32-casecmp-tests: New file.
25949         * tests/unicase/test-u32-casecmp.c: New file.
25950
25951         Tests for module 'unicase/u16-casecmp'.
25952         * modules/unicase/u16-casecmp-tests: New file.
25953         * tests/unicase/test-u16-casecmp.c: New file.
25954
25955         Tests for module 'unicase/u8-casecmp'.
25956         * modules/unicase/u8-casecmp-tests: New file.
25957         * tests/unicase/test-u8-casecmp.c: New file.
25958         * tests/unicase/test-casecmp.h: New file.
25959
25960         New module 'unicase/u32-casecmp'.
25961         * lib/unicase/u32-casecmp.c: New file.
25962         * modules/unicase/u32-casecmp: New file.
25963
25964         New module 'unicase/u16-casecmp'.
25965         * lib/unicase/u16-casecmp.c: New file.
25966         * modules/unicase/u16-casecmp: New file.
25967
25968         New module 'unicase/u8-casecmp'.
25969         * lib/unicase/u8-casecmp.c: New file.
25970         * lib/unicase/u-casecmp.h: New file.
25971         * modules/unicase/u8-casecmp: New file.
25972
25973         Tests for module 'unicase/u32-casefold'.
25974         * modules/unicase/u32-casefold-tests: New file.
25975         * tests/unicase/test-u32-casefold.c: New file.
25976
25977         Tests for module 'unicase/u16-casefold'.
25978         * modules/unicase/u16-casefold-tests: New file.
25979         * tests/unicase/test-u16-casefold.c: New file.
25980
25981         Tests for module 'unicase/u8-casefold'.
25982         * modules/unicase/u8-casefold-tests: New file.
25983         * tests/unicase/test-u8-casefold.c: New file.
25984
25985         New module 'unicase/u32-casefold'.
25986         * lib/unicase/u32-casefold.c: New file.
25987         * modules/unicase/u32-casefold: New file.
25988
25989         New module 'unicase/u16-casefold'.
25990         * lib/unicase/u16-casefold.c: New file.
25991         * modules/unicase/u16-casefold: New file.
25992
25993         New module 'unicase/u8-casefold'.
25994         * lib/unicase/u8-casefold.c: New file.
25995         * lib/unicase/u-casefold.h: New file.
25996         * modules/unicase/u8-casefold: New file.
25997
25998         New module 'unicase/tocasefold'.
25999         * lib/unicase/casefold.h: New file.
26000         * lib/unicase/tocasefold.c: New file.
26001         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
26002         * modules/unicase/tocasefold: New file.
26003
26004         Tests for module 'unicase/u32-totitle'.
26005         * modules/unicase/u32-totitle-tests: New file.
26006         * tests/unicase/test-u32-totitle.c: New file.
26007
26008         Tests for module 'unicase/u16-totitle'.
26009         * modules/unicase/u16-totitle-tests: New file.
26010         * tests/unicase/test-u16-totitle.c: New file.
26011
26012         Tests for module 'unicase/u8-totitle'.
26013         * modules/unicase/u8-totitle-tests: New file.
26014         * tests/unicase/test-u8-totitle.c: New file.
26015
26016         New module 'unicase/u32-totitle'.
26017         * lib/unicase/u32-totitle.c: New file.
26018         * modules/unicase/u32-totitle: New file.
26019
26020         New module 'unicase/u16-totitle'.
26021         * lib/unicase/u16-totitle.c: New file.
26022         * modules/unicase/u16-totitle: New file.
26023
26024         New module 'unicase/u8-totitle'.
26025         * lib/unicase/u8-totitle.c: New file.
26026         * lib/unicase/u-totitle.h: New file.
26027         * modules/unicase/u8-totitle: New file.
26028
26029         Tests for module 'unicase/u32-tolower'.
26030         * modules/unicase/u32-tolower-tests: New file.
26031         * tests/unicase/test-u32-tolower.c: New file.
26032
26033         Tests for module 'unicase/u16-tolower'.
26034         * modules/unicase/u16-tolower-tests: New file.
26035         * tests/unicase/test-u16-tolower.c: New file.
26036
26037         Tests for module 'unicase/u8-tolower'.
26038         * modules/unicase/u8-tolower-tests: New file.
26039         * tests/unicase/test-u8-tolower.c: New file.
26040
26041         New module 'unicase/u32-tolower'.
26042         * lib/unicase/u32-tolower.c: New file.
26043         * modules/unicase/u32-tolower: New file.
26044
26045         New module 'unicase/u16-tolower'.
26046         * lib/unicase/u16-tolower.c: New file.
26047         * modules/unicase/u16-tolower: New file.
26048
26049         New module 'unicase/u8-tolower'.
26050         * lib/unicase/u8-tolower.c: New file.
26051         * modules/unicase/u8-tolower: New file.
26052
26053         Tests for module 'unicase/u32-toupper'.
26054         * modules/unicase/u32-toupper-tests: New file.
26055         * tests/unicase/test-u32-toupper.c: New file.
26056
26057         Tests for module 'unicase/u16-toupper'.
26058         * modules/unicase/u16-toupper-tests: New file.
26059         * tests/unicase/test-u16-toupper.c: New file.
26060
26061         Tests for module 'unicase/u8-toupper'.
26062         * modules/unicase/u8-toupper-tests: New file.
26063         * tests/unicase/test-u8-toupper.c: New file.
26064
26065         New module 'unicase/u32-toupper'.
26066         * lib/unicase/u32-toupper.c: New file.
26067         * modules/unicase/u32-toupper: New file.
26068
26069         New module 'unicase/u16-toupper'.
26070         * lib/unicase/u16-toupper.c: New file.
26071         * modules/unicase/u16-toupper: New file.
26072
26073         New module 'unicase/u8-toupper'.
26074         * lib/unicase/u8-toupper.c: New file.
26075         * modules/unicase/u8-toupper: New file.
26076
26077         New module 'unicase/u32-casemap'.
26078         * lib/unicase/u32-casemap.c: New file.
26079         * modules/unicase/u32-casemap: New file.
26080
26081         New module 'unicase/u16-casemap'.
26082         * lib/unicase/u16-casemap.c: New file.
26083         * modules/unicase/u16-casemap: New file.
26084
26085         New module 'unicase/u8-casemap'.
26086         * lib/unicase/unicasemap.h: New file.
26087         * lib/unicase/u8-casemap.c: New file.
26088         * lib/unicase/u-casemap.h: New file.
26089         * modules/unicase/u8-casemap: New file.
26090
26091         New module 'unicase/special-casing'.
26092         * lib/unicase/special-casing.h: New file.
26093         * lib/unicase/special-casing.c: New file.
26094         * lib/unicase/special-casing-table.gperf: New file, generated by
26095         gen-uni-tables.c.
26096         * modules/unicase/special-casing: New file.
26097
26098         Tests for module 'unicase/locale-language'.
26099         * modules/unicase/locale-language-tests: New file.
26100         * tests/unicase/test-locale-language.sh: New file.
26101         * tests/unicase/test-locale-language.c: New file.
26102
26103         New module 'unicase/locale-language'.
26104         * lib/unicase/locale-language.c: New file.
26105         * lib/unicase/locale-languages.gperf: New file.
26106         * modules/unicase/locale-language: New file.
26107
26108         Generate more tables for case conversion and case folding.
26109         * lib/gen-uni-tables.c (SCC_*): New enum items.
26110         (struct special_casing_rule): New type.
26111         (casing_rules, num_casing_rules, allocated_casing_rules): New
26112         variables.
26113         (add_casing_rule, fill_casing_rules): New functions.
26114         (struct casefold_rule): New type.
26115         (casefolding_rules, num_casefolding_rules,
26116         allocated_casefolding_rules): New variables.
26117         (fill_casefolding_rules): New function.
26118         (unicode_casefold): New variable.
26119         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
26120         sort_casing_rules, output_casing_rules): New functions.
26121         (main): Accept to more arguments: SpecialCasing.txt and
26122         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
26123         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
26124         Output mapping for casefolding.
26125
26126         * lib/unicase.h: Include stdbool.h, uninorm.h.
26127         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
26128         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
26129         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
26130         arguments.
26131         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
26132         resultp arguments.
26133         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
26134         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
26135         resultp arguments.
26136         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
26137         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
26138         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
26139         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
26140         declarations.
26141         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
26142
26143 2009-03-08  Bruno Haible  <bruno@clisp.org>
26144
26145         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
26146         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
26147         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
26148         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
26149
26150 2009-03-07  Bruno Haible  <bruno@clisp.org>
26151
26152         Adjust u*_normcmp, u*_normcoll API.
26153         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
26154         u16_normcoll, u32_normcoll): Change failure conventions.
26155         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
26156         errno and return -1.
26157         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
26158
26159 2009-03-07  Bruno Haible  <bruno@clisp.org>
26160
26161         Tests for module 'uninorm/u32-normcoll'.
26162         * modules/uninorm/u32-normcoll-tests: New file.
26163         * tests/uninorm/test-u32-normcoll.c: New file.
26164
26165         Tests for module 'uninorm/u16-normcoll'.
26166         * modules/uninorm/u16-normcoll-tests: New file.
26167         * tests/uninorm/test-u16-normcoll.c: New file.
26168
26169         Tests for module 'uninorm/u8-normcoll'.
26170         * modules/uninorm/u8-normcoll-tests: New file.
26171         * tests/uninorm/test-u8-normcoll.c: New file.
26172
26173 2009-03-07  Bruno Haible  <bruno@clisp.org>
26174
26175         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
26176         tests/uninorm/test-u32-normcmp.c.
26177         * tests/uninorm/test-u32-normcmp.c: Include it.
26178         (test_nonascii): New function, extracted from main. Add some more
26179         tests.
26180         (main): Invoke test_ascii and test_nonascii.
26181         * modules/uninorm/u32-normcmp-tests (Files): Add
26182         tests/uninorm/test-u32-normcmp.h.
26183         (Depends-on): Remove uninorm/u32-normcmp.
26184
26185         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
26186         tests/uninorm/test-u16-normcmp.c.
26187         * tests/uninorm/test-u16-normcmp.c: Include it.
26188         (test_nonascii): New function, extracted from main. Add some more
26189         tests.
26190         (main): Invoke test_ascii and test_nonascii.
26191         * modules/uninorm/u16-normcmp-tests (Files): Add
26192         tests/uninorm/test-u16-normcmp.h.
26193         (Depends-on): Remove uninorm/u16-normcmp.
26194
26195         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
26196         tests/uninorm/test-u8-normcmp.c.
26197         * tests/uninorm/test-u8-normcmp.c: Include it.
26198         (test_nonascii): New function, extracted from main. Add some more
26199         tests.
26200         (main): Invoke test_ascii and test_nonascii.
26201         * modules/uninorm/u8-normcmp-tests (Files): Add
26202         tests/uninorm/test-u8-normcmp.h.
26203         (Depends-on): Remove uninorm/u8-normcmp.
26204
26205 2009-03-07  Bruno Haible  <bruno@clisp.org>
26206
26207         New module 'uninorm/u32-normcoll'.
26208         * lib/uninorm/u32-normcoll.c: New file.
26209         * modules/uninorm/u32-normcoll: New file.
26210
26211         New module 'uninorm/u16-normcoll'.
26212         * lib/uninorm/u16-normcoll.c: New file.
26213         * modules/uninorm/u16-normcoll: New file.
26214
26215         New module 'uninorm/u8-normcoll'.
26216         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
26217         declarations.
26218         * lib/uninorm/u8-normcoll.c: New file.
26219         * lib/uninorm/u-normcoll.h: New file.
26220         * modules/uninorm/u8-normcoll: New file.
26221
26222         New module 'uninorm/u32-normxfrm'.
26223         * lib/uninorm/u32-normxfrm.c: New file.
26224         * modules/uninorm/u32-normxfrm: New file.
26225
26226         New module 'uninorm/u16-normxfrm'.
26227         * lib/uninorm/u16-normxfrm.c: New file.
26228         * modules/uninorm/u16-normxfrm: New file.
26229
26230         New module 'uninorm/u8-normxfrm'.
26231         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
26232         declarations.
26233         * lib/uninorm/u8-normxfrm.c: New file.
26234         * lib/uninorm/u-normxfrm.h: New file.
26235         * modules/uninorm/u8-normxfrm: New file.
26236
26237 2009-03-07  Bruno Haible  <bruno@clisp.org>
26238
26239         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
26240         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
26241         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
26242
26243 2009-03-07  Bruno Haible  <bruno@clisp.org>
26244
26245         New module 'memxfrm'.
26246         * lib/memxfrm.h: New file.
26247         * lib/memxfrm.c: New file.
26248         * modules/memxfrm: New file.
26249
26250 2009-03-07  Bruno Haible  <bruno@clisp.org>
26251
26252         New module 'memcmp2'.
26253         * lib/memcmp2.h: New file.
26254         * lib/memcmp2.c: New file.
26255         * modules/memcmp2: New file.
26256
26257 2009-03-07  Bruno Haible  <bruno@clisp.org>
26258
26259         Tests for module 'uninorm/decomposing-form'.
26260         * modules/uninorm/decomposing-form-tests: New file.
26261         * tests/uninorm/test-decomposing-form.c: New file.
26262
26263         New module 'uninorm/decomposing-form'.
26264         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
26265         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
26266         Add 'decomposing_variant' field.
26267         * lib/uninorm/decomposing-form.c: New file.
26268         * lib/uninorm/nfc.c (uninorm_nfc): Update.
26269         * lib/uninorm/nfd.c (uninorm_nfd): Update.
26270         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
26271         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
26272         * modules/uninorm/decomposing-form: New file.
26273         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
26274         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
26275
26276 2009-03-07  Bruno Haible  <bruno@clisp.org>
26277
26278         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
26279         strings.
26280
26281 2009-03-06  Bruno Haible  <bruno@clisp.org>
26282
26283         Tests for module 'uninorm/u32-normcmp'.
26284         * tests/uninorm/test-u32-normcmp.c: New file.
26285         * modules/uninorm/u32-normcmp-tests: New file.
26286
26287         Tests for module 'uninorm/u16-normcmp'.
26288         * tests/uninorm/test-u16-normcmp.c: New file.
26289         * modules/uninorm/u16-normcmp-tests: New file.
26290
26291         Tests for module 'uninorm/u8-normcmp'.
26292         * tests/uninorm/test-u8-normcmp.c: New file.
26293         * modules/uninorm/u8-normcmp-tests: New file.
26294
26295         New module 'uninorm/u32-normcmp'.
26296         * lib/uninorm/u32-normcmp.c: New file.
26297         * modules/uninorm/u32-normcmp: New file.
26298
26299         New module 'uninorm/u16-normcmp'.
26300         * lib/uninorm/u16-normcmp.c: New file.
26301         * modules/uninorm/u16-normcmp: New file.
26302
26303         New module 'uninorm/u8-normcmp'.
26304         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
26305         declarations.
26306         * lib/uninorm/u8-normcmp.c: New file.
26307         * lib/uninorm/u-normcmp.h: New file.
26308         * modules/uninorm/u8-normcmp: New file.
26309
26310 2009-03-06  Bruno Haible  <bruno@clisp.org>
26311
26312         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
26313         Reported by Eric Blake.
26314
26315 2009-03-06  Eric Blake  <ebb9@byu.net>
26316             Bruno Haible  <bruno@clisp.org>
26317
26318         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
26319         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
26320         condition.
26321         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
26322         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
26323         condition.
26324         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
26325
26326 2009-03-06  Eric Blake  <ebb9@byu.net>
26327
26328         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
26329         to avoid compiler warnings.
26330         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
26331
26332 2009-03-05  Bruno Haible  <bruno@clisp.org>
26333
26334         * tests/test-ftell.c (main): Disable test beyond end of file on
26335         FreeMiNT.
26336         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
26337
26338 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
26339
26340         * lib/filevercmp.c: Move hidden files up in ordering.
26341         * tests/test-filevercmp.c: Add tests for hidden files.
26342
26343 2009-03-04  Bruno Haible  <bruno@clisp.org>
26344
26345         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
26346         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
26347         AM_CFLAGS.
26348         Reported by Simon Josefsson.
26349
26350 2009-03-03  Bruno Haible  <bruno@clisp.org>
26351
26352         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
26353         Reported by Simon Josefsson.
26354
26355         * doc/ld-version-script.texi: Update node reference.
26356
26357 2009-03-03  Bruno Haible  <bruno@clisp.org>
26358
26359         * modules/visibility (License): Change to 'unlimited'.
26360         Suggested by Simon Josefsson.
26361
26362 2009-03-03  Jim Meyering  <meyering@redhat.com>
26363
26364         unlinkdir: cannot_unlink_dir may modify process state
26365         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
26366         it's neither thread-safe nor appropriate for use in a library.
26367
26368 2009-03-03  Eric Blake  <ebb9@byu.net>
26369
26370         test-closein: silence test under Darwin
26371         * tests/test-closein.sh: Ignore stderr from cat, since we don't
26372         care if it dies from EPIPE or EBADF.
26373
26374 2009-03-03  Bruno Haible  <bruno@clisp.org>
26375
26376         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
26377         earlier.
26378         * doc/visibility.texi: Fix @node and @section.
26379
26380 2009-03-03  Simon Josefsson  <simon@josefsson.org>
26381
26382         * doc/gnulib.texi: Link to sections for ld version script and
26383         visibility.
26384         * doc/visibility.texi: Add @node and @section.
26385         * modules/ld-version-script: New module.
26386         * m4/ld-version-script.m4: New file.
26387         * doc/ld-version-script.texi: New file.
26388
26389 2009-03-02  David Lutterkort  <lutter@redhat.com>
26390
26391         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
26392         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26393
26394 2009-03-02  Bruno Haible  <bruno@clisp.org>
26395
26396         * doc/visibility.texi: Mention libtool's -export-symbols option.
26397
26398 2009-03-02  Jim Meyering  <meyering@redhat.com>
26399
26400         announce-gen: new option: --no-print-checksums
26401         * build-aux/announce-gen (usage): Describe it.
26402         (print_checksums): Print a newline here, not in the [*] footnote.
26403         (main): Honor it.
26404
26405 2009-03-01  Bruno Haible  <bruno@clisp.org>
26406
26407         Use socklen_t in the native Windows replacements prototypes.
26408         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
26409         instead of 'int'.
26410         * lib/getsockopt.c (rpl_getsockopt): Likewise.
26411         * lib/setsockopt.c (rpl_setsockopt): Likewise.
26412         * modules/getsockopt (Depends-on): Add socklen.
26413         * modules/setsockopt (Depends-on): Add socklen.
26414
26415 2009-03-01  Bruno Haible  <bruno@clisp.org>
26416
26417         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
26418         least 4.2.
26419
26420 2009-03-01  Eric Blake  <ebb9@byu.net>
26421             Bruno Haible  <bruno@clisp.org>
26422
26423         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
26424         error messages.
26425         * lib/wait-process.c (wait_subprocess): Omit error message about
26426         deadly signal sent to the child of termsigp != NULL.
26427
26428 2009-03-01  Eric Blake  <ebb9@byu.net>
26429
26430         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
26431
26432 2009-03-01  Bruno Haible  <bruno@clisp.org>
26433
26434         Avoid a gcc warning.
26435         * tests/test-sched.c (b): Make global.
26436         Reported by Eric Blake.
26437
26438 2009-01-19  Martin Lambers  <marlam@marlam.de>
26439
26440         Provide POSIX semantics for socket timeout options on W32.
26441         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
26442         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
26443         * modules/setsockopt: Depend on sys_time module for struct timeval.
26444         * modules/getsockopt: Depend on sys_time module for struct timeval.
26445
26446 2009-03-01  Simon Josefsson  <simon@josefsson.org>
26447
26448         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
26449         __USE_GNU, for consistency with netdb.in.h.
26450         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26451
26452 2009-03-01  Bruno Haible  <bruno@clisp.org>
26453
26454         More support for FreeMiNT.
26455         * lib/fseeko.c (rpl_fseeko): Complete last commit.
26456         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26457
26458 2009-03-01  Bruno Haible  <bruno@clisp.org>
26459
26460         More support for FreeMiNT.
26461         * lib/fpurge.c (fpurge): Correct last commit.
26462         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26463
26464 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26465
26466         Fix unportable awk script in vc-list-files.
26467         * build-aux/vc-list-files: In the replacement awk script, use
26468         substr with a second argument of 1, not zero.
26469         Report by Simon Josefsson.
26470
26471 2009-02-28  Bruno Haible  <bruno@clisp.org>
26472
26473         More support for FreeMiNT.
26474         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
26475         to FreeMiNT today.
26476         * lib/fwriting.c (fwriting): Likewise.
26477         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
26478
26479 2009-02-28  Bruno Haible  <bruno@clisp.org>
26480
26481         * tests/test-freadseek.c (main): Disable test beyond end of file on
26482         FreeMiNT.
26483         * tests/test-ftello.c (main): Likewise.
26484         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
26485
26486 2009-02-28  Bruno Haible  <bruno@clisp.org>
26487
26488         Add tentative support for FreeMiNT.
26489         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
26490         * lib/fpurge.c (fpurge): Likewise.
26491         * lib/freadable.c (freadable): Likewise.
26492         * lib/freading.c (freading): Likewise.
26493         * lib/freadptr.c (freadptr): Likewise.
26494         * lib/freadseek.c (freadptrinc): Likewise.
26495         * lib/fseeko.c (rpl_fseeko): Likewise.
26496         * lib/fseterr.c (fseterr): Likewise.
26497         * lib/fwritable.c (fwritable): Likewise.
26498         * lib/fwriting.c (fwriting): Likewise.
26499         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
26500         Hourihane.
26501         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26502
26503 2009-02-28  Bruno Haible  <bruno@clisp.org>
26504
26505         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
26506         SIGCHLD.
26507         Reported by Jim Meyering.
26508
26509 2009-02-28  Bruno Haible  <bruno@clisp.org>
26510
26511         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
26512         Mention the results of these tests on various platforms.
26513         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
26514         order.
26515         * doc/posix-functions/printf.texi: Likewise.
26516         * doc/posix-functions/snprintf.texi: Likewise.
26517         * doc/posix-functions/sprintf.texi: Likewise.
26518         * doc/posix-functions/vfprintf.texi: Likewise.
26519         * doc/posix-functions/vprintf.texi: Likewise.
26520         * doc/posix-functions/vsnprintf.texi: Likewise.
26521         * doc/posix-functions/vsprintf.texi: Likewise.
26522         * doc/glibc-functions/obstack_printf.texi: Likewise.
26523         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26524
26525 2009-02-28  Bruno Haible  <bruno@clisp.org>
26526
26527         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
26528         Reported by Loïc Minier <lool@dooz.org>.
26529
26530 2009-02-27  Bruno Haible  <bruno@clisp.org>
26531
26532         * gnulib-tool (func_import): Make the sed expression used to create the
26533         sed script for updating the .gitignore file POSIX compliant.
26534         Reported by Eric Blake.
26535
26536 2009-02-27  Bruno Haible  <bruno@clisp.org>
26537
26538         * gnulib-tool (sed): Don't alias as "sed --posix".
26539         Reported by Eric Blake.
26540
26541 2009-02-27  Bruno Haible  <bruno@clisp.org>
26542
26543         Avoid test link errors.
26544         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
26545         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
26546         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
26547         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
26548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26549
26550 2009-02-27  Bruno Haible  <bruno@clisp.org>
26551
26552         Avoid spurious "(cached)" in configure output.
26553         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
26554         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
26555         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26556         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26557         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26558         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26559         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26560         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26561         Reported by Eric Blake.
26562
26563 2009-02-27  Eric Blake  <ebb9@byu.net>
26564
26565         printf: fix regression in previous patch
26566         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
26567
26568 2009-02-27  Bruno Haible  <bruno@clisp.org>
26569
26570         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
26571         value.
26572         * lib/stdint.in.h: Likewise.
26573         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
26574
26575 2009-02-27  Eric Blake  <ebb9@byu.net>
26576
26577         doc: mention more functions added in cygwin 1.7.0
26578         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
26579         addition.
26580         * doc/posix-functions/open_wmemstream.texi: Likewise.
26581         * doc/posix-functions/wcsnlen.texi: Likewise.
26582         * doc/posix-functions/wcsnrtombs.texi: Likewise.
26583         * doc/posix-functions/wcstod.texi: Likewise.
26584         * doc/posix-functions/wcstof.texi: Likewise.
26585         * doc/posix-functions/wcstoimax.texi: Likewise.
26586         * doc/posix-functions/wcstok.texi: Likewise.
26587         * doc/posix-functions/wcstoumax.texi: Likewise.
26588
26589         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
26590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
26591         * doc/posix-functions/fprintf.texi: Update.
26592         * doc/posix-functions/printf.texi: Update.
26593         * doc/posix-functions/snprintf.texi: Update.
26594         * doc/posix-functions/sprintf.texi: Update.
26595         * doc/posix-functions/vfprintf.texi: Update.
26596         * doc/posix-functions/vprintf.texi: Update.
26597         * doc/posix-functions/vsnprintf.texi: Update.
26598         * doc/posix-functions/vsprintf.texi: Update.
26599         * doc/glibc-functions/obstack_printf.texi: Update.
26600         * doc/glibc-functions/obstack_vprintf.texi: Update.
26601
26602 2009-02-26  Eric Blake  <ebb9@byu.net>
26603
26604         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
26605         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
26606         compilation bug by using runtime conversion.
26607         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26608         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
26609         * modules/ceill-tests (Files): Use nan.h.
26610         * modules/floorl-tests (Files): Likewise.
26611         * modules/frexpl-tests (Files): Likewise.
26612         * modules/isnanl-tests (Files): Likewise.
26613         * modules/ldexpl-tests (Files): Likewise.
26614         * modules/roundl-tests (Files): Likewise.
26615         * modules/truncl-tests (Files): Likewise.
26616         * tests/test-ceill.c (main): Use a working NaN.
26617         * tests/test-floorl.c (main): Likewise.
26618         * tests/test-frexpl.c (main): Likewise.
26619         * tests/test-isnan.c (test_long_double): Likewise.
26620         * tests/test-isnanl.h (main): Likewise.
26621         * tests/test-ldexpl.h (main): Likewise.
26622         * tests/test-roundl.h (main): Likewise.
26623         * tests/test-truncl.h (main): Likewise.
26624         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
26625
26626 2009-02-26  Eric Blake  <ebb9@byu.net>
26627             Bruno Haible  <bruno@clisp.org>
26628
26629         Work around a *printf bug with %ls on Solaris.
26630         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
26631         precision is specified, sprintf stops converting the wide string
26632         argument when the number of bytes that have been produced by this
26633         conversion equals or exceeds the precision.
26634         * doc/posix-functions/fprintf.texi: Update.
26635         * doc/posix-functions/printf.texi: Update.
26636         * doc/posix-functions/snprintf.texi: Update.
26637         * doc/posix-functions/sprintf.texi: Update.
26638         * doc/posix-functions/vfprintf.texi: Update.
26639         * doc/posix-functions/vprintf.texi: Update.
26640         * doc/posix-functions/vsnprintf.texi: Update.
26641         * doc/posix-functions/vsprintf.texi: Update.
26642         * doc/glibc-functions/obstack_printf.texi: Update.
26643         * doc/glibc-functions/obstack_vprintf.texi: Update.
26644
26645 2009-02-26  Eric Blake  <ebb9@byu.net>
26646
26647         stdlib: favor compiler check of random.h
26648         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
26649         to avoid an ObjC random.h installed by Swarm.
26650
26651 2009-02-26  Bruno Haible  <bruno@clisp.org>
26652
26653         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
26654         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
26655         Reported by Gary V. Vaughan <gary@gnu.org>.
26656
26657 2009-02-26  Bruno Haible  <bruno@clisp.org>
26658
26659         Fix *printf behaviour regarding the %ls directive.
26660         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
26661         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
26662         NEED_PRINTF_DIRECTIVE_LS.
26663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
26664         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26665         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26666         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
26667         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
26668         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
26669         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
26670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26674         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
26675         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26676         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26677         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26678         * doc/posix-functions/fprintf.texi: Update.
26679         * doc/posix-functions/printf.texi: Update.
26680         * doc/posix-functions/snprintf.texi: Update.
26681         * doc/posix-functions/sprintf.texi: Update.
26682         * doc/posix-functions/vfprintf.texi: Update.
26683         * doc/posix-functions/vprintf.texi: Update.
26684         * doc/posix-functions/vsnprintf.texi: Update.
26685         * doc/posix-functions/vsprintf.texi: Update.
26686         * doc/glibc-functions/obstack_printf.texi: Update.
26687         * doc/glibc-functions/obstack_vprintf.texi: Update.
26688         Reported by Eric Blake.
26689
26690 2009-02-25  Bruno Haible  <bruno@clisp.org>
26691
26692         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
26693         with known value.
26694         Reported by Gary V. Vaughan <gary@gnu.org>.
26695
26696 2009-02-25  Bruno Haible  <bruno@clisp.org>
26697
26698         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
26699         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
26700         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
26701         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
26702         Reported by Gary V. Vaughan <gary@gnu.org>.
26703
26704 2009-02-25  Bruno Haible  <bruno@clisp.org>
26705
26706         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
26707         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
26708         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
26709         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
26710         Reported by Gary V. Vaughan <gary@gnu.org>.
26711
26712 2009-02-25  Eric Blake  <ebb9@byu.net>
26713
26714         tests: skip fseek/ftell tests if ungetc is broken
26715         * m4/ungetc.m4: New file.
26716         * modules/fseek-tests: Split test, so ungetc dependency is
26717         separate from rest of test.
26718         * modules/fseeko-tests: Likewise.
26719         * modules/ftell-tests: Likewise.
26720         * modules/ftello-tests: Likewise.
26721         * tests/test-fseek.c (main): Isolate ungetc dependency.
26722         * tests/test-fseeko.c (main): Likewise.
26723         * tests/test-ftell.c (main): Likewise.
26724         * tests/test-ftello.c (main): Likewise.
26725         * tests/test-fseek2.sh: New file.
26726         * tests/test-fseeko2.sh: Likewise.
26727         * tests/test-ftell2.sh: Likewise.
26728         * tests/test-ftello2.sh: Likewise.
26729
26730 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
26731
26732         test-getaddrinfo: fix usage of skip return code 77
26733         * tests/test-gettaddrinfo.c: Return skip code 77 only
26734         for first occurance of skip (4x77 is not 77)
26735
26736 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
26737
26738         strtod: avoid C99 decl-after-statement
26739         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
26740
26741 2009-02-24  Eric Blake  <ebb9@byu.net>
26742
26743         strtod: detect HP-UX 11.31 bug
26744         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
26745         Reported by Gary V. Vaughan.
26746
26747 2009-02-23  Bruno Haible  <bruno@clisp.org>
26748
26749         Fix invalid read past end of memory block.
26750         * lib/vasnprintf.c (DCHAR_SET): Define.
26751         (local_wcslen): Define only when needed.
26752         (local_strnlen, local_wcsnlen): New functions.
26753         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
26754         directives that involve a conversion ourselves.
26755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
26756         wcsnlen, mbrtowc, wcrtomb.
26757         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
26758         * tests/test-vasprintf-posix.c (test_function): Likewise.
26759         * tests/test-snprintf-posix.h (test_function): Likewise.
26760         * tests/test-sprintf-posix.h (test_function): Likewise.
26761         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26762
26763 2009-02-22  Bruno Haible  <bruno@clisp.org>
26764
26765         Implement new clarified decomposition of Hangul syllables.
26766         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
26767         of type LTV, return only a pairwise decomposition.
26768         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
26769         Likewise.
26770         * tests/uninorm/test-decomposition.c (main): Updated expected result.
26771         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
26772         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
26773
26774 2009-02-22  Bruno Haible  <bruno@clisp.org>
26775
26776         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
26777         zero-length results and shrink excess allocated memory.
26778         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
26779         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
26780         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
26781         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
26782         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
26783         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
26784         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
26785         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
26786         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
26787         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
26788         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
26789         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
26790
26791 2009-02-21  Bruno Haible  <bruno@clisp.org>
26792
26793         * doc/gnulib.texi: Include safe-alloc.texi earlier.
26794         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
26795         spaces after a period. Put a space between a macro name and its
26796         argument list. Trivial rewordings.
26797         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
26798         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
26799         (main): Return 0 explicitly.
26800
26801 2009-02-21  Bruno Haible  <bruno@clisp.org>
26802
26803         Tests for module 'uninorm/filter'.
26804         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
26805         * modules/uninorm/filter-tests: New file.
26806
26807         New module 'uninorm/filter'.
26808         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
26809         uninorm_filter_flush, uninorm_filter_free): New declarations.
26810         * lib/uninorm/uninorm-filter.c: New file.
26811         * modules/uninorm/filter: New file.
26812
26813 2009-02-21  Bruno Haible  <bruno@clisp.org>
26814
26815         Tests for module 'uninorm/nfkc'.
26816         * tests/uninorm/test-nfkc.c: New file.
26817         * tests/uninorm/test-u8-nfkc.c: New file.
26818         * tests/uninorm/test-u16-nfkc.c: New file.
26819         * tests/uninorm/test-u32-nfkc.c: New file.
26820         * tests/uninorm/test-u32-nfkc-big.sh: New file.
26821         * tests/uninorm/test-u32-nfkc-big.c: New file.
26822         * modules/uninorm/nfkc-tests: New file.
26823
26824         New module 'uninorm/nfkc'.
26825         * lib/uninorm/nfkc.c: New file.
26826         * modules/uninorm/nfkc: New file.
26827
26828         Tests for module 'uninorm/nfkd'.
26829         * tests/uninorm/test-nfkd.c: New file.
26830         * tests/uninorm/test-u8-nfkd.c: New file.
26831         * tests/uninorm/test-u16-nfkd.c: New file.
26832         * tests/uninorm/test-u32-nfkd.c: New file.
26833         * tests/uninorm/test-u32-nfkd-big.sh: New file.
26834         * tests/uninorm/test-u32-nfkd-big.c: New file.
26835         * modules/uninorm/nfkd-tests: New file.
26836
26837         New module 'uninorm/nfkd'.
26838         * lib/uninorm/nfkd.c: New file.
26839         * modules/uninorm/nfkd: New file.
26840
26841         Tests for module 'uninorm/nfc'.
26842         * tests/uninorm/test-nfc.c: New file.
26843         * tests/uninorm/test-u8-nfc.c: New file.
26844         * tests/uninorm/test-u16-nfc.c: New file.
26845         * tests/uninorm/test-u32-nfc.c: New file.
26846         * tests/uninorm/test-u32-nfc-big.sh: New file.
26847         * tests/uninorm/test-u32-nfc-big.c: New file.
26848         * modules/uninorm/nfc-tests: New file.
26849
26850         New module 'uninorm/nfc'.
26851         * lib/uninorm/nfc.c: New file.
26852         * modules/uninorm/nfc: New file.
26853
26854         Tests for module 'uninorm/nfd'.
26855         * tests/uninorm/test-nfd.c: New file.
26856         * tests/uninorm/test-u8-nfd.c: New file.
26857         * tests/uninorm/test-u16-nfd.c: New file.
26858         * tests/uninorm/test-u32-nfd.c: New file.
26859         * tests/uninorm/test-u32-nfd-big.sh: New file.
26860         * tests/uninorm/test-u32-nfd-big.c: New file.
26861         * tests/uninorm/test-u32-normalize-big.h: New file.
26862         * tests/uninorm/test-u32-normalize-big.c: New file.
26863         * tests/uninorm/NormalizationTest.txt: New file, created from
26864         Unicode 5.1.0 NormalizationTest.txt.
26865         * modules/uninorm/nfd-tests: New file.
26866
26867         New module 'uninorm/nfd'.
26868         * lib/uninorm/nfd.c: New file.
26869         * modules/uninorm/nfd: New file.
26870
26871         New module 'uninorm/u32-normalize'.
26872         * lib/uninorm/u32-normalize.c: New file.
26873         * modules/uninorm/u32-normalize: New file.
26874
26875         New module 'uninorm/u16-normalize'.
26876         * lib/uninorm/u16-normalize.c: New file.
26877         * modules/uninorm/u16-normalize: New file.
26878
26879         New module 'uninorm/u8-normalize'.
26880         * lib/uninorm/u8-normalize.c: New file.
26881         * lib/uninorm/normalize-internal.h: New file.
26882         * lib/uninorm/u-normalize-internal.h: New file.
26883         * modules/uninorm/u8-normalize: New file.
26884
26885         New module 'uninorm/decompose-internal'.
26886         * lib/uninorm/decompose-internal.c: New file.
26887         * modules/uninorm/decompose-internal: New file.
26888
26889         Tests for module 'uninorm/composition'.
26890         * tests/uninorm/test-composition.c: New file.
26891         * modules/uninorm/composition-tests: New file.
26892
26893         New module 'uninorm/composition'.
26894         * lib/uninorm/composition.c: New file.
26895         * lib/uninorm/composition-table.gperf: New file, generated by
26896         gen-uni-tables.
26897         * modules/uninorm/composition: New file.
26898
26899         Tests for module 'uninorm/compat-decomposition'.
26900         * tests/uninorm/test-compat-decomposition.c: New file.
26901         * modules/uninorm/compat-decomposition-tests: New file.
26902
26903         New module 'uninorm/compat-decomposition'.
26904         * lib/uninorm/decompose-internal.h: New file.
26905         * lib/uninorm/compat-decomposition.c: New file.
26906         * modules/uninorm/compat-decomposition: New file.
26907
26908         Tests for module 'uninorm/canonical-decomposition'.
26909         * tests/uninorm/test-canonical-decomposition.c: New file.
26910         * modules/uninorm/canonical-decomposition-tests: New file.
26911
26912         New module 'uninorm/canonical-decomposition'.
26913         * lib/uninorm/canonical-decomposition.c: New file.
26914         * modules/uninorm/canonical-decomposition: New file.
26915
26916         Tests for module 'uninorm/decomposition'.
26917         * tests/uninorm/test-decomposition.c: New file.
26918         * modules/uninorm/decomposition-tests: New file.
26919
26920         New module 'uninorm/decomposition'.
26921         * lib/uninorm/decomposition.c: New file.
26922         * modules/uninorm/decomposition: New file.
26923
26924         New module 'uninorm/decomposition-table'.
26925         * lib/uninorm/decomposition-table.h: New file.
26926         * lib/uninorm/decomposition-table.c: New file.
26927         * lib/uninorm/decomposition-table1.h: New file, generated by
26928         gen-uni-tables.
26929         * lib/uninorm/decomposition-table2.h: New file, generated by
26930         gen-uni-tables.
26931         * modules/uninorm/decomposition-table: New file.
26932
26933         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
26934         (UC_DECOMP_*): New enumeration items.
26935         (get_decomposition): New function.
26936         (struct decomp_table): New type.
26937         (output_decomposition, output_decomposition_tables): New functions.
26938         (unicode_composition_exclusions): New variable.
26939         (fill_composition_exclusions, debug_output_composition_tables): New
26940         functions.
26941         (main): Accept one more argument. Invoke fill_composition_exclusions.
26942         Output decomposition and composition tables.
26943
26944         New module 'uninorm/base'.
26945         * lib/uninorm.h: New file.
26946         * lib/unictype.h: Update comment.
26947         * modules/uninorm/base: New file.
26948
26949 2009-02-21  David Lutterkort  <lutter@redhat.com>
26950
26951         Tests for module 'safe-alloc'.
26952         * tests/test-safe-alloc.c: New file.
26953         * modules/safe-alloc-tests: New file.
26954
26955         New module 'safe-alloc'.
26956         * lib/safe-alloc.h: New file.
26957         * lib/safe-alloc.c: New file.
26958         * m4/safe-alloc.m4: New file.
26959         * modules/safe-alloc: New file.
26960         * doc/safe-alloc.texi: New file.
26961         * doc/gnulib.texi: Include it.
26962         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26963         safe-alloc.
26964
26965 2009-02-18  Bruno Haible  <bruno@clisp.org>
26966
26967         Fix link error on non-glibc systems.
26968         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
26969         variable.
26970         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26971
26972 2009-02-18  Jim Meyering  <meyering@redhat.com>
26973
26974         fts: avoid used-uninitialized error due to recent change
26975         * lib/fts.c (fts_read): Guard uses of the new member,
26976         parent->fts_n_dirs_remaining, since it's not relevant for
26977         the parent of a directory specified on the command-line.
26978
26979 2009-02-17  James Youngman  <jay@gnu.org>
26980             Bruno Haible  <bruno@clisp.org>
26981
26982         * m4/include_next.m4: Reformulate comment.
26983
26984 2009-02-16  Jim Meyering  <meyering@redhat.com>
26985
26986         fts: add #if guards so that the fts_lgpl module still builds
26987         * lib/fts.c: Guard just-added hash-table-using parts with
26988         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
26989         Reported by Simon Josefsson.
26990
26991 2009-02-15  Bruno Haible  <bruno@clisp.org>
26992
26993         * modules/array-mergesort-tests: New file.
26994         * tests/test-array-mergesort.c: New file.
26995
26996         New module 'array-mergesort'.
26997         * modules/array-mergesort: New file.
26998         * lib/array-mergesort.h: New file.
26999
27000 2009-02-15  Bruno Haible  <bruno@clisp.org>
27001
27002         Fix 2009-02-07 commit.
27003         * lib/gen-uni-tables.c (output_predicate, output_category,
27004         output_combclass, output_bidi_category, output_decimal_digit,
27005         output_digit, output_numeric, output_mirror, output_scripts,
27006         output_ident_category, output_simple_mapping): Fix format directives.
27007         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
27008
27009 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
27010
27011         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
27012         fixes are available from IBM.
27013
27014 2009-02-13  Jim Meyering  <meyering@redhat.com>
27015
27016         fts: arrange not to stat non-directories in more cases
27017         This makes GNU find (when it doesn't need to stat each file)
27018         *much* more efficient at traversing reiserfs file systems.
27019         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
27020         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
27021         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
27022         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
27023         (leaf_optimization_applies): New function.
27024         (LCO_hash, LCO_compare): New helper functions.
27025         (link_count_optimize_ok): New function.
27026         (fts_stat): Initialize new member (if dir).
27027         (fts_read): Decrement parent's fts_n_dirs_remaining count if
27028         we've just stat'ed a directory.  Skip the stat call when possible.
27029         ---
27030         Note this AFS-related exchange:
27031         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
27032         and note find's pioctl call in find/fstype.c.
27033         But that is necessary only if you want to enable the
27034         optimization for AFS, and for now, I don't.
27035
27036         fts: move a function definition "up" (no semantic change)
27037         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
27038         "up" to precede upcoming use of a related function.
27039
27040 2009-02-11  Jim Meyering  <meyering@redhat.com>
27041
27042         fts: correct internal computation of nlinks (optimization-related)
27043         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
27044         whether the current entry is a directory, so don't test it.
27045
27046 2009-02-10  Bruno Haible  <bruno@clisp.org>
27047
27048         Tests for module 'uniwbrk/ulc-wordbreaks'.
27049         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
27050         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
27051         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
27052
27053         Tests for module 'uniwbrk/u32-wordbreaks'.
27054         * modules/uniwbrk/u32-wordbreaks-tests: New file.
27055         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
27056
27057         Tests for module 'uniwbrk/u16-wordbreaks'.
27058         * modules/uniwbrk/u16-wordbreaks-tests: New file.
27059         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
27060
27061         Tests for module 'uniwbrk/u8-wordbreaks'.
27062         * modules/uniwbrk/u8-wordbreaks-tests: New file.
27063         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
27064
27065 2009-02-10  Bruno Haible  <bruno@clisp.org>
27066
27067         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
27068         property.
27069         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
27070         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
27071         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
27072
27073 2009-02-10  Simon Josefsson  <simon@josefsson.org>
27074
27075         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
27076         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
27077
27078 2009-02-10  Bruno Haible  <bruno@clisp.org>
27079
27080         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
27081         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
27082         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
27083         * lib/unilbrk/u8-possible-linebreaks.c: Update.
27084         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
27085         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
27086
27087 2009-02-09  Simon Josefsson  <simon@josefsson.org>
27088
27089         * lib/sockets.h (gl_fd_to_handle): New function.
27090
27091         * tests/test-sockets.c: Call gl_fd_to_handle.
27092
27093 2009-02-09  Bruno Haible  <bruno@clisp.org>
27094
27095         * doc/havelib.texi: Document the conventions on bi-arch systems.
27096
27097 2009-02-08  Bruno Haible  <bruno@clisp.org>
27098
27099         Document the AC_LIB_LINKFLAGS macro.
27100         * doc/havelib.texi: New file, mostly written on 2005-05-24.
27101         * doc/gnulib.texi: Include it.
27102
27103 2009-02-08  Bruno Haible  <bruno@clisp.org>
27104
27105         Fix wrong order of sections, compared to TOC.
27106         * doc/gnulib.texi: Include relocatable-maint.texi after the
27107         "Regular expressions" node, not before.
27108
27109 2009-02-08  Bruno Haible  <bruno@clisp.org>
27110
27111         Tests for module 'unicase/totitle'.
27112         * modules/unicase/totitle-tests: New file.
27113
27114         Tests for module 'unicase/tolower'.
27115         * modules/unicase/tolower-tests: New file.
27116
27117         Tests for module 'unicase/toupper'.
27118         * modules/unicase/toupper-tests: New file.
27119         * tests/unicase/test-mapping-part1.h: New file.
27120         * tests/unicase/test-mapping-part2.h: New file.
27121
27122         New module 'unicase/totitle'.
27123         * modules/unicase/totitle: New file.
27124         * lib/unicase/totitle.c: New file.
27125
27126         New module 'unicase/tolower'.
27127         * modules/unicase/tolower: New file.
27128         * lib/unicase/tolower.c: New file.
27129
27130         New module 'unicase/toupper'.
27131         * modules/unicase/toupper: New file.
27132         * lib/unicase/toupper.c: New file.
27133         * lib/unicase/simple-mapping.h: New file.
27134
27135         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
27136         (mapping_table): New structure.
27137         (output_simple_mapping): New function.
27138         (main): Invoke output_simple_mapping_test and output_simple_mapping.
27139         * modules/gen-uni-tables (Description): Update.
27140         * lib/unicase/toupper.h: New file, automatically generated by
27141         gen-uni-tables.
27142         * lib/unicase/tolower.h: New file, automatically generated by
27143         gen-uni-tables.
27144         * lib/unicase/totitle.h: New file, automatically generated by
27145         gen-uni-tables.
27146         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
27147         gen-uni-tables.
27148         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
27149         gen-uni-tables.
27150         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
27151         gen-uni-tables.
27152
27153         New module 'unicase/base'.
27154         * modules/unicase/base: New file.
27155         * lib/unicase.h: New file.
27156
27157 2009-02-08  Bruno Haible  <bruno@clisp.org>
27158
27159         New module 'uniwbrk/ulc-wordbreaks'.
27160         * modules/uniwbrk/ulc-wordbreaks: New file.
27161         * lib/uniwbrk/ulc-wordbreaks.c: New file.
27162
27163         New module 'uniwbrk/u32-wordbreaks'.
27164         * modules/uniwbrk/u32-wordbreaks: New file.
27165         * lib/uniwbrk/u32-wordbreaks.c: New file.
27166
27167         New module 'uniwbrk/u16-wordbreaks'.
27168         * modules/uniwbrk/u16-wordbreaks: New file.
27169         * lib/uniwbrk/u16-wordbreaks.c: New file.
27170
27171         New module 'uniwbrk/u8-wordbreaks'.
27172         * modules/uniwbrk/u8-wordbreaks: New file.
27173         * lib/uniwbrk/u8-wordbreaks.c: New file.
27174         * lib/uniwbrk/u-wordbreaks.h: New file.
27175
27176         New module 'uniwbrk/table'.
27177         * modules/uniwbrk/table: New file.
27178         * lib/uniwbrk/wbrktable.h: New file.
27179         * lib/uniwbrk/wbrktable.c: New file.
27180
27181         New module 'uniwbrk/wordbreak-property'.
27182         * modules/uniwbrk/wordbreak-property: New file.
27183         * lib/uniwbrk/wordbreak-property.c: New file.
27184
27185         * lib/gen-uni-tables.c (WBP_*): New enum items.
27186         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
27187         (unicode_org_wbp): New variable.
27188         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
27189         New functions.
27190         (wbp_table): New structure.
27191         (output_wbp, output_wbrk_tables): New functions.
27192         (main): Accept additional argument. Invoke fill_org_wbp,
27193         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
27194         output_wbrk_tables.
27195         * modules/gen-uni-tables (Description): Update.
27196         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
27197         gen-uni-tables.
27198
27199         New module 'uniwbrk/base'.
27200         * modules/uniwbrk/base: New file.
27201         * lib/uniwbrk.h: New file.
27202
27203 2009-02-08  Bruno Haible  <bruno@clisp.org>
27204
27205         Update to Unicode 5.1.0.
27206         * lib/gen-uni-tables.c (is_property_alphabetic): Include
27207         U+2185..U+2188.
27208         (is_property_default_ignorable_code_point): Don't include characters
27209         of category Cc or Cs and not-a-characters.
27210         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
27211         U+0D79, U+109E, U+109F, U+A60C.
27212         * lib/unictype/bidi_of.h: Regenerated.
27213         * lib/unictype/blocks.h: Regenerated.
27214         * lib/unictype/categ_C.h: Regenerated.
27215         * lib/unictype/categ_Cf.h: Regenerated.
27216         * lib/unictype/categ_Cn.h: Regenerated.
27217         * lib/unictype/categ_L.h: Regenerated.
27218         * lib/unictype/categ_Ll.h: Regenerated.
27219         * lib/unictype/categ_Lm.h: Regenerated.
27220         * lib/unictype/categ_Lo.h: Regenerated.
27221         * lib/unictype/categ_Lu.h: Regenerated.
27222         * lib/unictype/categ_M.h: Regenerated.
27223         * lib/unictype/categ_Mc.h: Regenerated.
27224         * lib/unictype/categ_Me.h: Regenerated.
27225         * lib/unictype/categ_Mn.h: Regenerated.
27226         * lib/unictype/categ_N.h: Regenerated.
27227         * lib/unictype/categ_Nd.h: Regenerated.
27228         * lib/unictype/categ_Nl.h: Regenerated.
27229         * lib/unictype/categ_No.h: Regenerated.
27230         * lib/unictype/categ_P.h: Regenerated.
27231         * lib/unictype/categ_Pd.h: Regenerated.
27232         * lib/unictype/categ_Pe.h: Regenerated.
27233         * lib/unictype/categ_Pf.h: Regenerated.
27234         * lib/unictype/categ_Pi.h: Regenerated.
27235         * lib/unictype/categ_Po.h: Regenerated.
27236         * lib/unictype/categ_Ps.h: Regenerated.
27237         * lib/unictype/categ_S.h: Regenerated.
27238         * lib/unictype/categ_Sk.h: Regenerated.
27239         * lib/unictype/categ_Sm.h: Regenerated.
27240         * lib/unictype/categ_So.h: Regenerated.
27241         * lib/unictype/categ_of.h: Regenerated.
27242         * lib/unictype/combining.h: Regenerated.
27243         * lib/unictype/ctype_alnum.h: Regenerated.
27244         * lib/unictype/ctype_alpha.h: Regenerated.
27245         * lib/unictype/ctype_graph.h: Regenerated.
27246         * lib/unictype/ctype_lower.h: Regenerated.
27247         * lib/unictype/ctype_print.h: Regenerated.
27248         * lib/unictype/ctype_punct.h: Regenerated.
27249         * lib/unictype/ctype_upper.h: Regenerated.
27250         * lib/unictype/decdigit.h: Regenerated.
27251         * lib/unictype/digit.h: Regenerated.
27252         * lib/unictype/mirror.h: Regenerated.
27253         * lib/unictype/numeric.h: Regenerated.
27254         * lib/unictype/pr_alphabetic.h: Regenerated.
27255         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
27256         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
27257         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
27258         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
27259         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
27260         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
27261         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
27262         * lib/unictype/pr_combining.h: Regenerated.
27263         * lib/unictype/pr_dash.h: Regenerated.
27264         * lib/unictype/pr_decimal_digit.h: Regenerated.
27265         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
27266         * lib/unictype/pr_deprecated.h: Regenerated.
27267         * lib/unictype/pr_diacritic.h: Regenerated.
27268         * lib/unictype/pr_extender.h: Regenerated.
27269         * lib/unictype/pr_format_control.h: Regenerated.
27270         * lib/unictype/pr_grapheme_base.h: Regenerated.
27271         * lib/unictype/pr_grapheme_extend.h: Regenerated.
27272         * lib/unictype/pr_grapheme_link.h: Regenerated.
27273         * lib/unictype/pr_id_continue.h: Regenerated.
27274         * lib/unictype/pr_id_start.h: Regenerated.
27275         * lib/unictype/pr_ideographic.h: Regenerated.
27276         * lib/unictype/pr_ignorable_control.h: Regenerated.
27277         * lib/unictype/pr_lowercase.h: Regenerated.
27278         * lib/unictype/pr_math.h: Regenerated.
27279         * lib/unictype/pr_numeric.h: Regenerated.
27280         * lib/unictype/pr_other_alphabetic.h: Regenerated.
27281         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
27282         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
27283         * lib/unictype/pr_other_id_continue.h: Regenerated.
27284         * lib/unictype/pr_other_lowercase.h: Regenerated.
27285         * lib/unictype/pr_other_math.h: Regenerated.
27286         * lib/unictype/pr_punctuation.h: Regenerated.
27287         * lib/unictype/pr_sentence_terminal.h: Regenerated.
27288         * lib/unictype/pr_soft_dotted.h: Regenerated.
27289         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
27290         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
27291         * lib/unictype/pr_unified_ideograph.h: Regenerated.
27292         * lib/unictype/pr_uppercase.h: Regenerated.
27293         * lib/unictype/pr_xid_continue.h: Regenerated.
27294         * lib/unictype/pr_xid_start.h: Regenerated.
27295         * lib/unictype/pr_zero_width.h: Regenerated.
27296         * lib/unictype/scripts.h: Regenerated.
27297         * lib/unictype/scripts_byname.gperf: Regenerated.
27298         * lib/unictype/sy_java_ident.h: Regenerated.
27299         * lib/unilbrk/lbrkprop1.h: Regenerated.
27300         * lib/unilbrk/lbrkprop2.h: Regenerated.
27301         * tests/unictype/test-categ_C.c: Regenerated.
27302         * tests/unictype/test-categ_Cf.c: Regenerated.
27303         * tests/unictype/test-categ_Cn.c: Regenerated.
27304         * tests/unictype/test-categ_L.c: Regenerated.
27305         * tests/unictype/test-categ_Ll.c: Regenerated.
27306         * tests/unictype/test-categ_Lm.c: Regenerated.
27307         * tests/unictype/test-categ_Lo.c: Regenerated.
27308         * tests/unictype/test-categ_Lu.c: Regenerated.
27309         * tests/unictype/test-categ_M.c: Regenerated.
27310         * tests/unictype/test-categ_Mc.c: Regenerated.
27311         * tests/unictype/test-categ_Me.c: Regenerated.
27312         * tests/unictype/test-categ_Mn.c: Regenerated.
27313         * tests/unictype/test-categ_N.c: Regenerated.
27314         * tests/unictype/test-categ_Nd.c: Regenerated.
27315         * tests/unictype/test-categ_Nl.c: Regenerated.
27316         * tests/unictype/test-categ_No.c: Regenerated.
27317         * tests/unictype/test-categ_P.c: Regenerated.
27318         * tests/unictype/test-categ_Pd.c: Regenerated.
27319         * tests/unictype/test-categ_Pe.c: Regenerated.
27320         * tests/unictype/test-categ_Pf.c: Regenerated.
27321         * tests/unictype/test-categ_Pi.c: Regenerated.
27322         * tests/unictype/test-categ_Po.c: Regenerated.
27323         * tests/unictype/test-categ_Ps.c: Regenerated.
27324         * tests/unictype/test-categ_S.c: Regenerated.
27325         * tests/unictype/test-categ_Sk.c: Regenerated.
27326         * tests/unictype/test-categ_Sm.c: Regenerated.
27327         * tests/unictype/test-categ_So.c: Regenerated.
27328         * tests/unictype/test-ctype_alnum.c: Regenerated.
27329         * tests/unictype/test-ctype_alpha.c: Regenerated.
27330         * tests/unictype/test-ctype_graph.c: Regenerated.
27331         * tests/unictype/test-ctype_lower.c: Regenerated.
27332         * tests/unictype/test-ctype_print.c: Regenerated.
27333         * tests/unictype/test-ctype_punct.c: Regenerated.
27334         * tests/unictype/test-ctype_upper.c: Regenerated.
27335         * tests/unictype/test-decdigit.h: Regenerated.
27336         * tests/unictype/test-digit.h: Regenerated.
27337         * tests/unictype/test-numeric.h: Regenerated.
27338         * tests/unictype/test-pr_alphabetic.c: Regenerated.
27339         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
27340         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
27341         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
27342         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
27343         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
27344         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
27345         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
27346         * tests/unictype/test-pr_combining.c: Regenerated.
27347         * tests/unictype/test-pr_dash.c: Regenerated.
27348         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
27349         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
27350         * tests/unictype/test-pr_deprecated.c: Regenerated.
27351         * tests/unictype/test-pr_diacritic.c: Regenerated.
27352         * tests/unictype/test-pr_extender.c: Regenerated.
27353         * tests/unictype/test-pr_format_control.c: Regenerated.
27354         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
27355         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
27356         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
27357         * tests/unictype/test-pr_id_continue.c: Regenerated.
27358         * tests/unictype/test-pr_id_start.c: Regenerated.
27359         * tests/unictype/test-pr_ideographic.c: Regenerated.
27360         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
27361         * tests/unictype/test-pr_lowercase.c: Regenerated.
27362         * tests/unictype/test-pr_math.c: Regenerated.
27363         * tests/unictype/test-pr_numeric.c: Regenerated.
27364         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
27365         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
27366         Regenerated.
27367         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
27368         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
27369         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
27370         * tests/unictype/test-pr_other_math.c: Regenerated.
27371         * tests/unictype/test-pr_punctuation.c: Regenerated.
27372         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
27373         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
27374         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
27375         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
27376         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
27377         * tests/unictype/test-pr_uppercase.c: Regenerated.
27378         * tests/unictype/test-pr_xid_continue.c: Regenerated.
27379         * tests/unictype/test-pr_xid_start.c: Regenerated.
27380         * tests/unictype/test-pr_zero_width.c: Regenerated.
27381
27382         Update to Unicode 5.1.0.
27383         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
27384         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
27385         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
27386         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
27387         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
27388         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
27389         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
27390         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
27391         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
27392         (nonspacing_table_ind): Update.
27393         * tests/uniwidth/test-uc_width2.sh: Update expected result.
27394
27395         Update to Unicode 5.1.0.
27396         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
27397         code transform.
27398         * lib/uniname/uniname.c (unicode_character_name,
27399         unicode_name_character): Add the range 0x1Fxxx to the code transform.
27400         * lib/uniname/uninames.h: Regenerated.
27401         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
27402
27403 2009-02-07  Bruno Haible  <bruno@clisp.org>
27404
27405         Merge gen-ctype and gen-lbrk into a single program.
27406         * lib/gen-uni-tables.c: New file, incorporating
27407         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
27408         Add directory prefixes to the names of the generated files.
27409         * lib/unictype/gen-ctype.c: Remove file.
27410         * lib/unilbrk/gen-lbrk.c: Remove file.
27411         * modules/gen-uni-tables: New file.
27412         * modules/unictype/gen-ctype: Remove file.
27413         * modules/unilbrk/gen-lbrk: Remove file.
27414
27415 2009-02-07  Bruno Haible  <bruno@clisp.org>
27416
27417         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
27418
27419         New module 'unistr/u32-strcoll'.
27420         * modules/unistr/u32-strcoll: New file.
27421         * lib/unistr/u32-strcoll.c: New file.
27422
27423         New module 'unistr/u16-strcoll'.
27424         * modules/unistr/u16-strcoll: New file.
27425         * lib/unistr/u16-strcoll.c: New file.
27426
27427         New module 'unistr/u8-strcoll'.
27428         * modules/unistr/u8-strcoll: New file.
27429         * lib/unistr/u8-strcoll.c: New file.
27430         * lib/unistr/u-strcoll.h: New file.
27431
27432 2009-02-07  Bruno Haible  <bruno@clisp.org>
27433
27434         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
27435         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
27436         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
27437         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
27438         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
27439         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
27440
27441 2009-02-07  Bruno Haible  <bruno@clisp.org>
27442
27443         Make 64-bit clean.
27444         * lib/unictype/gen-ctype.c (output_predicate, output_category,
27445         output_combclass, output_bidi_category, output_decimal_digit,
27446         output_digit, output_numeric, output_mirror, output_scripts,
27447         output_ident_category): Use proper width specifier in format strings.
27448
27449 2009-02-07  Bruno Haible  <bruno@clisp.org>
27450
27451         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
27452         failure behaviour.
27453
27454 2009-02-07  Jim Meyering  <meyering@redhat.com>
27455
27456         regex: avoid compilation failure with upcoming gcc-4.4
27457         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
27458         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
27459         "... error: integer overflow in preprocessor expression".
27460
27461 2009-02-05  Ben Pfaff  <blp@gnu.org>
27462
27463         Fix link errors on Windows when close module is used.
27464         * modules/close: Add $(LIB_CLOSE) to Link section.
27465         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
27466         $(LIB_CLOSE) on Windows.
27467
27468 2009-02-05  Jim Meyering  <meyering@redhat.com>
27469
27470         still avoid unused-parameter warnings, but do it cleanly
27471         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
27472         (get_fs_usage): Cast to void instead.
27473         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
27474         (dev_from_mount_options, read_file_system_list): Cast to void.
27475         Prompted by Bruno Haible.
27476
27477 2009-02-04  Jim Meyering  <meyering@redhat.com>
27478
27479         fsusage.c: correct copyright year
27480         * lib/fsusage.c: Reflect year in which the change is pushed into
27481
27482         avoid misc. warnings
27483         * lib/fsusage.c (UNUSED_PARAM): Define.
27484         (get_fs_usage): Mark parameter "disk" as unused.
27485         * lib/getugroups.c (getgrent): Use "void" in prototype.
27486         * lib/mountlist.c: Mark unused parameters.
27487         (read_file_system_list): Declare a local with "const".
27488         * lib/nanosleep.c (getnow): Declare static.
27489         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
27490
27491         dirfd: set errno upon failure
27492         * lib/dirfd.c: Include <errno.h>.
27493         Set errno to ENOTSUP when returning -1.
27494         * modules/dirfd (Depends-on): Add errno.
27495         Suggested by John Kodis <kodis@comcast.net>.
27496
27497 2009-02-01  Bruno Haible  <bruno@clisp.org>
27498
27499         Don't assume sizeof (long) >= sizeof (void *).
27500         * lib/memcmp.c: Include stdint.h.
27501         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
27502         srcp2 to 'const byte *'.
27503         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
27504         types to uintptr_t.
27505         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
27506         * modules/memcmp (Depends-on): Add stdint.
27507         Reported by Ozkan Sezer <sezeroz@gmail.com>.
27508
27509 2009-01-30  Eric Blake  <ebb9@byu.net>
27510
27511         fix more require-before-expand issues
27512         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
27513         expand, AC_PROG_AWK.
27514         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
27515
27516 2009-01-28  Eric Blake  <ebb9@byu.net>
27517
27518         version-etc: use consistent URL formatting
27519         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
27520         Improve formatting.  Use fputs for string without %.
27521
27522 2009-01-28  Jim Meyering  <meyering@redhat.com>
27523
27524         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
27525         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
27526         "underquoted definition of NAME" from autoconf-2.59.
27527
27528 2009-01-28  Bruno Haible  <bruno@clisp.org>
27529
27530         * doc/gnulib.texi: Add "Obsolete modules" to index.
27531
27532 2009-01-28  Jim Meyering  <meyering@redhat.com>
27533
27534         useless-if-before-free: recognize more variants
27535         * build-aux/useless-if-before-free: Also recognize e.g.,
27536         if (NULL != p) free (p);
27537
27538 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
27539
27540         test-getaddrinfo: skip (don't fail) this test when there's no network
27541         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
27542         on the presumption that it means you lack network access.
27543
27544 2009-01-26  Jim Meyering  <meyering@redhat.com>
27545
27546         fflush: avoid warnings on modern systems
27547         * lib/fflush.c (rpl_fflush): Move declarations of locals,
27548         pos and result, into scopes where they're used.
27549
27550 2009-01-26  Eric Blake  <ebb9@byu.net>
27551
27552         Silence warning reintroduced by recent extensions patch.
27553         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
27554         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
27555         autoconf.
27556
27557         Backport improved autoconf semantics of AC_DEFUN_ONCE.
27558         * m4/00gnulib.m4: New file.
27559         * gnulib-tool (func_get_filelist): Always use it.
27560         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
27561         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
27562
27563 2009-01-25  Bruno Haible  <bruno@clisp.org>
27564
27565         Make test-quotearg work on MacOS X and AIX.
27566         * tests/test-quotearg.sh: New file.
27567         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
27568         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
27569         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
27570         include <libintl.h>.
27571         (fake_locale): Remove variable.
27572         (gettext, dgettext, dcgettext): Remove functions.
27573         (main): Instead of setting a fake locale, set a real locale. Call
27574         textdomain and bindtextdomain.
27575         * modules/quotearg-tests (Files): Add the new files.
27576         (Depends-on): Add gettext, setenv, unsetenv.
27577         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
27578         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
27579         Augment TESTS_ENVIRONMENT.
27580
27581 2009-01-25  Bruno Haible  <bruno@clisp.org>
27582
27583         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
27584         fr_FR.ISO8859-1 locale on MacOS X.
27585         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
27586         ja_JP.eucJP locale on MacOS X.
27587         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
27588         zh_CN.GB18030 locale on MacOS X.
27589
27590 2009-01-25  Bruno Haible  <bruno@clisp.org>
27591
27592         Avoid link errors on MacOS X 10.3.
27593         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
27594         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27595
27596 2009-01-25  Bruno Haible  <bruno@clisp.org>
27597
27598         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27599         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
27600         * modules/pipe (Files): Remove m4/posix_spawn.m4.
27601         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27602         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
27603         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27604         posix_spawnattr_init, posix_spawnattr_setsigmask,
27605         posix_spawnattr_setflags, posix_spawnattr_destroy.
27606
27607         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
27608         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
27609         * modules/execute (Files): Remove m4/posix_spawn.m4.
27610         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
27611         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
27612         posix_spawnattr_init, posix_spawnattr_setsigmask,
27613         posix_spawnattr_setflags, posix_spawnattr_destroy.
27614
27615 2009-01-25  Bruno Haible  <bruno@clisp.org>
27616
27617         * lib/glthread/threadlib.c: Include <stdlib.h>.
27618
27619 2009-01-25  Bruno Haible  <bruno@clisp.org>
27620
27621         * lib/glthread/threadlib.c (dummy): New declaration.
27622
27623 2009-01-25  Bruno Haible  <bruno@clisp.org>
27624
27625         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
27626         multibyte characters also for the GB18030 encoding. Don't crash when
27627         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
27628
27629 2009-01-25  Bruno Haible  <bruno@clisp.org>
27630
27631         Avoid redefining 'struct random_data' on OSF/1 5.1.
27632         * lib/stdlib.in.h: Include <random.h> if it exists.
27633         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
27634         HAVE_RANDOM_H. Include <random.h> when testing whether
27635         'struct random_data' exists.
27636         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
27637
27638 2009-01-25  Bruno Haible  <bruno@clisp.org>
27639
27640         Don't install charset.alias on MacOS X >= 10.3.
27641         * lib/localcharset.c (DARWIN7): New macro.
27642         (get_charset_aliases): Hardcode the result for Darwin7.
27643         * modules/localcharset (install-exec-local): Don't install
27644         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
27645
27646 2009-01-25  Bruno Haible  <bruno@clisp.org>
27647
27648         Don't install charset.alias on mingw and Cygwin.
27649         * modules/localcharset (install-exec-local): Don't install
27650         charset.alias on mingw and Cygwin, if the file does not yet exist.
27651         The result for these platforms is hardcoded in localcharset.c.
27652
27653 2009-01-25  Bruno Haible  <bruno@clisp.org>
27654
27655         Make it possible again to use AC_GNU_SOURCE together with gnulib.
27656         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
27657         before requiring AC_USE_SYSTEM_EXTENSIONS.
27658
27659 2009-01-25  Jim Meyering  <meyering@redhat.com>
27660
27661         c-strtod: avoid warnings
27662         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
27663         "assignment discards qualifiers from pointer target type" warnings.
27664
27665 2009-01-24  Bruno Haible  <bruno@clisp.org>
27666
27667         Add support for non-UTF-8 locales on MacOS X.
27668         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
27669         canonical encodings. For Darwin 7 and newer, don't map traditional
27670         encodings to UTF-8.
27671         Reported by Vincent Lefevre <vincent@vinc17.org>
27672         at <http://savannah.gnu.org/bugs/?25235>.
27673
27674 2009-01-24  Bruno Haible  <bruno@clisp.org>
27675
27676         * doc/gnulib.texi (Obsolete modules): New section.
27677         Reported by Mike Frysinger <vapier@gentoo.org>.
27678
27679 2009-01-24  Bruno Haible  <bruno@clisp.org>
27680
27681         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
27682         (%.dvi): New rule.
27683
27684 2009-01-24  Bruno Haible  <bruno@clisp.org>
27685
27686         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
27687         Reported by Eric Blake.
27688
27689 2009-01-24  Bruno Haible  <bruno@clisp.org>
27690
27691         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
27692         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
27693         Reported by Gary V. Vaughan <gary@gnu.org>.
27694
27695 2009-01-24  Bruno Haible  <bruno@clisp.org>
27696
27697         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
27698
27699 2009-01-23  Bruno Haible  <bruno@clisp.org>
27700
27701         Make c-strtod, c-strtold usable in libraries.
27702         * lib/c-strtod.c: Include string.h instead of xalloc.h.
27703         (C_STRTOD): Call strdup instead of xstrdup.
27704         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
27705         * modules/c-strtold (Depends-on): Likewise.
27706         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
27707         * NEWS: Mention the change.
27708         Reported by Michael Gold <mgold@ncf.ca>.
27709
27710 2009-01-23  Jim Meyering  <meyering@redhat.com>
27711
27712         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
27713         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
27714         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
27715
27716 2009-01-23  Simon Josefsson  <simon@josefsson.org>
27717
27718         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
27719         GNU CoreUtils.
27720         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
27721         * modules/version-etc (Description): Update.
27722
27723 2009-01-22  Bruno Haible  <bruno@clisp.org>
27724
27725         Cache the C locale object.
27726         * lib/c-strtod.c (c_locale_cache): New variable.
27727         (c_locale): New function.
27728         (C_STRTOD): Use it, and don't call freelocale.
27729         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
27730         Suggested by Paolo Bonzini.
27731
27732 2009-01-21  Bruno Haible  <bruno@clisp.org>
27733
27734         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
27735         conditions other than overflow.
27736
27737 2009-01-21  Bruno Haible  <bruno@clisp.org>
27738
27739         * lib/c-strtod.c: Include errno.h.
27740         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
27741         value from STRTOD_L and STRTOD.
27742
27743 2009-01-21  Bruno Haible  <bruno@clisp.org>
27744         and Jim Meyering  <meyering@redhat.com>
27745
27746         nanosleep: skip configure test (fail it) for apple universal builds
27747         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
27748         universal builds, assume that nanosleep does not work.
27749         * modules/nanosleep (Depends-on): Add multiarch.
27750
27751         mktime: skip configure test (fail it) for apple universal builds
27752         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
27753         universal builds, assume that mktime does not work.
27754         * modules/mktime (Depends-on): Add multiarch.
27755
27756 2009-01-21  Eric Blake  <ebb9@byu.net>
27757
27758         multiarch: avoid expand-before-require warning
27759         * modules/multiarch (configure.ac): Require, rather than expand,
27760         gl_MULTIARCH.
27761         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
27762         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
27763         enforce that all clients require it.  Partial reversion of
27764         2008-12-29 patch.
27765
27766         error: avoid expand-before-require warning
27767         * modules/errno (configure.ac): Require, rather than expand,
27768         gl_HEADER_ERRNO_H.
27769         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
27770         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
27771         enforce that all clients require it.
27772
27773         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
27774         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
27775         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
27776         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
27777
27778 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
27779
27780         Revert:
27781         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27782
27783         regex: do not depend on obsolete modules.
27784         * modules/regex: Remove memcmp and memmove.
27785
27786 2009-01-20  Bruno Haible  <bruno@clisp.org>
27787
27788         Make the 'link' module link on Windows NT 4.
27789         * lib/link.c (_WIN32_WINNT): Don't define.
27790         (CreateHardLinkFuncType): New type.
27791         (CreateHardLinkFunc, initialized): New variables.
27792         (initialize): New function.
27793         (link): Invoke CreateHardLink indirectly through the function pointer.
27794
27795 2009-01-20  Bruno Haible  <bruno@clisp.org>
27796
27797         Fix compilation failure on mingw.
27798         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
27799
27800 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
27801
27802         * doc/c-strtod.texi: Mention a couple of restrictions.
27803
27804 2009-01-20  Jim Meyering  <meyering@redhat.com>
27805
27806         gettimeofday: move more declarations out of functions
27807         * lib/gettimeofday.c: Move extern declarations of tzset and
27808         gmtime out of containing functions.  Prompted by Bruno Haible.
27809
27810 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27811
27812         regex: do not depend on obsolete modules.
27813         * modules/regex: Remove memcmp and memmove.
27814
27815 2009-01-19  Bruno Haible  <bruno@clisp.org>
27816
27817         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
27818         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
27819         gl_BIGENDIAN, not AC_C_BIGENDIAN.
27820         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
27821         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
27822
27823 2009-01-19  Bruno Haible  <bruno@clisp.org>
27824
27825         * tests/test-link.c: Include <errno.h>.
27826         (main): Exit with code 77 when a hard link cannot be created due to
27827         the file system.
27828         * tests/test-link.sh: Skip test when a hard link cannot be created due
27829         to the file system.
27830         Suggested by Eric Blake.
27831
27832 2009-01-19  Martin Lambers  <marlam@marlam.de>
27833
27834         * modules/link-tests: New file.
27835         * tests/test-link.sh: New file.
27836         * tests/test-link.c: New file.
27837
27838 2009-01-19  Eric Blake  <ebb9@byu.net>
27839
27840         doc: mention another function added in cygwin 1.7.0
27841         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
27842         Another new function in cygwin 1.7.
27843
27844 2009-01-19  Bruno Haible  <bruno@clisp.org>
27845
27846         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
27847         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
27848         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
27849         gl_BIGENDIAN, not AC_C_BIGENDIAN.
27850         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27851         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
27852         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27853         * m4/md4.m4 (gl_MD4): Likewise.
27854         * m4/md5.m4 (gl_MD5): Likewise.
27855         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
27856         * m4/sha1.m4 (gl_SHA1): Likewise.
27857         * m4/sha256.m4 (gl_SHA256): Likewise.
27858         * m4/sha512.m4 (gl_SHA512): Likewise.
27859
27860 2009-01-19  Bruno Haible  <bruno@clisp.org>
27861
27862         * modules/uniname/uniname-tests (Depends-on): Add progname.
27863         * tests/uniname/test-uninames.c: Include progname.h.
27864         (main): Call set_program_name.
27865
27866         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
27867         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
27868         (main): Call set_program_name.
27869
27870         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
27871         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
27872         (main): Call set_program_name.
27873
27874         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
27875         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
27876         (main): Call set_program_name.
27877
27878         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
27879         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
27880         (main): Call set_program_name.
27881
27882         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
27883         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
27884         (main): Call set_program_name.
27885
27886         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
27887         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
27888         (main): Call set_program_name.
27889
27890         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
27891         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
27892         (main): Call set_program_name.
27893
27894         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
27895         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
27896         (main): Call set_program_name.
27897
27898 2009-01-19  Eric Blake  <ebb9@byu.net>
27899
27900         test-unistd: test previous patch
27901         * tests/test-unistd.c: Test *_FILENO macros.
27902
27903         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
27904         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27905         Guarantee a definition.
27906         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
27907         * modules/unistd-safer (Depends-on): Add dependency on unistd.
27908         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
27909         * lib/dup-safer.c (STDERR_FILENO): Likewise.
27910         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27911         Likewise.
27912         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
27913         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
27914         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
27915         Likewise.
27916         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
27917         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
27918         (STDERR_FILENO): Likewise.
27919         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
27920         (STDERR_FILENO): Likewise.
27921         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
27922         (STDERR_FILENO): Likewise.
27923         Reported by Elbert Pol.
27924
27925 2009-01-19  Eric Blake  <ebb9@byu.net>
27926
27927         doc: mention more functions added in cygwin 1.7.0
27928         * doc/posix-functions/abort.texi (abort): Update wording related
27929         to cygwin.
27930         * doc/posix-functions/daylight.texi (daylight): Likewise.
27931         * doc/posix-functions/optarg.texi (optarg): Likewise.
27932         * doc/posix-functions/optarg.texi (opterr): Likewise.
27933         * doc/posix-functions/optarg.texi (optind): Likewise.
27934         * doc/posix-functions/optarg.texi (optopt): Likewise.
27935         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
27936         worked in 1.5.x, and was withdrawn in 1.7.
27937         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
27938         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
27939         cygwin versions.
27940         * doc/posix-functions/perror.texi (perror): Likewise.
27941         * doc/posix-functions/printf.texi (printf): Likewise.
27942         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
27943         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
27944         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
27945         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
27946         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27947         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
27948         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27949         Likewise.
27950         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27951         Likewise.
27952         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
27953         this function.
27954         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
27955         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
27956         Likewise.
27957         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
27958         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
27959         * doc/posix-functions/confstr.texi (confstr): Likewise.
27960         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
27961         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
27962         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
27963         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
27964         * doc/posix-functions/fputws.texi (fputws): Likewise.
27965         * doc/posix-functions/fwide.texi (fwide): Likewise.
27966         * doc/posix-functions/getwc.texi (getwc): Likewise.
27967         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
27968         * doc/posix-functions/putwc.texi (putwc): Likewise.
27969         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
27970         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
27971         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
27972         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
27973         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
27974         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
27975         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
27976         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
27977         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
27978         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
27979         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
27980
27981 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
27982
27983         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
27984         * lib/ioctl.c: Include <sys/ioctl.h>.
27985
27986 2009-01-19  Simon Josefsson  <simon@josefsson.org>
27987
27988         * modules/getdate-tests (Depends-on): Add progname.
27989         * tests/test-getdate.c: Use progname module, to avoid link errors
27990         on non-glibc systems.
27991
27992 2009-01-18  Simon Josefsson  <simon@josefsson.org>
27993
27994         * modules/filenamecat-tests (Depends-on): Add progname.
27995         * modules/fstrcmp-tests (Depends-on): Likewise.
27996
27997         * tests/test-filenamecat.c: Use progname module, to avoid link
27998         errors on non-glibc systems.
27999         * tests/test-fstrcmp.c: Likewise.
28000
28001 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
28002
28003         gettimeofday: avoid warning: nested extern declaration of 'localtime'
28004         * lib/gettimeofday.c: Move extern declaration out of function.
28005
28006 2009-01-18  Bruno Haible  <bruno@clisp.org>
28007
28008         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
28009         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
28010         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
28011
28012 2009-01-18  Bruno Haible  <bruno@clisp.org>
28013
28014         * lib/strftime.c (MEMPCPY): Remove unused macro.
28015         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
28016
28017 2009-01-18  Martin Lambers  <marlam@marlam.de>
28018
28019         New module 'link'.
28020         * lib/unistd.in.h (link): New declaration.
28021         * lib/link.c: New file.
28022         * m4/link.m4: New file.
28023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
28024         HAVE_LINK.
28025         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
28026         * modules/link: New file.
28027         * doc/posix-functions/link.texi: Mention the new module.
28028
28029 2009-01-18  Bruno Haible  <bruno@clisp.org>
28030
28031         * tests/test-avltree_list.c (main): Call set_program_name.
28032         * tests/test-avltree_oset.c (main): Likewise.
28033         * tests/test-obstack-printf.c: Include progname.h.
28034         (main): Call set_program_name.
28035         * tests/test-quotearg.c: Include progname.h.
28036         (main): Call set_program_name.
28037         * tests/test-xmemdup0.c: Include progname.h.
28038         (main): Call set_program_name.
28039
28040 2009-01-18  Bruno Haible  <bruno@clisp.org>
28041
28042         New module 'alphasort'.
28043         * lib/dirent.in.h (alphasort): New declaration.
28044         * lib/alphasort.c: New file, from glibc with modifications.
28045         * m4/alphasort.m4: New file.
28046         * modules/alphasort: New file.
28047         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
28048         HAVE_ALPHASORT.
28049         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
28050         HAVE_ALPHASORT.
28051         * doc/posix-functions/alphasort.texi: Mention the new module and the
28052         portability problems.
28053
28054 2009-01-18  Bruno Haible  <bruno@clisp.org>
28055
28056         New module 'scandir'.
28057         * lib/dirent.in.h (scandir): New declaration.
28058         * lib/scandir.c: New file, from glibc with modifications.
28059         * m4/scandir.m4: New file.
28060         * modules/scandir: New file.
28061         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
28062         HAVE_SCANDIR.
28063         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
28064         HAVE_SCANDIR.
28065         * doc/posix-functions/scandir.texi: Mention the new module and the
28066         portability problems.
28067
28068 2009-01-17  Bruno Haible  <bruno@clisp.org>
28069
28070         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
28071         Update documentation.
28072         (func_remove_suffix): Escape all dots in the suffix. Update
28073         documentation.
28074         (func_filter_filelist): Update documentation.
28075         Reported by Ralf Wildenhues.
28076
28077 2009-01-17  Bruno Haible  <bruno@clisp.org>
28078
28079         * modules/dprintf-posix-tests: New file.
28080         * tests/test-dprintf-posix.sh: New file.
28081         * tests/test-dprintf-posix.c: New file.
28082
28083         New modules 'dprintf', 'dprintf-posix'.
28084         * lib/stdio.in.h (dprintf): New declaration.
28085         * lib/dprintf.c: New file.
28086         * m4/dprintf.m4: New file.
28087         * m4/dprintf-posix.m4: New file.
28088         * modules/dprintf: New file.
28089         * modules/dprintf-posix: New file.
28090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
28091         HAVE_DPRINTF, REPLACE_DPRINTF.
28092         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
28093         HAVE_DPRINTF, REPLACE_DPRINTF.
28094         * doc/posix-functions/dprintf.texi: Mention the new modules.
28095
28096 2009-01-17  Bruno Haible  <bruno@clisp.org>
28097
28098         * modules/vdprintf-posix-tests: New file.
28099         * tests/test-vdprintf-posix.sh: New file.
28100         * tests/test-vdprintf-posix.c: New file.
28101
28102         New modules 'vdprintf', 'vdprintf-posix'.
28103         * lib/stdio.in.h (vdprintf): New declaration.
28104         * lib/vdprintf.c: New file.
28105         * m4/vdprintf.m4: New file.
28106         * m4/vdprintf-posix.m4: New file.
28107         * modules/vdprintf: New file.
28108         * modules/vdprintf-posix: New file.
28109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
28110         HAVE_VDPRINTF, REPLACE_VDPRINTF.
28111         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
28112         HAVE_VDPRINTF, REPLACE_VDPRINTF.
28113         * doc/posix-functions/vdprintf.texi: Mention the new modules.
28114
28115 2009-01-17  Bruno Haible  <bruno@clisp.org>
28116
28117         Fix replacement of fopen on mingw.
28118         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
28119         mingw.
28120
28121 2009-01-17  Bruno Haible  <bruno@clisp.org>
28122
28123         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
28124         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
28125
28126 2009-01-17  Bruno Haible  <bruno@clisp.org>
28127
28128         Avoid test-fflush2.sh failure on mingw.
28129         * tests/test-fflush2.c: Include binary-io.h.
28130         (main): Put standard input into binary mode.
28131         * modules/fflush-tests (Depends-on): Add binary-io.
28132
28133 2009-01-17  Bruno Haible  <bruno@clisp.org>
28134
28135         * lib/wchar.in.h: In another particular situation, include only the
28136         system's <wchar.h> file.
28137         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
28138         Reported by Albert Chin-A-Young <china@thewrittenword.com>
28139         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
28140
28141 2009-01-17  Bruno Haible  <bruno@clisp.org>
28142
28143         Support for stripping executables in --enable-relocatable.
28144         * build-aux/install-reloc: Expect one more argument, or an environment
28145         variable RELOC_STRIP_PROG. If set, strip the destination program and
28146         its wrapper.
28147         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
28148         RELOC_STRIP_PROG.
28149         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
28150         to set RELOCATABLE_STRIP.
28151         * NEWS: Mention the new Makefile requirement.
28152
28153 2009-01-17  Bruno Haible  <bruno@clisp.org>
28154
28155         * build-aux/install-reloc: Remove debugging information left over by
28156         C compiler on MacOS X.
28157
28158 2009-01-17  Bruno Haible  <bruno@clisp.org>
28159
28160         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
28161         * lib/progreloc.c (find_executable): Fix type of pointer passed to
28162         _NSGetExecutablePath.
28163
28164 2009-01-16  Jim Meyering  <meyering@redhat.com>
28165
28166         strerror: avoid warnings about discarding "const"
28167         * lib/strerror.c (rpl_strerror): Instead of returning a const
28168         string from each and every "case", use a variable, and add a single
28169         cast after the switch.
28170
28171 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
28172
28173         * lib/arpa_inet.in.h: Add extern "C" block for C++.
28174
28175 2009-01-16  Bruno Haible  <bruno@clisp.org>
28176
28177         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
28178         array initializer syntax that also works in C++ mode.
28179         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28180
28181 2009-01-16  Jim Meyering  <meyering@redhat.com>
28182
28183         poll: suppress a warning
28184         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
28185         to ignore "...unsigned expression < 0 is always false" warnings.
28186
28187 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
28188
28189         poll: remove declarations of unused variables
28190         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
28191         sockbuf and optlen.
28192
28193 2009-01-15  Bruno Haible  <bruno@clisp.org>
28194
28195         Make fflush-after-ungetc POSIX compliant on BSD systems.
28196         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
28197         (clear_ungetc_buffer): Implement also for other systems.
28198         (rpl_fflush): On glibc systems, invoke
28199         clear_ungetc_buffer_preserving_position. Otherwise, invoke
28200         clear_ungetc_buffer after fetching the stream's position, not before.
28201
28202 2009-01-15  Bruno Haible  <bruno@clisp.org>
28203
28204         Make fflush-after-ungetc POSIX compliant on glibc systems.
28205         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
28206         after ungetc.
28207         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
28208         (rpl_fflush): On glibc systems, simply call the system's fflush
28209         function after clearing the ungetc buffer.
28210         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
28211         Instead, lseek only to the end of file, then use the system's fseeko
28212         for the rest. On glibc systems, reset the EOF indicator bit.
28213
28214 2009-01-15  Jim Meyering  <meyering@redhat.com>
28215
28216         openmp.m4: revert quote-adding change, for portability to older autoconf
28217         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
28218         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
28219         Simon Josefsson noticed the problem when using autoconf-2.61.
28220
28221 2009-01-15  Bruno Haible  <bruno@clisp.org>
28222
28223         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
28224         * tests/test-fflush2.c (ASSERT): Always fail.
28225         (main): Add two tests for fflush() after ungetc(), taking into account
28226         the Austin Group's clarification.
28227         Suggested by Eric Blake.
28228
28229 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
28230
28231         mktime.m4: remove K&R-style function prototypes
28232         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
28233         for the Sun C++ compiler.
28234
28235 2009-01-14  Bruno Haible  <bruno@clisp.org>
28236
28237         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
28238         while including <wchar.h>.
28239         * lib/wchar.in.h: In two particular situations on HP-UX, include only
28240         the system's <wchar.h> file.
28241         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28242
28243 2009-01-14  Bruno Haible  <bruno@clisp.org>
28244
28245         * m4/csharp.m4: Don't mention gettext on the serial number line.
28246         * m4/csharpexec.m4: Likewise.
28247         * m4/eaccess.m4: Likewise.
28248         * m4/javaexec.m4: Likewise.
28249         * m4/sig_atomic_t.m4: Likewise.
28250         * m4/tmpdir.m4: Likewise.
28251         * m4/intldir.m4: Bump gettext version.
28252         * m4/lib-ld.m4: Likewise.
28253
28254 2009-01-14  Bruno Haible  <bruno@clisp.org>
28255
28256         * lib/progname.c (set_program_name): Add more comments.
28257         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28258
28259 2009-01-14  Simon Josefsson  <simon@josefsson.org>
28260
28261         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
28262         were sys/stat.h does not define it.
28263
28264 2009-01-14  Jim Meyering  <meyering@redhat.com>
28265
28266         many *.m4 files: improve m4 quoting
28267         99% of this change was performed by running the following commands:
28268         git ls-files | grep '\.m4$' | xargs perl -pi \
28269           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
28270           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
28271           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
28272           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
28273         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
28274         The remainder were to add Copyright dates, increment serial numbers,
28275         undo some changes in comments, exclude m4/intl.m4, and add quotes
28276         around the "1" in ",1" where the unusual spacing prohibited the
28277         above regexps from doing the job.  For more details, see
28278         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
28279         * m4/acl.m4: Modified.
28280         * m4/afs.m4: Likewise.
28281         * m4/alloca.m4: Likewise.
28282         * m4/argp.m4: Likewise.
28283         * m4/argz.m4: Likewise.
28284         * m4/atexit.m4: Likewise.
28285         * m4/bison-i18n.m4: Likewise.
28286         * m4/bison.m4: Likewise.
28287         * m4/byteswap.m4: Likewise.
28288         * m4/c-stack.m4: Likewise.
28289         * m4/c-strtod.m4: Likewise.
28290         * m4/calloc.m4: Likewise.
28291         * m4/canonicalize-lgpl.m4: Likewise.
28292         * m4/chown.m4: Likewise.
28293         * m4/clock_time.m4: Likewise.
28294         * m4/codeset.m4: Likewise.
28295         * m4/copy-file.m4: Likewise.
28296         * m4/csharp.m4: Likewise.
28297         * m4/csharpcomp.m4: Likewise.
28298         * m4/csharpexec.m4: Likewise.
28299         * m4/d-ino.m4: Likewise.
28300         * m4/d-type.m4: Likewise.
28301         * m4/dirfd.m4: Likewise.
28302         * m4/double-slash-root.m4: Likewise.
28303         * m4/eaccess.m4: Likewise.
28304         * m4/eealloc.m4: Likewise.
28305         * m4/environ.m4: Likewise.
28306         * m4/errno_h.m4: Likewise.
28307         * m4/euidaccess.m4: Likewise.
28308         * m4/execute.m4: Likewise.
28309         * m4/fatal-signal.m4: Likewise.
28310         * m4/fchdir.m4: Likewise.
28311         * m4/fcntl_h.m4: Likewise.
28312         * m4/fileblocks.m4: Likewise.
28313         * m4/filenamecat.m4: Likewise.
28314         * m4/findprog.m4: Likewise.
28315         * m4/flexmember.m4: Likewise.
28316         * m4/fnmatch.m4: Likewise.
28317         * m4/fopen.m4: Likewise.
28318         * m4/fpending.m4: Likewise.
28319         * m4/fprintf-posix.m4: Likewise.
28320         * m4/free.m4: Likewise.
28321         * m4/frexp.m4: Likewise.
28322         * m4/frexpl.m4: Likewise.
28323         * m4/fsusage.m4: Likewise.
28324         * m4/ftruncate.m4: Likewise.
28325         * m4/gc-camellia.m4: Likewise.
28326         * m4/gc-random.m4: Likewise.
28327         * m4/gc.m4: Likewise.
28328         * m4/getaddrinfo.m4: Likewise.
28329         * m4/getcwd-abort-bug.m4: Likewise.
28330         * m4/getcwd-path-max.m4: Likewise.
28331         * m4/getdate.m4: Likewise.
28332         * m4/getdomainname.m4: Likewise.
28333         * m4/getgroups.m4: Likewise.
28334         * m4/gethostname.m4: Likewise.
28335         * m4/gethrxtime.m4: Likewise.
28336         * m4/getline.m4: Likewise.
28337         * m4/getloadavg.m4: Likewise.
28338         * m4/getndelim2.m4: Likewise.
28339         * m4/getpass.m4: Likewise.
28340         * m4/gettext.m4: Likewise.
28341         * m4/gettime.m4: Likewise.
28342         * m4/gettimeofday.m4: Likewise.
28343         * m4/gnulib-common.m4: Likewise.
28344         * m4/group-member.m4: Likewise.
28345         * m4/host-os.m4: Likewise.
28346         * m4/iconv.m4: Likewise.
28347         * m4/iconv_open.m4: Likewise.
28348         * m4/inet_ntop.m4: Likewise.
28349         * m4/inet_pton.m4: Likewise.
28350         * m4/inline.m4: Likewise.
28351         * m4/intldir.m4: Likewise.
28352         * m4/intlmacosx.m4: Likewise.
28353         * m4/intmax.m4: Likewise.
28354         * m4/intmax_t.m4: Likewise.
28355         * m4/inttypes.m4: Likewise.
28356         * m4/inttypes_h.m4: Likewise.
28357         * m4/inttypes-pri.m4: Likewise.
28358         * m4/isapipe.m4: Likewise.
28359         * m4/isnand.m4: Likewise.
28360         * m4/isnanf.m4: Likewise.
28361         * m4/isnanl.m4: Likewise.
28362         * m4/javacomp.m4: Likewise.
28363         * m4/javaexec.m4: Likewise.
28364         * m4/jm-winsz1.m4: Likewise.
28365         * m4/jm-winsz2.m4: Likewise.
28366         * m4/lchown.m4: Likewise.
28367         * m4/lcmessage.m4: Likewise.
28368         * m4/ldexpl.m4: Likewise.
28369         * m4/lib-ld.m4: Likewise.
28370         * m4/lib-link.m4: Likewise.
28371         * m4/libsigsegv.m4: Likewise.
28372         * m4/link-follow.m4: Likewise.
28373         * m4/localcharset.m4: Likewise.
28374         * m4/locale-fr.m4: Likewise.
28375         * m4/locale-ja.m4: Likewise.
28376         * m4/locale-tr.m4: Likewise.
28377         * m4/locale-zh.m4: Likewise.
28378         * m4/lock.m4: Likewise.
28379         * m4/longlong.m4: Likewise.
28380         * m4/ls-mntd-fs.m4: Likewise.
28381         * m4/lstat.m4: Likewise.
28382         * m4/malloc.m4: Likewise.
28383         * m4/mathl.m4: Likewise.
28384         * m4/mbrtowc.m4: Likewise.
28385         * m4/mbstate_t.m4: Likewise.
28386         * m4/mbswidth.m4: Likewise.
28387         * m4/memchr.m4: Likewise.
28388         * m4/memcmp.m4: Likewise.
28389         * m4/memcpy.m4: Likewise.
28390         * m4/memmem.m4: Likewise.
28391         * m4/memmove.m4: Likewise.
28392         * m4/mempcpy.m4: Likewise.
28393         * m4/memrchr.m4: Likewise.
28394         * m4/memset.m4: Likewise.
28395         * m4/minmax.m4: Likewise.
28396         * m4/mkdir-slash.m4: Likewise.
28397         * m4/mkdtemp.m4: Likewise.
28398         * m4/mktime.m4: Likewise.
28399         * m4/mmap-anon.m4: Likewise.
28400         * m4/mountlist.m4: Likewise.
28401         * m4/nanosleep.m4: Likewise.
28402         * m4/nls.m4: Likewise.
28403         * m4/nocrash.m4: Likewise.
28404         * m4/open.m4: Likewise.
28405         * m4/openat.m4: Likewise.
28406         * m4/openmp.m4: Likewise.
28407         * m4/pathmax.m4: Likewise.
28408         * m4/perl.m4: Likewise.
28409         * m4/physmem.m4: Likewise.
28410         * m4/pipe.m4: Likewise.
28411         * m4/po.m4: Likewise.
28412         * m4/poll.m4: Likewise.
28413         * m4/posixtm.m4: Likewise.
28414         * m4/posixver.m4: Likewise.
28415         * m4/printf-frexp.m4: Likewise.
28416         * m4/printf-frexpl.m4: Likewise.
28417         * m4/printf-posix.m4: Likewise.
28418         * m4/printf-posix-rpl.m4: Likewise.
28419         * m4/printf.m4: Likewise.
28420         * m4/progtest.m4: Likewise.
28421         * m4/putenv.m4: Likewise.
28422         * m4/readline.m4: Likewise.
28423         * m4/readlink.m4: Likewise.
28424         * m4/readutmp.m4: Likewise.
28425         * m4/realloc.m4: Likewise.
28426         * m4/regex.m4: Likewise.
28427         * m4/relocatable.m4: Likewise.
28428         * m4/relocatable-lib.m4: Likewise.
28429         * m4/rename-dest-slash.m4: Likewise.
28430         * m4/rename.m4: Likewise.
28431         * m4/rmdir-errno.m4: Likewise.
28432         * m4/rmdir.m4: Likewise.
28433         * m4/roundf.m4: Likewise.
28434         * m4/roundl.m4: Likewise.
28435         * m4/rpmatch.m4: Likewise.
28436         * m4/save-cwd.m4: Likewise.
28437         * m4/selinux-selinux-h.m4: Likewise.
28438         * m4/setenv.m4: Likewise.
28439         * m4/settime.m4: Likewise.
28440         * m4/sig2str.m4: Likewise.
28441         * m4/sig_atomic_t.m4: Likewise.
28442         * m4/signalblocking.m4: Likewise.
28443         * m4/signbit.m4: Likewise.
28444         * m4/sigpipe.m4: Likewise.
28445         * m4/sockets.m4: Likewise.
28446         * m4/sockpfaf.m4: Likewise.
28447         * m4/st_dm_mode.m4: Likewise.
28448         * m4/stat-time.m4: Likewise.
28449         * m4/stdbool.m4: Likewise.
28450         * m4/stdint.m4: Likewise.
28451         * m4/stdint_h.m4: Likewise.
28452         * m4/stpcpy.m4: Likewise.
28453         * m4/stpncpy.m4: Likewise.
28454         * m4/strcase.m4: Likewise.
28455         * m4/strchrnul.m4: Likewise.
28456         * m4/strcspn.m4: Likewise.
28457         * m4/strdup.m4: Likewise.
28458         * m4/strftime.m4: Likewise.
28459         * m4/strndup.m4: Likewise.
28460         * m4/strnlen.m4: Likewise.
28461         * m4/strpbrk.m4: Likewise.
28462         * m4/strptime.m4: Likewise.
28463         * m4/strsep.m4: Likewise.
28464         * m4/strtod.m4: Likewise.
28465         * m4/strtoimax.m4: Likewise.
28466         * m4/strtok_r.m4: Likewise.
28467         * m4/strtol.m4: Likewise.
28468         * m4/strtoll.m4: Likewise.
28469         * m4/strtoul.m4: Likewise.
28470         * m4/strtoull.m4: Likewise.
28471         * m4/strtoumax.m4: Likewise.
28472         * m4/strverscmp.m4: Likewise.
28473         * m4/threadlib.m4: Likewise.
28474         * m4/timegm.m4: Likewise.
28475         * m4/tm_gmtoff.m4: Likewise.
28476         * m4/tmpdir.m4: Likewise.
28477         * m4/tmpfile.m4: Likewise.
28478         * m4/tzset.m4: Likewise.
28479         * m4/uintmax_t.m4: Likewise.
28480         * m4/unlinkdir.m4: Likewise.
28481         * m4/unlocked-io.m4: Likewise.
28482         * m4/uptime.m4: Likewise.
28483         * m4/userspec.m4: Likewise.
28484         * m4/utimbuf.m4: Likewise.
28485         * m4/utime.m4: Likewise.
28486         * m4/utimes-null.m4: Likewise.
28487         * m4/utimes.m4: Likewise.
28488         * m4/vararrays.m4: Likewise.
28489         * m4/vasnprintf.m4: Likewise.
28490         * m4/vfprintf-posix.m4: Likewise.
28491         * m4/vprintf-posix.m4: Likewise.
28492         * m4/wait-process.m4: Likewise.
28493         * m4/wchar_t.m4: Likewise.
28494         * m4/wint_t.m4: Likewise.
28495         * m4/write-any-file.m4: Likewise.
28496         * m4/yield.m4: Likewise.
28497
28498 2009-01-13  Bruno Haible  <bruno@clisp.org>
28499
28500         Avoid test-copy-file.sh failures when ACL support insufficient.
28501         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
28502         TESTS_ENVIRONMENT.
28503         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
28504         Reported by Jim Meyering.
28505
28506 2009-01-13  Bruno Haible  <bruno@clisp.org>
28507
28508         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
28509         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
28510         * modules/unistdio/u8-printf-parse (Files): Likewise.
28511         * modules/unistdio/u32-printf-parse (Files): Likewise.
28512         * modules/unistdio/ulc-printf-parse (Files): Likewise.
28513
28514 2009-01-13  Simon Josefsson  <simon@josefsson.org>
28515
28516         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
28517         and m4/inttypes_h.m4 too.
28518
28519 2009-01-12  Eric Blake  <ebb9@byu.net>
28520
28521         tests: IRIX 6.2 cc can't compile -0.0 into .data
28522         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
28523         rather than at compile-time.
28524         * tests/test-floorl.c (minus_zero): Likewise.
28525         * tests/test-frexpl.c (minus_zero): Likewise.
28526         * tests/test-isnan.c (minus_zerol): Likewise.
28527         * tests/test-isnanl.h (minus_zero): Likewise.
28528         * tests/test-ldexpl.c (minus_zero): Likewise.
28529         * tests/test-roundl.c (minus_zero): Likewise.
28530         * tests/test-signbit.c (minus_zerol): Likewise.
28531         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28532         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28533         * tests/test-truncl.c (minus_zero): Likewise.
28534         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28535         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28536         Reported by Tom G. Christensen and Nelson H. F. Beebe.
28537
28538 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28539
28540         regex: fix glibc bug 9697
28541         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
28542         handling.
28543
28544 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28545
28546         regex: fix glibc bug 697
28547         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
28548         being NULL also if there are no backreferences.
28549
28550 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
28551
28552         regex: merge glibc changes
28553         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
28554         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
28555         re_string_skip_chars, re_string_reconstruct): Likewise.
28556         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
28557
28558 2009-01-07  Jim Meyering  <meyering@redhat.com>
28559
28560         poll: filter through cppi
28561         * lib/poll.c: Indent cpp directives to reflect nesting.
28562
28563 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
28564
28565         poll: don't return uninitialized
28566         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
28567
28568 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
28569
28570         avoid compile failure on AIX 6.1
28571         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
28572         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
28573
28574 2009-01-04  Jim Meyering  <meyering@redhat.com>
28575
28576         remove duplicate inclusion of <stdio.h>
28577         * tests/test-fprintf-posix.c: Likewise.
28578         * tests/test-printf-posix.c: Likewise.
28579         * tests/test-snprintf-posix.c: Likewise.
28580         * tests/test-sprintf-posix.c: Likewise.
28581         * tests/test-vasprintf-posix.c: Likewise.
28582         * tests/test-vfprintf-posix.c: Likewise.
28583         * tests/test-vprintf-posix.c: Likewise.
28584         * tests/test-vsnprintf-posix.c: Likewise.
28585         * tests/test-vsprintf-posix.c: Likewise.
28586
28587 2009-01-03  Jim Meyering  <meyering@redhat.com>
28588
28589         gnulib-tool: fix sed-based filtering
28590         * gnulib-tool (func_filter_filelist): Remove extra backslash
28591         in sed_fff_filter definition.
28592
28593 2009-01-02  Jim Meyering  <meyering@redhat.com>
28594
28595         strftime: avoid compilation failure on Solaris 2.6
28596         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
28597         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
28598         Don't #define mbrlen or mbsinit, since now they're guaranteed to
28599         be available.  Reported by Tom G. Christensen.  Details in
28600         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
28601
28602 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28603             Bruno Haible  <bruno@clisp.org>
28604
28605         Speed up gnulib-tool by doing more string processing through shell
28606         built-ins.
28607         * gnulib-tool (fast_func_append): New variable.
28608         (func_remove_prefix, func_remove_suffix): New functions.
28609         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
28610         (func_filter_filelist): New function.
28611         (func_get_dependencies): Use func_remove_suffix instead of sed.
28612         (func_get_automake_snippet): Use func_filter_filelist instead of a
28613         subshell and sed invocation.
28614
28615 2009-01-01  Bruno Haible  <bruno@clisp.org>
28616
28617         Fix a security bug.
28618         * gnulib-tool (func_import, import, update): Don't allow the characters
28619         '"', '$', '`', '\' in macro arguments that become part of commands that
28620         are evaluated.
28621
28622 2009-01-01  Bruno Haible  <bruno@clisp.org>
28623
28624         * gnulib-tool (func_reset_sigpipe): Add more comments.
28625
28626 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28627
28628         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
28629         func_emit_tests_Makefile_am, func_import): Abort loops early if we
28630         already know the answer.
28631
28632 2009-01-01  Jim Meyering  <meyering@redhat.com>
28633
28634         * lib/version-etc.c (version_etc_va): Update copyright year.
28635
28636 2008-12-30  Bruno Haible  <bruno@clisp.org>
28637
28638         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
28639         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
28640         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
28641
28642 2008-12-29  Eric Blake  <ebb9@byu.net>
28643
28644         multiarch: avoid autoconf AC_REQUIRE bug
28645         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
28646         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
28647         2.63 and older.
28648         Reported by Bruno Haible, and analyzed in
28649         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
28650
28651 2008-12-29  Bruno Haible  <bruno@clisp.org>
28652
28653         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
28654         files in subdirectories correctly.
28655         Reported by Ralf Wildenhues.
28656
28657 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28658
28659         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
28660         rather than 'join FILE -', for Solaris join.
28661
28662 2008-12-29  Bruno Haible  <bruno@clisp.org>
28663
28664         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
28665         quoting.
28666         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28667         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28668         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28669         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
28670         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28671         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28672         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28673         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28674         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28675         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28676         * m4/nls.m4 (AM_NLS): Likewise.
28677         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
28678         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28679         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28680         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28681         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28682         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28683         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
28684         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28685         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28686         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28687         * m4/xsize.m4 (gl_XSIZE): Likewise.
28688         Suggested by Jim Meyering.
28689
28690 2008-11-17  Bruce Korb  <bkorb@gnu.org>
28691
28692         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
28693         * lib/parse-duration.c: use a switch instead of cascading if's.
28694
28695 2008-12-29  Eric Blake  <ebb9@byu.net>
28696
28697         wchar.h: supply WEOF on Irix 5.3
28698         * lib/wchar.in.h (wint_t): Also supply WEOF.
28699         * lib/wctype.in.h (wint_t): Likewise.
28700         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
28701         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
28702         Reported by Tom G. Christensen.
28703
28704 2008-12-26  Bruno Haible  <bruno@clisp.org>
28705
28706         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
28707         i486, i586, i686.
28708
28709 2008-12-26  Bruno Haible  <bruno@clisp.org>
28710
28711         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
28712
28713 2008-12-26  Bruno Haible  <bruno@clisp.org>
28714
28715         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
28716         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
28717         not __STDC_CONSTANT_MACROS.
28718         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28719
28720 2008-12-25  Bruno Haible  <bruno@clisp.org>
28721
28722         Add support for universal builds to vasnprintf.
28723         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
28724         universal builds, guess no.
28725         * modules/vasnprintf-posix (Depends-on): Add multiarch.
28726         * modules/vasprintf-posix (Depends-on): Likewise.
28727         * modules/fprintf-posix (Depends-on): Likewise.
28728         * modules/vfprintf-posix (Depends-on): Likewise.
28729         * modules/snprintf-posix (Depends-on): Likewise.
28730         * modules/vsnprintf-posix (Depends-on): Likewise.
28731         * modules/sprintf-posix (Depends-on): Likewise.
28732         * modules/vsprintf-posix (Depends-on): Likewise.
28733         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28734         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28735         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28736         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28737         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28738         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28739         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28740
28741         Add support for universal builds to <inttypes.h>.
28742         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
28743         _SCNu64_PREFIX): In Apple
28744         universal builds, define directly, using _LP64.
28745         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
28746         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
28747         * modules/inttypes (Depends-on): Add multiarch.
28748         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28749
28750         Add support for universal builds to <stdint.h>.
28751         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
28752         universal builds, define directly, using _LP64.
28753         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
28754         Apple universal builds, don't test for the size and suffix of ptrdiff_t
28755         and size_t.
28756         * modules/stdint (Depends-on): Add multiarch.
28757         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
28758
28759         New module 'multiarch'.
28760         * modules/multiarch: New file.
28761         * m4/multiarch.m4: New file.
28762
28763 2008-12-25  Bruno Haible  <bruno@clisp.org>
28764
28765         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
28766
28767 2008-12-25  Bruno Haible  <bruno@clisp.org>
28768
28769         * modules/btowc (License): Relicense under LGPLv2+.
28770         * modules/mbsinit (License): Likewise.
28771         * modules/mbrtowc (License): Likewise.
28772         * modules/wcrtomb (License): Likewise.
28773         * modules/streq (License): Likewise.
28774         Reported by David Lutterkort <lutter@redhat.com>.
28775
28776 2008-12-23  Bruno Haible  <bruno@clisp.org>
28777
28778         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
28779
28780 2008-12-23  Bruno Haible  <bruno@clisp.org>
28781
28782         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
28783         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
28784         GETADDRINFO_LIB, not in LIBS.
28785         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
28786         * modules/canon-host (Link): Likewise.
28787         * NEWS: Mention the change.
28788         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
28789         GETADDRINFO_LIB.
28790
28791 2008-12-22  Bruno Haible  <bruno@clisp.org>
28792
28793         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
28794         * doc/posix-functions/iswalpha_l.texi: Likewise.
28795         * doc/posix-functions/iswblank_l.texi: Likewise.
28796         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28797         * doc/posix-functions/iswctype_l.texi: Likewise.
28798         * doc/posix-functions/iswdigit_l.texi: Likewise.
28799         * doc/posix-functions/iswgraph_l.texi: Likewise.
28800         * doc/posix-functions/iswlower_l.texi: Likewise.
28801         * doc/posix-functions/iswprint_l.texi: Likewise.
28802         * doc/posix-functions/iswpunct_l.texi: Likewise.
28803         * doc/posix-functions/iswspace_l.texi: Likewise.
28804         * doc/posix-functions/iswupper_l.texi: Likewise.
28805         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28806         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
28807         * doc/posix-functions/open_wmemstream.texi: Likewise.
28808         * doc/posix-functions/swscanf.texi: Likewise.
28809         * doc/posix-functions/towctrans_l.texi: Likewise.
28810         * doc/posix-functions/towlower.texi: Likewise.
28811         * doc/posix-functions/towlower_l.texi: Likewise.
28812         * doc/posix-functions/towupper.texi: Likewise.
28813         * doc/posix-functions/towupper_l.texi: Likewise.
28814         * doc/posix-functions/vfwprintf.texi: Likewise.
28815         * doc/posix-functions/vfwscanf.texi: Likewise.
28816         * doc/posix-functions/vswscanf.texi: Likewise.
28817         * doc/posix-functions/vwprintf.texi: Likewise.
28818         * doc/posix-functions/vwscanf.texi: Likewise.
28819         * doc/posix-functions/wcpcpy.texi: Likewise.
28820         * doc/posix-functions/wcpncpy.texi: Likewise.
28821         * doc/posix-functions/wcscasecmp.texi: Likewise.
28822         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
28823         * doc/posix-functions/wcscoll_l.texi: Likewise.
28824         * doc/posix-functions/wcsdup.texi: Likewise.
28825         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28826         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
28827         * doc/posix-functions/wcsnlen.texi: Likewise.
28828         * doc/posix-functions/wcsnrtombs.texi: Likewise.
28829         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28830         * doc/posix-functions/wctrans_l.texi: Likewise.
28831         * doc/posix-functions/wctype_l.texi: Likewise.
28832         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
28833         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
28834         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
28835         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
28836         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
28837         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
28838         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
28839         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
28840         * doc/glibc-functions/wcschrnul.texi: Likewise.
28841         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28842         * doc/glibc-functions/wcstod_l.texi: Likewise.
28843         * doc/glibc-functions/wcstof_l.texi: Likewise.
28844         * doc/glibc-functions/wcstol_l.texi: Likewise.
28845         * doc/glibc-functions/wcstold_l.texi: Likewise.
28846         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28847         * doc/glibc-functions/wcstoq.texi: Likewise.
28848         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28849         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28850         * doc/glibc-functions/wcstouq.texi: Likewise.
28851         * doc/glibc-functions/wmempcpy.texi: Likewise.
28852
28853 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
28854             Eric Blake  <ebb9@byu.net>
28855             Paolo Bonzini  <bonzini@gnu.org>
28856             Bruno Haible  <bruno@clisp.org>
28857
28858         Make c-stack work on Haiku.
28859         * lib/c-stack.c (SA_ONSTACK): Define fallback.
28860         (c_stack_action): Use SA_ONSTACK flag.
28861
28862 2008-12-22  Bruno Haible  <bruno@clisp.org>
28863
28864         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
28865
28866 2008-12-22  Bruno Haible  <bruno@clisp.org>
28867
28868         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
28869         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
28870         being overridden.
28871         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
28872         New macros.
28873         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
28874         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
28875         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
28876         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
28877
28878 2008-12-22  Bruno Haible  <bruno@clisp.org>
28879
28880         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
28881         from test code.
28882
28883 2008-12-22  Eric Blake  <ebb9@byu.net>
28884
28885         Avoid gcc warnings on cygwin.
28886         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
28887         Avoid unused variable.
28888         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
28889         Likewise.
28890
28891 2008-12-22  Bruno Haible  <bruno@clisp.org>
28892
28893         Remove HAVE_MBRTOWC conditionals.
28894         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
28895         (mbscasecmp): Assume mbrtowc function.
28896         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
28897         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
28898         * lib/mbschr.c: Include mbuiter.h unconditionally.
28899         (mbschr): Assume mbrtowc function.
28900         * lib/mbscspn.c: Include mbuiter.h unconditionally.
28901         (mbscspn): Assume mbrtowc function.
28902         * lib/mbslen.c: Include mbuiter.h unconditionally.
28903         (mbslen): Assume mbrtowc function.
28904         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
28905         (mbsncasecmp): Assume mbrtowc function.
28906         * lib/mbsnlen.c: Include mbiter.h unconditionally.
28907         (mbsnlen): Assume mbrtowc function.
28908         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
28909         (mbspbrk): Assume mbrtowc function.
28910         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
28911         (mbspcasecmp): Assume mbrtowc function.
28912         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
28913         (mbsrchr): Assume mbrtowc function.
28914         * lib/mbssep.c: Include mbuiter.h unconditionally.
28915         (mbssep): Assume mbrtowc function.
28916         * lib/mbsspn.c: Include mbuiter.h unconditionally.
28917         (mbsspn): Assume mbrtowc function.
28918         * lib/mbsstr.c: Include mbuiter.h unconditionally.
28919         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
28920         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
28921         (mbstok_r): Assume mbrtowc function.
28922         * lib/propername.c: Include mbuiter.h unconditionally.
28923         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
28924         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
28925         (trim2): Assume mbrtowc function.
28926         * lib/mbswidth.c (mbsinit): Remove fallback definition.
28927         (mbsnwidth): Assume mbrtowc function.
28928         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
28929         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
28930         fallback definitions.
28931         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
28932
28933 2008-12-22  Bruno Haible  <bruno@clisp.org>
28934
28935         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
28936
28937 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
28938
28939         * modules/regex: Request emulations for the mb*/wc* functions we need.
28940         * m4/regex.m4: Don't look for those functions here.
28941         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
28942
28943 2008-12-22  Bruno Haible  <bruno@clisp.org>
28944
28945         * modules/fnmatch (Depends-on): Remove duplicated dependency.
28946
28947 2008-12-21  Bruno Haible  <bruno@clisp.org>
28948
28949         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
28950         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
28951         (Include): Remove conditionalization.
28952         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
28953         (Include): Remove conditionalization.
28954         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
28955         (Include): Remove conditionalization.
28956         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
28957         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28958         * NEWS: Mention the change.
28959         Reported by Alan Hourihane <alanh@fairlite.co.uk>
28960         via Sergey Poznyakoff <gray@gnu.org.ua>.
28961
28962 2008-12-21  Bruno Haible  <bruno@clisp.org>
28963
28964         * MODULES.html.sh (Extended multibyte and wide character utilities
28965         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
28966         wcrtomb, wcsrtombs.
28967         (Support for systems lacking POSIX:2008): Add accept, bind, close,
28968         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
28969         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
28970         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
28971
28972 2008-12-21  Bruno Haible  <bruno@clisp.org>
28973
28974         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
28975
28976 2008-12-21  Bruno Haible  <bruno@clisp.org>
28977
28978         * modules/wcsnrtombs-tests: New file.
28979         * tests/test-wcsnrtombs1.sh: New file.
28980         * tests/test-wcsnrtombs2.sh: New file.
28981         * tests/test-wcsnrtombs3.sh: New file.
28982         * tests/test-wcsnrtombs4.sh: New file.
28983         * tests/test-wcsnrtombs.c: New file.
28984
28985         New module 'wcsnrtombs'.
28986         * lib/wchar.in.h (wcsnrtombs): New declaration.
28987         * lib/wcsnrtombs.c: New file.
28988         * lib/wcsrtombs-state.c: New file.
28989         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
28990         (internal_state): Remove variable.
28991         * m4/wcsnrtombs.m4: New file.
28992         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
28993         compilation units.
28994         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
28995         HAVE_WCSNRTOMBS.
28996         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
28997         HAVE_WCSNRTOMBS.
28998         * modules/wcsnrtombs: New file.
28999         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
29000         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
29001
29002 2008-12-21  Bruno Haible  <bruno@clisp.org>
29003
29004         * modules/wcsrtombs-tests: New file.
29005         * tests/test-wcsrtombs1.sh: New file.
29006         * tests/test-wcsrtombs2.sh: New file.
29007         * tests/test-wcsrtombs3.sh: New file.
29008         * tests/test-wcsrtombs4.sh: New file.
29009         * tests/test-wcsrtombs.c: New file.
29010
29011         New module 'wcsrtombs'.
29012         * lib/wchar.in.h (wcsrtombs): New declaration.
29013         * lib/wcsrtombs.c: New file.
29014         * m4/wcsrtombs.m4: New file.
29015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
29016         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
29017         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
29018         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
29019         * modules/wcsrtombs: New file.
29020         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
29021         bugs.
29022
29023 2008-12-21  Bruno Haible  <bruno@clisp.org>
29024
29025         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
29026         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
29027         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
29028         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
29029         if not correct.
29030         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
29031         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
29032         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29033         m4/locale-zh.m4, m4/codeset.m4.
29034         * doc/posix-functions/wcrtomb.texi: Document the bug.
29035
29036 2008-12-21  Bruno Haible  <bruno@clisp.org>
29037
29038         Work around a btowc() bug on IRIX 6.5.
29039         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
29040         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
29041         REPLACE_WTOBC if not.
29042         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
29043         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
29044         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
29045
29046 2008-12-21  Bruno Haible  <bruno@clisp.org>
29047
29048         * modules/wcrtomb-tests: New file.
29049         * tests/test-wcrtomb.sh: New file.
29050         * tests/test-wcrtomb.c: New file.
29051
29052         New module 'wcrtomb'.
29053         * lib/wchar.in.h (wcrtomb): New declaration.
29054         * lib/wcrtomb.c: New file.
29055         * m4/wcrtomb.m4: New file.
29056         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
29057         HAVE_WCRTOMB.
29058         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
29059         HAVE_WCRTOMB.
29060         * modules/wcrtomb: New file.
29061         * doc/posix-functions/wcrtomb.texi: Mention the new module.
29062
29063 2008-12-21  Bruno Haible  <bruno@clisp.org>
29064
29065         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
29066         * modules/mbsrtowcs (Files): Likewise.
29067         * modules/wctob (Files): Likewise.
29068         * modules/c-strcase-tests (Files): Likewise.
29069         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29070         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29071         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29072         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29073         * modules/vasnprintf-posix-tests (Files): Likewise.
29074
29075 2008-12-21  William Pursell  <bill.pursell@gmail.com>
29076
29077         gitlog-to-changelog: pass all command-line arguments to git-log
29078         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
29079         it is sometimes convenient to filter the commits in various ways.
29080         gitlog-to-changelog only allows --since to specify a start date,
29081         but git-log itself supports many other filtering mechanisms.
29082         At the moment, I want to filter by branch name.  Rather than
29083         adding a --branch option to gitlog-to-changelog, it seems more
29084         flexible to simply pass all options directly to git-log and let
29085         git do the work.  Notice that this effectively makes --since a
29086         redundant option for gitlog-to-changelog, but removing it would
29087         require current usage to change since calls would then require
29088         an additional '--'.
29089
29090 2008-12-21  Bruno Haible  <bruno@clisp.org>
29091
29092         * modules/mbsnrtowcs-tests: New file.
29093         * tests/test-mbsnrtowcs1.sh: New file.
29094         * tests/test-mbsnrtowcs2.sh: New file.
29095         * tests/test-mbsnrtowcs3.sh: New file.
29096         * tests/test-mbsnrtowcs4.sh: New file.
29097         * tests/test-mbsnrtowcs.c: New file.
29098
29099         New module 'mbsnrtowcs'.
29100         * lib/wchar.in.h (mbsnrtowcs): New declaration.
29101         * lib/mbsnrtowcs.c: New file.
29102         * lib/mbsrtowcs-state.c: New file.
29103         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
29104         (internal_state): Remove variable.
29105         * m4/mbsnrtowcs.m4: New file.
29106         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
29107         compilation units.
29108         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
29109         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
29110         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
29111         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
29112         * modules/mbsnrtowcs: New file.
29113         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
29114         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
29115         portability problem.
29116
29117 2008-12-21  Bruno Haible  <bruno@clisp.org>
29118
29119         Work around mbsrtowcs bug.
29120         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
29121         (gl_FUNC_MBSRTOWCS): Invoke it.
29122         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29123         m4/locale-zh.m4.
29124         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
29125
29126 2008-12-21  Bruno Haible  <bruno@clisp.org>
29127
29128         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
29129
29130 2008-12-21  Bruno Haible  <bruno@clisp.org>
29131
29132         Update doc for AIX.
29133         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
29134         16-bit wchar_t type.
29135         * doc/posix-functions/btowc.texi: Likewise.
29136         * doc/posix-functions/fgetwc.texi: Likewise.
29137         * doc/posix-functions/fgetws.texi: Likewise.
29138         * doc/posix-functions/fputwc.texi: Likewise.
29139         * doc/posix-functions/fputws.texi: Likewise.
29140         * doc/posix-functions/fwide.texi: Likewise.
29141         * doc/posix-functions/fwprintf.texi: Likewise.
29142         * doc/posix-functions/fwscanf.texi: Likewise.
29143         * doc/posix-functions/getwchar.texi: Likewise.
29144         * doc/posix-functions/getwc.texi: Likewise.
29145         * doc/posix-functions/iswalnum.texi: Likewise.
29146         * doc/posix-functions/iswalpha.texi: Likewise.
29147         * doc/posix-functions/iswblank.texi: Likewise.
29148         * doc/posix-functions/iswcntrl.texi: Likewise.
29149         * doc/posix-functions/iswctype.texi: Likewise.
29150         * doc/posix-functions/iswdigit.texi: Likewise.
29151         * doc/posix-functions/iswgraph.texi: Likewise.
29152         * doc/posix-functions/iswlower.texi: Likewise.
29153         * doc/posix-functions/iswprint.texi: Likewise.
29154         * doc/posix-functions/iswpunct.texi: Likewise.
29155         * doc/posix-functions/iswspace.texi: Likewise.
29156         * doc/posix-functions/iswupper.texi: Likewise.
29157         * doc/posix-functions/iswxdigit.texi: Likewise.
29158         * doc/posix-functions/mbrtowc.texi: Likewise.
29159         * doc/posix-functions/mbsrtowcs.texi: Likewise.
29160         * doc/posix-functions/mbstowcs.texi: Likewise.
29161         * doc/posix-functions/mbtowc.texi: Likewise.
29162         * doc/posix-functions/putwchar.texi: Likewise.
29163         * doc/posix-functions/putwc.texi: Likewise.
29164         * doc/posix-functions/swprintf.texi: Likewise.
29165         * doc/posix-functions/tolower.texi: Likewise.
29166         * doc/posix-functions/toupper.texi: Likewise.
29167         * doc/posix-functions/towctrans.texi: Likewise.
29168         * doc/posix-functions/ungetwc.texi: Likewise.
29169         * doc/posix-functions/vswprintf.texi: Likewise.
29170         * doc/posix-functions/wcrtomb.texi: Likewise.
29171         * doc/posix-functions/wcscat.texi: Likewise.
29172         * doc/posix-functions/wcschr.texi: Likewise.
29173         * doc/posix-functions/wcscmp.texi: Likewise.
29174         * doc/posix-functions/wcscoll.texi: Likewise.
29175         * doc/posix-functions/wcscpy.texi: Likewise.
29176         * doc/posix-functions/wcscspn.texi: Likewise.
29177         * doc/posix-functions/wcsftime.texi: Likewise.
29178         * doc/posix-functions/wcslen.texi: Likewise.
29179         * doc/posix-functions/wcsncat.texi: Likewise.
29180         * doc/posix-functions/wcsncmp.texi: Likewise.
29181         * doc/posix-functions/wcsncpy.texi: Likewise.
29182         * doc/posix-functions/wcspbrk.texi: Likewise.
29183         * doc/posix-functions/wcsrchr.texi: Likewise.
29184         * doc/posix-functions/wcsrtombs.texi: Likewise.
29185         * doc/posix-functions/wcsspn.texi: Likewise.
29186         * doc/posix-functions/wcsstr.texi: Likewise.
29187         * doc/posix-functions/wcstod.texi: Likewise.
29188         * doc/posix-functions/wcstof.texi: Likewise.
29189         * doc/posix-functions/wcstoimax.texi: Likewise.
29190         * doc/posix-functions/wcstok.texi: Likewise.
29191         * doc/posix-functions/wcstold.texi: Likewise.
29192         * doc/posix-functions/wcstoll.texi: Likewise.
29193         * doc/posix-functions/wcstol.texi: Likewise.
29194         * doc/posix-functions/wcstombs.texi: Likewise.
29195         * doc/posix-functions/wcstoull.texi: Likewise.
29196         * doc/posix-functions/wcstoul.texi: Likewise.
29197         * doc/posix-functions/wcstoumax.texi: Likewise.
29198         * doc/posix-functions/wcswidth.texi: Likewise.
29199         * doc/posix-functions/wcsxfrm.texi: Likewise.
29200         * doc/posix-functions/wctob.texi: Likewise.
29201         * doc/posix-functions/wctomb.texi: Likewise.
29202         * doc/posix-functions/wctrans.texi: Likewise.
29203         * doc/posix-functions/wctype.texi: Likewise.
29204         * doc/posix-functions/wcwidth.texi: Likewise.
29205         * doc/posix-functions/wmemchr.texi: Likewise.
29206         * doc/posix-functions/wmemcmp.texi: Likewise.
29207         * doc/posix-functions/wmemcpy.texi: Likewise.
29208         * doc/posix-functions/wmemmove.texi: Likewise.
29209         * doc/posix-functions/wmemset.texi: Likewise.
29210         * doc/posix-functions/wprintf.texi: Likewise.
29211         * doc/posix-functions/wscanf.texi: Likewise.
29212
29213 2008-12-21  Bruno Haible  <bruno@clisp.org>
29214
29215         Update doc for HP-UX 11.11.
29216         * doc/posix-functions/btowc.texi: Clarify that the function is missing
29217         in HP-UX version 11.00, not in all versions of HP-UX 11.
29218         * doc/posix-functions/fwide.texi: Likewise.
29219         * doc/posix-functions/fwprintf.texi: Likewise.
29220         * doc/posix-functions/fwscanf.texi: Likewise.
29221         * doc/posix-functions/inet_ntop.texi: Likewise.
29222         * doc/posix-functions/inet_pton.texi: Likewise.
29223         * doc/posix-functions/mbrlen.texi: Likewise.
29224         * doc/posix-functions/mbrtowc.texi: Likewise.
29225         * doc/posix-functions/mbsinit.texi: Likewise.
29226         * doc/posix-functions/mbsrtowcs.texi: Likewise.
29227         * doc/posix-functions/swprintf.texi: Likewise.
29228         * doc/posix-functions/swscanf.texi: Likewise.
29229         * doc/posix-functions/towctrans.texi: Likewise.
29230         * doc/posix-functions/vfwprintf.texi: Likewise.
29231         * doc/posix-functions/vswprintf.texi: Likewise.
29232         * doc/posix-functions/vwprintf.texi: Likewise.
29233         * doc/posix-functions/wcrtomb.texi: Likewise.
29234         * doc/posix-functions/wcsrtombs.texi: Likewise.
29235         * doc/posix-functions/wcsstr.texi: Likewise.
29236         * doc/posix-functions/wctob.texi: Likewise.
29237         * doc/posix-functions/wctrans.texi: Likewise.
29238         * doc/posix-functions/wmemchr.texi: Likewise.
29239         * doc/posix-functions/wmemcmp.texi: Likewise.
29240         * doc/posix-functions/wmemcpy.texi: Likewise.
29241         * doc/posix-functions/wmemmove.texi: Likewise.
29242         * doc/posix-functions/wmemset.texi: Likewise.
29243         * doc/posix-functions/wprintf.texi: Likewise.
29244         * doc/posix-functions/wscanf.texi: Likewise.
29245
29246 2008-12-21  Bruno Haible  <bruno@clisp.org>
29247
29248         Work around a portability problem.
29249         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
29250         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
29251
29252 2008-12-20  Bruno Haible  <bruno@clisp.org>
29253
29254         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
29255         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
29256         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
29257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
29258         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
29259
29260         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
29261         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
29262         set.
29263         (GNULIB_defined_mbstate_t): New macro.
29264         (mbsinit): Redefine if REPLACE_MBSINIT is set.
29265         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
29266         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
29267         reuses the system's mbrtowc function but works around the bugs.
29268         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
29269         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
29270         macros.
29271         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
29272         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
29273         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
29274         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
29275         REPLACE_MBSINIT if mbsinit needs to be overridden.
29276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
29277         REPLACE_MBSINIT, REPLACE_MBRTOWC.
29278         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
29279         REPLACE_MBSINIT, REPLACE_MBRTOWC.
29280         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
29281         m4/locale-zh.m4.
29282         (Depends): Add mbsinit.
29283         * modules/mbsinit (Depends): Add mbrtowc.
29284         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
29285
29286 2008-12-20  Bruno Haible  <bruno@clisp.org>
29287
29288         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
29289         so that there are no conversion errors on AIX.
29290         * tests/test-mbsrtowcs.c (main): LIkewise.
29291
29292 2008-12-20  Bruno Haible  <bruno@clisp.org>
29293
29294         Work around wctob bug on Solaris <= 9.
29295         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
29296         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
29297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
29298         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
29299         * modules/wctob (Files): Add m4/locale-fr.m4.
29300         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
29301
29302 2008-12-20  Bruno Haible  <bruno@clisp.org>
29303
29304         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
29305         /dev/null.
29306         * tests/test-select-in.sh: Likewise.
29307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29308
29309 2008-12-20  Bruno Haible  <bruno@clisp.org>
29310
29311         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
29312         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
29313         Cygwin 1.5.x.
29314
29315 2008-12-20  Bruno Haible  <bruno@clisp.org>
29316
29317         Ensure mbstate_t is defined on HP-UX 11.11.
29318         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
29319         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
29320         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
29321         AC_USE_SYSTEM_EXTENSIONS.
29322         * modules/fnmatch (Depends-on): Add extensions.
29323         * modules/mbrlen (Depends-on): Likewise.
29324         * modules/mbrtowc (Depends-on): Likewise.
29325         * modules/mbsinit (Depends-on): Likewise.
29326         * modules/mbsrtowcs (Depends-on): Likewise.
29327         * modules/mbswidth (Depends-on): Likewise.
29328         * modules/quotearg (Depends-on): Likewise.
29329         * modules/strftime (Depends-on): Likewise.
29330
29331 2008-12-20  Bruno Haible  <bruno@clisp.org>
29332
29333         Ensure wctob is declared on IRIX 6.5.
29334         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
29335         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
29336         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
29337         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
29338         of HAVE_WCTOB.
29339         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
29340         HAVE_WCTOB.
29341         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
29342
29343 2008-12-19  Bruno Haible  <bruno@clisp.org>
29344
29345         * modules/mbsrtowcs-tests: New file.
29346         * tests/test-mbsrtowcs1.sh: New file.
29347         * tests/test-mbsrtowcs2.sh: New file.
29348         * tests/test-mbsrtowcs3.sh: New file.
29349         * tests/test-mbsrtowcs4.sh: New file.
29350         * tests/test-mbsrtowcs.c: New file.
29351
29352         New module 'mbsrtowcs'.
29353         * lib/wchar.in.h (mbsrtowcs): New declaration.
29354         * lib/mbsrtowcs.c: New file.
29355         * m4/mbsrtowcs.m4: New file.
29356         * modules/mbsrtowcs: New file.
29357         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
29358         HAVE_MBSRTOWCS.
29359         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
29360         HAVE_MBSRTOWCS.
29361         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
29362
29363 2008-12-19  Bruno Haible  <bruno@clisp.org>
29364
29365         New module 'mbrlen'.
29366         * lib/wchar.in.h (mbrlen): New declaration.
29367         * lib/mbrlen.c: New file.
29368         * m4/mbrlen.m4: New file.
29369         * modules/mbrlen: New file.
29370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
29371         HAVE_MBRLEN.
29372         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
29373         HAVE_MBRLEN.
29374         * doc/posix-functions/mbrlen.texi: Document the new module.
29375
29376 2008-12-19  Bruno Haible  <bruno@clisp.org>
29377
29378         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
29379         * modules/mbrtowc (Depends-on): Add verify.
29380         Suggested by Paul Eggert.
29381
29382 2008-12-18  Bruno Haible  <bruno@clisp.org>
29383
29384         * modules/mbsinit-tests: New file.
29385         * tests/test-mbsinit.sh: New file.
29386         * tests/test-mbsinit.c: New file.
29387
29388 2008-12-18  Bruno Haible  <bruno@clisp.org>
29389
29390         * modules/mbrtowc-tests: New file.
29391         * tests/test-mbrtowc1.sh: New file.
29392         * tests/test-mbrtowc2.sh: New file.
29393         * tests/test-mbrtowc3.sh: New file.
29394         * tests/test-mbrtowc4.sh: New file.
29395         * tests/test-mbrtowc.c: New file.
29396
29397         New module 'mbrtowc'.
29398         * lib/wchar.in.h (mbstate_t): Override when the system does not have
29399         mbsinit and mbrtowc.
29400         (mbrtowc): New declaration.
29401         * lib/mbrtowc.c: New file.
29402         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
29403         * modules/mbrtowc: New file.
29404         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
29405         HAVE_MBRTOWC.
29406         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
29407         HAVE_MBRTOWC.
29408         * doc/posix-functions/mbrtowc.texi: Document the new module.
29409
29410 2008-12-18  Bruno Haible  <bruno@clisp.org>
29411
29412         New module 'wctob'.
29413         * lib/wchar.in.h (wctob): New declaration.
29414         * lib/wctob.c: New file.
29415         * m4/wctob.m4: New file.
29416         * modules/wctob: New file.
29417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
29418         HAVE_WCTOB.
29419         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
29420         * doc/posix-functions/wctob.texi: Document the new module.
29421
29422 2008-12-18  Bruno Haible  <bruno@clisp.org>
29423
29424         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
29425         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
29426
29427 2008-12-18  Simon Josefsson  <simon@josefsson.org>
29428
29429         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
29430         G. Christensen" <tgc@jupiterrise.com>.
29431
29432         * lib/flock.c: Need to include errno.h.  Reported by "Tom
29433         G. Christensen" <tgc@jupiterrise.com>.
29434
29435         * lib/flock.c: Need to include string.h.  Reported by "Tom
29436         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
29437         <ebb9@byu.net>.
29438
29439 2008-12-18  Bruno Haible  <bruno@clisp.org>
29440
29441         * m4/locale-ja.m4: New file, from GNU gettext.
29442
29443 2008-12-17  Bruno Haible  <bruno@clisp.org>
29444
29445         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
29446         Suggested by Eric Blake.
29447
29448 2008-12-17  Bruno Haible  <bruno@clisp.org>
29449
29450         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
29451
29452 2008-12-17  Bruno Haible  <bruno@clisp.org>
29453
29454         * lib/mbsinit.c: Include verify.h. Verify an assumption.
29455         * modules/mbsinit (Depends-on): Add verify.
29456         Suggested by Paul Eggert.
29457
29458 2008-12-17  Bruno Haible  <bruno@clisp.org>
29459
29460         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
29461         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
29462         gl_FUNC_MBRTOWC.
29463         * m4/mbiter.m4 (gl_MBITER): LIkewise.
29464         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
29465         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
29466         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
29467         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
29468         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
29469         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
29470         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
29471         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
29472         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
29473         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
29474         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
29475         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
29476         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
29477         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
29478         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29479         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
29480         * modules/trim (configure.ac): Likewise.
29481
29482 2008-12-17  Bruno Haible  <bruno@clisp.org>
29483
29484         * modules/btowc-tests: New file.
29485         * tests/test-btowc1.sh: New file.
29486         * tests/test-btowc2.sh: New file.
29487         * tests/test-btowc.c: New file.
29488
29489         New module 'btowc'.
29490         * lib/wchar.in.h (btowc): New declaration.
29491         * lib/btowc.c: New file.
29492         * m4/btowc.m4: New file.
29493         * modules/btowc: New file.
29494         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
29495         HAVE_BTOWC.
29496         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
29497         * doc/posix-functions/btowc.texi: Document the new module.
29498
29499 2008-12-17  Bruno Haible  <bruno@clisp.org>
29500
29501         New module 'mbsinit'.
29502         * lib/wchar.in.h (mbsinit): New declaration.
29503         * lib/mbsinit.c: New file.
29504         * m4/mbsinit.m4: New file.
29505         * modules/mbsinit: New file.
29506         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
29507         HAVE_MBSINIT.
29508         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
29509         HAVE_MBSINIT.
29510         * doc/posix-functions/mbsinit.texi: Document the new module.
29511
29512 2008-12-16  Bruno Haible  <bruno@clisp.org>
29513
29514         * lib/unistd.in.h: Add comment.
29515         * tests/test-environ.c: Don't include <stdlib.h>.
29516
29517 2008-12-16  Bruno Haible  <bruno@clisp.org>
29518
29519         * lib/parse-duration.h (parse_duration): Document return value
29520         convention.
29521         * lib/parse-duration.c: Include specification header first. Add
29522         comments.
29523         (_): Remove macro.
29524         (parse_year_month_day, parse_hour_minute_second): Move side effects
29525         outside of strchr call.
29526         (parse_non_iso8601): Move side effects outside of isspace call.
29527         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
29528         call.
29529
29530 2008-12-16  Bruno Haible  <bruno@clisp.org>
29531
29532         * tests/test-parse-duration.sh: Produce no output when the test
29533         succeeds.
29534
29535 2008-12-16  Bruno Haible  <bruno@clisp.org>
29536
29537         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
29538         expressions.
29539
29540 2008-12-15  Bruno Haible  <bruno@clisp.org>
29541
29542         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
29543         * doc/glibc-functions/flistxattr.texi: Likewise.
29544         * doc/glibc-functions/fopencookie.texi: Likewise.
29545         * doc/glibc-functions/fremovexattr.texi: Likewise.
29546         * doc/glibc-functions/fsetxattr.texi: Likewise.
29547         * doc/glibc-functions/getxattr.texi: Likewise.
29548         * doc/glibc-functions/lgetxattr.texi: Likewise.
29549         * doc/glibc-functions/listxattr.texi: Likewise.
29550         * doc/glibc-functions/llistxattr.texi: Likewise.
29551         * doc/glibc-functions/lremovexattr.texi: Likewise.
29552         * doc/glibc-functions/lsetxattr.texi: Likewise.
29553         * doc/glibc-functions/removexattr.texi: Likewise.
29554         * doc/glibc-functions/setxattr.texi: Likewise.
29555         * doc/posix-functions/open_memstream.texi: Likewise.
29556
29557 2008-12-15  Eric Blake  <ebb9@byu.net>
29558
29559         Update doc for cygwin 1.7.
29560         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
29561         functions.
29562         * doc/posix-functions/fchmodat.texi: Likewise.
29563         * doc/posix-functions/fchownat.texi: Likewise.
29564         * doc/posix-functions/fdopendir.texi: Likewise.
29565         * doc/posix-functions/fmemopen.texi: Likewise.
29566         * doc/posix-functions/freeaddrinfo.texi: Likewise.
29567         * doc/posix-functions/fstatat.texi: Likewise.
29568         * doc/posix-functions/futimens.texi: Likewise.
29569         * doc/posix-functions/gai_strerror.texi: Likewise.
29570         * doc/posix-functions/getaddrinfo.texi: Likewise.
29571         * doc/posix-functions/getnameinfo.texi: Likewise.
29572         * doc/posix-functions/if_freenameindex.texi: Likewise.
29573         * doc/posix-functions/if_indextoname.texi: Likewise.
29574         * doc/posix-functions/if_nameindex.texi: Likewise.
29575         * doc/posix-functions/if_nametoindex.texi: Likewise.
29576         * doc/posix-functions/insque.texi: Likewise.
29577         * doc/posix-functions/linkat.texi: Likewise.
29578         * doc/posix-functions/llrint.texi: Likewise.
29579         * doc/posix-functions/llrintf.texi: Likewise.
29580         * doc/posix-functions/llrintl.texi: Likewise.
29581         * doc/posix-functions/lockf.texi: Likewise.
29582         * doc/posix-functions/lrintl.texi: Likewise.
29583         * doc/posix-functions/mkdirat.texi: Likewise.
29584         * doc/posix-functions/mkfifoat.texi: Likewise.
29585         * doc/posix-functions/mknodat.texi: Likewise.
29586         * doc/posix-functions/mq_close.texi: Likewise.
29587         * doc/posix-functions/mq_getattr.texi: Likewise.
29588         * doc/posix-functions/mq_notify.texi: Likewise.
29589         * doc/posix-functions/mq_open.texi: Likewise.
29590         * doc/posix-functions/mq_receive.texi: Likewise.
29591         * doc/posix-functions/mq_send.texi: Likewise.
29592         * doc/posix-functions/mq_setattr.texi: Likewise.
29593         * doc/posix-functions/mq_timedreceive.texi: Likewise.
29594         * doc/posix-functions/mq_timedsend.texi: Likewise.
29595         * doc/posix-functions/mq_unlink.texi: Likewise.
29596         * doc/posix-functions/open_memstream.texi: Likewise.
29597         * doc/posix-functions/openat.texi: Likewise.
29598         * doc/posix-functions/posix_fadvise.texi: Likewise.
29599         * doc/posix-functions/posix_fallocate.texi: Likewise.
29600         * doc/posix-functions/posix_madvise.texi: Likewise.
29601         * doc/posix-functions/posix_memalign.texi: Likewise.
29602         * doc/posix-functions/posix_openpt.texi: Likewise.
29603         * doc/posix-functions/readlinkat.texi: Likewise.
29604         * doc/posix-functions/remque.texi: Likewise.
29605         * doc/posix-functions/renameat.texi: Likewise.
29606         * doc/posix-functions/rintl.texi: Likewise.
29607         * doc/posix-functions/sem_unlink.texi: Likewise.
29608         * doc/posix-functions/shm_open.texi: Likewise.
29609         * doc/posix-functions/shm_unlink.texi: Likewise.
29610         * doc/posix-functions/signgam.texi: Likewise.
29611         * doc/posix-functions/sigset.texi: Likewise.
29612         * doc/posix-functions/stpcpy.texi: Likewise.
29613         * doc/posix-functions/stpncpy.texi: Likewise.
29614         * doc/posix-functions/strerror.texi: Likewise.
29615         * doc/posix-functions/strtod.texi: Likewise.
29616         * doc/posix-functions/symlinkat.texi: Likewise.
29617         * doc/posix-functions/unlinkat.texi: Likewise.
29618         * doc/posix-functions/utimensat.texi: Likewise.
29619         * doc/glibc-functions/bindresvport.texi: Likewise.
29620         * doc/glibc-functions/dn_expand.texi: Likewise.
29621         * doc/glibc-functions/exp10.texi: Likewise.
29622         * doc/glibc-functions/exp10f.texi: Likewise.
29623         * doc/glibc-functions/fgetxattr.texi: Likewise.
29624         * doc/glibc-functions/flistxattr.texi: Likewise.
29625         * doc/glibc-functions/fopencookie.texi: Likewise.
29626         * doc/glibc-functions/freeifaddrs.texi: Likewise.
29627         * doc/glibc-functions/fremovexattr.texi: Likewise.
29628         * doc/glibc-functions/fsetxattr.texi: Likewise.
29629         * doc/glibc-functions/getifaddrs.texi: Likewise.
29630         * doc/glibc-functions/getxattr.texi: Likewise.
29631         * doc/glibc-functions/lgetxattr.texi: Likewise.
29632         * doc/glibc-functions/listxattr.texi: Likewise.
29633         * doc/glibc-functions/llistxattr.texi: Likewise.
29634         * doc/glibc-functions/lremovexattr.texi: Likewise.
29635         * doc/glibc-functions/lsetxattr.texi: Likewise.
29636         * doc/glibc-functions/pow10.texi: Likewise.
29637         * doc/glibc-functions/pow10f.texi: Likewise.
29638         * doc/glibc-functions/rcmd_af.texi: Likewise.
29639         * doc/glibc-functions/removexattr.texi: Likewise.
29640         * doc/glibc-functions/res_init.texi: Likewise.
29641         * doc/glibc-functions/res_mkquery.texi: Likewise.
29642         * doc/glibc-functions/res_query.texi: Likewise.
29643         * doc/glibc-functions/res_querydomain.texi: Likewise.
29644         * doc/glibc-functions/res_send.texi: Likewise.
29645         * doc/glibc-functions/rresvport_af.texi: Likewise.
29646         * doc/glibc-functions/setxattr.texi: Likewise.
29647         * doc/glibc-functions/strcasestr.texi: Likewise.
29648
29649 2008-12-15  Bruno Haible  <bruno@clisp.org>
29650
29651         Fix compilation error on OSF/1 4.0.
29652         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
29653         <sys/time.h>, simply delegate to the system header.
29654         Reported by Daniel Richard G. <oss@teragram.com>.
29655
29656 2008-12-15  Bruno Haible  <bruno@clisp.org>
29657
29658         * doc/posix-functions/openat.texi: Mention the 'openat' module.
29659         * doc/posix-functions/fchmodat.texi: Likewise.
29660         * doc/posix-functions/fchownat.texi: Likewise.
29661         * doc/posix-functions/fdopendir.texi: Likewise.
29662         * doc/posix-functions/fstatat.texi: Likewise.
29663         * doc/posix-functions/mkdirat.texi: Likewise.
29664         * doc/posix-functions/unlinkat.texi: Likewise.
29665
29666 2008-12-14  Bruno Haible  <bruno@clisp.org>
29667
29668         Update doc for POSIX:2008.
29669         * doc/posix-functions/faccessat.texi: New file.
29670         * doc/posix-functions/fchmodat.texi: New file.
29671         * doc/posix-functions/fchownat.texi: New file.
29672         * doc/posix-functions/fdopendir.texi: New file.
29673         * doc/posix-functions/fstatat.texi: New file.
29674         * doc/posix-functions/futimens.texi: New file.
29675         * doc/posix-functions/linkat.texi: New file.
29676         * doc/posix-functions/mkdirat.texi: New file.
29677         * doc/posix-functions/mkfifoat.texi: New file.
29678         * doc/posix-functions/mknodat.texi: New file.
29679         * doc/posix-functions/open_wmemstream.texi: New file.
29680         * doc/posix-functions/openat.texi: New file.
29681         * doc/posix-functions/psiginfo.texi: New file.
29682         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
29683         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
29684         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
29685         * doc/posix-functions/readlinkat.texi: New file.
29686         * doc/posix-functions/renameat.texi: New file.
29687         * doc/posix-functions/strerror_l.texi: New file.
29688         * doc/posix-functions/symlinkat.texi: New file.
29689         * doc/posix-functions/unlinkat.texi: New file.
29690         * doc/posix-functions/utimensat.texi: New file.
29691         * doc/gnulib.texi (Function Substitutes): Add these subsections.
29692
29693 2008-12-14  Bruno Haible  <bruno@clisp.org>
29694
29695         Update doc for POSIX:2008.
29696         * doc/posix-functions/alphasort.texi: Renamed from
29697         doc/glibc-functions/alphasort.texi.
29698         * doc/posix-functions/dirfd.texi: Renamed from
29699         doc/glibc-functions/dirfd.texi.
29700         * doc/posix-functions/dprintf.texi: Renamed from
29701         doc/glibc-functions/dprintf.texi.
29702         * doc/posix-functions/duplocale.texi: Renamed from
29703         doc/glibc-functions/duplocale.texi.
29704         * doc/posix-functions/fexecve.texi: Renamed from
29705         doc/glibc-functions/fexecve.texi.
29706         * doc/posix-functions/fmemopen.texi: Renamed from
29707         doc/glibc-functions/fmemopen.texi.
29708         * doc/posix-functions/freelocale.texi: Renamed from
29709         doc/glibc-functions/freelocale.texi.
29710         * doc/posix-functions/getdate_err.texi: Renamed from
29711         doc/glibc-functions/getdate_err.texi.
29712         * doc/posix-functions/isalnum_l.texi: Renamed from
29713         doc/glibc-functions/isalnum_l.texi.
29714         * doc/posix-functions/isalpha_l.texi: Renamed from
29715         doc/glibc-functions/isalpha_l.texi.
29716         * doc/posix-functions/isblank_l.texi: Renamed from
29717         doc/glibc-functions/isblank_l.texi.
29718         * doc/posix-functions/iscntrl_l.texi: Renamed from
29719         doc/glibc-functions/iscntrl_l.texi.
29720         * doc/posix-functions/isdigit_l.texi: Renamed from
29721         doc/glibc-functions/isdigit_l.texi.
29722         * doc/posix-functions/isgraph_l.texi: Renamed from
29723         doc/glibc-functions/isgraph_l.texi.
29724         * doc/posix-functions/islower_l.texi: Renamed from
29725         doc/glibc-functions/islower_l.texi.
29726         * doc/posix-functions/isprint_l.texi: Renamed from
29727         doc/glibc-functions/isprint_l.texi.
29728         * doc/posix-functions/ispunct_l.texi: Renamed from
29729         doc/glibc-functions/ispunct_l.texi.
29730         * doc/posix-functions/isspace_l.texi: Renamed from
29731         doc/glibc-functions/isspace_l.texi.
29732         * doc/posix-functions/isupper_l.texi: Renamed from
29733         doc/glibc-functions/isupper_l.texi.
29734         * doc/posix-functions/iswalnum_l.texi: Renamed from
29735         doc/glibc-functions/iswalnum_l.texi.
29736         * doc/posix-functions/iswalpha_l.texi: Renamed from
29737         doc/glibc-functions/iswalpha_l.texi.
29738         * doc/posix-functions/iswblank_l.texi: Renamed from
29739         doc/glibc-functions/iswblank_l.texi.
29740         * doc/posix-functions/iswcntrl_l.texi: Renamed from
29741         doc/glibc-functions/iswcntrl_l.texi.
29742         * doc/posix-functions/iswctype_l.texi: Renamed from
29743         doc/glibc-functions/iswctype_l.texi.
29744         * doc/posix-functions/iswdigit_l.texi: Renamed from
29745         doc/glibc-functions/iswdigit_l.texi.
29746         * doc/posix-functions/iswgraph_l.texi: Renamed from
29747         doc/glibc-functions/iswgraph_l.texi.
29748         * doc/posix-functions/iswlower_l.texi: Renamed from
29749         doc/glibc-functions/iswlower_l.texi.
29750         * doc/posix-functions/iswprint_l.texi: Renamed from
29751         doc/glibc-functions/iswprint_l.texi.
29752         * doc/posix-functions/iswpunct_l.texi: Renamed from
29753         doc/glibc-functions/iswpunct_l.texi.
29754         * doc/posix-functions/iswspace_l.texi: Renamed from
29755         doc/glibc-functions/iswspace_l.texi.
29756         * doc/posix-functions/iswupper_l.texi: Renamed from
29757         doc/glibc-functions/iswupper_l.texi.
29758         * doc/posix-functions/iswxdigit_l.texi: Renamed from
29759         doc/glibc-functions/iswxdigit_l.texi.
29760         * doc/posix-functions/isxdigit_l.texi: Renamed from
29761         doc/glibc-functions/isxdigit_l.texi.
29762         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
29763         doc/glibc-functions/mbsnrtowcs.texi.
29764         * doc/posix-functions/mkdtemp.texi: Renamed from
29765         doc/glibc-functions/mkdtemp.texi.
29766         * doc/posix-functions/newlocale.texi: Renamed from
29767         doc/glibc-functions/newlocale.texi.
29768         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
29769         doc/glibc-functions/nl_langinfo_l.texi.
29770         * doc/posix-functions/open_memstream.texi: Renamed from
29771         doc/glibc-functions/open_memstream.texi.
29772         * doc/posix-functions/opterr.texi: Renamed from
29773         doc/glibc-functions/opterr.texi.
29774         * doc/posix-functions/optind.texi: Renamed from
29775         doc/glibc-functions/optind.texi.
29776         * doc/posix-functions/optopt.texi: Renamed from
29777         doc/glibc-functions/optopt.texi.
29778         * doc/posix-functions/psignal.texi: Renamed from
29779         doc/glibc-functions/psignal.texi.
29780         * doc/posix-functions/scandir.texi: Renamed from
29781         doc/glibc-functions/scandir.texi.
29782         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
29783         doc/glibc-functions/sched_get_priority_min.texi.
29784         * doc/posix-functions/signgam.texi: Renamed from
29785         doc/glibc-functions/signgam.texi.
29786         * doc/posix-functions/stpcpy.texi: Renamed from
29787         doc/glibc-functions/stpcpy.texi.
29788         * doc/posix-functions/stpncpy.texi: Renamed from
29789         doc/glibc-functions/stpncpy.texi.
29790         * doc/posix-functions/strcasecmp_l.texi: Renamed from
29791         doc/glibc-functions/strcasecmp_l.texi.
29792         * doc/posix-functions/strcoll_l.texi: Renamed from
29793         doc/glibc-functions/strcoll_l.texi.
29794         * doc/posix-functions/strfmon_l.texi: Renamed from
29795         doc/glibc-functions/strfmon_l.texi.
29796         * doc/posix-functions/strftime_l.texi: Renamed from
29797         doc/glibc-functions/strftime_l.texi.
29798         * doc/posix-functions/strncasecmp_l.texi: Renamed from
29799         doc/glibc-functions/strncasecmp_l.texi.
29800         * doc/posix-functions/strndup.texi: Renamed from
29801         doc/glibc-functions/strndup.texi.
29802         * doc/posix-functions/strnlen.texi: Renamed from
29803         doc/glibc-functions/strnlen.texi.
29804         * doc/posix-functions/strsignal.texi: Renamed from
29805         doc/glibc-functions/strsignal.texi.
29806         * doc/posix-functions/strxfrm_l.texi: Renamed from
29807         doc/glibc-functions/strxfrm_l.texi.
29808         * doc/posix-functions/timer_gettime.texi: Renamed from
29809         doc/glibc-functions/timer_gettime.texi.
29810         * doc/posix-functions/tolower_l.texi: Renamed from
29811         doc/glibc-functions/tolower_l.texi.
29812         * doc/posix-functions/toupper_l.texi: Renamed from
29813         doc/glibc-functions/toupper_l.texi.
29814         * doc/posix-functions/towctrans_l.texi: Renamed from
29815         doc/glibc-functions/towctrans_l.texi.
29816         * doc/posix-functions/towlower_l.texi: Renamed from
29817         doc/glibc-functions/towlower_l.texi.
29818         * doc/posix-functions/towupper_l.texi: Renamed from
29819         doc/glibc-functions/towupper_l.texi.
29820         * doc/posix-functions/uselocale.texi: Renamed from
29821         doc/glibc-functions/uselocale.texi.
29822         * doc/posix-functions/vdprintf.texi: Renamed from
29823         doc/glibc-functions/vdprintf.texi.
29824         * doc/posix-functions/wcpcpy.texi:
29825         Renamed from doc/glibc-functions/wcpcpy.texi.
29826         * doc/posix-functions/wcpncpy.texi: Renamed from
29827         doc/glibc-functions/wcpncpy.texi.
29828         * doc/posix-functions/wcscasecmp.texi: Renamed from
29829         doc/glibc-functions/wcscasecmp.texi.
29830         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
29831         doc/glibc-functions/wcscasecmp_l.texi.
29832         * doc/posix-functions/wcscoll_l.texi: Renamed from
29833         doc/glibc-functions/wcscoll_l.texi.
29834         * doc/posix-functions/wcsdup.texi: Renamed from
29835         doc/glibc-functions/wcsdup.texi.
29836         * doc/posix-functions/wcsncasecmp.texi: Renamed from
29837         doc/glibc-functions/wcsncasecmp.texi.
29838         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
29839         doc/glibc-functions/wcsncasecmp_l.texi.
29840         * doc/posix-functions/wcsnlen.texi: Renamed from
29841         doc/glibc-functions/wcsnlen.texi.
29842         * doc/posix-functions/wcsnrtombs.texi: Renamed from
29843         doc/glibc-functions/wcsnrtombs.texi.
29844         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
29845         doc/glibc-functions/wcsxfrm_l.texi.
29846         * doc/posix-functions/wctrans_l.texi: Renamed from
29847         doc/glibc-functions/wctrans_l.texi.
29848         * doc/posix-functions/wctype_l.texi: Renamed from
29849         doc/glibc-functions/wctype_l.texi.
29850         * doc/gnulib.texi (Function Substitutes): Add these subsections.
29851         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
29852         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
29853         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
29854         these subsections.
29855         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
29856         Remove sections.
29857
29858 2008-12-14  Bruno Haible  <bruno@clisp.org>
29859
29860         Update doc for POSIX:2008.
29861         * doc/posix-functions/*.texi: Update URL of POSIX specification.
29862
29863 2008-12-14  Bruno Haible  <bruno@clisp.org>
29864
29865         Update doc for POSIX:2008.
29866         * doc/pastposix-functions/bcmp.texi: Renamed from
29867         doc/posix-functions/bcmp.texi.
29868         * doc/pastposix-functions/bcopy.texi: Renamed from
29869         doc/posix-functions/bcopy.texi.
29870         * doc/pastposix-functions/bsd_signal.texi: Renamed from
29871         doc/posix-functions/bsd_signal.texi.
29872         * doc/pastposix-functions/bzero.texi: Renamed from
29873         doc/posix-functions/bzero.texi.
29874         * doc/pastposix-functions/ecvt.texi: Renamed from
29875         doc/posix-functions/ecvt.texi.
29876         * doc/pastposix-functions/fcvt.texi: Renamed from
29877         doc/posix-functions/fcvt.texi.
29878         * doc/pastposix-functions/ftime.texi: Renamed from
29879         doc/posix-functions/ftime.texi.
29880         * doc/pastposix-functions/gcvt.texi: Renamed from
29881         doc/posix-functions/gcvt.texi.
29882         * doc/pastposix-functions/getcontext.texi: Renamed from
29883         doc/posix-functions/getcontext.texi.
29884         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
29885         doc/posix-functions/gethostbyaddr.texi.
29886         * doc/pastposix-functions/gethostbyname.texi: Renamed from
29887         doc/posix-functions/gethostbyname.texi.
29888         * doc/pastposix-functions/getwd.texi: Renamed from
29889         doc/posix-functions/getwd.texi.
29890         * doc/pastposix-functions/h_errno.texi: Renamed from
29891         doc/posix-functions/h_errno.texi.
29892         * doc/pastposix-functions/index.texi: Renamed from
29893         doc/posix-functions/index.texi.
29894         * doc/pastposix-functions/makecontext.texi: Renamed from
29895         doc/posix-functions/makecontext.texi.
29896         * doc/pastposix-functions/mktemp.texi: Renamed from
29897         doc/posix-functions/mktemp.texi.
29898         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
29899         doc/posix-functions/pthread_attr_getstackaddr.texi.
29900         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
29901         doc/posix-functions/pthread_attr_setstackaddr.texi.
29902         * doc/pastposix-functions/rindex.texi: Renamed from
29903         doc/posix-functions/rindex.texi.
29904         * doc/pastposix-functions/scalb.texi: Renamed from
29905         doc/posix-functions/scalb.texi.
29906         * doc/pastposix-functions/setcontext.texi: Renamed from
29907         doc/posix-functions/setcontext.texi.
29908         * doc/pastposix-functions/swapcontext.texi: Renamed from
29909         doc/posix-functions/swapcontext.texi.
29910         * doc/pastposix-functions/ualarm.texi: Renamed from
29911         doc/posix-functions/ualarm.texi.
29912         * doc/pastposix-functions/usleep.texi: Renamed from
29913         doc/posix-functions/usleep.texi.
29914         * doc/pastposix-functions/vfork.texi: Renamed from
29915         doc/posix-functions/vfork.texi.
29916         * doc/pastposix-functions/wcswcs.texi: Renamed from
29917         doc/posix-functions/wcswcs.texi.
29918         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
29919         (Function Substitutes): Update.
29920
29921 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29922
29923         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
29924         m4/strerror.m4.
29925
29926 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29927             Bruno Haible  <bruno@clisp.org>
29928
29929         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
29930
29931 2008-12-13  Bruno Haible  <bruno@clisp.org>
29932
29933         * modules/strtoull (Depends-on): Remove unistd.
29934
29935 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29936
29937         * modules/strtoull (Depends-on): Add stdlib.
29938
29939 2008-12-11  Simon Josefsson  <simon@josefsson.org>
29940
29941         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
29942
29943 2008-12-10  Jim Meyering  <meyering@redhat.com>
29944
29945         gl_ASSERT: don't say assertions are disabled when they're not
29946         * m4/assert.m4 (gl_ASSERT): Do not make configure report
29947         "checking whether to enable assertions... no", when they are in
29948         fact enabled.  This is solely a bug in the output of configure.
29949         In spite of saying "no", NDEBUG was not defined in that case.
29950         Also, as noted by Eric Blake, leave assertions enabled upon
29951         --enable-assert=INVALID.
29952
29953 2008-12-10  Bruno Haible  <bruno@clisp.org>
29954
29955         Change MODULES.html to refer to POSIX:2008 where possible.
29956         * MODULES.html.sh (POSIX2008_URL): New variable.
29957         (posix_headers): Remove sys/timeb, ucontext.
29958         (posix2001_headers): New variable.
29959         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
29960         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
29961         index, makecontext, mktemp, pthread_attr_getstackaddr,
29962         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
29963         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
29964         (posix2001_functions): New variable.
29965         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
29966         otherwise.
29967
29968 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29969
29970         add missing include to parse-duration.c
29971         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
29972         * modules/parse-duration (Depends-on): Add xalloc.
29973
29974         fix sed script reading maint.mk
29975         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
29976         (syntax-check-rules): Use it.
29977
29978 2008-12-09  Bruno Haible  <bruno@clisp.org>
29979
29980         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
29981         MacOS X 10.4/PowerPC.
29982         Reported by Simon Josefsson.
29983
29984 2008-12-08  Jim Meyering  <meyering@redhat.com>
29985
29986         work around mingw's lack of some S_IF definitions
29987         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
29988         Reported by Simon Josefsson.
29989
29990 2008-12-08  Bruno Haible  <bruno@clisp.org>
29991
29992         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
29993         applied to variables. Needed on MacOS X 10.4/PowerPC.
29994         Reported by Simon Josefsson.
29995
29996 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
29997         and Eric Blake  <ebb9@byu.net>
29998
29999         assert: honor --enable-assert
30000         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
30001         order to honor --enable-assert, rather than treating it as a
30002         synonym for --disable-assert.
30003
30004 2008-12-08  Jim Meyering  <meyering@redhat.com>
30005
30006         * lib/posixtm.c: Remove now-useless declaration of mktime.
30007
30008         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
30009
30010 2008-12-07  Bruno Haible  <bruno@clisp.org>
30011
30012         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
30013         test_once): Mark functions as static.
30014         * tests/test-tls.c (test_tls): Likewise.
30015
30016 2008-12-07  Bruno Haible  <bruno@clisp.org>
30017
30018         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
30019         iconv_register_autodetect.
30020
30021 2008-12-07  Jim Meyering  <meyering@redhat.com>
30022
30023         posixtm.c: avoid a warning
30024         * lib/posixtm.c (posixtime): Don't initialize tm0.
30025         It's no longer needed to placate gcc4's -Wuninitialized,
30026         and the attempt to placate would elicit a new warning.
30027
30028         unicodeio.c: mark unused parameters
30029         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
30030         (fallback_failure_callback): Likewise.
30031
30032 2008-12-07  Bruno Haible  <bruno@clisp.org>
30033
30034         * gnulib-tool (func_create_testdir): When building the tests
30035         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
30036         Reported by Simon Josefsson.
30037
30038 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30039
30040         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
30041
30042 2008-12-06  Bruno Haible  <bruno@clisp.org>
30043
30044         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
30045         Suggested by Eric Blake.
30046
30047 2008-12-06  Bruno Haible  <bruno@clisp.org>
30048
30049         Fix a c-stack test failure on MacOS X.
30050         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
30051         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
30052         handler for SIGBUS as well.
30053         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
30054         install a signal handler for SIGBUS as well.
30055         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
30056
30057 2008-12-06  Bruno Haible  <bruno@clisp.org>
30058
30059         Advocacy documentation.
30060         * doc/gnulib-intro.texi (Benefits): New section.
30061         * doc/gnulib.texi: Update.
30062
30063 2008-12-06  Bruno Haible  <bruno@clisp.org>
30064
30065         Document the 'manywarnings' module.
30066         * doc/manywarnings.texi: New file.
30067         * doc/gnulib.texi: Include it.
30068
30069 2008-12-05  Eric Blake  <ebb9@byu.net>
30070
30071         tests: silence some gcc warnings
30072         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
30073         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
30074         type mismatches.
30075
30076 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30077             Bruno Haible  <bruno@clisp.org>
30078
30079         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
30080
30081 2008-11-29  Jim Meyering  <meyering@redhat.com>
30082
30083         unicodeio.c: mark unused parameters
30084         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
30085         (fallback_failure_callback): Likewise.
30086
30087         fts: fix a thinko
30088         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
30089         (set_stat_type): Return S_IF*-valued "type" directly.
30090         Prompted by James Youngman's spotting a related bug.
30091         Confirmed by further testing through find.
30092
30093         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
30094         * lib/fts.c (D_TYPE): Define.
30095         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
30096         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
30097         (s_ifmt_shift_bits): New function.
30098         (set_stat_type): New function.
30099         (fts_build): When not calling fts_stat, call set_stat_type
30100         to propagate dirent.d_type info to fts_read caller.
30101         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
30102         fts_statp->st_mode type information may be valid.
30103
30104 2008-11-28  Simon Josefsson  <simon@josefsson.org>
30105
30106         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
30107         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
30108         <sds@gnu.org>.
30109
30110 2008-11-20  Bruno Haible  <bruno@clisp.org>
30111
30112         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
30113         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
30114         INCLUDE_NEXT.
30115         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
30116         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
30117         * modules/math (Makefile.am): Substitute
30118         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
30119         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30120
30121 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
30122             Bruno Haible  <bruno@clisp.org>
30123
30124         * lib/stdint.in.h: Define all type macros so that their expansion is
30125         a single typedef'ed token. Fixes a compilation failure in Boost which
30126         does "using ::int8_t;".
30127
30128 2008-11-18  Simon Josefsson  <simon@josefsson.org>
30129
30130         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
30131         gl_MANYWARN_ALL_GCC.
30132         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
30133         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
30134         * modules/manywarnings: New file.
30135         * MODULES.html.sh: Mention manywarnings module.
30136
30137 2008-11-18  Bruno Haible  <bruno@clisp.org>
30138
30139         * doc/gnulib-tool.texi (Unit tests): New section.
30140
30141 2008-11-18  Simon Josefsson  <simon@josefsson.org>
30142
30143         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
30144         paths like 'lib/po/foo.po'.
30145
30146 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30147
30148         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
30149         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
30150
30151 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30152
30153         * m4/warnings.m4: Use CPPFLAGS to really check whether the
30154         parameter works.
30155
30156 2008-11-17  Simon Josefsson  <simon@josefsson.org>
30157
30158         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
30159
30160 2008-11-17  Bruce Korb  <bkorb@gnu.org>
30161
30162         * modules/parse-duration-tests: New file.
30163         * tests/test-parse-duration.sh: New file.
30164         * tests/test-parse-duration.c: New file.
30165
30166         New module 'parse-duration'.
30167         * lib/parse-duration.h: New file.
30168         * lib/parse-duration.c: New file.
30169         * modules/parse-duration: New file.
30170
30171 2008-11-17  Bruno Haible  <bruno@clisp.org>
30172
30173         * tests/test-select-out.sh: Comment out the first pipe test.
30174         Reported by Simon Josefsson.
30175
30176 2008-11-17  Bruno Haible  <bruno@clisp.org>
30177
30178         * modules/getaddrinfo (Depends-on): Add servent, hostent.
30179         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
30180         gl_HOSTENT.
30181
30182 2008-11-17  Bruno Haible  <bruno@clisp.org>
30183
30184         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
30185         -lnetwork and -lnet. Needed for Haiku and BeOS.
30186
30187 2008-11-16  Bruno Haible  <bruno@clisp.org>
30188
30189         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
30190
30191 2008-11-16  Bruno Haible  <bruno@clisp.org>
30192
30193         Avoid test failure on Haiku.
30194         * tests/test-fsync.c: Include <errno.h>.
30195         (main): Don't require that fsync (0) fails.
30196
30197 2008-11-15  Bruno Haible  <bruno@clisp.org>
30198
30199         New module 'hostent'.
30200         * modules/hostent: New file.
30201         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
30202
30203 2008-11-15  Bruno Haible  <bruno@clisp.org>
30204
30205         New module 'servent'.
30206         * modules/servent: New file.
30207         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
30208
30209 2008-11-15  Bruno Haible  <bruno@clisp.org>
30210
30211         Avoid generating same test program with two different rules.
30212         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
30213         test-frexp to test-frexp-nolibm.
30214         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
30215         test-frexpl to test-frexpl-nolibm.
30216
30217 2008-11-15  Bruno Haible  <bruno@clisp.org>
30218
30219         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
30220         $(FREXPL_LIBM).
30221
30222 2008-11-15  Bruno Haible  <bruno@clisp.org>
30223
30224         * lib/netdb.in.h: Activate the definitions also when the system's
30225         <netdb.h> has 'struct addrinfo'.
30226         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
30227         EAI_OVERFLOW or AI_NUMERICSERV.
30228         * doc/posix-headers/netdb.texi: Document the problem.
30229
30230 2008-11-15  Bruno Haible  <bruno@clisp.org>
30231
30232         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
30233
30234         Make the 'sched' module work on platforms where <sched.h> exists but
30235         is incomplete (such as Haiku).
30236         * lib/sched.in.h; Include the system's <sched.h> if it exists.
30237         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
30238         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
30239         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
30240         HAVE_STRUCT_SCHED_PARAM.
30241         * modules/sched (Depends-on): Add include_next.
30242         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
30243         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
30244         * doc/posix-headers/sched.texi: Document the issue.
30245
30246 2008-11-13  Jim Meyering  <meyering@redhat.com>
30247
30248         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
30249         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
30250         test would fail due to the difference in the Report bugs to ...
30251         line.  The expected address is empty, "<>", while the actual
30252         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
30253
30254 2008-11-12  Bruno Haible  <bruno@clisp.org>
30255
30256         lstat: don't compile lstat.c on systems lacking lstat
30257         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
30258         which don't have lstat; this is handled by lib/sys_stat.in.h already.
30259         Reported by Daniel P. Berrange via Jim Meyering.
30260
30261 2008-11-12  Jim Meyering  <meyering@redhat.com>
30262
30263         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
30264
30265 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30266
30267         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
30268         instead.
30269
30270 2008-11-12  Bruno Haible  <bruno@clisp.org>
30271
30272         * lib/unicodeio.c: Include unistr.h.
30273         (utf8_wctomb): Remove function.
30274         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
30275
30276 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30277
30278         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
30279         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
30280         <bruno@clisp.org>.
30281         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
30282
30283 2008-11-12  Simon Josefsson  <simon@josefsson.org>
30284
30285         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
30286         * doc/gnulib.texi: Add section for warnings.
30287
30288 2008-11-11  Bruno Haible  <bruno@clisp.org>
30289
30290         * lib/sockets.h: Add a comment.
30291
30292 2008-11-11  Karl Berry  <karl@gnu.org>
30293
30294         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
30295
30296 2008-11-11  Eric Blake  <ebb9@byu.net>
30297
30298         fdl.texi: avoid git symlinks
30299         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
30300
30301 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30302
30303         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
30304
30305 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30306
30307         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
30308         (gl_WARN_ADD): Substitute $2 if literal.
30309
30310 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30311
30312         * m4/warning.m4: Remove.
30313
30314 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
30315
30316         * m4/warnings.m4: Almost complete rewrite. :-)
30317
30318 2008-11-10  Simon Josefsson  <simon@josefsson.org>
30319
30320         * modules/warnings: New module.
30321         * m4/warnings.m4: New file.
30322         * MODULES.html.sh: Mention warnings module.
30323         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
30324         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30325
30326 2008-11-10  Eric Blake  <ebb9@byu.net>
30327
30328         fdl.texi: make a symlink to the latest version
30329         * doc/standards.texi: Revert today's earlier change.
30330         * doc/fdl-1.2.texi: Rename from old fdl.texi...
30331         * doc/fdl.texi: ...and replace this with a symlink to the newer
30332         fdl-1.3.texi.
30333
30334 2008-11-10  Bruno Haible  <bruno@clisp.org>
30335
30336         * tests/test-select-fd.c (main): Accept the result file name as fourth
30337         argument.
30338         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
30339         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
30340
30341 2008-11-10  Bruno Haible  <bruno@clisp.org>
30342
30343         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
30344         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
30345         as autoconf-substituted macros.
30346         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
30347         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
30348         gl_NETDB_H_DEFAULTS. Set these variables.
30349         * modules/netdb (Makefile.am): Substitute these variables.
30350
30351 2008-11-10  Eric Blake  <ebb9@byu.net>
30352
30353         standards.texi: include correct file for FDL 1.3
30354         * doc/standards.texi (GNU Free Documentation License): Change
30355         include file to pull in FDL 1.3, not 1.2.
30356
30357         fdl.texi: revert accidental change to license
30358         * doc/fdl.texi: This is FDL 1.2, not 1.3.
30359
30360 2008-11-10  Bruno Haible  <bruno@clisp.org>
30361
30362         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
30363         cross-compiling guesses also when the native compile gives no result.
30364
30365 2008-11-10  Bruno Haible  <bruno@clisp.org>
30366
30367         * lib/spawni.c (__spawni): Force variable into the stack.
30368
30369 2008-11-10  Bruno Haible  <bruno@clisp.org>
30370
30371         Add support for Haiku.
30372         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
30373         glibc and BeOS, but also on Haiku.
30374         * lib/fpurge.c (fpurge): Likewise.
30375         * lib/freadable.c (freadable): Likewise.
30376         * lib/freadahead.c (freadahead): Likewise.
30377         * lib/freading.c (freading): Likewise.
30378         * lib/freadptr.c (freadptr): Likewise.
30379         * lib/freadseek.c (freadptrinc): Likewise.
30380         * lib/fseeko.c (rpl_fseeko): Likewise.
30381         * lib/fseterr.c (fseterr): Likewise.
30382         * lib/fwritable.c (fwritable): Likewise.
30383         * lib/fwriting.c (fwriting): Likewise.
30384         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
30385
30386 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
30387
30388         * lib/config.charset: Treat Haiku like BeOS.
30389
30390 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
30391
30392         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
30393         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
30394
30395 2008-11-08  Bruno Haible  <bruno@clisp.org>
30396
30397         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
30398         AC_CACHE_CHECK.
30399
30400 2008-11-08  Bruno Haible  <bruno@clisp.org>
30401
30402         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
30403
30404 2008-11-08  Bruno Haible  <bruno@clisp.org>
30405
30406         * tests/test-select-fd.c: New file.
30407         * tests/test-select-in.sh: New file.
30408         * tests/test-select-out.sh: New file.
30409         * tests/test-select-stdin.c: New file.
30410         * modules/select-tests (Files): Add the new files.
30411         (Depends-on): Add gettimeofday.
30412         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
30413         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
30414         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
30415
30416 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
30417             Bruno Haible  <bruno@clisp.org>
30418
30419         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
30420
30421 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
30422
30423         * build-aux/pmccabe2html: Added support for C++ source files.
30424
30425 2008-11-05  Ben Pfaff  <blp@gnu.org>
30426
30427         Fix lib/close.c build on Windows.
30428         * modules/close (Files): Add lib/w32sock.h.
30429
30430 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
30431
30432         Accept Bison's NEWS format.
30433         * build-aux/announce-gen (print_news_deltas): Tweak
30434         $re_prefix.
30435
30436 2008-11-04  Bruno Haible  <bruno@clisp.org>
30437
30438         * modules/random_r (Maintainer): Add glibc.
30439
30440 2008-11-04  Simon Josefsson  <simon@josefsson.org>
30441
30442         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
30443         by karl@freefriends.org (Karl Berry).
30444         * doc/alloca.texi: Likewise.
30445         * doc/c-ctype.texi: Likewise.
30446         * doc/c-strcase.texi: Likewise.
30447         * doc/c-strcaseeq.texi: Likewise.
30448         * doc/c-strcasestr.texi: Likewise.
30449         * doc/c-strstr.texi: Likewise.
30450         * doc/c-strtod.texi: Likewise.
30451         * doc/c-strtold.texi: Likewise.
30452         * doc/ctime.texi: Likewise.
30453         * doc/error.texi: Likewise.
30454         * doc/fdl.texi: Likewise.
30455         * doc/gcd.texi: Likewise.
30456         * doc/getdate.texi: Likewise.
30457         * doc/gnulib-intro.texi: Likewise.
30458         * doc/gnulib-tool.texi: Likewise.
30459         * doc/gnulib.texi: Likewise.
30460         * doc/inet_ntoa.texi: Likewise.
30461         * doc/maintain.texi: Likewise.
30462         * doc/make-stds.texi: Likewise.
30463         * doc/quote.texi: Likewise.
30464         * doc/regexprops-generic.texi: Likewise.
30465         * doc/standards.texi: Likewise.
30466         * doc/verify.texi: Likewise.
30467         * doc/visibility.texi: Likewise.
30468         * doc/gnulib.texi (GNU Free Documentation License): Include
30469         fdl-1.3.texi instead of fdl.texi.
30470
30471 2008-11-04  Simon Josefsson  <simon@josefsson.org>
30472
30473         * doc/fdl-1.3.texi: New file, from
30474         <http://www.gnu.org/licenses/fdl-1.3.texi>.
30475         * modules/fdl-1.3: Add.
30476         * MODULES.html.sh: Add fdl-1.3.
30477
30478 2008-11-03  Bruno Haible  <bruno@clisp.org>
30479
30480         Make determination of absolute name of header file work with AIX xlc.
30481         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
30482         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
30483         preprocessing.
30484         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30485         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30486
30487 2008-11-03  Simon Josefsson  <simon@josefsson.org>
30488
30489         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
30490         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
30491         <ludo@gnu.org>.
30492
30493 2008-11-02  Bruno Haible  <bruno@clisp.org>
30494
30495         Mark 'strpbrk' obsolete.
30496         * modules/strpbrk (Status, Notice): New sections.
30497         * modules/strtok_r (Depends-on): Add strpbrk.
30498
30499 2008-11-02  Bruno Haible  <bruno@clisp.org>
30500
30501         Mark 'strdup' obsolete.
30502         * modules/strdup (Status, Notice): New sections.
30503         * modules/findprog (Depends-on): Add strdup.
30504         * modules/getaddrinfo (Depends-on): Likewise.
30505         * modules/localename (Depends-on): Likewise.
30506         * modules/relocatable-lib (Depends-on): Likewise.
30507         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
30508         * modules/relocatable-prog (Depends-on): Likewise.
30509         * modules/trim (Depends-on): Likewise.
30510         * modules/unictype/gen-ctype (Depends-on): Likewise.
30511         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
30512
30513 2008-11-02  Bruno Haible  <bruno@clisp.org>
30514
30515         Mark 'strcspn' obsolete.
30516         * modules/strcspn (Status, Notice): New sections.
30517
30518 2008-11-02  Bruno Haible  <bruno@clisp.org>
30519
30520         Mark 'rmdir' obsolete.
30521         * modules/rmdir (Status, Notice): New sections.
30522         * modules/clean-temp (Depends-on): Add rmdir.
30523         * modules/openat (Depends-on): Likewise.
30524
30525 2008-11-02  Bruno Haible  <bruno@clisp.org>
30526
30527         Mark 'raise' obsolete.
30528         * modules/raise (Status, Notice): New sections.
30529         (Include): Specify <signal.h>.
30530         * modules/stdio (Depends-on): Add raise.
30531         * modules/write (Depends-on): Likewise.
30532
30533 2008-11-02  Bruno Haible  <bruno@clisp.org>
30534
30535         Mark 'memset' obsolete.
30536         * modules/memset (Status, Notice): New sections.
30537
30538 2008-11-02  Bruno Haible  <bruno@clisp.org>
30539
30540         Mark 'memmove' obsolete.
30541         * modules/memmove (Status, Notice): New sections.
30542         * modules/argp (Depends-on): Add memmove.
30543         * modules/argz (Depends-on): Likewise.
30544         * modules/canonicalize (Depends-on): Likewise.
30545         * modules/canonicalize-lgpl (Depends-on): Likewise.
30546         * modules/fts (Depends-on): Likewise.
30547         * modules/getcwd (Depends-on): Likewise.
30548         * modules/human (Depends-on): Likewise.
30549         * modules/regex (Depends-on): Likewise.
30550         * modules/striconveh (Depends-on): Likewise.
30551         * modules/trim (Depends-on): Likewise.
30552         * modules/unistr/u8-move (Depends-on): Likewise.
30553         * modules/unistr/u16-move (Depends-on): Likewise.
30554         * modules/unistr/u32-move (Depends-on): Likewise.
30555
30556 2008-11-02  Bruno Haible  <bruno@clisp.org>
30557
30558         Mark 'memcpy' obsolete.
30559         * modules/memcpy (Status, Notice): New sections.
30560
30561 2008-11-02  Bruno Haible  <bruno@clisp.org>
30562
30563         Mark 'memcmp' obsolete.
30564         * modules/memcmp (Status, Notice): New sections.
30565         * modules/argmatch (Depends-on): Add memchr.
30566         * modules/backupfile (Depends-on): Likewise.
30567         * modules/c-strcasestr (Depends-on): Likewise.
30568         * modules/crypto/des (Depends-on): Likewise.
30569         * modules/csharpcomp (Depends-on): Likewise.
30570         * modules/fnmatch (Depends-on): Likewise.
30571         * modules/git-merge-changelog (Depends-on): Likewise.
30572         * modules/isnand (Depends-on): Likewise.
30573         * modules/isnand-nolibm (Depends-on): Likewise.
30574         * modules/isnanf (Depends-on): Likewise.
30575         * modules/isnanf-nolibm (Depends-on): Likewise.
30576         * modules/isnanl (Depends-on): Likewise.
30577         * modules/isnanl-nolibm (Depends-on): Likewise.
30578         * modules/mbchar (Depends-on): Likewise.
30579         * modules/memcoll (Depends-on): Likewise.
30580         * modules/quotearg (Depends-on): Likewise.
30581         * modules/regex (Depends-on): Likewise.
30582         * modules/relocatable-prog (Depends-on): Likewise.
30583         * modules/same (Depends-on): Likewise.
30584         * modules/signbit (Depends-on): Likewise.
30585         * modules/strcasestr-simple (Depends-on): Likewise.
30586         * modules/unictype/gen-ctype (Depends-on): Likewise.
30587         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
30588         * modules/uniname/uniname (Depends-on): Likewise.
30589         * modules/unistr/u8-cmp (Depends-on): Likewise.
30590
30591 2008-11-02  Bruno Haible  <bruno@clisp.org>
30592
30593         Mark 'memchr' obsolete.
30594         * modules/memchr (Status, Notice): New sections.
30595         * modules/argp (Depends-on): Add memchr.
30596         * modules/base64 (Depends-on): Likewise.
30597         * modules/c-strcasestr (Depends-on): Likewise.
30598         * modules/chdir-long (Depends-on): Likewise.
30599         * modules/fnmatch (Depends-on): Likewise.
30600         * modules/getsubopt (Depends-on): Likewise.
30601         * modules/git-merge-changelog (Depends-on): Likewise.
30602         * modules/glob (Depends-on): Likewise.
30603         * modules/strcasestr-simple (Depends-on): Likewise.
30604         * modules/strnlen (Depends-on): Likewise.
30605
30606 2008-11-02  Bruno Haible  <bruno@clisp.org>
30607
30608         Mark 'atexit' obsolete.
30609         * modules/atexit (Status, Notice): New sections.
30610         * modules/chdir-long (Depends-on): Add atexit.
30611         * modules/wait-process (Depends-on): Likewise.
30612
30613 2008-11-02  Bruno Haible  <bruno@clisp.org>
30614
30615         * gnulib-tool: New option --with-obsolete.
30616         (func_usage): Document it.
30617         (func_modules_transitive_closure): Drop obsolete dependencies if
30618         incobsolete is not true.
30619         (func_import): Read and save the incobsolete variable to the cache.
30620
30621 2008-11-02  Bruno Haible  <bruno@clisp.org>
30622
30623         * modules/TEMPLATE-EXTENDED: New field 'Status'.
30624         * gnulib-tool: New option --extract-status.
30625         (func_usage): Document it.
30626         (sed_extract_prog): Recognize it.
30627         (func_get_status): New function.
30628
30629 2008-10-30  Simon Josefsson  <simon@josefsson.org>
30630
30631         * modules/sockets (License): Change from LGPL to LGPLv2+.
30632
30633 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30634
30635         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
30636
30637 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30638
30639         * MODULES.html.sh (Support for systems lacking POSIX:2001):
30640         Mention times and sys_times.
30641         * modules/sys_times, modules/sys_times-tests: New modules.
30642         * modules/times, modules/times-tests: Likewise
30643         * m4/sys_times_h.m4: New file.
30644         * lib/sys_times.in.h: Likewise
30645         * lib/times.c: Likewise.
30646         * tests/test-sys_times.c: Likewise.
30647         * tests/test-times.c: Likewise.
30648         * doc/posix-headers/sys_times.texi: Update.
30649         * doc/posix-functions/times.texi: Update.
30650
30651 2008-10-28  Jim Meyering  <meyering@redhat.com>
30652
30653         * modules/tempname (Depends-on): Add lstat.
30654
30655         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
30656
30657 2008-10-28  Simon Josefsson  <simon@josefsson.org>
30658
30659         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
30660         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
30661         using idiom used elsewhere in gnulib.
30662
30663 2008-10-27  Jim Meyering  <meyering@redhat.com>
30664
30665         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
30666
30667 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30668
30669         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
30670         TESTS_ENVIRONMENT, for shell scripts that needs to call built
30671         programs.
30672         * tests/test-argp-2.sh: Use $EXEEXT when needed.
30673
30674 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30675
30676         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
30677
30678 2008-10-27  Bruno Haible  <bruno@clisp.org>
30679
30680         * tests/test-lstat.c: Include <stdio.h>.
30681
30682 2008-10-27  Simon Josefsson  <simon@josefsson.org>
30683
30684         * modules/lstat-tests: New module.
30685         * tests/test-lstat.c: New file.
30686
30687 2008-10-26  Jim Meyering  <meyering@redhat.com>
30688
30689         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
30690
30691 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30692             Bruno Haible  <bruno@clisp.org>
30693
30694         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
30695         * modules/configmake (Include): Add a note that the include must come
30696         after all system headers.
30697         * lib/javaversion.c: Include configmake.h after all other includes.
30698
30699 2008-10-26  Bruno Haible  <bruno@clisp.org>
30700
30701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
30702         HAVE_STRUCT_RANDOM_DATA to 1.
30703         (gl_STDLIB_H): Simplify.
30704
30705 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30706
30707         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
30708         substitute HAVE_STRUCT_RANDOM_DATA.
30709         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
30710         random_data.
30711         * modules/stdlib (Makefile.am): Substitute
30712         HAVE_STRUCT_RANDOM_DATA.
30713
30714 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30715
30716         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
30717         * doc/gnulib-intro.texi (Copyright): Likewise.
30718
30719 2008-10-26  Simon Josefsson  <simon@josefsson.org>
30720
30721         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
30722         findings.
30723
30724 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
30725             Bruno Haible  <bruno@clisp.org>
30726
30727         * lib/unistd.in.h: Include <winsock2.h>.
30728         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
30729         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
30730         Provide dummy declarations.
30731         (gethostname): Override.
30732         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
30733         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
30734         gl_PREREQ_SYS_H_WINSOCK2.
30735         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
30736         * doc/posix-functions/gethostname.texi: More details.
30737
30738 2008-10-25  Bruno Haible  <bruno@clisp.org>
30739
30740         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
30741         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
30742         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
30743
30744         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
30745         here ...
30746         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
30747         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
30748         gl_UNISTD_H_DEFAULTS.
30749
30750 2008-10-25  Eric Blake  <ebb9@byu.net>
30751
30752         signbit: avoid spurious compiler failure
30753         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
30754         declarations inside function.
30755
30756 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30757             Bruno Haible  <bruno@clisp.org>
30758
30759         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
30760         * modules/random_r (Depends-on): Add stdint.
30761
30762 2008-10-24  Bruno Haible  <bruno@clisp.org>
30763
30764         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
30765         Eggert.
30766         * modules/strerror (License): Likewise.
30767
30768 2008-10-24  Jim Meyering  <meyering@redhat.com>
30769
30770         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
30771         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
30772
30773 2008-10-24  Eric Blake  <ebb9@byu.net>
30774
30775         getgroups: fix compilation when getgroups is available
30776         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
30777         but with <config.h> override of getgroups disabled.
30778
30779 2008-10-24  Simon Josefsson  <simon@josefsson.org>
30780
30781         * doc/gnulib.texi (Header files): Add note about C++ problems.
30782         Explained by Bruno Haible <bruno@clisp.org>.
30783
30784 2008-10-23  Bruno Haible  <bruno@clisp.org>
30785
30786         Define a dummy SA_NODEFER macro on Interix.
30787         * lib/signal.in.h (SA_NODEFER): Define fallback.
30788         Reported by Aleksey Cheusov <cheusov@tut.by> via
30789         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
30790
30791 2008-10-23  Bruno Haible  <bruno@clisp.org>
30792
30793         * modules/freadahead (License): Change to LGPLv2+.
30794         Suggested by Simon Josefsson.
30795
30796 2008-10-23  Jim Meyering  <meyering@redhat.com>
30797
30798         random_r: new module
30799         * modules/random_r: New file.
30800         * m4/random_r.m4: New file.
30801         * lib/random_r.c: New file, from glibc.
30802         * modules/random_r-tests: New file.
30803         * tests/test-random_r.c: New file.
30804         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
30805          Declare.
30806         (RAND_MAX): Define.
30807         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
30808         * modules/stdlib: Substitute them, too.
30809         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
30810         * doc/glibc-functions/initstate_r.texi: Mention the new module.
30811         * doc/glibc-functions/random_r.texi: Likewise.
30812         * doc/glibc-functions/setstate_r.texi: Likewise.
30813         * doc/glibc-functions/srandom_r.texi: Likewise.
30814         * config/srclist.txt: Mention it.
30815
30816 2008-10-23  David Lutterkort  <lutter@redhat.com>
30817
30818         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
30819         link requirement
30820
30821 2008-10-23  Jim Meyering  <meyering@redhat.com>
30822
30823         selinux-h: mark parameters of stub functions as intentionally unused
30824         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
30825         * lib/se-context.in.h: Likewise.
30826
30827 2008-10-22  Simon Josefsson  <simon@josefsson.org>
30828
30829         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
30830
30831 2008-10-22  Simon Josefsson  <simon@josefsson.org>
30832
30833         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
30834
30835 2008-10-22  Eric Blake  <ebb9@byu.net>
30836
30837         glthread/thread: avoid compiler warning
30838         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
30839         Add unreachable abort to silence compiler.
30840
30841 2008-10-22  Eric Blake  <ebb9@byu.net>
30842
30843         netdb: also supply struct addrinfo for cygwin 1.5.x
30844         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
30845         older cygwin.
30846         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
30847         cygwin.
30848         * doc/posix-headers/netdb.texi (netdb.h): Document this.
30849
30850 2008-10-22  Bruno Haible  <bruno@clisp.org>
30851
30852         * users.txt: Update entry about pspp.
30853
30854 2008-10-21  Bruno Haible  <bruno@clisp.org>
30855
30856         Simplification.
30857         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
30858         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
30859
30860         Simplification.
30861         * lib/ioctl.c (ioctl): Don't undefine.
30862         * lib/socket.c (socket): Don't undefine.
30863
30864         Remove unused module indicator macros.
30865         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
30866         GNULIB_$1 as a C macro.
30867
30868         * doc/posix-functions/close.texi: Undo last change.
30869         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
30870         Windows platforms.
30871
30872 2008-10-21  Bruno Haible  <bruno@clisp.org>
30873
30874         Add gethostname() declaration to <unistd.h>.
30875         * lib/unistd.in.h (gethostname): New declaration.
30876         * lib/gethostname.c: Include <unistd.h>.
30877         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
30878         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
30879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
30880         and HAVE_GETHOSTNAME.
30881         * modules/gethostname (Depends-on): Add unistd.
30882         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
30883         (Include): Specify <unistd.h>.
30884         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
30885         HAVE_GETHOSTNAME.
30886         * tests/test-gethostname.c: Include <unistd.h> first.
30887
30888 2008-10-21  Bruno Haible  <bruno@clisp.org>
30889
30890         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
30891         * modules/select-tests (Depends-on): Likewise.
30892         Reported by Simon Josefsson.
30893
30894 2008-10-21  Simon Josefsson  <simon@josefsson.org>
30895
30896         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
30897         * lib/accept.c: New file, based on winsock.c.
30898         * lib/bind.c: New file, based on winsock.c.
30899         * lib/connect.c: New file, based on winsock.c.
30900         * lib/getpeername.c: New file, based on winsock.c.
30901         * lib/getsockname.c: New file, based on winsock.c.
30902         * lib/getsockopt.c: New file, based on winsock.c.
30903         * lib/ioctl.c: New file, based on winsock.c.
30904         * lib/listen.c: New file, based on winsock.c.
30905         * lib/recv.c: New file, based on winsock.c.
30906         * lib/recvfrom.c: New file, based on winsock.c.
30907         * lib/send.c: New file, based on winsock.c.
30908         * lib/sendto.c: New file, based on winsock.c.
30909         * lib/setsockopt.c: New file, based on winsock.c.
30910         * lib/shutdown.c: New file, based on winsock.c.
30911         * lib/socket.c: New file, based on winsock.c.
30912         * lib/w32sock.h: New file, based on winsock.c.
30913         * lib/winsock.c: Remove file.
30914         * modules/accept: Likewise.
30915         * modules/bind: Likewise.
30916         * modules/connect: Likewise.
30917         * modules/getpeername: Likewise.
30918         * modules/getsockname: Likewise.
30919         * modules/getsockopt: Likewise.
30920         * modules/ioctl: Likewise.
30921         * modules/listen: Likewise.
30922         * modules/recv: Likewise.
30923         * modules/recvfrom: Likewise.
30924         * modules/send: Likewise.
30925         * modules/sendto: Likewise.
30926         * modules/setsockopt: Likewise.
30927         * modules/shutdown: Likewise.
30928         * modules/socket: Use socket.c instead of winsock.c.
30929         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
30930         * doc/posix-functions/accept.texi: Doc fix.
30931         * doc/posix-functions/bind.texi: Doc fix.
30932         * doc/posix-functions/close.texi: Doc fix.
30933         * doc/posix-functions/connect.texi: Doc fix.
30934         * doc/posix-functions/getpeername.texi: Doc fix.
30935         * doc/posix-functions/getsockname.texi: Doc fix.
30936         * doc/posix-functions/getsockopt.texi: Doc fix.
30937         * doc/posix-functions/ioctl.texi: Doc fix.
30938         * doc/posix-functions/listen.texi: Doc fix.
30939         * doc/posix-functions/recv.texi: Doc fix.
30940         * doc/posix-functions/recvfrom.texi: Doc fix.
30941         * doc/posix-functions/send.texi: Doc fix.
30942         * doc/posix-functions/sendto.texi: Doc fix.
30943         * doc/posix-functions/setsockopt.texi: Doc fix.
30944         * doc/posix-functions/shutdown.texi: Doc fix.
30945         * doc/posix-functions/socket.texi: Doc fix.
30946
30947 2008-10-20  Bruno Haible  <bruno@clisp.org>
30948
30949         Take into account the role of SIGABRT_COMPAT on Windows 2008.
30950         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
30951         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
30952         as an alias for SIGABRT.
30953         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
30954         (sigaction): Map it to SIGABRT.
30955         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
30956
30957 2008-10-20  Bruno Haible  <bruno@clisp.org>
30958
30959         * lib/fts.c: Don't include lstat.h.
30960         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
30961
30962         Move the lstat() declaration to <sys/stat.h>.
30963         * lib/lstat.h: Remove file.
30964         * lib/sys_stat.in.h: Add special invocation convention.
30965         (lstat): New declaration.
30966         * lib/lstat.c (orig_lstat): New function.
30967         (rpl_lstat): Use orig_lstat instead of lstat.
30968         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
30969         AC_C_INLINE. Set REPLACE_LSTAT.
30970         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
30971         and REPLACE_LSTAT.
30972         * modules/lstat (Files): Remove lib/lstat.h.
30973         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
30974         (Include): Specify <sys/stat.h> instead of lstat.h.
30975         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
30976         REPLACE_LSTAT.
30977         * NEWS: Mention the change.
30978
30979 2008-10-20  Bruno Haible  <bruno@clisp.org>
30980
30981         * modules/posix_spawn-tests: New file.
30982         * tests/test-posix_spawn3.c: New file.
30983
30984 2008-10-20  Bruno Haible  <bruno@clisp.org>
30985
30986         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
30987         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30988         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
30989         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
30990         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
30991
30992 2008-10-20  Bruno Haible  <bruno@clisp.org>
30993
30994         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
30995         of posix_spawn on AIX 5.3.
30996
30997 2008-10-20  Bruno Haible  <bruno@clisp.org>
30998
30999         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
31000
31001 2008-10-20  Bruno Haible  <bruno@clisp.org>
31002
31003         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
31004         of AC_LANG_PROGRAM.
31005
31006 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31007
31008         * lib/netdb.in.h: Don't define GNU specific constants until they
31009         are supported or needed.  Reported by Bruno Haible
31010         <bruno@clisp.org>.
31011
31012 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31013
31014         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
31015
31016 2008-10-20  Simon Josefsson  <simon@josefsson.org>
31017
31018         * lib/getaddrinfo.h: Remove file.
31019         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
31020         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
31021         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
31022         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
31023         * modules/netdb: Substitute GNULIB_GETADDRINFO.
31024         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
31025         * tests/test-getaddrinfo.c: Likewise.
31026         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
31027         * NEWS: Mention change.
31028
31029 2008-10-19  Bruno Haible  <bruno@clisp.org>
31030
31031         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
31032
31033 2008-10-19  Bruno Haible  <bruno@clisp.org>
31034
31035         * lib/wait-process.c: Include simply <sys/wait.h>.
31036         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
31037         WIFSTOPPED): Remove fallback definitions.
31038         * modules/wait-process (Depends-on): Add sys_wait.
31039
31040         New module 'sys_wait'.
31041         * modules/sys_wait: New file.
31042         * lib/sys_wait.in.h: New file, partially copied from
31043         lib/wait-process.c.
31044         * m4/sys_wait_h.m4: New file.
31045         * doc/posix-headers/sys_wait.texi: Mention the new module.
31046
31047 2008-10-19  Bruno Haible  <bruno@clisp.org>
31048
31049         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
31050
31051 2008-10-19  Bruno Haible  <bruno@clisp.org>
31052
31053         Assume that waitpid() fills an 'int' status, not a 'union wait'.
31054         * lib/wait-process.c (WAIT_T): Remove type.
31055         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
31056         (wait_subprocess): Update.
31057
31058 2008-10-19  Bruno Haible  <bruno@clisp.org>
31059
31060         New module 'atoll'.
31061         * modules/atoll: New file.
31062         * lib/stdlib.in.h (atoll): New declaration.
31063         * lib/atoll.c: New file, from glibc with modifications.
31064         * m4/atoll.m4: New file.
31065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
31066         HAVE_ATOLL.
31067         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
31068         * doc/posix-functions/atoll.texi: Mention the new module.
31069
31070 2008-10-19  Bruno Haible  <bruno@clisp.org>
31071
31072         Add strtoull() declaration to <stdlib.h>.
31073         * lib/stdlib.in.h (strtoull): New declaration.
31074         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
31075         Set HAVE_STRTOULL.
31076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
31077         HAVE_STRTOULL.
31078         * modules/strtoull (Depends-on): Add stdlib.
31079         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31080         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
31081         HAVE_STRTOULL.
31082
31083 2008-10-19  Bruno Haible  <bruno@clisp.org>
31084
31085         Add strtoll() declaration to <stdlib.h>.
31086         * lib/stdlib.in.h (strtoll): New declaration.
31087         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
31088         Set HAVE_STRTOLL.
31089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
31090         HAVE_STRTOLL.
31091         * modules/strtoll (Depends-on): Add stdlib.
31092         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31093         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
31094
31095 2008-10-19  Bruno Haible  <bruno@clisp.org>
31096
31097         * modules/bcopy (Depends-on): Add strings.
31098         (Include): Specify <strings.h>.
31099
31100 2008-10-19  Bruno Haible  <bruno@clisp.org>
31101
31102         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
31103
31104 2008-10-19  Bruno Haible  <bruno@clisp.org>
31105
31106         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
31107         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
31108         mingw.
31109
31110 2008-10-19  Bruno Haible  <bruno@clisp.org>
31111
31112         * lib/atanl.c: Don't include isnanl.h.
31113         * lib/cosl.c: Likewise.
31114         * lib/ldexpl.c: Likewise.
31115         * lib/logl.c: Likewise.
31116         * lib/sinl.c: Likewise.
31117         * lib/sqrtl.c: Likewise.
31118         * lib/tanl.c: Likewise.
31119
31120         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
31121         * lib/isnanf.h: Remove file.
31122         * lib/isnand.h: Remove file.
31123         * lib/isnanl.h: Remove file.
31124         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
31125         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
31126         macros.
31127         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
31128         HAVE_ISNANF, don't define it as a C macro.
31129         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
31130         HAVE_ISNAND, don't define it as a C macro.
31131         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
31132         HAVE_ISNANL, don't define it as a C macro.
31133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
31134         HAVE_ISNAN[FDL].
31135         * modules/isnanf (Files): Remove lib/isnanf.h.
31136         (Depends-on): Add math.
31137         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31138         (Include): Specify <math.h> instead of isnanf.h.
31139         * modules/isnand (Files): Remove lib/isnand.h.
31140         (Depends-on): Add math.
31141         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31142         (Include): Specify <math.h> instead of isnand.h.
31143         * modules/isnanl (Files): Remove lib/isnanl.h.
31144         (Depends-on): Add math.
31145         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
31146         (Include): Specify <math.h> instead of isnanl.h.
31147         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
31148         HAVE_ISNAN[FDL].
31149         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
31150         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
31151         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
31152         * NEWS: Mention the change.
31153
31154 2008-10-18  Bruno Haible  <bruno@clisp.org>
31155
31156         Add getusershell(), setusershell(), endusershell() declarations to
31157         <unistd.h>.
31158         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
31159         declarations.
31160         * lib/getusershell.c: Include unistd.h.
31161         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
31162         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
31163         HAVE_GETUSERSHELL.
31164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
31165         and HAVE_GETUSERSHELL.
31166         * modules/getusershell (Depends-on): Add unistd, extensions.
31167         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31168         (Include): Specify <unistd.h>.
31169         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
31170         HAVE_GETUSERSHELL.
31171
31172 2008-10-18  Bruno Haible  <bruno@clisp.org>
31173
31174         Add a getloadavg() declaration to <stdlib.h>.
31175         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
31176         getloadavg declaration.
31177         (getloadavg): New declaration.
31178         * lib/getloadavg.c: Include <stdlib.h> first.
31179         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
31180         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
31181         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
31182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
31183         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
31184         * modules/getloadavg (Depends-on): Add stdlib, extensions.
31185         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31186         (Include): Specify <stdlib.h>.
31187         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
31188         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
31189
31190 2008-10-18  Bruno Haible  <bruno@clisp.org>
31191
31192         * lib/dirchownmod.c: Don't include lchmod.h.
31193
31194         Move the lchmod() declaration to <sys/stat.h>.
31195         * lib/lchmod.h: Remove file.
31196         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
31197         (lchmod): New declaration, moved here from lib/lchown.h.
31198         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
31199         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
31200         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
31201         and HAVE_LCHMOD.
31202         * modules/lchmod (Files): Remove lib/lchmod.h.
31203         (Depends-on): Add sys_stat, extensions.
31204         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
31205         (Include): Specify <sys/stat.h> instead of lchmod.h.
31206         * modules/sys_stat (Depends-on): Add link-warning.
31207         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
31208         definition of GL_LINK_WARNING.
31209         * NEWS: Mention the change.
31210
31211 2008-10-18  Bruno Haible  <bruno@clisp.org>
31212
31213         * lib/fchdir.c: Don't include dirfd.h.
31214         * lib/fts.c: Likewise.
31215         * lib/getcwd.c: Likewise.
31216         * lib/glob.c: Likewise.
31217
31218         Move the dirfd() declaration to <dirent.h>.
31219         * lib/dirfd.h: Remove file.
31220         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
31221         (dirfd): New declaration.
31222         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
31223         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
31224         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
31225         HAVE_DECL_DIRFD.
31226         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
31227         HAVE_DECL_DIRFD.
31228         * modules/dirfd (Files): Remove lib/dirfd.h.
31229         (Depends-on): Add dirent, extensions.
31230         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
31231         (Include): Specify <dirent.h> instead of dirfd.h.
31232         * modules/dirent (Depends-on): Add link-warning.
31233         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
31234         definition of GL_LINK_WARNING.
31235         * NEWS: Mention the change.
31236
31237 2008-10-18  Bruno Haible  <bruno@clisp.org>
31238
31239         Move the euidaccess() declaration to <unistd.h>.
31240         * lib/euidaccess.h: Remove file.
31241         * lib/unistd.in.h (euidaccess): New declaration.
31242         * lib/euidaccess.c: Don't include euidaccess.h.
31243         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
31244         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
31245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
31246         and HAVE_EUIDACCESS.
31247         * modules/euidaccess (Files): Remove lib/euidaccess.h.
31248         (Depends-on): Add unistd.
31249         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31250         (Include): Specify <unistd.h> instead of euidaccess.h.
31251         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
31252         HAVE_EUIDACCESS.
31253         * NEWS: Mention the change.
31254
31255 2008-10-18  Bruno Haible  <bruno@clisp.org>
31256
31257         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
31258
31259         Move the getdomainname() declaration to <unistd.h>.
31260         * lib/getdomainname.h: Remove file.
31261         * lib/unistd.in.h (getdomainname): New declaration.
31262         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
31263         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
31264         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
31265         HAVE_GETDOMAINNAME.
31266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31267         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
31268         * modules/getdomainname (Files): Remove lib/getdomainname.h.
31269         (Depends-on): Add unistd, extensions.
31270         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31271         (Includes): Specify <unistd.h> instead of getdomainname.h.
31272         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
31273         HAVE_GETDOMAINNAME.
31274         * NEWS: Mention the change.
31275
31276 2008-10-18  Bruno Haible  <bruno@clisp.org>
31277
31278         * modules/dirent: New file.
31279         * m4/dirent_h.m4: New file.
31280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
31281         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
31282         * modules/fchdir (Files): Remove lib/dirent.in.h.
31283         (Depends-on): Add dirent.
31284         (Makefile.am): Move rules to modules/dirent.
31285         * doc/posix-headers/dirent.texi: Mention the new module.
31286
31287 2008-10-18  Bruno Haible  <bruno@clisp.org>
31288
31289         Avoid -Wunused-parameter warnings in public gnulib header files.
31290         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
31291         macro.
31292         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
31293
31294 2008-10-18  Bruno Haible  <bruno@clisp.org>
31295
31296         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
31297         * doc/glibc-functions/error.texi: Mention the module 'error'.
31298         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
31299         * doc/glibc-functions/getdomainname.texi: Mention the module
31300         'getdomainname'.
31301         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
31302         * doc/glibc-functions/getpagesize.texi: Mention the module
31303         'getpagesize'.
31304         * doc/glibc-functions/getusershell.texi: Mention the module
31305         'getusershell'.
31306         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
31307         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
31308         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
31309         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
31310         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
31311         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
31312         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
31313         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
31314         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
31315         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
31316         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
31317         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
31318         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
31319         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
31320
31321 2008-10-17  Bruno Haible  <bruno@clisp.org>
31322
31323         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
31324         HP-UX and IRIX, use -0.0L.
31325         * tests/test-ceill.c (minus_zero): Likewise.
31326         * tests/test-floorl.c (minus_zero): Likewise.
31327         * tests/test-frexpl.c (minus_zero): Likewise.
31328         * tests/test-isnan.c (minus_zerol): Likewise.
31329         * tests/test-isnanl.h (minus_zero): Likewise.
31330         * tests/test-ldexpl.c (minus_zero): Likewise.
31331         * tests/test-roundl.c (minus_zero): Likewise.
31332         * tests/test-signbit.c (minus_zerol): Likewise.
31333         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31334         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31335         * tests/test-truncl.c (minus_zero): Likewise.
31336         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31337         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31338         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
31339         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31340
31341 2008-10-17  Bruno Haible  <bruno@clisp.org>
31342
31343         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
31344         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
31345         that it gets activated only for gcc >= 3.0.
31346         * lib/dirent.in.h: Likewise.
31347         * lib/errno.in.h: Likewise.
31348         * lib/fcntl.in.h: Likewise.
31349         * lib/float.in.h: Likewise.
31350         * lib/iconv.in.h: Likewise.
31351         * lib/inttypes.in.h: Likewise.
31352         * lib/locale.in.h: Likewise.
31353         * lib/math.in.h: Likewise.
31354         * lib/netdb.in.h: Likewise.
31355         * lib/netinet_in.in.h: Likewise.
31356         * lib/search.in.h: Likewise.
31357         * lib/signal.in.h: Likewise.
31358         * lib/spawn.in.h: Likewise.
31359         * lib/stdarg.in.h: Likewise.
31360         * lib/stdint.in.h: Likewise.
31361         * lib/stdio.in.h: Likewise.
31362         * lib/stdlib.in.h: Likewise.
31363         * lib/string.in.h: Likewise.
31364         * lib/strings.in.h: Likewise.
31365         * lib/sys_file.in.h: Likewise.
31366         * lib/sys_ioctl.in.h: Likewise.
31367         * lib/sys_select.in.h: Likewise.
31368         * lib/sys_socket.in.h: Likewise.
31369         * lib/sys_stat.in.h: Likewise.
31370         * lib/sys_time.in.h: Likewise.
31371         * lib/sysexits.in.h: Likewise.
31372         * lib/time.in.h: Likewise.
31373         * lib/unistd.in.h: Likewise.
31374         * lib/wchar.in.h: Likewise.
31375         * lib/wctype.in.h: Likewise.
31376         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31377
31378 2008-10-17  Jim Meyering  <meyering@redhat.com>
31379
31380         ignore-value: don't depend on inline module
31381         * modules/ignore-value (Depends-on): Remove 'inline'.
31382         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
31383         Suggestion from Bruno Haible.
31384
31385 2008-10-17  Bruno Haible  <bruno@clisp.org>
31386
31387         New implementation of condition variables for Win32.
31388         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
31389         (gl_linked_waitqueue_t): New type.
31390         (gl_cond_t): Use it.
31391         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
31392         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
31393         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
31394         (glthread_cond_init_func, glthread_cond_wait_func,
31395         glthread_cond_timedwait_func, glthread_cond_signal_func,
31396         glthread_cond_broadcast_func, glthread_cond_destroy_func):
31397         Reimplemented on the basis of gl_linked_waitqueue_t.
31398         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
31399         gl_waitqueue_t.
31400         (gl_rwlock_t): Update.
31401         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
31402
31403 2008-10-17  Simon Josefsson  <simon@josefsson.org>
31404
31405         * modules/recvfrom (Depends-on): Add dependency on getpeername.
31406         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31407
31408 2008-10-17  Jim Meyering  <meyering@redhat.com>
31409
31410         ignore-value: new module
31411         * modules/ignore-value: New file.
31412         * lib/ignore-value.h: New file.
31413         * MODULES.html.sh (Compiler warning management): New section,
31414         just for this module.  More to come.
31415
31416 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31417
31418         open-safer.c: avoid 'signed and unsigned in conditional...' warning
31419         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
31420         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
31421
31422 2008-10-16  Jim Meyering  <meyering@redhat.com>
31423
31424         openat-die.c: avoid 'no previous prototype' warning
31425         * lib/openat-die.c: Include "openat.h".
31426         Reported by Reuben Thomas <rrt@sc3d.org>.
31427
31428 2008-10-16  Simon Josefsson  <simon@josefsson.org>
31429
31430         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
31431         * lib/netdb.in.h: Fix typo.
31432         Reported by Bruno Haible  <bruno@clisp.org>
31433
31434         * lib/netdb.in.h: Include sys/socket.h for platforms without
31435         netdb.h, to get structures like hostent on MinGW.
31436         * modules/netdb (Depends-on): Add sys_socket.
31437
31438 2008-10-15  Simon Josefsson  <simon@josefsson.org>
31439
31440         * modules/netdb, modules/netdb-tests: New file.
31441         * m4/netdb_h.m4: New file.
31442         * lib/netdb.in.h: Add, currently just an empty file pending
31443         definitions.
31444         * tests/test-netdb.c: New file.
31445         * doc/posix-headers/netdb.texi: Mention that we replace it if
31446         needed.
31447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31448         netdb.
31449
31450 2008-10-15  Simon Josefsson  <simon@josefsson.org>
31451
31452         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
31453         with code.
31454
31455 2008-10-13  Bruno Haible  <bruno@clisp.org>
31456
31457         * lib/glthread/cond.c (glthread_cond_wait_func,
31458         glthread_cond_timedwait_func): Add a comment.
31459
31460 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31461
31462         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
31463         * tests/test-select.c: Likewise,
31464
31465 2008-10-13  Bruno Haible  <bruno@clisp.org>
31466
31467         * lib/glthread/cond.c (glthread_cond_wait_func,
31468         glthread_cond_timedwait_func): Fix variable name.
31469         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31470
31471 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
31472
31473         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
31474         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
31475         struct sockaddr.sa_len.
31476         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
31477
31478 2008-10-13  Simon Josefsson  <simon@josefsson.org>
31479
31480         * build-aux/pmccabe2html: Add css and css_url parameters.
31481
31482 2008-10-12  Bruno Haible  <bruno@clisp.org>
31483
31484         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
31485         calling aclx_get.
31486         Reported by Rainer Tammer <tammer@tammer.net>.
31487
31488 2008-10-12  Bruno Haible  <bruno@clisp.org>
31489
31490         Use msvcrt aware primitives for creation/termination of Win32 threads.
31491         * lib/glthread/thread.c: Include <process.h>.
31492         (glthread_create_func): Use _beginthreadex instead of CreateThread.
31493         (wrapper_func): Update signature.
31494         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
31495
31496 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
31497             Bruno Haible  <bruno@clisp.org>
31498
31499         Provide a Win32 implementation of the 'cond' module.
31500         * lib/glthread/cond.h [USE_WIN32]: New implementation.
31501         * lib/glthread/cond.c (glthread_cond_init_func,
31502         glthread_cond_wait_func, glthread_cond_timedwait_func,
31503         glthread_cond_signal_func, glthread_cond_broadcast_func,
31504         glthread_cond_destroy_func) [USE_WIN32]: New functions.
31505         * modules/cond (Dependencies): Add gettimeofday.
31506
31507 2008-10-11  Bruno Haible  <bruno@clisp.org>
31508
31509         Make sleep work on older versions of mingw.
31510         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
31511         only whether it exists.
31512         * doc/posix-functions/sleep.texi: Mention the problem with older
31513         versions of mingw.
31514
31515 2008-10-11  Bruno Haible  <bruno@clisp.org>
31516
31517         New module 'shutdown'.
31518         * modules/shutdown: New file.
31519         * lib/sys_socket.in.h (shutdown): New declaration.
31520         * lib/winsock.c (shutdown): New function.
31521         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
31522         GNULIB_SHUTDOWN.
31523         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
31524         * doc/posix-functions/shutdown.texi: Document the new module.
31525
31526 2008-10-11  Jim Meyering  <meyering@redhat.com>
31527
31528         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
31529
31530 2008-10-11  Bruno Haible  <bruno@clisp.org>
31531
31532         New module 'fclose'.
31533         * modules/fclose: New file.
31534         * lib/stdio.in.h (fclose): New declaration.
31535         * lib/fclose.c: New file.
31536         * m4/fclose.m4: New file.
31537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
31538         REPLACE_FCLOSE.
31539         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
31540         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
31541         REPLACE_FCLOSE.
31542         * modules/close (Depends-on): fclose.
31543         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
31544
31545 2008-10-11  Bruno Haible  <bruno@clisp.org>
31546
31547         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
31548         set errno and don't call _close.
31549
31550 2008-10-10  Bruno Haible  <bruno@clisp.org>
31551
31552         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
31553         ACL, not afterwards. Fixes test failure on Cygwin.
31554
31555 2008-10-09  Ben Pfaff  <blp@gnu.org>
31556
31557         * build-aux/announce-gen: Fix gnulib version related part of usage
31558         message.  Die with a useful error message if no tarballs are
31559         found.
31560
31561 2008-10-10  Jim Meyering  <meyering@redhat.com>
31562
31563         bootstrap: use git's --depth=N option only if it's supported
31564         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
31565         recognize the --depth option.  Reported by Pádraig Brady.
31566
31567 2008-10-09  Bruno Haible  <bruno@clisp.org>
31568
31569         New module 'ioctl'.
31570         * modules/ioctl: New file.
31571         * lib/sys_socket.in.h (ioctl): Remove declaration.
31572         * lib/winsock.c: Include <sys/ioctl.h>.
31573         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
31574         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
31575         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
31576         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
31577         * doc/posix-functions/ioctl.texi: Mention the new module.
31578
31579 2008-10-09  Bruno Haible  <bruno@clisp.org>
31580
31581         New module 'sys_ioctl'.
31582         * lib/sys_ioctl.in.h: New file.
31583         * m4/sys_ioctl_h.m4: New file.
31584         * modules/sys_ioctl: New file.
31585         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
31586
31587 2008-10-09  Bruno Haible  <bruno@clisp.org>
31588
31589         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
31590         * lib/winsock.c: Include <stdarg.h>.
31591         (rpl_ioctl): Change to second argument 'int' and then varargs.
31592
31593 2008-10-09  Bruno Haible  <bruno@clisp.org>
31594
31595         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
31596         when the sys_socket module is present and the system has <winsock2.h>.
31597
31598 2008-10-09  Bruno Haible  <bruno@clisp.org>
31599
31600         * doc/posix-functions/close.texi: Mention module 'close' instead of
31601         module 'sys_socket'.
31602
31603 2008-10-09  Bruno Haible  <bruno@clisp.org>
31604
31605         * doc/glibc-headers/sys_ioctl.texi: New file.
31606         * doc/gnulib.texi: Include it.
31607
31608 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31609             Bruno Haible  <bruno@clisp.org>
31610
31611         Combine the two replacements of 'close'.
31612         * lib/sys_socket.in.h (close): Define to a reminder to include
31613         <unistd.h>.
31614         (_gl_close_fd_maybe_socket): New declaration.
31615         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
31616         * lib/winsock.c (close): Remove undefinition.
31617         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
31618         needed for the gnulib module 'close'.
31619         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
31620         define to an error symbol or to a warning, if suitable.
31621         * lib/close.c: Include <sys/socket.h>.
31622         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
31623         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
31624         UNISTD_H_HAVE_WINSOCK2_H.
31625         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
31626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31627         UNISTD_H_HAVE_WINSOCK2_H.
31628         * modules/sys_socket (Files): Add m4/unistd_h.m4.
31629         (configure.ac): Set a module indicator.
31630         (Makefile.am): Substitute GNULIB_CLOSE.
31631         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
31632         * modules/poll-tests (Depends-on): Add close.
31633         * modules/select-tests (Depends-on): Likewise.
31634
31635 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31636             Bruno Haible  <bruno@clisp.org>
31637
31638         New module 'close'.
31639         * modules/close: New file.
31640         * lib/unistd.in.h (close): Move declaration out of the
31641         FCHDIR_REPLACEMENT scope.
31642         (_gl_unregister_fd): New declaration.
31643         * lib/close.c: New file.
31644         * lib/fchdir.c (rpl_close): Remove function.
31645         * m4/close.m4: New file.
31646         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31647         close.
31648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
31649         REPLACE_CLOSE.
31650         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
31651         REPLACE_CLOSE.
31652         * modules/fchdir (Depends-on): Add close.
31653
31654 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31655             Bruno Haible  <bruno@clisp.org>
31656
31657         * lib/fcntl.in.h (open): Simplify conditionals.
31658         (_gl_register_fd): New declaration.
31659         * lib/fchdir.c (rpl_open): Remove function.
31660         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
31661         also.
31662         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
31663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
31664         open.
31665
31666 2008-10-09  Jim Meyering  <meyering@redhat.com>
31667
31668         GNUmakefile: use the more name-space-friendly "_version"
31669         * top/GNUmakefile (_dummy): Update.
31670         (_version): Rename from "version".
31671
31672 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31673             Bruno Haible  <bruno@clisp.org>
31674
31675         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
31676         rpl_close.
31677         (_gl_register_fd): New function, extracted from rpl_open.
31678         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
31679         (rpl_open, rpl_opendir): Use _gl_register_fd.
31680
31681 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
31682
31683         Fix organization of 'open' replacement.
31684         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
31685         (gl_FUNC_OPEN): Use it.
31686         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
31687
31688 2008-10-08  Bruno Haible  <bruno@clisp.org>
31689
31690         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
31691
31692 2008-10-08  Simon Josefsson  <simon@josefsson.org>
31693
31694         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
31695         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
31696         listen).
31697
31698 2008-10-08  Eric Blake  <ebb9@byu.net>
31699
31700         GNUmakefile: add 'make version' target
31701         * top/GNUmakefile (_curr-ver): Split version update rules...
31702         (version): ...into a target.
31703
31704 2008-10-07  Bruno Haible  <bruno@clisp.org>
31705
31706         Use a more portable replacement expression for -0.0L.
31707         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
31708         instead of -0.0L. Fix m4 quotation.
31709
31710         * tests/test-signbit.c: Include <float.h>.
31711         (minus_zero): New variable.
31712         (test_signbitl): Use minus_zero instead of -zero.
31713         * modules/signbit-tests (Depends-on): Add float.
31714
31715         * tests/test-ceill.c: Include <float.h>.
31716         (zero): Remove variable.
31717         (minus_zero): New variable.
31718         (main): Use minus_zero instead of -zero.
31719         * modules/ceill-tests (Depends-on): Add float.
31720
31721         * tests/test-floorl.c: Include <float.h>.
31722         (zero): Remove variable.
31723         (minus_zero): New variable.
31724         (main): Use minus_zero instead of -zero.
31725         * modules/floorl-tests (Depends-on): Add float.
31726
31727         * tests/test-roundl.c: Include <float.h>.
31728         (zero): Remove variable.
31729         (minus_zero): New variable.
31730         (main): Use minus_zero instead of -zero.
31731         * modules/roundl-tests (Depends-on): Add float.
31732
31733         * tests/test-truncl.c: Include <float.h>.
31734         (zero): Remove variable.
31735         (minus_zero): New variable.
31736         (main): Use minus_zero instead of -zero.
31737         * modules/truncl-tests (Depends-on): Add float.
31738
31739         * tests/test-frexpl.c (zero): Remove variable.
31740         (minus_zero): New variable.
31741         (main): Use minus_zero instead of -zero.
31742         * modules/frexpl-tests (Depends-on): Add float.
31743
31744         * tests/test-isnan.c (zerol): Remove variable.
31745         (minus_zerol): New variable.
31746         (test_long_double): Use minus_zerol instead of -zerol.
31747         * modules/isnan-tests (Depends-on): Add float.
31748
31749         * tests/test-isnanl.h (zero): Remove variable.
31750         (minus_zero): New variable.
31751         (main): Use minus_zero instead of -zero.
31752         * modules/isnanl-nolibm-tests (Depends-on): Add float.
31753         * modules/isnanl-tests (Depends-on): Add float.
31754
31755         * tests/test-ldexpl.c (zero): Remove variable.
31756         (minus_zero): New variable.
31757         (main): Use minus_zero instead of -zero.
31758         * modules/ldexpl-tests (Depends-on): Add float.
31759
31760         * tests/test-snprintf-posix.h (zerol): Remove variable.
31761         (minus_zerol): New variable.
31762         (test_function): Use minus_zerol instead of -zerol.
31763         * modules/snprintf-posix-tests (Depends-on): Add float.
31764         * modules/vsnprintf-posix-tests (Depends-on): Add float.
31765
31766         * tests/test-sprintf-posix.h (zerol): Remove variable.
31767         (minus_zerol): New variable.
31768         (test_function): Use minus_zerol instead of -zerol.
31769         * modules/sprintf-posix-tests (Depends-on): Add float.
31770         * modules/vsprintf-posix-tests (Depends-on): Add float.
31771
31772         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
31773         (minus_zerol): New variable.
31774         (test_function): Use minus_zerol instead of -zerol.
31775         * modules/vasnprintf-posix-tests (Depends-on): Add float.
31776
31777         * tests/test-vasprintf-posix.c (zerol): Remove variable.
31778         (minus_zerol): New variable.
31779         (test_function): Use minus_zerol instead of -zerol.
31780         * modules/vasprintf-posix-tests (Depends-on): Add float.
31781
31782 2008-10-07  Simon Josefsson  <simon@josefsson.org>
31783
31784         * MODULES.html.sh (Support for building documentation): Mention
31785         pmccabe2html.  Sort entries.
31786
31787         Add pmccabe2html module, from gnupdf.
31788         * build-aux/pmccabe.css: New file.
31789         * build-aux/pmccabe2html: New file.
31790         * m4/pmccabe2html.m4: New file.
31791         * modules/pmccabe2html: New file.
31792
31793 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
31794
31795         flock: new module
31796         * MODULES.html.sh: Add to list of modules.
31797         * lib/flock.c: flock implementation for Windows and Unix systems
31798         which have fcntl.
31799         * doc/glibc-functions/flock.texi: Update documentation.
31800         * lib/sys_file.in.h: <sys/file.h> header file.
31801         * m4/flock.m4: M4 macros.
31802         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
31803         * modules/flock: flock module.
31804         * modules/flock-tests: flock tests module.
31805         * modules/sys_file: sys/file.h module.
31806         * tests/test-flock.c: test suite for flock.
31807
31808 2008-10-06  Jim Meyering  <meyering@redhat.com>
31809
31810         bootstrap: check for LT_INIT more portably still ;-)
31811         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
31812         Spotted by Bruno Haible.
31813
31814 2008-10-06  Eric Blake  <ebb9@byu.net>
31815
31816         test-signbit: avoid tripping Irix cc bug on -0.0L
31817         * tests/test-signbit.c (minus_zerol): Delete, and replace with
31818         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
31819         entire testsuite consistent and avoids an Irix 6.2 bug.
31820
31821 2008-10-05  Bruno Haible  <bruno@clisp.org>
31822             Jim Meyering  <jim@meyering.net>
31823
31824         Add an option for ignoring EPIPE during close_stdout.
31825         * lib/closeout.h: Include <stdbool.h>.
31826         (close_stdout_set_ignore_EPIPE): New declaration.
31827         * lib/closeout.c: Include <stdbool.h>.
31828         (ignore_EPIPE): New variable.
31829         (close_stdout_set_ignore_EPIPE): New function.
31830         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
31831         * lib/close-stream.c (close_stream): Mention the possible EPIPE
31832         failure.
31833         * modules/closeout (Depends-on): Add stdbool.
31834
31835 2008-10-05  Bruno Haible  <bruno@clisp.org>
31836
31837         * modules/accept: New file.
31838         * modules/bind: New file.
31839         * modules/connect: New file.
31840         * modules/getpeername: New file.
31841         * modules/getsockname: New file.
31842         * modules/getsockopt: New file.
31843         * modules/listen: New file.
31844         * modules/recv: New file.
31845         * modules/recvfrom: New file.
31846         * modules/send: New file.
31847         * modules/sendto: New file.
31848         * modules/setsockopt: New file.
31849         * modules/socket: New file.
31850         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
31851         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31852         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
31853         the particular module is requested. Add a link warning when the
31854         particular module is not requested.
31855         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
31856         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
31857         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
31858         the particular module is requested.
31859         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
31860         gl_SYS_SOCKET_H_DEFAULTS): New macros.
31861         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
31862         * modules/sys_socket (Depends-on): Add link-warning.
31863         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
31864         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
31865         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
31866         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
31867         GL_LINK_WARNING.
31868         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
31869         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
31870         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
31871         * doc/posix-functions/getpeername.texi: Mention the new module
31872         'getpeername'.
31873         * doc/posix-functions/getsockname.texi: Mention the new module
31874         'getsockname'.
31875         * doc/posix-functions/getsockopt.texi: Mention the new module
31876         'getsockopt'.
31877         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
31878         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
31879         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
31880         * doc/posix-functions/send.texi: Mention the new module 'send'.
31881         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
31882         * doc/posix-functions/setsockopt.texi: Mention the new module
31883         'setsockopt'.
31884         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
31885         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
31886         listen, connect, accept.
31887         * modules/select-tests (Depends-on): Likewise.
31888
31889 2008-10-05  Bruno Haible  <bruno@clisp.org>
31890
31891         * lib/winsock.c (strerror): Remove unused #undef.
31892         (rpl_close): Remove unused local variable.
31893
31894         * modules/sys_socket (Depends-on); Add errno.
31895
31896 2008-10-05  Bruno Haible  <bruno@clisp.org>
31897
31898         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
31899         (select): Add a link warning when the 'select' module is not used.
31900         * modules/sys_select (Depends-on): Add link-warning.
31901         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
31902         Suggested by Paolo Bonzini.
31903
31904 2008-10-05  Jim Meyering  <meyering@redhat.com>
31905
31906         bootstrap: check for LT_INIT more portably
31907         * build-aux/bootstrap: Avoid using grep -E, since it's not
31908         portable enough.  Suggestion from Bruno Haible.
31909
31910 2008-10-05  Bruno Haible  <bruno@clisp.org>
31911
31912         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
31913         as being fixed by gnulib.
31914
31915 2008-10-05  Bruno Haible  <bruno@clisp.org>
31916
31917         * modules/select-tests: New file, mostly copied from
31918         modules/sys_select-tests.
31919         * tests/test-select.c: New file, mostly copied from
31920         tests/test-sys_select.c.
31921         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
31922         * modules/sys_select-tests (Depends-on): Remove all dependencies.
31923         (Makefile.am): Remove test_sys_select_LDADD.
31924
31925         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
31926         to an undefined symbol, for an error message.
31927         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
31928         (gl_SYS_SELECT_H_DEFAULTS): New macro.
31929         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
31930         winsock-select.c here.
31931         * modules/sys_select (Files): Remove lib/winsock-select.c.
31932         (Depends-on): Remove alloca.
31933         (Makefile.am): Substitute GNULIB_SELECT.
31934         * modules/select: New file.
31935         * doc/posix-functions/select.texi: Update.
31936
31937 2008-10-05  Bruno Haible  <bruno@clisp.org>
31938
31939         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
31940         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
31941         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
31942         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
31943         getdtablesize.
31944         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
31945         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
31946
31947 2008-10-05  Bruno Haible  <bruno@clisp.org>
31948
31949         * modules/getdtablesize-tests: New file.
31950         * tests/test-getdtablesize.c: New file.
31951
31952         New module 'getdtablesize'.
31953         * lib/unistd.in.h (getdtablesize): New declaration.
31954         * lib/getdtablesize.c: New file.
31955         * m4/getdtablesize.m4: New file.
31956         * modules/getdtablesize: New file.
31957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31958         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
31959         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
31960         HAVE_GETDTABLESIZE.
31961         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
31962
31963 2008-10-05  Bruno Haible  <bruno@clisp.org>
31964
31965         * modules/sched (Makefile.am): Fix typo.
31966         Reported by Simon Josefsson.
31967
31968 2008-10-05  Jim Meyering  <meyering@redhat.com>
31969
31970         bootstrap: check for LT_INIT, too
31971         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
31972         are deprecated.  Suggestion from Ralf Wildenhues.
31973
31974 2008-10-05  Bruno Haible  <bruno@clisp.org>
31975
31976         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
31977         overriding them by ours.
31978         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
31979
31980 2008-10-05  Jim Meyering  <meyering@redhat.com>
31981
31982         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
31983         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
31984         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
31985
31986 2008-10-04  Bruno Haible  <bruno@clisp.org>
31987
31988         * modules/dup2 (License): Change to LGPLv2+.
31989         * modules/sleep (License): Likewise.
31990         * modules/perror (License): Likewise.
31991         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
31992         Blake.
31993         * modules/signal (License): Likewise.
31994         * modules/sigprocmask (License): Likewise.
31995         * modules/raise (License): Change to LGPLv2+, with approval by Jim
31996         Meyering.
31997
31998 2008-10-04  Bruno Haible  <bruno@clisp.org>
31999
32000         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
32001         Reported by Rainer Tammer <tammer@tammer.net>.
32002
32003 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
32004             Bruno Haible  <bruno@clisp.org>
32005
32006         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
32007         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
32008         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
32009
32010 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
32011
32012         filevercmp: new module
32013         * lib/filevercmp.h: New function filevercmp comparing version strings.
32014         * lib/filevercmp.c: Implementation of filevercmp function.
32015         * modules/filevercmp: Module metadata.
32016         * tests/test-filevercmp.c: Unit test for new module.
32017         * modules/filevercmp-tests: Unit test metadata.
32018         * MODULES.html.sh: Add filevercmp module.
32019
32020 2008-10-03  Bruno Haible  <bruno@clisp.org>
32021
32022         * lib/c-ctype.h: Add comment.
32023         Reported by Jim Meyering.
32024
32025 2008-10-02  Bruno Haible  <bruno@clisp.org>
32026
32027         * modules/posix_spawn-internal (Depends-on): Add 'open'.
32028
32029 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32030
32031         * build-aux/bootstrap: Allow renaming bootstrap, and change the
32032         name of bootstrap.conf accordingly.
32033
32034 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32035
32036         * build-aux/bootstrap: Install git-merge-changelog configuration
32037         items into .gitconfig if needed.
32038
32039 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
32040
32041         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
32042         git repository, and initialize/update it accordingly.
32043
32044 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
32045
32046         * modules/fsync-tests: New file.
32047         * tests/test-fsync.c: New file.
32048
32049         New module 'fsync'.
32050         * lib/fsync.c: New file.
32051         * m4/fsync.m4: New file.
32052         * modules/fsync: New file.
32053         * lib/unistd.in.h (fsync): New declaration.
32054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
32055         GNULIB_FSYNC and HAVE_FSYNC.
32056         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
32057         * MODULES.html.sh (posix_functions): Add fsync.
32058         * doc/posix-functions/fsync.texi: Mention the new module.
32059
32060 2008-10-02  Jim Meyering  <meyering@redhat.com>
32061
32062         fts.c: sync with similar code from coreutils' remove.c
32063         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
32064         Guard also with "#if defined __linux__", since for now at least,
32065         this code is Linux-kernel-specific.
32066
32067 2008-10-02  Jim Meyering  <meyering@redhat.com>
32068
32069         fts: bug fixes
32070         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
32071         Include <sys/vfs.h>, not <sys/statfs.h>.
32072
32073         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
32074         Include <sys/vfs.h>, not <sys/statfs.h>.
32075
32076 2008-10-01  Bruno Haible  <bruno@clisp.org>
32077
32078         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
32079         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
32080         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
32081         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
32082         * doc/posix-functions/posix_spawnp.texi: Likewise.
32083         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
32084         whether posix_spawn actually works.
32085         * m4/pipe.m4 (gl_PIPE): Likewise.
32086         * modules/execute (Files): Add m4/posix_spawn.m4.
32087         * modules/pipe (Files): Add m4/posix_spawn.m4.
32088         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
32089
32090 2008-10-01  Jim Meyering  <meyering@redhat.com>
32091
32092         remove trailing spaces
32093         * NEWS: Likewise.
32094         * lib/poll.c (poll): Likewise.
32095         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
32096         * lib/winsock.c (rpl_close): Likewise.
32097         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
32098         * modules/yield: Likewise.
32099         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
32100         * tests/test-sys_select.c (connect_to_socket): Likewise.
32101
32102         fts.c: adjust a new interface to be more generally useful
32103         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
32104         (fts_build): Adjust caller.
32105
32106 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32107
32108         * modules/cond-tests: New file.
32109         * tests/test-cond.c: New file.
32110
32111 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32112             Bruno Haible  <bruno@clisp.org>
32113
32114         * modules/cond (Dependencies): Add errno, time.
32115         * lib/glthread/cond.h: Include <time.h>.
32116         (gl_cond_define, gl_cond_define_initialized): Use the same definition
32117         across platforms.
32118
32119 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32120             Bruno Haible  <bruno@clisp.org>
32121
32122         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
32123
32124 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32125             Bruno Haible  <bruno@clisp.org>
32126
32127         * modules/tls-tests (Depends-on): Add thread, yield.
32128         (configure.ac): Remove all checks.
32129         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
32130         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
32131         gl_thread_self): Remove definitions. Include glthread/thread.h and
32132         glthread/yield.h instead.
32133         (test_tls): Pass an additional NULL argument to gl_thread_join.
32134
32135 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32136             Bruno Haible  <bruno@clisp.org>
32137
32138         * modules/lock-tests (Depends-on): Add thread, yield.
32139         (configure.ac): Remove all checks.
32140         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
32141         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
32142         gl_thread_self): Remove definitions. Include glthread/thread.h and
32143         glthread/yield.h instead.
32144         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
32145         additional NULL argument to gl_thread_join.
32146
32147 2008-09-30  Bruno Haible  <bruno@clisp.org>
32148
32149         Fix the Win32 implementation of the 'thread' module.
32150         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
32151         pointer type.
32152         (gl_thread_self): Invoke gl_thread_self_func.
32153         (gl_thread_self_func): New declaration.
32154         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
32155         (do_init_self_key, init_self_key): New functions.
32156         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
32157         Remove some fields.
32158         (running_threads, running_lock): Remove variables.
32159         (get_current_thread_handle): New function.
32160         (gl_thread_self_func, wrapper_func, glthread_create_func,
32161         glthread_join_func, gl_thread_exit_func): Largely rewritten and
32162         simplified.
32163
32164 2008-09-30  Bruno Haible  <bruno@clisp.org>
32165
32166         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
32167         files.
32168
32169 2008-09-30  Jim Meyering  <meyering@redhat.com>
32170
32171         fts.m4: correct the test for statfs.f_type
32172         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
32173         when checking for statfs.f_type.
32174
32175 2008-09-15  Simon Josefsson  <simon@josefsson.org>
32176
32177         tests: avoid some compiler warnings
32178         * tests/test-memchr.c (main): Pass NULL indirectly.
32179         * tests/test-getdate.c (main): Remove unused variable 'ret'.
32180
32181 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
32182
32183         getdate.y: disallow countable dayshifts like "4 yesterday ago"
32184         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
32185         exactly specified dayshifts.
32186         (dayshift): New rule.
32187         (rel): Add dayshift.
32188         (relative_time_table) [tomorrow, yesterday, today, now]:
32189         Use tDAY_SHIFT in place of tDAY_UNIT.
32190         * tests/test-getdate.c: Add tests for now-disallowed countable
32191         dayshifts, e.g., "4 yesterday ago".
32192
32193 2008-09-29  Bruno Haible  <bruno@clisp.org>
32194
32195         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
32196         * tests/test-posix_spawn1.in.sh: Renamed from
32197         tests/test-posix_spawn.in.sh.
32198         * tests/test-posix_spawn2.c: New file.
32199         * tests/test-posix_spawn2.in.sh: New file.
32200         * modules/posix_spawnp-tests (Files): Update.
32201         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
32202
32203 2008-09-29  Bruno Haible  <bruno@clisp.org>
32204
32205         Propagate effects of putenv/setenv/unsetenv to child processes.
32206         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
32207         * lib/pipe.c (create_pipe): Likewise.
32208
32209 2008-09-29  Bruno Haible  <bruno@clisp.org>
32210
32211         Enable use of shell scripts as executables in mingw.
32212         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
32213         run the program as a shell script.
32214         * lib/pipe.c (create_pipe): Likewise.
32215         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
32216         resulting array.
32217
32218 2008-09-29  Eric Blake  <ebb9@byu.net>
32219
32220         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
32221
32222 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
32223
32224         * doc/posix-functions/accept.texi: Update mingw problems.
32225         * doc/posix-functions/bind.texi: Update mingw problems.
32226         * doc/posix-functions/close.texi: Update mingw problems.
32227         * doc/posix-functions/connect.texi: Update mingw problems.
32228         * doc/posix-functions/getpeername.texi: Update mingw problems.
32229         * doc/posix-functions/getsockname.texi: Update mingw problems.
32230         * doc/posix-functions/getsockopt.texi: Update mingw problems.
32231         * doc/posix-functions/ioctl.texi: Update mingw problems.
32232         * doc/posix-functions/listen.texi: Update mingw problems.
32233         * doc/posix-functions/recv.texi: Update mingw problems.
32234         * doc/posix-functions/recvfrom.texi: Update mingw problems.
32235         * doc/posix-functions/select.texi: Update mingw problems.
32236         * doc/posix-functions/send.texi: Update mingw problems.
32237         * doc/posix-functions/sendto.texi: Update mingw problems.
32238         * doc/posix-functions/setsockopt.texi: Update mingw problems.
32239         * doc/posix-functions/socket.texi: Update mingw problems.
32240
32241 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
32242             Bruno Haible  <bruno@clisp.org>
32243
32244         * lib/sys_select.in.h: Include sys/time.h.
32245         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
32246         * modules/sys_select: Depend on sys_time.
32247         * tests/test-sys_select.c: Test that sys/select.h defines struct
32248         timeval fully.
32249
32250 2008-09-29  Bruno Haible  <bruno@clisp.org>
32251
32252         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
32253         * lib/sys_select.in.h: Likewise.
32254
32255 2008-09-29  Bruno Haible  <bruno@clisp.org>
32256
32257         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
32258
32259 2008-09-29  Bruno Haible  <bruno@clisp.org>
32260
32261         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
32262         Set LIBSOCKET instead of augmenting LIBS.
32263         * modules/sockets (Link): New section.
32264         * modules/sockets-tests (test_sockets_LDADD): New variable.
32265         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
32266         * modules/poll-tests (test_poll_LDADD): New variable.
32267         * NEWS: Document the change.
32268
32269 2008-09-29  Bruno Haible  <bruno@clisp.org>
32270
32271         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
32272         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
32273         ARPA_INET_H directly.
32274         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32275
32276 2008-09-28  Bruno Haible  <bruno@clisp.org>
32277
32278         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
32279         from gl_HEADER_SYS_SOCKET.
32280         (gl_HEADER_SYS_SOCKET): Invoke it.
32281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32282
32283 2008-09-28  Bruno Haible  <bruno@clisp.org>
32284
32285         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
32286         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
32287         Needed on OSF/1 4.0.
32288
32289 2008-09-28  Bruno Haible  <bruno@clisp.org>
32290
32291         Override open more carefully.
32292         * lib/open.c (orig_open): New function.
32293         (rpl_open): Use orig_open instead of open.
32294         * lib/fcntl.in.h: Add special invocation convention.
32295         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
32296         (gl_FUNC_OPEN): Invoke it.
32297
32298         Override freopen more carefully.
32299         * lib/freopen.c (orig_freopen): New function.
32300         (rpl_freopen): Use orig_freopen instead of freopen.
32301         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
32302         (gl_FUNC_FREOPEN): Invoke it.
32303
32304         Override fopen more carefully.
32305         * lib/fopen.c (orig_fopen): New function.
32306         (rpl_fopen): Use orig_fopen instead of fopen.
32307         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
32308         (gl_FUNC_FOPEN): Invoke it.
32309         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
32310
32311 2008-09-28  Bruno Haible  <bruno@clisp.org>
32312
32313         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
32314         SIGPIPE.
32315
32316 2008-09-28  Bruno Haible  <bruno@clisp.org>
32317
32318         * tests/test-sigaction.c (handler, main): Disable the check whether
32319         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
32320         glibc systems with LinuxThreads.
32321
32322 2008-09-28  Bruno Haible  <bruno@clisp.org>
32323
32324         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
32325
32326         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
32327         with AIX xlc.
32328         * lib/fcntl.in.h (open): Likewise.
32329         Reported by Rainer Tammer <tammer@tammer.net>.
32330
32331 2008-09-28  Bruno Haible  <bruno@clisp.org>
32332
32333         * modules/posix_spawnp-tests: New file.
32334         * tests/test-posix_spawn.c: New file.
32335         * tests/test-posix_spawn.in.sh: New file.
32336
32337         New module 'posix_spawnp'.
32338         * modules/posix_spawnp: New file.
32339         * lib/spawnp.c: New file, from GNU libc with modifications.
32340         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
32341
32342         New module 'posix_spawn'.
32343         * modules/posix_spawn: New file.
32344         * lib/spawn.c: New file, from GNU libc with modifications.
32345         * doc/posix-functions/posix_spawn.texi: Mention the new module.
32346
32347         New module 'posix_spawnattr_destroy'.
32348         * modules/posix_spawnattr_destroy: New file.
32349         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
32350         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
32351         module.
32352
32353         New module 'posix_spawnattr_setsigmask'.
32354         * modules/posix_spawnattr_setsigmask: New file.
32355         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
32356         modifications.
32357         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
32358         new module.
32359
32360         New module 'posix_spawnattr_getsigmask'.
32361         * modules/posix_spawnattr_getsigmask: New file.
32362         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
32363         modifications.
32364         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
32365         new module.
32366
32367         New module 'posix_spawnattr_setsigdefault'.
32368         * modules/posix_spawnattr_setsigdefault: New file.
32369         * lib/spawnattr_setdefault.c: New file, from GNU libc with
32370         modifications.
32371         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
32372         new module.
32373
32374         New module 'posix_spawnattr_getsigdefault'.
32375         * modules/posix_spawnattr_getsigdefault: New file.
32376         * lib/spawnattr_getdefault.c: New file, from GNU libc with
32377         modifications.
32378         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
32379         new module.
32380
32381         New module 'posix_spawnattr_setschedpolicy'.
32382         * modules/posix_spawnattr_setschedpolicy: New file.
32383         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
32384         modifications.
32385         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
32386         new module.
32387
32388         New module 'posix_spawnattr_getschedpolicy'.
32389         * modules/posix_spawnattr_getschedpolicy: New file.
32390         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
32391         modifications.
32392         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
32393         new module.
32394
32395         New module 'posix_spawnattr_setschedparam'.
32396         * modules/posix_spawnattr_setschedparam: New file.
32397         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
32398         modifications.
32399         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
32400         new module.
32401
32402         New module 'posix_spawnattr_getschedparam'.
32403         * modules/posix_spawnattr_getschedparam: New file.
32404         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
32405         modifications.
32406         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
32407         new module.
32408
32409         New module 'posix_spawnattr_setpgroup'.
32410         * modules/posix_spawnattr_setpgroup: New file.
32411         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
32412         modifications.
32413         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
32414         module.
32415
32416         New module 'posix_spawnattr_getpgroup'.
32417         * modules/posix_spawnattr_getpgroup: New file.
32418         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
32419         modifications.
32420         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
32421         module.
32422
32423         New module 'posix_spawnattr_setflags'.
32424         * modules/posix_spawnattr_setflags: New file.
32425         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
32426         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
32427         module.
32428
32429         New module 'posix_spawnattr_getflags'.
32430         * modules/posix_spawnattr_getflags: New file.
32431         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
32432         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
32433         module.
32434
32435         New module 'posix_spawnattr_init'.
32436         * modules/posix_spawnattr_init: New file.
32437         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
32438         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
32439         module.
32440
32441         New module 'posix_spawn_file_actions_destroy'.
32442         * modules/posix_spawn_file_actions_destroy: New file.
32443         * lib/spawn_faction_destroy.c: New file, from GNU libc with
32444         modifications.
32445         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
32446         the new module.
32447
32448         New module 'posix_spawn_file_actions_addopen'.
32449         * modules/posix_spawn_file_actions_addopen: New file.
32450         * lib/spawn_faction_addopen.c: New file, from GNU libc with
32451         modifications.
32452         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
32453         the new module.
32454
32455         New module 'posix_spawn_file_actions_adddup2'.
32456         * modules/posix_spawn_file_actions_adddup2: New file.
32457         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
32458         modifications.
32459         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
32460         the new module.
32461
32462         New module 'posix_spawn_file_actions_addclose'.
32463         * modules/posix_spawn_file_actions_addclose: New file.
32464         * lib/spawn_faction_addclose.c: New file, from GNU libc with
32465         modifications.
32466         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
32467         the new module.
32468
32469         New module 'posix_spawn_file_actions_init'.
32470         * modules/posix_spawn_file_actions_init: New file.
32471         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
32472         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
32473         new module.
32474
32475         New module 'posix_spawn-internal'.
32476         * modules/posix_spawn-internal: New file.
32477         * lib/spawn_int.h: New file, from GNU libc with modifications.
32478         * lib/spawni.c: New file, from GNU libc with modifications.
32479         * m4/posix_spawn.m4: New file.
32480
32481         New module 'spawn'.
32482         * modules/spawn: New file.
32483         * lib/spawn.in.h: New file, from GNU libc with modifications.
32484         * m4/spawn_h.m4: New file.
32485         * doc/posix-headers/spawn.texi: Mention the new module.
32486
32487 2008-09-28  Bruno Haible  <bruno@clisp.org>
32488
32489         * modules/sched-tests: New file.
32490         * tests/test-sched.c: New file.
32491
32492         New module 'sched'.
32493         * modules/sched: New file.
32494         * lib/sched.in.h: New file.
32495         * m4/sched_h.m4: New file.
32496         * doc/posix-headers/sched.texi: Mention the new module.
32497
32498 2008-09-27  Eric Blake  <ebb9@byu.net>
32499
32500         Fix previous patch, and tweak references to $0.
32501         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
32502         (func_version, func_gnulib_dir): Don't call this program
32503         gnulib-tool.
32504         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
32505         with using $0 in function.
32506         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
32507         (func_fatal_error): Reuse the name the user invoked us with.
32508
32509 2008-09-27  Bruno Haible  <bruno@clisp.org>
32510
32511         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
32512         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
32513         (gl_ICONV_H): Not here.
32514         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32515         instead of assigning ICONV_H directly.
32516
32517         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
32518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
32519         WCHAR_H directly.
32520
32521 2008-09-27  Bruno Haible  <bruno@clisp.org>
32522
32523         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
32524         * modules/arpa_inet (Depends-on): Add link-warning.
32525         (Makefile.am): Insert the definition of GL_LINK-WARNING.
32526         * modules/unistd (Makefile.am): Likewise.
32527
32528 2008-09-26  Bruno Haible  <bruno@clisp.org>
32529
32530         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
32531         variables.
32532         (func_version): Essentially copied from gnulib-tool.
32533         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
32534         func_readlink): Copied from gnulib-tool.
32535
32536 2008-09-26  Bruno Haible  <bruno@clisp.org>
32537
32538         * gnulib-tool (func_version): Change directory to $gnulib_dir before
32539         invoking git-version-gen.
32540
32541 2008-09-26  Bruno Haible  <bruno@clisp.org>
32542
32543         * posix-modules: Update to directory names changed on 2008-01-19.
32544         Remove commas in output before splitting into words. No more need to
32545         avoid 'ftruncate' since 2007-02-19.
32546
32547 2008-09-26  Bruno Haible  <bruno@clisp.org>
32548
32549         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
32550
32551 2008-09-26  Bruno Haible  <bruno@clisp.org>
32552
32553         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
32554         * modules/fwriteerror (Depends-on): Add errno.
32555
32556 2008-09-26  Bruno Haible  <bruno@clisp.org>
32557
32558         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
32559         * tests/test-vc-list-files-cvs.sh: Likewise.
32560
32561 2008-09-26  Bruno Haible  <bruno@clisp.org>
32562
32563         * doc/posix-headers/sys_resource.texi: Reorder items.
32564
32565 2008-09-26  Jim Meyering  <meyering@redhat.com>
32566
32567         fts: tweak inode comparison function
32568         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
32569         inode numbers, as documented.
32570
32571         fts: sort dirent entries on inode number before traversing
32572         This avoids a quadratic, seek-related performance penalty when
32573         operating on a directory containing many entries (measurable at 10k;
32574         3.5 hours at 2 million entries with a cold cache) on certain types
32575         of file systems, including ext3 and ext4, but not tmpfs.
32576         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
32577         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
32578         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
32579         (fs_handles_readdir_ordered_dirents_efficiently): New function.
32580         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
32581         (fts_build): Set the stat.st_ino member from D_INO.
32582         If it is likely to be useful, sort dirent entries on inode number.
32583
32584         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
32585         and the struct statfs.f_type member.
32586         * modules/fts (Depends-on): Add d-ino.
32587
32588 2008-09-26  Bruno Haible  <bruno@clisp.org>
32589
32590         * modules/sigpipe-die (Depends-on): Add sigpipe.
32591
32592         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
32593         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
32594         and GNULIB_STDIO_H_SIGPIPE are set.
32595         * lib/stdio-write.c: New file.
32596         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
32597         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32598         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32599         REPLACE_STDIO_WRITE_FUNCS.
32600         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
32601         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32602         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32603         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32604         * modules/stdio (Files): Add lib/stdio-write.c.
32605         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
32606         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
32607         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
32608         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
32609         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
32610         REPLACE_FPRINTF_POSIX.
32611         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
32612         REPLACE_PRINTF_POSIX.
32613         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
32614         REPLACE_VFPRINTF_POSIX.
32615         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
32616         REPLACE_VPRINTF_POSIX.
32617         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
32618         SIGPIPE issue.
32619         * doc/posix-functions/fputc.texi: Likewise.
32620         * doc/posix-functions/fputs.texi: Likewise.
32621         * doc/posix-functions/fwrite.texi: Likewise.
32622         * doc/posix-functions/printf.texi: Likewise.
32623         * doc/posix-functions/putc.texi: Likewise.
32624         * doc/posix-functions/putchar.texi: Likewise.
32625         * doc/posix-functions/puts.texi: Likewise.
32626         * doc/posix-functions/vfprintf.texi: Likewise.
32627         * doc/posix-functions/vprintf.texi: Likewise.
32628
32629         * modules/safe-write (Depends-on): Add write.
32630
32631         * modules/sigpipe-tests: New file.
32632         * tests/test-sigpipe.c: New file.
32633         * tests/test-sigpipe.sh: New file.
32634
32635         * modules/write: New file.
32636         * lib/unistd.in.h: Include <sys/types.h>.
32637         (write): New declaration.
32638         * lib/write.c: New file.
32639         * m4/write.m4: New file.
32640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32641         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
32642         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
32643         GNULIB_WRITE, REPLACE_WRITE.
32644         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
32645         and the SIGPIPE issue.
32646
32647         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
32648         (raise): New declaration.
32649         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
32650         (ext_signal): New function.
32651         (rpl_raise): New function.
32652         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32653         GNULIB_SIGNAL_H_SIGPIPE.
32654         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
32655         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
32656
32657         * modules/sigpipe: New file.
32658         * m4/sigpipe.m4: New file.
32659
32660 2008-09-25  Derek Price  <derek@ximbiot.com>
32661             Bruno Haible  <bruno@clisp.org>
32662
32663         * gnulib-tool (func_import): Report all license incompatibilities, not
32664         just the first one.
32665
32666 2008-09-25  Bruno Haible  <bruno@clisp.org>
32667
32668         * gnulib-tool (func_import): When computing the edits, consider not
32669         only the Makefile.ams that exist but also those that will be generated.
32670
32671 2008-09-25  Simon Josefsson  <simon@josefsson.org>
32672
32673         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
32674         fixes gnulib-tool --test warning about duplicate dependency.
32675
32676 2008-09-25  Bruno Haible  <bruno@clisp.org>
32677
32678         * gnulib-tool: Don't ask the user to perform edits in the generated
32679         Makefile.ams.
32680         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
32681         apply to the Makefile.am being generated.
32682         (func_emit_tests_Makefile_am): Execute edits that apply to the
32683         Makefile.am being generated.
32684         (func_import): Setup list of Makefile.am edits before emitting the
32685         Makefile.ams, not at the end.
32686         (func_create_testdir): Update.
32687         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32688
32689 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32690
32691         * gnulib-tool (func_import): Store the --tests-base option in the
32692         comment in gnulib-cache.m4.
32693
32694 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
32695
32696         * NEWS: Document increased portability that sys_select now provides.
32697
32698         * lib/sys_select.in.h: Install select wrapper.
32699         * lib/sys_socket.in.h: Use more descriptive name when there is no
32700         select wrapper.
32701         * lib/winsock-select.c: New.
32702         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
32703         Require gl_HEADER_SYS_SOCKET.
32704         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
32705         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
32706         * tests/test-sys_select.c: Add functional tests.
32707
32708 2008-09-24  Eric Blake  <ebb9@byu.net>
32709
32710         open, fopen: close fd leak in last patch
32711         * lib/open.c (rpl_open): Close fd before returning error.
32712         * lib/fopen.c (rpl_fopen): Close fd before returning error.
32713         * doc/posix-functions/open.texi (open): Document that Irix also
32714         has the bug.
32715         * doc/posix-functions/fopen.texi (fopen): Likewise.
32716         Reported by Paolo Bonzini.
32717
32718 2008-09-24  Bruno Haible  <bruno@clisp.org>
32719
32720         Ensure that a filename ending in a slash cannot be used to access a
32721         non-directory.
32722         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
32723         to check whether it's really a directory.
32724         * lib/fopen.c: Include fcntl.h, unistd.h.
32725         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
32726         and fdopen().
32727         * modules/fopen (Depends-on): Add unistd.
32728         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
32729         * tests/test-fopen.c (main): Likewise.
32730         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
32731         * doc/posix-functions/fopen.texi: Likewise.
32732         Reported by Eric Blake.
32733
32734 2008-09-23  Eric Blake  <ebb9@byu.net>
32735
32736         c-stack: avoid compiler optimizations when provoking overflow
32737         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
32738         recursion harder to optimize, to ensure a stack overflow occurs.
32739         * tests/test-c-stack.c (recurse): Likewise.
32740         Borrowed from libsigsegv.
32741
32742         c-stack: work around Irix sigaltstack bug
32743         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
32744         whether sigaltstack uses wrong end of stack_t (copied in part from
32745         libsigsegv).
32746         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
32747         Irix bug, without requiring an over-allocation.
32748         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
32749         bug.
32750
32751         fopen: document mingw bug on directories
32752         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
32753         not allowing a stream visiting a directory, even though reading
32754         from such a stream is not portable.
32755
32756 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32757
32758         * lib/poll.c: Rewrite.
32759         * modules/poll: Depend on alloca.
32760
32761 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32762
32763         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
32764         instead define prototypes for a full set of wrappers.  Ensure
32765         that Cygwin does not use the compatibility code, which is only
32766         for MinGW.
32767         * lib/winsock.c: New.
32768         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
32769         * modules/sys_socket: Add lib/winsock.c.
32770
32771         * modules/poll-tests: Add errno and perror.
32772         * tests/test-poll.c: Use ioctl, not ioctlsocket.
32773
32774 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
32775
32776         * tests/test-poll.c: Downgrade minimum needed Winsock version.
32777
32778 2008-09-23  Bruno Haible  <bruno@clisp.org>
32779
32780         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
32781         * doc/glibc-functions/*: Likewise.
32782
32783 2008-09-23  Simon Josefsson  <simon@josefsson.org>
32784
32785         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
32786         success.
32787
32788 2008-09-22  Eric Blake  <ebb9@byu.net>
32789             Bruno Haible  <bruno@clisp.org>
32790
32791         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
32792         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
32793         supply %A but mishandle pseudo-NaN.
32794         Reported by Simon Josefsson.
32795
32796 2008-09-21  Bruno Haible  <bruno@clisp.org>
32797
32798         * tests/test-lock.c (main): Tweak skip message.
32799         * tests/test-tls.c (main): Likewise.
32800
32801 2008-09-21  Bruno Haible  <bruno@clisp.org>
32802
32803         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
32804         whether 'struct sigaction' has sa_sigaction here...
32805         (gl_PREREQ_SIG_HANDLER_H): ... not here.
32806         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
32807
32808 2008-09-21  Bruno Haible  <bruno@clisp.org>
32809
32810         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
32811         section.
32812         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
32813         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
32814         the new section.
32815         (Support for obsolete systems lacking POSIX:2001): New section.
32816         (String handling <string.h>): Move strdup to the new section.
32817         Suggested by Simon Josefsson and Paolo Bonzini.
32818
32819 2008-09-21  Bruno Haible  <bruno@clisp.org>
32820
32821         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
32822         exponents in %e and %g results on 'long double'. Needed for mingw's
32823         improved *printf functions.
32824         * tests/test-vasprintf-posix.c (test_function): Likewise.
32825         * tests/test-snprintf-posix.h (test_function): Likewise.
32826         * tests/test-sprintf-posix.h (test_function): Likewise.
32827         Reported by Eric Blake.
32828
32829 2008-09-21  Bruno Haible  <bruno@clisp.org>
32830
32831         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
32832         * tests/test-sprintf-posix.h (test_function): Likewise.
32833
32834 2008-09-21  Bruno Haible  <bruno@clisp.org>
32835
32836         * modules/getpass (Depends-on): Add strdup-posix.
32837
32838         New module 'strdup-posix'.
32839         * modules/strdup-posix: New file.
32840         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
32841         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
32842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32843         REPLACE_STRDUP.
32844         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
32845         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
32846         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32847         strdup-posix.
32848
32849         * modules/strdup (Depends-on): Remove malloc-posix.
32850
32851 2008-09-20  Bruno Haible  <bruno@clisp.org>
32852
32853         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
32854         Wildenhues.
32855
32856 2008-09-20  Bruno Haible  <bruno@clisp.org>
32857
32858         Ensure that wint_t gets defined on IRIX 5.3.
32859         * lib/wchar.in.h (wint_t): Define if not defined by the system.
32860         * lib/wctype.in.h (wint_t): Likewise.
32861         (__wctype_wint_t): Remove type.
32862         (isw*): Use wint_t instead of __wctype_wint_t.
32863         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
32864         * modules/wchar (Files): Add m4/wint_t.m4.
32865         (Makefile.am): Substitute HAVE_WINT_T.
32866         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
32867         * tests/test-wctype.c: Check that wint_t is defined.
32868         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
32869         * doc/posix-headers/wctype.texi: Likewise.
32870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32871
32872 2008-09-18  Bruno Haible  <bruno@clisp.org>
32873
32874         * gnulib-tool (func_exit): Update comment.
32875
32876 2008-09-18  Simon Josefsson  <simon@josefsson.org>
32877
32878         * modules/getaddrinfo (Depends-on): Remove strdup, this module
32879         assumes strdup exists and does not depend on strdup to return
32880         ENOMEM on out of memory conditions.
32881
32882 2008-09-18  Bruno Haible  <bruno@clisp.org>
32883
32884         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
32885         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
32886         digits for the exponent.
32887
32888 2008-09-18  Jim Meyering  <meyering@redhat.com>
32889             Bruno Haible  <bruno@clisp.org>
32890
32891         * lib/vasnprintf.c (decimal_point_char): Define also if
32892         NEED_PRINTF_INFINITE_LONG_DOUBLE.
32893
32894 2008-09-16  Bruno Haible  <bruno@clisp.org>
32895         and Eric Blake  <ebb9@byu.net>
32896
32897         vasnprintf: support Irix 5.3
32898         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
32899         that mishandle long double infinity.
32900         Reported by Tom G. Christensen.
32901
32902 2008-09-16  Bruno Haible  <bruno@clisp.org>
32903
32904         * doc/glibc-functions/scandir.texi: Mention the function is missing on
32905         Solaris 9.
32906         * doc/glibc-functions/alphasort.texi: Likewise.
32907         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
32908
32909 2008-09-16  Jim Meyering  <meyering@redhat.com>
32910
32911         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
32912         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
32913         a umask modification leak out of a subshell.  Otherwise, the
32914         opensolaris /bin/sh would be accepted and thus cause unwarranted
32915         failures in the coreutils test suite.
32916
32917 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
32918
32919         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
32920         to succeed.
32921
32922 2008-09-16  Jim Meyering  <meyering@redhat.com>
32923
32924         avoid spurious test failure when library is built without ACL support
32925         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
32926         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
32927         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
32928         * tests/test-copy-acl.sh: Likewise.
32929
32930 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32931
32932         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
32933         based on character occurrence counts.
32934
32935 2008-09-15  Eric Blake  <ebb9@byu.net>
32936
32937         tests: avoid some compiler warnings
32938         * tests/test-memchr.c (main): Pass NULL indirectly.
32939         * tests/test-closein.c (main): Avoid unused variable.
32940
32941 2008-09-15  Bruno Haible  <bruno@clisp.org>
32942
32943         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
32944         are missing on OpenBSD 4.0 individually.
32945         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32946
32947 2008-09-15  Bruno Haible  <bruno@clisp.org>
32948
32949         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
32950         * doc/posix-functions/strerror.texi: Mention also Cygwin.
32951         * doc/posix-functions/perror.texi: Likewise.
32952         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
32953         is missing.
32954         Reported by Eric Blake.
32955
32956         * lib/errno.in.h: Use replacement values >= 2000.
32957         Reported by Eric Blake.
32958
32959 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32960
32961         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
32962         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
32963         limit.
32964         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
32965         compareseq was aborted.
32966
32967 2008-09-14  Bruno Haible  <bruno@clisp.org>
32968
32969         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
32970         yvec_edit_count.
32971         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
32972         (fstrcmp_bounded): Simplify result computation accordingly.
32973
32974 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32975
32976         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
32977         (fstrcmp): Define in terms of fstrcmp_bounded.
32978         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
32979         lower_bound argument.
32980         Return quickly if the result is certainly < lower_bound.
32981         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
32982
32983 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32984
32985         * lib/diffseq.h (EARLY_ABORT): New macro.
32986         (compareseq): Change return type to bool. Return true when EARLY_ABORT
32987         evaluates to true.
32988
32989 2008-09-14  Bruno Haible  <bruno@clisp.org>
32990
32991         * modules/perror-tests: New file.
32992         * tests/test-perror.sh: New file.
32993         * tests/test-perror.c: New file.
32994
32995         New module 'perror'.
32996         * lib/stdio.in.h (perror): New declaration.
32997         * lib/perror.c: New file.
32998         * m4/perror.m4: New file.
32999         * modules/perror: New file.
33000         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
33001         * doc/posix-functions/perror.texi: Mention the perror module.
33002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
33003         REPLACE_PERROR.
33004         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
33005         REPLACE_PERROR.
33006
33007 2008-09-14  Bruno Haible  <bruno@clisp.org>
33008
33009         * modules/stdio (Makefile.am): Reorder to match the order in
33010         lib/stdio.in.h.
33011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33012
33013 2008-09-13  Bruno Haible  <bruno@clisp.org>
33014
33015         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
33016
33017 2008-09-13  Bruno Haible  <bruno@clisp.org>
33018
33019         Extend strerror to cover the added errno values.
33020         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
33021         (rpl_strerror): Provide error messages for the added errno values and
33022         for the WSA* values.
33023         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
33024         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
33025         strerror.
33026         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
33027         * modules/strerror (Depends-on): Add errno.
33028         * doc/posix-functions/strerror.texi: Document the change.
33029         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
33030         and EOVERFLOW.
33031
33032 2008-09-13  Bruno Haible  <bruno@clisp.org>
33033
33034         * modules/EOVERFLOW: Remove file.
33035         * m4/eoverflow.m4: Remove file.
33036         * modules/EOVERFLOW-tests: Remove file.
33037         * tests/test-EOVERFLOW.c: Remove file.
33038         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
33039         * modules/ftell (Depends-on): Likewise.
33040         * modules/getdelim (Depends-on): Likewise.
33041         * modules/getugroups (Depends-on): Likewise.
33042         * modules/poll (Depends-on): Likewise.
33043         * modules/snprintf (Depends-on): Likewise.
33044         * modules/sprintf-posix (Depends-on): Likewise.
33045         * modules/vasnprintf (Depends-on): Likewise.
33046         * modules/vasprintf (Depends-on): Likewise.
33047         * modules/vfprintf-posix (Depends-on): Likewise.
33048         * modules/vsnprintf (Depends-on): Likewise.
33049         * modules/vsprintf-posix (Depends-on): Likewise.
33050         * modules/xvasprintf (Depends-on): Likewise.
33051         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33052         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
33053         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
33054         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
33055         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33056         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
33057         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
33058         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
33059         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33060         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
33061         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
33062         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
33063         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33064         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
33065         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
33066         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
33067         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33068         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
33069         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
33070         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
33071         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33072         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
33073         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
33074         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
33075         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
33076         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33077         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
33078         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
33079         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
33080         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
33081         * MODULES.html.sh: Remove EOVERFLOW.
33082         * NEWS: Mention the change.
33083
33084 2008-09-13  Bruno Haible  <bruno@clisp.org>
33085
33086         * modules/errno-tests: New file.
33087         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
33088
33089         * lib/errno.in.h: New file.
33090         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
33091         * modules/errno: New file.
33092         * doc/posix-headers/errno.texi: Update documentation.
33093         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
33094
33095 2008-09-13  Bruno Haible  <bruno@clisp.org>
33096
33097         * tests/test-poll.c: Use #if for native Windows, rather than testing
33098         __MSVCRT__.
33099
33100 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33101             Bruno Haible  <bruno@clisp.org>
33102
33103         * lib/glob.c: Don't include <pwd.h> on native Windows.
33104         (WINDOWS32): New macro.
33105         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
33106
33107 2008-09-13  Bruno Haible  <bruno@clisp.org>
33108
33109         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
33110         (ETIMEDOUT): Remove macro.
33111         (glthread_cond_timedwait_multithreaded): New declaration.
33112         (glthread_cond_timedwait): Use it.
33113         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
33114         (glthread_cond_timedwait_multithreaded): New function.
33115
33116 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33117
33118         * modules/poll-tests: Do not check for io.h.
33119         * tests/test-poll.c: Check for __MSVCRT__ instead.
33120
33121 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33122
33123         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
33124         * modules/poll-tests: Add inet_pton, stdbool, sockets.
33125         * tests/test-poll.c: Use them.  Use _pipe on Windows.
33126
33127 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
33128
33129         * modules/poll-tests: New.
33130         * tests/test-poll.c: New.
33131
33132 2008-09-12  Eric Blake  <ebb9@byu.net>
33133
33134         frexp: test for NetBSD failure on -0.0
33135         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
33136         not all, bugs from NetBSD 3.0 have been fixed.
33137         * doc/posix-functions/frexp.texi (frexp): Document bug.
33138         Reported by Thomas Klausner.
33139
33140         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
33141         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
33142         literal -0.0.
33143         Reported by Jonathan C. Patschke <jp@centtech.com>.
33144
33145 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33146
33147         * lib/glthread/cond.h: Use dummy implementation also if
33148         USE_WIN32_THREADS.
33149
33150 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33151
33152         * modules/fnmatch-posix (License): Change to LGPLv2+.
33153         * modules/fnmatch-gnu (License): Likewise.
33154
33155 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33156
33157         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
33158
33159 2008-09-11  Jim Meyering  <meyering@redhat.com>
33160
33161         * users.txt: Add gtk-vnc.
33162
33163 2008-09-08  Simon Josefsson  <simon@josefsson.org>
33164
33165         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
33166         rotate amounts.
33167
33168         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
33169         required for 16-bit and 8-bit rotates.
33170         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
33171         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
33172         UINT8_MAX instead of hard-coded constants.
33173         Suggested by Paul Eggert.
33174
33175 2008-09-07  Bruno Haible  <bruno@clisp.org>
33176
33177         * tests/test-striconveh.c (main): Check behaviour when converting from
33178         UTF-7.
33179
33180         Make striconveh work better with stateful encodings.
33181         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
33182         that iconv does not increment the inptr when returning -1/EINVAL.
33183
33184 2008-09-07  Bruno Haible  <bruno@clisp.org>
33185
33186         * build-aux/config.rpath: Update according to libtool-2.2.6.
33187         * build-aux/config.libpath: Likewise.
33188
33189 2008-09-06  Bruno Haible  <bruno@clisp.org>
33190
33191         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
33192         * lib/freadptr.c (freadptr): Likewise.
33193         * lib/freadseek.c (freadptrinc): Likewise.
33194         Reported by Simon Josefsson.
33195
33196 2008-09-06  Bruno Haible  <bruno@clisp.org>
33197
33198         * modules/freadptr (License): Change to LGPLv2+.
33199         * modules/freadseek (License): Likewise.
33200         Suggested by Eric Blake.
33201
33202         * modules/memchr2 (License): Change to LGPLv2+.
33203         Approved by Eric Blake.
33204
33205 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33206             Bruno Haible  <bruno@clisp.org>
33207
33208         Make gnulib-tool work with native 'sed' on AIX.
33209         * gnulib-tool (sed_noop): New variable.
33210         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
33211         func_add_or_update, func_create_testdir): Use it to initialize sed
33212         script variables.
33213         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33214
33215 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
33216             Bruno Haible  <bruno@clisp.org>
33217
33218         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
33219         also works after #include directives.
33220
33221 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
33222
33223         getdate.y: reject an out-of-range timezone value
33224         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
33225         the range [-24...+24].  When specified with only one or two digits,
33226         * tests/test-getdate.c: Tests for the fix.
33227         * doc/getdate.texi: Document this change.
33228
33229 2008-09-03  Bruno Haible  <bruno@clisp.org>
33230
33231         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
33232
33233 2008-09-02  Simon Josefsson  <simon@josefsson.org>
33234
33235         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
33236         <bruce.korb@gmail.com> with ideas from Ben Pfaff
33237         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
33238         Blake <ebb9@byu.net>.
33239
33240         * tests/test-bitrotate.c: Add more test vectors.
33241
33242 2008-09-02  Eric Blake  <ebb9@byu.net>
33243
33244         vasnprintf-posix: handle large precision via %.*d
33245         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
33246         when handling it ourselves.
33247         * tests/test-vasnprintf-posix.c (test_function): Add test.
33248         * tests/test-snprintf-posix.h (test_function): Likewise.
33249         * tests/test-sprintf-posix.h (test_function): Likewise.
33250         * tests/test-vasprintf-posix.c (test_function): Likewise.
33251         Reported by Alain Guibert.
33252
33253 2008-09-01  Eric Blake  <ebb9@byu.net>
33254
33255         c-stack: make configure-time check more robust
33256         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
33257         successful sigaction call.
33258         Reported by Tom G. Christensen.
33259
33260 2008-09-01  Bruno Haible  <bruno@clisp.org>
33261
33262         New module 'findprog-lgpl'.
33263         * modules/findprog-lgpl: New file.
33264         * lib/findprog-lgpl.c: New file.
33265         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
33266         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
33267         to decide whether to use strdup or xstrdup, concatenated_filename or
33268         xconcatenated_filename.
33269
33270 2008-09-01  Bruno Haible  <bruno@clisp.org>
33271
33272         Split module 'concat-filename' into 'concat-filename' (LGPL) and
33273         'xconcat-filename' (GPL).
33274         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
33275         (License): Change to LGPLv2+.
33276         * modules/xconcat-filename: New file.
33277         * lib/concat-filename.h (concatenated_filename): Change specification.
33278         (xconcatenated_filename): New declaration.
33279         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
33280         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
33281         memory situations.
33282         * lib/xconcat-filename.c: New file.
33283         * NEWS: Mention the change.
33284         * lib/findprog.c: Include concat-filename.h, not filename.h.
33285         (find_in_path): Use xconcatenated_filename instead of
33286         concatenated_filename.
33287         * lib/javacomp.c: Include concat-filename.h, not filename.h.
33288         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
33289         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
33290         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
33291         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
33292         instead of concatenated_filename.
33293         * lib/javaexec.c: Include concat-filename.h, not filename.h.
33294         (execute_java_class): Use xconcatenated_filename instead of
33295         concatenated_filename.
33296         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
33297         * modules/javacomp (Depends-on): Likewise.
33298         * modules/javaexec (Depends-on): Likewise.
33299
33300 2008-09-01  Bruno Haible  <bruno@clisp.org>
33301
33302         Split module 'filename' into 'filename' and 'concat-filename'.
33303         * modules/filename: Keep only lib/filename.h.
33304         (License): Change to LGPLv2+.
33305         * modules/concat-filename: New file, extracted from modules/filename.
33306         * lib/filename.h (concatenated_filename): Remove declaration.
33307         * lib/concat-filename.h: New file, extracted from lib/filename.h.
33308         * lib/concat-filename.c: Include concat-filename.h.
33309         * NEWS: Mention the change.
33310
33311 2008-09-01  Simon Josefsson  <simon@josefsson.org>
33312
33313         * lib/bitrotate.h (rotl8, rotr8): Add.
33314
33315         * modules/bitrotate (configure.ac): Need
33316         AC_REQUIRE([AC_C_INLINE]).
33317         (Description): Mention stdint.h.  Reported by Bruno Haible
33318         <bruno@clisp.org>.
33319
33320         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
33321         Paolo Bonzini <bonzini@gnu.org>.
33322
33323 2008-08-31  Bruno Haible  <bruno@clisp.org>
33324
33325         Assume Solaris specific bi-arch conventions on Solaris systems.
33326         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
33327         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
33328         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
33329         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
33330         like acl_libdirstem.
33331         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
33332         acl_libdirstem.
33333         * NEWS: Mention the change.
33334         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
33335
33336 2008-08-31  Jim Meyering  <meyering@redhat.com>
33337
33338         * lib/strftime.h: Add comments describing the two added arguments.
33339
33340         remove duplicate #include directives
33341         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
33342         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
33343
33344 2008-08-31  Bruno Haible  <bruno@clisp.org>
33345
33346         New module 'sigpipe-die'.
33347         * modules/sigpipe-die: New file.
33348         * lib/sigpipe-die.h: New file.
33349         * lib/sigpipe-die.c: New file.
33350         * MODULES.html.sh (Signal handling): Add sigpipe-die.
33351
33352 2008-08-31  Bruno Haible  <bruno@clisp.org>
33353
33354         Don't override previously installed signal handlers.
33355         * lib/fatal-signal.c (saved_sigactions): New variable.
33356         (uninstall_handlers): Reset the signal to the saved handler, not
33357         to SIG_DFL (except when ignored).
33358         (install_handlers): Save the previous handlers.
33359
33360 2008-08-30  Bruno Haible  <bruno@clisp.org>
33361
33362         * gnulib-tool (func_reset_sigpipe): New function.
33363         (func_get_automake_snippet, func_modules_transitive_closure,
33364         func_import): Invoke it before a join command that reads from stdin,
33365         to avoid "echo: write error: Broken pipe" error messages on stderr.
33366         Reported by Sam Steingold <sds@gnu.org>.
33367
33368 2008-08-30  Bruno Haible  <bruno@clisp.org>
33369
33370         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
33371         Code copied from m4/open.m4.
33372         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
33373         access and the filename ends in a slash. Code copied from lib/open.c.
33374         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
33375         * tests/test-fopen.c (main): Check against bug with trailing slash.
33376
33377 2008-08-29  Bruno Haible  <bruno@clisp.org>
33378
33379         Avoid some "gcc -pedantic" warnings.
33380         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
33381         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
33382         * lib/dirent.in.h: Likewise.
33383         * lib/fcntl.in.h: Likewise.
33384         * lib/float.in.h: Likewise.
33385         * lib/iconv.in.h: Likewise.
33386         * lib/inttypes.in.h: Likewise.
33387         * lib/locale.in.h: Likewise.
33388         * lib/math.in.h: Likewise.
33389         * lib/netinet_in.in.h: Likewise.
33390         * lib/search.in.h: Likewise.
33391         * lib/signal.in.h: Likewise.
33392         * lib/stdarg.in.h: Likewise.
33393         * lib/stdint.in.h: Likewise.
33394         * lib/stdio.in.h: Likewise.
33395         * lib/stdlib.in.h: Likewise.
33396         * lib/string.in.h: Likewise.
33397         * lib/strings.in.h: Likewise.
33398         * lib/sys_select.in.h: Likewise.
33399         * lib/sys_socket.in.h: Likewise.
33400         * lib/sys_stat.in.h: Likewise.
33401         * lib/sys_time.in.h: Likewise.
33402         * lib/sysexits.in.h: Likewise.
33403         * lib/time.in.h: Likewise.
33404         * lib/unistd.in.h: Likewise.
33405         * lib/wchar.in.h: Likewise.
33406         * lib/wctype.in.h: Likewise.
33407         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
33408         * modules/fchdir (Makefile.am): Likewise.
33409         * modules/fcntl (Makefile.am): Likewise.
33410         * modules/float (Makefile.am): Likewise.
33411         * modules/iconv_open (Makefile.am): Likewise.
33412         * modules/inttypes (Makefile.am): Likewise.
33413         * modules/locale (Makefile.am): Likewise.
33414         * modules/math (Makefile.am): Likewise.
33415         * modules/netinet_in (Makefile.am): Likewise.
33416         * modules/search (Makefile.am): Likewise.
33417         * modules/signal (Makefile.am): Likewise.
33418         * modules/stdarg (Makefile.am): Likewise.
33419         * modules/stdint (Makefile.am): Likewise.
33420         * modules/stdio (Makefile.am): Likewise.
33421         * modules/stdlib (Makefile.am): Likewise.
33422         * modules/string (Makefile.am): Likewise.
33423         * modules/strings (Makefile.am): Likewise.
33424         * modules/sys_select (Makefile.am): Likewise.
33425         * modules/sys_socket (Makefile.am): Likewise.
33426         * modules/sys_stat (Makefile.am): Likewise.
33427         * modules/sys_time (Makefile.am): Likewise.
33428         * modules/sysexits (Makefile.am): Likewise.
33429         * modules/time (Makefile.am): Likewise.
33430         * modules/unistd (Makefile.am): Likewise.
33431         * modules/wchar (Makefile.am): Likewise.
33432         * modules/wctype (Makefile.am): Likewise.
33433         Reported by Reuben Thomas <rrt@sc3d.org>.
33434
33435 2008-08-29  Bruno Haible  <bruno@clisp.org>
33436
33437         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
33438         any more.
33439
33440 2008-08-29  Simon Josefsson  <simon@josefsson.org>
33441
33442         * MODULES.html.sh (Misc): Add bitrotate.
33443
33444         * modules/bitrotate: New file.
33445
33446         * lib/bitrotate.h: New file.
33447
33448         * modules/bitrotate-tests: New file.
33449
33450         * tests/test-bitrotate.c: New file.
33451
33452         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
33453         on the bitrotate module.
33454
33455         * lib/arctwo.c: Use new bitrotate module.
33456
33457 2008-08-29  Jim Meyering  <meyering@redhat.com>
33458
33459         bootstrap: merge changes from coreutils
33460         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
33461         of copied files.  Remove a kludge, now that this is fixed.
33462         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
33463         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
33464         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
33465
33466 2008-08-29  Bruno Haible  <bruno@clisp.org>
33467
33468         * MODULES.html.sh: Remove --cvs-urls option.
33469
33470 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
33471
33472         maint.mk: adjust to file name change
33473         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
33474
33475 2008-08-28  Jim Meyering  <meyering@redhat.com>
33476
33477         * modules/getndelim2 (License): Relicense to LGPLv2+.
33478         Approved by Richard Stallman for the version of 1995, and by
33479         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
33480
33481 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
33482
33483         * lib/getdelim.c (flockfile, funlockfile): Make all of them
33484         dummy if one is not available.  Do not touch them if
33485         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
33486         (getc_maybe_unlocked): New.
33487         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
33488
33489 2008-08-26  Eric Blake  <ebb9@byu.net>
33490
33491         doc/INSTALL: resync from autoconf
33492         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
33493         (INSTALL_PRELUDE): Delete; this is done more efficiently by
33494         moving...
33495         * install.texi [!autoconf]: ...here.  Resync from autoconf.
33496         * INSTALL: Regenerate.
33497         * INSTALL.ISO: New file.
33498         * INSTALL.UTF-8: Likewise.
33499
33500 2008-08-26  Jim Meyering  <meyering@redhat.com>
33501
33502         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
33503         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
33504         these definitions conditional, so that they may be overridden, too.
33505
33506 2008-08-26  Bruno Haible  <bruno@clisp.org>
33507
33508         Generate INSTALL file variants with prettier quotes.
33509         * doc/Makefile (INSTALL_PRELUDE): New macro.
33510         (INSTALL): Use it.
33511         (INSTALL.ISO, INSTALL.UTF-8): New rules.
33512
33513 2008-08-26  Bruno Haible  <bruno@clisp.org>
33514
33515         Run makeinfo in an English locale.
33516         * doc/Makefile (MAKEINFO): New variable.
33517
33518 2008-08-26  Bruno Haible  <bruno@clisp.org>
33519
33520         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
33521         Suggested by Eric Blake.
33522
33523 2008-08-25  Bruno Haible  <bruno@clisp.org>
33524
33525         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
33526
33527 2008-08-25  Eric Blake  <ebb9@byu.net>
33528
33529         c-stack: test that stack overflow can be caught
33530         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
33531         that platform allows handling stack overflow; at least OS/2 EMX
33532         has sigaltstack, but crashes before transferring control to
33533         handler on stack overflow.
33534         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
33535         check for HAVE_STACK_OVERFLOW_HANDLING.
33536         Reported by Elbert Pol.
33537
33538 2008-08-25  Bruno Haible  <bruno@clisp.org>
33539
33540         * doc/posix-functions/strftime.texi: Fix description of strftime
33541         module.
33542
33543 2008-08-24  Bruno Haible  <bruno@clisp.org>
33544
33545         * tests/uniwidth/test-uc_width2.c: New file.
33546         * tests/uniwidth/test-uc_width2.sh: New file.
33547         * modules/uniwidth/width-tests (Files): Add the new files.
33548         (TESTS): Add uniwidth/test-uc_width2.sh.
33549         (TESTS_ENVIRONMENT): New variable.
33550         (check_PROGRAMS): Add test-uc_width2.
33551         (test_uc_width2_SOURCES): New variable.
33552
33553         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
33554         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
33555         not 0x00AB.
33556         Reported by Alexander V. Lukyanov <lav@netis.ru>.
33557
33558 2008-08-22  Eric Blake  <ebb9@byu.net>
33559
33560         test-lock, test-tls: mention why a test is skipped
33561         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
33562         skipped.
33563         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
33564
33565         count-one-bits: relax license
33566         * modules/count-one-bits (License): Relicense to LGPLv2+.
33567         Suggested by Ludovic Courtès, approved by Ben Pfaff.
33568
33569 2008-08-22  Andreas Schwab  <schwab@suse.de>
33570
33571         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33572         Remove spurious space in assignment.
33573
33574 2008-08-21  Simon Josefsson  <simon@josefsson.org>
33575
33576         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
33577         Paul Eggert <eggert@CS.UCLA.EDU>.
33578
33579 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
33580
33581         * modules/gettext: Add m4/threadlib.m4.
33582
33583 2008-08-19  Eric Blake  <ebb9@byu.net>
33584
33585         test-c-stack: fix compilation failure on FreeBSD 5.0
33586         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
33587         headers before <sys/resource.h>.
33588         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
33589         the bug.
33590         Reported by Nelson H. F. Beebe.
33591
33592         strverscmp: migrate from "strverscmp.h" to <string.h>
33593         * modules/string (Makefile.am): Add new hooks.
33594         * modules/strverscmp (Files): Remove strverscmp.h.
33595         (Depends-on): Add string.
33596         (configure.ac): Add indicator.
33597         (Include): Mention new header.
33598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
33599         defaults.
33600         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
33601         results.
33602         * lib/strverscmp.h: Delete.
33603         * lib/string.in.h (strverscmp): Provide declaration, when needed.
33604         * tests/test-strverscmp.c (includes): Adjust client.
33605         * lib/check-version.c (includes): Likewise.
33606         * NEWS: Document the change.
33607
33608         strverscmp: add unit test
33609         * modules/strverscmp-tests: New file.
33610         * tests/test-strverscmp.c: Likewise.
33611
33612 2008-08-19  Simon Josefsson  <simon@josefsson.org>
33613
33614         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
33615         regarding Windows crypto stuff, from Mono.
33616
33617 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
33618
33619         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
33620         if present, for intel RND.  Return error on failures.
33621
33622 2008-08-18  Ben Pfaff  <blp@gnu.org>
33623
33624         gitlog-to-changelog: give better diagnostic for failed pipe-open
33625         * build-aux/gitlog-to-changelog: Improve error message: suggest
33626         that the version of Git may be too old.
33627
33628 2008-08-18  Simon Josefsson  <simon@josefsson.org>
33629
33630         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
33631         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
33632
33633 2008-08-18  Bruno Haible  <bruno@clisp.org>
33634
33635         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
33636         pthread_in_use().
33637
33638 2008-08-18  Bruno Haible  <bruno@clisp.org>
33639
33640         * lib/glthread/threadlib.c: Include <pthread.h>.
33641
33642 2008-08-18  Bruno Haible  <bruno@clisp.org>
33643
33644         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
33645         glthread_recursive_lock_* macros.
33646         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
33647         Fix syntax error.
33648
33649 2008-08-18  Bruno Haible  <bruno@clisp.org>
33650
33651         * lib/glthread/thread.c: Avoid forcing a context switch right after
33652         thread creation.
33653
33654 2008-08-17  Bruno Haible  <bruno@clisp.org>
33655
33656         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
33657         * lib/glthread/thread.h: Provide Win32 specific implementation.
33658         * modules/thread (Files): Add lib/glthread/thread.c.
33659         (Depends-on): Add lock.
33660         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
33661
33662 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33663
33664         New module 'yield'.
33665         * modules/yield: New file.
33666         * lib/glthread/yield.h: New file.
33667         * m4/yield.m4: New file.
33668         * MODULES.html.sh (Multithreading): Add yield.
33669
33670 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33671
33672         New module 'thread'.
33673         * modules/thread: New file.
33674         * lib/glthread/thread.h: New file.
33675         * m4/thread.m4: New file.
33676         * MODULES.html.sh (Multithreading): Add thread.
33677
33678 2008-08-17  Bruno Haible  <bruno@clisp.org>
33679
33680         * lib/glthread/lock.h: Include <stdlib.h> always.
33681         * lib/glthread/tls.h: Likewise.
33682         * lib/glthread/cond.h: Likewise.
33683
33684 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33685
33686         New module 'cond'.
33687         * modules/cond: New file.
33688         * lib/glthread/cond.h: New file.
33689         * lib/glthread/cond.c: New file.
33690         * m4/cond.m4: New file.
33691         * MODULES.html.sh (Multithreading): Add cond.
33692
33693 2008-08-16  Eric Blake  <ebb9@byu.net>
33694
33695         c-stack: fix regression on Irix 5.3 from 2008-06-21
33696         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
33697         sa_sigaction...
33698         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
33699         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
33700         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
33701         * modules/signal (Makefile.am): Use the value.
33702         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
33703         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
33704         * doc/posix-headers/signal.texi (signal.h): Document this
33705         portability issue.
33706         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
33707         Reported by Tom G. Christensen.
33708
33709 2008-08-17  Bruno Haible  <bruno@clisp.org>
33710
33711         New module 'threadlib'.
33712         * modules/threadlib: New file.
33713         * lib/glthread/threadlib.c: New file, extracted from
33714         lib/glthread/lock.c.
33715         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
33716         functions.
33717         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
33718         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
33719         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
33720         macros.
33721         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
33722         (gl_DISABLE_THREADS): Remove macro.
33723         * modules/lock (Files): Remove build-aux/config.rpath.
33724         (Depends-on): Remove havelib. Add threadlib.
33725         (configure.ac-early): Remove section.
33726         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
33727         * modules/tls (Depends-on): Remove lock. Add threadlib.
33728         (Link): New section, copied from threadlib.
33729         * MODULES.html.sh (Multithreading): Add threadlib.
33730
33731 2008-08-14  Bruno Haible  <bruno@clisp.org>
33732
33733         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
33734         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
33735         glthread_rwlock_unlock, glthread_rwlock_destroy,
33736         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
33737         glthread_recursive_lock_destroy): Define as macros always.
33738         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
33739         glthread_lock_lock.
33740         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
33741         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
33742         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
33743         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
33744         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
33745         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
33746         (glthread_recursive_lock_lock_func): Renamed from
33747         glthread_recursive_lock_lock.
33748         (glthread_recursive_lock_unlock_func): Renamed from
33749         glthread_recursive_lock_unlock.
33750         (glthread_recursive_lock_destroy_func): Renamed from
33751         glthread_recursive_lock_destroy.
33752
33753 2008-08-14  Bruno Haible  <bruno@clisp.org>
33754
33755         * lib/glthread/lock.h: Renamed from lib/lock.h.
33756         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
33757         * lib/glthread/tls.h: Renamed from lib/tls.h.
33758         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
33759         * lib/fstrcmp.c: Update includes.
33760         * lib/strsignal.c: Update includes.
33761         * modules/lock (Files, Makefile.am): Update.
33762         (Include): Change to "glthread/lock.h".
33763         * modules/tls (Files, Makefile.am): Update.
33764         (Include): Change to "glthread/tls.h".
33765         * tests/test-lock.c: Update includes.
33766         * tests/test-tls.c: Update includes.
33767         * NEWS: Mention the renamed header files.
33768
33769 2008-08-11  Jim Meyering  <meyering@redhat.com>
33770
33771         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
33772
33773 2008-08-11  Eric Blake  <ebb9@byu.net>
33774
33775         test-c-stack: avoid C99-ism
33776         * tests/test-c-stack.c (main): Fix whitespace, move declaration
33777         before statement.
33778         Reported by Alain Guibert.
33779
33780 2008-08-10  Jim Meyering  <meyering@redhat.com>
33781
33782         ensure that return value of uinttostr et al are not ignored
33783         * lib/inttostr.h (__GNUC_PREREQ): Define.
33784         (__attribute_warn_unused_result__): Define.
33785         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
33786
33787 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
33788
33789         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
33790         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
33791
33792 2008-08-07  Jim Meyering  <meyering@redhat.com>
33793
33794         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
33795
33796         * modules/mkstemp (License): Relicense under LGPLv2+.
33797         * modules/tempname (License): Likewise.
33798
33799 2008-08-06  Bruno Haible  <bruno@clisp.org>
33800
33801         * lib/poll.c (poll): Further micro-optimization.
33802
33803 2008-08-06  Jim Meyering  <meyering@redhat.com>
33804
33805         inet_pton.c: use locale-independent tolower
33806         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
33807         (inet_pton6): Use c_tolower rather than tolower.
33808         * modules/inet_pton (Depends-on): Add c-ctype.
33809
33810 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
33811
33812         * lib/poll.c (poll): Avoid division when timeout is 0, cache
33813         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
33814
33815 2008-08-06  Jim Meyering  <meyering@redhat.com>
33816
33817         * modules/inet_pton (License): Relicense under LGPLv2+.
33818
33819 2008-08-03  Bruno Haible  <bruno@clisp.org>
33820
33821         Additional non-aborting API for lock and tls.
33822         * lib/lock.h: Include <errno.h>.
33823         (glthread_lock_init): New macro/function.
33824         (gl_lock_init): Define as wrapper around glthread_lock_init.
33825         (glthread_lock_lock): New macro/function.
33826         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
33827         (glthread_lock_unlock): New macro/function.
33828         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
33829         (glthread_lock_destroy): New macro/function.
33830         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
33831         (glthread_rwlock_init): New macro/function.
33832         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
33833         (glthread_rwlock_rdlock): New macro/function.
33834         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
33835         (glthread_rwlock_wrlock): New macro/function.
33836         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
33837         (glthread_rwlock_unlock): New macro/function.
33838         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
33839         (glthread_rwlock_destroy): New macro/function.
33840         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
33841         (glthread_recursive_lock_init): New macro/function.
33842         (gl_recursive_lock_init): Define as wrapper around
33843         glthread_recursive_lock_init.
33844         (glthread_recursive_lock_lock): New macro/function.
33845         (gl_recursive_lock_lock): Define as wrapper around
33846         glthread_recursive_lock_lock.
33847         (glthread_recursive_lock_unlock): New macro/function.
33848         (gl_recursive_lock_unlock): Define as wrapper around
33849         glthread_recursive_lock_unlock.
33850         (glthread_recursive_lock_destroy): New macro/function.
33851         (gl_recursive_lock_destroy): Define as wrapper around
33852         glthread_recursive_lock_destroy.
33853         (glthread_once): New macro/function.
33854         (gl_once): Define as wrapper around glthread_once.
33855         Update function declarations.
33856         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
33857         glthread_rwlock_init. Return error code.
33858         (glthread_rwlock_rdlock_multithreaded): Renamed from
33859         glthread_rwlock_rdlock. Return error code.
33860         (glthread_rwlock_wrlock_multithreaded): Renamed from
33861         glthread_rwlock_wrlock. Return error code.
33862         (glthread_rwlock_unlock_multithreaded): Renamed from
33863         glthread_rwlock_unlock. Return error code.
33864         (glthread_rwlock_destroy_multithreaded): Renamed from
33865         glthread_rwlock_destroy. Return error code.
33866         (glthread_recursive_lock_init_multithreaded): Renamed from
33867         glthread_recursive_lock_init. Return error code.
33868         (glthread_recursive_lock_lock_multithreaded): Renamed from
33869         glthread_recursive_lock_lock. Return error code.
33870         (glthread_recursive_lock_unlock_multithreaded): Renamed from
33871         glthread_recursive_lock_unlock. Return error code.
33872         (glthread_recursive_lock_destroy_multithreaded): Renamed from
33873         glthread_recursive_lock_destroy. Return error code.
33874         (glthread_once_call): Make static.
33875         (glthread_once_multithreaded): Renamed from glthread_once.
33876         * lib/tls.h: Include <errno.h>.
33877         (glthread_tls_key_init): New macro/function.
33878         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
33879         (glthread_tls_set): New macro/function.
33880         (gl_tls_set): Define as wrapper around glthread_tls_set.
33881         (glthread_tls_key_destroy): New macro/function.
33882         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
33883         Update function declarations.
33884         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
33885         glthread_tls_get.
33886         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33887
33888 2008-08-04  Eric Blake  <ebb9@byu.net>
33889
33890         gnumakefile: use space, not TAB, outside of targets
33891         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
33892
33893 2008-08-02  Jim Meyering  <meyering@redhat.com>
33894
33895         getdate.y: avoid locale-dependent date parsing failure
33896         In Turkish locales, getdate would fail to recognize keywords
33897         containing a lowercase "i".  The solution is not to rely on
33898         locale-sensitive case-conversion.
33899         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
33900         (lookup_word): Use c_toupper in place of toupper.
33901         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
33902         Reported by Vefa Bicakci <bicave@superonline.com> in
33903         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
33904         * modules/getdate (Depends-on): Add c-ctype.
33905
33906 2008-08-02  Bruno Haible  <bruno@clisp.org>
33907
33908         * gnulib-tool (func_import): When updating or creating a .gitignore
33909         file, prepend each added line with a slash, and ignore leading slashes
33910         from the existing lines.
33911         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33912
33913 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33914
33915         Portability fix for GNU make 3.79.1.
33916         * top/GNUmakefile: Avoid 'else COND', which older GNU make
33917         versions do not understand.
33918
33919 2008-08-01  Bruno Haible  <bruno@clisp.org>
33920
33921         Work around bug of HP-UX 10.20 cc with -0.0 literal.
33922         * tests/test-isnanf.h (zero): New variable.
33923         (main): Avoid literal -0.0f.
33924         * tests/test-isnand.h (zero): New variable.
33925         (main): Avoid literal -0.0.
33926         * tests/test-isnanl.h (zero): New variable.
33927         (main): Avoid literal -0.0L.
33928         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
33929         (test_float, test_double, test_long_double): Avoid literals -0.0f,
33930         -0.0, -0.0L.
33931         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
33932         (test_signbitd): Avoid literal -0.0.
33933         (test_signbitl): Avoid literal -0.0L.
33934         * tests/test-ceilf1.c (zero): New variable.
33935         (main): Avoid literal -0.0f.
33936         * tests/test-ceill.c (zero): New variable.
33937         (main): Avoid literal -0.0L.
33938         * tests/test-floorf1.c (zero): New variable.
33939         (main): Avoid literal -0.0f.
33940         * tests/test-floorl.c (zero): New variable.
33941         (main): Avoid literal -0.0L.
33942         * tests/test-roundf1.c (zero): New variable.
33943         (main): Avoid literal -0.0f.
33944         * tests/test-round1.c (zero): New variable.
33945         (main): Avoid literal -0.0.
33946         * tests/test-roundl.c (zero): New variable.
33947         (main): Avoid literal -0.0L.
33948         * tests/test-truncf1.c (zero): New variable.
33949         (main): Avoid literal -0.0f.
33950         * tests/test-trunc1.c (zero): New variable.
33951         (main): Avoid literal -0.0.
33952         * tests/test-truncl.c (zero): New variable.
33953         (main): Avoid literal -0.0L.
33954         * tests/test-frexp.c (zero): New variable.
33955         (main): Avoid literal -0.0.
33956         * tests/test-frexpl.c (zero): New variable.
33957         (main): Avoid literal -0.0L.
33958         * tests/test-ldexpl.c (zero): New variable.
33959         (main): Avoid literal -0.0L.
33960         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33961         (zerod, zerol): New variables.
33962         (test_function): Avoid literals -0.0, -0.0L.
33963         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
33964         (zerod, zerol): New variables.
33965         (test_function): Avoid literals -0.0, -0.0L.
33966         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33967         (zerod, zerol): New variables.
33968         (test_function): Avoid literals -0.0, -0.0L.
33969         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
33970         (zerod, zerol): New variables.
33971         (test_function): Avoid literals -0.0, -0.0L.
33972         * tests/test-strtod.c (zero): New variable.
33973         (main): Avoid literal -0.0.
33974         Reported by Jonathan C. Patschke <jp@centtech.com>.
33975
33976 2008-07-31  Jim Meyering  <meyering@redhat.com>
33977
33978         sha256.h: correct definition of SHA224_DIGEST_SIZE
33979         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
33980         Reported by Paulie Pena IV <paulie4@gmail.com>.
33981         Define as 224 / 8, rather than as a literal.
33982         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
33983         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
33984         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
33985
33986 2008-07-31  Bruno Haible  <bruno@clisp.org>
33987
33988         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
33989         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
33990         Reported by Jonathan Patschke <jp@centtech.com>.
33991
33992 2008-07-31  Bruno Haible  <bruno@clisp.org>
33993
33994         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
33995         Reported by Paolo Bonzini <bonzini@gnu.org>.
33996
33997 2008-07-30  Eric Blake  <ebb9@byu.net>
33998
33999         test-strtod: allow compilation without -lm
34000         * tests/test-strtod.c (main): Avoid link dependence on fabs.
34001         Reported by Dennis Clarke <blastwave@gmail.com>.
34002
34003 2008-07-28  Jim Meyering  <meyering@redhat.com>
34004
34005         bootstrap: work also when there are no .po files in po/
34006         * build-aux/bootstrap (update_po_files): Complete the change
34007         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
34008
34009 2008-07-27  Jim Meyering  <meyering@redhat.com>
34010
34011         * users.txt: Add zile.
34012
34013 2008-07-26  Ben Pfaff  <blp@gnu.org>
34014
34015         Add missing dependencies on new m4/exponent[fdl].m4 files.
34016         * modules/isnanf-nolibm: Add m4/exponentf.m4.
34017         * modules/isnand-nolibm: Add m4/exponentd.m4.
34018         * modules/isnanl-nolibm: Add m4/exponentl.m4.
34019         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
34020         m4/isnan[fdl].m4, because the macros actually used moved.
34021         Reported by Jim Meyering.
34022
34023 2008-07-14  Ben Pfaff  <blp@gnu.org>
34024
34025         Add isinf module.
34026         * lib/isinf.c: New file.
34027         * lib/math.in.h: Define isinf macro if we have decided to replace
34028         it.
34029         * m4/isinf.m4: New file.
34030         * m4/math_h.m4: Initialize and substitute variables for isinf
34031         module.
34032         * modules/isinf: New file.
34033         * modules/isinf-tests: New file.
34034         * modules/math: Add substitutions for new module.
34035         * tests/test-isinf.c: New file.
34036         * doc/posix-functions/isinf.texi: Mention new module.
34037         * MODULES.html.sh: Mention new module.
34038
34039 2008-07-14  Ben Pfaff  <blp@gnu.org>
34040
34041         Factor out some macros for use by additional modules.
34042         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
34043         exponentf.m4.
34044         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
34045         exponentd.m4.
34046         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
34047         file exponentl.m4.
34048         * m4/exponentf.m4: New file.
34049         * m4/exponentd.m4: New file.
34050         * m4/exponentl.m4: New file.
34051         * modules/isnanf: Use new file m4/exponentf.m4.
34052         * modules/isnand: Use new file m4/exponentd.m4.
34053         * modules/isnanl: Use new file m4/exponentl.m4.
34054
34055 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
34056
34057         mktime.c: normalize tp->tm_isdst value to -1/0/1.
34058         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
34059         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
34060         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
34061
34062         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
34063         readlink on platforms without PATH_MAX.
34064
34065 2008-07-21  Eric Blake  <ebb9@byu.net>
34066
34067         Warn, not fail, on stale version.
34068         * top/GNUmakefile (_curr-ver): Tone down previous patch.
34069
34070         Don't allow installation with stale devel version number.
34071         * top/GNUmakefile (_is-install-target): New macro.
34072         (_curr-ver): Forbid installation with stale version number.
34073
34074 2008-07-20  Bruno Haible  <bruno@clisp.org>
34075
34076         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
34077         TESTS_ENVIRONMENT.
34078         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
34079
34080 2008-07-20  Bruno Haible  <bruno@clisp.org>
34081
34082         * lib/c-stack.h (c_stack_action): Add documentation.
34083         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
34084
34085 2008-07-20  Bruno Haible  <bruno@clisp.org>
34086
34087         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
34088         * modules/readlink (License): Likewise.
34089
34090 2008-07-17  Eric Blake  <ebb9@byu.net>
34091
34092         * modules/c-stack (Link): Fix typo.
34093
34094         Make c-stack use libsigsegv, when available.
34095         * modules/c-stack (Depends-on): Add libsigsegv.
34096         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
34097         needed.
34098         * lib/c-stack.c (SIGSTKSZ): Define fallback.
34099         (segv_handler, overflow_handler, c_stack_action)
34100         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
34101         implementation when libsigsegv is available, but only when using
34102         the library is necessary.
34103         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
34104         comment, explaining why XSI check fails on Linux.
34105         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
34106         * tests/test-c-stack2.sh: Tweak skip message.
34107         * NEWS: Document new link-time requirements.
34108
34109 2008-07-16  Eric Blake  <ebb9@byu.net>
34110
34111         c-stack: Expose false positives when not using libsigsegv.
34112         * modules/c-stack-tests (Files): Expand test.
34113         * tests/test-c-stack.c (main): Add means to conditionally trigger
34114         non-overflow SIGSEGV.
34115         * tests/test-c-stack2.sh: New file.
34116
34117 2008-07-14  Bruno Haible  <bruno@clisp.org>
34118
34119         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
34120         Reported by Eric Blake.
34121
34122 2008-07-14  Sam Steingold  <sds@gnu.org>
34123             Bruno Haible  <bruno@clisp.org>
34124
34125         New module libsigsegv.
34126         * modules/libsigsegv: New file.
34127         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
34128         modifications.
34129         * MODULES.html.sh (Signal handling): New section.
34130
34131 2008-07-14  Bruno Haible  <bruno@clisp.org>
34132
34133         * modules/unictype/ctype-* (Description): Add the word "function".
34134         Improves the resulting doc in MODULES.html.
34135
34136 2008-07-12  Ben Pfaff  <blp@gnu.org>
34137
34138         Add longlong module.
34139         * modules/longlong: New file.
34140
34141 2008-07-12  Bruno Haible  <bruno@clisp.org>
34142
34143         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
34144         to empty.
34145
34146 2008-07-10  Ben Pfaff  <blp@gnu.org>
34147
34148         Add isnan module.
34149         * doc/posix-functions/isnan.texi: Mention new module.
34150         * lib/math.in.h: Define isnan macro if we have decided to replace
34151         it.
34152         * m4/isnan.m4: New file.
34153         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
34154         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
34155         also.
34156         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
34157         redundancy.
34158         * m4/math_h.m4: Initialize and substitute variables for isnan
34159         module.
34160         * modules/isnan: New file.
34161         * modules/isnan-tests: New file.
34162         * modules/math: Add substitutions for new module.
34163         * tests/test-isnan.c: New file.
34164         * MODULES.html.sh: Mention new module.
34165
34166 2008-07-10  Ben Pfaff  <blp@gnu.org>
34167
34168         Add isnanf module.
34169         * lib/isnanf.m4: New file.
34170         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
34171         (gl_HAVE_ISNANF_IN_LIBM): New macro.
34172         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
34173         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
34174         * modules/isnanf: New file.
34175         * modules/isnanf-tests: New file.
34176         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
34177         files.
34178         * tests/test-isnanf-nolibm.c: factored most of its contents into
34179         new file tests/test-isnanf.h.
34180         * tests/test-isnanf.h: New file.
34181         * tests/test-isnanf.c: New file.
34182         * MODULES.html.sh: Mention new module.
34183         * doc/glibc-functions/isnanf.texi: Mention new module.
34184
34185 2008-07-10  Ben Pfaff  <blp@gnu.org>
34186
34187         Add isnand module.
34188         * lib/isnand.h: New file.
34189         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
34190         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
34191         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
34192         functionality also.
34193         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
34194         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
34195         (gl_HAVE_ISNAND_IN_LIBM): New macro.
34196         * modules/isnand: New file.
34197         * modules/isnand-tests: New file.
34198         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
34199         files.
34200         * tests/test-isnand-nolibm.c: factored most of its contents into
34201         new file tests/test-isnand.h.
34202         * tests/test-isnand.h: New file.
34203         * tests/test-isnand.c: New file.
34204         * MODULES.html.sh: Mention new module.
34205
34206 2008-07-10  Ben Pfaff  <blp@gnu.org>
34207
34208         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
34209         * lib/isnand.h: Rename lib/isnand-nolibm.h.
34210         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
34211         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
34212         * modules/isnanf-nolibm: Update references to renamed files.
34213         * modules/isnand-nolibm: Likewise.
34214         * modules/isnanf-nolibm-tests: Likewise.
34215         * modules/isnand-nolibm-tests: Likewise.
34216         * lib/frexp.c: Likewise.
34217         * lib/isfinite.c: Likewise.
34218         * lib/signbitd.c: Likewise.
34219         * lib/signbitf.c: Likewise.
34220         * lib/vasnprintf.c: Likewise.
34221         * tests/test-ceilf1.c: Likewise.
34222         * tests/test-ceilf2.c: Likewise.
34223         * tests/test-floorf1.c: Likewise.
34224         * tests/test-floorf2.c: Likewise.
34225         * tests/test-frexp.c: Likewise.
34226         * tests/test-round1.c: Likewise.
34227         * tests/test-round2.c: Likewise.
34228         * tests/test-roundf1.c: Likewise.
34229         * tests/test-strtod.c: Likewise.
34230         * tests/test-trunc1.c: Likewise.
34231         * tests/test-trunc2.c: Likewise.
34232         * tests/test-truncf1.c: Likewise.
34233         * tests/test-truncf2.c: Likewise.
34234         * NEWS: Mention the renamed header files.
34235
34236 2008-07-11  Jim Meyering  <meyering@redhat.com>
34237
34238         vc-list-files: make the last-resort awk code more portable
34239         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
34240         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
34241         does not support it.
34242
34243 2008-07-10  Eric Blake  <ebb9@byu.net>
34244
34245         Work with tar's bootstrap.
34246         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
34247         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
34248         an m4 comment.
34249
34250 2008-07-09  Jim Meyering  <meyering@redhat.com>
34251
34252         posix-shell.m4: fix typo that made this test malfunction
34253         * m4/posix-shell.m4: Remove capitalization in variable name.
34254
34255 2008-07-08  Bruno Haible  <bruno@clisp.org>
34256
34257         * m4/onceonly.m4: Update comments.
34258         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34259
34260 2008-07-04  Jim Meyering  <meyering@redhat.com>
34261
34262         * users.txt: Add vc-dwim.
34263         (bison, coreutils): Use the gitweb URL.
34264
34265 2008-07-03  Jim Meyering  <meyering@redhat.com>
34266
34267         * users.txt: Add libffcall.  From Sam Steingold.
34268
34269 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
34270
34271         getdate.y: do not ignore TZ with relative day, month or year offset
34272         * lib/getdate.y (get_date): Move the tz-handling block to follow the
34273         relative-date-handling, since otherwise, the latter would clobber the
34274         sole output (an updated Start value) of the tz-handling block.
34275         * tests/test-getdate.c: Tests for the fix
34276
34277 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34278
34279         Recognize 'foo_LIBRARIES += libgnu.a'.
34280         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
34281         makefile snippet has already specified an installation location,
34282         also using '+='.
34283
34284 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
34285
34286         getdate.y: factor out common actions
34287         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
34288         Use them in place of open-coded actions.
34289
34290 2008-07-01  Simon Josefsson  <simon@josefsson.org>
34291
34292         Add self-test for getdate module.
34293         * modules/getdate-tests: New file.
34294         * tests/test-getdate.c: New file.
34295
34296 2008-06-29  Bruno Haible  <bruno@clisp.org>
34297
34298         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
34299         .gitignore.
34300         Reported by Sylvain Beucler <beuc@beuc.net>.
34301
34302 2008-06-29  Bruno Haible  <bruno@clisp.org>
34303
34304         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
34305         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
34306
34307 2008-06-29  Bruno Haible  <bruno@clisp.org>
34308
34309         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
34310         EXTRA_DIST.
34311         Reported by Sylvain Beucler <beuc@beuc.net>.
34312
34313 2008-06-26  Jim Meyering  <meyering@redhat.com>
34314
34315         make several modules depend on the "open" module
34316         This provides slightly increased consistency when opening-for-write
34317         the name of a non-directory spelled with a trailing slash.
34318         * modules/chdir-safer: Likewise.
34319         * modules/chown: Likewise.
34320         * modules/clean-temp: Likewise.
34321         * modules/copy-file: Likewise.
34322         * modules/fchdir: Likewise.
34323         * modules/fcntl-safer: Likewise.
34324         * modules/pipe: Likewise.
34325         * modules/utime: Likewise.
34326         Prompted by Eric Blake and Bruno Haible.
34327
34328 2008-06-24  Andreas Schwab  <schwab@suse.de>
34329
34330         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
34331         literals can be used as initializers for global variables.
34332
34333 2008-06-23  Eric Blake  <ebb9@byu.net>
34334
34335         Make gnulib-cache.m4 easier to diff.
34336         * gnulib-tool (func_import): Allow newlines when reading cached
34337         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
34338
34339 2008-06-23  Bruno Haible  <bruno@clisp.org>
34340
34341         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
34342         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
34343         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
34344         m4/signalblocking.m4.
34345         (gl_PREREQ_SIGACTION): Don't invoke it.
34346         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
34347         gl_PREREQ_SIG_HANDLER_H.
34348         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34349         Don't check for sigaction here.
34350
34351 2008-06-23  Bruno Haible  <bruno@clisp.org>
34352
34353         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
34354         (install_handlers): Don't set the SA_RESETHAND flag.
34355
34356 2008-06-23  Bruno Haible  <bruno@clisp.org>
34357
34358         * m4/sigaction.m4: Comment fixes.
34359         * lib/signal.in.h: Likewise.
34360
34361 2008-06-23  Eric Blake  <ebb9@byu.net>
34362
34363         Fix typo.
34364         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
34365
34366         Avoid SA_ namespace.
34367         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
34368         Reported by Ralf Wildenhues.
34369
34370         Avoid test failure due to SA_RESTORER.
34371         * tests/test-sigaction.c (SA_MASK): New macro.
34372         (main): Avoid failing due to extension flags being set.
34373         Reported by Jim Meyering.
34374
34375         Revert use of sig-handler.h in sigprocmask.c.
34376         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
34377         it requires the existence of struct sigaction.
34378         * lib/sigprocmask.c (handler_t): Restore typedef.
34379         (rpl_signal, old_handlers): Use local type.
34380
34381 2008-06-22  Bruno Haible  <bruno@clisp.org>
34382
34383         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
34384         conditionally.
34385         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34386
34387 2008-06-22  Bruno Haible  <bruno@clisp.org>
34388
34389         * doc/posix-functions/siginterrupt.texi: Move note.
34390
34391         * lib/signal.in.h (SA_RESTART): New macro.
34392         * lib/sigaction.c: Update comment.
34393
34394         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
34395
34396         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
34397         (gl_PREREQ_SIGPROCMASK): Invoke it.
34398         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
34399
34400         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
34401
34402         * lib/sigprocmask.c: Update a comment.
34403
34404 2008-06-21  Eric Blake  <ebb9@byu.net>
34405
34406         Use sigaction module rather than signal().
34407         * modules/c-stack (Depends-on): Add sigaction.
34408         * modules/fatal-signal (Depends-on): Likewise.
34409         * modules/nanosleep (Depends-on): Likewise.
34410         * modules/sigprocmask (Files): Add sig-handler.h.
34411         * modules/sigaction (Files): Likewise.
34412         * lib/sig-handler.h (get_handler): New file, suggested by Paul
34413         Eggert.
34414         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
34415         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
34416         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
34417         (init_fatal_signals): Likewise.
34418         * lib/nanosleep.c (rpl_nanosleep): Likewise.
34419         (siginterrupt): Delete fallback.
34420         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
34421         instead.
34422         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
34423         siginterrupt.
34424
34425         New module sigaction, for mingw.
34426         * modules/sigaction: New module...
34427         * modules/sigaction-tests: ...and its test.
34428         * m4/sigaction.m4: New file.
34429         * lib/sigaction.c: Likewise.
34430         * tests/test-sigaction.c: Likewise.
34431         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
34432         * modules/signal (Makefile.am): Likewise.
34433         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
34434         needed.
34435         * doc/posix-headers/signal.texi (signal.h): Mention provided
34436         types.
34437         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
34438         that sigaction is preferable.
34439         * doc/posix-functions/sigaction.texi (sigaction): Mention new
34440         module.
34441         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34442         sigaction.
34443
34444         Improve robustness of sigprocmask by overriding signal.
34445         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
34446         is in use.
34447         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
34448         (SIGKILL, SIGSTOP): Provide fallbacks.
34449         (rpl_signal): Implement.
34450         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
34451         signal can be called inside handlers.
34452
34453         Fix nanosleep module on mingw.
34454         * modules/nanosleep (Depends-on): Add sys_select.
34455         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
34456
34457         Fix licensing of sigprocmask.
34458         * modules/raise (License): Relicense as LGPL.
34459
34460 2008-06-21  Bruno Haible  <bruno@clisp.org>
34461
34462         * lib/propername.c (proper_name_utf8): Don't use the transliterated
34463         result if it contains question marks.
34464         Reported by Michael Geng <linux@michaelgeng.de>.
34465
34466 2008-06-19  Bruno Haible  <bruno@clisp.org>
34467
34468         Fix CVS-ism.
34469         * doc/gnulib.texi: Include updated-stamp.texi.
34470         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
34471         (updated-stamp.texi): New rule.
34472         (gnulib.info): Depend on it.
34473         * doc/.gitignore: Add updated-stamp.texi.
34474         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
34475
34476 2008-06-19  Bruno Haible  <bruno@clisp.org>
34477
34478         * doc/Makefile (gnulib.info): Update and simplify dependencies.
34479         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34480
34481 2008-06-19  Eric Blake  <ebb9@byu.net>
34482
34483         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
34484         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
34485         Reported by Stepan Kasal.
34486
34487 2008-06-18  Bruno Haible  <bruno@clisp.org>
34488
34489         * lib/fatal-signal.c (init_fatal_signals): Add comment.
34490         Reported by Eric Blake.
34491
34492 2008-06-18  Eric Blake  <ebb9@byu.net>
34493
34494         Work around cygwin 1.5.25 strsignal bug.
34495         * tests/test-strsignal.c: Allow for const char *.
34496         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
34497
34498 2008-06-18  Simon Josefsson  <simon@josefsson.org>
34499
34500         * users.txt: Update URL to article and add author/date
34501         information.
34502
34503 2008-06-17  Bruno Haible  <bruno@clisp.org>
34504
34505         New macro gl_DISABLE_THREADS.
34506         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
34507         if the user did not pass --enable-threads or --disable-threads option.
34508         (gl_DISABLE_THREADS): New macro.
34509         Reported by Eric Blake <ebb9@byu.net>.
34510
34511 2008-06-17  Bruno Haible  <bruno@clisp.org>
34512
34513         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
34514         when the macro ignores it.
34515         Based on a patch by Eric Blake <ebb9@byu.net>.
34516
34517 2008-06-17  Bruno Haible  <bruno@clisp.org>
34518
34519         * modules/tls (License): Change to LGPLv2+.
34520         Reported by Eric Blake.
34521
34522 2008-06-17  Eric Blake  <ebb9@byu.net>
34523
34524         Simplify c-stack prerequisites.
34525         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
34526         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
34527         no longer requires <ucontext.h> to exist.  Optimize setrlimit
34528         check.
34529         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
34530         <sys/resource.h>.
34531
34532         Move c-stack test into testsuite.
34533         * modules/c-stack-tests: New file.
34534         * lib/c-stack.c [DEBUG]: Move test program...
34535         * tests/test-c-stack.c: ...into this new file.  Skip rather than
34536         fail test if sigaltstack is lacking.
34537         * tests/test-c-stack.sh: New driver file.
34538
34539 2008-06-16  Eric Blake  <ebb9@byu.net>
34540
34541         Use raise module consistently.
34542         * modules/fatal-signal (Depends-on): Add raise.
34543         * modules/sigprocmask (Depends-on): Likewise.
34544         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
34545         * lib/sigprocmask.c (sigprocmask): Likewise.
34546         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34547         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
34548
34549         Fix compliance bug in sigpending.
34550         * lib/sigprocmask.c (sigpending): Return pending array via
34551         parameter, not return value.
34552
34553 2008-06-14  Eric Blake  <ebb9@byu.net>
34554
34555         Improve obstack-printf test code.
34556         * tests/test-obstack-printf.c (test_function): Fix comment, and
34557         simplify usage of obstack_* in macros.  Add a test for coverage.
34558         Reported by Bruno Haible.
34559
34560 2008-06-14  Bruno Haible  <bruno@clisp.org>
34561
34562         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
34563         array size as a constant, not as a const variable.
34564         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
34565         AC_USE_SYSTEM_EXTENSIONS.
34566         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34567         Test whether the obstack_printf function actually exists.
34568         * modules/obstack-printf (Depends-on): Add extensions.
34569         (Include): Remove obstack.h.
34570         * modules/obstack-printf-posix (Depends-on): Add extensions.
34571         (Include): Remove obstack.h.
34572
34573 2008-06-13  Eric Blake  <ebb9@byu.net>
34574
34575         Add obstack-printf and obstack-printf-posix modules.
34576         * modules/obstack-printf: New file.
34577         * modules/obstack-printf-posix: Likewise.
34578         * MODULES.html.sh (Misc): Mention them.
34579         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34580         Likewise.
34581         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34582         Likewise.
34583         * modules/stdio (Makefile.am): Accomodate new modules.
34584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34585         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
34586         Declare.
34587         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
34588         functions.
34589         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
34590         (gl_REPLACE_OBSTACK_PRINTF): New macros
34591         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
34592         * tests/test-obstack-printf.c: New file.
34593         * modules/obstack-printf-tests: Likewise.
34594         * modules/obstack-printf-posix-tests: Likewise.
34595
34596 2008-06-11  Bruno Haible  <bruno@clisp.org>
34597
34598         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
34599         * lib/open.c: Include errno.h.
34600         (open): Fail when attempting to write to a file that has a trailing
34601         slash.
34602         * tests/test-open.c (main): Test against trailing slash bug.
34603         * doc/posix-functions/open.texi: Mention the trailing slash bug.
34604
34605 2008-06-10  Bruno Haible  <bruno@clisp.org>
34606
34607         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
34608         for $? to work inside the trap command, with various /bin/sh-s.
34609         * tests/test-vc-list-files-cvs.sh: Likewise.
34610
34611 2008-06-10  Bruno Haible  <bruno@clisp.org>
34612
34613         * lib/acl-internal.h: Don't include gettext.h here.
34614         * lib/set-mode-acl.c: Include gettext.h here.
34615         * lib/copy-acl.c: Likewise.
34616
34617 2008-06-10  Bruno Haible  <bruno@clisp.org>
34618
34619         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
34620         * lib/wait-process.c (wait_subprocess): Likewise.
34621         * lib/execute.h (execute): Add termsigp argument.
34622         * lib/execute.c (execute): Likewise.
34623         * lib/csharpcomp.c (compile_csharp_using_pnet,
34624         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
34625         * lib/csharpexec.c (execute_csharp_using_pnet,
34626         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
34627         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
34628         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
34629         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
34630         is_jikes_present): Update.
34631         * lib/javaexec.c (execute_java_class): Update.
34632         * lib/javaversion.c (execute_and_read_line): Update.
34633         * NEWS: Document the changes.
34634         Reported by Eric Blake.
34635
34636 2008-06-10  Eric Blake  <ebb9@byu.net>
34637
34638         Add missing include.
34639         * tests/test-strstr.c (includes): Add <signal.h>.
34640         * tests/test-strcasestr.c (includes): Likewise.
34641         * tests/test-memmem.c (includes): Likewise.
34642
34643 2008-06-10  Bruno Haible  <bruno@clisp.org>
34644
34645         * lib/wait-process.c (wait_subprocess): Add an assertion.
34646
34647 2008-06-10  Bruno Haible  <bruno@clisp.org>
34648
34649         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
34650
34651 2008-06-10  Bruno Haible  <bruno@clisp.org>
34652
34653         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
34654         using alarm().
34655         * tests/test-strcasestr.c (main): Likewise.
34656         * tests/test-strstr.c (main): Likewise.
34657
34658 2008-06-09  Bruno Haible  <bruno@clisp.org>
34659
34660         Work around the Solaris 10 ACE ACLs ABI change.
34661         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
34662         declare if ACL_NO_TRIVIAL is present.
34663         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
34664         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
34665         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
34666         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
34667         define if ACL_NO_TRIVIAL is present.
34668         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
34669         and use the current ABI.
34670         (file_has_acl): Use same #if condition as elsewhere.
34671         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
34672         in use, and use the current ABI.
34673         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
34674         Reported by Jim Meyering.
34675
34676 2008-06-09  Eric Blake  <ebb9@byu.net>
34677
34678         Work around environments that (stupidly) ignore SIGALRM.
34679         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
34680         before using alarm().
34681         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34682         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
34683         Reported by Ian Beckwith <ianb@erislabs.net>.
34684
34685         Produce autobuild blurb earlier in log.
34686         * modules/autobuild (configure.ac-early): Move AB_INIT here.
34687
34688 2008-06-09  Jim Meyering  <meyering@redhat.com>
34689         and OndÅ™ej Vašík  <ovasik@redhat.com>
34690
34691         utimens.c: correct kernel bug work-around
34692         OndÅ™ej Vašík found that the invalid return value of 280 indicates
34693         failure, not success, and the kernel bug we're trying to work
34694         around affects not just the utimensat call, but also the fallback
34695         futimens call.
34696         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
34697         not success.
34698         [HAVE_FUTIMENS]: Use the same work-around, here.
34699
34700 2008-06-09  Jim Meyering  <meyering@redhat.com>
34701
34702         add more guards around definition of ACE_-related code
34703         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
34704         ALLOW and ACE_OWNER are also defined.
34705
34706 2008-06-08  Bruno Haible  <bruno@clisp.org>
34707
34708         * lib/acl-internal.h: Add me as co-author.
34709         * lib/file-has-acl.c: Likewise.
34710         * lib/set-mode-acl.c: Likewise.
34711         * lib/copy-acl.c: Likewise.
34712
34713 2008-06-08  Bruno Haible  <bruno@clisp.org>
34714
34715         Add support for AIX ACLs.
34716         * lib/acl-internal.h (acl_nontrivial): New declaration.
34717         * lib/file-has-acl.c (acl_nontrivial): New function.
34718         (file_has_acl): Add implementation using AIX 4 ACL API.
34719         * lib/set-mode-acl.c (qset_acl): Likewise.
34720         * lib/copy-acl.c (qcopy_acl): Likewise.
34721
34722 2008-06-08  Bruno Haible  <bruno@clisp.org>
34723
34724         Add support for HP-UX ACLs.
34725         * lib/acl-internal.h (acl_nontrivial): New declaration.
34726         * lib/file-has-acl.c (acl_nontrivial): New function.
34727         (file_has_acl): Add implementation using HP-UX 11 ACL API.
34728         * lib/set-mode-acl.c (qset_acl): Likewise.
34729         * lib/copy-acl.c (qcopy_acl): Likewise.
34730
34731 2008-06-08  Bruno Haible  <bruno@clisp.org>
34732
34733         Add support for Cygwin ACLs.
34734         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
34735         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
34736         the chmod_or_fchmod call.
34737         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
34738
34739 2008-06-08  Bruno Haible  <bruno@clisp.org>
34740
34741         Fix bug with setuid modes in Solaris 10+ code.
34742         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
34743         succeeded, when the mode contains some special bits.
34744
34745 2008-06-08  Bruno Haible  <bruno@clisp.org>
34746
34747         Add support for Solaris 7..10 ACLs.
34748         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
34749         declarations.
34750         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
34751         functions.
34752         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
34753         * lib/set-mode-acl.c (qset_acl): Likewise.
34754         * lib/copy-acl.c (qcopy_acl): Likewise.
34755
34756 2008-06-08  Bruno Haible  <bruno@clisp.org>
34757
34758         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
34759         declaration.
34760         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
34761         (acl_access_nontrivial): Remove MacOS X case.
34762         (file_has_acl): Use acl_extended_nontrivial.
34763         * lib/copy-acl.c (qcopy_acl): Likewise.
34764
34765 2008-06-08  Bruno Haible  <bruno@clisp.org>
34766
34767         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
34768
34769 2008-06-08  Jim Meyering  <meyering@redhat.com>
34770
34771         * modules/acl (Maintainer): Add Bruno Haible.
34772
34773 2008-06-07  Bruno Haible  <bruno@clisp.org>
34774
34775         Improve support for Tru64 ACLs.
34776         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
34777         ACL on OSF/1.
34778
34779 2008-06-07  Bruno Haible  <bruno@clisp.org>
34780
34781         Add support for MacOS X ACLs.
34782         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
34783         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
34784         * lib/set-mode-acl.c (qset_acl): Likewise.
34785         * lib/copy-acl.c (qcopy_acl): Likewise.
34786
34787 2008-06-07  Bruno Haible  <bruno@clisp.org>
34788
34789         Fix memory leak introduced on 2008-05-22.
34790         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
34791         use.
34792
34793 2008-06-07  Bruno Haible  <bruno@clisp.org>
34794
34795         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
34796         to construct an empty ACL.
34797
34798 2008-06-07  Bruno Haible  <bruno@clisp.org>
34799
34800         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
34801         precisely.
34802         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
34803
34804 2008-06-07  Bruno Haible  <bruno@clisp.org>
34805
34806         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
34807         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
34808
34809 2008-06-07  Bruno Haible  <bruno@clisp.org>
34810
34811         * doc/posix-functions/_setjmp.texi: Explain the use of this function
34812         regardless of POSIX.
34813         * doc/posix-functions/_longjmp.texi: Likewise.
34814         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
34815         SystemV platform in this case.
34816
34817 2008-06-06  Eric Blake  <ebb9@byu.net>
34818
34819         Document abort() bugs.
34820         * doc/posix-functions/abort.texi (abort): Mention anomalies.
34821
34822         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
34823         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
34824         sigsetjmp.
34825         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
34826         siglongjmp, but only as a macro.
34827         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
34828         is obsolete.
34829         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
34830
34831         Tweak documentation to cover cygwin argz bugs.
34832         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
34833         argz bug fix; no code change needed since no cygwin releases
34834         occurred between the last fix and the bug being tested.
34835         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
34836         module and recently fixed cygwin bugs.
34837         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
34838         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
34839         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
34840         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
34841         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
34842         Likewise.
34843         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
34844         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
34845         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
34846         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
34847         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
34848         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
34849         Likewise.
34850
34851         Avoid gcc warning on cygwin.
34852         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
34853         !ACL_NO_TRIVIAL]: Avoid unused variable.
34854
34855 2008-06-05  Eric Blake  <ebb9@byu.net>
34856
34857         Be tolerant of UNKNOWN version in gnulib-tool test dir.
34858         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
34859         git-version-gen fails to come up with a version.
34860         Reported by Simon Josefsson.
34861
34862 2008-06-05  Jim Meyering  <meyering@redhat.com>
34863             Paul Eggert  <eggert@cs.ucla.edu>
34864
34865         utimens.c: work around a probable Linux kernel bug
34866         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
34867         appears to be a kernel bug that causes utimensat to return 280
34868         instead of 0, indicating success.
34869
34870 2008-06-04  Bruno Haible  <bruno@clisp.org>
34871
34872         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
34873         2008-06-01 commit.
34874
34875 2008-06-04  Bruno Haible  <bruno@clisp.org>
34876
34877         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
34878         * lib/file-has-acl.c (acl_access_nontrivial): New function.
34879         (file_has_acl): Use it. Save errno afterwards.
34880         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
34881
34882 2008-06-03  Bruno Haible  <bruno@clisp.org>
34883
34884         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
34885         draft code. Simplify #ifs.
34886         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
34887         Put Solaris code after POSIX-draft code. Fix comments regarding
34888         Solaris 10, HP-UX. Mention Cygwin.
34889         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
34890
34891 2008-06-03  Eric Blake  <ebb9@byu.net>
34892
34893         Provide fallback for older kernels.
34894         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
34895         Provide runtime fallback if kernel lacks support.
34896         Reported by Mike Frysinger.
34897
34898 2008-06-02  Bruno Haible  <bruno@clisp.org>
34899
34900         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
34901         it exists.
34902
34903 2008-06-02  Bruno Haible  <bruno@clisp.org>
34904
34905         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
34906         * lib/copy-acl.c (qcopy_acl): Update comment.
34907
34908 2008-06-02  Bruno Haible  <bruno@clisp.org>
34909
34910         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
34911         like ACL APIs.
34912
34913 2008-06-02  Bruno Haible  <bruno@clisp.org>
34914
34915         * tests/test-file-has-acl.sh: Use different code for Cygwin.
34916         * tests/test-set-mode-acl.sh: Likewise.
34917         * tests/test-copy-acl.sh: Likewise.
34918         * tests/test-copy-file.sh: Likewise.
34919
34920 2008-06-02  Bruno Haible  <bruno@clisp.org>
34921
34922         * tests/test-file-has-acl.sh: Remove unused code.
34923
34924 2008-06-01  Bruno Haible  <bruno@clisp.org>
34925
34926         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
34927         (copy_acl): Just a wrapper around qcopy_acl that emits the error
34928         messages.
34929         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
34930
34931 2008-06-01  Bruno Haible  <bruno@clisp.org>
34932
34933         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
34934         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
34935         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
34936         APIs.
34937         * modules/acl-tests (configure.ac): Remove tests now contained in
34938         m4/acl.m4.
34939
34940 2008-06-02  Jim Meyering  <meyering@redhat.com>
34941
34942         announce-gen: use a better key-server host name
34943         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
34944         it may be more consistently reliable.  Suggested by Werner Koch
34945         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
34946
34947 2008-06-01  Bruno Haible  <bruno@clisp.org>
34948
34949         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
34950         Reported by Voroskoi Andras <voroskoi@gmail.com>.
34951
34952 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
34953
34954         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
34955
34956 2008-06-01  Bruno Haible  <bruno@clisp.org>
34957
34958         New ACL tests.
34959         * tests/test-file-has-acl.sh: New file.
34960         * tests/test-file-has-acl.c: New file.
34961         * tests/test-set-mode-acl.sh: New file.
34962         * tests/test-set-mode-acl.c: New file.
34963         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
34964         * tests/test-copy-acl.c: New file.
34965         * modules/acl-tests: New file, based on modules/copy-file-tests.
34966         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
34967         (Depends-on): Add acl-tests.
34968         (configure.ac): Remove checks.
34969         (Makefile.am): Don't create test-sameacls program here any more.
34970
34971 2008-06-01  Bruno Haible  <bruno@clisp.org>
34972
34973         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
34974         * tests/test-sameacls.c: Include progname.h.
34975         (main): Invoke set_program_name. Portability fixes for MacOS X,
34976         Solaris, HP-UX.
34977
34978 2008-06-01  Bruno Haible  <bruno@clisp.org>
34979
34980         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
34981         function.
34982         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
34983
34984 2008-06-01  Bruno Haible  <bruno@clisp.org>
34985
34986         * modules/rpmatch (Depends-on): Add strdup.
34987
34988 2008-06-01  Bruno Haible  <bruno@clisp.org>
34989
34990         * lib/pipe.c: Include unistd-safer.h.
34991         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
34992         * modules/pipe (Depends-on): Add unistd-safer.
34993
34994 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34995
34996         * modules/autobuild (configure.ac): Call AB_INIT.
34997
34998 2008-05-30  Simon Josefsson  <simon@josefsson.org>
34999
35000         * tests/test-getaddrinfo.c: Don't print debug messages by default.
35001         Suggested by Bruno Haible <bruno@clisp.org>.
35002
35003 2008-05-30  Simon Josefsson  <simon@josefsson.org>
35004
35005         * tests/test-base64.c: Cast size_t to unsigned long when invoking
35006         printf.  Use %lu instead of %d.  Reported by Bruno Haible
35007         <bruno@clisp.org>.
35008
35009 2008-05-29  Eric Blake  <ebb9@byu.net>
35010
35011         Prefer new POSIX 200x interfaces over futimesat.
35012         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
35013         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
35014         when available.
35015         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
35016
35017 2008-05-28  Bruno Haible  <bruno@clisp.org>
35018
35019         * modules/stpcpy (License): Change to LGPLv2+.
35020         Requested by David Lutterkort <dlutter@redhat.com>.
35021
35022 2008-05-27  Bruno Haible  <bruno@clisp.org>
35023
35024         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
35025         current mingw.
35026         Reported by Jose E. Marchesi <jemarch@gnu.org>.
35027
35028 2008-05-27  Bruno Haible  <bruno@clisp.org>
35029
35030         * modules/iconv_open (Link): New section, from module 'iconv'.
35031         * modules/striconv (Link): Likewise.
35032         * modules/striconveh (Link): Likewise.
35033         * modules/xstriconv (Link): Likewise.
35034         * modules/unicodeio (Link): Likewise.
35035         * modules/propername (Link): Likewise.
35036         Reported by Jim Meyering.
35037
35038 2008-05-26  Jim Meyering  <meyering@redhat.com>
35039
35040         sha256: do not artificially restrict buffer length to be < 2^32
35041         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
35042         uint32_t to size_t.
35043         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
35044         to match.
35045
35046         avoid unaligned access errors, e.g., on sparc
35047         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
35048         direct access through a possibly-unaligned uint64* pointer.
35049         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
35050         direct access through a possibly-unaligned uint32* pointer.
35051         Prompted by this patch from Tom "spot" Callaway:
35052         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
35053
35054         sha512.c: fix typo in comment
35055         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
35056
35057 2008-05-25  Bruno Haible  <bruno@clisp.org>
35058
35059         * lib/set-mode-acl.c: Renamed from lib/acl.c.
35060         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
35061         (Makefile.am): Update lib_SOURCES.
35062
35063 2008-05-25  Bruno Haible  <bruno@clisp.org>
35064
35065         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
35066
35067 2008-05-25  Jim Meyering  <meyering@redhat.com>
35068
35069         useless-if-before-free: freed expr may have white-space differences
35070         * build-aux/useless-if-before-free: Recognize cases in which the
35071         freed expression differs from the tested one in embedded white
35072         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
35073         $1 was used, so we can't make any regexp shy.  Improved tests now
35074         detect this.
35075
35076         useless-if-before-free: accept white space in the expression.
35077         * build-aux/useless-if-before-free: For now, any white space
35078         in the expression must be identical in the free argument.
35079
35080         useless-if-before-free: efficiency tweak
35081         * build-aux/useless-if-before-free: Make the expression-matching
35082         regexp "shy".
35083         Make the *outer* regexp shy, not the expr-matching one.
35084
35085         update code-in-comment to accept cast of free arg
35086         * build-aux/useless-if-before-free: Update regexp.
35087
35088 2008-05-25  Bruno Haible  <bruno@clisp.org>
35089
35090         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
35091         * modules/copy-file-tests (Files, Makefile.am): Update.
35092         * tests/test-copy-file.c (func_test_copy): Update.
35093
35094 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
35095
35096         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
35097
35098 2008-05-23  Bruno Haible  <bruno@clisp.org>
35099
35100         Improve support for ACLs on OSF/1.
35101         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
35102         Remove fallback for unknown flavors of ACLs.
35103
35104 2008-05-22  Bruno Haible  <bruno@clisp.org>
35105
35106         Add support for ACLs on OSF/1.
35107         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
35108         replacements.
35109         (acl_free_text): New macro fallback.
35110         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
35111         acl_free.
35112         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
35113         acl_free_text function. Require AC_C_INLINE.
35114
35115 2008-05-22  Bruno Haible  <bruno@clisp.org>
35116
35117         Make copy_acl work on MacOS X 10.5.
35118         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
35119         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
35120         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
35121         If MODE_INSIDE_ACL, don't assume that every system has the same text
35122         representation for ACLs as FreeBSD.
35123         * lib/copy-acl.c (copy_acl): Add support for platforms with
35124         !MODE_INSIDE_ACL.
35125         * lib/file-has-acl.c (file_has_acl): Likewise.
35126         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
35127         FreeBSD, MacOS X, or IRIX, respectively.
35128
35129 2008-05-22  Bruno Haible  <bruno@clisp.org>
35130
35131         * lib/acl.h: Don't include <sys/acl.h>.
35132         (GETACLCNT): Move fallback to lib/acl-internal.h.
35133         * lib/acl-internal.h: Include <sys/acl.h> here.
35134         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
35135
35136 2008-05-22  Bruno Haible  <bruno@clisp.org>
35137
35138         Split off copy_acl function to separate file.
35139         * lib/copy-acl.c: New file, extracted from lib/acl.c.
35140         * lib/acl.c (copy_acl): Moved function to separate file.
35141         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
35142         * modules/acl (Files): Add lib/copy-acl.c.
35143         (Makefiles.am): Augment lib_SOURCES.
35144
35145 2008-05-22  Bruno Haible  <bruno@clisp.org>
35146
35147         * modules/copy-file-tests: New file.
35148         * tests/test-copy-file.sh: New file.
35149         * tests/test-copy-file.c: New file.
35150         * tests/test-copy-file-sameacls.c: New file.
35151
35152 2008-05-22  Eric Blake  <ebb9@byu.net>
35153
35154         Avoid gcc warning.
35155         * tests/test-memcmp.c (main): Pass NULL indirectly.
35156
35157 2008-05-21  Bruno Haible  <bruno@clisp.org>
35158
35159         Add reference doc about ACLs.
35160         * doc/acl-resources.txt: New file.
35161         * doc/acl-cygwin.txt: New file.
35162
35163 2008-05-21  Bruno Haible  <bruno@clisp.org>
35164
35165         Avoid one more warning from gcc.
35166         * lib/vasnprintf.c (IF_LINT): Update comments.
35167         (VASNPRINTF): Use it also for the 'prefix' array initializer.
35168
35169 2008-05-21  Jim Meyering  <meyering@redhat.com>
35170
35171         avoid a warning from gcc
35172         * lib/vasnprintf.c (IF_LINT): Define.
35173         (scale10_round_decimal_long_double):
35174         Use it to avoid a "may be used uninitialized" warning.
35175         (scale10_round_decimal_double): Likewise.
35176
35177 2008-05-21  Simon Josefsson  <simon@josefsson.org>
35178
35179         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
35180         declared.
35181
35182 2008-05-20  Bruno Haible  <bruno@clisp.org>
35183
35184         * tests/test-memcmp.c (main): Test also the sign of the result. Test
35185         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
35186
35187 2008-05-20  Simon Josefsson  <simon@josefsson.org>
35188
35189         * modules/memcmp-tests: New file.
35190         * tests/test-memcmp.c: New file.
35191
35192 2008-05-19  Bruno Haible  <bruno@clisp.org>
35193
35194         * modules/propername (Notice, configure.ac): Put quoted "..." into
35195         --keyword option.
35196         * lib/propername.h: Update comments accordingly.
35197         Reported by Eric Blake.
35198
35199 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
35200
35201         * modules/getpass-gnu (Depends-on): Add fseeko.
35202
35203 2008-05-19  Simon Josefsson  <simon@josefsson.org>
35204
35205         * modules/base64-tests: New file.
35206
35207 2008-05-19  Bo Borgerson <gigabo@gmail.com>
35208
35209         * lib/base64.c (base64_decode_ctx): If a decode context structure
35210         was passed in use it to ignore newlines.  If a context structure
35211         was _not_ passed in, continue to treat newlines as garbage (this
35212         is the historical behavior).  Formerly base64_decode.
35213         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
35214         takes a decode context structure.
35215         * lib/base64.h (base64_decode): Macro for four-argument calls.
35216         (base64_decode_alloc): Likewise.
35217         * lib/base64.c (base64_decode_ctx): If a decode context structure
35218         was passed in use it to ignore newlines.  If a context structure
35219         was _not_ passed in, continue to treat newlines as garbage (this
35220         is the historical behavior).  Formerly base64_decode.
35221         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
35222         takes a decode context structure.
35223         * lib/base64.h (base64_decode): Macro for four-argument calls.
35224         (base64_decode_alloc): Likewise.
35225
35226 2008-05-19  Jim Meyering  <meyering@redhat.com>
35227
35228         avoid a warning from gcc
35229         * lib/trim.c (IF_LINT): Define.
35230         (trim2): Use it to avoid a "may be used uninitialized" warning.
35231
35232         Fix doc typo.
35233         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
35234
35235 2008-05-19  Bruno Haible  <bruno@clisp.org>
35236
35237         * doc/glibc-functions/getpass.texi: Document limits of other
35238         implementations.
35239
35240 2008-05-19  Simon Josefsson  <simon@josefsson.org>
35241             Bruno Haible <bruno@clisp.org>
35242
35243         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
35244
35245 2008-05-18  Bruno Haible  <bruno@clisp.org>
35246
35247         * modules/propername: New file, from GNU gettext.
35248         * lib/propername.h: New file, from GNU gettext.
35249         * lib/propername.c: New file, from GNU gettext.
35250         * MODULES.html.sh (Internationalization functions): Add propername.
35251
35252 2008-05-16  Jim Meyering  <meyering@redhat.com>
35253             Bruno Haible  <bruno@clisp.org>
35254
35255         Avoid some warnings from "gcc -Wshadow".
35256         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
35257
35258 2008-05-15  Eric Blake  <ebb9@byu.net>
35259
35260         Extend previous patch to cygwin 1.7.0.
35261         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
35262         fast implementation in cygwin >= 1.7.0.
35263         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35264         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35265
35266 2008-05-15  Bruno Haible  <bruno@clisp.org>
35267
35268         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
35269         implementation in glibc >= 2.9.
35270         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35271         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35272
35273 2008-05-15  Bruno Haible  <bruno@clisp.org>
35274
35275         * MODULES.html.sh (Internationalization functions): Remove linebreak.
35276         (Unicode string functions): Add unilbrk/*.
35277         Reported by Karl Berry.
35278
35279 2008-05-15  Eric Blake  <ebb9@byu.net>
35280
35281         Fix violation of <stdbool.h> replacement in regex.
35282         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
35283         * lib/regexec.c (re_search_internal): Likewise.
35284         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
35285
35286 2008-05-15  Jim Meyering  <meyering@redhat.com>
35287
35288         avoid distracting test output when git or cvs is not found
35289         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
35290         * tests/test-vc-list-files-git.sh: Likewise.
35291
35292 2008-05-15  Eric Blake  <ebb9@byu.net>
35293
35294         Glibc finally accepted the memmem speedup code, bugzilla #5514.
35295         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
35296         glibc version.
35297         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35298         * doc/posix-functions/strstr.texi (strstr): Likewise.
35299         * lib/str-two-way.h (MAX): Sychronize with glibc.
35300
35301 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
35302
35303         * lib/regcomp.c (optimize_utf8): Add a note on why we test
35304         opr.ctx_type.
35305         (calc_first): Initialize constraint field.
35306         (duplicate_node_closure): Use it instead of special casing ANCHORS.
35307         Fix grammar.
35308         (duplicate_node): Merge constraint field for all node types.
35309         (calc_eclosure_iter): Look at constraint field for all node types.
35310         * lib/regex_internal.c (create_cd_newstate): Don't look at
35311         opr.ctx_type.
35312
35313 2008-05-14  Bruno Haible  <bruno@clisp.org>
35314
35315         Help GCC to do better code generation.
35316         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
35317         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
35318         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
35319         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
35320         Declare with attribute 'malloc' if supported.
35321
35322 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
35323
35324         use "echo STR|wc -c" rather than unportable "expr length STR"
35325         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
35326         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
35327
35328 2008-05-14  Jim Meyering  <meyering@redhat.com>
35329
35330         use dd ibs=$n count=1 ... rather than less-portable head -c$n
35331         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
35332         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
35333         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
35334         via Collin Lasse.
35335
35336 2008-05-14  Eric Blake  <ebb9@byu.net>
35337
35338         Avoid quadratic growth in gl_LIBSOURCES.
35339         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
35340         Suggested by Bruno Haible.
35341
35342         Test xmemdup0.
35343         * modules/xmemdup0-tests: New file.
35344         * tests/test-xmemdup0.c: Likewise.
35345
35346 2008-05-13  Eric Blake  <ebb9@byu.net>
35347
35348         Split xmemdup0 into its own module.
35349         * modules/xmemdup0: New file.
35350         * lib/xmemdup0.h: Likewise.
35351         * lib/xmemdup0.c: Likewise.
35352         * MODULES.html.sh (Memory management functions): Add xmemdup0.
35353         * lib/xalloc.h (xmemdup0): Remove.
35354         * lib/xmalloc.c (xmemdup0): Likewise.
35355
35356 2008-05-13  Eric Blake  <ebb9@byu.net>
35357             Bruno Haible  <bruno@clisp.org>
35358
35359         Reduce number of forks required during autoconf.
35360         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
35361         and gl_LIBSOURCES_DIR.
35362         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
35363         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
35364         m4_syscmd per file.
35365         <m4_foreach_w>: Move...
35366         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
35367
35368 2008-05-13  Eric Blake  <ebb9@byu.net>
35369
35370         * gnulib-tool: Fix various comment typos.
35371
35372 2008-05-12  Bruno Haible  <bruno@clisp.org>
35373
35374         Tailor the linebreaking algorithm.
35375         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
35376
35377 2008-05-12  Bruno Haible  <bruno@clisp.org>
35378
35379         Update to Unicode 5.0.0.
35380         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
35381         LBP_JV, LBP_JT. Redistribute values.
35382         (unilbrk_table): Change size.
35383         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
35384         Unicode TR#14 rev. 22.
35385         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
35386         LBP_JV, LBP_JT. Redistribute values.
35387         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
35388         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
35389         Update.
35390         * lib/unilbrk/lbrkprop1.h: Regenerated.
35391         * lib/unilbrk/lbrkprop2.h: Regenerated.
35392         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
35393         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
35394         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
35395         Likewise.
35396         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
35397         Likewise.
35398         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
35399         result.
35400         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
35401         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
35402         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
35403         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
35404         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
35405         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
35406
35407 2008-05-11  Bruno Haible  <bruno@clisp.org>
35408
35409         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
35410
35411 2008-05-11  Bruno Haible  <bruno@clisp.org>
35412
35413         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
35414         * modules/unilbrk/gen-lbrk: New file.
35415
35416 2008-05-11  Bruno Haible  <bruno@clisp.org>
35417
35418         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
35419         * m4/sha512.m4 (gl_SHA512): Likewise.
35420
35421 2008-05-11  Jim Meyering  <meyering@redhat.com>
35422
35423         New modules: crypto/sha256, crypto/sha512 (from coreutils)
35424         * modules/crypto/sha256: New file.
35425         * modules/crypto/sha512: Likewise.
35426         * lib/sha256.c: Likewise.
35427         * lib/sha256.h: Likewise.
35428         * lib/sha512.c: Likewise.
35429         * lib/sha512.h: Likewise.
35430         * lib/u64.h: Likewise.
35431         * m4/sha256.m4: Likewise.
35432         * m4/sha512.m4: Likewise.
35433         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
35434
35435 2008-05-10  Bruno Haible  <bruno@clisp.org>
35436
35437         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
35438         (Input/Output <stdio.h>): Add xprintf.
35439         (Signal handling <signal.h>): Add strsignal.
35440         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
35441         (Core language properties): Add func.
35442         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
35443         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
35444         strings.
35445         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
35446         (Input/output): New section.
35447         (File system functions): Add openat-die, stat-macros.
35448         (Networking functions): Add sockets.
35449         (Unicode string functions): Add unictype/*.
35450         (Support for building libraries and executables): Add gperf.
35451         (Support for building documentation): Add agpl-3.0.
35452         (Misc): Add nocrash.
35453
35454 2008-05-10  Bruno Haible  <bruno@clisp.org>
35455
35456         * modules/unictype/gen-ctype: New file.
35457
35458 2008-05-10  Jim Meyering  <meyering@redhat.com>
35459
35460         Make chdir-safer.c more efficient on a system with no symlinks.
35461         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
35462         also if ELOOP is zero.  Suggested by Bruno Haible.
35463
35464         Make chdir-safer.c slightly safer.
35465         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
35466         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
35467
35468         Avoid compile failure on systems without ELOOP (like mingw).
35469         * lib/chdir-safer.c (ELOOP): Define if not already defined.
35470         Reported by Bruno Haible.
35471
35472 2008-05-10  Bruno Haible  <bruno@clisp.org>
35473
35474         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
35475         (is_utf8_encoding): Use a case-insensitive comparison.
35476         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
35477         streq.
35478
35479 2008-05-10  Bruno Haible  <bruno@clisp.org>
35480
35481         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
35482         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
35483         * lib/unilbrk/ulc-common.h (iconv_string_length,
35484         iconv_string_keeping_offsets): Remove declarations.
35485         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
35486         Don't include <iconv.h>, streq.h, xsize.h.
35487         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
35488         conversion.
35489         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
35490         <iconv.h>, streq.h, xsize.h.
35491         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
35492         conversion.
35493         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
35494         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
35495         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
35496         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
35497
35498 2008-05-10  Bruno Haible  <bruno@clisp.org>
35499
35500         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
35501         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
35502
35503         * modules/unilbrk/u32-width-linebreaks-tests: New file.
35504         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
35505
35506         * modules/unilbrk/u16-width-linebreaks-tests: New file.
35507         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
35508
35509         * modules/unilbrk/u8-width-linebreaks-tests: New file.
35510         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
35511
35512         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
35513         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
35514
35515         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
35516         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
35517
35518         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
35519         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
35520
35521         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
35522         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
35523
35524 2008-05-10  Bruno Haible  <bruno@clisp.org>
35525
35526         Split up 'linebreak' module.
35527         * lib/unilbrk.h: New file, based on lib/linebreak.h.
35528         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
35529         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
35530         modifications.
35531         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
35532         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
35533         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
35534         lib/linebreak.c.
35535         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
35536         lib/linebreak.c.
35537         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
35538         lib/linebreak.c.
35539         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
35540         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
35541         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
35542         lib/linebreak.c.
35543         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
35544         lib/linebreak.c.
35545         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
35546         lib/linebreak.c.
35547         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
35548         lib/linebreak.c.
35549         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
35550         lib/linebreak.c.
35551         * modules/unilbrk/base: New file.
35552         * modules/unilbrk/tables: New file.
35553         * modules/unilbrk/u8-possible-linebreaks: New file.
35554         * modules/unilbrk/u16-possible-linebreaks: New file.
35555         * modules/unilbrk/u32-possible-linebreaks: New file.
35556         * modules/unilbrk/ulc-common: New file.
35557         * modules/unilbrk/ulc-possible-linebreaks: New file.
35558         * modules/unilbrk/u8-width-linebreaks: New file.
35559         * modules/unilbrk/u16-width-linebreaks: New file.
35560         * modules/unilbrk/u32-width-linebreaks: New file.
35561         * modules/unilbrk/ulc-width-linebreaks: New file.
35562         * lib/linebreak.h: Remove file.
35563         * lib/linebreak.c: Remove file.
35564         * m4/linebreak.m4: Remove file.
35565         * modules/linebreak: Remove file.
35566         * NEWS: Mention the changes.
35567
35568 2008-05-09  Eric Blake  <ebb9@byu.net>
35569
35570         Add xmemdup0.
35571         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
35572         implementation.
35573         * lib/xmalloc.c (xmemdup0): New C implementation.
35574
35575 2008-05-08  Bruno Haible  <bruno@clisp.org>
35576
35577         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
35578
35579 2008-05-07  Eric Blake  <ebb9@byu.net>
35580
35581         Support cross-compilation of <wctype.h>.
35582         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
35583         AC_CACHE_CHECK.
35584
35585 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
35586
35587         * build-aux/vc-list-files: Add support for bzr.
35588
35589 2008-05-03  Jim Meyering  <meyering@redhat.com>
35590
35591         avoid failed assertion with tight malloc
35592         * tests/test-getndelim2.c: Correct an off-by-one assertion.
35593
35594 2008-05-03  Simon Josefsson  <simon@josefsson.org>
35595
35596         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
35597         are needed from arpa/inet.h.
35598         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
35599         Reported by Bruno Haible.
35600
35601 2008-05-02  Jim Meyering  <meyering@redhat.com>
35602
35603         avoid compilation error on FreeBSD 6
35604         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
35605
35606 2008-05-01  Jim Meyering  <meyering@redhat.com>
35607
35608         useless-if-before-free: correct --help's exit status description
35609         * build-aux/useless-if-before-free (usage): Like grep, exit 0
35610         for one or more matches, etc.  Reported by Bruno Haible.
35611
35612         vc-list-files: make the stand-alone gnulib test work
35613         * modules/vc-list-files-tests (configure.ac):
35614         Define and AC_SUBST abs_aux_dir.
35615         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
35616         $(abs_top_srcdir) to each script and having each of them
35617         duplicate the work of setting PATH, set PATH here, using
35618         the new variable, abs_aux_dir instead.
35619         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
35620         * tests/test-vc-list-files-git.sh: Likewise.
35621         Reported by Bruno Haible.
35622
35623 2008-05-01  Bruno Haible  <bruno@clisp.org>
35624
35625         * lib/getndelim2.c (getndelim2): Fix newsize computation during
35626         reallocation. Rename 'done' to 'found_delimiter'.
35627
35628 2008-05-01  Jim Meyering  <meyering@redhat.com>
35629
35630         vc-list-files: accommodate /bin/sh like the one from Solaris 10
35631         * build-aux/vc-list-files: Use `...`, not $(...).
35632
35633 2008-04-30  Jim Meyering  <meyering@redhat.com>
35634
35635         add tests for vc-list-files
35636         * modules/vc-list-files-tests: New module.
35637         * tests/test-vc-list-files-cvs.sh: New file.
35638         * tests/test-vc-list-files-git.sh: New file.
35639
35640         avoid a warning from gcc
35641         * lib/getndelim2.c (IF_LINT): Define.
35642         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
35643
35644         vc-list-files: work properly with build-aux/cvsu, too
35645         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
35646         to all cvs-based clauses.
35647
35648         vc-list-files: work properly in the CVS+awk case, too
35649         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
35650
35651         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
35652         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
35653         take more than one file argument, so .  Add quotes, just in case $dir
35654         ever contains a shell meta-character.  Prompted by Soren Hansen in
35655         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
35656
35657 2008-04-29  Eric Blake  <ebb9@byu.net>
35658
35659         Optimize getndelim2 to use block operations when possible.
35660         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
35661         freadseek, and memchr2.
35662         * lib/getndelim2.c (getndelim2): Use them for block reads.
35663
35664 2008-04-29  Bruno Haible  <bruno@clisp.org>
35665
35666         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
35667         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35668         * modules/inet_ntop (Depends-on): Add extensions.
35669         * modules/inet_pton (Depends-on): Likewise.
35670         Reported by Simon Josefsson.
35671
35672 2008-04-29  Jim Meyering  <meyering@redhat.com>
35673
35674         When the is more than one match in a block, match all of them.
35675         * build-aux/useless-if-before-free: Iterate through each block
35676         until there are no more matches.
35677
35678         Fix broken useless-if-before-free script.
35679         * build-aux/useless-if-before-free: Fix typo: missing "?" after
35680         the expression to match cast of argument to free-like function.
35681
35682 2008-04-29  Eric Blake  <ebb9@byu.net>
35683
35684         Use new header.
35685         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
35686
35687 2008-04-29  Jim Meyering  <meyering@redhat.com>
35688
35689         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
35690         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
35691         by gnulib to exist and to declare e.g., inet_ntop.
35692         Don't include "inet_ntop.h", now removed.
35693
35694         * m4/arpa_inet_h.m4: Remove trailing blanks.
35695
35696 2008-04-29  Eric Blake  <ebb9@byu.net>
35697
35698         Silence valgrind on safe reads beyond potential array bounds.
35699         * lib/rawmemchr.valgrind: New file.
35700         * lib/strchrnul.valgrind: Likewise.
35701         * modules/rawmemchr (Files): Distribute new file.
35702         * modules/strchrnul (Files): Likewise.
35703         Suggested by Bruno Haible.
35704
35705 2008-04-29  Bruno Haible  <bruno@clisp.org>
35706
35707         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
35708         (inet_ntop, inet_pton): Change portability warning's wording.
35709         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
35710         Invoke gl_CHECK_NEXT_HEADERS.
35711         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
35712         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
35713         set ARPA_INET_H.
35714         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35715         * modules/arpa_inet (Description): No longer only for systems that
35716         lack it.
35717         (Depends-on): Add include_next.
35718         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
35719         HAVE_ARPA_INET_H.
35720
35721 2008-04-29  Jim Meyering  <meyering@redhat.com>
35722
35723         * modules/mkdir (License): Re-license as LGPLv2+.
35724
35725 2008-04-29  Bruno Haible  <bruno@clisp.org>
35726
35727         * modules/rawmemchr (Maintainer): Set to Eric.
35728         * modules/strchrnul (Maintainer): Likewise.
35729
35730 2008-04-29  Simon Josefsson  <simon@josefsson.org>
35731
35732         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
35733         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
35734
35735         * modules/arpa_inet (arpa/inet.h): Use them.
35736
35737 2008-04-28  Eric Blake  <ebb9@byu.net>
35738
35739         Test getndelim2.
35740         * modules/getndelim2-tests: New file.
35741         * tests/test-getndelim2.c: Likewise.
35742         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
35743         stream.
35744         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
35745
35746         * MODULES.html.sh: Document new module.
35747
35748 2008-04-20  Bruno Haible  <bruno@clisp.org>
35749
35750         * lib/c-stack.c (die): Use raise.
35751         * modules/c-stack (Depends-on): Add raise.
35752
35753 2008-04-28  Bruno Haible  <bruno@clisp.org>
35754
35755         Expect rpmatch to be declared.
35756         * lib/yesno.c (rpmatch): Remove declaration.
35757
35758         Declare rpmatch.
35759         * lib/stdlib.in.h (rpmatch): New declaration.
35760         * lib/rpmatch.c: Include <stdlib.h> first.
35761         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
35762         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
35763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
35764         HAVE_RPMATCH.
35765         * modules/rpmatch (Depends-on): Add stdlib, extensions.
35766         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35767         (Include): Set to <stdlib.h>.
35768         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
35769         HAVE_RPMATCH.
35770         * NEWS: Document the change.
35771
35772 2008-04-28  Bruno Haible  <bruno@clisp.org>
35773
35774         Change rpmatch to use nl_langinfo when appropriate.
35775         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
35776         (N_): New macro.
35777         (localized_pattern): New function/macro.
35778         (try): Remove match, nomatch arguments. Copy the pattern into safe
35779         memory before caching it.
35780         (rpmatch): Use localized_pattern. Add translator comments.
35781         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
35782         Suggested by Eric Blake.
35783         * modules/rpmatch (Depends-on): Add stdbool.
35784
35785 2008-04-28  Eric Blake  <ebb9@byu.net>
35786
35787         Add rawmemchr module, matching glibc.
35788         * modules/string (Makefile.am): New indicator.
35789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
35790         * lib/string.in.h (rawmemchr): Declare when appropriate.
35791         * modules/rawmemchr: New file.
35792         * m4/rawmemchr.m4: Likewise.
35793         * lib/rawmemchr.c: Likewise.
35794         * modules/rawmemchr-tests: Likewise.
35795         * tests/test-rawmemchr.c: Likewise.
35796         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
35797         module.
35798         * modules/strchrnul (Depends-on): Add rawmemchr.
35799         * lib/strchrnul.c (strchrnul): Optimize a corner case.
35800
35801         Whitespace cleanup.
35802         * tests/test-strchrnul.c: Reindent.
35803         * lib/strchrnul.c: Likewise.
35804
35805         Optimize and test strchrnul.
35806         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
35807         * modules/strchrnul-tests: New file.
35808         * tests/test-strchrnul.c: Likewise.
35809
35810         Remove intprops dependency.
35811         * modules/memchr (Depends-on): Remove intprops.
35812         * modules/memrchr (Depends-on): Likewise.
35813         * modules/memchr2 (Depends-on): Likewise.
35814         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
35815         * lib/memrchr.c (__memrchr): Likewise.
35816         * lib/memrchr2.c (memchr2): Likewise.
35817         Reported by Simon Josefsson.
35818
35819 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35820
35821         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
35822         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35823
35824 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35825
35826         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
35827
35828         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
35829
35830         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
35831
35832         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
35833         declarations.
35834         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
35835
35836         * m4/inet_pton.m4: Don't check for header files.
35837
35838         * m4/inet_ntop.m4: Don't check for header files.
35839
35840 2008-04-28  Simon Josefsson  <simon@josefsson.org>
35841
35842         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
35843         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
35844         trigger for cygwin).
35845         Reported by Bruno Haible  <bruno@clisp.org>.
35846
35847 2008-04-28  Bruno Haible  <bruno@clisp.org>
35848
35849         * doc/posix-functions/strdup.texi: Mention mingw problem.
35850
35851 2008-04-27  Bruno Haible  <bruno@clisp.org>
35852
35853         * modules/stat-time-tests (Depends-on): Add sleep.
35854         * tests/test-stat-time.c (force_unlink): New function.
35855         (cleanup): Use it.
35856         (test_mtime): Remove the ctime related tests.
35857         (test_ctime): New function, containing the ctime related tests.
35858         (main): Call test_ctime, except on native Windows platforms.
35859
35860 2008-04-27  Bruno Haible  <bruno@clisp.org>
35861
35862         * lib/rpmatch.c (rpmatch): Add some comments.
35863         Reported by James Youngman <jay@gnu.org>.
35864
35865 2008-04-27  Bruno Haible  <bruno@clisp.org>
35866
35867         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
35868         quiet NaNs.
35869
35870 2008-04-27  Bruno Haible  <bruno@clisp.org>
35871
35872         Make test-yesno.sh work on mingw.
35873         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
35874         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
35875         (main): Set stdin to binary mode.
35876         * modules/yesno-tests (Depends-on): Add binary-io.
35877
35878 2008-04-27  Bruno Haible  <bruno@clisp.org>
35879
35880         Fix 'isfinite' on x86, x86_64, ia64 platforms.
35881         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
35882         argument that lie outside the IEEE 854 domain.
35883         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
35884         (gl_ISFINITE): Use it.
35885         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
35886
35887 2008-04-27  Bruno Haible  <bruno@clisp.org>
35888
35889         Allow local renaming in config.h.
35890         * lib/memrchr.c (memrchr): Don't undefine outside libc.
35891
35892 2008-04-27  Bruno Haible  <bruno@clisp.org>
35893
35894         * lib/memchr.c (__memchr): Change type of 'i'.
35895         * lib/memchr2.c (memchr2): Likewise.
35896
35897 2008-04-26  Eric Blake  <ebb9@byu.net>
35898         and Bruno Haible  <bruno@clisp.org>
35899
35900         Optimize and test memrchr.
35901         * modules/memrchr (Depends-on): Add intprops.
35902         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
35903         * modules/memrchr-tests: New file.
35904         * tests/test-memrchr.c: New file.
35905
35906 2008-04-26  Bruno Haible  <bruno@clisp.org>
35907
35908         Add tentative support for DragonFly BSD.
35909         * lib/stdio-impl.h: Add macros for DragonFly BSD.
35910         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
35911         fp.
35912         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35913         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
35914         * lib/fpurge.c (fpurge): Likewise.
35915         * lib/freadable.c (freaadable): Likewise.
35916         * lib/freadahead.c (freadahead): Likewise.
35917         * lib/freading.c (freading): Likewise.
35918         * lib/freadptr.c (freadptr): Likewise.
35919         * lib/freadseek.c (freadptrinc): Likewise.
35920         * lib/fseeko.c (fseeko): Likewise.
35921         * lib/fseterr.c (fseterr): Likewise.
35922         * lib/fwritable.c (fwritable): Likewise.
35923         * lib/fwriting.c (fwriting): Likewise.
35924
35925 2008-04-26  Bruno Haible  <bruno@clisp.org>
35926
35927         * lib/stdio-impl.h: New file.
35928         * lib/fbufmode.c: Include stdio-impl.h.
35929         (fbufmode): Use fp_, remove redundant #defines.
35930         * lib/fflush.c: Include stdio-impl.h.
35931         (clear_ungetc_buffer): Remove redundant #defines.
35932         * lib/fpurge.c: Include stdio-impl.h.
35933         (fpurge): Remove redundant #defines.
35934         * lib/freadable.c: Include stdio-impl.h.
35935         (freadable): Remove redundant #defines.
35936         * lib/freadahead.c: Include stdio-impl.h.
35937         (freadahead): Remove redundant #defines.
35938         * lib/freading.c: Include stdio-impl.h.
35939         (freading): Remove redundant #defines.
35940         * lib/freadptr.c: Include stdio-impl.h.
35941         (freadptr): Remove redundant #defines.
35942         * lib/freadseek.c: Include stdio-impl.h.
35943         (freadptrinc): Remove redundant #defines.
35944         * lib/fseeko.c: Include stdio-impl.h.
35945         (rpl_fseeko): Remove redundant #defines.
35946         * lib/fseterr.c: Include stdio-impl.h.
35947         (fseterr): Remove redundant #defines.
35948         * lib/fwritable.c: Include stdio-impl.h.
35949         (fwritable: Remove redundant #defines.
35950         * lib/fwriting.c: Include stdio-impl.h.
35951         (fwriting): Remove redundant #defines.
35952         * modules/fbufmode (Files): Add lib/stdio-impl.h.
35953         * modules/fflush (Files): Likewise.
35954         * modules/fpurge (Files): Likewise.
35955         * modules/freadable (Files): Likewise.
35956         * modules/freadahead (Files): Likewise.
35957         * modules/freading (Files): Likewise.
35958         * modules/freadptr (Files): Likewise.
35959         * modules/freadseek (Files): Likewise.
35960         * modules/fseeko (Files): Likewise.
35961         * modules/fseterr (Files): Likewise.
35962         * modules/fwritable (Files): Likewise.
35963         * modules/fwriting (Files): Likewise.
35964
35965 2008-04-26  Bruno Haible  <bruno@clisp.org>
35966
35967         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
35968         restore_seek_optimization, update_fpos_cache): New functions, extracted
35969         from rpl_fflush.
35970         (rpl_fflush): Use them.
35971         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
35972         (gl_REPLACE_FFLUSH): Use it.
35973
35974 2008-04-26  Bruno Haible  <bruno@clisp.org>
35975
35976         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
35977         on Solaris.
35978         * tests/test-xstrtoimax.sh: Likewise.
35979         * tests/test-xstrtoumax.sh: Likewise.
35980         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35981
35982 2008-04-26  Bruno Haible  <bruno@clisp.org>
35983
35984         * modules/memchr-tests: New file.
35985         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
35986
35987 2008-04-26  Eric Blake  <ebb9@byu.net>
35988             Bruno Haible  <bruno@clisp.org>
35989
35990         * lib/memchr.c: Include intprops.h.
35991         (__memchr): Optimize parallel detection of matching bytes. Rename local
35992         variables. Add explanatory comments.
35993
35994 2008-04-26  Bruno Haible  <bruno@clisp.org>
35995
35996         Fix module 'memchr', broken since 2000-10-28.
35997         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
35998
35999 2008-04-26  Bruno Haible  <bruno@clisp.org>
36000
36001         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
36002         comments.
36003
36004 2008-04-25  Eric Blake  <ebb9@byu.net>
36005
36006         Use native fstatat on cygwin 1.7.0.
36007         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
36008         first.
36009
36010 2008-04-23  Eric Blake  <ebb9@byu.net>
36011
36012         Improve memchr2 performance.
36013         * lib/memchr2.c (memchr2): Further optimize parallel detection of
36014         NUL bytes.
36015         * modules/memchr2 (Depends-on): Use intprops.h.
36016
36017 2008-04-23  Simon Josefsson  <simon@josefsson.org>
36018
36019         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
36020         an inline function instead of a CPP macro.  Patch by Ben Pfaff
36021         <blp@cs.stanford.edu>.
36022
36023 2008-04-23  Simon Josefsson  <simon@josefsson.org>
36024
36025         * lib/arpa_inet.in.h: New file.
36026
36027         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
36028         (Makefile.am): Sed in substitute header file.
36029
36030         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
36031         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
36032
36033         * modules/inet_ntop (configure.ac): Use
36034         gl_ARPA_INET_MODULE_INDICATOR.
36035
36036         * modules/inet_pton (configure.ac): Use
36037         gl_ARPA_INET_MODULE_INDICATOR.
36038
36039 2008-04-22  Jim Meyering  <meyering@redhat.com>
36040
36041         * modules/verify (License): Re-license as LGPLv2+.
36042
36043 2008-04-22  Simon Josefsson  <simon@josefsson.org>
36044
36045         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
36046         parameter to void* as per POSIX standard (MinGW uses char*).
36047
36048 2008-04-21  Bruno Haible  <bruno@clisp.org>
36049
36050         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
36051         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
36052         Define to replacements if REPLACE_ISWCNTRL is 1.
36053         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
36054         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
36055         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
36056         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
36057         what it fixes.
36058         * doc/posix-functions/iswalpha.texi: Likewise.
36059         * doc/posix-functions/iswblank.texi: Likewise.
36060         * doc/posix-functions/iswcntrl.texi: Likewise.
36061         * doc/posix-functions/iswdigit.texi: Likewise.
36062         * doc/posix-functions/iswgraph.texi: Likewise.
36063         * doc/posix-functions/iswlower.texi: Likewise.
36064         * doc/posix-functions/iswprint.texi: Likewise.
36065         * doc/posix-functions/iswpunct.texi: Likewise.
36066         * doc/posix-functions/iswspace.texi: Likewise.
36067         * doc/posix-functions/iswupper.texi: Likewise.
36068         * doc/posix-functions/iswxdigit.texi: Likewise.
36069         Reported by Alain Guibert.
36070
36071 2008-04-21  Bruno Haible  <bruno@clisp.org>
36072
36073         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
36074         Patch by Alain Guibert.
36075
36076 2008-04-21  Bruno Haible  <bruno@clisp.org>
36077
36078         Fix test failures on mingw.
36079         * tests/test-xstrtol.c (print_no_progname): New function.
36080         (main): Install it in error_print_progname hook.
36081         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
36082         * tests/test-xstrtoimax.sh: Likewise.
36083         * tests/test-xstrtoumax.sh: Likewise.
36084
36085 2008-04-21  Bruno Haible  <bruno@clisp.org>
36086
36087         Fix test failure on mingw.
36088         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
36089
36090 2008-04-21  Bruno Haible  <bruno@clisp.org>
36091
36092         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
36093         Actually assign a value.
36094
36095 2008-04-20  Bruno Haible  <bruno@clisp.org>
36096
36097         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
36098         take 2.
36099         * lib/canonicalize.c (canonicalize_file_name): Elide if the
36100         'canonicalize-lgpl' module is also used.
36101         * lib/canonicalize-lgpl.c: Undo last change.
36102         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
36103
36104 2008-04-20  Bruno Haible  <bruno@clisp.org>
36105
36106         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
36107         config.h. Provide _mkdir based fallback for mingw.
36108         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
36109         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
36110         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
36111         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
36112         rather than defining mkdir in config.h.
36113         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
36114         (gl_SYS_STAT_H_DEFAULTS): New macro.
36115         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
36116         HAVE_IO_H any more.
36117         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
36118         HAVE_DECL_MKDIR and HAVE_IO_H.
36119
36120 2008-04-20  Bruno Haible  <bruno@clisp.org>
36121
36122         * lib/isapipe.c: Port to native Windows platforms.
36123
36124 2008-04-20  Bruno Haible  <bruno@clisp.org>
36125
36126         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
36127
36128 2008-04-21  Eric Blake  <ebb9@byu.net>
36129
36130         Work around preprocessors that don't handle UINTMAX_MAX.
36131         * lib/memchr2.c (memchr2): Avoid embedded #if.
36132         Reported by Alain Guibert, fix suggested by Bruno Haible.
36133
36134 2008-04-21  Simon Josefsson  <simon@josefsson.org>
36135
36136         * doc/posix-functions/strftime.texi (strftime): Explain better
36137         Windows incompatibility.  Suggested by Micah Cowan
36138         <micah@cowan.name>.
36139
36140 2008-04-20  Bruno Haible  <bruno@clisp.org>
36141
36142         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
36143         unistr/u8-mblen.
36144
36145 2008-04-20  Bruno Haible  <bruno@clisp.org>
36146
36147         Fix test failure on platforms with non-GNU iconv.
36148         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
36149         (U_TO_U8): Use it, rather than u16_to_u8.
36150         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
36151         units at the end of the input string.
36152         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
36153
36154 2008-04-20  Bruno Haible  <bruno@clisp.org>
36155
36156         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
36157         when the resulting length is 0.
36158         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
36159
36160 2008-04-20  Bruno Haible  <bruno@clisp.org>
36161
36162         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
36163         works.
36164         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
36165
36166 2008-04-20  Bruno Haible  <bruno@clisp.org>
36167
36168         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
36169         * modules/tsearch-tests (configure.ac): Test for initstate function.
36170
36171 2008-04-20  Bruno Haible  <bruno@clisp.org>
36172
36173         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
36174         for nlink_t if missing.
36175         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
36176
36177 2008-04-19  Bruno Haible  <bruno@clisp.org>
36178
36179         Work around snprintf bug on Linux libc5.
36180         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
36181         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36182         gl_SNPRINTF_SIZE1.
36183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36184         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
36185         that test failed.
36186         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
36187         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
36188         * modules/snprintf (Files): Add m4/printf.m4.
36189         * modules/vsnprintf (Files): Likewise.
36190         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
36191         * doc/posix-functions/vsnprintf.texi: Likewise.
36192
36193 2008-04-19  Bruno Haible  <bruno@clisp.org>
36194
36195         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
36196         from 0.0058 to less than 10^-7.
36197
36198 2008-04-19  Bruno Haible  <bruno@clisp.org>
36199
36200         Fix rounding when a precision is given.
36201         * lib/vasnprintf.c (is_borderline): New function.
36202         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
36203         9...9x.
36204         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
36205         %e, %g.
36206         * tests/test-vasprintf-posix.c (test_function): Likewise.
36207         * tests/test-snprintf-posix.h (test_function): Likewise.
36208         * tests/test-sprintf-posix.h (test_function): Likewise.
36209         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
36210         * tests/test-printf-posix.h (test_function): Likewise.
36211         * tests/test-printf-posix.output: Update.
36212         Reported by John Darrington <john@darrington.wattle.id.au> via
36213         Ben Pfaff <blp@cs.stanford.edu>.
36214
36215 2008-04-18  Simon Josefsson  <simon@josefsson.org>
36216
36217         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
36218         Suggested by Bruno Haible <bruno@clisp.org>.
36219
36220 2008-04-17  Bruno Haible  <bruno@clisp.org>
36221
36222         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
36223         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
36224         implementation.
36225         Patch by Bruce Merry <bmerry@gmail.com>.
36226
36227 2008-04-17  Simon Josefsson  <simon@josefsson.org>
36228
36229         * doc/posix-functions/strftime.texi (strftime): Mention that %e
36230         doesn't work under Windows.
36231
36232 2008-04-16  Bruno Haible  <bruno@clisp.org>
36233
36234         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
36235         New macros.
36236         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
36237         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
36238         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
36239         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
36240         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
36241         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
36242         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
36243         macros.
36244         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
36245         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
36246         Northern Sotho, Uighur.
36247
36248 2008-04-16  Bruno Haible  <bruno@clisp.org>
36249
36250         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
36251         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
36252         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
36253         Reported by Daniel Bergström <daniel@octocode.com>.
36254
36255 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
36256             Bruno Haible  <bruno@clisp.org>
36257
36258         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
36259         function.
36260         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
36261         New functions, mostly extracted from gl_locale_name_default.
36262         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
36263
36264 2008-04-16  Eric Blake  <ebb9@byu.net>
36265
36266         Adjust strtod detection to catch glibc 2.7 bug.
36267         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
36268         Reported by John Gatewood Ham.
36269
36270 2008-04-16  Bruno Haible  <bruno@clisp.org>
36271
36272         Add tentative support for Linux libc5.
36273         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
36274         * lib/fpurge.c (fpurge): Likewise.
36275         * lib/freadable.c (freadable): Likewise.
36276         * lib/freadahead.c (freadahead): Likewise.
36277         * lib/freading.c (freading): Likewise.
36278         * lib/freadptr.c (freadptr): Likewise.
36279         * lib/freadseek.c (freadptrinc): Likewise.
36280         * lib/fseeko.c (rpl_fseeko): Likewise.
36281         * lib/fseterr.c (fseterr): Likewise.
36282         * lib/fwritable.c (fwritable): Likewise.
36283         * lib/fwriting.c (fwriting): Likewise.
36284         Reported by Alain Guibert <alguibert+bts@free.fr>.
36285
36286 2008-04-15  Bruno Haible  <bruno@clisp.org>
36287
36288         * modules/mathl (configure.ac): Define module indicator.
36289
36290 2008-04-15  Bruno Haible  <bruno@clisp.org>
36291
36292         * lib/logl.c (logl): Remove unused variables.
36293
36294 2008-04-15  Bruno Haible  <bruno@clisp.org>
36295
36296         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
36297         fails.
36298
36299 2008-04-15  Bruno Haible  <bruno@clisp.org>
36300
36301         * lib/trim.c (trim2): Fix argument of isspace() macro.
36302
36303 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
36304
36305         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
36306         to 0.
36307         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
36308
36309 2008-04-14  Bruno Haible  <bruno@clisp.org>
36310
36311         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
36312         AC_LANG_PROGRAM argument.
36313         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
36314         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
36315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36316         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36317         * m4/math_h.m4 (gl_MATH_H): Likewise.
36318         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
36319         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
36320         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
36321         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
36322         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
36323         * m4/regex.m4 (gl_REGEX): Likewise.
36324         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
36325         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
36326         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36327         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
36328         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
36329         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36330         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36331         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36332
36333 2008-04-14  Jim Meyering  <meyering@redhat.com>
36334
36335         test-strtod: fix typos: s/abs/fabs/
36336         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
36337
36338 2008-04-13  Bruno Haible  <bruno@clisp.org>
36339
36340         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
36341         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
36342         module is also used and while not building the reloc-wrapper.
36343
36344 2008-04-13  Bruno Haible  <bruno@clisp.org>
36345
36346         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
36347
36348 2008-04-13  Bruno Haible  <bruno@clisp.org>
36349
36350         Fix AIX compilation failure introduced on 2008-04-02.
36351         * tests/test-frexp.c (exp): Undefine before redefining.
36352         * tests/test-frexpl.c (exp): Likewise.
36353
36354 2008-04-13  Bruno Haible  <bruno@clisp.org>
36355
36356         Work around a HP-UX stdio bug.
36357         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
36358         * tests/test-ftello.c (main): Likewise.
36359         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
36360         * doc/posix-functions/ftello.texi: Likewise.
36361
36362 2008-04-13  Bruno Haible  <bruno@clisp.org>
36363
36364         Make test-signbit pass on HP-UX/hppa.
36365         * tests/test-signbit.c (minus_zerol): New variable.
36366         (test_signbitl): Use it.
36367
36368 2008-04-13  Bruno Haible  <bruno@clisp.org>
36369
36370         Make truncl work on OSF/1 4.0.
36371         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
36372         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
36373         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
36374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
36375         HAVE_DECL_TRUNCL.
36376         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
36377         HAVE_DECL_TRUNCL.
36378         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
36379
36380 2008-04-13  Bruno Haible  <bruno@clisp.org>
36381
36382         * lib/unictype.h: Remove trailing comma from enumeration definitions.
36383
36384 2008-04-13  Bruno Haible  <bruno@clisp.org>
36385
36386         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
36387         expression, so as to avoid HP-UX 11 cc compiler bug.
36388
36389 2008-04-13  Bruno Haible  <bruno@clisp.org>
36390
36391         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
36392
36393 2008-04-13  Bruno Haible  <bruno@clisp.org>
36394
36395         * lib/git-merge-changelog.c: Remove empty declaration outside of
36396         functions.
36397
36398 2008-04-13  Bruno Haible  <bruno@clisp.org>
36399
36400         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
36401
36402 2008-04-13  Bruno Haible  <bruno@clisp.org>
36403
36404         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
36405         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
36406         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
36407         also if it exists but lacks definitions of the SHUT_* macros.
36408         * modules/sys_socket (Description): Update.
36409         Reported by Elbert Pol <e.pol@chello.nl>.
36410
36411 2008-04-13  Bruno Haible  <bruno@clisp.org>
36412
36413         * lib/localcharset.c (OS2): Don't redefine if already defined.
36414         Reported by Elbert Pol <e.pol@chello.nl>.
36415
36416 2008-04-13  Bruno Haible  <bruno@clisp.org>
36417
36418         * lib/binary-io.h [__EMX__]: Include <io.h>.
36419         Reported by Elbert Pol <e.pol@chello.nl>.
36420
36421 2008-04-12  Bruno Haible  <bruno@clisp.org>
36422
36423         * lib/fpucw.h: Enable the definitions also for x86_64.
36424         Needed for NetBSD/x86_64.
36425         Reported by Thomas Klausner <tk@giga.or.at>.
36426
36427 2008-04-12  Bruno Haible  <bruno@clisp.org>
36428
36429         * tests/test-strtod.c: Include isnand.h.
36430         (main): Use isnand instead of isnan.
36431         Reported by Jim Meyering.
36432
36433 2008-04-12  Bruno Haible  <bruno@clisp.org>
36434
36435         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
36436         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36437
36438 2008-04-12  Jim Meyering  <meyering@redhat.com>
36439
36440         * m4/math_h.m4 (gl_MATH_H): Fix typos.
36441
36442 2008-04-12  Bruno Haible  <bruno@clisp.org>
36443
36444         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
36445         Reported by Elbert Pol <e.pol@chello.nl>.
36446
36447 2008-04-12  Eric Blake  <ebb9@byu.net>
36448
36449         Work around Solaris 10 math.h bug.
36450         * m4/math_h.m4 (gl_MATH_H): Check for bug.
36451         (gl_MATH_H_DEFAULTS): Set up default.
36452         * modules/math (Makefile.am): Replace new indicators.
36453         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
36454         * tests/test-math.c (main): Test this.
36455         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
36456         * doc/posix-headers/math.texi (math.h): Mention bug.
36457         Reported by Nelson H. F. Beebe and Jim Meyering.
36458
36459 2008-04-11  Bruno Haible  <bruno@clisp.org>
36460
36461         Adapt to future versions of Apple GCC.
36462         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
36463         Reported by Peter O'Gorman <peter@pogma.com>.
36464
36465 2008-04-11  Bruno Haible  <bruno@clisp.org>
36466
36467         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
36468
36469 2008-04-11  Bruno Haible  <bruno@clisp.org>
36470
36471         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
36472
36473         * modules/getaddrinfo-tests (Makefile.am): Define
36474         test_getaddrinfo_LDADD.
36475
36476 2008-04-11  Bruno Haible  <bruno@clisp.org>
36477
36478         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
36479         (init): Fix syntax error.
36480         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
36481         is declared.
36482
36483 2008-04-11  Bruno Haible  <bruno@clisp.org>
36484
36485         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
36486         * modules/glob (Depends-on): Add stdbool.
36487
36488 2008-04-11  Bruno Haible  <bruno@clisp.org>
36489
36490         * lib/trim.c: Include <string.h>.
36491
36492 2008-04-11  Eric Blake  <ebb9@byu.net>
36493
36494         Avoid compile failure on OS/2.
36495         * lib/regex_internal.h (internal_function): Disable optimization
36496         on OS/2 (__EMX__), where it caused compiler error.
36497         Reported by Elbert Pol.
36498
36499 2008-04-11  Bruno Haible  <bruno@clisp.org>
36500
36501         Flush the standard error stream before aborting. Needed on mingw.
36502         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
36503         * tests/test-array_list.c (ASSERT): Likewise.
36504         * tests/test-array_oset.c (ASSERT): Likewise.
36505         * tests/test-avltree_list.c (ASSERT): Likewise.
36506         * tests/test-avltree_oset.c (ASSERT): Likewise.
36507         * tests/test-avltreehash_list.c (ASSERT): Likewise.
36508         * tests/test-binary-io.c (ASSERT): Likewise.
36509         * tests/test-byteswap.c (ASSERT): Likewise.
36510         * tests/test-c-ctype.c (ASSERT): Likewise.
36511         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
36512         * tests/test-c-strcasestr.c (ASSERT): Likewise.
36513         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
36514         * tests/test-c-strstr.c (ASSERT): Likewise.
36515         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
36516         * tests/test-canonicalize.c (ASSERT): Likewise.
36517         * tests/test-carray_list.c (ASSERT): Likewise.
36518         * tests/test-ceilf1.c (ASSERT): Likewise.
36519         * tests/test-ceilf2.c (ASSERT): Likewise.
36520         * tests/test-ceill.c (ASSERT): Likewise.
36521         * tests/test-count-one-bits.c (ASSERT): Likewise.
36522         * tests/test-fbufmode.c (ASSERT): Likewise.
36523         * tests/test-fflush2.c (ASSERT): Likewise.
36524         * tests/test-floorf1.c (ASSERT): Likewise.
36525         * tests/test-floorf2.c (ASSERT): Likewise.
36526         * tests/test-floorl.c (ASSERT): Likewise.
36527         * tests/test-fopen.c (ASSERT): Likewise.
36528         * tests/test-fpending.c (ASSERT): Likewise.
36529         * tests/test-fprintf-posix.c (ASSERT): Likewise.
36530         * tests/test-fpurge.c (ASSERT): Likewise.
36531         * tests/test-freadable.c (ASSERT): Likewise.
36532         * tests/test-freadahead.c (ASSERT): Likewise.
36533         * tests/test-freading.c (ASSERT): Likewise.
36534         * tests/test-freadptr.c (ASSERT): Likewise.
36535         * tests/test-freadptr2.c (ASSERT): Likewise.
36536         * tests/test-freadseek.c (ASSERT): Likewise.
36537         * tests/test-freopen.c (ASSERT): Likewise.
36538         * tests/test-frexp.c (ASSERT): Likewise.
36539         * tests/test-frexpl.c (ASSERT): Likewise.
36540         * tests/test-fseek.c (ASSERT): Likewise.
36541         * tests/test-fseeko.c (ASSERT): Likewise.
36542         * tests/test-fstrcmp.c (ASSERT): Likewise.
36543         * tests/test-ftell.c (ASSERT): Likewise.
36544         * tests/test-ftello.c (ASSERT): Likewise.
36545         * tests/test-func.c (ASSERT): Likewise.
36546         * tests/test-fwritable.c (ASSERT): Likewise.
36547         * tests/test-fwriting.c (ASSERT): Likewise.
36548         * tests/test-getdelim.c (ASSERT): Likewise.
36549         * tests/test-getline.c (ASSERT): Likewise.
36550         * tests/test-i-ring.c (ASSERT): Likewise.
36551         * tests/test-iconv-utf.c (ASSERT): Likewise.
36552         * tests/test-iconv.c (ASSERT): Likewise.
36553         * tests/test-isfinite.c (ASSERT): Likewise.
36554         * tests/test-isnand.c (ASSERT): Likewise.
36555         * tests/test-isnanf.c (ASSERT): Likewise.
36556         * tests/test-isnanl.h (ASSERT): Likewise.
36557         * tests/test-ldexpl.c (ASSERT): Likewise.
36558         * tests/test-linked_list.c (ASSERT): Likewise.
36559         * tests/test-linkedhash_list.c (ASSERT): Likewise.
36560         * tests/test-localename.c (ASSERT): Likewise.
36561         * tests/test-lseek.c (ASSERT): Likewise.
36562         * tests/test-mbscasecmp.c (ASSERT): Likewise.
36563         * tests/test-mbscasestr1.c (ASSERT): Likewise.
36564         * tests/test-mbscasestr2.c (ASSERT): Likewise.
36565         * tests/test-mbscasestr3.c (ASSERT): Likewise.
36566         * tests/test-mbscasestr4.c (ASSERT): Likewise.
36567         * tests/test-mbschr.c (ASSERT): Likewise.
36568         * tests/test-mbscspn.c (ASSERT): Likewise.
36569         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
36570         * tests/test-mbspbrk.c (ASSERT): Likewise.
36571         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
36572         * tests/test-mbsrchr.c (ASSERT): Likewise.
36573         * tests/test-mbsspn.c (ASSERT): Likewise.
36574         * tests/test-mbsstr1.c (ASSERT): Likewise.
36575         * tests/test-mbsstr2.c (ASSERT): Likewise.
36576         * tests/test-mbsstr3.c (ASSERT): Likewise.
36577         * tests/test-memchr2.c (ASSERT): Likewise.
36578         * tests/test-memmem.c (ASSERT): Likewise.
36579         * tests/test-open.c (ASSERT): Likewise.
36580         * tests/test-printf-frexp.c (ASSERT): Likewise.
36581         * tests/test-printf-frexpl.c (ASSERT): Likewise.
36582         * tests/test-printf-posix.c (ASSERT): Likewise.
36583         * tests/test-quotearg.c (ASSERT): Likewise.
36584         * tests/test-rbtree_list.c (ASSERT): Likewise.
36585         * tests/test-rbtree_oset.c (ASSERT): Likewise.
36586         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
36587         * tests/test-round1.c (ASSERT): Likewise.
36588         * tests/test-roundf1.c (ASSERT): Likewise.
36589         * tests/test-roundl.c (ASSERT): Likewise.
36590         * tests/test-signbit.c (ASSERT): Likewise.
36591         * tests/test-sleep.c (ASSERT): Likewise.
36592         * tests/test-snprintf-posix.c (ASSERT): Likewise.
36593         * tests/test-snprintf.c (ASSERT): Likewise.
36594         * tests/test-sprintf-posix.c (ASSERT): Likewise.
36595         * tests/test-stat-time.c (ASSERT): Likewise.
36596         * tests/test-strcasestr.c (ASSERT): Likewise.
36597         * tests/test-strerror.c (ASSERT): Likewise.
36598         * tests/test-striconv.c (ASSERT): Likewise.
36599         * tests/test-striconveh.c (ASSERT): Likewise.
36600         * tests/test-striconveha.c (ASSERT): Likewise.
36601         * tests/test-strsignal.c (ASSERT): Likewise.
36602         * tests/test-strstr.c (ASSERT): Likewise.
36603         * tests/test-strtod.c (ASSERT): Likewise.
36604         * tests/test-trunc1.c (ASSERT): Likewise.
36605         * tests/test-trunc2.c (ASSERT): Likewise.
36606         * tests/test-truncf1.c (ASSERT): Likewise.
36607         * tests/test-truncf2.c (ASSERT): Likewise.
36608         * tests/test-truncl.c (ASSERT): Likewise.
36609         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
36610         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
36611         * tests/test-vasnprintf.c (ASSERT): Likewise.
36612         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
36613         * tests/test-vasprintf.c (ASSERT): Likewise.
36614         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
36615         * tests/test-vprintf-posix.c (ASSERT): Likewise.
36616         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
36617         * tests/test-vsnprintf.c (ASSERT): Likewise.
36618         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
36619         * tests/test-wcwidth.c (ASSERT): Likewise.
36620         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
36621         * tests/test-xprintf-posix.c (ASSERT): Likewise.
36622         * tests/test-xvasprintf.c (ASSERT): Likewise.
36623         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
36624         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
36625         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
36626         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
36627         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
36628         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
36629         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
36630         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
36631         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
36632         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
36633         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
36634         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
36635         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
36636         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
36637         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
36638         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
36639         * tests/unictype/test-block_list.c (ASSERT): Likewise.
36640         * tests/unictype/test-block_of.c (ASSERT): Likewise.
36641         * tests/unictype/test-block_test.c (ASSERT): Likewise.
36642         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
36643         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
36644         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
36645         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
36646         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
36647         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
36648         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
36649         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
36650         * tests/unictype/test-combining.c (ASSERT): Likewise.
36651         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
36652         * tests/unictype/test-digit.c (ASSERT): Likewise.
36653         * tests/unictype/test-mirror.c (ASSERT): Likewise.
36654         * tests/unictype/test-numeric.c (ASSERT): Likewise.
36655         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
36656         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
36657         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
36658         * tests/unictype/test-scripts.c (ASSERT): Likewise.
36659         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
36660         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
36661         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
36662         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
36663         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
36664         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
36665         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
36666         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
36667         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
36668         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
36669         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
36670         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
36671         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
36672         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
36673         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
36674         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
36675         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
36676         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
36677         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
36678         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
36679         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
36680         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
36681         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
36682         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
36683         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
36684         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
36685         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
36686         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
36687         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
36688         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
36689         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
36690         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
36691         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
36692         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
36693         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
36694         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
36695         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
36696         Reported by Eric Blake.
36697
36698 2008-04-11  Bruno Haible  <bruno@clisp.org>
36699
36700         * lib/wchar.in.h: Tweak comment.
36701
36702 2008-04-11  Bruno Haible  <bruno@clisp.org>
36703
36704         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
36705         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
36706         gl_COMMON.
36707         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
36708
36709 2008-04-11  Bruno Haible  <bruno@clisp.org>
36710
36711         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
36712
36713 2008-04-11  Simon Josefsson  <simon@josefsson.org>
36714
36715         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
36716         of attempting to use non-existing /dev/*random.  Based on patch
36717         from Adam Strzelecki <ono@java.pl> in
36718         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
36719
36720 2008-04-08  Bruno Haible  <bruno@clisp.org>
36721
36722         Add tentative support for emx+gcc.
36723         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
36724         * lib/fpurge.c (fpurge): Likewise.
36725         * lib/freadable.c (freadable): Likewise.
36726         * lib/freadahead.c (freadahead): Likewise.
36727         * lib/freading.c (freading): Likewise.
36728         * lib/freadptr.c (freadptr): Likewise.
36729         * lib/freadseek.c (freadptrinc): Likewise.
36730         * lib/fseeko.c (rpl_fseeko): Likewise.
36731         * lib/fseterr.c (fseterr): Likewise.
36732         * lib/fwritable.c (fwritable): Likewise.
36733         * lib/fwriting.c (fwriting): Likewise.
36734         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
36735
36736 2008-04-09  Eric Blake  <ebb9@byu.net>
36737
36738         Avoid some autoconf warnings.
36739         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
36740         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
36741         * m4/afs.m4 (gl_AFS): Likewise.
36742         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
36743         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
36744         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36745         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
36746         (gl_INTEGER_TYPE_SUFFIX): Likewise.
36747         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
36748         (AC_CHECK_DECLS_ONCE): Likewise.
36749         Rename file...
36750         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
36751         gnulib-tool requires autoconf 2.59 or better.
36752         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
36753
36754 2008-04-08  Eric Blake  <ebb9@byu.net>
36755
36756         Use 'git describe --match' if present (added in git 1.5.5).
36757         * build-aux/git-version-gen: Limit result to tags that match 'v*'
36758         if possible.
36759
36760 2008-04-08  Bruno Haible  <bruno@clisp.org>
36761
36762         Add tentative support for OpenServer.
36763         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
36764         _ptr, _cnt.
36765         * lib/fpurge.c (fpurge): Likewise.
36766         * lib/freadable.c (freadable): Likewise.
36767         * lib/freadahead.c (freadahead): Likewise.
36768         * lib/freading.c (freading): Likewise.
36769         * lib/freadptr.c (freadptr): Likewise.
36770         * lib/freadseek.c (freadptrinc): Likewise.
36771         * lib/fseeko.c (rpl_fseeko): Likewise.
36772         * lib/fseterr.c (fseterr): Likewise.
36773         * lib/fwritable.c (fwritable): Likewise.
36774         * lib/fwriting.c (fwriting): Likewise.
36775         Reported by Roger Cornelius <rac@tenzing.org> and
36776         Brian K. White <brian@aljex.com>.
36777
36778 2008-04-06  Jim Meyering  <meyering@redhat.com>
36779
36780         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
36781
36782 2008-04-06  Bruno Haible  <bruno@clisp.org>
36783
36784         Avoid possible error with non-ASCII bytes in UTF-8 locales.
36785         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
36786         * tests/test-printf-posix.sh: Likewise.
36787         * tests/test-vfprintf-posix.sh: Likewise.
36788         * tests/test-vprintf-posix.sh: Likewise.
36789         * tests/test-xprintf-posix.sh: Likewise.
36790
36791 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36792
36793         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
36794         hide error from 'ls', needed on OS/2.
36795         Report by Elbert Pol <elbert.pol@gmail.com>.
36796
36797 2008-04-04  Eric Blake  <ebb9@byu.net>
36798
36799         Make test-fseeko.c failures meaningful.
36800         * tests/test-fseeko.c: Print line number on failure.
36801         * tests/test-fseek.c: Likewise.
36802         Reported by Nelson H. F. Beebe.
36803
36804         Improve strtod bug detection check.
36805         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
36806         required for Solaris 10.
36807         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
36808
36809 2008-04-04  Bruno Haible  <bruno@clisp.org>
36810
36811         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
36812         by m4/setenv.m4.
36813
36814 2008-04-03  Eric Blake  <ebb9@byu.net>
36815
36816         Ensure sane .version contents.
36817         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
36818         version string.
36819         * build-aux/git-version-gen: Improve documentation.
36820
36821         Make GNU make output nicer.
36822         * top/GNUmakefile [!_have-Makefile]: Add dependency on
36823         MAKECMDGOALS to enforce message for all command line targets.  Set
36824         srcdir for use in maint.mk.
36825
36826         Another maintainer tweak.
36827         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
36828         a target that regenerates version.
36829
36830 2008-04-03  Jim Meyering  <meyering@redhat.com>
36831
36832         vc-list-files: don't cause coreutils "make po-check" failure
36833         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
36834
36835 2008-04-03  Eric Blake  <ebb9@byu.net>
36836
36837         Allow VPATH usage of vc-list-files.
36838         * build-aux/vc-list-files (scriptversion): Add timestamp.
36839         (options): Add --help, --version, -C.
36840         (CVS): Support installed cvsu.
36841
36842 2008-04-02  Bruno Haible  <bruno@clisp.org>
36843
36844         Avoid some "statement with no effect" warnings from gcc.
36845         * tests/test-wctype.c (main): Explicitly ignore unused values.
36846         Reported by Jim Meyering.
36847
36848 2008-04-02  Jim Meyering  <meyering@redhat.com>
36849
36850         Avoid some warnings from "gcc -Wshadow".
36851         * tests/test-frexp.c (exp): Define to a different identifier.
36852         * tests/test-frexpl.c (exp): Likewise.
36853
36854 2008-04-03  Jim Meyering  <meyering@redhat.com>
36855
36856         bootstrap: remove dangling *.[ch] symlinks from lib
36857         * build-aux/bootstrap [dangling symlink removal]: Move find's
36858         -depth option to precede all others, to avoid a warning.
36859         Remove *.[ch] files too, and from "$source_base" (usually lib/).
36860
36861 2008-04-02  Bruno Haible  <bruno@clisp.org>
36862
36863         Avoid some warnings from "gcc -Wshadow".
36864         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
36865         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
36866         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
36867         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
36868         Reported by Jim Meyering.
36869
36870 2008-04-01  Bruno Haible  <bruno@clisp.org>
36871
36872         Fix test to work on IRIX 6.5 with cc.
36873         * tests/test-math.c (numeric_equal): New function.
36874         (main): Use it.
36875
36876 2008-04-01  Bruno Haible  <bruno@clisp.org>
36877
36878         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
36879
36880 2008-04-01  Bruno Haible  <bruno@clisp.org>
36881
36882         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
36883         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36884         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
36885         (Depends-on): Remove math.
36886
36887         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
36888         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36889         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
36890         (Depends-on): Remove math.
36891
36892         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
36893         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36894         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
36895         (Depends-on): Remove math.
36896         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
36897         (Depends-on): Remove math.
36898
36899         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
36900         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
36901         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
36902         (Depends-on): Remove math.
36903         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
36904         (Depends-on): Remove math.
36905
36906         * tests/test-round1.c: Include nan.h.
36907         (main): Use NaNd instead of NAN.
36908         * modules/round-tests (Files): Add tests/nan.h.
36909
36910         * tests/test-trunc1.c: Include nan.h.
36911         (main): Use NaNd instead of NAN.
36912         * modules/trunc-tests (Files): Add tests/nan.h.
36913
36914         * tests/test-roundf1.c: Include nan.h.
36915         (main): Use NaNf instead of NAN.
36916         * modules/roundf-tests (Files): Add tests/nan.h.
36917
36918         * tests/test-truncf1.c: Include nan.h.
36919         (main): Use NaNf instead of NAN.
36920         * modules/truncf-tests (Files): Add tests/nan.h.
36921
36922         * tests/test-ceilf1.c: Include nan.h.
36923         (main): Use NaNf instead of NAN.
36924         * modules/ceilf-tests (Files): Add tests/nan.h.
36925
36926         * tests/test-floorf1.c: Include nan.h.
36927         (main): Use NaNf instead of NAN.
36928         * modules/floorf-tests (Files): Add tests/nan.h.
36929
36930         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
36931         (main): Use NaNf instead of NAN.
36932         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
36933
36934         * tests/test-isnand.c: Include nan.h instead of <math.h>.
36935         (main): Use NaNd instead of NAN.
36936         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
36937
36938         * tests/test-frexp.c: Include nan.h.
36939         (main): Use NaNd instead of NAN.
36940         * modules/frexp-tests (Files): Add tests/nan.h.
36941
36942         * lib/isnan.c: Don't include <math.h>.
36943         (FUNC): Don't use NAN macro.
36944         * modules/isnand-nolibm (Depends-on): Remove math.
36945         * modules/isnanf-nolibm (Depends-on): Remove math.
36946         * modules/isnanl (Depends-on): Remove math.
36947         * modules/isnanl-nolibm (Depends-on): Remove math.
36948
36949         * tests/nan.h: New file.
36950
36951 2008-04-01  Eric Blake  <ebb9@byu.net>
36952
36953         Fix typos.
36954         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
36955         values to be the right type.
36956
36957         For now, cater to gnulib strtod inaccuracies.
36958         * tests/test-strtod.c (main): Allow 1-ulp error on expected
36959         fractional results.  While not as nice from a QoI perspective, it
36960         is a quicker patch than correctly implementing decimal to binary
36961         rounding.
36962
36963 2008-03-31  Eric Blake  <ebb9@byu.net>
36964
36965         Guarantee a definition of NAN.
36966         * lib/math.in.h (NAN): Define if missing.
36967         * tests/test-math.c (main): Test it.
36968         * doc/posix-headers/math.texi (math.h): Document this.
36969         * lib/isnan.c (rpl_isnand): Use it.
36970         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
36971         * tests/test-floorf1.c (NaN): Likewise.
36972         * tests/test-frexp.c (NaN): Likewise.
36973         * tests/test-isnand.c (NaN): Likewise.
36974         * tests/test-isnanf.c (NaN): Likewise.
36975         * tests/test-round1.c (NaN): Likewise.
36976         * tests/test-roundf1.c (NaN): Likewise.
36977         * tests/test-snprintf-posix.h (NaN): Likewise.
36978         * tests/test-sprintf-posix.h (NaN): Likewise.
36979         * tests/test-trunc1.c (NaN): Likewise.
36980         * tests/test-truncf1.c (NaN): Likewise.
36981         * tests/test-vasnprintf-posix.c (NaN): Likewise.
36982         * tests/test-vasprintf-posix.c (NaN): Likewise.
36983         * modules/isnand-nolibm (Depends-on): Add math.
36984         * modules/isnanf-nolibm (Depends-on): Likewise.
36985         * modules/isnanl (Depends-on): Likewise.
36986         * modules/isnanl-nolibm (Depends-on): Likewise.
36987         * modules/snprintf-posix-tests (Depends-on): Likewise.
36988         * modules/sprintf-posix-tests (Depends-on): Likewise.
36989         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
36990         * modules/vsprintf-posix-tests (Depends-on): Likewise.
36991         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
36992         * modules/vasprintf-posix-tests (Depends-on): Likewise.
36993
36994 2008-03-31  Bruno Haible  <bruno@clisp.org>
36995
36996         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
36997         * doc/posix-functions/strtod.texi: Likewise.
36998
36999 2008-03-31  Bruno Haible  <bruno@clisp.org>
37000
37001         * tests/test-strtod.c (main): Don't use C99 syntax.
37002
37003 2008-03-31  Bruno Haible  <bruno@clisp.org>
37004
37005         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
37006         Reported by Eric Blake.
37007
37008 2008-03-31  Jim Meyering  <meyering@redhat.com>
37009
37010         Don't compare actual signbit return values.
37011         * tests/test-strtod.c (main): Rather, compare only their
37012         zero/non-zero nature.
37013
37014 2008-03-31  Eric Blake  <ebb9@byu.net>
37015
37016         More strtod documentation.
37017         * doc/posix-functions/strtod.texi (strtod): Interpret more test
37018         failures as distinct bugs.
37019
37020 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
37021
37022         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
37023         Problem reported by Erik Benada in
37024         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
37025
37026 2008-03-30  Bruno Haible  <bruno@clisp.org>
37027
37028         * tests/test-strtod.c: Add comments about which assertion fails on which
37029         platform.
37030         * doc/posix-functions/strtod.texi: Add info about many more platforms.
37031
37032 2008-03-30  Eric Blake  <ebb9@byu.net>
37033
37034         Test signbit behavior on zeros.
37035         * tests/test-signbit.c (test_signbitf): Add tests for zero.
37036         (test_signbitd, test_signbitl): Likewise.
37037
37038         More strtod touchups.
37039         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
37040         sign of negative underflow, for now.  Use .5, not .1.
37041         * doc/posix-functions/strtod.texi (strtod): Mention these
37042         limitations.
37043         Reported by Jim Meyering.
37044
37045 2008-03-30  Bruno Haible  <bruno@clisp.org>
37046
37047         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
37048         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
37049
37050 2008-03-30  Bruno Haible  <bruno@clisp.org>
37051
37052         Avoid failure when attempting to return empty iconv results on some
37053         platforms.
37054         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
37055         allocation, don't report ENOMEM when the resulting string is empty.
37056
37057 2008-03-30  Bruno Haible  <bruno@clisp.org>
37058
37059         Fix buffer overrun.
37060         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
37061         Don't consider the width for tmp_length. Check count against tmp_length
37062         before doing the padding. Ensure enough allocation during padding.
37063
37064 2008-03-30  Eric Blake  <ebb9@byu.net>
37065
37066         strtod touchups.
37067         * lib/strtod.c (strtod): Avoid compiler warnings.
37068         Reported by Jim Meyering.
37069
37070 2008-03-30  Bruno Haible  <bruno@clisp.org>
37071
37072         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
37073         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
37074         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
37075         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
37076         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
37077         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
37078         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
37079         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
37080
37081         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
37082         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
37083         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
37084         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
37085         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
37086         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
37087         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
37088         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
37089
37090         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
37091         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
37092         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
37093         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
37094         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
37095         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
37096         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
37097         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
37098
37099         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
37100         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
37101
37102         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
37103         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
37104
37105         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
37106         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
37107
37108         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
37109         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
37110         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
37111
37112         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
37113         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
37114         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
37115
37116         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
37117         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
37118         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
37119
37120         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
37121         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
37122         * modules/vasprintf (Depends-on): Add EOVERFLOW.
37123
37124         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
37125         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
37126         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
37127         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
37128         (Depends-on): Add EOVERFLOW.
37129         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
37130         (Depends-on): Add EOVERFLOW.
37131         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
37132         (Depends-on): Add EOVERFLOW.
37133         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
37134         (Depends-on): Add EOVERFLOW.
37135         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
37136         (Depends-on): Add EOVERFLOW.
37137         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
37138         (Depends-on): Add EOVERFLOW.
37139         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
37140         (Depends-on): Add EOVERFLOW.
37141         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
37142         (Depends-on): Add EOVERFLOW.
37143
37144         * lib/sprintf.c (EOVERFLOW): Remove fallback.
37145         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
37146         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
37147
37148         * lib/snprintf.c (EOVERFLOW): Remove fallback.
37149         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
37150         * modules/snprintf (Depends-on): Add EOVERFLOW.
37151
37152         * lib/poll.c (EOVERFLOW): Remove fallback.
37153         * modules/poll (Depends-on): Add EOVERFLOW.
37154
37155         * lib/getugroups.c (EOVERFLOW): Remove fallback.
37156         * modules/getugroups (Depends-on): Add EOVERFLOW.
37157
37158         * lib/getdelim.c (EOVERFLOW): Remove fallback.
37159         * modules/getdelim (Depends-on): Add EOVERFLOW.
37160
37161         * lib/ftell.c (EOVERFLOW): Remove fallback.
37162         * modules/ftell (Depends-on): Add EOVERFLOW.
37163
37164         * lib/fprintf.c (EOVERFLOW): Remove fallback.
37165         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
37166         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
37167
37168         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
37169
37170         * modules/EOVERFLOW-tests: New file.
37171         * tests/test-EOVERFLOW.c: New file.
37172
37173         * modules/EOVERFLOW: New file.
37174         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
37175
37176 2008-03-30  Bruno Haible  <bruno@clisp.org>
37177
37178         Fix bug introduced on 2007-06-10.
37179         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
37180         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
37181
37182 2008-03-30  Bruno Haible  <bruno@clisp.org>
37183
37184         Improve freadseek's efficiency after ungetc.
37185         * lib/freadseek.c: Include freadahead.h.
37186         (freadptrinc): New function, extracted from freadseek.
37187         (freadseek): Use it in a loop. Use freadahead to determine the number
37188         of loop iterations.
37189         * modules/freadseek (Depends-on): Add freadahead.
37190         (configure.ac): Require AC_C_INLINE.
37191
37192 2008-03-30  Bruno Haible  <bruno@clisp.org>
37193
37194         * lib/freadseek.c (freadseek): Don't ignore the return value of
37195         freadptr.
37196
37197 2008-03-29  Eric Blake  <ebb9@byu.net>
37198
37199         Add hex float support.
37200         * modules/strtod (Depends-on): Add c-ctype.
37201         (Link): Mention POW_LIB.
37202         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
37203         whitespace between 'e' and exponent.
37204         * tests/test-strtod.c (main): Enable hex float tests.
37205         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
37206         now provides.
37207
37208         Document various strtod bugs, with some fixes.
37209         * doc/posix-functions/strtod.texi (strtod): Document bugs with
37210         "-0x", "inf", "nan", and hex constants.
37211         * doc/posix-functions/atof.texi (atof): Likewise.
37212         * modules/stdlib (Makefile.am): Support strtod.
37213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37214         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
37215         detect additional strtod bugs.
37216         * lib/stdlib.in.h (rpl_strtod): Add declarations.
37217         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
37218         bool where appropriate.  Parse 'inf' and 'nan'.
37219         * tests/test-strtod.c: New file.
37220         * modules/strtod (Depends-on): Add stdbool, stdlib.
37221         (configure.ac): Turn on module indicator.
37222         * modules/strtod-tests: New module.
37223
37224 2008-03-29  Eric Blake  <ebb9@byu.net>
37225
37226         Fix ftell on mingw.
37227         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
37228         * modules/ftell-tests (Depends-on): Add binary-io.
37229         * modules/ftello-tests (Depends-on): Likewise.
37230         * tests/test-ftell.c (main): Enhance test to cover behavior after
37231         ungetc.  Enforce binary mode.
37232         * tests/test-ftello.c (main): Likewise.
37233
37234         Pass test-freadseek on cygwin.
37235         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
37236         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
37237         ungetc buffer.
37238
37239         * tests/test-fflush2.c (main): Fix typo.
37240
37241 2008-03-29  Bruno Haible  <bruno@clisp.org>
37242
37243         * tests/test-fflush2.c (main): Temporarily disable the contents of
37244         this test.
37245         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
37246         Reported by Eric Blake.
37247
37248 2008-03-28  Simon Josefsson  <simon@josefsson.org>
37249
37250         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
37251         (GC_SHA224_DIGEST_SIZE): Add.
37252
37253         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
37254         (gc_hash_digest_length): Likewise.
37255         (gc_hash_buffer): Likewise.
37256
37257 2008-03-25  Bruno Haible  <bruno@clisp.org>
37258
37259         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
37260         detail which gettext release to use.
37261         Reported by Simon Josefsson.
37262
37263 2008-03-26  Jim Meyering  <meyering@redhat.com>
37264
37265         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
37266         * modules/gnumakefile (clean-GNUmakefile): Also, use
37267         test ... && ... || : syntax rather than if-then ... fi.
37268
37269         gnumakefile: Don't double-quote-expand $(VPATH) value.
37270         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
37271
37272 2008-03-24  Eric Blake  <ebb9@byu.net>
37273
37274         Alter GNUmakefile to install into top directory.
37275         * modules/maintainer-makefile: Split, and add dependency...
37276         * modules/gnumakefile: to this new module.
37277         * build-aux/GNUmakefile: Move...
37278         * top/GNUmakefile: ...here.
37279         * build-aux/maint.mk: Move...
37280         * top/maint.mk: ...here.
37281         * MODULES.html.sh (Support for maintaining...): Document new
37282         module.
37283
37284 2008-03-23  Bruno Haible  <bruno@clisp.org>
37285
37286         * gnulib-tool: New options --vc-files, --no-vc-files.
37287         (func_usage): Document them.
37288         (vc_files): New variable.
37289         (func_import): Consider vc_files.
37290         (func_create_testdir): Set vc_files to empty.
37291         Suggested by Jim Meyering and Karl Berry.
37292
37293 2008-03-23  Bruno Haible  <bruno@clisp.org>
37294
37295         Fix regex compilation error on HP-UX 11.
37296         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
37297         * modules/regex (Files): Add m4/mbstate_t.m4.
37298         Reported by Ton Voon <ton.voon@altinity.com>.
37299
37300 2008-03-23  Bruno Haible  <bruno@clisp.org>
37301
37302         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
37303
37304 2008-03-23  Eric Blake  <ebb9@byu.net>
37305             Bruno Haible  <bruno@clisp.org>
37306
37307         Install files from top/ in the destination directory.
37308         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
37309         augmentation also for the files from top/.
37310         (func_import, func_create_testdir): Rewrite file names:
37311         top/filename -> filename.
37312
37313 2008-03-23  Bruno Haible  <bruno@clisp.org>
37314
37315         Tweak "gnulib --version" output.
37316         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
37317
37318 2008-03-23  Bruno Haible  <bruno@clisp.org>
37319
37320         Tweak "gnulib --version" output.
37321         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
37322         rather than contents of ChangeLog, when possible.
37323
37324 2008-03-21  Eric Blake  <ebb9@byu.net>
37325
37326         More --version tweaks.
37327         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
37328         date of last ChangeLog entry.
37329
37330 2008-03-21  Jim Meyering  <meyering@redhat.com>
37331
37332         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
37333
37334 2008-03-20  Eric Blake  <ebb9@byu.net>
37335
37336         VPATH fix.
37337         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
37338
37339 2008-03-20  Simon Josefsson  <simon@josefsson.org>
37340
37341         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
37342         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
37343
37344 2008-03-20  Eric Blake  <ebb9@byu.net>
37345
37346         Sync GNUmakefile with coreutils.
37347         * build-aux/GNUmakefile (have-Makefile): Rename...
37348         (_have-Makefile): ...to this, for namespace consideration.
37349         (GNUmakefile.cfg): Include, if present.
37350         (_autoreconf): Define a default.
37351         (_is-dist-target): New rule for rebuilds to pick up intra-release
37352         version.
37353         (maint-cfg.mk): Rename...
37354         (cfg.mk): ...to this.
37355
37356 2008-03-18  Jim Meyering  <meyering@redhat.com>
37357
37358         New script and module: mktempd
37359         * MODULES.html.sh (maint+release support): Add mktempd.
37360         * build-aux/mktempd: New file.
37361         * modules/mktempd: New file.
37362
37363 2008-03-15  Jim Meyering  <meyering@redhat.com>
37364
37365         Undo last change.
37366         * lib/sha1.c, lib/md5.c: 63 != ~63.
37367         Reported by Andreas Schwab.
37368
37369         sha1.c, md5.c: Hoist a redundant expression.
37370         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
37371         "ctx->buflen" only once, before calling *_process_block.
37372         * lib/md5.c (md5_process_bytes): Likewise.
37373
37374 2008-03-14  Eric Blake  <ebb9@byu.net>
37375
37376         Bump copyright year in files generated by gnulib-tool.
37377         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
37378         gnulib-tool, rather than hard-coding it.
37379
37380         Fix 'gnulib-tool --version' output to work with git.
37381         * gnulib-tool (func_gnulib_dir): New function, extracted from...
37382         (startup): ...here.
37383         (func_version): Use it to invoke git-version-gen, rather than
37384         relying on CVS keyword expansion.  Modernize wording.
37385         (cvsdatestamp, last_checkin_date, version): Kill unused
37386         variables.
37387
37388 2008-03-12  Jim Meyering  <meyering@redhat.com>
37389
37390         Recognize optional cast of the argument to free.
37391         * build-aux/useless-if-before-free: Update regexps.
37392
37393         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
37394
37395 2008-03-11  Bruno Haible  <bruno@clisp.org>
37396
37397         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
37398         by a single package.
37399         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
37400         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
37401         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
37402         Reported by Sam Steingold <sds@gnu.org>.
37403
37404 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37405
37406         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
37407         repositories.
37408
37409 2008-03-11  Bruno Haible  <bruno@clisp.org>
37410
37411         Avoid conflicts between local macro definitions.
37412         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37413         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
37414
37415 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
37416             Bruno Haible  <bruno@clisp.org>
37417
37418         Make va_copy work with some version of xlc on AIX 5.1.
37419         * lib/stdarg.in.h: New file.
37420         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
37421         On AIX, use a <stdarg.h> file substitute.
37422         * modules/stdarg (Files): Add lib/stdarg.in.h.
37423         (Depends-on): Add include_next.
37424         (Makefile.am): Build a stdarg.h substitute if requested.
37425         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
37426
37427 2008-03-10  Bruno Haible  <bruno@clisp.org>
37428
37429         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
37430         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37431         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
37432
37433 2008-03-10  Bruno Haible  <bruno@clisp.org>
37434
37435         * modules/stdlib (Depends-on): Add include_next, remove
37436         absolute-header.
37437
37438 2008-03-09  Bruno Haible  <bruno@clisp.org>
37439
37440         * lib/freadahead.h (freadahead): Document more precisely.
37441         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
37442         the sum of both buffer sizes.
37443         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
37444         * NEWS: Document the change.
37445
37446 2008-03-09  Bruno Haible  <bruno@clisp.org>
37447
37448         Extend freadptr to return also the buffer size.
37449         * lib/freadptr.h (freadptr): Add sizep argument.
37450         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
37451         (freadptr): Add sizep argument. Determine buffer size like freadahead
37452         does.
37453         * tests/test-freadptr.c: Don't include freadahead.h.
37454         (main): Adapt for new calling convention of freadptr.
37455         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
37456         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
37457         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
37458         tests/test-freadptr2.sh.
37459         (Depends): Remove freadahead.
37460         (TESTS): Add test-freadptr2.sh.
37461         (check_PROGRAMS): Add test-freadptr2.
37462
37463 2008-03-09  Bruno Haible  <bruno@clisp.org>
37464
37465         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
37466         Report and solution by Simon Josefsson.
37467
37468 2008-03-06  Bruno Haible  <bruno@clisp.org>
37469
37470         Make fflush after ungetc work on BSD platforms.
37471         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
37472         * tests/test-fflush2.c: New file.
37473         * tests/test-fflush2.sh: New file.
37474         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
37475         tests/test-fflush2.c.
37476         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
37477         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
37478
37479 2008-03-06  Eric Blake  <ebb9@byu.net>
37480
37481         Likewise for ftello.
37482         * modules/ftello (Dependencies): Add extensions.
37483         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
37484
37485 2008-03-06  Bruno Haible  <bruno@clisp.org>
37486
37487         * modules/fseeko (Dependencies): Add extensions.
37488         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
37489         Needed on glibc systems.
37490
37491 2008-03-06  Bruno Haible  <bruno@clisp.org>
37492
37493         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
37494         email address.
37495         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37496
37497 2008-03-06  Bruno Haible  <bruno@clisp.org>
37498
37499         * users.txt: Add libgnupdf.
37500
37501 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
37502
37503         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
37504         (Header File Substitutes, Function Substitutes,
37505         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
37506         (Build robot for gnulib): Fix typo.
37507
37508 2008-03-06  Bruno Haible  <bruno@clisp.org>
37509
37510         * doc/gnulib-tool.texi (VCS Issues): Small updates.
37511         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37512
37513 2008-03-06  Bruno Haible  <bruno@clisp.org>
37514
37515         * doc/func.texi: New file, extracted from doc/gnulib.texi.
37516         * doc/gnulib.texi: Include it.
37517
37518 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37519
37520         * modules/func (License): Change license to unlimited; there was
37521         no LGPL parts in the module anyway.
37522
37523 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37524
37525         * modules/__func__: Renamed to modules/func.
37526         * modules/__func__-tests: Renamed to modules/func-tests.
37527         * tests/test-__func__.c: Renamed to tests/test-func.c.
37528         * m4/__func__.m4: Renamed to m4/func.m4.
37529         * doc/gnulib.texi (__func__): Section renamed to func.
37530         Suggested by Eric Blake <ebb9@byu.net>.
37531
37532 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37533
37534         * doc/gnulib.texi (__func__): Use C99 terminology when talking
37535         about __func__.  Make example self-contained.  Suggested by Eric
37536         Blake <ebb9@byu.net>.
37537
37538         * tests/test-__func__.c (main): Avoid extraneous () around __func.
37539         Suggested by Eric Blake <ebb9@byu.net>.
37540
37541 2008-03-06  Simon Josefsson  <simon@josefsson.org>
37542
37543         * modules/__func__: New file.
37544         * modules/__func__-tests: New file.
37545         * tests/test-__func__.c: New file.
37546         * m4/__func__.m4: New file.
37547         * doc/gnulib.texi (__func__): Document __func__ module.
37548
37549 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37550
37551         * modules/byteswap (License): Re-license as LGPLv2+.
37552
37553 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37554
37555         * doc/Makefile: Add pdf target.
37556
37557 2008-03-05  Simon Josefsson  <simon@josefsson.org>
37558
37559         * modules/inline (License): Use 'unlimited', since there are only
37560         *.m4 files in this module.
37561
37562 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37563             Bruno Haible  <bruno@clisp.org>
37564
37565         Add support for HP C 7.1 on OpenVMS 8.3.
37566         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
37567
37568 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
37569
37570         Update VMS specifics.
37571         * lib/getopt.c [VMS]: Remove include of unixlib.h.
37572
37573 2008-03-02  Jim Meyering  <meyering@redhat.com>
37574
37575         Remove the last dependency on the "free" module.
37576         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
37577         Reported by Bob Proulx.
37578
37579         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
37580
37581         Remove useless "if" tests before free.  Deprecate "free" module.
37582         * doc/posix-functions/free.texi: Mention that this
37583         module is no longer useful.
37584         * modules/free (Notice): Say this module is obsolete.
37585         * modules/readutmp (Depends-on): Remove free.
37586         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
37587         * lib/putenv.c (putenv): Likewise.
37588         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
37589         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
37590         * tests/test-c-strcasestr.c (main): Likewise.
37591         * tests/test-c-strstr.c (main): Likewise.
37592         * tests/test-mbscasestr1.c (main): Likewise.
37593         * tests/test-mbscasestr2.c (main): Likewise.
37594         * tests/test-mbsstr1.c (main): Likewise.
37595         * tests/test-mbsstr2.c (main): Likewise.
37596         * tests/test-memmem.c (main): Likewise.
37597         * tests/test-strcasestr.c (main): Likewise.
37598         * tests/test-striconv.c (main): Likewise.
37599         * tests/test-striconveh.c (main): Likewise.
37600         * tests/test-striconveha.c (main): Likewise.
37601         * tests/test-strstr.c (main): Likewise.
37602
37603         * build-aux/git-version-gen: Adjust a comment and the Usage string.
37604
37605         bootstrap: sync from coreutils again
37606         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
37607
37608 2008-03-01  Jim Meyering  <meyering@redhat.com>
37609
37610         bootstrap: sync from coreutils
37611         * build-aux/bootstrap (update_po_files): Copy a .po file into place
37612         also when the target doesn't exist.
37613
37614 2008-03-01  Eric Blake  <ebb9@byu.net>
37615
37616         Fix bugs in last patch.
37617         * lib/memchr2.c (memchr2): Fix typo.
37618         * tests/test-memchr2.c: Test previous bug, and don't use GNU
37619         extension.
37620         Reported by Bruce Korb.
37621
37622         New module 'memchr2'.
37623         * modules/memchr2: New file.
37624         * modules/memchr2-tests: Likewise.
37625         * lib/memchr2.h: Likewise.
37626         * lib/memchr2.c: Likewise, based on memchr.c.
37627         * tests/test-memchr2.c: New test.
37628         * MODULES.html.sh (String handling): Add memchr2.
37629
37630 2008-02-29  Bruno Haible  <bruno@clisp.org>
37631
37632         * modules/freadseek-tests: New file.
37633         * tests/test-freadseek.sh: New file.
37634         * tests/test-freadseek.c: New file.
37635
37636         New module 'freadseek'.
37637         * modules/freadseek: New file.
37638         * lib/freadseek.h: New file.
37639         * lib/freadseek.c: New file.
37640         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
37641
37642 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
37643
37644         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
37645         wydawca.
37646
37647         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
37648         program_invocation_name and program_invocation_short_name are
37649         present.
37650
37651 2008-02-28  Bruno Haible  <bruno@clisp.org>
37652
37653         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
37654         * tests/test-freadptr.sh: Also test non-seekable stdin.
37655
37656 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
37657
37658         * build-aux/bootstrap (source_base, m4_base)
37659         (doc_base, tests_base): New variables.
37660         (gnulib_tool_options): Do not hardcode base directories, use
37661         the above variables instead.
37662
37663 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
37664
37665         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
37666
37667 2008-02-28  Bruno Haible  <bruno@clisp.org>
37668
37669         * modules/freadptr-tests: New file.
37670         * tests/test-freadptr.sh: New file.
37671         * tests/test-freadptr.c: New file.
37672
37673         New module 'freadptr'.
37674         * modules/freadptr: New file.
37675         * lib/freadptr.h: New file.
37676         * lib/freadptr.c: New file.
37677         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
37678
37679 2008-02-26  Karl Berry  <karl@freefriends.org>
37680
37681         Sync from Libtool:
37682         * libltdl/argz.c (argz_add, argz_count): New functions.
37683         * libltdl/argz.in.h: Declare them.
37684         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
37685
37686 2008-02-22  Bruno Haible  <bruno@clisp.org>
37687
37688         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
37689         is a pointer type.  Needed for HP-UX 10.
37690         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
37691         * doc/posix-functions/gmtime_r.texi: Likewise.
37692         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
37693
37694 2008-02-24  Bruno Haible  <bruno@clisp.org>
37695
37696         * modules/environ-tests: New file.
37697         * tests/test-environ.c: New file.
37698
37699         New module 'environ'.
37700         * modules/environ: New file.
37701         * lib/unistd.in.h (environ): New declaration.
37702         * m4/environ.m4: New file.
37703         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
37704         after use.
37705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
37706         HAVE_DECL_ENVIRON.
37707         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
37708         HAVE_DECL_ENVIRON.
37709         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
37710         wrong claim that 'environ' is missing on some systems.
37711         * modules/execute (Depends-on): Add environ.
37712         * lib/execute.c (environ): Remove fallback declaration.
37713         * modules/pipe (Depends-on): Add environ.
37714         * lib/pipe.c (environ): Remove fallback declaration.
37715         * modules/setenv (Depends-on): Add environ.
37716         * lib/setenv.c (environ): Remove fallback declaration.
37717         * modules/unsetenv (Depends-on): Add environ.
37718         * lib/unsetenv.c (environ): Remove fallback declaration.
37719         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
37720         m4/environ.m4.
37721         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
37722         (gl_PREREQ_UNSETENV): Likewise.
37723
37724 2008-02-24  Bruno Haible  <bruno@clisp.org>
37725
37726         * doc/posix-functions/environ.texi: Document the MacOS X problem.
37727
37728 2008-02-20  Bob Proulx  <bob@proulx.com>
37729
37730         Enable use of older two part flavor 'git describe'.
37731         * build-aux/git-version-gen: If using the older two part flavor of
37732         git version then recreate the third part now present in the
37733         newer three part flavor of git describe.
37734
37735 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
37736
37737         * lib/fts.c (fts_build): Typo correction to comment.
37738
37739 2008-02-17  Bruno Haible  <bruno@clisp.org>
37740
37741         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
37742         generating no-op conflicts.
37743
37744 2008-02-17  Bruno Haible  <bruno@clisp.org>
37745
37746         Speed up by 10%.
37747         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
37748         result_entries, rather than an index-based loop.
37749
37750 2008-02-17  Bruno Haible  <bruno@clisp.org>
37751
37752         Speed up by 25%.
37753         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
37754         'hashcode_cached'.
37755         (entry_create): New function.
37756         (entry_hashcode): Use the cached hashcode if possible.
37757         (read_changelog_file, try_split_merged_entry): Use entry_create.
37758
37759 2008-02-17  Bruno Haible  <bruno@clisp.org>
37760
37761         Speed up from O(n^2) to O(n) for long ChangeLog files.
37762         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
37763         (read_changelog_file): Change implementation of entries_reversed list
37764         to rbtreehash.
37765         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
37766
37767 2008-02-17  Bruno Haible  <bruno@clisp.org>
37768
37769         New option --split-merged-entry.
37770         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
37771         (find_paragraph_end, try_split_merged_entry): New functions.
37772         (long_options): Add option --split-merged-entry.
37773         (usage): Document option --split-merged-entry.
37774         (main): Implement option --split-merged-entry.
37775         Reported by Eric Blake.
37776
37777 2008-02-17  Bruno Haible  <bruno@clisp.org>
37778
37779         * lib/git-merge-changelog.c: Include c-strstr.h.
37780         (main): Support the "git pull --rebase" situation.
37781         * modules/git-merge-changelog (Depends-on): Add c-strstr.
37782         Reported by Eric Blake.
37783
37784 2008-02-16  Eric Blake  <ebb9@byu.net>
37785
37786         Avoid doubling \ in common case of "c-maybe" quoting style.
37787         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
37788         eliding outer quotes.
37789         * lib/quotearg.h: Document this.
37790         * tests/test-quotearg.c (result_strings, inputs, results_g)
37791         (flag_results, locale_results): Test it by adding a new string to
37792         each test group.
37793         (compare_strings): Test new string.
37794
37795 2008-02-13  Eric Blake  <ebb9@byu.net>
37796
37797         Avoid trigraph quoting in default output.
37798         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
37799         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
37800         unless explicitly requested.
37801         * tests/test-quotearg.c (flag_results, main): Add additional tests.
37802
37803 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
37804
37805         Don't rely on signed integer overflowing to negative value.
37806         * lib/getugroups.c (getugroups): Include <limits.h>.
37807         Instead, compare against INT_MAX, and increment only if the test passes.
37808
37809 2008-02-13  Jim Meyering  <meyering@redhat.com>
37810         and Eric Blake  <ebb9@byu.net>
37811
37812         Avoid shadowing warning and compile errors on Linux.
37813         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
37814         forwarding macros on Linux.
37815         (dcgettext): Define a stub, for Linux.
37816         (results_g, main): Avoid warnings.
37817
37818 2008-02-12  Eric Blake  <ebb9@byu.net>
37819
37820         Silence warning in last patch.
37821         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
37822
37823         Quotearg part 4: add tests, fix c-maybe colon quoting.
37824         * lib/quotearg.h: Improve documentation.
37825         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
37826         escapes when adding outer quotes.  When quoting trigraphs, use
37827         valid C notation.  When quoting NUL, omit extra characters if next
37828         character is not digit.  Alter prototype.
37829         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
37830         callers.
37831         * modules/quotearg-tests: New module.
37832         * tests/test-quotearg.c: New test.
37833
37834 2008-02-07  Eric Blake  <ebb9@byu.net>
37835
37836         Quotearg part 3: add flag to control outer quote elision.
37837         * lib/quotearg.h (c_maybe_quoting_style): New style.
37838         (enum quoting_flags): Better documentation of flags.
37839         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
37840         c-maybe style.
37841         (quotearg_buffer_restyled): Handle new flag to elide outer
37842         quotes.
37843
37844         Quotearg part 2: add flag that can control NUL elision.
37845         * lib/quotearg.h (set_quoting_flags): New prototype.
37846         * lib/quotearg.c (struct quoting_options): Add flag field.
37847         (set_quoting_flags): New function.
37848         (quotearg_buffer_restyled): Add flags parameter.
37849         (quotearg_alloc_mem): Set the flag if length cannot be returned.
37850         (quotearg_n_options): Set the flag, since length cannot be
37851         returned.
37852         (quoting_options_from_style): Default flags correctly.
37853
37854         Quotearg part 1: more wrappers, restore quotearg_char state.
37855         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
37856         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
37857         (quotearg_colon_mem): New wrappers.
37858         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
37859         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
37860         functions.
37861         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
37862         (quotearg_colon_mem): New functions.
37863
37864 2008-02-11  Bruno Haible  <bruno@clisp.org>
37865
37866         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
37867         library in the current directory: it does not work with parallel make.
37868         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37869
37870 2008-02-11  Bruno Haible  <bruno@clisp.org>
37871
37872         * .gitattributes: New file.
37873
37874 2008-02-11  Jim Meyering  <meyering@redhat.com>
37875
37876         useless-if-before-free: Fix reversed exit values.
37877         * build-aux/useless-if-before-free: Use correct values
37878         for EXIT_MATCH and EXIT_NO_MATCH.
37879
37880         * build-aux/useless-if-before-free: Close stdout carefully.
37881
37882 2008-02-10  Bruno Haible  <bruno@clisp.org>
37883
37884         New module 'git-merge-changelog'.
37885         * modules/git-merge-changelog: New file.
37886         * lib/git-merge-changelog.c: New file.
37887
37888 2008-02-10  Jim Meyering  <meyering@redhat.com>
37889
37890         useless-if-before-free: New option: --list (-l).
37891
37892         useless-if-before-free: Don't exit immediately upon open failure.
37893         * build-aux/useless-if-before-free: Exit 2 for errors.
37894         Upon failure to open a file, don't exit immediately.
37895         Rather, just warn and continue with any remaining files.
37896
37897 2008-02-10  Bruno Haible  <bruno@clisp.org>
37898
37899         New abstract list operation 'node_set_value'.
37900         * lib/gl_list.h (gl_list_node_set_value): New function.
37901         (struct gl_list_implementation): New field node_set_value.
37902         * lib/gl_list.c (gl_list_node_set_value): New function.
37903         * lib/gl_array_list.c (gl_array_node_set_value): New function.
37904         (gl_array_list_implementation): Update.
37905         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
37906         (gl_carray_list_implementation): Update.
37907         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
37908         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
37909         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
37910         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
37911         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
37912         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
37913         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
37914         Update.
37915         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
37916         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
37917         (gl_sublist_list_implementation): Update.
37918
37919 2008-02-10  Bruno Haible  <bruno@clisp.org>
37920
37921         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
37922         Needed when ELEMENT is #defined to 'some_type *'.
37923
37924 2008-02-10  Jim Meyering  <meyering@redhat.com>
37925
37926         New script and module: useless-if-before-free
37927         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
37928         * build-aux/useless-if-before-free: New file.
37929         * modules/useless-if-before-free: New file.
37930
37931         * build-aux/gitlog-to-changelog: Use committer date, not author date.
37932
37933         xstrtol_error: Fix typo.
37934         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
37935         s/exit_failure/exit_status/.
37936
37937 2008-02-09  Jim Meyering  <meyering@redhat.com>
37938
37939         New script and module: gitlog-to-changelog
37940         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
37941         * modules/gitlog-to-changelog: New file.
37942         * build-aux/gitlog-to-changelog: New file.
37943
37944 2008-02-08  Jim Meyering  <meyering@redhat.com>
37945
37946         Avoid two "parameter unused" warnings.
37947         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
37948         Mark "st" as used.
37949
37950         Use "git COMMAND", not "git-COMMAND".
37951         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
37952         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
37953         * build-aux/git-version-gen: Use "git status", not "git-status".
37954
37955 2008-02-07  Bruno Haible  <bruno@clisp.org>
37956
37957         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
37958         Avoids a crash on Windows Vista.
37959         Reported by Adam Strzelecki <ono@java.pl> via
37960         Simon Josefsson <simon@josefsson.org>.
37961
37962 2008-02-06  Bruno Haible  <bruno@clisp.org>
37963
37964         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
37965         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
37966         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
37967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
37968         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37969         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37970         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
37971         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
37972         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37973         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37974         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37975         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37976         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37977         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37978         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37979         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
37980         left-adjust flag.
37981         * tests/test-snprintf-posix.h (test_function): Likewise.
37982         * tests/test-sprintf-posix.h (test_function): Likewise.
37983         * tests/test-vasprintf-posix.c (test_function): Likewise.
37984         * doc/posix-functions/fprintf.texi: Update.
37985         * doc/posix-functions/printf.texi: Update.
37986         * doc/posix-functions/snprintf.texi: Update.
37987         * doc/posix-functions/sprintf.texi: Update.
37988         * doc/posix-functions/vfprintf.texi: Update.
37989         * doc/posix-functions/vprintf.texi: Update.
37990         * doc/posix-functions/vsnprintf.texi: Update.
37991         * doc/posix-functions/vsprintf.texi: Update.
37992         Reported by Peter Fales <psfales@alcatel-lucent.com>.
37993
37994 2008-02-06  Bruno Haible  <bruno@clisp.org>
37995
37996         Fix bug introduced on 2008-01-26.
37997         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
37998
37999 2008-02-06  Bruno Haible  <bruno@clisp.org>
38000
38001         Fix bug introduced on 2007-06-10.
38002         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
38003         !NEED_PRINTF_FLAG_ZERO.
38004
38005 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
38006
38007         getloadavg: use libperfstat on AIX5
38008         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
38009
38010 2008-02-03  Bruno Haible  <bruno@clisp.org>
38011
38012         * lib/diffseq.h: Add comments about required #includes.
38013         Reported by Michael Biggs <gnulib@doubleplum.net>.
38014
38015 2008-02-01  Bruno Haible  <bruno@clisp.org>
38016
38017         * users.txt: Add gnuit.
38018
38019 2008-01-31  Bruno Haible  <bruno@clisp.org>
38020
38021         * lib/md4.c (set_uint32): Mark as inline.
38022         * lib/md5.c (set_uint32): Likewise.
38023         * lib/sha1.c (set_uint32): Likewise.
38024         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
38025         * m4/md5.m4 (gl_MD5): Likewise.
38026         * m4/sha1.m4 (gl_SHA1): Likewise.
38027
38028 2008-01-31  Jim Meyering  <meyering@redhat.com>
38029
38030         Use "sizeof VAR", rather than a literal "4".
38031         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
38032         * lib/md4.c (md4_read_ctx): Likewise.
38033         * lib/sha1.c (sha1_read_ctx): Likewise.
38034
38035 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38036
38037         * tests/test-sha1.c: New file, based on test-md5.c.
38038
38039         * modules/crypto/sha1-tests: New file.
38040
38041 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38042
38043         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
38044
38045 2008-01-31  Jim Meyering  <meyering@redhat.com>
38046
38047         Prefer "sizeof v" over the equivalent "4".
38048         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
38049         * lib/md5.c (set_uint32): Likewise.
38050         * lib/sha1.c (set_uint32): Likewise.
38051
38052 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38053
38054         * lib/sha1.c (set_uint32): Mark function as static.
38055
38056 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38057
38058         md2: clarify comments to say that alignment is not required.
38059         * lib/md2.h: Remove warning about alignment in comment.
38060         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
38061         never been required.
38062
38063 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38064
38065         md4: adapt alignment constraint fix from sha1.
38066         * lib/md4.c (set_uint32): New function, from sha1.c
38067         (md4_read_ctx): Use it.
38068         (md4_finish_ctx): Doc fix.
38069         * lib/md4.h: Doc fix.
38070
38071 2008-01-31  Simon Josefsson  <simon@josefsson.org>
38072
38073         md5: adapt alignment constraint fix from sha1.
38074         * lib/md5.c (set_uint32): New function, from sha1.c
38075         (md5_read_ctx): Use it.
38076         (md5_finish_ctx): Doc fix.
38077         * lib/md5.h: Doc fix.
38078
38079 2008-01-30  Peter Palfrader  <weasel@debian.org>
38080
38081         sha1: remove the result buffer alignment constraint
38082         * lib/sha1.c (set_uint32): New function.
38083         (sha1_read_ctx): Rewrite to remove the result buffer alignment
38084         constraint.
38085         (sha1_finish_ctx): Remove comment warning about alignment constraint.
38086         * lib/sha1.h: Likewise.
38087
38088 2008-01-30  Andreas Schwab  <schwab@suse.de>
38089             Bruno Haible  <bruno@clisp.org>
38090
38091         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
38092         correct definition of LDBL_MIN_EXP.
38093
38094 2008-01-30  Karl Berry  <karl@gnu.org>
38095
38096         * config/srclist-update: try to preserve x bit on updates.
38097         * config/srclistvars.sh: update for karl.
38098
38099 2008-01-29  Jim Meyering  <meyering@redhat.com>
38100
38101         vasnprintf.c: Avoid warning about unused label
38102         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
38103         "overflow" label definition and associated code with the
38104         same cpp condition that guards the sole use of that label.
38105
38106 2008-01-26  Bruno Haible  <bruno@clisp.org>
38107
38108         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
38109         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
38110         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
38111         * lib/isnanl-nolibm.h (isnanl): Likewise.
38112         Reported by Paul Eggert <eggert@cs.ucla.edu>.
38113
38114 2008-01-26  Bruno Haible  <bruno@clisp.org>
38115
38116         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
38117         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
38118
38119 2008-01-26  Bruno Haible  <bruno@clisp.org>
38120
38121         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
38122         GCC >= 4.0 built-in.
38123         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
38124
38125 2008-01-26  Bruno Haible  <bruno@clisp.org>
38126
38127         Rename isnan, applicable to 'double' only, to isnand.
38128         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
38129         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
38130         (configure.ac): Update.
38131         (Include): Replace "isnan.h" with "isnand.h".
38132         * m4/isnand.m4: Renamed from m4/isnan.m4.
38133         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
38134         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
38135         instead of isnan.c.
38136         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
38137         instead of HAVE_ISNAN_IN_LIBC.
38138         (isnand): Renamed from isnan.
38139         * lib/isnand.c: New file.
38140         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
38141         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
38142         (Makefile.am): Update.
38143         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
38144         Include isnand.h instead of isnan.h.
38145         (main): Test isnand instead of isnan.
38146         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
38147         isnan-nolibm.
38148         * modules/frexp (Depends-on): Likewise.
38149         * modules/frexp-tests (Depends-on): Likewise.
38150         * modules/frexp-nolibm (Depends-on): Likewise.
38151         * modules/frexp-nolibm-tests (Depends-on): Likewise.
38152         * modules/isfinite (Depends-on): Likewise.
38153         * modules/round-tests (Depends-on): Likewise.
38154         * modules/signbit (Depends-on): Likewise.
38155         * modules/signbit-tests (Depends-on): Likewise.
38156         * modules/snprintf-posix (Depends-on): Likewise.
38157         * modules/sprintf-posix (Depends-on): Likewise.
38158         * modules/trunc-tests (Depends-on): Likewise.
38159         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38160         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38161         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38162         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38163         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38164         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38165         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38166         * modules/vasnprintf-posix (Depends-on): Likewise.
38167         * modules/vasprintf-posix (Depends-on): Likewise.
38168         * modules/vfprintf-posix (Depends-on): Likewise.
38169         * modules/vsnprintf-posix (Depends-on): Likewise.
38170         * modules/vsprintf-posix (Depends-on): Likewise.
38171         * lib/frexp.c: Include isnand.h instead of isnan.h.
38172         (ISNAN): Set to isnand instead of isnan.
38173         * lib/isfinite.c: Include isnand.h instead of isnan.h.
38174         (gl_isfinited): Use isnand instead of isnan.
38175         * lib/signbitd.c: Include isnand.h instead of isnan.h.
38176         (gl_signbitd): Use isnand instead of isnan.
38177         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
38178         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
38179         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
38180         (main): Use isnand instead of isnan.
38181         * tests/test-round1.c: Include isnand.h.
38182         (main): Use isnand instead of isnan.
38183         * tests/test-round2.c: Include isnand.h instead of isnan.h.
38184         (ISNAN): Set to isnand instead of isnan.
38185         * tests/test-trunc1.c: Include isnand.h.
38186         (main): Use isnand instead of isnan.
38187         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
38188         (equal): Use isnand instead of isnan.
38189         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
38190         isnand-nolibm.
38191         * NEWS: Mention the change.
38192
38193 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
38194             Bruno Haible  <bruno@clisp.org>
38195
38196         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
38197         the GCC builtins for signbits are present and set
38198         REPLACE_SIGNBIT_USING_GCC if so.
38199         * lib/math.in.h (signbit): Define using GCC builtins if
38200         REPLACE_SIGNBIT_USING_GCC is set.
38201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
38202         REPLACE_SIGNBIT_USING_GCC.
38203         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
38204
38205 2008-01-25  Jim Meyering  <meyering@redhat.com>
38206
38207         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
38208         * lib/poll.c: Include <config.h>, not "config.h".
38209         * tests/test-getaddrinfo.c: Likewise.
38210
38211 2008-01-25  Simon Josefsson  <simon@josefsson.org>
38212
38213         * modules/sockets-tests: New file.
38214
38215 2008-01-24  Simon Josefsson  <simon@josefsson.org>
38216
38217         * modules/sockets: New module, can be used to call WSA_Startup and
38218         WSA_Cleanup when needed.
38219
38220         * lib/sockets.h, lib/sockets.c: New files.
38221
38222         * m4/sockets.m4: New file.
38223
38224         * tests/test-sockets.c: New file.
38225
38226 2008-01-19  Bruno Haible  <bruno@clisp.org>
38227
38228         * doc/posix-headers: Renamed from doc/headers.
38229         * doc/posix-functions: Renamed from doc/functions.
38230         * doc/gnulib.texi: Update.
38231
38232 2008-01-19  Bruno Haible  <bruno@clisp.org>
38233
38234         * doc/glibc-functions/strcasestr.texi: Include contents of
38235         doc/functions/strcasestr.texi, fixing the list of platforms.
38236         * doc/functions/strcasestr.texi: Remove file.
38237
38238 2008-01-19  Bruno Haible  <bruno@clisp.org>
38239
38240         * doc/glibc-functions/memmem.texi: Include contents of
38241         doc/functions/memmem.texi.
38242         * doc/functions/memmem.texi: Remove file.
38243
38244 2008-01-18  Bruno Haible  <bruno@clisp.org>
38245
38246         * doc/glibc-functions/*.texi: New files.
38247         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
38248         to use the new files.
38249
38250 2008-01-17  Bruno Haible  <bruno@clisp.org>
38251
38252         * tests/test-gethostname.c (main): Fix printf statement.
38253
38254 2008-01-17  Simon Josefsson  <simon@josefsson.org>
38255
38256         * modules/gethostname-tests: New file.
38257
38258         * tests/test-gethostname.c: New file.
38259
38260 2008-01-17  Simon Josefsson  <simon@josefsson.org>
38261
38262         * lib/gethostname.c: Include string.h unconditionally, strncpy is
38263         used by the UNAME case.  Reported by Bruno Haible
38264         <bruno@clisp.org>.
38265
38266 2008-01-17  Eric Blake  <ebb9@byu.net>
38267
38268         Convert c-strcasestr to be more efficient.
38269         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
38270         (Depends-on): Add c-strcase, remove malloca, strnlen.
38271         * tests/test-c-strcasestr.c (main): Enhance test.
38272         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
38273
38274 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
38275
38276         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
38277         Use it in creating po/Makevars.
38278
38279 2008-01-15  Simon Josefsson  <simon@josefsson.org>
38280
38281         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
38282         Applications that requires it should initialize libgcrypt
38283         manually.
38284
38285 2008-01-16  Simon Josefsson  <simon@josefsson.org>
38286
38287         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
38288
38289 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
38290
38291         Fix problem with getdate on mingw32 reported by Simon Josefsson
38292         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
38293         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
38294         tzname", when deciding whether to declare tzname.
38295         * lib/strftime.c (tzname): Likewise.
38296
38297 2008-01-15  Bruno Haible  <bruno@clisp.org>
38298
38299         Work around a MacOS X 10.5 bug in frexpl().
38300         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
38301         * doc/functions/frexpl.texi: Document the bug.
38302         Reported by Elias Pipping <pipping@gentoo.org>.
38303
38304 2008-01-14  Eric Blake  <ebb9@byu.net>
38305
38306         Touch up previous patch.
38307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
38308         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
38309
38310         Convert strcasestr module to use Two-Way algorithm.
38311         * modules/strcasestr-simple: New module, based on the old
38312         strcasestr, but with Two-Way rather than KMP.
38313         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
38314         * lib/string.in.h (rpl_strcasestr): Declare.
38315         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
38316         performance.
38317         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
38318         * modules/string (Makefile.am): Support strcasestr.
38319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38320         * modules/strcasestr-tests (Depends-on): Check for alarm.
38321         * tests/test-strcasestr.c: Augment test.
38322         * lib/str-two-way.h: Clean up stray macro.
38323         * NEWS: Document new module.
38324         * MODULES.html.sh (string handling): Likewise.
38325         * doc/functions/strcasestr.texi: New file.
38326         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
38327         here, since it is not a POSIX function.
38328
38329 2008-01-14  Colin Watson  <cjwatson@debian.org>
38330             Bruno Haible  <bruno@clisp.org>
38331
38332         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
38333         works fine; if not, set REPLACE_STRSIGNAL.
38334         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
38335         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38336         REPLACE_STRSIGNAL.
38337         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
38338         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
38339         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
38340
38341 2008-01-14  Bruno Haible  <bruno@clisp.org>
38342
38343         * modules/strsignal (Include): Change to <string.h>.
38344
38345 2008-01-14  Colin Watson  <cjwatson@debian.org>
38346
38347         * modules/argp (Notice): Add a notice recommending to change
38348         XGETTEXT_OPTIONS.
38349         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
38350
38351 2008-01-13  Colin Watson  <cjwatson@debian.org>
38352
38353         * modules/strsignal-tests: New file.
38354         * tests/test-strsignal.c: New file.
38355
38356         * lib/strsignal.c: New file, from glibc with modifications.
38357         * lib/siglist.h: New file, from glibc with modifications.
38358         * lib/string.in.h (strsignal): New declaration.
38359         * m4/strsignal.m4: New file.
38360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38361         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
38362         * modules/strsignal: New file.
38363         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
38364         HAVE_DECL_STRSIGNAL.
38365
38366 2008-01-13  Bruno Haible  <bruno@clisp.org>
38367
38368         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
38369         locale encoding is not ASCII. Needed for OpenBSD 4.0.
38370         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
38371         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38372
38373 2008-01-13  Bruno Haible  <bruno@clisp.org>
38374
38375         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
38376         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
38377         * lib/argp.h (__attribute__): Likewise.
38378         * lib/c-stack.c (__attribute__): Likewise.
38379         * lib/error.h (__attribute__): Likewise.
38380         * lib/fts.c (__attribute__): Likewise.
38381         * lib/openat.h (__attribute__): Likewise.
38382         * lib/stdio.in.h (__attribute__): Likewise.
38383         * lib/string.in.h (__attribute__): Likewise.
38384         * lib/utimens.c (__attribute__): Likewise.
38385         * lib/vasnprintf.h (__attribute__): Likewise.
38386         * lib/xalloc.h (__attribute__): Likewise.
38387         * lib/xprintf.h (__attribute__): Likewise.
38388         * lib/xstrtol.h (__attribute__): Likewise.
38389         * lib/xvasprintf.h (__attribute__): Likewise.
38390
38391 2008-01-12  Bruno Haible  <bruno@clisp.org>
38392
38393         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
38394         * doc/glibc-headers/a.out.texi: New file.
38395         * doc/glibc-headers/aliases.texi: New file.
38396         * doc/glibc-headers/alloca.texi: New file.
38397         * doc/glibc-headers/ar.texi: New file.
38398         * doc/glibc-headers/argp.texi: New file.
38399         * doc/glibc-headers/argz.texi: New file.
38400         * doc/glibc-headers/byteswap.texi: New file.
38401         * doc/glibc-headers/crypt.texi: New file.
38402         * doc/glibc-headers/endian.texi: New file.
38403         * doc/glibc-headers/envz.texi: New file.
38404         * doc/glibc-headers/err.texi: New file.
38405         * doc/glibc-headers/error.texi: New file.
38406         * doc/glibc-headers/execinfo.texi: New file.
38407         * doc/glibc-headers/fpu_control.texi: New file.
38408         * doc/glibc-headers/fstab.texi: New file.
38409         * doc/glibc-headers/fts.texi: New file.
38410         * doc/glibc-headers/getopt.texi: New file.
38411         * doc/glibc-headers/ieee754.texi: New file.
38412         * doc/glibc-headers/ifaddrs.texi: New file.
38413         * doc/glibc-headers/libintl.texi: New file.
38414         * doc/glibc-headers/mcheck.texi: New file.
38415         * doc/glibc-headers/mntent.texi: New file.
38416         * doc/glibc-headers/obstack.texi: New file.
38417         * doc/glibc-headers/paths.texi: New file.
38418         * doc/glibc-headers/printf.texi: New file.
38419         * doc/glibc-headers/pty.texi: New file.
38420         * doc/glibc-headers/resolv.texi: New file.
38421         * doc/glibc-headers/shadow.texi: New file.
38422         * doc/glibc-headers/sysexits.texi: New file.
38423         * doc/glibc-headers/ttyent.texi: New file.
38424
38425 2008-01-12  Jim Meyering  <meyering@redhat.com>
38426
38427         announce-gen: emit Gnulib's git-based version string.
38428         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
38429         New option --gnulib-version=V, where V is expected to be
38430         the output of running git describe in the gnulib directory.
38431         (get_tool_versions): Request feedback on xdelta.  I suspect it's
38432         not useful, and plan to stop publishing an xdelta file with each
38433         coreutils release.
38434
38435         * build-aux/announce-gen: Also check for lzma-compressed files.
38436
38437 2008-01-11  Bruno Haible  <bruno@clisp.org>
38438
38439         * tests/test-memmem.c (main): Increase maximum allowed time.
38440         * tests/test-strstr.c (main): Likewise.
38441
38442 2008-01-11  Bruno Haible  <bruno@clisp.org>
38443
38444         * doc/functions/memmem.texi: Add more precisions about platforms.
38445         * doc/functions/strstr.texi: Likewise.
38446
38447 2008-01-10  Eric Blake  <ebb9@byu.net>
38448
38449         * m4/strstr.m4: Delete cruft from copy-n-paste.
38450         Reported by Bruno Haible.
38451
38452 2008-01-10  Bruno Haible  <bruno@clisp.org>
38453
38454         Make c-strstr rely on strstr.
38455         * lib/c-strstr.c: Don't include str-kmp.h.
38456         (c_strstr): Define in terms of strstr.
38457         * modules/c-strstr (Files): Remove lib/str-kmp.h.
38458         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
38459
38460 2008-01-10  Bruno Haible  <bruno@clisp.org>
38461
38462         * doc/gnulib.texi (String Functions in C Locale): New section.
38463         * doc/c-ctype.texi: New file.
38464         * doc/c-strcase.texi: New file.
38465         * doc/c-strcaseeq.texi: New file.
38466         * doc/c-strcasestr.texi: New file.
38467         * doc/c-strstr.texi: New file.
38468         * doc/c-strtod.texi: New file.
38469         * doc/c-strtold.texi: New file.
38470
38471 2008-01-10  Eric Blake  <ebb9@byu.net>
38472
38473         * lib/relocatable.h: Fix a comment.
38474
38475 2008-01-10  Eric Blake  <ebb9@byu.net>
38476
38477         Share two-way algorithm.
38478         * lib/str-two-way.h: New file, merged from...
38479         * lib/memmem.c: ...here...
38480         * lib/strstr.c: ...and here.
38481         * modules/memmem (Files): Use it.
38482         * modules/strstr (Files): Likewise.
38483
38484         Avoid quadratic strstr implementations.
38485         * lib/strstr.c: New file.
38486         * m4/strstr.m4: Likewise.
38487         * modules/strstr: Likewise.
38488         * modules/strstr-tests: Likewise.
38489         * tests/test-strstr.c: Likewise.
38490         * lib/string.in.h (rpl_strstr): Declare.
38491         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
38492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
38493         * modules/string (Makefile.am): Likewise.
38494         * MODULES.html.sh (string handling): Mention new module.
38495         * doc/functions/strstr.texi (strstr): Document the bug.
38496
38497 2008-01-10  Bruno Haible  <bruno@clisp.org>
38498
38499         * lib/relocatable.h (relocate): State whether result is freshly
38500         allocated or not.
38501         * lib/relocatable.c (relocate): Return a freshly allocated string
38502         instead of a pointer to a privately held string.
38503         Reported by Sylvain Beucler <beuc@gnu.org>.
38504
38505 2008-01-10  Colin Watson  <cjwatson@debian.org>
38506
38507         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
38508         s/S_ISNLK/S_ISLNK/.
38509
38510 2008-01-09  Bruno Haible  <bruno@clisp.org>
38511
38512         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
38513         and other files.
38514         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
38515         if it's only a guess.
38516         * modules/memmem: Simplify by depending on memmem-simple.
38517
38518 2008-01-09  Bruno Haible  <bruno@clisp.org>
38519
38520         Work around OpenBSD 4.0 tdelete() bug.
38521         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
38522         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
38523         macros and don't redefine the enum values.
38524         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
38525         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
38526         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
38527
38528 2008-01-09  Bruno Haible  <bruno@clisp.org>
38529
38530         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
38531         (main): Don't perform the tests if setlocale did not install a UTF-8
38532         locale. Needed on OpenBSD 4.0.
38533         * modules/wcwidth-tests (Depends-on): Add localcharset.
38534
38535 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
38536
38537         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
38538         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
38539         * NEWS: announce this.
38540         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
38541
38542 2008-01-09  Simon Josefsson  <simon@josefsson.org>
38543         and Eric Blake  <ebb9@byu.net>
38544
38545         Add memmem-simple module.
38546         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
38547         (gl_FUNC_MEMMEM): Separate performance from presence checks.
38548         * modules/memmem-simple: New file.
38549         * modules/memmem (Description): Tweak.
38550         * MODULES.html.sh (string handling): Mention new module.
38551         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
38552         addressed by memmem-simple.
38553         * NEWS: Document the difference.
38554
38555 2008-01-09  Eric Blake  <ebb9@byu.net>
38556
38557         Give gcc some memmem optimization hints.
38558         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
38559         (strcasestr): Declare as pure.
38560         * modules/memmem (Maintainer): Claim my implementation.
38561
38562 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38563
38564         Support AIX 6.1 and higher.
38565         * build-aux/config.libpath: Likewise.
38566         * build-aux/config.rpath: Likewise.
38567
38568 2008-01-08  Jim Meyering  <meyering@redhat.com>
38569             Bruno Haible  <bruno@clisp.org>
38570
38571         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
38572         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
38573         Reported by Peter Fales in
38574         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
38575
38576 2008-01-08  Bruno Haible  <bruno@clisp.org>
38577
38578         * modules/unictype/category-of (Depends-on): Add
38579         unictype/category-none.
38580         * modules/unictype/category-and-tests (Depends-on): Add
38581         unictype/category-{L,N,Lu,Nd}.
38582         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
38583         * modules/unictype/category-or-tests (Depends-on): Add
38584         unictype/category-{L,N}.
38585         * modules/unictype/category-name-tests (Depends-on): Add
38586         unictype/category-{Z,Nl}.
38587         Reported by Simon Josefsson.
38588
38589 2008-01-08  Bruno Haible  <bruno@clisp.org>
38590
38591         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
38592         convention better.
38593         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
38594         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
38595         Reported by Peter Miller <millerp@canb.auug.org.au>.
38596
38597 2008-01-08  Eric Blake  <ebb9@byu.net>
38598
38599         Rewrite memmem to guarantee linear complexity without malloc.
38600         * lib/memmem.c (memmem): Use Two-Way rather than
38601         Knuth-Morris-Pratt, to allow O(1) space usage.
38602         (critical_factorization, two_way_short_needle)
38603         (two_way_long_needle): New functions.
38604         (knuth_morris_pratt): Delete.
38605         * modules/memmem (Depends-on): No longer need malloca or stdbool.
38606         Add stdint.
38607         * tests/test-memmem.c (main): Add tests for periodic needle and
38608         sublinear performance.
38609         * doc/functions/memmem.texi (memmem): Document other deficiencies
38610         in cygwin and older glibc.
38611
38612 2008-01-08  Bruno Haible  <bruno@clisp.org>
38613
38614         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
38615         augmentation.
38616
38617 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
38618
38619         Add a configure time option: --disable-acl.
38620         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
38621         AC_ARG_ENABLE(acl).
38622
38623 2008-01-06  Simon Josefsson  <simon@josefsson.org>
38624
38625         * tests/test-localename.c: Don't include obsolete "setenv.h".
38626
38627         * modules/localename-tests (Depends-on): Need unsetenv.
38628
38629 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38630
38631         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
38632
38633 2008-01-06  Colin Watson  <cjwatson@debian.org>
38634
38635         * users.txt: Add man-db.
38636
38637 2008-01-07  Bruno Haible  <bruno@clisp.org>
38638
38639         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
38640         previous section name.
38641
38642 2008-01-07  Bruno Haible  <bruno@clisp.org>
38643
38644         * lib/progname.c (set_program_name): Don't strip off a leading
38645         "lt-" prefix outside a .libs directory.
38646         Suggested by Paul Eggert.
38647
38648 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
38649             Bruno Haible  <bruno@clisp.org>
38650
38651         Improve memory cleanup in 'relocatable' module.
38652         * lib/relocatable.h (compute_curr_prefix): Change return type to
38653         'char *'.
38654         * lib/relocatable.c (compute_curr_prefix): Change return type to
38655         'char *'. Free curr_installdir after use.
38656         (relocate): Free curr_prefix_better after use.
38657         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
38658
38659 2008-01-01  Bruno Haible  <bruno@clisp.org>
38660
38661         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
38662         failure on older glibc systems.
38663         Reported by Peter Fales <psfales@alcatel-lucent.com>.
38664
38665 2008-01-05  Eric Blake  <ebb9@byu.net>
38666
38667         Avoid quadratic system memmem.
38668         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
38669         Reported by Ralf Wildenhues.
38670
38671         Fix memmem test for mingw.
38672         * modules/memmem-tests (configure.ac): Check for alarm.
38673         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
38674         it.
38675         * doc/functions/memmem.texi: New file.
38676         * doc/gnulib.texi (Function Substitutes): Add memmem.
38677         Reported by Bruno Haible.
38678
38679 2008-01-04  Bruno Haible  <bruno@clisp.org>
38680
38681         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
38682         Require gl_HEADER_STRINGS_H_DEFAULTS, not
38683         gl_HEADER_STRING_H_DEFAULTS.
38684
38685 2008-01-04  Eric Blake  <ebb9@byu.net>
38686
38687         Shorten duration of memmem test.
38688         * tests/test-memmem.c (main): Use alarm to declare failure if test
38689         is taking too long.
38690         Reported by Ralf Wildenhues.
38691
38692 2007-12-21  Simon Josefsson  <simon@josefsson.org>
38693
38694         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
38695         string, needed by strerror.
38696
38697 2008-01-03  Colin Watson  <cjwatson@debian.org>
38698             Bruno Haible  <bruno@clisp.org>
38699
38700         * doc/gnulib-tool.texi (Localization): New section.
38701
38702 2008-01-02  Bruno Haible  <bruno@clisp.org>
38703
38704         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
38705         variables to 'unsigned char *' type.
38706         Reported by Paul Eggert.
38707
38708 2008-01-02  Jim Meyering  <jim@meyering.net>
38709
38710         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
38711
38712 2007-12-31  Jim Meyering  <jim@meyering.net>
38713
38714         Avoid use of private FTS type name.
38715         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
38716
38717 2007-12-30  Karl Berry  <karl@gnu.org>
38718
38719         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
38720         work around defect in Texinfo and/or the standalone Info browser.
38721
38722 2007-12-30  Bruno Haible  <bruno@clisp.org>
38723
38724         Unify 5 copies of the KMP code.
38725         * lib/str-kmp.h: New file.
38726         * lib/c-strcasestr.c: Include str-kmp.h.
38727         (knuth_morris_pratt): Remove function.
38728         (c_strcasestr): Update.
38729         * lib/c-strstr.c: Include str-kmp.h.
38730         (knuth_morris_pratt): Remove function.
38731         (c_strcasestr): Update.
38732         * lib/mbscasestr.c: Include str-kmp.h.
38733         (knuth_morris_pratt_unibyte): Remove function.
38734         * lib/mbsstr.c: Include str-kmp.h.
38735         (knuth_morris_pratt_unibyte): Remove function.
38736         * lib/strcasestr.c: Include str-kmp.h.
38737         (knuth_morris_pratt): Remove function.
38738         (strcasestr): Update.
38739         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
38740         * modules/c-strstr (Files): Likewise.
38741         * modules/mbscasestr (Files): Likewise.
38742         * modules/mbsstr (Files): Likewise.
38743         * modules/strcasestr (Files): Likewise.
38744         Suggested by Paul Eggert.
38745
38746 2007-12-30  Bruno Haible  <bruno@clisp.org>
38747
38748         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
38749         defined.
38750
38751 2007-12-30  Bruno Haible  <bruno@clisp.org>
38752
38753         * lib/xmalloca.h: Include xalloc.h.
38754         (xnmalloca): New macro.
38755
38756 2007-12-30  Bruno Haible  <bruno@clisp.org>
38757
38758         * lib/malloca.h (nmalloca): New macro.
38759         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
38760         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
38761         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
38762         knuth_morris_pratt_multibyte): Likewise.
38763         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
38764         knuth_morris_pratt_multibyte): Likewise.
38765         * lib/memmem.c (knuth_morris_pratt): Likewise.
38766         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
38767
38768 2007-12-25  Bruno Haible  <bruno@clisp.org>
38769
38770         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
38771         * lib/glob.c: Don't include openat.h.
38772         (link_exists2_p): Add back the code that deals with the
38773         !GLOB_ALTDIRFUNC case.
38774         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
38775         let it do the filename concatenation.
38776         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
38777         * modules/glob (Depends-on): Remove openat.
38778
38779 2007-12-31  Bruno Haible  <bruno@clisp.org>
38780
38781         * modules/dirfd (License): Change to LGPLv2+.
38782         Approved by Jim Meyering.
38783
38784 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38785
38786         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
38787         when multiplying M by sizeof (size_t).
38788
38789 2007-12-10  Martin Lambers  <marlam@marlam.de>
38790
38791         Override getpagesize on mingw.
38792         * lib/getpagesize.c: New file.
38793         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
38794         * modules/getpagesize (Files): Add lib/getpagesize.c.
38795         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
38796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38797         REPLACE_GETPAGESIZE.
38798         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
38799
38800 2007-12-25  Bruno Haible  <bruno@clisp.org>
38801
38802         * modules/localcharset (Notice): New field.
38803         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
38804         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
38805
38806 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38807             Bruno Haible  <bruno@clisp.org>
38808
38809         Avoid using the syntax symbol() in formatted documentation.
38810         * MODULES.html.sh (func_module): When replacing symbol() with a
38811         hyperlink, remove the parentheses. Show an error if some remain.
38812         Recognize and render the '...' syntax.
38813         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
38814         Rework. Add paragraph about GCC's inlining.
38815         * doc/alloca.texi: Likewise.
38816         * doc/error.texi: Remove parentheses from symbol reference.
38817         * doc/gnulib-intro.texi: Likewise.
38818         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
38819         * modules/fnmatch (Description): Reword to say "the ... function".
38820         * modules/full-read (Description): Likewise.
38821         * modules/full-write (Description): Likewise.
38822         * modules/safe-read (Description): Likewise.
38823         * modules/safe-write (Description): Likewise.
38824         * modules/strchrnul (Description): Likewise.
38825         * modules/trim (Description): Likewise.
38826         * modules/error (Description): Remove parentheses from symbol
38827         references.
38828         * modules/verror (Description): Likewise.
38829         Reported by Karl Berry.
38830
38831 2007-12-25  Bruno Haible  <bruno@clisp.org>
38832
38833         Fixup after 2007-10-16 commit.
38834         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
38835
38836 2007-12-24  Bruno Haible  <bruno@clisp.org>
38837
38838         Make --enable-relocatable work with DESTDIR.
38839         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
38840         to compute installdir from destprog.
38841         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
38842         also set the RELOC_DESTDIR variable.
38843         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38844
38845 2007-12-24  Bruno Haible  <bruno@clisp.org>
38846
38847         Fix link error due to xalloc_die().
38848         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
38849         of xreadlink.
38850         * lib/relocwrapper.c: Update comments.
38851         * build-aux/install-reloc: Remove xreadlink.c from file list.
38852         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
38853         xreadlink.c.
38854         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38855
38856 2007-12-24  Bruno Haible  <bruno@clisp.org>
38857
38858         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
38859         * lib/setenv.h: Remove file.
38860         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
38861         lib/setenv.h.
38862         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
38863         (Depends-on): Add stdlib.
38864         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
38865         gl_FUNC_UNSETENV.
38866         (Include): Replace setenv.h with <stdlib.h>.
38867         * modules/unsetenv: New file.
38868         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
38869         * lib/unsetenv.c: Include <stdlib.h> first.
38870         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
38871         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
38872         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
38873         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
38874         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
38875         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
38876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
38877         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
38878         * doc/functions/unsetenv.texi: Update.
38879         * modules/xsetenv (Depends-on): Add unsetenv.
38880         * modules/getdate (Depends-on): Likewise.
38881         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
38882         * lib/xsetenv.c: Don't include setenv.h.
38883         * lib/getdate.y: Likewise.
38884         * lib/relocwrapper.c: Likewise.
38885         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
38886         (Depends-on): Add stdlib.
38887         * NEWS: Mention the changes.
38888         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
38889
38890 2007-12-23  Bruno Haible  <bruno@clisp.org>
38891
38892         * lib/memmem.c (memmem): Use lowercase variable names. Tab
38893         indentation.
38894
38895 2007-12-23  Bruno Haible  <bruno@clisp.org>
38896
38897         * lib/c-strcasestr.c: Add more comments.
38898         * lib/c-strstr.c: Likewise.
38899         * lib/mbscasestr.c: Likewise.
38900         * lib/mbsstr.c: Likewise.
38901         * lib/strcasestr.c: Likewise.
38902         * lib/memmem.c: Likewise.
38903
38904 2007-12-23  Bruno Haible  <bruno@clisp.org>
38905
38906         * tests/test-memmem.c: Include <string.h> first.
38907
38908 2007-12-22  Bruno Haible  <bruno@clisp.org>
38909
38910         * gnulib-tool (func_create_testdir): Change $auxdir while generating
38911         the contents of $testsbase.
38912         Reported by Ralf Wildenhues.
38913
38914 2007-12-22  Bruno Haible  <bruno@clisp.org>
38915
38916         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
38917         two variables local_ldadd_before, local_ldadd_last.
38918
38919 2007-12-20  Eric Blake  <ebb9@byu.net>
38920
38921         Work around circular library issue when cross-compiling.
38922         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
38923         that progname.o does not need to pull in rpl_memcmp.
38924
38925 2007-12-19  Eric Blake  <ebb9@byu.net>
38926
38927         Fix memmem to avoid O(n^2) worst-case complexity.
38928         * lib/memmem.c (knuth_morris_pratt): New function.
38929         (memmem): Use it if first few naive iterations fail.
38930         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
38931         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
38932         * modules/memchr (License): Likewise.
38933         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
38934         malloca.
38935         * tests/test-memmem.c: Rewrite, borrowing ideas from
38936         test-mbsstr1.c; the old version wouldn't even compile!
38937         * modules/memmem-tests: New file.
38938         * lib/string.in.h (rpl_memmem): Add declaration.
38939         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
38940         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
38941         REPLACE_MEMMEM.
38942
38943 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38944
38945         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
38946         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
38947         before any system include files, and undef after them all.  This
38948         should fix a problem on VMS reported by John E. Malmberg in
38949         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
38950
38951 2007-12-17  Eric Blake  <ebb9@byu.net>
38952
38953         Revert addition of verify, for BSD/OS.
38954         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
38955         can't handle large files, for the sake of obsolete platforms.
38956         * modules/fseeko (Depends-on): Remove verify.
38957         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
38958         * doc/functions/ftello.texi (ftello): Likewise.
38959         * doc/functions/fgetpos.texi (fgetpos): Likewise.
38960         Reported by Larry Jones.
38961
38962 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
38963
38964         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
38965         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
38966
38967 2007-12-17  Jim Meyering  <meyering@redhat.com>
38968
38969         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
38970         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
38971         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
38972         * modules/getcwd (Depends-on): Add openat.
38973         Reported by Petr Salinger.
38974
38975 2007-12-17  Bruno Haible  <bruno@clisp.org>
38976
38977         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
38978         avoid a segmentation fault of the configure test on x86_64 systems.
38979
38980 2007-12-15  Jim Meyering  <meyering@redhat.com>
38981
38982         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
38983
38984 2007-12-13  Eric Blake  <ebb9@byu.net>
38985
38986         Another fseek test.
38987         * tests/test-fseek.c (main): Also test ungetc handling.
38988         * tests/test-fseeko.c (main): Likewise.
38989         * modules/fseeko (Depends-on): Add verify.
38990         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
38991         large.
38992         Reported by Larry Jones.
38993
38994         Fix fseeko on mingw.
38995         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
38996         seek.
38997
38998         Beef up fseek tests.
38999         * tests/test-fseek.c (main): Also test eof handling.
39000         * tests/test-fseeko.c (main): Likewise.
39001         Reported by Larry Jones.
39002
39003 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
39004
39005         Fix fseeko on BSD-based platforms.
39006         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
39007         successful seek.
39008
39009 2007-12-12  Eric Blake  <ebb9@byu.net>
39010
39011         Allow circular dependency of separate libtests.a
39012         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
39013         when use_libtests.
39014
39015 2007-12-11  Eric Blake  <ebb9@byu.net>
39016
39017         Fix bug with -0.0L in previous patch.
39018         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
39019         * tests/test-isnan.c (main): Also test on zeroes.
39020         * tests/test-isnanf.c (main): Likewise.
39021         * tests/test-isnanl.h (main): Likewise.
39022
39023         Detect pseudo-denormals on x86 even when cross-compiling.
39024         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
39025         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
39026         invalid bit patterns that happen to satisfy ==.
39027
39028         Avoid link failures with separate libtests.a.
39029         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
39030         last, to satisfy circular dependencies.
39031
39032 2007-12-11  Eric Blake  <ebb9@byu.net>
39033         and Bruno Haible  <bruno@clisp.org>
39034
39035         Fix OpenBSD 4.0 <float.h> handling of long double.
39036         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
39037         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
39038         * doc/headers/float.texi (float.h): Document OpenBSD bug.
39039
39040 2007-12-11  Jim Meyering  <meyering@redhat.com>
39041
39042         * users.txt: Add libvirt.
39043
39044         Support versions of autoconf prior to 2.59c.
39045         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
39046         if it is not already defined.
39047
39048 2007-12-09  Bruno Haible  <bruno@clisp.org>
39049
39050         Let 'gnulib-tool --import' collect sources needed for the tests in
39051         tests/ rather than in lib/.
39052         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
39053         argument. If true, add rules to generate libtests.a, and put libtests.a
39054         into $(LDADD). Consider source files in subdirectories and set
39055         uses_subdirs.
39056         (func_emit_initmacro_start, func_emit_initmacro_end,
39057         func_emit_initmacro_done): Pass all arguments explicitly.
39058         (func_import): Determine two module lists main_modules,
39059         testsrelated_modules. Determine use_libtests. Determine two variables
39060         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
39061         instead of just sed_transform_lib_file. Determine two variables
39062         main_files and testsrelated_files. Compute 'files' as the union of
39063         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
39064         func_add_or_update. In the generated gnulib-comp.m4, collect the
39065         object files for tests/ in different variables than those for lib/.
39066         Substitute LIBTESTS_LIBDEPS.
39067         (func_create_testdir): Combine the uses_subdirs results from
39068         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
39069
39070 2007-12-09  Bruno Haible  <bruno@clisp.org>
39071
39072         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
39073         the build-aux directory.
39074
39075 2007-12-09  Bruno Haible  <bruno@clisp.org>
39076
39077         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
39078         introduced on 2006-09-09.
39079
39080 2007-12-07  Jim Meyering  <meyering@redhat.com>
39081
39082         Let these macros work also with autoconf-2.59.
39083         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
39084         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
39085         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39086
39087 2007-12-06  Jim Meyering  <meyering@redhat.com>
39088
39089         Avoid a configure-time syntax error in gl_FUNC_ACL.
39090         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
39091         function in each branch, before testing the cache variable.
39092
39093 2007-12-04  Eric Blake  <ebb9@byu.net>
39094
39095         Make scripts executable.
39096         * build-aux/config.guess: Add execute permissions.
39097         * build-aux/config.sub: Likewise.
39098         * build-aux/gendocs.sh: Likewise.
39099
39100         Fix frexp on mingw.
39101         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
39102         cross-compiling.
39103         * doc/functions/frexp.texi (frexp): Document the bug.
39104
39105         Make cygwin fseeko check more reliable.
39106         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
39107         version numbers, rather than unrelated feature check.
39108         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
39109         * doc/functions/ftello.texi (ftello): Likewise.
39110         Reported by Bruno Haible.
39111
39112         * m4/strerror.m4: Bump version number.
39113
39114 2007-12-03  Bruno Haible  <bruno@clisp.org>
39115
39116         * doc/functions/mprotect.texi: Mention the mingw problem.
39117
39118 2007-12-03  Eric Blake  <ebb9@byu.net>
39119
39120         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
39121         REPLACE_STRERROR is initialized before this macro.
39122
39123 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
39124
39125         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
39126         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
39127         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
39128         put -lsec in even for programs other than 'ls'.  This fixes a problem
39129         for gettext reported by Bruno Haible in
39130         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
39131         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
39132         Add support for Solaris 10.  This isn't efficient, but should get the
39133         job done for now.
39134
39135 2007-12-03  James Youngman  <jay@gnu.org>
39136
39137         * doc/regexprops-generic.texi: change "an close-group" to "a
39138         close-group" and "illegal" to "not allowed".
39139
39140 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39141
39142         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
39143         pr_byname.h. Needed for the rare case when the maintainer has done
39144         "make maintainer-clean" in the source directory and then attempts a
39145         build outside the source directory.
39146         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
39147         scripts_byname.h.
39148
39149 2007-12-02  Martin Lambers <marlam@marlam.de>
39150             Bruno Haible  <bruno@clisp.org>
39151
39152         * lib/getpagesize.h: Remove file.
39153         * lib/unistd.in.h: Include declaration of getpagesize here.
39154         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
39155         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
39156         HAVE_SYS_PARAM_H.
39157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
39158         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
39159         * modules/getpagesize (Files): Remove lib/getpagesize.h.
39160         (Depends-on): Add unistd.
39161         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39162         (Include): Use <unistd.h> instead of getpagesize.h.
39163         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
39164         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
39165         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
39166         gl_GETPAGESIZE invocation, already handled by module dependency.
39167         * lib/pagealign_alloc.c: Don't include getpagesize.h.
39168
39169 2007-12-02  Bruno Haible  <bruno@clisp.org>
39170
39171         * modules/strings-tests: New file.
39172         * tests/test-strings.c: New file.
39173
39174         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
39175         * lib/strings.in.h: New file.
39176         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
39177         * m4/strings_h.m4: New file.
39178         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
39179         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
39180         * modules/strings: New file.
39181         * modules/string (Makefile.am): Update.
39182         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
39183         Reported by Karl Berry.
39184
39185 2007-12-01  Eric Blake  <ebb9@byu.net>
39186
39187         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
39188         accomodate fix in cygwin 1.5.25.
39189
39190 2007-12-01  Jim Meyering  <meyering@redhat.com>
39191
39192         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
39193         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
39194         that would inhibit utf8-optimization of a regexp containing line-
39195         or buffer-anchors, e.g., `^', `$'.
39196
39197 2007-11-30  Bruno Haible  <bruno@clisp.org>
39198
39199         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
39200         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
39201         glthread_recursive_lock_init.
39202         * lib/lock.c (glthread_recursive_lock_init)
39203         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
39204         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39205
39206 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
39207
39208         New function qset_acl, like set_acl but with syscall semantics.
39209         * lib/acl.h (qset_acl): New decl.
39210         * lib/acl.c (qset_acl): New function.
39211         (set_acl): Use new function.  Use more-consistent diagnostics.
39212
39213 2007-11-28  Jim Meyering  <meyering@redhat.com>
39214
39215         * modules/physmem (License): Change from GPL to LGPLv2+.
39216
39217 2007-11-26  Bruno Haible  <bruno@clisp.org>
39218
39219         * lib/vasnprintf.c (decode_long_double): Don't abort if the
39220         'long double' type has excess precision.
39221         Reported by Jim Meyering in
39222         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
39223
39224 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39225
39226         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
39227         Sync from <http://gnu.org/licenses>.
39228         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
39229         with license text from same location.
39230         * doc/maintain.texi, doc/standards.texi:  Sync from
39231         <http://savannah.gnu.org/projects/gnustandards>.
39232
39233 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
39234         and Jim Meyering  <meyering@redhat.com>
39235
39236         Adjust getdate' grammar to accept a slightly more regular language.
39237         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
39238         Before, the former was rejected.
39239         * lib/getdate.y (digits_to_date_time): New function, factored
39240         out of ...
39241         (number): ...here.  Just call digits_to_date_time.
39242         (hybrid): New non-terminal to handle an <unsigned number,
39243         signed relative offset> sequence consistently.
39244
39245 2007-11-18  Jim Meyering  <meyering@redhat.com>
39246
39247         Pull my changes from coreutils:
39248         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
39249         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
39250         use of $gnulib_tool_option_extras, so that it's separated from the
39251         preceding argument.
39252
39253         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
39254         * build-aux/bootstrap (cp_mark_as_generated): Create any required
39255         parent destination directories before copying a file into place.
39256
39257 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
39258
39259         bootstrap: work also with 4-argument variant of AC_INIT
39260         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
39261
39262 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39263
39264         Port test-getaddrinfo to Solaris.
39265         Problem reported by Bruno Haible in
39266         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
39267         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
39268         explanation of setting 'hints'.
39269         Don't reject an implementation merely because it returns EAI_SERVICE.
39270         (EAI_SERVICE): Define to 0 if not defined.
39271
39272 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
39273
39274         The license of gnu-make and posix-shell is now "GPLed build tool".
39275         * modules/gnu-make (License): Likewise.
39276         * modules/posix-shell (License): Likewise.
39277
39278         New module posix-shell, for determining a POSIX shell
39279         or perhaps something that is close enough to a POSIX shell.
39280         * m4/posix-shell.m4: New file.
39281         * modules/posix-shell: New file.
39282
39283         * MODULES.html.sh: Mention new module.
39284
39285         New module gnu-make, for determining whether we're using GNU Make.
39286         * m4/gnu-make.m4: New file.
39287         * modules/gnu-make: New file.
39288         * MODULES.html.sh: Mention new module.
39289
39290 2007-11-14  Jim Meyering  <meyering@redhat.com>
39291
39292         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
39293         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
39294         use this macro to create a function _definition_.
39295         Remove useless "#undef ARGMATCH_DIE".
39296
39297 2007-11-14  Bruno Haible  <bruno@clisp.org>
39298
39299         * lib/config.charset: Update for OpenBSD 4.1.
39300         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
39301
39302 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
39303
39304         Document 64-bit #if problems in stdint.texi.
39305         * doc/headers/stdint.texi (stdint.h): Mention problems with
39306         64-bit-#if, and how to work around them.
39307
39308         Don't insist on 'long long int' support in the preprocessor.  It
39309         breaks too many things.  For example, PRIdMAX still uses a 'long
39310         long int' format with the latest Sun compiler, even though
39311         HAVE_LONG_LONG_INT isn't defined due to that compiler's
39312         preprocessor problem.  This causes the latest coreutils to dump
39313         core on Solaris 10 sparc with the Sun C compiler.
39314         Instead, fix the 2007-10-16 problem in a different way, by evaluating
39315         the troublesome expressions at configure-time, not at #if-time.
39316         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
39317         preprocessor.
39318         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
39319         compile-time C checks, done at 'configure'-time.
39320         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
39321         * modules/inttypes (Makefile): Substitute the new symbols that
39322         gl_INTTYPES_H now generates.
39323         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
39324
39325 2007-11-12  Bruno Haible  <bruno@clisp.org>
39326
39327         Tests for Unicode character classification functions.
39328
39329         * modules/unictype/bidicategory-byname-tests: New file.
39330         * modules/unictype/bidicategory-name-tests: New file.
39331         * modules/unictype/bidicategory-of-tests: New file.
39332         * modules/unictype/bidicategory-test-tests: New file.
39333         * modules/unictype/block-list-tests: New file.
39334         * modules/unictype/block-of-tests: New file.
39335         * modules/unictype/block-test-tests: New file.
39336         * modules/unictype/category-C-tests: New file.
39337         * modules/unictype/category-Cc-tests: New file.
39338         * modules/unictype/category-Cf-tests: New file.
39339         * modules/unictype/category-Cn-tests: New file.
39340         * modules/unictype/category-Co-tests: New file.
39341         * modules/unictype/category-Cs-tests: New file.
39342         * modules/unictype/category-L-tests: New file.
39343         * modules/unictype/category-Ll-tests: New file.
39344         * modules/unictype/category-Lm-tests: New file.
39345         * modules/unictype/category-Lo-tests: New file.
39346         * modules/unictype/category-Lt-tests: New file.
39347         * modules/unictype/category-Lu-tests: New file.
39348         * modules/unictype/category-M-tests: New file.
39349         * modules/unictype/category-Mc-tests: New file.
39350         * modules/unictype/category-Me-tests: New file.
39351         * modules/unictype/category-Mn-tests: New file.
39352         * modules/unictype/category-N-tests: New file.
39353         * modules/unictype/category-Nd-tests: New file.
39354         * modules/unictype/category-Nl-tests: New file.
39355         * modules/unictype/category-No-tests: New file.
39356         * modules/unictype/category-P-tests: New file.
39357         * modules/unictype/category-Pc-tests: New file.
39358         * modules/unictype/category-Pd-tests: New file.
39359         * modules/unictype/category-Pe-tests: New file.
39360         * modules/unictype/category-Pf-tests: New file.
39361         * modules/unictype/category-Pi-tests: New file.
39362         * modules/unictype/category-Po-tests: New file.
39363         * modules/unictype/category-Ps-tests: New file.
39364         * modules/unictype/category-S-tests: New file.
39365         * modules/unictype/category-Sc-tests: New file.
39366         * modules/unictype/category-Sk-tests: New file.
39367         * modules/unictype/category-Sm-tests: New file.
39368         * modules/unictype/category-So-tests: New file.
39369         * modules/unictype/category-Z-tests: New file.
39370         * modules/unictype/category-Zl-tests: New file.
39371         * modules/unictype/category-Zp-tests: New file.
39372         * modules/unictype/category-Zs-tests: New file.
39373         * modules/unictype/category-and-not-tests: New file.
39374         * modules/unictype/category-and-tests: New file.
39375         * modules/unictype/category-byname-tests: New file.
39376         * modules/unictype/category-name-tests: New file.
39377         * modules/unictype/category-none-tests: New file.
39378         * modules/unictype/category-of-tests: New file.
39379         * modules/unictype/category-or-tests: New file.
39380         * modules/unictype/category-test-withtable-tests: New file.
39381         * modules/unictype/combining-class-tests: New file.
39382         * modules/unictype/ctype-alnum-tests: New file.
39383         * modules/unictype/ctype-alpha-tests: New file.
39384         * modules/unictype/ctype-blank-tests: New file.
39385         * modules/unictype/ctype-cntrl-tests: New file.
39386         * modules/unictype/ctype-digit-tests: New file.
39387         * modules/unictype/ctype-graph-tests: New file.
39388         * modules/unictype/ctype-lower-tests: New file.
39389         * modules/unictype/ctype-print-tests: New file.
39390         * modules/unictype/ctype-punct-tests: New file.
39391         * modules/unictype/ctype-space-tests: New file.
39392         * modules/unictype/ctype-upper-tests: New file.
39393         * modules/unictype/ctype-xdigit-tests: New file.
39394         * modules/unictype/decimal-digit-tests: New file.
39395         * modules/unictype/digit-tests: New file.
39396         * modules/unictype/mirror-tests: New file.
39397         * modules/unictype/numeric-tests: New file.
39398         * modules/unictype/property-alphabetic-tests: New file.
39399         * modules/unictype/property-ascii-hex-digit-tests: New file.
39400         * modules/unictype/property-bidi-arabic-digit-tests: New file.
39401         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
39402         * modules/unictype/property-bidi-block-separator-tests: New file.
39403         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
39404         * modules/unictype/property-bidi-common-separator-tests: New file.
39405         * modules/unictype/property-bidi-control-tests: New file.
39406         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
39407         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
39408         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
39409         * modules/unictype/property-bidi-european-digit-tests: New file.
39410         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
39411         * modules/unictype/property-bidi-left-to-right-tests: New file.
39412         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
39413         * modules/unictype/property-bidi-other-neutral-tests: New file.
39414         * modules/unictype/property-bidi-pdf-tests: New file.
39415         * modules/unictype/property-bidi-segment-separator-tests: New file.
39416         * modules/unictype/property-bidi-whitespace-tests: New file.
39417         * modules/unictype/property-byname-tests: New file.
39418         * modules/unictype/property-combining-tests: New file.
39419         * modules/unictype/property-composite-tests: New file.
39420         * modules/unictype/property-currency-symbol-tests: New file.
39421         * modules/unictype/property-dash-tests: New file.
39422         * modules/unictype/property-decimal-digit-tests: New file.
39423         * modules/unictype/property-default-ignorable-code-point-tests: New file.
39424         * modules/unictype/property-deprecated-tests: New file.
39425         * modules/unictype/property-diacritic-tests: New file.
39426         * modules/unictype/property-extender-tests: New file.
39427         * modules/unictype/property-format-control-tests: New file.
39428         * modules/unictype/property-grapheme-base-tests: New file.
39429         * modules/unictype/property-grapheme-extend-tests: New file.
39430         * modules/unictype/property-grapheme-link-tests: New file.
39431         * modules/unictype/property-hex-digit-tests: New file.
39432         * modules/unictype/property-hyphen-tests: New file.
39433         * modules/unictype/property-id-continue-tests: New file.
39434         * modules/unictype/property-id-start-tests: New file.
39435         * modules/unictype/property-ideographic-tests: New file.
39436         * modules/unictype/property-ids-binary-operator-tests: New file.
39437         * modules/unictype/property-ids-trinary-operator-tests: New file.
39438         * modules/unictype/property-ignorable-control-tests: New file.
39439         * modules/unictype/property-iso-control-tests: New file.
39440         * modules/unictype/property-join-control-tests: New file.
39441         * modules/unictype/property-left-of-pair-tests: New file.
39442         * modules/unictype/property-line-separator-tests: New file.
39443         * modules/unictype/property-logical-order-exception-tests: New file.
39444         * modules/unictype/property-lowercase-tests: New file.
39445         * modules/unictype/property-math-tests: New file.
39446         * modules/unictype/property-non-break-tests: New file.
39447         * modules/unictype/property-not-a-character-tests: New file.
39448         * modules/unictype/property-numeric-tests: New file.
39449         * modules/unictype/property-other-alphabetic-tests: New file.
39450         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
39451         * modules/unictype/property-other-grapheme-extend-tests: New file.
39452         * modules/unictype/property-other-id-continue-tests: New file.
39453         * modules/unictype/property-other-id-start-tests: New file.
39454         * modules/unictype/property-other-lowercase-tests: New file.
39455         * modules/unictype/property-other-math-tests: New file.
39456         * modules/unictype/property-other-uppercase-tests: New file.
39457         * modules/unictype/property-paired-punctuation-tests: New file.
39458         * modules/unictype/property-paragraph-separator-tests: New file.
39459         * modules/unictype/property-pattern-syntax-tests: New file.
39460         * modules/unictype/property-pattern-white-space-tests: New file.
39461         * modules/unictype/property-private-use-tests: New file.
39462         * modules/unictype/property-punctuation-tests: New file.
39463         * modules/unictype/property-quotation-mark-tests: New file.
39464         * modules/unictype/property-radical-tests: New file.
39465         * modules/unictype/property-sentence-terminal-tests: New file.
39466         * modules/unictype/property-soft-dotted-tests: New file.
39467         * modules/unictype/property-space-tests: New file.
39468         * modules/unictype/property-terminal-punctuation-tests: New file.
39469         * modules/unictype/property-test-tests: New file.
39470         * modules/unictype/property-titlecase-tests: New file.
39471         * modules/unictype/property-unassigned-code-value-tests: New file.
39472         * modules/unictype/property-unified-ideograph-tests: New file.
39473         * modules/unictype/property-uppercase-tests: New file.
39474         * modules/unictype/property-variation-selector-tests: New file.
39475         * modules/unictype/property-white-space-tests: New file.
39476         * modules/unictype/property-xid-continue-tests: New file.
39477         * modules/unictype/property-xid-start-tests: New file.
39478         * modules/unictype/property-zero-width-tests: New file.
39479         * modules/unictype/scripts-tests: New file.
39480         * modules/unictype/syntax-c-ident-tests: New file.
39481         * modules/unictype/syntax-c-whitespace-tests: New file.
39482         * modules/unictype/syntax-java-ident-tests: New file.
39483         * modules/unictype/syntax-java-whitespace-tests: New file.
39484         * tests/unictype/test-bidi_byname.c: New file.
39485         * tests/unictype/test-bidi_name.c: New file.
39486         * tests/unictype/test-bidi_of.c: New file.
39487         * tests/unictype/test-bidi_test.c: New file.
39488         * tests/unictype/test-block_list.c: New file.
39489         * tests/unictype/test-block_of.c: New file.
39490         * tests/unictype/test-block_test.c: New file.
39491         * tests/unictype/test-categ_and.c: New file.
39492         * tests/unictype/test-categ_and_not.c: New file.
39493         * tests/unictype/test-categ_byname.c: New file.
39494         * tests/unictype/test-categ_name.c: New file.
39495         * tests/unictype/test-categ_none.c: New file.
39496         * tests/unictype/test-categ_of.c: New file.
39497         * tests/unictype/test-categ_or.c: New file.
39498         * tests/unictype/test-categ_test_withtable.c: New file.
39499         * tests/unictype/test-combining.c: New file.
39500         * tests/unictype/test-decdigit.c: New file.
39501         * tests/unictype/test-digit.c: New file.
39502         * tests/unictype/test-mirror.c: New file.
39503         * tests/unictype/test-numeric.c: New file.
39504         * tests/unictype/test-pr_byname.c: New file.
39505         * tests/unictype/test-pr_test.c: New file.
39506         * tests/unictype/test-predicate-part1.h: New file.
39507         * tests/unictype/test-predicate-part2.h: New file.
39508         * tests/unictype/test-scripts.c: New file.
39509         * tests/unictype/test-sy_c_ident.c: New file.
39510         * tests/unictype/test-sy_java_ident.c: New file.
39511
39512         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
39513         for Unicode 5.0.0.
39514         * tests/unictype/test-categ_Cc.c: Likewise.
39515         * tests/unictype/test-categ_Cf.c: Likewise.
39516         * tests/unictype/test-categ_Cn.c: Likewise.
39517         * tests/unictype/test-categ_Co.c: Likewise.
39518         * tests/unictype/test-categ_Cs.c: Likewise.
39519         * tests/unictype/test-categ_L.c: Likewise.
39520         * tests/unictype/test-categ_Ll.c: Likewise.
39521         * tests/unictype/test-categ_Lm.c: Likewise.
39522         * tests/unictype/test-categ_Lo.c: Likewise.
39523         * tests/unictype/test-categ_Lt.c: Likewise.
39524         * tests/unictype/test-categ_Lu.c: Likewise.
39525         * tests/unictype/test-categ_M.c: Likewise.
39526         * tests/unictype/test-categ_Mc.c: Likewise.
39527         * tests/unictype/test-categ_Me.c: Likewise.
39528         * tests/unictype/test-categ_Mn.c: Likewise.
39529         * tests/unictype/test-categ_N.c: Likewise.
39530         * tests/unictype/test-categ_Nd.c: Likewise.
39531         * tests/unictype/test-categ_Nl.c: Likewise.
39532         * tests/unictype/test-categ_No.c: Likewise.
39533         * tests/unictype/test-categ_P.c: Likewise.
39534         * tests/unictype/test-categ_Pc.c: Likewise.
39535         * tests/unictype/test-categ_Pd.c: Likewise.
39536         * tests/unictype/test-categ_Pe.c: Likewise.
39537         * tests/unictype/test-categ_Pf.c: Likewise.
39538         * tests/unictype/test-categ_Pi.c: Likewise.
39539         * tests/unictype/test-categ_Po.c: Likewise.
39540         * tests/unictype/test-categ_Ps.c: Likewise.
39541         * tests/unictype/test-categ_S.c: Likewise.
39542         * tests/unictype/test-categ_Sc.c: Likewise.
39543         * tests/unictype/test-categ_Sk.c: Likewise.
39544         * tests/unictype/test-categ_Sm.c: Likewise.
39545         * tests/unictype/test-categ_So.c: Likewise.
39546         * tests/unictype/test-categ_Z.c: Likewise.
39547         * tests/unictype/test-categ_Zl.c: Likewise.
39548         * tests/unictype/test-categ_Zp.c: Likewise.
39549         * tests/unictype/test-categ_Zs.c: Likewise.
39550         * tests/unictype/test-ctype_alnum.c: Likewise.
39551         * tests/unictype/test-ctype_alpha.c: Likewise.
39552         * tests/unictype/test-ctype_blank.c: Likewise.
39553         * tests/unictype/test-ctype_cntrl.c: Likewise.
39554         * tests/unictype/test-ctype_digit.c: Likewise.
39555         * tests/unictype/test-ctype_graph.c: Likewise.
39556         * tests/unictype/test-ctype_lower.c: Likewise.
39557         * tests/unictype/test-ctype_print.c: Likewise.
39558         * tests/unictype/test-ctype_punct.c: Likewise.
39559         * tests/unictype/test-ctype_space.c: Likewise.
39560         * tests/unictype/test-ctype_upper.c: Likewise.
39561         * tests/unictype/test-ctype_xdigit.c: Likewise.
39562         * tests/unictype/test-decdigit.h: Likewise.
39563         * tests/unictype/test-digit.h: Likewise.
39564         * tests/unictype/test-numeric.h: Likewise.
39565         * tests/unictype/test-pr_alphabetic.c: Likewise.
39566         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
39567         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
39568         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
39569         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
39570         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
39571         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
39572         * tests/unictype/test-pr_bidi_control.c: Likewise.
39573         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
39574         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
39575         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
39576         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
39577         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
39578         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
39579         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
39580         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
39581         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
39582         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
39583         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
39584         * tests/unictype/test-pr_combining.c: Likewise.
39585         * tests/unictype/test-pr_composite.c: Likewise.
39586         * tests/unictype/test-pr_currency_symbol.c: Likewise.
39587         * tests/unictype/test-pr_dash.c: Likewise.
39588         * tests/unictype/test-pr_decimal_digit.c: Likewise.
39589         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
39590         * tests/unictype/test-pr_deprecated.c: Likewise.
39591         * tests/unictype/test-pr_diacritic.c: Likewise.
39592         * tests/unictype/test-pr_extender.c: Likewise.
39593         * tests/unictype/test-pr_format_control.c: Likewise.
39594         * tests/unictype/test-pr_grapheme_base.c: Likewise.
39595         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
39596         * tests/unictype/test-pr_grapheme_link.c: Likewise.
39597         * tests/unictype/test-pr_hex_digit.c: Likewise.
39598         * tests/unictype/test-pr_hyphen.c: Likewise.
39599         * tests/unictype/test-pr_id_continue.c: Likewise.
39600         * tests/unictype/test-pr_id_start.c: Likewise.
39601         * tests/unictype/test-pr_ideographic.c: Likewise.
39602         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
39603         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
39604         * tests/unictype/test-pr_ignorable_control.c: Likewise.
39605         * tests/unictype/test-pr_iso_control.c: Likewise.
39606         * tests/unictype/test-pr_join_control.c: Likewise.
39607         * tests/unictype/test-pr_left_of_pair.c: Likewise.
39608         * tests/unictype/test-pr_line_separator.c: Likewise.
39609         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
39610         * tests/unictype/test-pr_lowercase.c: Likewise.
39611         * tests/unictype/test-pr_math.c: Likewise.
39612         * tests/unictype/test-pr_non_break.c: Likewise.
39613         * tests/unictype/test-pr_not_a_character.c: Likewise.
39614         * tests/unictype/test-pr_numeric.c: Likewise.
39615         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
39616         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
39617         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
39618         * tests/unictype/test-pr_other_id_continue.c: Likewise.
39619         * tests/unictype/test-pr_other_id_start.c: Likewise.
39620         * tests/unictype/test-pr_other_lowercase.c: Likewise.
39621         * tests/unictype/test-pr_other_math.c: Likewise.
39622         * tests/unictype/test-pr_other_uppercase.c: Likewise.
39623         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
39624         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
39625         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
39626         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
39627         * tests/unictype/test-pr_private_use.c: Likewise.
39628         * tests/unictype/test-pr_punctuation.c: Likewise.
39629         * tests/unictype/test-pr_quotation_mark.c: Likewise.
39630         * tests/unictype/test-pr_radical.c: Likewise.
39631         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
39632         * tests/unictype/test-pr_soft_dotted.c: Likewise.
39633         * tests/unictype/test-pr_space.c: Likewise.
39634         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
39635         * tests/unictype/test-pr_titlecase.c: Likewise.
39636         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
39637         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
39638         * tests/unictype/test-pr_uppercase.c: Likewise.
39639         * tests/unictype/test-pr_variation_selector.c: Likewise.
39640         * tests/unictype/test-pr_white_space.c: Likewise.
39641         * tests/unictype/test-pr_xid_continue.c: Likewise.
39642         * tests/unictype/test-pr_xid_start.c: Likewise.
39643         * tests/unictype/test-pr_zero_width.c: Likewise.
39644         * tests/unictype/test-sy_c_whitespace.c: Likewise.
39645         * tests/unictype/test-sy_java_whitespace.c: Likewise.
39646
39647 2007-11-12  Bruno Haible  <bruno@clisp.org>
39648
39649         Unicode character classification functions.
39650         * lib/unictype.h: New file.
39651         * modules/unictype/base: New file.
39652         * modules/unictype/category-L: New file.
39653         * modules/unictype/category-Lu: New file.
39654         * modules/unictype/category-Ll: New file.
39655         * modules/unictype/category-Lt: New file.
39656         * modules/unictype/category-Lm: New file.
39657         * modules/unictype/category-Lo: New file.
39658         * modules/unictype/category-M: New file.
39659         * modules/unictype/category-Mn: New file.
39660         * modules/unictype/category-Mc: New file.
39661         * modules/unictype/category-Me: New file.
39662         * modules/unictype/category-N: New file.
39663         * modules/unictype/category-Nd: New file.
39664         * modules/unictype/category-Nl: New file.
39665         * modules/unictype/category-No: New file.
39666         * modules/unictype/category-P: New file.
39667         * modules/unictype/category-Pc: New file.
39668         * modules/unictype/category-Pd: New file.
39669         * modules/unictype/category-Ps: New file.
39670         * modules/unictype/category-Pe: New file.
39671         * modules/unictype/category-Pi: New file.
39672         * modules/unictype/category-Pf: New file.
39673         * modules/unictype/category-Po: New file.
39674         * modules/unictype/category-S: New file.
39675         * modules/unictype/category-Sm: New file.
39676         * modules/unictype/category-Sc: New file.
39677         * modules/unictype/category-Sk: New file.
39678         * modules/unictype/category-So: New file.
39679         * modules/unictype/category-Z: New file.
39680         * modules/unictype/category-Zs: New file.
39681         * modules/unictype/category-Zl: New file.
39682         * modules/unictype/category-Zp: New file.
39683         * modules/unictype/category-C: New file.
39684         * modules/unictype/category-Cc: New file.
39685         * modules/unictype/category-Cf: New file.
39686         * modules/unictype/category-Cs: New file.
39687         * modules/unictype/category-Co: New file.
39688         * modules/unictype/category-Cn: New file.
39689         * modules/unictype/category-or: New file.
39690         * modules/unictype/category-of: New file.
39691         * modules/unictype/category-test: New file.
39692         * modules/unictype/category-test-withtable: New file.
39693         * modules/unictype/category-byname: New file.
39694         * modules/unictype/category-none: New file.
39695         * modules/unictype/category-and: New file.
39696         * modules/unictype/category-and-not: New file.
39697         * modules/unictype/category-name: New file.
39698         * modules/unictype/combining-class: New file.
39699         * modules/unictype/category-all: New file.
39700         * modules/unictype/bidicategory-all: New file.
39701         * modules/unictype/bidicategory-byname: New file.
39702         * modules/unictype/bidicategory-name: New file.
39703         * modules/unictype/bidicategory-of: New file.
39704         * modules/unictype/bidicategory-test: New file.
39705         * modules/unictype/decimal-digit: New file.
39706         * modules/unictype/digit: New file.
39707         * modules/unictype/numeric: New file.
39708         * modules/unictype/mirror: New file.
39709         * modules/unictype/property-white-space: New file.
39710         * modules/unictype/property-alphabetic: New file.
39711         * modules/unictype/property-other-alphabetic: New file.
39712         * modules/unictype/property-not-a-character: New file.
39713         * modules/unictype/property-default-ignorable-code-point: New file.
39714         * modules/unictype/property-other-default-ignorable-code-point: New
39715         file.
39716         * modules/unictype/property-deprecated: New file.
39717         * modules/unictype/property-logical-order-exception: New file.
39718         * modules/unictype/property-variation-selector: New file.
39719         * modules/unictype/property-private-use: New file.
39720         * modules/unictype/property-unassigned-code-value: New file.
39721         * modules/unictype/property-uppercase: New file.
39722         * modules/unictype/property-other-uppercase: New file.
39723         * modules/unictype/property-lowercase: New file.
39724         * modules/unictype/property-other-lowercase: New file.
39725         * modules/unictype/property-titlecase: New file.
39726         * modules/unictype/property-soft-dotted: New file.
39727         * modules/unictype/property-id-start: New file.
39728         * modules/unictype/property-other-id-start: New file.
39729         * modules/unictype/property-id-continue: New file.
39730         * modules/unictype/property-other-id-continue: New file.
39731         * modules/unictype/property-xid-start: New file.
39732         * modules/unictype/property-xid-continue: New file.
39733         * modules/unictype/property-pattern-white-space: New file.
39734         * modules/unictype/property-pattern-syntax: New file.
39735         * modules/unictype/property-join-control: New file.
39736         * modules/unictype/property-grapheme-base: New file.
39737         * modules/unictype/property-grapheme-extend: New file.
39738         * modules/unictype/property-other-grapheme-extend: New file.
39739         * modules/unictype/property-grapheme-link: New file.
39740         * modules/unictype/property-bidi-control: New file.
39741         * modules/unictype/property-bidi-left-to-right: New file.
39742         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
39743         * modules/unictype/property-bidi-arabic-right-to-left: New file.
39744         * modules/unictype/property-bidi-european-digit: New file.
39745         * modules/unictype/property-bidi-eur-num-separator: New file.
39746         * modules/unictype/property-bidi-eur-num-terminator: New file.
39747         * modules/unictype/property-bidi-arabic-digit: New file.
39748         * modules/unictype/property-bidi-common-separator: New file.
39749         * modules/unictype/property-bidi-block-separator: New file.
39750         * modules/unictype/property-bidi-segment-separator: New file.
39751         * modules/unictype/property-bidi-whitespace: New file.
39752         * modules/unictype/property-bidi-non-spacing-mark: New file.
39753         * modules/unictype/property-bidi-boundary-neutral: New file.
39754         * modules/unictype/property-bidi-pdf: New file.
39755         * modules/unictype/property-bidi-embedding-or-override: New file.
39756         * modules/unictype/property-bidi-other-neutral: New file.
39757         * modules/unictype/property-hex-digit: New file.
39758         * modules/unictype/property-ascii-hex-digit: New file.
39759         * modules/unictype/property-ideographic: New file.
39760         * modules/unictype/property-unified-ideograph: New file.
39761         * modules/unictype/property-radical: New file.
39762         * modules/unictype/property-ids-binary-operator: New file.
39763         * modules/unictype/property-ids-trinary-operator: New file.
39764         * modules/unictype/property-zero-width: New file.
39765         * modules/unictype/property-space: New file.
39766         * modules/unictype/property-non-break: New file.
39767         * modules/unictype/property-iso-control: New file.
39768         * modules/unictype/property-format-control: New file.
39769         * modules/unictype/property-dash: New file.
39770         * modules/unictype/property-hyphen: New file.
39771         * modules/unictype/property-punctuation: New file.
39772         * modules/unictype/property-line-separator: New file.
39773         * modules/unictype/property-paragraph-separator: New file.
39774         * modules/unictype/property-quotation-mark: New file.
39775         * modules/unictype/property-sentence-terminal: New file.
39776         * modules/unictype/property-terminal-punctuation: New file.
39777         * modules/unictype/property-currency-symbol: New file.
39778         * modules/unictype/property-math: New file.
39779         * modules/unictype/property-other-math: New file.
39780         * modules/unictype/property-paired-punctuation: New file.
39781         * modules/unictype/property-left-of-pair: New file.
39782         * modules/unictype/property-combining: New file.
39783         * modules/unictype/property-composite: New file.
39784         * modules/unictype/property-decimal-digit: New file.
39785         * modules/unictype/property-numeric: New file.
39786         * modules/unictype/property-diacritic: New file.
39787         * modules/unictype/property-extender: New file.
39788         * modules/unictype/property-ignorable-control: New file.
39789         * modules/unictype/property-test: New file.
39790         * modules/unictype/property-byname: New file.
39791         * modules/unictype/property-all: New file.
39792         * modules/unictype/scripts: New file.
39793         * modules/unictype/scripts-all: New file.
39794         * modules/unictype/block-of: New file.
39795         * modules/unictype/block-test: New file.
39796         * modules/unictype/block-list: New file.
39797         * modules/unictype/block-all: New file.
39798         * modules/unictype/syntax-c-whitespace: New file.
39799         * modules/unictype/syntax-java-whitespace: New file.
39800         * modules/unictype/syntax-c-ident: New file.
39801         * modules/unictype/syntax-java-ident: New file.
39802         * modules/unictype/ctype-alnum: New file.
39803         * modules/unictype/ctype-alpha: New file.
39804         * modules/unictype/ctype-cntrl: New file.
39805         * modules/unictype/ctype-digit: New file.
39806         * modules/unictype/ctype-graph: New file.
39807         * modules/unictype/ctype-lower: New file.
39808         * modules/unictype/ctype-print: New file.
39809         * modules/unictype/ctype-punct: New file.
39810         * modules/unictype/ctype-space: New file.
39811         * modules/unictype/ctype-upper: New file.
39812         * modules/unictype/ctype-xdigit: New file.
39813         * modules/unictype/ctype-blank: New file.
39814         * lib/unictype/bidi_byname.c: New file.
39815         * lib/unictype/bidi_name.c: New file.
39816         * lib/unictype/bidi_of.c: New file.
39817         * lib/unictype/bidi_test.c: New file.
39818         * lib/unictype/bitmap.h: New file.
39819         * lib/unictype/block_test.c: New file.
39820         * lib/unictype/blocks.c: New file.
39821         * lib/unictype/categ_C.c: New file.
39822         * lib/unictype/categ_Cc.c: New file.
39823         * lib/unictype/categ_Cf.c: New file.
39824         * lib/unictype/categ_Cn.c: New file.
39825         * lib/unictype/categ_Co.c: New file.
39826         * lib/unictype/categ_Cs.c: New file.
39827         * lib/unictype/categ_L.c: New file.
39828         * lib/unictype/categ_Ll.c: New file.
39829         * lib/unictype/categ_Lm.c: New file.
39830         * lib/unictype/categ_Lo.c: New file.
39831         * lib/unictype/categ_Lt.c: New file.
39832         * lib/unictype/categ_Lu.c: New file.
39833         * lib/unictype/categ_M.c: New file.
39834         * lib/unictype/categ_Mc.c: New file.
39835         * lib/unictype/categ_Me.c: New file.
39836         * lib/unictype/categ_Mn.c: New file.
39837         * lib/unictype/categ_N.c: New file.
39838         * lib/unictype/categ_Nd.c: New file.
39839         * lib/unictype/categ_Nl.c: New file.
39840         * lib/unictype/categ_No.c: New file.
39841         * lib/unictype/categ_P.c: New file.
39842         * lib/unictype/categ_Pc.c: New file.
39843         * lib/unictype/categ_Pd.c: New file.
39844         * lib/unictype/categ_Pe.c: New file.
39845         * lib/unictype/categ_Pf.c: New file.
39846         * lib/unictype/categ_Pi.c: New file.
39847         * lib/unictype/categ_Po.c: New file.
39848         * lib/unictype/categ_Ps.c: New file.
39849         * lib/unictype/categ_S.c: New file.
39850         * lib/unictype/categ_Sc.c: New file.
39851         * lib/unictype/categ_Sk.c: New file.
39852         * lib/unictype/categ_Sm.c: New file.
39853         * lib/unictype/categ_So.c: New file.
39854         * lib/unictype/categ_Z.c: New file.
39855         * lib/unictype/categ_Zl.c: New file.
39856         * lib/unictype/categ_Zp.c: New file.
39857         * lib/unictype/categ_Zs.c: New file.
39858         * lib/unictype/categ_and.c: New file.
39859         * lib/unictype/categ_and_not.c: New file.
39860         * lib/unictype/categ_byname.c: New file.
39861         * lib/unictype/categ_name.c: New file.
39862         * lib/unictype/categ_none.c: New file.
39863         * lib/unictype/categ_of.c: New file.
39864         * lib/unictype/categ_or.c: New file.
39865         * lib/unictype/categ_test.c: New file.
39866         * lib/unictype/combining.c: New file.
39867         * lib/unictype/ctype_alnum.c: New file.
39868         * lib/unictype/ctype_alpha.c: New file.
39869         * lib/unictype/ctype_blank.c: New file.
39870         * lib/unictype/ctype_cntrl.c: New file.
39871         * lib/unictype/ctype_digit.c: New file.
39872         * lib/unictype/ctype_graph.c: New file.
39873         * lib/unictype/ctype_lower.c: New file.
39874         * lib/unictype/ctype_print.c: New file.
39875         * lib/unictype/ctype_punct.c: New file.
39876         * lib/unictype/ctype_space.c: New file.
39877         * lib/unictype/ctype_upper.c: New file.
39878         * lib/unictype/ctype_xdigit.c: New file.
39879         * lib/unictype/decdigit.c: New file.
39880         * lib/unictype/digit.c: New file.
39881         * lib/unictype/identsyntaxmap.h: New file.
39882         * lib/unictype/mirror.c: New file.
39883         * lib/unictype/numeric.c: New file.
39884         * lib/unictype/pr_alphabetic.c: New file.
39885         * lib/unictype/pr_ascii_hex_digit.c: New file.
39886         * lib/unictype/pr_bidi_arabic_digit.c: New file.
39887         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
39888         * lib/unictype/pr_bidi_block_separator.c: New file.
39889         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
39890         * lib/unictype/pr_bidi_common_separator.c: New file.
39891         * lib/unictype/pr_bidi_control.c: New file.
39892         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
39893         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
39894         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
39895         * lib/unictype/pr_bidi_european_digit.c: New file.
39896         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
39897         * lib/unictype/pr_bidi_left_to_right.c: New file.
39898         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
39899         * lib/unictype/pr_bidi_other_neutral.c: New file.
39900         * lib/unictype/pr_bidi_pdf.c: New file.
39901         * lib/unictype/pr_bidi_segment_separator.c: New file.
39902         * lib/unictype/pr_bidi_whitespace.c: New file.
39903         * lib/unictype/pr_byname.c: New file.
39904         * lib/unictype/pr_byname.gperf: New file.
39905         * lib/unictype/pr_combining.c: New file.
39906         * lib/unictype/pr_composite.c: New file.
39907         * lib/unictype/pr_currency_symbol.c: New file.
39908         * lib/unictype/pr_dash.c: New file.
39909         * lib/unictype/pr_decimal_digit.c: New file.
39910         * lib/unictype/pr_default_ignorable_code_point.c: New file.
39911         * lib/unictype/pr_deprecated.c: New file.
39912         * lib/unictype/pr_diacritic.c: New file.
39913         * lib/unictype/pr_extender.c: New file.
39914         * lib/unictype/pr_format_control.c: New file.
39915         * lib/unictype/pr_grapheme_base.c: New file.
39916         * lib/unictype/pr_grapheme_extend.c: New file.
39917         * lib/unictype/pr_grapheme_link.c: New file.
39918         * lib/unictype/pr_hex_digit.c: New file.
39919         * lib/unictype/pr_hyphen.c: New file.
39920         * lib/unictype/pr_id_continue.c: New file.
39921         * lib/unictype/pr_id_start.c: New file.
39922         * lib/unictype/pr_ideographic.c: New file.
39923         * lib/unictype/pr_ids_binary_operator.c: New file.
39924         * lib/unictype/pr_ids_trinary_operator.c: New file.
39925         * lib/unictype/pr_ignorable_control.c: New file.
39926         * lib/unictype/pr_iso_control.c: New file.
39927         * lib/unictype/pr_join_control.c: New file.
39928         * lib/unictype/pr_left_of_pair.c: New file.
39929         * lib/unictype/pr_line_separator.c: New file.
39930         * lib/unictype/pr_logical_order_exception.c: New file.
39931         * lib/unictype/pr_lowercase.c: New file.
39932         * lib/unictype/pr_math.c: New file.
39933         * lib/unictype/pr_non_break.c: New file.
39934         * lib/unictype/pr_not_a_character.c: New file.
39935         * lib/unictype/pr_numeric.c: New file.
39936         * lib/unictype/pr_other_alphabetic.c: New file.
39937         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
39938         * lib/unictype/pr_other_grapheme_extend.c: New file.
39939         * lib/unictype/pr_other_id_continue.c: New file.
39940         * lib/unictype/pr_other_id_start.c: New file.
39941         * lib/unictype/pr_other_lowercase.c: New file.
39942         * lib/unictype/pr_other_math.c: New file.
39943         * lib/unictype/pr_other_uppercase.c: New file.
39944         * lib/unictype/pr_paired_punctuation.c: New file.
39945         * lib/unictype/pr_paragraph_separator.c: New file.
39946         * lib/unictype/pr_pattern_syntax.c: New file.
39947         * lib/unictype/pr_pattern_white_space.c: New file.
39948         * lib/unictype/pr_private_use.c: New file.
39949         * lib/unictype/pr_punctuation.c: New file.
39950         * lib/unictype/pr_quotation_mark.c: New file.
39951         * lib/unictype/pr_radical.c: New file.
39952         * lib/unictype/pr_sentence_terminal.c: New file.
39953         * lib/unictype/pr_soft_dotted.c: New file.
39954         * lib/unictype/pr_space.c: New file.
39955         * lib/unictype/pr_terminal_punctuation.c: New file.
39956         * lib/unictype/pr_test.c: New file.
39957         * lib/unictype/pr_titlecase.c: New file.
39958         * lib/unictype/pr_unassigned_code_value.c: New file.
39959         * lib/unictype/pr_unified_ideograph.c: New file.
39960         * lib/unictype/pr_uppercase.c: New file.
39961         * lib/unictype/pr_variation_selector.c: New file.
39962         * lib/unictype/pr_white_space.c: New file.
39963         * lib/unictype/pr_xid_continue.c: New file.
39964         * lib/unictype/pr_xid_start.c: New file.
39965         * lib/unictype/pr_zero_width.c: New file.
39966         * lib/unictype/scripts.c: New file.
39967         * lib/unictype/sy_c_ident.c: New file.
39968         * lib/unictype/sy_c_whitespace.c: New file.
39969         * lib/unictype/sy_java_ident.c: New file.
39970         * lib/unictype/sy_java_whitespace.c: New file.
39971
39972         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
39973         Unicode 5.0.0.
39974         * lib/unictype/blocks.h: Likewise.
39975         * lib/unictype/categ_C.h: Likewise.
39976         * lib/unictype/categ_Cc.h: Likewise.
39977         * lib/unictype/categ_Cf.h: Likewise.
39978         * lib/unictype/categ_Cn.h: Likewise.
39979         * lib/unictype/categ_Co.h: Likewise.
39980         * lib/unictype/categ_Cs.h: Likewise.
39981         * lib/unictype/categ_L.h: Likewise.
39982         * lib/unictype/categ_Ll.h: Likewise.
39983         * lib/unictype/categ_Lm.h: Likewise.
39984         * lib/unictype/categ_Lo.h: Likewise.
39985         * lib/unictype/categ_Lt.h: Likewise.
39986         * lib/unictype/categ_Lu.h: Likewise.
39987         * lib/unictype/categ_M.h: Likewise.
39988         * lib/unictype/categ_Mc.h: Likewise.
39989         * lib/unictype/categ_Me.h: Likewise.
39990         * lib/unictype/categ_Mn.h: Likewise.
39991         * lib/unictype/categ_N.h: Likewise.
39992         * lib/unictype/categ_Nd.h: Likewise.
39993         * lib/unictype/categ_Nl.h: Likewise.
39994         * lib/unictype/categ_No.h: Likewise.
39995         * lib/unictype/categ_P.h: Likewise.
39996         * lib/unictype/categ_Pc.h: Likewise.
39997         * lib/unictype/categ_Pd.h: Likewise.
39998         * lib/unictype/categ_Pe.h: Likewise.
39999         * lib/unictype/categ_Pf.h: Likewise.
40000         * lib/unictype/categ_Pi.h: Likewise.
40001         * lib/unictype/categ_Po.h: Likewise.
40002         * lib/unictype/categ_Ps.h: Likewise.
40003         * lib/unictype/categ_S.h: Likewise.
40004         * lib/unictype/categ_Sc.h: Likewise.
40005         * lib/unictype/categ_Sk.h: Likewise.
40006         * lib/unictype/categ_Sm.h: Likewise.
40007         * lib/unictype/categ_So.h: Likewise.
40008         * lib/unictype/categ_Z.h: Likewise.
40009         * lib/unictype/categ_Zl.h: Likewise.
40010         * lib/unictype/categ_Zp.h: Likewise.
40011         * lib/unictype/categ_Zs.h: Likewise.
40012         * lib/unictype/categ_of.h: Likewise.
40013         * lib/unictype/combining.h: Likewise.
40014         * lib/unictype/ctype_alnum.h: Likewise.
40015         * lib/unictype/ctype_alpha.h: Likewise.
40016         * lib/unictype/ctype_blank.h: Likewise.
40017         * lib/unictype/ctype_cntrl.h: Likewise.
40018         * lib/unictype/ctype_digit.h: Likewise.
40019         * lib/unictype/ctype_graph.h: Likewise.
40020         * lib/unictype/ctype_lower.h: Likewise.
40021         * lib/unictype/ctype_print.h: Likewise.
40022         * lib/unictype/ctype_punct.h: Likewise.
40023         * lib/unictype/ctype_space.h: Likewise.
40024         * lib/unictype/ctype_upper.h: Likewise.
40025         * lib/unictype/ctype_xdigit.h: Likewise.
40026         * lib/unictype/decdigit.h: Likewise.
40027         * lib/unictype/digit.h: Likewise.
40028         * lib/unictype/mirror.h: Likewise.
40029         * lib/unictype/numeric.h: Likewise.
40030         * lib/unictype/pr_alphabetic.h: Likewise.
40031         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
40032         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
40033         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
40034         * lib/unictype/pr_bidi_block_separator.h: Likewise.
40035         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
40036         * lib/unictype/pr_bidi_common_separator.h: Likewise.
40037         * lib/unictype/pr_bidi_control.h: Likewise.
40038         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
40039         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
40040         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
40041         * lib/unictype/pr_bidi_european_digit.h: Likewise.
40042         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
40043         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
40044         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
40045         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
40046         * lib/unictype/pr_bidi_pdf.h: Likewise.
40047         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
40048         * lib/unictype/pr_bidi_whitespace.h: Likewise.
40049         * lib/unictype/pr_combining.h: Likewise.
40050         * lib/unictype/pr_composite.h: Likewise.
40051         * lib/unictype/pr_currency_symbol.h: Likewise.
40052         * lib/unictype/pr_dash.h: Likewise.
40053         * lib/unictype/pr_decimal_digit.h: Likewise.
40054         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
40055         * lib/unictype/pr_deprecated.h: Likewise.
40056         * lib/unictype/pr_diacritic.h: Likewise.
40057         * lib/unictype/pr_extender.h: Likewise.
40058         * lib/unictype/pr_format_control.h: Likewise.
40059         * lib/unictype/pr_grapheme_base.h: Likewise.
40060         * lib/unictype/pr_grapheme_extend.h: Likewise.
40061         * lib/unictype/pr_grapheme_link.h: Likewise.
40062         * lib/unictype/pr_hex_digit.h: Likewise.
40063         * lib/unictype/pr_hyphen.h: Likewise.
40064         * lib/unictype/pr_id_continue.h: Likewise.
40065         * lib/unictype/pr_id_start.h: Likewise.
40066         * lib/unictype/pr_ideographic.h: Likewise.
40067         * lib/unictype/pr_ids_binary_operator.h: Likewise.
40068         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
40069         * lib/unictype/pr_ignorable_control.h: Likewise.
40070         * lib/unictype/pr_iso_control.h: Likewise.
40071         * lib/unictype/pr_join_control.h: Likewise.
40072         * lib/unictype/pr_left_of_pair.h: Likewise.
40073         * lib/unictype/pr_line_separator.h: Likewise.
40074         * lib/unictype/pr_logical_order_exception.h: Likewise.
40075         * lib/unictype/pr_lowercase.h: Likewise.
40076         * lib/unictype/pr_math.h: Likewise.
40077         * lib/unictype/pr_non_break.h: Likewise.
40078         * lib/unictype/pr_not_a_character.h: Likewise.
40079         * lib/unictype/pr_numeric.h: Likewise.
40080         * lib/unictype/pr_other_alphabetic.h: Likewise.
40081         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
40082         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
40083         * lib/unictype/pr_other_id_continue.h: Likewise.
40084         * lib/unictype/pr_other_id_start.h: Likewise.
40085         * lib/unictype/pr_other_lowercase.h: Likewise.
40086         * lib/unictype/pr_other_math.h: Likewise.
40087         * lib/unictype/pr_other_uppercase.h: Likewise.
40088         * lib/unictype/pr_paired_punctuation.h: Likewise.
40089         * lib/unictype/pr_paragraph_separator.h: Likewise.
40090         * lib/unictype/pr_pattern_syntax.h: Likewise.
40091         * lib/unictype/pr_pattern_white_space.h: Likewise.
40092         * lib/unictype/pr_private_use.h: Likewise.
40093         * lib/unictype/pr_punctuation.h: Likewise.
40094         * lib/unictype/pr_quotation_mark.h: Likewise.
40095         * lib/unictype/pr_radical.h: Likewise.
40096         * lib/unictype/pr_sentence_terminal.h: Likewise.
40097         * lib/unictype/pr_soft_dotted.h: Likewise.
40098         * lib/unictype/pr_space.h: Likewise.
40099         * lib/unictype/pr_terminal_punctuation.h: Likewise.
40100         * lib/unictype/pr_titlecase.h: Likewise.
40101         * lib/unictype/pr_unassigned_code_value.h: Likewise.
40102         * lib/unictype/pr_unified_ideograph.h: Likewise.
40103         * lib/unictype/pr_uppercase.h: Likewise.
40104         * lib/unictype/pr_variation_selector.h: Likewise.
40105         * lib/unictype/pr_white_space.h: Likewise.
40106         * lib/unictype/pr_xid_continue.h: Likewise.
40107         * lib/unictype/pr_xid_start.h: Likewise.
40108         * lib/unictype/pr_zero_width.h: Likewise.
40109         * lib/unictype/scripts.h: Likewise.
40110         * lib/unictype/scripts_byname.gperf: Likewise.
40111         * lib/unictype/sy_c_ident.h: Likewise.
40112         * lib/unictype/sy_c_whitespace.h: Likewise.
40113         * lib/unictype/sy_java_ident.h: Likewise.
40114         * lib/unictype/sy_java_whitespace.h: Likewise.
40115
40116         * lib/unictype/Makefile: New file.
40117         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
40118         glibc.
40119         * lib/unictype/3level.h: New file, copied from glibc.
40120         * lib/unictype/3levelbit.h: New file.
40121
40122 2007-11-11  Bruno Haible  <bruno@clisp.org>
40123
40124         * modules/gperf: New file.
40125         * modules/iconv_open (Depends-on): Add it.
40126         (Makefile.am): Remove the GPERF definition.
40127
40128 2007-11-11  Bruno Haible  <bruno@clisp.org>
40129
40130         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
40131         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
40132
40133 2007-11-11  Bruno Haible  <bruno@clisp.org>
40134
40135         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
40136         (usage): Remove function.
40137
40138 2007-11-11  Bruno Haible  <bruno@clisp.org>
40139
40140         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
40141         gl_FUNC_CEILF_LIBS.
40142         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
40143         gl_FUNC_CEIL_LIBS.
40144         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
40145         gl_FUNC_CEILL_LIBS.
40146         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
40147         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
40148         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
40149
40150 2007-11-11  Bruno Haible  <bruno@clisp.org>
40151
40152         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
40153         roundf were declared but do not exist on functions.
40154         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
40155         roundl were declared but do not exist on functions.
40156         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
40157         HAVE_FLOORL_AND_CEILL, respectively.
40158         Needed for Sun C on Solaris 10.
40159
40160 2007-11-11  Bruno Haible  <bruno@clisp.org>
40161
40162         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
40163         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
40164         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
40165         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
40166         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
40167         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
40168         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
40169         HAVE_DECL_ROUNDF.
40170         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
40171         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
40172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
40173         of HAVE_DECL_ROUND*.
40174         * modules/math (Makefile.am): Update.
40175
40176 2007-11-10  Bruno Haible  <bruno@clisp.org>
40177
40178         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
40179         ptrdiff_t as m4/intl.m4.
40180
40181 2007-11-10  Jim Meyering  <meyering@redhat.com>
40182
40183         Avoid link failure for the argmatch test.
40184         * tests/test-argmatch.c (usage): Define function to avoid a link
40185         failure: argmatch_die requires a usage function.
40186
40187 2007-11-09  Bruno Haible  <bruno@clisp.org>
40188
40189         * doc/functions/snprintf.texi: Mention BeOS deficiency.
40190         * doc/functions/vsnprintf.texi: Likewise.
40191         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
40192         with a size argument < 2.
40193
40194 2007-11-09  Bruno Haible  <bruno@clisp.org>
40195
40196         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
40197         buffer. Fixes an inefficiency introduced on 2007-11-03.
40198
40199 2007-11-09  Bruno Haible  <bruno@clisp.org>
40200
40201         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
40202         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
40203
40204 2007-11-08  Jim Meyering  <meyering@redhat.com>
40205
40206         Change cache variable name prefix "jm_" to "gl_" everywhere.
40207         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
40208         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
40209         * m4/uptime.m4: s/gl_/jm_/
40210
40211 2007-11-07  Bruno Haible  <bruno@clisp.org>
40212
40213         Update to GNU gettext 0.17.
40214         * m4/intl.m4: Update to GNU gettext 0.17.
40215         * m4/po.m4: Likewise.
40216         * modules/gettext (Files): Remove m4/ulonglong.m4.
40217         (configure.ac): Require gettext infrastructure from version 0.17.
40218
40219 2007-11-06  Bruno Haible  <bruno@clisp.org>
40220
40221         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
40222         symbolic values are not defined in a public header.
40223         * lib/freadable.c (freadable) [QNX]: Likewise.
40224         * lib/freadahead.c (freadahead) [QNX]: Likewise.
40225         * lib/freading.c (freading) [QNX]: Likewise.
40226         * lib/fseterr.c (fseterr) [QNX]: Likewise.
40227         * lib/fwritable.c (fwritable) [QNX]: Likewise.
40228         * lib/fwriting.c (fwriting) [QNX]: Likewise.
40229         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
40230         Reported by Alain Magloire.
40231
40232         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
40233
40234 2007-11-05  Bruno Haible  <bruno@clisp.org>
40235
40236         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
40237         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
40238         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
40239         Reported by Eric Blake.
40240
40241 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40242             Bruno Haible  <bruno@clisp.org>
40243
40244         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
40245         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
40246         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
40247         (malloc): Undefine also before including <stdlib.h>.
40248         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
40249         Needed on OSF/1 4.0.
40250
40251 2007-11-05  Jim Meyering  <meyering@redhat.com>
40252
40253         git-version-gen: sync from coreutils.
40254         * build-aux/git-version-gen: Add comments.
40255         Change the first '-' to '.' in the snapshot version string,
40256         e.g., 6.9-377-08144 -> 6.9.377-08144
40257         Remove first parameter.
40258         Don't declare a version "-dirty" merely because a time
40259         stamp has changed.
40260
40261 2007-11-04  Bruno Haible  <bruno@clisp.org>
40262
40263         * lib/lock.h: Protect all macro definitions containing an 'if'
40264         statement through a "do { ... } while (0)".
40265         * lib/tls.h: Likewise.
40266
40267 2007-11-04  Bruno Haible  <bruno@clisp.org>
40268
40269         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
40270
40271 2007-11-04  Bruno Haible  <bruno@clisp.org>
40272
40273         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
40274         * modules/fprintf-posix (Depends-on): Add nocrash.
40275         * modules/snprintf-posix (Depends-on): Likewise.
40276         * modules/sprintf-posix (Depends-on): Likewise.
40277         * modules/vasnprintf-posix (Depends-on): Likewise.
40278         * modules/vasprintf-posix (Depends-on): Likewise.
40279         * modules/vfprintf-posix (Depends-on): Likewise.
40280         * modules/vsnprintf-posix (Depends-on): Likewise.
40281         * modules/vsprintf-posix (Depends-on): Likewise.
40282         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40283         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40284         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40285         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40286         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40287         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40288         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40289
40290 2007-11-04  Bruno Haible  <bruno@clisp.org>
40291
40292         * modules/nocrash: New file.
40293         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
40294         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
40295
40296 2007-11-04  Bruno Haible  <bruno@clisp.org>
40297
40298         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
40299         precision handling.
40300         * tests/test-vasprintf-posix.c (test_function): Likewise.
40301         * tests/test-snprintf-posix.h (test_function): Likewise.
40302         * tests/test-sprintf-posix.h (test_function): Likewise.
40303
40304         Fix *printf behaviour for large precisions on mingw and BeOS.
40305         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
40306         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
40307         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
40308         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40309         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40310         gl_PRINTF_PRECISION and test its result. Invoke
40311         gl_PREREQ_VASNPRINTF_PRECISION.
40312         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40313         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40314         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40315         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40316         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40318         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40319         * doc/functions/fprintf.texi: Update.
40320         * doc/functions/printf.texi: Update.
40321         * doc/functions/snprintf.texi: Update.
40322         * doc/functions/sprintf.texi: Update.
40323         * doc/functions/vfprintf.texi: Update.
40324         * doc/functions/vprintf.texi: Update.
40325         * doc/functions/vsnprintf.texi: Update.
40326         * doc/functions/vsprintf.texi: Update.
40327
40328 2007-11-04  Bruno Haible  <bruno@clisp.org>
40329
40330         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
40331
40332 2007-11-04  Bruno Haible  <bruno@clisp.org>
40333
40334         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
40335         Reported by Sylvain Beucler <beuc@gnu.org>.
40336
40337 2007-11-03  Bruno Haible  <bruno@clisp.org>
40338
40339         * tests/test-fprintf-posix2.sh: New file.
40340         * tests/test-fprintf-posix2.c: New file.
40341         * modules/fprintf-posix-tests (Files): Add them.
40342         (TESTS): Add test-fprintf-posix2.sh.
40343         (configure.ac): Check for getrlimit and setrlimit.
40344         (check_PROGRAMS): Add test-fprintf-posix2.
40345
40346         * tests/test-printf-posix2.sh: New file.
40347         * tests/test-printf-posix2.c: New file.
40348         * modules/printf-posix-tests (Files): Add them.
40349         (TESTS): Add test-printf-posix2.sh.
40350         (configure.ac): Check for getrlimit and setrlimit.
40351         (check_PROGRAMS): Add test-printf-posix2.
40352
40353         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
40354         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
40355         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
40356         (decode_double): New function, copied from decode_long_double.
40357         (scale10_round_decimal_decoded): New function, extracted from
40358         scale10_round_decimal_long_double.
40359         (scale10_round_decimal_long_double): Use it.
40360         (scale10_round_decimal_double): New function.
40361         (floorlog10): New function.
40362         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
40363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
40364         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40365         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40366         gl_PRINTF_ENOMEM and test its result. Invoke
40367         gl_PREREQ_VASNPRINTF_ENOMEM.
40368         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40369         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40370         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40371         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40372         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40373         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40374         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40375         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
40376         * modules/snprintf-posix (Depends-on): Likewise.
40377         * modules/sprintf-posix (Depends-on): Likewise.
40378         * modules/vasnprintf-posix (Depends-on): Likewise.
40379         * modules/vasprintf-posix (Depends-on): Likewise.
40380         * modules/vfprintf-posix (Depends-on): Likewise.
40381         * modules/vsnprintf-posix (Depends-on): Likewise.
40382         * modules/vsprintf-posix (Depends-on): Likewise.
40383         * doc/functions/fprintf.texi: Update.
40384         * doc/functions/printf.texi: Update.
40385         * doc/functions/snprintf.texi: Update.
40386         * doc/functions/sprintf.texi: Update.
40387         * doc/functions/vfprintf.texi: Update.
40388         * doc/functions/vprintf.texi: Update.
40389         * doc/functions/vsnprintf.texi: Update.
40390         * doc/functions/vsprintf.texi: Update.
40391
40392 2007-11-03  Bruno Haible  <bruno@clisp.org>
40393
40394         * modules/frexp-nolibm-tests: New file.
40395
40396         * modules/frexp-nolibm: New file.
40397         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
40398
40399 2007-11-03  Bruno Haible  <bruno@clisp.org>
40400
40401         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
40402         value is C99 compliant.
40403         Needed for OSF/1 5.1.
40404
40405 2007-11-03  Bruno Haible  <bruno@clisp.org>
40406
40407         Fix out-of-memory handling of vasnprintf.
40408         * lib/printf-parse.c: Include <errno.h>.
40409         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
40410         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
40411         is already set.
40412
40413 2007-11-02  Eric Blake  <ebb9@byu.net>
40414
40415         Fix tests on cygwin.
40416         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
40417
40418 2007-11-01  Bruno Haible  <bruno@clisp.org>
40419
40420         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
40421         warning.
40422         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
40423         needed for POSIX compatibility.
40424
40425 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
40426
40427         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
40428         for compatibility with GNU.
40429
40430 2007-11-01  Bruno Haible  <bruno@clisp.org>
40431
40432         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
40433         (putenv): Renamed from rpl_putenv. Change argument type from
40434         'const char *' to 'char *'.
40435         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
40436         of defining putenv in config.h, just set REPLACE_PUTENV.
40437         * modules/putenv (Depends-on): Add stdlib.
40438         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40439         (Include): Use <stdlib.h>.
40440         * lib/stdlib.in.h (putenv): New declaration.
40441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
40442         REPLACE_PUTENV.
40443         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
40444         REPLACE_PUTENV.
40445         Needed for MacOS X 10.5.0.
40446         Reported by Peter O'Gorman <peter@pogma.com>.
40447
40448 2007-11-01  Jim Meyering  <meyering@redhat.com>
40449
40450         Treat an empty date string exactly like "0".
40451         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
40452         if the remaining date string (to be parsed) is empty, use "0".
40453         Reported by Mischa Molhoek and discussed in this thread:
40454         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
40455
40456 2007-10-31  Bruno Haible  <bruno@clisp.org>
40457
40458         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
40459         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
40460         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
40461         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
40462         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
40463         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
40464
40465 2007-10-31  Bruno Haible  <bruno@clisp.org>
40466
40467         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
40468         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
40469         (AC_TYPE_LONG_LONG_INT): Use it.
40470         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
40471         it as well.
40472         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
40473         to m4/longlong.m4.
40474         * modules/stdint (Files): Remove m4/ulonglong.m4.
40475         * modules/strtoull (Files): Use m4/longlong.m4 instead of
40476         m4/ulonglong.m4.
40477         * modules/strtoumax (Files): Likewise.
40478
40479 2007-10-30  Bruno Haible  <bruno@clisp.org>
40480
40481         * modules/xvasprintf-posix: New file.
40482         Suggested by Eric Blake.
40483
40484 2007-10-30  Bruno Haible  <bruno@clisp.org>
40485
40486         * modules/xprintf-posix-tests: New file.
40487         * tests/test-xprintf-posix.sh: New file.
40488         * tests/test-xprintf-posix.c: New file.
40489         * tests/test-xfprintf-posix.c: New file.
40490
40491         * modules/xprintf-posix: New file.
40492
40493 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40494
40495         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
40496         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
40497         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
40498
40499 2007-10-29  Bruno Haible  <bruno@clisp.org>
40500
40501         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
40502         contain the special marker '_cv_'.
40503         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40504         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40505         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40506         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
40507         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40508         Reported by Ralf Wildenhues.
40509
40510 2007-10-29  Bruno Haible  <bruno@clisp.org>
40511
40512         * gnulib-tool (func_import): When --lgpl is not specified, set
40513         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
40514         GPLv3.
40515         Reported by Simon Josefsson.
40516
40517 2007-10-28  Bruno Haible  <bruno@clisp.org>
40518
40519         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
40520         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
40521         HAVE_DECL_ISFINITE.
40522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
40523         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
40524         HAVE_DECL_ISFINITE.
40525
40526 2007-10-28  Bruno Haible  <bruno@clisp.org>
40527
40528         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
40529         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
40530
40531 2007-10-28  Bruno Haible  <bruno@clisp.org>
40532
40533         Fix link errors with Sun C 5.0 on Solaris 10.
40534         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
40535         function is declared but not present in the compiler's libm.
40536         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
40537         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
40538         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
40539         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
40540         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
40541         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
40542         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
40543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
40544         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
40545         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
40546         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
40547         HAVE_DECL_FLOORL.
40548
40549 2007-10-28  Bruno Haible  <bruno@clisp.org>
40550
40551         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
40552         gl_FUNC_FLOORL. Cache the result.
40553         (gl_FUNC_FLOORL): Use it.
40554         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
40555         gl_FUNC_CEILL. Cache the result.
40556         (gl_FUNC_CEILL): Use it.
40557
40558         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
40559         gl_FUNC_FLOOR. Cache the result.
40560         (gl_FUNC_FLOOR): Use it.
40561         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
40562         gl_FUNC_CEIL. Cache the result.
40563         (gl_FUNC_CEIL): Use it.
40564
40565         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
40566         gl_FUNC_FLOORF. Cache the result.
40567         (gl_FUNC_FLOORF): Use it.
40568         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
40569         gl_FUNC_CEILF. Cache the result.
40570         (gl_FUNC_CEILF): Use it.
40571
40572 2007-10-28  Bruno Haible  <bruno@clisp.org>
40573
40574         * gnulib-tool: Allow specifying the LGPL version number through
40575         --lgpl=2 or --lgpl=3.
40576         (func_usage): Document --lgpl with argument.
40577         Handle --lgpl=... arguments.
40578         (func_import): Recognize also gl_LGPL calls with an argument. When
40579         --lgpl=2 is used and the module's license is just LGPL, report an
40580         error. Set sed_transform_lib_file according to the lgpl variable. In
40581         the generated files, use --lgpl or gl_LGPL invocations with argument,
40582         if necessary.
40583         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
40584         an LGPv2+ license.
40585         * doc/gnulib-tool.texi (Modified imports): Update explanation of
40586         gl_LGPL macro.
40587
40588 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40589             Bruno Haible  <bruno@clisp.org>
40590
40591         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
40592         (u16_uctomb_aux): Likewise.
40593         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
40594         !HAVE_INLINE.
40595         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
40596
40597 2007-10-28  Bruno Haible  <bruno@clisp.org>
40598
40599         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
40600         Invoke AM_GETTEXT_OPTION if it exists.
40601         * modules/vasprintf: Likewise.
40602         * modules/verror: Likewise.
40603         * modules/xprintf: Likewise.
40604         * modules/xvasprintf: Likewise.
40605
40606 2007-10-27  Ben Pfaff  <blp@gnu.org>
40607
40608         * lib/math.in.h: Define isfinite macro and prototypes for
40609         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
40610         implementations.
40611         * m4/math_h.m4: New substitutions for isfinite module.
40612         * lib/isfinite.c: New file.
40613         * m4/isfinite.m4: New file.
40614         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
40615         * modules/isfinite: New file.
40616         * modules/isfinite-tests: New file.
40617         * tests/tests-isfinite.c: New file.
40618         * doc/functions/isfinite.texi: Mention isfinite module.
40619         * MODULES.html.sh: Mention new module.
40620
40621 2007-10-27  Ben Pfaff  <blp@gnu.org>
40622
40623         Ralf Wildenhues reported that Tru64 4.0D declares the round
40624         functions but does not have definitions.
40625         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
40626         cannot be found in any library, set the output variable to
40627         "missing" instead of "".
40628         * m4/round.m4: Also use our substitute if we cannot find round in
40629         any library, even if it is declared.
40630         * m4/roundf.m4: Likewise for roundf.
40631         * m4/roundl.m4: Likewise for roundl.
40632         * lib/math.in.h: Undefine roundf, round, roundl before defining
40633         their replacements, to allow for hypothetical systems where these
40634         may be defined as macros but not available in libraries.
40635
40636 2007-10-27  Bruno Haible  <bruno@clisp.org>
40637
40638         * doc/gnulib.texi: Invoke @firstparagraphindent.
40639         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
40640         changes in gnulib.
40641         (Source changes): New section.
40642
40643 2007-10-26  Bruno Haible  <bruno@clisp.org>
40644
40645         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
40646         borrowed from autoconf.
40647
40648 2007-10-26  Bruno Haible  <bruno@clisp.org>
40649
40650         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
40651         strerror returned the empty string. Needed on HP-UX 11.00.
40652
40653 2007-10-24  Micah Cowan  <micah@cowan.name>
40654
40655         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
40656         * build-aux/bootstrap: Remove support for now-unnecessary option,
40657         --cvs-user, and envvars CVS_USER, CVS_RSH.
40658
40659 2007-10-24  Jim Meyering  <meyering@redhat.com>
40660
40661         Avoid diagnostics from sha1sum when there is no cached checksum.
40662         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
40663         if the po.s1 file hasn't been created yet.
40664
40665         * build-aux/bootstrap: Sync from coreutils:
40666         2007-10-24  Jim Meyering  <meyering@redhat.com>
40667         Get gnulib from the git repository, not from an obsolete cvs one.
40668         * build-aux/bootstrap: Suggestion from Micah Cowan.
40669         2007-10-04  Jim Meyering  <jim@meyering.net>
40670         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
40671         (update_po_files): Work also when there are no .po files in po/.
40672
40673 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40674
40675         * README: Append ".git" to git and cg examples.
40676         Problem reported by Benoit Sigoure.
40677
40678 2007-10-23  Micah Cowan  <micah@cowan.name>
40679
40680         * users.txt: Add wget.
40681
40682 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40683
40684         Fix linking of some unistdio tests on FreeBSD.
40685         * modules/unistdio/u16-vsnprintf-tests
40686         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
40687         * modules/unistdio/u16-vsprintf-tests
40688         (test_u16_vsnprintf1_LDADD): Likewise.
40689         * modules/unistdio/u32-vsnprintf-tests
40690         (test_u32_vsnprintf1_LDADD): Likewise.
40691         * modules/unistdio/u32-vsprintf-tests
40692         (test_u32_vsprintf1_LDADD): Likewise.
40693         * modules/unistdio/u8-vsnprintf-tests
40694         (test_u8_vsnprintf1_LDADD): Likewise.
40695         * modules/unistdio/u8-vsprintf-tests
40696         (test_u8_vsprintf1_LDADD): Likewise.
40697         * modules/unistdio/ulc-vsnprintf-tests
40698         (test_ulc_vsnprintf1_LDADD): Likewise.
40699         * modules/unistdio/ulc-vsprintf-tests
40700         (test_ulc_vsprintf1_LDADD): Likewise.
40701
40702         Fix linking of some uniconv tests on FreeBSD.
40703         * modules/uniconv/u16-conv-from-enc-tests
40704         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
40705         * modules/uniconv/u16-conv-to-enc-tests
40706         (test_u16_conv_to_enc_LDADD): Likewise.
40707         * modules/uniconv/u16-strconv-from-enc-tests
40708         (test_u16_strconv_from_enc_LDADD): Likewise.
40709         * modules/uniconv/u16-strconv-to-enc-tests
40710         (test_u16_strconv_to_enc_LDADD): Likewise.
40711         * modules/uniconv/u32-conv-from-enc-tests
40712         (test_u32_conv_from_enc_LDADD): Likewise.
40713         * modules/uniconv/u32-conv-to-enc-tests
40714         (test_u32_conv_to_enc_LDADD): Likewise.
40715         * modules/uniconv/u32-strconv-from-enc-tests
40716         (test_u32_strconv_from_enc_LDADD): Likewise.
40717         * modules/uniconv/u32-strconv-to-enc-tests
40718         (test_u32_strconv_to_enc_LDADD): Likewise.
40719         * modules/uniconv/u8-conv-from-enc-tests
40720         (test_u8_conv_from_enc_LDADD): Likewise.
40721         * modules/uniconv/u8-conv-to-enc-tests
40722         (test_u8_conv_to_enc_LDADD): Likewise.
40723         * modules/uniconv/u8-strconv-from-enc-tests
40724         (test_u8_strconv_from_enc_LDADD): Likewise.
40725         * modules/uniconv/u8-strconv-to-enc-tests
40726         (test_u8_strconv_to_enc_LDADD): Likewise.
40727
40728 2007-10-22  Bruno Haible  <bruno@clisp.org>
40729
40730         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
40731         size.
40732
40733 2007-10-22  Eric Blake  <ebb9@byu.net>
40734
40735         Tweak x*printf documentation.
40736         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
40737         variable name and comments.
40738         Suggested by Bruno Haible.
40739
40740 2007-10-22  Bruno Haible  <bruno@clisp.org>
40741
40742         * lib/acl.c (copy_acl): Fix file name in comment.
40743
40744 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40745
40746         Fix Tru64 problem with stdbool.h.
40747         * lib/stdbool.in.h (false, true):
40748         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
40749         Don't declare as an enum in this situation; it runs afoul of Tru64.
40750         Problem reported by Steven M. Schweda in
40751         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
40752
40753 2007-10-22  Eric Blake  <ebb9@byu.net>
40754
40755         Also wrap vf?printf.
40756         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
40757         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
40758         (xvprintf, xvfprintf): New functions.
40759
40760 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40761
40762         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
40763         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
40764
40765         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
40766         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
40767
40768 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40769
40770         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
40771         by Bruno Haible.
40772
40773 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40774
40775         * lib/getloadavg.c
40776         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
40777         Undef `sys' after including sys/table.h, for Tru64 4.0D.
40778
40779         * tests/test-i-ring.c: Work for C89.
40780
40781 2007-10-22  Bruno Haible  <bruno@clisp.org>
40782
40783         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
40784         -1u, in preprocessor expression, so that we don't test for the bug
40785         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
40786         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
40787
40788 2007-10-22  Eric Blake  <ebb9@byu.net>
40789
40790         * tests/test-yesno.sh: Silence stderr during test.
40791
40792 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40793
40794         * modules/crypto/gc-camellia: New file.
40795
40796         * m4/gc-camellia.m4: New file.
40797
40798         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
40799
40800         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
40801
40802 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40803
40804         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
40805         --help to stdout.  Reported by sms@antinode.org (Steven
40806         M. Schweda).
40807
40808 2007-10-22  Simon Josefsson  <simon@josefsson.org>
40809
40810         * users.txt: Fix link to libksba.
40811
40812 2007-10-21  Ben Pfaff  <blp@gnu.org>
40813
40814         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
40815         round.c roundf implementation that depends on floorf and ceilf to
40816         be tested unconditionally.
40817
40818 2007-10-21  Ben Pfaff  <blp@gnu.org>
40819
40820         * m4/check-libm-func.m4: Removed.
40821         * m4/check-math-lib.m4: New file.
40822         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
40823         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
40824         definition and lack of AC_LIBOBJ([roundf]).
40825         * m4/roundl.m4: Ditto, and similarly for roundl.
40826         * modules/round: Reference new m4 file.
40827         * modules/roundf: Ditto.
40828         * modules/roundl: Ditto.
40829         * tests/test-round2.c (main): Use ROUND instead of round.
40830         Bug report from Bruno Haible.
40831
40832 2007-10-21  Bruno Haible  <bruno@clisp.org>
40833
40834         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
40835         context.
40836
40837 2007-10-21  Bruno Haible  <bruno@clisp.org>
40838
40839         * tests/test-wcwidth.c (main): Allow negative result for some control
40840         characters.
40841
40842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
40843         Needed on OSF/1 5.1.
40844
40845 2007-10-21  Bruno Haible  <bruno@clisp.org>
40846
40847         * tests/test-floorf1.c: Include isnanf.h.
40848         (main): Use isnanf() instead of isnan().
40849         * tests/test-ceilf1.c: Include isnanf.h.
40850         (main): Use isnanf() instead of isnan().
40851         * tests/test-truncf1.c: Include isnanf.h.
40852         (main): Use isnanf() instead of isnan().
40853         * tests/test-roundf1.c: Include isnanf.h.
40854         (main): Use isnanf() instead of isnan().
40855
40856 2007-10-21  Eric Blake  <ebb9@byu.net>
40857
40858         * users.txt: Update URL for m4.
40859
40860 2007-10-21  Bruno Haible  <bruno@clisp.org>
40861
40862         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
40863
40864 2007-10-21  Bruno Haible  <bruno@clisp.org>
40865
40866         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
40867         Git's management files if the CVS files are not present.
40868
40869 2007-10-20  Bruno Haible  <bruno@clisp.org>
40870
40871         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
40872         gcc-3.4.x.
40873
40874 2007-10-20  Ben Pfaff  <blp@gnu.org>
40875
40876         * lib/math.in.h: Declare round, roundf, roundl if we are providing
40877         implementations.
40878         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
40879         * lib/round.c: New file.
40880         * lib/roundf.c: New file.
40881         * lib/roundl.c: New file.
40882         * m4/round.m4: New file.
40883         * m4/roundf.m4: New file.
40884         * m4/roundl.m4: New file.
40885         * m4/check-libm-func-m4: New file.
40886         * modules/math: Replace round, roundf, roundl related @VARS@ in
40887         math.in.h.
40888         * modules/round: New file.
40889         * modules/round-tests: New file.
40890         * modules/roundf: New file.
40891         * modules/roundf-tests: New file.
40892         * modules/roundl: New file.
40893         * modules/roundl-tests: New file.
40894         * tests/test-round1.c: New file.
40895         * tests/test-round2.c: New file.
40896         * tests/test-roundf1.c: New file.
40897         * tests/test-roundf2.c: New file.
40898         * tests/test-roundl.c: New file.
40899         * doc/functions/round.texi: Mention round module.
40900         * doc/functions/roundf.texi: Mention roundf module.
40901         * doc/functions/roundl.texi: Mention roundl module.
40902         * MODULES.html.sh: Mention new modules.
40903         Thanks to Bruno Haible for suggestions.
40904
40905 2007-10-20  Jim Meyering  <meyering@redhat.com>
40906
40907         * lib/xprintf.c: Include <config.h> unconditionally.
40908
40909         Change xprintf's license to GPL.
40910         * modules/xprintf (License): s/LGPL/GPL/, since this module
40911         depends on modules (exit and exitfail) which are GPL.
40912         Suggestion from Bruno Haible.
40913
40914         xprintf fixes.
40915         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
40916         Use a clearer diagnostic.
40917         Patch from Bruno Haible.
40918
40919 2007-10-20  Bruno Haible  <bruno@clisp.org>
40920
40921         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
40922         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
40923         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40924
40925 2007-10-20  Bruno Haible  <bruno@clisp.org>
40926
40927         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
40928         precision in the comparison result > x - 1 or similar.
40929         * tests/test-ceilf2.c (correct_result_p): Likewise.
40930         * tests/test-truncf2.c (correct_result_p): Likewise.
40931         * tests/test-trunc2.c (correct_result_p): Likewise.
40932         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40933
40934 2007-10-20  Bruno Haible  <bruno@clisp.org>
40935
40936         * modules/ceil: New file.
40937         * m4/ceil.m4: New file.
40938         * doc/functions/ceil.texi: Mention the 'ceil' module.
40939
40940 2007-10-20  Bruno Haible  <bruno@clisp.org>
40941
40942         * modules/floor: New file.
40943         * m4/floor.m4: New file.
40944         * doc/functions/floor.texi: Mention the 'floor' module.
40945
40946 2007-10-20  Bruno Haible  <bruno@clisp.org>
40947
40948         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
40949         of %a.
40950         * modules/floorf-tests (Depends-on): Likewise.
40951         * modules/truncf-tests (Depends-on): Likewise.
40952         * modules/trunc-tests (Depends-on): Likewise.
40953         Reported by Ben Pfaff.
40954
40955 2007-10-19  Jim Meyering  <meyering@redhat.com>
40956
40957         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
40958         Don't bother testing specific errno values.  Just test ferror.
40959
40960         New module: xprintf
40961         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
40962
40963 2007-10-19  Bruno Haible  <bruno@clisp.org>
40964
40965         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
40966         syntax.
40967         * modules/javaexec (Makefile.am): Likewise.
40968         * modules/relocatable-prog (Makefile.am): Likewise.
40969         Suggested by Jim Meyering.
40970
40971 2007-10-18  Bruno Haible  <bruno@clisp.org>
40972
40973         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
40974         Reported by Jim Meyering.
40975
40976 2007-10-18  Eric Blake  <ebb9@byu.net>
40977
40978         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
40979
40980 2007-10-18  Bruno Haible  <bruno@clisp.org>
40981
40982         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
40983         the format string into writable memory. Needed in Fortify conditions.
40984
40985 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
40986             Bruno Haible  <bruno@clisp.org>
40987
40988         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
40989         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
40990         * modules/trim (Depends-on): Add mbchar.
40991         (configure.ac): Add gl_FUNC_MBRTOWC.
40992         (Makefile.am): Augment lib_SOURCES.
40993
40994 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40995
40996         Modify glob.c to use fstatat and dirfd, to simplify it.
40997         Suggested by Eric Blake.
40998         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
40999         Don't include <stdbool.h>; not used.
41000         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
41001         (link_exists_p): Simplify implementation, since we can now assume
41002         dirfd and fstatat.
41003         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
41004
41005 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41006
41007         * gnulib-tool (func_get_dependencies): Fix sed script to
41008         match only tests.
41009
41010 2007-10-17  Bruno Haible  <bruno@clisp.org>
41011
41012         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
41013         allow locale names without encoding suffix.
41014         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41015         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41016
41017 2007-10-16  Bruno Haible  <bruno@clisp.org>
41018
41019         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
41020         * lib/getgroups.c (getgroups): Likewise.
41021         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
41022
41023 2007-10-16  Bruno Haible  <bruno@clisp.org>
41024
41025         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
41026         * modules/malloc-posix (License): Likewise.
41027         * modules/realloc-posix (License): Likewise.
41028         * modules/calloc-posix (License): Likewise.
41029         * modules/intprops (License): Change from GPL to LGPL, with
41030         Paul Eggert's approval.
41031
41032 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41033
41034         Merge glibc changes into lib/glob.c.
41035
41036         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
41037         2007-10-15 04:59:03 UTC.  Here are the changes:
41038
41039         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
41040
41041         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
41042
41043         * lib/glob.c: Add some branch prediction throughout.
41044
41045         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
41046
41047         [BZ #5103]
41048         * lib/glob.c (glob): Recognize patterns starting \/.
41049
41050         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
41051
41052         [BZ #3996]
41053         * lib/glob.c (attribute_hidden): Define if not defined.
41054         (glob): Unescape dirname, filename or username when needed and not
41055         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
41056         is NULL.  Handle unescaped [ in pattern without closing ].
41057         Don't pass GLOB_CHECK down to recursive glob for directories.
41058         (__glob_pattern_type): New function.
41059         (__glob_pattern_p): Implement using __glob_pattern_type.
41060         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
41061         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
41062         Remove unreachable code.
41063
41064         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
41065
41066         * lib/glob.c (glob_in_dir): Add some comments and asserts to
41067         explain why there are no leaks.
41068
41069         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
41070
41071         [BZ #3253]
41072         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
41073         time, rather allocate increasingly bigger arrays of pointers, if
41074         possible with alloca, if too large with malloc.
41075
41076 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41077
41078         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
41079         Problem reported by H.Merijn Brand in
41080         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
41081         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
41082         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
41083
41084 2007-10-15  Bruno Haible  <bruno@clisp.org>
41085
41086         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
41087         with explicit rpl_ prefix.
41088         * lib/fopen.c (fopen): Likewise.
41089         * lib/freopen.c (freopen): Likewise.
41090         * lib/iconv.c (iconv): Likewise.
41091         * lib/iconv_close.c (iconv_close): Likewise.
41092
41093 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41094
41095         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
41096
41097 2007-10-15  Bruno Haible  <bruno@clisp.org>
41098
41099         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
41100         <stddef.h> instead of <stdlib.h> since we only need NULL.
41101         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41102
41103 2007-10-15  Bruno Haible  <bruno@clisp.org>
41104
41105         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
41106         Replace paragraph talking about LIBOBJS.
41107         Reported by Colin Watson <cjwatson@debian.org>.
41108
41109 2007-10-15  Bruno Haible  <bruno@clisp.org>
41110
41111         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
41112         <stdlib.h> before using NULL.
41113
41114 2007-10-15  Simon Josefsson  <simon@josefsson.org>
41115
41116         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
41117         Reported by Albert Chin <china@thewrittenword.com>.
41118
41119 2007-10-14  Bruno Haible  <bruno@clisp.org>
41120
41121         * modules/iconv_open-utf-tests: New file.
41122         * tests/test-iconv-utf.c: New file.
41123
41124         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
41125         * modules/iconv_open-utf: New file.
41126         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
41127         (iconv, iconv_close): New declarations.
41128         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
41129         be defined.
41130         (iconv_open): Add special handling of conversion between UTF-8 and
41131         UTF-{16,32}{BE,LE}.
41132         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
41133         * lib/iconv_close.c: New file.
41134         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
41135         gl_FUNC_ICONV_OPEN.
41136         (gl_FUNC_ICONV_OPEN): Use it.
41137         (gl_FUNC_ICONV_OPEN_UTF): New macro.
41138         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
41139         and REPLACE_ICONV_UTF.
41140         * modules/iconv_open (Depends-on): Add c-strcase.
41141         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
41142         ICONV_CONST.
41143         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
41144
41145 2007-10-13  Albert Chin  <china@thewrittenword.com>
41146             Bruno Haible  <bruno@clisp.org>
41147
41148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
41149         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
41150
41151 2007-10-13  Bruno Haible  <bruno@clisp.org>
41152
41153         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
41154         defined, use the ISO C99 inline semantics.
41155         * lib/argp.h (ARGP_EI): Likewise.
41156
41157 2007-10-13  Bruno Haible  <bruno@clisp.org>
41158
41159         Handle 'inline' change in gcc 4.3.0.
41160         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
41161         argp_fmtstream_write, argp_fmtstream_set_lmargin,
41162         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
41163         argp_fmtstream_point): Disable 'extern' declaration if the function
41164         definition is going to be provided inline.
41165         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
41166         semantics, not the ISO C99 inline semantics.
41167         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
41168         'extern' declaration if the function definition is going to be provided
41169         inline.
41170         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
41171         the GNU C inline semantics, not the ISO C99 inline semantics. With
41172         GCC 4.2, avoid a warning.
41173
41174 2007-10-13  Bruno Haible  <bruno@clisp.org>
41175
41176         * lib/freading.h (freading): Enable the use of __freading for
41177         glibc >= 2.7.
41178         * lib/freading.c (freading): Likewise.
41179
41180 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41181
41182         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
41183         "warning: C99 inline functions are not supported; using GNU89".
41184
41185 2007-10-12  Bruno Haible  <bruno@clisp.org>
41186
41187         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
41188         of 2.
41189         * tests/test-ceilf2.c: New file.
41190         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
41191
41192         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
41193         * modules/ceilf-tests: Update.
41194
41195 2007-10-12  Bruno Haible  <bruno@clisp.org>
41196
41197         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
41198         of 2.
41199         * tests/test-floorf2.c: New file.
41200         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
41201
41202         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
41203         * modules/floorf-tests: Update.
41204
41205 2007-10-12  Bruno Haible  <bruno@clisp.org>
41206
41207         * tests/test-trunc2.c: New file.
41208         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
41209
41210         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
41211         * modules/trunc-tests: Update.
41212
41213 2007-10-12  Bruno Haible  <bruno@clisp.org>
41214
41215         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
41216         of 2.
41217         * tests/test-truncf2.c: New file.
41218         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
41219
41220         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
41221         * modules/truncf-tests: Update.
41222
41223 2007-10-11  Eric Blake  <ebb9@byu.net>
41224
41225         Don't claim strerror is broken on Interix.
41226         * doc/functions/strerror.texi (strerror): Known broken systems are
41227         now Solaris 8, and not Interix.
41228         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
41229         Interix on cross-compile.
41230         Reported by Martin Koeppe in
41231         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
41232
41233 2007-10-11  Bruno Haible  <bruno@clisp.org>
41234
41235         * modules/i-ring-tests: New file.
41236         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
41237         instead of assert.
41238
41239 2007-10-11  Bruno Haible  <bruno@clisp.org>
41240
41241         * modules/filenamecat-tests: New file.
41242         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
41243         * lib/filenamecat.c: Remove test code.
41244
41245 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41246
41247         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
41248
41249         * lib/strerror.c: Include <string.h> always, to test interface,
41250         and to remove the need for the dummy.
41251         Include intprops.h to compute width instead of doing it ourselves
41252         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
41253         (strerror): Define it to return NULL if there's no system strerror.
41254         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
41255         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
41256         ancient pre-strerror Unix systems well any more.  Saying "unknown
41257         system error" is enough.
41258         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
41259         simpler strerror.c implementation.
41260         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
41261         Simplify the tests to reflect the simpler strerror implementation.
41262         * modules/strerror (Depends-on): Add intprops.
41263
41264 2007-10-09  Eric Blake  <ebb9@byu.net>
41265
41266         Silence test-fpending.
41267         * modules/fpending-tests (Files): Add wrapper script.
41268         * tests/test-fpending.sh: New file.
41269
41270 2007-10-09  Bruno Haible  <bruno@clisp.org>
41271
41272         * MODULES.html.sh (func_module): Don't create a hyperlink for
41273         function names like 'printf_frexp'.
41274         (Misc): Add crc, memxor.
41275         (Characteristics of floating types): New section.
41276         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
41277         isnanf-nolibm, signbit, trunc, truncf, truncl.
41278         (Enhancements for ISO C 99 functions): New subsection Input/output.
41279         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
41280         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
41281         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
41282         (Compatibility checks for POSIX:2001 functions): Add clock-time.
41283         (Enhancements for POSIX:2001 functions): Add chdir-long.
41284         (File system functions): Add areadlink, chdir-safer, read-file.
41285         Remove cycle-check.
41286         (File system as inode set): New section.
41287         (Date and time): Add gethrxtime.
41288         (Multithreading): Add openmp.
41289         (Internationalization functions): Add localename.
41290         (Unicode string functions): Add unistr/u*-mbsnlen.
41291         (Support for maintaining and releasing projects): Add git-version-gen.
41292         (Lone files): Remove directories.
41293
41294 2007-10-08  Ben Pfaff  <blp@gnu.org>
41295
41296         * lib/xmalloca.h: Fix typo in comment.
41297
41298 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41299
41300         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
41301         when avoiding problems with integer overflow.  Use a portable test
41302         instead.
41303
41304 2007-10-08  Simon Josefsson  <simon@josefsson.org>
41305
41306         * modules/dummy (License): Change to LGPLv2+.
41307         * modules/float (License): Likewise
41308         * modules/realloc (License): Likewise
41309         * modules/stdlib (License): Likewise
41310
41311 2007-10-07  Bruno Haible  <bruno@clisp.org>
41312
41313         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
41314         * floor.c (TWO_MANT_DIG): Likewise.
41315         * ceil.c (TWO_MANT_DIG): Likewise.
41316         Reported by Ben Pfaff.
41317
41318 2007-10-07  Bruno Haible  <bruno@clisp.org>
41319
41320         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
41321         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
41322         * lib/frexp.c (FUNC): Likewise.
41323         * lib/printf-frexp.h (printf_frexp): Likewise.
41324         * lib/printf-frexpl.h (printf_frexpl): Likewise.
41325         * lib/printf-frexp.c (FUNC): Likewise.
41326         Suggested by Jim Meyering.
41327
41328 2007-10-07  Jim Meyering  <meyering@redhat.com>
41329
41330         Make xnanosleep's integer overflow test more robust.
41331         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
41332         so that gcc-4.3.0 doesn't optimize away this test for overflow.
41333
41334 2007-10-07  Bruno Haible  <bruno@clisp.org>
41335
41336         * NEWS: Mention the license change.
41337
41338         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
41339         abbreviations in the modules files.
41340
41341         Change copyright notice from GPLv2+ to GPLv3+.
41342         * README: Change copyright notice.
41343         * MODULES.html.sh: Likewise.
41344         * build-aux/bootstrap.conf: Likewise.
41345         * build-aux/config.libpath: Likewise.
41346         * build-aux/csharpcomp.sh.in: Likewise.
41347         * build-aux/csharpexec.sh.in: Likewise.
41348         * build-aux/install-reloc: Likewise.
41349         * build-aux/javacomp.sh.in: Likewise.
41350         * build-aux/javaexec.sh.in: Likewise.
41351         * build-aux/ldd.sh.in: Likewise.
41352         * build-aux/reloc-ldflags: Likewise.
41353         * build-aux/relocatable.sh.in: Likewise.
41354         * build-aux/x-to-1.in: Likewise.
41355         * check-module: Likewise.
41356         * config/srclistvars.sh: Likewise.
41357         * gnulib-tool: Likewise.
41358         * lib/acl-internal.h: Likewise.
41359         * lib/acl.c: Likewise.
41360         * lib/acl.h: Likewise.
41361         * lib/acl_entries.c: Likewise.
41362         * lib/areadlink-with-size.c: Likewise.
41363         * lib/areadlink.c: Likewise.
41364         * lib/areadlink.h: Likewise.
41365         * lib/argmatch.c: Likewise.
41366         * lib/argmatch.h: Likewise.
41367         * lib/argp-ba.c: Likewise.
41368         * lib/argp-eexst.c: Likewise.
41369         * lib/argp-fmtstream.c: Likewise.
41370         * lib/argp-fmtstream.h: Likewise.
41371         * lib/argp-fs-xinl.c: Likewise.
41372         * lib/argp-help.c: Likewise.
41373         * lib/argp-namefrob.h: Likewise.
41374         * lib/argp-parse.c: Likewise.
41375         * lib/argp-pin.c: Likewise.
41376         * lib/argp-pv.c: Likewise.
41377         * lib/argp-pvh.c: Likewise.
41378         * lib/argp-xinl.c: Likewise.
41379         * lib/argp.h: Likewise.
41380         * lib/at-func.c: Likewise.
41381         * lib/atanl.c: Likewise.
41382         * lib/backupfile.c: Likewise.
41383         * lib/backupfile.h: Likewise.
41384         * lib/basename.c: Likewise.
41385         * lib/binary-io.h: Likewise.
41386         * lib/byteswap.in.h: Likewise.
41387         * lib/c-stack.c: Likewise.
41388         * lib/c-stack.h: Likewise.
41389         * lib/c-strcasestr.c: Likewise.
41390         * lib/c-strcasestr.h: Likewise.
41391         * lib/c-strstr.c: Likewise.
41392         * lib/c-strstr.h: Likewise.
41393         * lib/c-strtod.c: Likewise.
41394         * lib/calloc.c: Likewise.
41395         * lib/canon-host.c: Likewise.
41396         * lib/canon-host.h: Likewise.
41397         * lib/canonicalize-lgpl.c: Likewise.
41398         * lib/canonicalize.c: Likewise.
41399         * lib/canonicalize.h: Likewise.
41400         * lib/ceil.c: Likewise.
41401         * lib/ceilf.c: Likewise.
41402         * lib/ceill.c: Likewise.
41403         * lib/chdir-long.c: Likewise.
41404         * lib/chdir-long.h: Likewise.
41405         * lib/chdir-safer.c: Likewise.
41406         * lib/chdir-safer.h: Likewise.
41407         * lib/chown.c: Likewise.
41408         * lib/classpath.c: Likewise.
41409         * lib/classpath.h: Likewise.
41410         * lib/clean-temp.c: Likewise.
41411         * lib/clean-temp.h: Likewise.
41412         * lib/cloexec.c: Likewise.
41413         * lib/close-stream.c: Likewise.
41414         * lib/closein.c: Likewise.
41415         * lib/closein.h: Likewise.
41416         * lib/closeout.c: Likewise.
41417         * lib/closeout.h: Likewise.
41418         * lib/concat-filename.c: Likewise.
41419         * lib/copy-file.c: Likewise.
41420         * lib/copy-file.h: Likewise.
41421         * lib/count-one-bits.h: Likewise.
41422         * lib/crc.c: Likewise.
41423         * lib/crc.h: Likewise.
41424         * lib/creat-safer.c: Likewise.
41425         * lib/csharpcomp.c: Likewise.
41426         * lib/csharpcomp.h: Likewise.
41427         * lib/csharpexec.c: Likewise.
41428         * lib/csharpexec.h: Likewise.
41429         * lib/cycle-check.c: Likewise.
41430         * lib/cycle-check.h: Likewise.
41431         * lib/diacrit.c: Likewise.
41432         * lib/diacrit.h: Likewise.
41433         * lib/diffseq.h: Likewise.
41434         * lib/dirchownmod.c: Likewise.
41435         * lib/dirent.in.h: Likewise.
41436         * lib/dirfd.c: Likewise.
41437         * lib/dirfd.h: Likewise.
41438         * lib/dirname.c: Likewise.
41439         * lib/dirname.h: Likewise.
41440         * lib/dummy.c: Likewise.
41441         * lib/dup-safer.c: Likewise.
41442         * lib/dup2.c: Likewise.
41443         * lib/eealloc.h: Likewise.
41444         * lib/error.c: Likewise.
41445         * lib/error.h: Likewise.
41446         * lib/euidaccess.c: Likewise.
41447         * lib/exclude.c: Likewise.
41448         * lib/exclude.h: Likewise.
41449         * lib/execute.c: Likewise.
41450         * lib/execute.h: Likewise.
41451         * lib/exitfail.c: Likewise.
41452         * lib/exitfail.h: Likewise.
41453         * lib/expl.c: Likewise.
41454         * lib/fatal-signal.c: Likewise.
41455         * lib/fatal-signal.h: Likewise.
41456         * lib/fbufmode.c: Likewise.
41457         * lib/fbufmode.h: Likewise.
41458         * lib/fchdir.c: Likewise.
41459         * lib/fchmodat.c: Likewise.
41460         * lib/fchownat.c: Likewise.
41461         * lib/fcntl--.h: Likewise.
41462         * lib/fcntl-safer.h: Likewise.
41463         * lib/fcntl.in.h: Likewise.
41464         * lib/fd-safer.c: Likewise.
41465         * lib/fflush.c: Likewise.
41466         * lib/file-has-acl.c: Likewise.
41467         * lib/file-set.c: Likewise.
41468         * lib/file-type.c: Likewise.
41469         * lib/file-type.h: Likewise.
41470         * lib/fileblocks.c: Likewise.
41471         * lib/filemode.c: Likewise.
41472         * lib/filemode.h: Likewise.
41473         * lib/filename.h: Likewise.
41474         * lib/filenamecat.c: Likewise.
41475         * lib/filenamecat.h: Likewise.
41476         * lib/findprog.c: Likewise.
41477         * lib/findprog.h: Likewise.
41478         * lib/float.in.h: Likewise.
41479         * lib/floor.c: Likewise.
41480         * lib/floorf.c: Likewise.
41481         * lib/floorl.c: Likewise.
41482         * lib/fopen-safer.c: Likewise.
41483         * lib/fopen.c: Likewise.
41484         * lib/fpending.c: Likewise.
41485         * lib/fpending.h: Likewise.
41486         * lib/fprintf.c: Likewise.
41487         * lib/fprintftime.h: Likewise.
41488         * lib/fpucw.h: Likewise.
41489         * lib/fpurge.c: Likewise.
41490         * lib/fpurge.h: Likewise.
41491         * lib/freadable.c: Likewise.
41492         * lib/freadable.h: Likewise.
41493         * lib/freadahead.c: Likewise.
41494         * lib/freadahead.h: Likewise.
41495         * lib/freading.c: Likewise.
41496         * lib/freading.h: Likewise.
41497         * lib/free.c: Likewise.
41498         * lib/freopen.c: Likewise.
41499         * lib/frexp.c: Likewise.
41500         * lib/frexpl.c: Likewise.
41501         * lib/fseek.c: Likewise.
41502         * lib/fseterr.c: Likewise.
41503         * lib/fseterr.h: Likewise.
41504         * lib/fstatat.c: Likewise.
41505         * lib/fstrcmp.c: Likewise.
41506         * lib/fstrcmp.h: Likewise.
41507         * lib/fsusage.c: Likewise.
41508         * lib/fsusage.h: Likewise.
41509         * lib/ftell.c: Likewise.
41510         * lib/ftello.c: Likewise.
41511         * lib/fts-cycle.c: Likewise.
41512         * lib/fts.c: Likewise.
41513         * lib/fts_.h: Likewise.
41514         * lib/full-read.c: Likewise.
41515         * lib/full-read.h: Likewise.
41516         * lib/full-write.c: Likewise.
41517         * lib/full-write.h: Likewise.
41518         * lib/fwritable.c: Likewise.
41519         * lib/fwritable.h: Likewise.
41520         * lib/fwriteerror.c: Likewise.
41521         * lib/fwriteerror.h: Likewise.
41522         * lib/fwriting.c: Likewise.
41523         * lib/fwriting.h: Likewise.
41524         * lib/gcd.c: Likewise.
41525         * lib/gcd.h: Likewise.
41526         * lib/getcwd.c: Likewise.
41527         * lib/getdate.h: Likewise.
41528         * lib/getdate.y: Likewise.
41529         * lib/getdomainname.c: Likewise.
41530         * lib/getdomainname.h: Likewise.
41531         * lib/getgroups.c: Likewise.
41532         * lib/gethostname.c: Likewise.
41533         * lib/gethrxtime.c: Likewise.
41534         * lib/gethrxtime.h: Likewise.
41535         * lib/getloadavg.c: Likewise.
41536         * lib/getndelim2.c: Likewise.
41537         * lib/getndelim2.h: Likewise.
41538         * lib/getnline.c: Likewise.
41539         * lib/getnline.h: Likewise.
41540         * lib/getopt.c: Likewise.
41541         * lib/getopt.in.h: Likewise.
41542         * lib/getopt1.c: Likewise.
41543         * lib/getopt_int.h: Likewise.
41544         * lib/getpagesize.h: Likewise.
41545         * lib/getsubopt.c: Likewise.
41546         * lib/gettime.c: Likewise.
41547         * lib/getugroups.c: Likewise.
41548         * lib/getugroups.h: Likewise.
41549         * lib/getusershell.c: Likewise.
41550         * lib/gl_anyavltree_list1.h: Likewise.
41551         * lib/gl_anyavltree_list2.h: Likewise.
41552         * lib/gl_anyhash_list1.h: Likewise.
41553         * lib/gl_anyhash_list2.h: Likewise.
41554         * lib/gl_anylinked_list1.h: Likewise.
41555         * lib/gl_anylinked_list2.h: Likewise.
41556         * lib/gl_anyrbtree_list1.h: Likewise.
41557         * lib/gl_anyrbtree_list2.h: Likewise.
41558         * lib/gl_anytree_list1.h: Likewise.
41559         * lib/gl_anytree_list2.h: Likewise.
41560         * lib/gl_anytree_oset.h: Likewise.
41561         * lib/gl_anytreehash_list1.h: Likewise.
41562         * lib/gl_anytreehash_list2.h: Likewise.
41563         * lib/gl_array_list.c: Likewise.
41564         * lib/gl_array_list.h: Likewise.
41565         * lib/gl_array_oset.c: Likewise.
41566         * lib/gl_array_oset.h: Likewise.
41567         * lib/gl_avltree_list.c: Likewise.
41568         * lib/gl_avltree_list.h: Likewise.
41569         * lib/gl_avltree_oset.c: Likewise.
41570         * lib/gl_avltree_oset.h: Likewise.
41571         * lib/gl_avltreehash_list.c: Likewise.
41572         * lib/gl_avltreehash_list.h: Likewise.
41573         * lib/gl_carray_list.c: Likewise.
41574         * lib/gl_carray_list.h: Likewise.
41575         * lib/gl_linked_list.c: Likewise.
41576         * lib/gl_linked_list.h: Likewise.
41577         * lib/gl_linkedhash_list.c: Likewise.
41578         * lib/gl_linkedhash_list.h: Likewise.
41579         * lib/gl_list.c: Likewise.
41580         * lib/gl_list.h: Likewise.
41581         * lib/gl_oset.c: Likewise.
41582         * lib/gl_oset.h: Likewise.
41583         * lib/gl_rbtree_list.c: Likewise.
41584         * lib/gl_rbtree_list.h: Likewise.
41585         * lib/gl_rbtree_oset.c: Likewise.
41586         * lib/gl_rbtree_oset.h: Likewise.
41587         * lib/gl_rbtreehash_list.c: Likewise.
41588         * lib/gl_rbtreehash_list.h: Likewise.
41589         * lib/gl_sublist.c: Likewise.
41590         * lib/gl_sublist.h: Likewise.
41591         * lib/group-member.c: Likewise.
41592         * lib/group-member.h: Likewise.
41593         * lib/hard-locale.c: Likewise.
41594         * lib/hard-locale.h: Likewise.
41595         * lib/hash-pjw.c: Likewise.
41596         * lib/hash-pjw.h: Likewise.
41597         * lib/hash-triple.c: Likewise.
41598         * lib/hash.c: Likewise.
41599         * lib/hash.h: Likewise.
41600         * lib/human.c: Likewise.
41601         * lib/human.h: Likewise.
41602         * lib/i-ring.c: Likewise.
41603         * lib/i-ring.h: Likewise.
41604         * lib/idcache.c: Likewise.
41605         * lib/imaxabs.c: Likewise.
41606         * lib/imaxdiv.c: Likewise.
41607         * lib/inet_pton.c: Likewise.
41608         * lib/inet_pton.h: Likewise.
41609         * lib/intprops.h: Likewise.
41610         * lib/inttostr.c: Likewise.
41611         * lib/inttostr.h: Likewise.
41612         * lib/inttypes.in.h: Likewise.
41613         * lib/isapipe.c: Likewise.
41614         * lib/isdir.c: Likewise.
41615         * lib/isnan.c: Likewise.
41616         * lib/isnan.h: Likewise.
41617         * lib/isnanf.c: Likewise.
41618         * lib/isnanf.h: Likewise.
41619         * lib/isnanl-nolibm.h: Likewise.
41620         * lib/isnanl.c: Likewise.
41621         * lib/isnanl.h: Likewise.
41622         * lib/javacomp.c: Likewise.
41623         * lib/javacomp.h: Likewise.
41624         * lib/javaexec.c: Likewise.
41625         * lib/javaexec.h: Likewise.
41626         * lib/javaversion.c: Likewise.
41627         * lib/javaversion.h: Likewise.
41628         * lib/javaversion.java: Likewise.
41629         * lib/lbrkprop.h: Likewise.
41630         * lib/lchmod.h: Likewise.
41631         * lib/lchown.c: Likewise.
41632         * lib/ldexpl.c: Likewise.
41633         * lib/linebreak.c: Likewise.
41634         * lib/linebreak.h: Likewise.
41635         * lib/linebuffer.c: Likewise.
41636         * lib/linebuffer.h: Likewise.
41637         * lib/locale.in.h: Likewise.
41638         * lib/logl.c: Likewise.
41639         * lib/long-options.c: Likewise.
41640         * lib/long-options.h: Likewise.
41641         * lib/lstat.c: Likewise.
41642         * lib/lstat.h: Likewise.
41643         * lib/math.in.h: Likewise.
41644         * lib/mbchar.c: Likewise.
41645         * lib/mbchar.h: Likewise.
41646         * lib/mbfile.h: Likewise.
41647         * lib/mbiter.h: Likewise.
41648         * lib/mbscasecmp.c: Likewise.
41649         * lib/mbscasestr.c: Likewise.
41650         * lib/mbschr.c: Likewise.
41651         * lib/mbscspn.c: Likewise.
41652         * lib/mbslen.c: Likewise.
41653         * lib/mbsncasecmp.c: Likewise.
41654         * lib/mbsnlen.c: Likewise.
41655         * lib/mbspbrk.c: Likewise.
41656         * lib/mbspcasecmp.c: Likewise.
41657         * lib/mbsrchr.c: Likewise.
41658         * lib/mbssep.c: Likewise.
41659         * lib/mbsspn.c: Likewise.
41660         * lib/mbsstr.c: Likewise.
41661         * lib/mbstok_r.c: Likewise.
41662         * lib/mbswidth.c: Likewise.
41663         * lib/mbswidth.h: Likewise.
41664         * lib/mbuiter.h: Likewise.
41665         * lib/memcasecmp.c: Likewise.
41666         * lib/memcasecmp.h: Likewise.
41667         * lib/memchr.c: Likewise.
41668         * lib/memcmp.c: Likewise.
41669         * lib/memcoll.c: Likewise.
41670         * lib/memcoll.h: Likewise.
41671         * lib/memcpy.c: Likewise.
41672         * lib/memrchr.c: Likewise.
41673         * lib/mkancesdirs.c: Likewise.
41674         * lib/mkdir-p.c: Likewise.
41675         * lib/mkdir-p.h: Likewise.
41676         * lib/mkdir.c: Likewise.
41677         * lib/mkdirat.c: Likewise.
41678         * lib/mkdtemp.c: Likewise.
41679         * lib/mkstemp-safer.c: Likewise.
41680         * lib/mkstemp.c: Likewise.
41681         * lib/modechange.c: Likewise.
41682         * lib/modechange.h: Likewise.
41683         * lib/mountlist.c: Likewise.
41684         * lib/mountlist.h: Likewise.
41685         * lib/mpsort.c: Likewise.
41686         * lib/nanosleep.c: Likewise.
41687         * lib/obstack.c: Likewise.
41688         * lib/obstack.h: Likewise.
41689         * lib/open-safer.c: Likewise.
41690         * lib/open.c: Likewise.
41691         * lib/openat-die.c: Likewise.
41692         * lib/openat-priv.h: Likewise.
41693         * lib/openat-proc.c: Likewise.
41694         * lib/openat.c: Likewise.
41695         * lib/openat.h: Likewise.
41696         * lib/pagealign_alloc.c: Likewise.
41697         * lib/pagealign_alloc.h: Likewise.
41698         * lib/physmem.c: Likewise.
41699         * lib/physmem.h: Likewise.
41700         * lib/pipe-safer.c: Likewise.
41701         * lib/pipe.c: Likewise.
41702         * lib/pipe.h: Likewise.
41703         * lib/posixtm.c: Likewise.
41704         * lib/posixtm.h: Likewise.
41705         * lib/posixver.c: Likewise.
41706         * lib/printf-frexp.c: Likewise.
41707         * lib/printf-frexp.h: Likewise.
41708         * lib/printf-frexpl.c: Likewise.
41709         * lib/printf-frexpl.h: Likewise.
41710         * lib/printf.c: Likewise.
41711         * lib/progname.c: Likewise.
41712         * lib/progname.h: Likewise.
41713         * lib/progreloc.c: Likewise.
41714         * lib/putenv.c: Likewise.
41715         * lib/quote.c: Likewise.
41716         * lib/quote.h: Likewise.
41717         * lib/quotearg.c: Likewise.
41718         * lib/quotearg.h: Likewise.
41719         * lib/raise.c: Likewise.
41720         * lib/readline.c: Likewise.
41721         * lib/readline.h: Likewise.
41722         * lib/readlink.c: Likewise.
41723         * lib/readtokens.c: Likewise.
41724         * lib/readtokens.h: Likewise.
41725         * lib/readtokens0.c: Likewise.
41726         * lib/readtokens0.h: Likewise.
41727         * lib/readutmp.c: Likewise.
41728         * lib/readutmp.h: Likewise.
41729         * lib/realloc.c: Likewise.
41730         * lib/relocwrapper.c: Likewise.
41731         * lib/rename-dest-slash.c: Likewise.
41732         * lib/rename.c: Likewise.
41733         * lib/rmdir.c: Likewise.
41734         * lib/rpmatch.c: Likewise.
41735         * lib/safe-read.c: Likewise.
41736         * lib/safe-read.h: Likewise.
41737         * lib/safe-write.c: Likewise.
41738         * lib/safe-write.h: Likewise.
41739         * lib/same-inode.h: Likewise.
41740         * lib/same.c: Likewise.
41741         * lib/same.h: Likewise.
41742         * lib/save-cwd.c: Likewise.
41743         * lib/save-cwd.h: Likewise.
41744         * lib/savedir.c: Likewise.
41745         * lib/savedir.h: Likewise.
41746         * lib/savewd.c: Likewise.
41747         * lib/savewd.h: Likewise.
41748         * lib/search.in.h: Likewise.
41749         * lib/setenv.c: Likewise.
41750         * lib/setenv.h: Likewise.
41751         * lib/settime.c: Likewise.
41752         * lib/sh-quote.c: Likewise.
41753         * lib/sh-quote.h: Likewise.
41754         * lib/sig2str.c: Likewise.
41755         * lib/sig2str.h: Likewise.
41756         * lib/signal.in.h: Likewise.
41757         * lib/signbitd.c: Likewise.
41758         * lib/signbitf.c: Likewise.
41759         * lib/signbitl.c: Likewise.
41760         * lib/sigprocmask.c: Likewise.
41761         * lib/sincosl.c: Likewise.
41762         * lib/sleep.c: Likewise.
41763         * lib/sprintf.c: Likewise.
41764         * lib/sqrtl.c: Likewise.
41765         * lib/stat-time.h: Likewise.
41766         * lib/stdio--.h: Likewise.
41767         * lib/stdio-safer.h: Likewise.
41768         * lib/stdlib--.h: Likewise.
41769         * lib/stdlib-safer.h: Likewise.
41770         * lib/stdlib.in.h: Likewise.
41771         * lib/stpcpy.c: Likewise.
41772         * lib/stpncpy.c: Likewise.
41773         * lib/strchrnul.c: Likewise.
41774         * lib/strcspn.c: Likewise.
41775         * lib/strerror.c: Likewise.
41776         * lib/strftime.c: Likewise.
41777         * lib/strftime.h: Likewise.
41778         * lib/striconveh.c: Likewise.
41779         * lib/striconveh.h: Likewise.
41780         * lib/striconveha.c: Likewise.
41781         * lib/striconveha.h: Likewise.
41782         * lib/stripslash.c: Likewise.
41783         * lib/strnlen1.c: Likewise.
41784         * lib/strnlen1.h: Likewise.
41785         * lib/strtod.c: Likewise.
41786         * lib/strtoimax.c: Likewise.
41787         * lib/strtok_r.c: Likewise.
41788         * lib/strtol.c: Likewise.
41789         * lib/strtoll.c: Likewise.
41790         * lib/strtoul.c: Likewise.
41791         * lib/strtoull.c: Likewise.
41792         * lib/sysexits.in.h: Likewise.
41793         * lib/tempname.c: Likewise.
41794         * lib/tempname.h: Likewise.
41795         * lib/timespec.h: Likewise.
41796         * lib/tls.c: Likewise.
41797         * lib/tls.h: Likewise.
41798         * lib/tmpdir.c: Likewise.
41799         * lib/tmpdir.h: Likewise.
41800         * lib/tmpfile-safer.c: Likewise.
41801         * lib/tmpfile.c: Likewise.
41802         * lib/trigl.c: Likewise.
41803         * lib/trigl.h: Likewise.
41804         * lib/trim.c: Likewise.
41805         * lib/trim.h: Likewise.
41806         * lib/trunc.c: Likewise.
41807         * lib/truncf.c: Likewise.
41808         * lib/truncl.c: Likewise.
41809         * lib/tsearch.c: Likewise.
41810         * lib/unicodeio.c: Likewise.
41811         * lib/unicodeio.h: Likewise.
41812         * lib/unistd--.h: Likewise.
41813         * lib/unistd-safer.h: Likewise.
41814         * lib/unistdio/ulc-fprintf.c: Likewise.
41815         * lib/unistdio/ulc-vfprintf.c: Likewise.
41816         * lib/unlinkdir.c: Likewise.
41817         * lib/unlinkdir.h: Likewise.
41818         * lib/unlocked-io.h: Likewise.
41819         * lib/unsetenv.c: Likewise.
41820         * lib/userspec.c: Likewise.
41821         * lib/utime.c: Likewise.
41822         * lib/utimecmp.c: Likewise.
41823         * lib/utimecmp.h: Likewise.
41824         * lib/utimens.c: Likewise.
41825         * lib/verify.h: Likewise.
41826         * lib/verror.c: Likewise.
41827         * lib/verror.h: Likewise.
41828         * lib/version-etc-fsf.c: Likewise.
41829         * lib/version-etc.c: Likewise.
41830         * lib/version-etc.h: Likewise.
41831         * lib/vfprintf.c: Likewise.
41832         * lib/vprintf.c: Likewise.
41833         * lib/vsprintf.c: Likewise.
41834         * lib/w32spawn.h: Likewise.
41835         * lib/wait-process.c: Likewise.
41836         * lib/wait-process.h: Likewise.
41837         * lib/wcwidth.c: Likewise.
41838         * lib/write-any-file.c: Likewise.
41839         * lib/xalloc-die.c: Likewise.
41840         * lib/xalloc.h: Likewise.
41841         * lib/xasprintf.c: Likewise.
41842         * lib/xgetcwd.c: Likewise.
41843         * lib/xgetcwd.h: Likewise.
41844         * lib/xgetdomainname.c: Likewise.
41845         * lib/xgetdomainname.h: Likewise.
41846         * lib/xgethostname.c: Likewise.
41847         * lib/xmalloc.c: Likewise.
41848         * lib/xmalloca.c: Likewise.
41849         * lib/xmalloca.h: Likewise.
41850         * lib/xmemcoll.c: Likewise.
41851         * lib/xnanosleep.c: Likewise.
41852         * lib/xreadlink.c: Likewise.
41853         * lib/xreadlink.h: Likewise.
41854         * lib/xsetenv.c: Likewise.
41855         * lib/xsetenv.h: Likewise.
41856         * lib/xstriconv.c: Likewise.
41857         * lib/xstriconv.h: Likewise.
41858         * lib/xstrndup.c: Likewise.
41859         * lib/xstrndup.h: Likewise.
41860         * lib/xstrtod.c: Likewise.
41861         * lib/xstrtod.h: Likewise.
41862         * lib/xstrtol-error.c: Likewise.
41863         * lib/xstrtol.c: Likewise.
41864         * lib/xstrtol.h: Likewise.
41865         * lib/xtime.h: Likewise.
41866         * lib/xvasprintf.c: Likewise.
41867         * lib/xvasprintf.h: Likewise.
41868         * lib/yesno.c: Likewise.
41869         * lib/yesno.h: Likewise.
41870         * posix-modules: Likewise.
41871         * tests/test-alloca-opt.c: Likewise.
41872         * tests/test-arcfour.c: Likewise.
41873         * tests/test-arctwo.c: Likewise.
41874         * tests/test-argmatch.c: Likewise.
41875         * tests/test-argp-2.sh: Likewise.
41876         * tests/test-argp.c: Likewise.
41877         * tests/test-arpa_inet.c: Likewise.
41878         * tests/test-array_list.c: Likewise.
41879         * tests/test-array_oset.c: Likewise.
41880         * tests/test-atexit.c: Likewise.
41881         * tests/test-avltree_list.c: Likewise.
41882         * tests/test-avltree_oset.c: Likewise.
41883         * tests/test-avltreehash_list.c: Likewise.
41884         * tests/test-base64.c: Likewise.
41885         * tests/test-binary-io.c: Likewise.
41886         * tests/test-byteswap.c: Likewise.
41887         * tests/test-c-ctype.c: Likewise.
41888         * tests/test-c-strcasecmp.c: Likewise.
41889         * tests/test-c-strcasestr.c: Likewise.
41890         * tests/test-c-strncasecmp.c: Likewise.
41891         * tests/test-c-strstr.c: Likewise.
41892         * tests/test-canonicalize-lgpl.c: Likewise.
41893         * tests/test-canonicalize.c: Likewise.
41894         * tests/test-carray_list.c: Likewise.
41895         * tests/test-ceilf.c: Likewise.
41896         * tests/test-ceill.c: Likewise.
41897         * tests/test-count-one-bits.c: Likewise.
41898         * tests/test-crc.c: Likewise.
41899         * tests/test-dirname.c: Likewise.
41900         * tests/test-fbufmode.c: Likewise.
41901         * tests/test-fcntl.c: Likewise.
41902         * tests/test-fflush.c: Likewise.
41903         * tests/test-floorf.c: Likewise.
41904         * tests/test-floorl.c: Likewise.
41905         * tests/test-fopen.c: Likewise.
41906         * tests/test-fprintf-posix.c: Likewise.
41907         * tests/test-fprintf-posix.h: Likewise.
41908         * tests/test-fpurge.c: Likewise.
41909         * tests/test-freadable.c: Likewise.
41910         * tests/test-freadahead.c: Likewise.
41911         * tests/test-freading.c: Likewise.
41912         * tests/test-freopen.c: Likewise.
41913         * tests/test-frexp.c: Likewise.
41914         * tests/test-frexpl.c: Likewise.
41915         * tests/test-fseek.c: Likewise.
41916         * tests/test-fseeko.c: Likewise.
41917         * tests/test-fseterr.c: Likewise.
41918         * tests/test-fstrcmp.c: Likewise.
41919         * tests/test-ftell.c: Likewise.
41920         * tests/test-ftello.c: Likewise.
41921         * tests/test-fwritable.c: Likewise.
41922         * tests/test-fwriting.c: Likewise.
41923         * tests/test-getaddrinfo.c: Likewise.
41924         * tests/test-getpass.c: Likewise.
41925         * tests/test-gettimeofday.c: Likewise.
41926         * tests/test-hmac-md5.c: Likewise.
41927         * tests/test-hmac-sha1.c: Likewise.
41928         * tests/test-iconv.c: Likewise.
41929         * tests/test-iconvme.c: Likewise.
41930         * tests/test-inttypes.c: Likewise.
41931         * tests/test-isnan.c: Likewise.
41932         * tests/test-isnanf.c: Likewise.
41933         * tests/test-isnanl-nolibm.c: Likewise.
41934         * tests/test-isnanl.c: Likewise.
41935         * tests/test-isnanl.h: Likewise.
41936         * tests/test-ldexpl.c: Likewise.
41937         * tests/test-linked_list.c: Likewise.
41938         * tests/test-linkedhash_list.c: Likewise.
41939         * tests/test-locale.c: Likewise.
41940         * tests/test-localename.c: Likewise.
41941         * tests/test-lock.c: Likewise.
41942         * tests/test-lseek.c: Likewise.
41943         * tests/test-malloca.c: Likewise.
41944         * tests/test-math.c: Likewise.
41945         * tests/test-mbscasecmp.c: Likewise.
41946         * tests/test-mbscasestr1.c: Likewise.
41947         * tests/test-mbscasestr2.c: Likewise.
41948         * tests/test-mbscasestr3.c: Likewise.
41949         * tests/test-mbscasestr4.c: Likewise.
41950         * tests/test-mbschr.c: Likewise.
41951         * tests/test-mbscspn.c: Likewise.
41952         * tests/test-mbsncasecmp.c: Likewise.
41953         * tests/test-mbspbrk.c: Likewise.
41954         * tests/test-mbspcasecmp.c: Likewise.
41955         * tests/test-mbsrchr.c: Likewise.
41956         * tests/test-mbsspn.c: Likewise.
41957         * tests/test-mbsstr1.c: Likewise.
41958         * tests/test-mbsstr2.c: Likewise.
41959         * tests/test-mbsstr3.c: Likewise.
41960         * tests/test-md5.c: Likewise.
41961         * tests/test-memmem.c: Likewise.
41962         * tests/test-netinet_in.c: Likewise.
41963         * tests/test-open.c: Likewise.
41964         * tests/test-printf-frexp.c: Likewise.
41965         * tests/test-printf-frexpl.c: Likewise.
41966         * tests/test-printf-posix.c: Likewise.
41967         * tests/test-printf-posix.h: Likewise.
41968         * tests/test-rbtree_list.c: Likewise.
41969         * tests/test-rbtree_oset.c: Likewise.
41970         * tests/test-rbtreehash_list.c: Likewise.
41971         * tests/test-read-file.c: Likewise.
41972         * tests/test-rijndael.c: Likewise.
41973         * tests/test-search.c: Likewise.
41974         * tests/test-signbit.c: Likewise.
41975         * tests/test-sleep.c: Likewise.
41976         * tests/test-snprintf-posix.c: Likewise.
41977         * tests/test-snprintf-posix.h: Likewise.
41978         * tests/test-snprintf.c: Likewise.
41979         * tests/test-sprintf-posix.c: Likewise.
41980         * tests/test-sprintf-posix.h: Likewise.
41981         * tests/test-stat-time.c: Likewise.
41982         * tests/test-stdbool.c: Likewise.
41983         * tests/test-stdint.c: Likewise.
41984         * tests/test-stdio.c: Likewise.
41985         * tests/test-stdlib.c: Likewise.
41986         * tests/test-stpncpy.c: Likewise.
41987         * tests/test-strcasestr.c: Likewise.
41988         * tests/test-striconv.c: Likewise.
41989         * tests/test-striconveh.c: Likewise.
41990         * tests/test-striconveha.c: Likewise.
41991         * tests/test-string.c: Likewise.
41992         * tests/test-sys_select.c: Likewise.
41993         * tests/test-sys_socket.c: Likewise.
41994         * tests/test-sys_stat.c: Likewise.
41995         * tests/test-sys_time.c: Likewise.
41996         * tests/test-sysexits.c: Likewise.
41997         * tests/test-time.c: Likewise.
41998         * tests/test-tls.c: Likewise.
41999         * tests/test-trunc.c: Likewise.
42000         * tests/test-truncf.c: Likewise.
42001         * tests/test-truncl.c: Likewise.
42002         * tests/test-unistd.c: Likewise.
42003         * tests/test-vasnprintf-posix.c: Likewise.
42004         * tests/test-vasnprintf-posix2.c: Likewise.
42005         * tests/test-vasnprintf.c: Likewise.
42006         * tests/test-vasprintf-posix.c: Likewise.
42007         * tests/test-vasprintf.c: Likewise.
42008         * tests/test-verify.c: Likewise.
42009         * tests/test-vfprintf-posix.c: Likewise.
42010         * tests/test-vprintf-posix.c: Likewise.
42011         * tests/test-vsnprintf-posix.c: Likewise.
42012         * tests/test-vsnprintf.c: Likewise.
42013         * tests/test-vsprintf-posix.c: Likewise.
42014         * tests/test-wchar.c: Likewise.
42015         * tests/test-wctype.c: Likewise.
42016         * tests/test-wcwidth.c: Likewise.
42017         * tests/test-xstrtol.c: Likewise.
42018         * tests/test-xvasprintf.c: Likewise.
42019         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
42020         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
42021         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
42022         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
42023         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
42024         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
42025         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
42026         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
42027         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
42028         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
42029         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
42030         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
42031         * tests/uniname/test-uninames.c: Likewise.
42032         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
42033         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
42034         * tests/unistdio/test-u16-printf1.h: Likewise.
42035         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
42036         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
42037         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
42038         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
42039         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
42040         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
42041         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
42042         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
42043         * tests/unistdio/test-u32-printf1.h: Likewise.
42044         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
42045         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
42046         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
42047         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
42048         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
42049         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
42050         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
42051         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
42052         * tests/unistdio/test-u8-printf1.h: Likewise.
42053         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
42054         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
42055         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
42056         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
42057         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
42058         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
42059         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
42060         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
42061         * tests/unistdio/test-ulc-printf1.h: Likewise.
42062         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
42063         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
42064         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
42065         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
42066         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
42067         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
42068         * tests/uniwidth/test-u16-strwidth.c: Likewise.
42069         * tests/uniwidth/test-u16-width.c: Likewise.
42070         * tests/uniwidth/test-u32-strwidth.c: Likewise.
42071         * tests/uniwidth/test-u32-width.c: Likewise.
42072         * tests/uniwidth/test-u8-strwidth.c: Likewise.
42073         * tests/uniwidth/test-u8-width.c: Likewise.
42074         * tests/uniwidth/test-uc_width.c: Likewise.
42075         * config/srclist-update: Likewise.
42076         (fixlicense): Update to GPLv3+.
42077
42078         Change copyright notice from LGPLv2.1+ to LGPLv3+.
42079         * tests/test-tsearch.c: Change copyright notice.
42080
42081         Change copyright notice from LGPLv2.0+ to LGPLv3+.
42082         * lib/c-strcaseeq.h: Change copyright notice.
42083         * lib/streq.h: Likewise.
42084         * lib/uniconv.h: Likewise.
42085         * lib/uniconv/u-conv-from-enc.h: Likewise.
42086         * lib/uniconv/u-conv-to-enc.h: Likewise.
42087         * lib/uniconv/u-strconv-from-enc.h: Likewise.
42088         * lib/uniconv/u-strconv-to-enc.h: Likewise.
42089         * lib/uniconv/u16-conv-from-enc.c: Likewise.
42090         * lib/uniconv/u16-conv-to-enc.c: Likewise.
42091         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
42092         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
42093         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
42094         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
42095         * lib/uniconv/u32-conv-from-enc.c: Likewise.
42096         * lib/uniconv/u32-conv-to-enc.c: Likewise.
42097         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
42098         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
42099         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
42100         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
42101         * lib/uniconv/u8-conv-from-enc.c: Likewise.
42102         * lib/uniconv/u8-conv-to-enc.c: Likewise.
42103         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
42104         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
42105         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
42106         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
42107         * lib/uniname.h: Likewise.
42108         * lib/uniname/uniname.c: Likewise.
42109         * lib/unistdio.h: Likewise.
42110         * lib/unistdio/u-asnprintf.h: Likewise.
42111         * lib/unistdio/u-asprintf.h: Likewise.
42112         * lib/unistdio/u-printf-args.c: Likewise.
42113         * lib/unistdio/u-printf-args.h: Likewise.
42114         * lib/unistdio/u-printf-parse.h: Likewise.
42115         * lib/unistdio/u-snprintf.h: Likewise.
42116         * lib/unistdio/u-sprintf.h: Likewise.
42117         * lib/unistdio/u-vasprintf.h: Likewise.
42118         * lib/unistdio/u-vsnprintf.h: Likewise.
42119         * lib/unistdio/u-vsprintf.h: Likewise.
42120         * lib/unistdio/u16-asnprintf.c: Likewise.
42121         * lib/unistdio/u16-asprintf.c: Likewise.
42122         * lib/unistdio/u16-printf-parse.c: Likewise.
42123         * lib/unistdio/u16-snprintf.c: Likewise.
42124         * lib/unistdio/u16-sprintf.c: Likewise.
42125         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
42126         * lib/unistdio/u16-u16-asprintf.c: Likewise.
42127         * lib/unistdio/u16-u16-snprintf.c: Likewise.
42128         * lib/unistdio/u16-u16-sprintf.c: Likewise.
42129         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
42130         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
42131         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
42132         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
42133         * lib/unistdio/u16-vasnprintf.c: Likewise.
42134         * lib/unistdio/u16-vasprintf.c: Likewise.
42135         * lib/unistdio/u16-vsnprintf.c: Likewise.
42136         * lib/unistdio/u16-vsprintf.c: Likewise.
42137         * lib/unistdio/u32-asnprintf.c: Likewise.
42138         * lib/unistdio/u32-asprintf.c: Likewise.
42139         * lib/unistdio/u32-printf-parse.c: Likewise.
42140         * lib/unistdio/u32-snprintf.c: Likewise.
42141         * lib/unistdio/u32-sprintf.c: Likewise.
42142         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
42143         * lib/unistdio/u32-u32-asprintf.c: Likewise.
42144         * lib/unistdio/u32-u32-snprintf.c: Likewise.
42145         * lib/unistdio/u32-u32-sprintf.c: Likewise.
42146         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
42147         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
42148         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
42149         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
42150         * lib/unistdio/u32-vasnprintf.c: Likewise.
42151         * lib/unistdio/u32-vasprintf.c: Likewise.
42152         * lib/unistdio/u32-vsnprintf.c: Likewise.
42153         * lib/unistdio/u32-vsprintf.c: Likewise.
42154         * lib/unistdio/u8-asnprintf.c: Likewise.
42155         * lib/unistdio/u8-asprintf.c: Likewise.
42156         * lib/unistdio/u8-printf-parse.c: Likewise.
42157         * lib/unistdio/u8-snprintf.c: Likewise.
42158         * lib/unistdio/u8-sprintf.c: Likewise.
42159         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
42160         * lib/unistdio/u8-u8-asprintf.c: Likewise.
42161         * lib/unistdio/u8-u8-snprintf.c: Likewise.
42162         * lib/unistdio/u8-u8-sprintf.c: Likewise.
42163         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
42164         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
42165         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
42166         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
42167         * lib/unistdio/u8-vasnprintf.c: Likewise.
42168         * lib/unistdio/u8-vasprintf.c: Likewise.
42169         * lib/unistdio/u8-vsnprintf.c: Likewise.
42170         * lib/unistdio/u8-vsprintf.c: Likewise.
42171         * lib/unistdio/ulc-asnprintf.c: Likewise.
42172         * lib/unistdio/ulc-asprintf.c: Likewise.
42173         * lib/unistdio/ulc-printf-parse.c: Likewise.
42174         * lib/unistdio/ulc-snprintf.c: Likewise.
42175         * lib/unistdio/ulc-sprintf.c: Likewise.
42176         * lib/unistdio/ulc-vasnprintf.c: Likewise.
42177         * lib/unistdio/ulc-vasprintf.c: Likewise.
42178         * lib/unistdio/ulc-vsnprintf.c: Likewise.
42179         * lib/unistdio/ulc-vsprintf.c: Likewise.
42180         * lib/unistr.h: Likewise.
42181         * lib/unistr/u-cpy-alloc.h: Likewise.
42182         * lib/unistr/u-cpy.h: Likewise.
42183         * lib/unistr/u-endswith.h: Likewise.
42184         * lib/unistr/u-move.h: Likewise.
42185         * lib/unistr/u-set.h: Likewise.
42186         * lib/unistr/u-startswith.h: Likewise.
42187         * lib/unistr/u-stpcpy.h: Likewise.
42188         * lib/unistr/u-stpncpy.h: Likewise.
42189         * lib/unistr/u-strcat.h: Likewise.
42190         * lib/unistr/u-strcpy.h: Likewise.
42191         * lib/unistr/u-strcspn.h: Likewise.
42192         * lib/unistr/u-strdup.h: Likewise.
42193         * lib/unistr/u-strlen.h: Likewise.
42194         * lib/unistr/u-strncat.h: Likewise.
42195         * lib/unistr/u-strncpy.h: Likewise.
42196         * lib/unistr/u-strnlen.h: Likewise.
42197         * lib/unistr/u-strpbrk.h: Likewise.
42198         * lib/unistr/u-strspn.h: Likewise.
42199         * lib/unistr/u-strstr.h: Likewise.
42200         * lib/unistr/u-strtok.h: Likewise.
42201         * lib/unistr/u16-check.c: Likewise.
42202         * lib/unistr/u16-chr.c: Likewise.
42203         * lib/unistr/u16-cmp.c: Likewise.
42204         * lib/unistr/u16-cpy-alloc.c: Likewise.
42205         * lib/unistr/u16-cpy.c: Likewise.
42206         * lib/unistr/u16-endswith.c: Likewise.
42207         * lib/unistr/u16-mblen.c: Likewise.
42208         * lib/unistr/u16-mbsnlen.c: Likewise.
42209         * lib/unistr/u16-mbtouc-aux.c: Likewise.
42210         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
42211         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
42212         * lib/unistr/u16-mbtouc.c: Likewise.
42213         * lib/unistr/u16-mbtoucr.c: Likewise.
42214         * lib/unistr/u16-move.c: Likewise.
42215         * lib/unistr/u16-next.c: Likewise.
42216         * lib/unistr/u16-prev.c: Likewise.
42217         * lib/unistr/u16-set.c: Likewise.
42218         * lib/unistr/u16-startswith.c: Likewise.
42219         * lib/unistr/u16-stpcpy.c: Likewise.
42220         * lib/unistr/u16-stpncpy.c: Likewise.
42221         * lib/unistr/u16-strcat.c: Likewise.
42222         * lib/unistr/u16-strchr.c: Likewise.
42223         * lib/unistr/u16-strcmp.c: Likewise.
42224         * lib/unistr/u16-strcpy.c: Likewise.
42225         * lib/unistr/u16-strcspn.c: Likewise.
42226         * lib/unistr/u16-strdup.c: Likewise.
42227         * lib/unistr/u16-strlen.c: Likewise.
42228         * lib/unistr/u16-strmblen.c: Likewise.
42229         * lib/unistr/u16-strmbtouc.c: Likewise.
42230         * lib/unistr/u16-strncat.c: Likewise.
42231         * lib/unistr/u16-strncmp.c: Likewise.
42232         * lib/unistr/u16-strncpy.c: Likewise.
42233         * lib/unistr/u16-strnlen.c: Likewise.
42234         * lib/unistr/u16-strpbrk.c: Likewise.
42235         * lib/unistr/u16-strrchr.c: Likewise.
42236         * lib/unistr/u16-strspn.c: Likewise.
42237         * lib/unistr/u16-strstr.c: Likewise.
42238         * lib/unistr/u16-strtok.c: Likewise.
42239         * lib/unistr/u16-to-u32.c: Likewise.
42240         * lib/unistr/u16-to-u8.c: Likewise.
42241         * lib/unistr/u16-uctomb-aux.c: Likewise.
42242         * lib/unistr/u16-uctomb.c: Likewise.
42243         * lib/unistr/u32-check.c: Likewise.
42244         * lib/unistr/u32-chr.c: Likewise.
42245         * lib/unistr/u32-cmp.c: Likewise.
42246         * lib/unistr/u32-cpy-alloc.c: Likewise.
42247         * lib/unistr/u32-cpy.c: Likewise.
42248         * lib/unistr/u32-endswith.c: Likewise.
42249         * lib/unistr/u32-mblen.c: Likewise.
42250         * lib/unistr/u32-mbsnlen.c: Likewise.
42251         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
42252         * lib/unistr/u32-mbtouc.c: Likewise.
42253         * lib/unistr/u32-mbtoucr.c: Likewise.
42254         * lib/unistr/u32-move.c: Likewise.
42255         * lib/unistr/u32-next.c: Likewise.
42256         * lib/unistr/u32-prev.c: Likewise.
42257         * lib/unistr/u32-set.c: Likewise.
42258         * lib/unistr/u32-startswith.c: Likewise.
42259         * lib/unistr/u32-stpcpy.c: Likewise.
42260         * lib/unistr/u32-stpncpy.c: Likewise.
42261         * lib/unistr/u32-strcat.c: Likewise.
42262         * lib/unistr/u32-strchr.c: Likewise.
42263         * lib/unistr/u32-strcmp.c: Likewise.
42264         * lib/unistr/u32-strcpy.c: Likewise.
42265         * lib/unistr/u32-strcspn.c: Likewise.
42266         * lib/unistr/u32-strdup.c: Likewise.
42267         * lib/unistr/u32-strlen.c: Likewise.
42268         * lib/unistr/u32-strmblen.c: Likewise.
42269         * lib/unistr/u32-strmbtouc.c: Likewise.
42270         * lib/unistr/u32-strncat.c: Likewise.
42271         * lib/unistr/u32-strncmp.c: Likewise.
42272         * lib/unistr/u32-strncpy.c: Likewise.
42273         * lib/unistr/u32-strnlen.c: Likewise.
42274         * lib/unistr/u32-strpbrk.c: Likewise.
42275         * lib/unistr/u32-strrchr.c: Likewise.
42276         * lib/unistr/u32-strspn.c: Likewise.
42277         * lib/unistr/u32-strstr.c: Likewise.
42278         * lib/unistr/u32-strtok.c: Likewise.
42279         * lib/unistr/u32-to-u16.c: Likewise.
42280         * lib/unistr/u32-to-u8.c: Likewise.
42281         * lib/unistr/u32-uctomb.c: Likewise.
42282         * lib/unistr/u8-check.c: Likewise.
42283         * lib/unistr/u8-chr.c: Likewise.
42284         * lib/unistr/u8-cmp.c: Likewise.
42285         * lib/unistr/u8-cpy-alloc.c: Likewise.
42286         * lib/unistr/u8-cpy.c: Likewise.
42287         * lib/unistr/u8-endswith.c: Likewise.
42288         * lib/unistr/u8-mblen.c: Likewise.
42289         * lib/unistr/u8-mbsnlen.c: Likewise.
42290         * lib/unistr/u8-mbtouc-aux.c: Likewise.
42291         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
42292         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
42293         * lib/unistr/u8-mbtouc.c: Likewise.
42294         * lib/unistr/u8-mbtoucr.c: Likewise.
42295         * lib/unistr/u8-move.c: Likewise.
42296         * lib/unistr/u8-next.c: Likewise.
42297         * lib/unistr/u8-prev.c: Likewise.
42298         * lib/unistr/u8-set.c: Likewise.
42299         * lib/unistr/u8-startswith.c: Likewise.
42300         * lib/unistr/u8-stpcpy.c: Likewise.
42301         * lib/unistr/u8-stpncpy.c: Likewise.
42302         * lib/unistr/u8-strcat.c: Likewise.
42303         * lib/unistr/u8-strchr.c: Likewise.
42304         * lib/unistr/u8-strcmp.c: Likewise.
42305         * lib/unistr/u8-strcpy.c: Likewise.
42306         * lib/unistr/u8-strcspn.c: Likewise.
42307         * lib/unistr/u8-strdup.c: Likewise.
42308         * lib/unistr/u8-strlen.c: Likewise.
42309         * lib/unistr/u8-strmblen.c: Likewise.
42310         * lib/unistr/u8-strmbtouc.c: Likewise.
42311         * lib/unistr/u8-strncat.c: Likewise.
42312         * lib/unistr/u8-strncmp.c: Likewise.
42313         * lib/unistr/u8-strncpy.c: Likewise.
42314         * lib/unistr/u8-strnlen.c: Likewise.
42315         * lib/unistr/u8-strpbrk.c: Likewise.
42316         * lib/unistr/u8-strrchr.c: Likewise.
42317         * lib/unistr/u8-strspn.c: Likewise.
42318         * lib/unistr/u8-strstr.c: Likewise.
42319         * lib/unistr/u8-strtok.c: Likewise.
42320         * lib/unistr/u8-to-u16.c: Likewise.
42321         * lib/unistr/u8-to-u32.c: Likewise.
42322         * lib/unistr/u8-uctomb-aux.c: Likewise.
42323         * lib/unistr/u8-uctomb.c: Likewise.
42324         * lib/unitypes.h: Likewise.
42325         * lib/uniwidth.h: Likewise.
42326         * lib/uniwidth/cjk.h: Likewise.
42327         * lib/uniwidth/u16-strwidth.c: Likewise.
42328         * lib/uniwidth/u16-width.c: Likewise.
42329         * lib/uniwidth/u32-strwidth.c: Likewise.
42330         * lib/uniwidth/u32-width.c: Likewise.
42331         * lib/uniwidth/u8-strwidth.c: Likewise.
42332         * lib/uniwidth/u8-width.c: Likewise.
42333         * lib/uniwidth/width.c: Likewise.
42334
42335 2007-10-07  Bruno Haible  <bruno@clisp.org>
42336
42337         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
42338         The file is still under LGPL (see modules/inttypes).
42339
42340 2007-10-06  Bruno Haible  <bruno@clisp.org>
42341
42342         * modules/trunc (Dependencies): Add 'extensions'.
42343         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
42344         Reported by Ben Pfaff <blp@gnu.org>.
42345
42346 2007-10-06  Bruno Haible  <bruno@clisp.org>
42347
42348         * modules/freopen-tests: New file.
42349         * tests/test-freopen.c: New file.
42350
42351         * modules/fopen-tests: New file.
42352         * tests/test-fopen.c: New file.
42353
42354         * modules/fopen: New file.
42355         * lib/fopen.c: New file.
42356         * m4/fopen.m4: New file.
42357         * modules/freopen: New file.
42358         * lib/freopen.c: New file.
42359         * m4/freopen.m4: New file.
42360         * lib/stdio.in.h (fopen, freopen): New declarations.
42361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
42362         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
42363         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
42364         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
42365         * doc/functions/fopen.texi: Mention the 'fopen' module.
42366         * doc/functions/freopen.texi: Mention the 'freopen' module.
42367
42368 2007-10-06  Bruno Haible  <bruno@clisp.org>
42369
42370         * modules/open-tests: New file.
42371         * tests/test-open.c: New file.
42372
42373         * modules/open: New file.
42374         * lib/open.c: New file.
42375         * m4/open.m4: New file.
42376         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
42377         lib/open.c does.
42378         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
42379         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
42380         macros.
42381         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
42382         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
42383         REPLACE_OPEN.
42384         * doc/functions/open.texi: Mention the 'open' module.
42385
42386 2007-10-04  Bruno Haible  <bruno@clisp.org>
42387
42388         * modules/ceill-tests: New file.
42389         * tests/test-ceill.c: New file.
42390
42391         * modules/ceill: New file.
42392         * lib/ceill.c: Replace entire file.
42393         * m4/ceill.m4: New file.
42394         * lib/math.in.h (ceill): Replace declaration.
42395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
42396         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
42397         * doc/functions/ceill.texi: Mention the 'ceill' module.
42398         * modules/mathl (Files): Remove lib/ceill.c.
42399         (Depends-on): Add ceill.
42400
42401 2007-10-04  Bruno Haible  <bruno@clisp.org>
42402
42403         * modules/ceilf-tests: New file.
42404         * tests/test-ceilf.c: New file.
42405
42406         * modules/ceilf: New file.
42407         * lib/ceil.c: New file.
42408         * lib/ceilf.c: New file.
42409         * m4/ceilf.m4: New file.
42410         * lib/math.in.h (ceilf): New declaration.
42411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
42412         HAVE_DECL_CEILF.
42413         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
42414         HAVE_DECL_CEILF.
42415         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
42416
42417 2007-10-04  Bruno Haible  <bruno@clisp.org>
42418
42419         * modules/floorl-tests: New file.
42420         * tests/test-floorl.c: New file.
42421
42422         * modules/floorl: New file.
42423         * lib/floorl.c: Replace entire file.
42424         * m4/floorl.m4: New file.
42425         * lib/math.in.h (floorl): Replace declaration.
42426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
42427         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
42428         * doc/functions/floorl.texi: Mention the 'floorl' module.
42429         * modules/mathl (Files): Remove lib/floorl.c.
42430         (Depends-on): Add floorl.
42431
42432 2007-10-04  Bruno Haible  <bruno@clisp.org>
42433
42434         * modules/floorf-tests: New file.
42435         * tests/test-floorf.c: New file.
42436
42437         * modules/floorf: New file.
42438         * lib/floor.c: New file.
42439         * lib/floorf.c: New file.
42440         * m4/floorf.m4: New file.
42441         * lib/math.in.h (floorf): New declaration.
42442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
42443         HAVE_DECL_FLOORF.
42444         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
42445         HAVE_DECL_FLOORF.
42446         * doc/functions/floorf.texi: Mention the 'floorf' module.
42447
42448 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
42449             Bruno Haible  <bruno@clisp.org>
42450
42451         Advertise for the Git server instead of the CVS server.
42452         * doc/gnulib-intro.texi (Steady Development): Mention the Git
42453         repository instead of the CVS one.
42454         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
42455         about all VCS systems generically.
42456         * doc/gnulib.texi (Introduction): Capitalize `Git'.
42457
42458 2007-10-04  Bruno Haible  <bruno@clisp.org>
42459
42460         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
42461         means.
42462         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
42463
42464 2007-10-04  Bruno Haible  <bruno@clisp.org>
42465
42466         * modules/truncl-tests: New file.
42467         * tests/test-truncl.c: New file.
42468
42469         * modules/truncl: New file.
42470         * lib/truncl.c: New file.
42471         * m4/truncl.m4: New file.
42472         * lib/math.in.h (truncl): New declaration.
42473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
42474         HAVE_DECL_TRUNCL.
42475         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
42476         HAVE_DECL_TRUNCL.
42477         * doc/functions/truncl.texi: Mention the 'truncl' module.
42478
42479 2007-10-04  Bruno Haible  <bruno@clisp.org>
42480
42481         * modules/truncf-tests: New file.
42482         * tests/test-truncf.c: New file.
42483
42484         * modules/truncf: New file.
42485         * lib/trunc.c: Make paramerizable through USE_* macros.
42486         * lib/truncf.c: New file.
42487         * m4/truncf.m4: New file.
42488         * lib/math.in.h (truncf): New declaration.
42489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
42490         HAVE_DECL_TRUNCF.
42491         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
42492         HAVE_DECL_TRUNCF.
42493         * doc/functions/truncf.texi: Mention the 'truncf' module.
42494
42495 2007-10-03  Bruno Haible  <bruno@clisp.org>
42496
42497         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42498         augmentation also for tests modules.
42499         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
42500         * modules/atexit-tests (Makefile.am): Likewise.
42501         * modules/binary-io-tests (Makefile.am): Likewise.
42502         * modules/c-strcase-tests (Makefile.am): Likewise.
42503         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
42504         * modules/canonicalize-tests (Makefile.am): Likewise.
42505         * modules/closein-tests (Makefile.am): Likewise.
42506         * modules/fprintf-posix-tests (Makefile.am): Likewise.
42507         * modules/freadahead-tests (Makefile.am): Likewise.
42508         * modules/fseek-tests (Makefile.am): Likewise.
42509         * modules/fseeko-tests (Makefile.am): Likewise.
42510         * modules/ftell-tests (Makefile.am): Likewise.
42511         * modules/ftello-tests (Makefile.am): Likewise.
42512         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
42513         * modules/isnanl-tests (Makefile.am): Likewise.
42514         * modules/lseek-tests (Makefile.am): Likewise.
42515         * modules/mbscasecmp-tests (Makefile.am): Likewise.
42516         * modules/mbscasestr-tests (Makefile.am): Likewise.
42517         * modules/mbschr-tests (Makefile.am): Likewise.
42518         * modules/mbscspn-tests (Makefile.am): Likewise.
42519         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
42520         * modules/mbspbrk-tests (Makefile.am): Likewise.
42521         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
42522         * modules/mbsrchr-tests (Makefile.am): Likewise.
42523         * modules/mbsspn-tests (Makefile.am): Likewise.
42524         * modules/mbsstr-tests (Makefile.am): Likewise.
42525         * modules/printf-posix-tests (Makefile.am): Likewise.
42526         * modules/snprintf-posix-tests (Makefile.am): Likewise.
42527         * modules/sprintf-posix-tests (Makefile.am): Likewise.
42528         * modules/tsearch-tests (Makefile.am): Likewise.
42529         * modules/uniname/uniname-tests (Makefile.am): Likewise.
42530         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
42531         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
42532         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
42533         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
42534         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
42535         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
42536         * modules/vprintf-posix-tests (Makefile.am): Likewise.
42537         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
42538         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
42539         * modules/xstrtoimax-tests (Makefile.am): Likewise.
42540         * modules/xstrtol-tests (Makefile.am): Likewise.
42541         * modules/xstrtoumax-tests (Makefile.am): Likewise.
42542         * modules/yesno-tests (Makefile.am): Likewise.
42543
42544 2007-10-03  Bruno Haible  <bruno@clisp.org>
42545
42546         * modules/trunc-tests: New file.
42547         * tests/test-trunc.c: New file.
42548
42549         * modules/trunc: New file.
42550         * lib/trunc.c: New file.
42551         * m4/trunc.m4: New file.
42552         * lib/math.in.h (trunc): New declaration.
42553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
42554         HAVE_DECL_TRUNC.
42555         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
42556         HAVE_DECL_TRUNC.
42557         * doc/functions/trunc.texi: Mention the 'trunc' module.
42558
42559 2007-10-03  Bruno Haible  <bruno@clisp.org>
42560
42561         * tests/test-fpending.c: New file, mostly copied
42562         from coreutils/lib/t-fpending.c.
42563         * modules/fpending-tests: New file.
42564
42565 2007-10-03  Bruno Haible  <bruno@clisp.org>
42566
42567         Port the stdio extensions to QNX (untested).
42568         * lib/fseterr.c (fseterr): Add support for QNX.
42569         * lib/fbufmode.c (fbufmode): Likewise.
42570         * lib/freadable.c (freadable): Likewise.
42571         * lib/fwritable.c (fwritable): Likewise.
42572         * lib/freading.c (freading): Likewise.
42573         * lib/fwriting.c (fwriting): Likewise.
42574         * lib/freadahead.c (freadahed): Likewise.
42575         * lib/fpurge.c (fpurge): Likewise.
42576         * lib/fseeko.c (rpl_fseeko): Likewise.
42577
42578 2007-10-03  Bruno Haible  <bruno@clisp.org>
42579             Jim Meyering  <jim@meyering.net>
42580             Eric Blake  <ebb9@byu.net>
42581
42582         * doc/relocatable.texi: Use @command instead of @program.
42583
42584 2007-10-02  Jim Meyering  <jim@meyering.net>
42585
42586         Perform one more "_.h" -> ".in.h" substitution.
42587         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
42588         instead of unistd_.h here, too.
42589
42590 2007-10-01  Bruno Haible  <bruno@clisp.org>
42591
42592         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
42593         Needed for the alloca-opt module.
42594
42595 2007-09-30  Bruno Haible  <bruno@clisp.org>
42596
42597         * lib/alloca.in.h: Renamed from lib/alloca_.h.
42598         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
42599         alloca_.h.
42600         * lib/argz.in.h: Renamed from lib/argz_.h.
42601         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
42602         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
42603         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
42604         byteswap_.h.
42605         * lib/dirent.in.h: Renamed from lib/dirent_.h.
42606         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
42607         dirent_.h.
42608         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
42609         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
42610         fcntl_.h.
42611         * lib/float.in.h: Renamed from lib/float_.h.
42612         * modules/float (Files, Makefile.am): Use float.in.h instead of
42613         float_.h.
42614         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
42615         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
42616         fnmatch_.h.
42617         * lib/getopt.in.h: Renamed from lib/getopt_.h.
42618         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
42619         getopt_.h.
42620         * lib/glob.in.h: Renamed from lib/glob_.h.
42621         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
42622         * lib/iconv.in.h: Renamed from lib/iconv_.h.
42623         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
42624         iconv_.h.
42625         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
42626         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
42627         inttypes_.h.
42628         * lib/locale.in.h: Renamed from lib/locale_.h.
42629         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
42630         locale_.h.
42631         * lib/math.in.h: Renamed from lib/math_.h.
42632         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
42633         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
42634         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
42635         of netinet_in_.h. Add dependency.
42636         * lib/poll.in.h: Renamed from lib/poll_.h.
42637         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
42638         * lib/search.in.h: Renamed from lib/search_.h.
42639         * modules/search (Files, Makefile.am): Use search.in.h instead of
42640         search_.h.
42641         * lib/signal.in.h: Renamed from lib/signal_.h.
42642         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
42643         _signal.h.
42644         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
42645         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
42646         stdbool_.h.
42647         * lib/stdint.in.h: Renamed from lib/stdint_.h.
42648         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
42649         stdint_.h.
42650         * lib/stdio.in.h: Renamed from lib/stdio_.h.
42651         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
42652         stdio_.h.
42653         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
42654         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
42655         stdlib_.h.
42656         * lib/string.in.h: Renamed from lib/string_.h.
42657         * modules/string (Files, Makefile.am): Use string.in.h instead of
42658         string_.h.
42659         * doc/gnulib-tool.texi (Initial import): Update.
42660         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
42661         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
42662         of sys_select_.h. Add dependency.
42663         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
42664         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
42665         of sys_socket_.h.
42666         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
42667         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
42668         sys_stat_.h.
42669         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
42670         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
42671         sys_time_.h.
42672         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
42673         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
42674         sysexits_.h.
42675         * lib/time.in.h: Renamed from lib/time_.h.
42676         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
42677         * lib/unistd.in.h: Renamed from lib/unistd_.h.
42678         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
42679         unistd_.h.
42680         * lib/wchar.in.h: Renamed from lib/wchar_.h.
42681         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
42682         wchar_.h.
42683         * lib/wctype.in.h: Renamed from lib/wctype_.h.
42684         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
42685         wctype_.h.
42686         * build-aux/bootstrap (slurp): Update.
42687         * lib/.cppi-disable: Update.
42688
42689 2007-09-30  Bruno Haible  <bruno@clisp.org>
42690
42691         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
42692         Needed on BeOS.
42693
42694 2007-09-30  Bruno Haible  <bruno@clisp.org>
42695
42696         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
42697
42698 2007-09-29  Bruno Haible  <bruno@clisp.org>
42699
42700         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
42701
42702 2007-09-29  Bruno Haible  <bruno@clisp.org>
42703
42704         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
42705         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
42706         * build-aux/install-reloc: Compile also areadlink.c.
42707         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
42708
42709 2007-09-29  Bruno Haible  <bruno@clisp.org>
42710
42711         * gnulib-tool (func_emit_initmacro_done): Indentation.
42712
42713 2007-09-29  Bruno Haible  <bruno@clisp.org>
42714
42715         * README: Add CVS checkout update instructions.
42716         Info from Bob Proulx <bob@proulx.com>.
42717
42718 2007-09-28  Eric Blake  <ebb9@byu.net>
42719
42720         Provide move-if-change.
42721         * build-aux/move-if-change: New file, based on best practice
42722         rather than any canonical upstream location.
42723
42724 2007-09-28  Jim Meyering  <jim@meyering.net>
42725
42726         Fix canonicalize loop-detection corner case.
42727         Do not attempt to stat the symlink values stored via seen_triple.
42728         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
42729         on linux-2.6.18, (but not 2.6.22).
42730         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
42731         triple_compare.  The former compares dev,ino,filename, while the latter
42732         would actually stat dirname(filename) when dev and ino were equal.
42733         * lib/hash-triple.c: Install <string.h>.
42734         (STREQ): Define.
42735         (triple_compare_ino_str): New function.
42736         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
42737
42738 2007-09-28  Eric Blake  <ebb9@byu.net>
42739
42740         Enforce that AC_REPLACE_FUNCS files exist.
42741         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
42742         override check for typos.
42743
42744         Fix test-closein on Solaris 10.
42745         * tests/test-closein.c (main): Don't assume stdin can be inherited
42746         closed on all systems.
42747         * tests/test-closein.sh: Likewise.
42748         Reported by Piotr Tarnowski.
42749
42750 2007-09-28  Jim Meyering  <jim@meyering.net>
42751
42752         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
42753
42754 2007-09-27  Jim Meyering  <jim@meyering.net>
42755
42756         canonicalize: Avoid a false-positive cycle failure.
42757         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
42758         Sort.  Remove cycle-check.
42759         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
42760         not cycle-check.h.
42761         (seen_triple): New function.
42762         (canonicalize_filename_mode): Use it instead of cycle-check.
42763         * tests/test-canonicalize.c: Add a test for this bug.
42764         * tests/test-canonicalize.sh: Set up and run the test.
42765
42766         New module, file-set, from coreutils.
42767         * modules/file-set: Define it.
42768         * lib/file-set.c, lib/file-set.h: Implement.
42769
42770         New module, hash-triple, from coreutils.
42771         * modules/hash-triple: Define it.
42772         * lib/hash-triple.c, lib/hash-triple.h: Implement.
42773
42774 2007-09-25  Eric Blake  <ebb9@byu.net>
42775
42776         Fix strerror on Interix.
42777         * lib/string_.h (strerror): Declare replacement.
42778         * doc/functions/strerror.texi (strerror): Document the Interix
42779         shortcoming.
42780         * modules/string (Makefile.am): Support new hooks.
42781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
42782         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
42783         gl_FUNC_STRERROR_SEPARATE.
42784         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
42785         * lib/strerror.c (rpl_strerror): Provide replacement.
42786         * modules/strerror (Depends-on): Add string.
42787         (configure.ac): Detect use of module.
42788         * tests/test-strerror.c: New file.
42789         * modules/strerror-tests: New test module.
42790         * modules/argp (Depends-on): Add strerror.
42791         * modules/error (Depends-on): Likewise.
42792         Reported by Martin Koeppe.
42793
42794 2007-09-24  Bruno Haible  <bruno@clisp.org>
42795
42796         * README: Update git instructions.
42797
42798 2007-09-24  Eric Blake  <ebb9@byu.net>
42799
42800         Revert fpending breakage from 2007-09-08.
42801         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
42802         __fpending.c.
42803
42804 2007-09-24  Jim Meyering  <jim@meyering.net>
42805
42806         filenamecat.c: Add a test.
42807         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
42808         showing how the function works when DIR is the empty string.
42809
42810 2007-09-21  Simon Josefsson  <simon@josefsson.org>
42811
42812         * tests/test-canonicalize.sh: Turn on executable bit.
42813
42814 2007-09-19  Eric Blake  <ebb9@byu.net>
42815
42816         * README: Update CVS instructions.
42817
42818 2007-09-18  Bruno Haible  <bruno@clisp.org>
42819
42820         * modules/areadlink: New file.
42821         * lib/areadlink.h (areadlink): New declaration.
42822         * lib/areadlink.c: New file, based on lib/xreadlink.c.
42823
42824 2007-09-17  Jim Meyering  <jim@meyering.net>
42825
42826         * lib/savewd.c (ESTALE) [!defined]: Define.
42827         Reported to be required on Interix by Martin Koeppe.
42828
42829 2007-09-17  Bruno Haible  <bruno@clisp.org>
42830
42831         * gnulib-tool (func_version): Use $version.
42832
42833 2007-09-16  Bruno Haible  <bruno@clisp.org>
42834
42835         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
42836         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
42837         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
42838         Reported by Greg Schafer <gschafer@zip.com.au>.
42839
42840 2007-09-15  Bruno Haible  <bruno@clisp.org>
42841
42842         * gnulib-tool (sed): Try a little harder to make bash understand the
42843         alias.
42844         Reported by Bruce Korb <bruce.korb@gmail.com>.
42845
42846 2007-09-13  Eric Blake  <ebb9@byu.net>
42847
42848         * ChangeLog: Remove conflict markers.
42849
42850 2007-09-13  Simon Josefsson  <simon@josefsson.org>
42851
42852         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
42853         Reported by Bruno Haible <bruno@clisp.org>.
42854
42855 2007-09-12  Bruno Haible  <bruno@clisp.org>
42856
42857         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
42858         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
42859         is not defined.
42860
42861 2007-09-12  Eric Blake  <ebb9@byu.net>
42862
42863         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
42864         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
42865         Autoconf definition.
42866         * modules/euidaccess (Depends-on): Add extensions, for
42867         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
42868         * modules/fnmatch (Depends-on): Likewise.
42869         * modules/getaddrinfo (Depends-on): Likewise.
42870         * modules/getdelim (Depends-on): Likewise.
42871         * modules/getline (Depends-on): Likewise.
42872         * modules/getsubopt (Depends-on): Likewise.
42873         * modules/gettext (Depends-on): Likewise.
42874         * modules/group-member (Depends-on): Likewise.
42875         * modules/mbchar (Depends-on): Likewise.
42876         * modules/memmem (Depends-on): Likewise.
42877         * modules/mempcpy (Depends-on): Likewise.
42878         * modules/memrchr (Depends-on): Likewise.
42879         * modules/pagealign_alloc (Depends-on): Likewise.
42880         * modules/readutmp (Depends-on): Likewise.
42881         * modules/stpcpy (Depends-on): Likewise.
42882         * modules/stpncpy (Depends-on): Likewise.
42883         * modules/strchrnul (Depends-on): Likewise.
42884         * modules/strndup (Depends-on): Likewise.
42885         * modules/strsep (Depends-on): Likewise.
42886         * modules/strverscmp (Depends-on): Likewise.
42887         * modules/vasprintf (Depends-on): Likewise.
42888         * modules/wcwidth (Depends-on): Likewise.
42889         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
42890         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
42891         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
42892         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
42893         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42894         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42895         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
42896         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42897         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
42898         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
42899         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42900         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42901         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42902         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
42903         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
42904         * m4/readutmp.m4 (gl_READUTMP): Likewise.
42905         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
42906         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42907         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42908         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42909         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42910         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42911         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42912         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
42913         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
42914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42915         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
42916         so that lock.m4 can be used in gettext without extensions module.
42917
42918 2007-09-11  Bruno Haible  <bruno@clisp.org>
42919
42920         * m4/isc-posix.m4: Remove file.
42921         Suggested by Eric Blake.
42922
42923 2007-09-11  Eric Blake  <ebb9@byu.net>
42924
42925         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
42926
42927 2007-09-10  Bruno Haible  <bruno@clisp.org>
42928
42929         * posix-modules: Fix typo in error message.
42930         Reported by Matt <mkraai@beckman.com>.
42931
42932 2007-09-09  Bruno Haible  <bruno@clisp.org>
42933
42934         * doc/functions/getdelim.texi: Update list of platforms lacking the
42935         function.
42936         * doc/functions/getline.texi: Likewise.
42937
42938 2007-09-09  Jim Meyering  <jim@meyering.net>
42939
42940         * lib/hash.c (hash_initialize): Detect calloc failure.
42941         Reported by Bruno Haible.
42942
42943 2007-09-09  Bruno Haible  <bruno@clisp.org>
42944
42945         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
42946         malloc or realloc fails.
42947
42948 2007-09-09  Bruno Haible  <bruno@clisp.org>
42949
42950         * modules/getcwd (Depends-on): Add malloc-posix.
42951         * modules/glob (Depends-on): Likewise.
42952         * modules/putenv (Depends-on): Likewise.
42953         * modules/strdup (Depends-on): Likewise.
42954         * modules/getdelim (Depends-on): Add realloc-posix.
42955         * modules/read-file (Depends-on): Likewise.
42956
42957 2007-09-09  Bruno Haible  <bruno@clisp.org>
42958
42959         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
42960         (gl_FUNC_MALLOC_POSIX): Require it.
42961         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
42962         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
42963         * modules/realloc (Files): Add m4/malloc.m4.
42964         * modules/calloc (Files): Likewise.
42965
42966 2007-09-09  Bruno Haible  <bruno@clisp.org>
42967
42968         * modules/malloc-posix: New file.
42969         * modules/malloc (Depends-on): Add malloc-posix.
42970         * lib/malloc.c: Include errno.h.
42971         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
42972         and a POSIX-compatible malloc into a single function. Set ENOMEM
42973         when returning NULL.
42974         * m4/malloc.m4: New file.
42975         * doc/functions/malloc.texi: Mention the malloc-posix module.
42976         * lib/stdlib_.h (malloc): New declaration.
42977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42978         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
42979         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
42980         and HAVE_MALLOC_POSIX.
42981
42982 2007-09-09  Bruno Haible  <bruno@clisp.org>
42983
42984         * modules/realloc-posix: New file.
42985         * modules/realloc (Depends-on): Add realloc-posix.
42986         * lib/realloc.c: Include errno.h.
42987         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
42988         and a POSIX-compatible realloc into a single function. Set ENOMEM
42989         when returning NULL.
42990         * m4/realloc.m4: New file.
42991         * doc/functions/realloc.texi: Mention the realloc-posix module.
42992         * lib/stdlib_.h (realloc): New declaration.
42993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42994         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
42995         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
42996         and HAVE_REALLOC_POSIX.
42997
42998 2007-09-09  Bruno Haible  <bruno@clisp.org>
42999
43000         * modules/calloc-posix: New file.
43001         * modules/calloc (Depends-on): Add calloc-posix.
43002         * lib/calloc.c: Include errno.h.
43003         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
43004         and a POSIX-compatible calloc into a single function. Set ENOMEM
43005         when returning NULL.
43006         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
43007         * doc/functions/calloc.texi: Mention the calloc-posix module.
43008         * lib/stdlib_.h (calloc): New declaration.
43009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43010         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
43011         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
43012         and HAVE_CALLOC_POSIX.
43013
43014 2007-09-09  Bruno Haible  <bruno@clisp.org>
43015
43016         Allow for modules to show an arbitrary notice.
43017         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
43018         * gnulib-tool: New option --extract-notice.
43019         (func_usage): Document it.
43020         (sed_extract_prog): Update.
43021         (func_get_notice): New function.
43022         (func_modules_notice): New function.
43023         (func_import, func_create_testdir): Invoke it.
43024         Suggested by Jim Meyering.
43025
43026 2007-09-09  Bruno Haible  <bruno@clisp.org>
43027
43028         * gnulib-tool: New options --verbose, --quiet.
43029         (func_usage): Document them.
43030         (verbose): New variable.
43031         (func_execute_command): New function.
43032         (func_import): Don't show the module list and the file list if
43033         $verbose < 0.
43034         (func_create_testdir): Likewise. Use func_execute_command.
43035         (func_create_megatestdir): Use func_execute_command.
43036
43037 2007-09-08  Bruno Haible  <bruno@clisp.org>
43038
43039         * gnulib-tool (func_import): Prefer rsync over wget when available,
43040         for fetching the PO files.
43041
43042 2007-09-08  Bruno Haible  <bruno@clisp.org>
43043
43044         * posix-modules: New file. Portions copied from gnulib-tool.
43045         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
43046
43047 2007-09-08  Jim Meyering  <jim@meyering.net>
43048
43049         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
43050         * lib/fpending.h: Rename from __fpending.h.
43051         * lib/fpending.c: Rename from __fpending.c.
43052         Include "fpending.h", not "__fpending.h".
43053         * lib/__fpending.h, lib/__fpending.c: Remove files.
43054         * modules/fpending (Files): Reflect new file names.
43055         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
43056
43057 2007-09-08  Bruno Haible  <bruno@clisp.org>
43058
43059         * m4/inttypes-h.m4: Remove stub file.
43060
43061 2007-09-07  Simon Josefsson  <simon@josefsson.org>
43062
43063         * doc/headers/stdint.texi: Discuss #include_next issue.
43064
43065 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43066
43067         * build-aux/bootstrap: Remove obsolete comment about wget --help.
43068
43069 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43070
43071         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
43072         in variable name.
43073
43074 2007-09-03  Jim Meyering  <jim@meyering.net>
43075
43076         New module: git-version-gen.
43077         * modules/git-version-gen: New file.
43078
43079         Import changes from coreutils for bootstrap script.
43080
43081         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
43082
43083         bootstrap: uses rsync to download the .po files
43084         * build-aux/bootstrap (po_download_command_format): New global.
43085         (download_po_files): Use rsync.
43086         (update_po_files): Don't remove .po files after download,
43087         so future rsync runs can take advantage of the copies.
43088
43089         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
43090
43091         Solve the unnecessary-.po-file-regeneration problem once and for all.
43092         * build-aux/bootstrap (download_po_files): New function, renamed from
43093         get_translations.  Now, downloads, but doesn't update LINGUAS.
43094         (update_po_files): New function.
43095
43096         bootstrap: Ignore more.
43097         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
43098         uniwidth to e.g., lib/.gitignore.
43099         (slurp): Handle the sys_stat_.h -> sys mapping, too.
43100
43101         * build-aux/bootstrap: New setting: vc_ignore.
43102         (insert_sorted_if_absent): Create $file if absent.
43103         Adapt to new, possibly empty, list: $vc_ignore.
43104
43105         bootstrap: generate more ignorable names
43106         * build-aux/bootstrap (slurp): When generating ignorable names,
43107         also map .sin to .sed, .gperf to .c, and .y to .c.
43108
43109 2007-09-03  Jim Meyering  <jim@meyering.net>
43110
43111         * build-aux/git-version-gen: New file, from coreutils.  For details, see
43112         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
43113
43114 2007-09-02  Bruno Haible  <bruno@clisp.org>
43115
43116         Fix mis-recognition of 'mcs' on QNX 6.
43117         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
43118         output contains the string "Mono".
43119         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
43120         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
43121
43122 2007-09-01  Bruno Haible  <bruno@clisp.org>
43123
43124         Fix collision between uniwidth/* and linebreak modules.
43125         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
43126         u32_width): Remove declarations.
43127         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
43128         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
43129         streq3, streq2, streq1, streq0): Remove functions.
43130         (STREQ): Remove macro.
43131         (is_cjk_encoding): Remove function.
43132         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
43133         (uc_width, u8_width, u16_width, u32_width): Remove functions.
43134         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
43135         * NEWS: Document the change.
43136
43137 2007-09-01  Bruno Haible  <bruno@clisp.org>
43138
43139         * lib/streq.h: Add double-inclusion guard.
43140
43141 2007-09-01  Karl Berry  <karl@gnu.org>
43142
43143         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
43144
43145 2007-08-28  Jim Meyering  <jim@meyering.net>
43146
43147         Rename mreadlink_with_size to areadlink_with_size.
43148         * NEWS: Document the change.
43149         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
43150         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
43151         * lib/mreadlink.h: Rename this to...
43152         * lib/areadlink.h: ...this.
43153         * modules/mreadlink-with-size: Rename this to...
43154         * modules/areadlink-with-size: ...this.
43155         * lib/canonicalize.c: Reflect the renaming.
43156         * modules/canonicalize: Likewise.
43157
43158 2007-08-26  Bruno Haible  <bruno@clisp.org>
43159
43160         * gnulib-tool (func_import): When deciding which files to remove,
43161         consider also dangling symbolic links.
43162         Reported by Eric Blake.
43163
43164 2007-08-26  Bruno Haible  <bruno@clisp.org>
43165
43166         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
43167
43168 2007-08-23  Simon Josefsson  <simon@josefsson.org>
43169
43170         * lib/readline.c: Don't include getline.h, the prototype is now
43171         found in stdio.h.
43172
43173 2007-08-23  Jim Meyering  <jim@meyering.net>
43174
43175         Getdelim touchup.
43176         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
43177         around the funlockfile call, since funlockfile never sets errno.
43178         Don't set errno upon failed realloc.
43179
43180 2007-08-22  Eric Blake  <ebb9@byu.net>
43181
43182         Getline touchups.
43183         * lib/getdelim.c (getdelim): Revert regression that required *n to
43184         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
43185         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
43186         getdelim, rather than whether implementation is missing.
43187         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
43188         * lib/stdio_.h (getline): Also declare if replacement is
43189         required.
43190         * doc/functions/getdelim.texi: New file.
43191         * doc/functions/getline.texi: Likewise.
43192         * doc/gnulib.texi (Function Substitutes): Add new files.
43193         Reported by Bruno Haible.
43194
43195 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
43196
43197         * users.txt: Add Guile.
43198
43199 2007-08-22  Eric Blake  <ebb9@byu.net>
43200
43201         * tests/test-getdelim.c (main): Use remove, not unlink.
43202         * tests/test-getline.c (main): Likewise.
43203
43204         Move getline and getdelim into stdio.h, per POSIX 200x.
43205         * modules/getline (Files): Remove getline.h.
43206         (Depends-on): Add stdio.
43207         (configure.ac): Add module indicator.
43208         * modules/getdelim (Files): Remove getdelim.h.
43209         (Depends-on): Add stdio.
43210         (configure.ac): Add module indicator.
43211         * modules/stdio (Makefile.am): Work with new indicators.
43212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
43213         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
43214         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43215         * lib/getdelim.h: Delete.
43216         * lib/getline.h: Delete.
43217         * lib/stdio_.h (getdelim, getline): Declare.
43218         * modules/getdelim-tests: New module.
43219         * modules/getline-tests: Likewise.
43220         * tests/test-getdelim.c: New file.
43221         * tests/test-getline.c: Likewise.
43222         * NEWS: Document the change.
43223         * lib/getline.c: Update choice of header.
43224         * lib/csharpcomp.c: Likewise.
43225         * lib/getpass.c: Likewise.
43226         * lib/javacomp.c: Likewise.
43227         * lib/javaversion.c: Likewise.
43228         * lib/yesno.c: Likewise.
43229         * lib/getdelim.c: Likewise.
43230         (getdelim): Set errno on failure, and avoid memory leak.
43231
43232 2007-08-19  Bruno Haible  <bruno@clisp.org>
43233
43234         * modules/closein (Depends-on): Add freadahead.
43235         * lib/closein.c: Include freadahead.h.
43236         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
43237         is zero.
43238
43239 2007-08-19  Bruno Haible  <bruno@clisp.org>
43240
43241         * modules/freadahead-tests: New file.
43242         * tests/test-freadahead.sh: New file.
43243         * tests/test-freadahead.c: New file.
43244
43245         * modules/freadahead: New file.
43246         * lib/freadahead.h: New file.
43247         * lib/freadahead.c: New file.
43248         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
43249         fbufmode, fpurge, freadable, fwritable.
43250
43251 2007-08-19  Eric Blake  <ebb9@byu.net>
43252
43253         Test yesno in combination with closein.
43254         * lib/yesno.c (yesno): Document use of stdin.
43255         * modules/yesno-tests (Files): New module.
43256         * tests/test-yesno.c (main): New file.
43257         * tests/test-yesno.sh: Likewise.
43258
43259 2007-08-19  Bruno Haible  <bruno@clisp.org>
43260
43261         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
43262         * lib/fseeko.c (rpl_fseeko): Likewise.
43263         * lib/fseterr.c (fseterr): Likewise.
43264
43265 2007-08-19  Bruno Haible  <bruno@clisp.org>
43266
43267         * tests/test-lseek.c (main): Disable a test for BeOS.
43268         * doc/functions/lseek.texi: Document the BeOS bug.
43269
43270 2007-08-19  Bruno Haible  <bruno@clisp.org>
43271             Eric Blake  <ebb9@byu.net>
43272
43273         * lib/lseek.c: Include <sys/stat.h>.
43274         (rpl_lseek): Add workaround code also for Unix platforms.
43275         Needed for BeOS.
43276         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
43277         * doc/functions/lseek.texi: Document BeOS definiency.
43278
43279 2007-08-18  Bruno Haible  <bruno@clisp.org>
43280
43281         * modules/fstrcmp-tests: New file.
43282         * tests/test-fstrcmp.c: New file.
43283
43284 2007-08-18  Bruno Haible  <bruno@clisp.org>
43285
43286         * modules/fstrcmp: New file, from GNU gettext with modifications.
43287         * lib/fstrcmp.h: New file, from GNU gettext.
43288         * lib/fstrcmp.c: New file, from GNU gettext.
43289         * MODULES.html.sh (String handling): Add fstrcmp.
43290
43291 2007-08-18  Bruno Haible  <bruno@clisp.org>
43292
43293         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
43294         'bool'.
43295         (diag, compareseq): Remove const from the ctxt argument.
43296         (USE_HEURISTIC): Undefine at the end.
43297
43298 2007-08-18  Jim Meyering  <jim@meyering.net>
43299
43300         New file: lib/idcache.h
43301         * NEWS: Mention the addition.
43302         * modules/idcache (Files): Add lib/idcache.h
43303         * lib/idcache.c: Include "idcache.h".
43304         Don't include <sys/types.h>.
43305         Add a FIXME comment.
43306         Move file-scoped "static" declarations to the top.
43307         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
43308
43309 2007-08-17  Bruno Haible  <bruno@clisp.org>
43310         and Paul Eggert  <eggert@cs.ucla.edu>
43311
43312         * MODULES.html.sh: Add diffseq.
43313         * modules/diffseq: New file.
43314         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
43315         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
43316
43317 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43318
43319         Import changes from coreutils for bootstrap script.
43320
43321         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
43322
43323         * build-aux/bootstrap (slurp): Work even in environments where
43324         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
43325         current code does not slurp files whose names start with ".", and
43326         this looks like it might be a troublesome area.
43327
43328         2007-07-11  Jim Meyering  <jim@meyering.net>
43329
43330         If there's a GPL vN copyright comment, require that N == 3.
43331
43332         2007-07-08  Jim Meyering  <jim@meyering.net>
43333
43334         Run the coreutils-specific code only if tests/Makefile.am.in exists.
43335         * build-aux/bootstrap (mam_template): Move definition out of loop.
43336
43337         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
43338
43339         * build-aux/bootstrap (symlink_to_dir): Rename function from
43340         symlink_to_gnulib.  Add a directory parameter.  Update all
43341         callers.
43342         (cp_mark_as_generated): Also check for -- and link to -- files in
43343         gl/.
43344
43345         2007-07-08  Jim Meyering  <jim@meyering.net>
43346
43347         Adapt to deeper hierarchy in gnulib.
43348         * build-aux/bootstrap (symlink_to_dir): If the destination
43349         directory doesn't exist, create it. This is required at least for
43350         "lib/uniwidth/cjk.h".
43351
43352         2007-05-15  Jim Meyering  <jim@meyering.net>
43353
43354         * build-aux/bootstrap: Now that generated Makefile.am files
43355         are no longer under version control, they must be created at
43356         bootstrap time.
43357
43358 2007-08-14  Ben Pfaff  <blp@gnu.org>
43359
43360         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
43361
43362 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43363
43364         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
43365         given the changes below.
43366         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
43367         even on hosts that have padding bits beyond the supported 64.
43368
43369 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43370
43371         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
43372         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
43373         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
43374         depends on it.
43375         (xstrtol_error): Remove.
43376         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
43377         but with a different signature.
43378         (ATTRIBUTE_NORETURN, __attribute__): New macros.
43379         * lib/xstrtol-error.c: Include exitfail.h.
43380         (xstrtol_fatal): New function, with a different signature from the
43381         old xstrtol_error, so that the caller need not worry about passing
43382         in an exit status, or about storage management of the option argument.
43383         (xstrtol_error): Now a static function.  Redo signature to
43384         implement xstrtol_fatal.  Output the correct number of hyphens in
43385         front of the option so that the caller need not worry about
43386         storage management.
43387         (N_): New macro.
43388         (_): Remove; not used now.
43389         * modules/xstrtol: Depend on getopt.
43390         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
43391         of old STRTOL_FATAL_ERROR macro.
43392         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
43393         of test program.
43394         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
43395         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
43396
43397 2007-08-08  Eric Blake  <ebb9@byu.net>
43398
43399         * lib/xstrtol-error.c: Add missing include.
43400
43401         Move xstrtol messages into gnulib domain, when --pobase is used.
43402         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
43403         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
43404         * modules/xstrtol (Files): Distribute new file.
43405         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
43406         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
43407         * tests/test-xstrtol.c: ...into new file.
43408         * tests/test-xstrtoul.c: Also test xstrtoul.
43409         * tests/test-xstrtoimax.c: Also test xstrtoimax.
43410         * tests/test-xstrtoumax.c: Also test xstrtoumax.
43411         * tests/test-xstrtol.sh: Drive the tests.
43412         * tests/test-xstrtoimax.sh: Likewise.
43413         * tests/test-xstrtoumax.sh: Likewise.
43414         * modules/xstrtol-tests: New module.
43415         * modules/xstrtoimax-tests: Likewise.
43416         * modules/xstrtoumax-tests: Likewise.
43417
43418 2007-08-08  Jim Meyering  <jim@meyering.net>
43419
43420         New function: mfile_name_concat.
43421         * lib/filenamecat.c (mfile_name_concat): New function, just like
43422         file_name_concat, but return NULL upon failure rather than exiting
43423         with a diagnostic.
43424         * lib/filenamecat.h: Declare it.
43425
43426 2007-08-07  Bruno Haible  <bruno@clisp.org>
43427
43428         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
43429         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
43430         warning from gcc.
43431         Reported by Eric Blake.
43432
43433 2007-08-07  Simon Josefsson  <simon@josefsson.org>
43434
43435         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
43436         * modules/crypto/arcfour (License): Likewise.
43437         * modules/crypto/des-tests (License): Likewise.
43438         * modules/crypto/gc-arctwo-tests (License): Likewise.
43439         * modules/crypto/gc-des-tests (License): Likewise.
43440         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
43441         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
43442         * modules/crypto/gc-md2-tests (License): Likewise.
43443         * modules/crypto/gc-md4-tests (License): Likewise.
43444         * modules/crypto/gc-md5-tests (License): Likewise.
43445         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
43446         * modules/crypto/gc-rijndael-tests (License): Likewise.
43447         * modules/crypto/gc-sha1-tests (License): Likewise.
43448         * modules/crypto/gc-tests (License): Likewise.
43449         * modules/crypto/hmac-md5 (License): Likewise.
43450         * modules/crypto/hmac-sha1 (License): Likewise.
43451         * modules/crypto/md2-tests (License): Likewise.
43452         * modules/crypto/md4-tests (License): Likewise.
43453         * modules/crypto/md5 (License): Likewise.
43454         * modules/crypto/rijndael (License): Likewise.
43455         * modules/crypto/sha1 (License): Likewise.
43456         * modules/memxor (License): Likewise.
43457
43458 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43459         and Bruno Haible  <bruno@clisp.org>
43460
43461         * NEWS: Describe interface changes to human, xstrtol.
43462         * lib/human.h: Include <xstrtol.h>.
43463         (human_options): Return enum strtol_error, not int.  Remove
43464         bool arg; take int * instead.
43465         * lib/human.c: Don't include "gettext.h".
43466         (_): Remove; no longer used.
43467         Don't include <xstrtol.h>, since human.h does it.
43468         (human_options): Adjust to abovementioned interface changes.
43469         Do not report error to stderr; that's now the caller's
43470         responsibility.
43471         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
43472         interface change.
43473         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
43474         Str, Argument_type_string.  All uses changed.  Put " argument"
43475         in diagnostics to make them clearer.  Change wording of suffix
43476         message for clarity.
43477         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
43478         Argument_type_string.
43479         (STRTOL_FATAL_WARN): Remove; no longer used.
43480         * modules/human (Depends-on): Remove gettext-h.
43481
43482 2007-08-06  Simon Josefsson  <simon@josefsson.org>
43483
43484         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
43485
43486 2007-07-31  Bruno Haible  <bruno@clisp.org>
43487
43488         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
43489         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
43490         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
43491
43492 2007-07-31  Bruno Haible  <bruno@clisp.org>
43493
43494         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
43495         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
43496
43497 2007-07-30  Bruno Haible  <bruno@clisp.org>
43498
43499         * modules/base64 (License): Use the synonymous term "LGPLv2+".
43500         * modules/c-ctype (License): Likewise.
43501         * modules/c-strcase (License): Likewise.
43502         * modules/check-version (License): Likewise.
43503         * modules/iconv (License): Likewise.
43504         * modules/iconv_open (License): Likewise.
43505         * modules/read-file (License): Likewise.
43506         * modules/striconv (License): Likewise.
43507         * modules/strverscmp (License): Likewise.
43508         * modules/vasprintf (License): Likewise.
43509         * modules/crypto/des (License): Likewise.
43510         * modules/crypto/gc (License): Likewise.
43511         * modules/crypto/gc-arcfour (License): Likewise.
43512         * modules/crypto/gc-arctwo (License): Likewise.
43513         * modules/crypto/gc-des (License): Likewise.
43514         * modules/crypto/gc-hmac-md5 (License): Likewise.
43515         * modules/crypto/gc-hmac-sha1 (License): Likewise.
43516         * modules/crypto/gc-md2 (License): Likewise.
43517         * modules/crypto/gc-md4 (License): Likewise.
43518         * modules/crypto/gc-md5 (License): Likewise.
43519         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
43520         * modules/crypto/gc-random (License): Likewise.
43521         * modules/crypto/gc-rijndael (License): Likewise.
43522         * modules/crypto/gc-sha1 (License): Likewise.
43523         * modules/crypto/md2 (License): Likewise.
43524         * modules/crypto/md4 (License): Likewise.
43525
43526 2007-07-30  Jim Meyering  <jim@meyering.net>
43527
43528         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
43529         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
43530         it has valid stat data.  This bug would cause du not to count the
43531         sizes of inaccessible directories.
43532         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
43533         in <http://bugzilla.redhat.com/250077>.
43534
43535 2007-07-25  Peter O'Gorman  <peter@pogma.com>
43536             Bruno Haible  <bruno@clisp.org>
43537
43538         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
43539         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
43540         #include_next, gives a diagnostic about it, but reports no error in
43541         the exit code.
43542         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43543
43544 2007-07-24  Ben Pfaff  <blp@gnu.org>
43545
43546         Improve name: "count-one-bits" is better than "popcount".
43547         * MODULES.html.sh: Update name.
43548         * lib/popcount.h: Renamed lib/count-one-bits.h.
43549         (popcount): Renamed count_one_bits.
43550         (popcountl): Renamed count_one_bits_l.
43551         (popcountll): Renamed count_one_bits_ll.
43552         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
43553         * modules/popcount: Renamed module/count-one-bits.
43554         * modules/popcount-tests: Renamed module/count-one-bits-tests.
43555         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
43556
43557 2007-07-23  Ben Pfaff  <blp@gnu.org>
43558
43559         * lib/popcount.h (popcount32): Reduce size of constants, to allow
43560         better code generation, and add U to large constants to avoid
43561         warnings, in non-GCC case.
43562         Suggested by Bruno Haible.
43563
43564 2007-07-23  Ben Pfaff  <blp@gnu.org>
43565
43566         * lib/popcount.h: Use verify_true instead of if...abort.
43567         * modules/popcount: Depend on verify module.
43568         Suggested by Jim Meyering.
43569
43570 2007-07-23  Bruno Haible  <bruno@clisp.org>
43571
43572         * gnulib-tool (func_import): Create a .cvsignore file also when the
43573         directory is not yet in CVS but the toplevel directory is. When
43574         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
43575         Reported by Karl Berry.
43576
43577 2007-07-22  Ben Pfaff  <blp@gnu.org>
43578
43579         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
43580         case.
43581         Suggested by Eric Blake.
43582
43583 2007-07-22  Ben Pfaff  <blp@gnu.org>
43584
43585         New module: popcount.
43586         * MODULES.html.sh: Add popcount.
43587         * modules/popcount: New file.
43588         * modules/popcount-tests: New file.
43589         * tests/test-popcount.c: New file.
43590         * lib/popcount.h: New file.
43591         * m4/popcount.m4: New file.
43592
43593 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43594
43595         * build-aux/announce-gen: Update to GPLv3.
43596
43597         * build-aux/config.guess: Update from config.
43598
43599 2007-07-21  Bruno Haible  <bruno@clisp.org>
43600
43601         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
43602         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
43603
43604 2007-07-20  Jim Meyering  <jim@meyering.net>
43605
43606         * check-module: Diagnose a self-dependency.
43607
43608 2007-07-19  Bruno Haible  <bruno@clisp.org>
43609
43610         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
43611         empty.
43612         Reported by Eric Blake.
43613
43614 2007-07-18  Bruno Haible  <bruno@clisp.org>
43615
43616         * gnulib-tool: New options --po-base, --po-domain.
43617         (func_usage): Document them.
43618         (pobase, po_domain): New variables.
43619         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
43620         DEFAULT_TEXT_DOMAIN.
43621         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
43622         (func_import): Consider pobase and po_domain. Create a po/ directory.
43623         (func_create_testdir): Set pobase and po_domain to empty.
43624         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
43625         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
43626
43627 2007-07-18  Bruno Haible  <bruno@clisp.org>
43628
43629         * gnulib-tool (func_get_automake_snippet): Synthesize also an
43630         EXTRA_DIST augmentation for files in build-aux/.
43631
43632 2007-07-16  Bruno Haible  <bruno@clisp.org>
43633
43634         * modules/lseek (License): Use the synonymous term "LGPLv2+".
43635         * modules/getdelim (License): Likewise.
43636
43637 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43638
43639         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
43640         * modules/d-type (License): Likewise.
43641         * modules/extensions (License): Likewise.
43642         * modules/fnmatch (License): Likewise.
43643         * modules/fseeko (License): Likewise.
43644         * modules/getaddrinfo (License): Likewise.
43645         * modules/getline (License): Likewise.
43646         * modules/getlogin_r (License): Likewise.
43647         * modules/getpass (License): Likewise.
43648         * modules/gettimeofday (License): Likewise.
43649         * modules/glob (License): Likewise.
43650         * modules/inet_ntop (License): Likewise.
43651         * modules/malloc (License): Likewise.
43652         * modules/malloca (License): Likewise.
43653         * modules/memmem (License): Likewise.
43654         * modules/mempcpy (License): Likewise.
43655         * modules/memset (License): Likewise.
43656         * modules/minmax (License): Likewise.
43657         * modules/mktime (License): Likewise.
43658         * modules/netinet_in (License): Likewise.
43659         * modules/pathmax (License): Likewise.
43660         * modules/poll (License): Likewise.
43661         * modules/regex (License): Likewise.
43662         * modules/snprintf (License): Likewise.
43663         * modules/stdbool (License): Likewise.
43664         * modules/stdint (License): Likewise.
43665         * modules/stdio (License): Likewise.
43666         * modules/strcase (License): Likewise.
43667         * modules/strcasestr (License): Likewise.
43668         * modules/strdup (License): Likewise.
43669         * modules/string (License): Likewise.
43670         * modules/strndup (License): Likewise.
43671         * modules/strnlen (License): Likewise.
43672         * modules/strpbrk (License): Likewise.
43673         * modules/strptime (License): Likewise.
43674         * modules/strsep (License): Likewise.
43675         * modules/sys_select (License): Likewise.
43676         * modules/sys_socket (License): Likewise.
43677         * modules/sys_stat (License): Likewise.
43678         * modules/sys_time (License): Likewise.
43679         * modules/time (License): Likewise.
43680         * modules/time_r (License): Likewise.
43681         * modules/timegm (License): Likewise.
43682         * modules/unistd (License): Likewise.
43683         * modules/vsnprintf (License): Likewise.
43684         * modules/wctype (License): Likewise.
43685
43686 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43687
43688         * modules/argz (License): LGPLv2+.
43689
43690 2007-07-15  Karl Berry  <karl@gnu.org>
43691
43692         * doc/gnulib.texi: revise node structure per new fdl.texi.
43693
43694 2007-07-14  Bruno Haible  <bruno@clisp.org>
43695
43696         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
43697         the output file.
43698         * lib/uniname/uninames.h: Regenerated.
43699
43700 2007-07-14  Karl Berry  <karl@gnu.org>
43701
43702         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
43703         omitting sectioning and index commands.
43704
43705 2007-07-13  Bruno Haible  <bruno@clisp.org>
43706
43707         New gnulib-tool option --more-symlinks.
43708         * gnulib-tool (func_usage): Document --more-symlinks.
43709         (do_copyrights): New variable.
43710         Recognize option --more-symlinks.
43711         (func_import): Don't add a copyright notice transform to
43712         sed_transform_lib_file if do_copyrights is empty.
43713
43714 2007-07-13  Bruno Haible  <bruno@clisp.org>
43715
43716         * lib/vasnprintf.c (decimal_point_char): Define also if
43717         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
43718         && !NEED_PRINTF_DIRECTIVE_A.
43719         Reported by Clemens Koller <clemens.koller@anagramm.de> via
43720         Gary V. Vaughan <gary@gnu.org>.
43721
43722 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
43723
43724         * lib/inttypes_.h: Undo previous change, since it was fixed
43725         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
43726
43727 2007-07-13  Bruno Haible  <bruno@clisp.org>
43728
43729         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
43730         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
43731
43732 2007-07-13  Jim Meyering  <jim@meyering.net>
43733
43734         df: Don't fail for Tru64's "file-on-file mount".
43735         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
43736         so we fall through and use statfs instead.  Details here:
43737         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
43738         Reported by Albert Chin.
43739
43740 2007-07-13  Bruno Haible  <bruno@clisp.org>
43741
43742         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
43743         * modules/configmake (License): Likewise.
43744         * modules/gettext (License): Likewise.
43745         * modules/gettext-h (License): Likewise.
43746         * modules/include_next (License): Likewise.
43747         * modules/link-warning (License): Likewise.
43748         * modules/localcharset (License): Likewise.
43749         * modules/localename (License): Likewise.
43750         * modules/lock (License): Likewise.
43751         * modules/relocatable-lib-lgpl (License): Likewise.
43752         * modules/size_max (License): Likewise.
43753         * modules/vasnprintf (License): Likewise.
43754         * modules/wchar (License): Likewise.
43755         * modules/xsize (License): Likewise.
43756
43757 2007-07-13  Bruno Haible  <bruno@clisp.org>
43758
43759         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
43760         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
43761
43762 2007-07-12  Bruno Haible  <bruno@clisp.org>
43763
43764         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
43765         in the modules files.
43766
43767 2007-07-11  Karl Berry  <karl@gnu.org>
43768
43769         * MODULES.html.sh (func_module): use
43770          sed -e '\|^'"${includefile}"'$|d'
43771          instead of /.../d, to avoid errors on $includefile's containing /.
43772
43773 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43774
43775         * gnulib-tool (func_import): Avoid duplication of --avoid
43776         statements
43777         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
43778         names to `_' in variable names.
43779
43780 2007-07-10  Eric Blake  <ebb9@byu.net>
43781
43782         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
43783         * NEWS: Document this change.
43784
43785 2007-07-08  Bruno Haible  <bruno@clisp.org>
43786
43787         Update to Unicode 5.0.
43788         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
43789         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
43790         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
43791         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
43792         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
43793         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
43794         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
43795         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
43796         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
43797         U+10A3F, U+1D242..U+1D244.
43798         (nonspacing_table_ind): Update.
43799         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
43800         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
43801
43802 2007-07-08  Bruno Haible  <bruno@clisp.org>
43803
43804         Update to Unicode 5.0.
43805         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
43806         code transform. Extend the name index field of unicode_name_to_code and
43807         unicode_code_to_name from 16 to 24 bits.
43808         * lib/uniname/uniname.c (unicode_character_name,
43809         unicode_name_character): Add the range 0x12xxx to the code transform.
43810         * lib/uniname/uninames.h: Regenerated.
43811         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
43812
43813 2007-07-07  Bruno Haible  <bruno@clisp.org>
43814
43815         * modules/wcwidth-tests: New file.
43816         * tests/test-wcwidth.c: New file.
43817
43818         Work around MacOS X wcwidth() bug.
43819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
43820         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
43821         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
43822         original wcwidth in non-UTF-8 locales.
43823         * modules/wcwidth (Depends-on): Add localcharset, streq,
43824         uniwidth/width.
43825         * doc/functions/wcwidth.texi: Update.
43826
43827 2007-07-07  Bruno Haible  <bruno@clisp.org>
43828
43829         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
43830         (wcwidth): New declaration.
43831         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
43832         macros.
43833         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
43834         here. Prepare for creating <wchar.h> unconditionally.
43835         * modules/wchar (Depends-on): Add link-warning.
43836         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
43837         REPLACE_WCWIDTH, and GL_LINK_WARNING.
43838         * lib/wcwidth.h: Remove file.
43839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
43840         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
43841         * modules/wcwidth (Files): Remove lib/wcwidth.h.
43842         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
43843         (Include): Replace wcwidth.h with <wchar.h>.
43844         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
43845         * lib/mbchar.h: Don't include wcwidth.h.
43846         * lib/mbswidth.c: Likewise.
43847         * NEWS: Mention the change.
43848
43849 2007-07-07  Bruno Haible  <bruno@clisp.org>
43850
43851         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
43852         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
43853         definition with an external declaration.
43854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
43855         defined as a function. Remove AC_C_INLINE requirement.
43856         * modules/wcwidth (Files): Add lib/wcwidth.c.
43857         (Makefile.am): Remove redundant statement.
43858
43859 2007-07-07  Bruno Haible  <bruno@clisp.org>
43860
43861         * MODULES.html.sh (Unicode string functions): Add the new modules.
43862
43863         * tests/uniwidth/test-u32-strwidth.c: New file.
43864         * modules/uniwidth/u32-strwidth-tests: New file.
43865
43866         * lib/uniwidth/u32-strwidth.c: New file.
43867         * modules/uniwidth/u32-strwidth: New file.
43868
43869         * tests/uniwidth/test-u16-strwidth.c: New file.
43870         * modules/uniwidth/u16-strwidth-tests: New file.
43871
43872         * lib/uniwidth/u16-strwidth.c: New file.
43873         * modules/uniwidth/u16-strwidth: New file.
43874
43875         * tests/uniwidth/test-u8-strwidth.c: New file.
43876         * modules/uniwidth/u8-strwidth-tests: New file.
43877
43878         * lib/uniwidth/u8-strwidth.c: New file.
43879         * modules/uniwidth/u8-strwidth: New file.
43880
43881         * tests/uniwidth/test-u32-width.c: New file.
43882         * modules/uniwidth/u32-width-tests: New file.
43883
43884         * lib/uniwidth/u32-width.c: New file.
43885         * modules/uniwidth/u32-width: New file.
43886
43887         * tests/uniwidth/test-u16-width.c: New file.
43888         * modules/uniwidth/u16-width-tests: New file.
43889
43890         * lib/uniwidth/u16-width.c: New file.
43891         * modules/uniwidth/u16-width: New file.
43892
43893         * tests/uniwidth/test-u8-width.c: New file.
43894         * modules/uniwidth/u8-width-tests: New file.
43895
43896         * lib/uniwidth/u8-width.c: New file.
43897         * modules/uniwidth/u8-width: New file.
43898
43899         * tests/uniwidth/test-uc_width.c: New file.
43900         * modules/uniwidth/width-tests: New file.
43901
43902         * lib/uniwidth/width.c: New file, from GNU libiconv.
43903         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
43904         * modules/uniwidth/width: New file.
43905
43906         * lib/uniwidth.h: New file, from GNU libiconv.
43907         * modules/uniwidth/base: New file.
43908
43909 2007-07-07  Bruno Haible  <bruno@clisp.org>
43910
43911         * lib/uniname.h: New file, from GNU gettext.
43912         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
43913         * lib/uniname/uninames.h: New file, from GNU gettext.
43914         * lib/uniname/uniname.c: New file, from GNU gettext.
43915         * tests/uniname/test-uninames.sh: New file.
43916         * tests/uniname/test-uninames.c: New file, from GNU gettext.
43917         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
43918         * modules/uniname/base: New file.
43919         * modules/uniname/uniname: New file.
43920         * modules/uniname/uniname-tests: New file.
43921         * MODULES.html.sh (Unicode string functions): Add the new modules.
43922
43923 2007-07-06  Bruno Haible  <bruno@clisp.org>
43924
43925         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
43926
43927 2007-07-06  Bruno Haible  <bruno@clisp.org>
43928
43929         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
43930         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
43931         includes <cygwin/sys_time.h> which includes <sys/select.h> which
43932         include <sys/time.h>.
43933         Reported by Eric Blake.
43934
43935 2007-07-06  Eric Blake  <ebb9@byu.net>
43936
43937         Fix testing canonicalize on cygwin.
43938         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
43939         Revert patch from 2007-06-19.
43940         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
43941         canonicalize module is also in use.
43942         * tests/test-canonicalize.c: New file.
43943         * tests/test-canonicalize.sh: Likewise.
43944         * modules/canonicalize-tests: Likewise.
43945
43946 2007-07-06  Jim Meyering  <jim@meyering.net>
43947
43948         * lib/getugroups.c (getugroups): Detect getgrent failure.
43949         Adjust comment to reflect reality: this function may return -1.
43950
43951 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
43952
43953         * build-aux/bootstrap (TP_URL,get_translations): Update to use
43954         the new TP address.
43955         (usage): Fix typo
43956         (gnulib_mk): New variable.
43957
43958 2007-07-05  Jim Meyering  <jim@meyering.net>
43959
43960         Don't let endgrent clobber errno, no matter how improbable.
43961         * lib/getugroups.c (getugroups): Save and restore errno around
43962         endgrent call.
43963
43964         Close the group DB even when failing with 2^31 or more members.
43965         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
43966
43967 2007-07-04  Jim Meyering  <jim@meyering.net>
43968
43969         * lib/getugroups.h: New file.
43970         * lib/getugroups.c: Include "getugroups.h".
43971         Remove uses of "register" keyword.
43972         Move local variable, "cp", down into scope where used.
43973         Give "username" parameter the "const" attribute.
43974         * modules/getugroups (Files): Add lib/getugroups.h
43975
43976 2007-07-04  Karl Berry  <karl@gnu.org>
43977
43978         * MODULES.html.sh (func_all_modules): Complete rename of
43979         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
43980
43981 2007-07-02  Bruno Haible  <bruno@clisp.org>
43982
43983         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
43984         mode, when inttypes.h comes from gnulib.
43985         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43986
43987 2007-07-02  Simon Josefsson  <simon@josefsson.org>
43988
43989         * NEWS: Mention lgpl module name change.
43990
43991         * modules/lgpl-2.1: Renamed from lgpl.
43992
43993         * NEWS: Mention gpl module name change.
43994
43995         * modules/gpl-3.0: New file, based on gpl-2.0.
43996
43997         * modules/gpl-2.0: Renamed from gpl.
43998
43999         * modules/gpl: Fix filename, doc/gpl.texi is now found at
44000         doc/gpl-2.0.texi.
44001
44002 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44003
44004         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
44005         #define __STDC_LIMIT_MACROS temporarily while including
44006         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
44007         Problem reported by Joel E. Denny in
44008         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
44009
44010 2007-07-01  Bruno Haible  <bruno@clisp.org>
44011
44012         * lib/unistdio.h: New file.
44013         * lib/unistdio/u-asnprintf.h: New file.
44014         * lib/unistdio/u-asprintf.h: New file.
44015         * lib/unistdio/u-printf-args.c: New file.
44016         * lib/unistdio/u-printf-args.h: New file.
44017         * lib/unistdio/u-printf-parse.h: New file.
44018         * lib/unistdio/u-snprintf.h: New file.
44019         * lib/unistdio/u-sprintf.h: New file.
44020         * lib/unistdio/u-vasprintf.h: New file.
44021         * lib/unistdio/u-vsnprintf.h: New file.
44022         * lib/unistdio/u-vsprintf.h: New file.
44023         * lib/unistdio/ulc-asnprintf.c: New file.
44024         * lib/unistdio/ulc-asprintf.c: New file.
44025         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
44026         * lib/unistdio/ulc-printf-parse.c: New file.
44027         * lib/unistdio/ulc-snprintf.c: New file.
44028         * lib/unistdio/ulc-sprintf.c: New file.
44029         * lib/unistdio/ulc-vasnprintf.c: New file.
44030         * lib/unistdio/ulc-vasprintf.c: New file.
44031         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
44032         * lib/unistdio/ulc-vsnprintf.c: New file.
44033         * lib/unistdio/ulc-vsprintf.c: New file.
44034         * lib/unistdio/u8-asnprintf.c: New file.
44035         * lib/unistdio/u8-asprintf.c: New file.
44036         * lib/unistdio/u8-printf-parse.c: New file.
44037         * lib/unistdio/u8-snprintf.c: New file.
44038         * lib/unistdio/u8-sprintf.c: New file.
44039         * lib/unistdio/u8-vasnprintf.c: New file.
44040         * lib/unistdio/u8-vasprintf.c: New file.
44041         * lib/unistdio/u8-vsnprintf.c: New file.
44042         * lib/unistdio/u8-vsprintf.c: New file.
44043         * lib/unistdio/u8-u8-asnprintf.c: New file.
44044         * lib/unistdio/u8-u8-asprintf.c: New file.
44045         * lib/unistdio/u8-u8-snprintf.c: New file.
44046         * lib/unistdio/u8-u8-sprintf.c: New file.
44047         * lib/unistdio/u8-u8-vasnprintf.c: New file.
44048         * lib/unistdio/u8-u8-vasprintf.c: New file.
44049         * lib/unistdio/u8-u8-vsnprintf.c: New file.
44050         * lib/unistdio/u8-u8-vsprintf.c: New file.
44051         * lib/unistdio/u16-asnprintf.c: New file.
44052         * lib/unistdio/u16-asprintf.c: New file.
44053         * lib/unistdio/u16-printf-parse.c: New file.
44054         * lib/unistdio/u16-snprintf.c: New file.
44055         * lib/unistdio/u16-sprintf.c: New file.
44056         * lib/unistdio/u16-vasnprintf.c: New file.
44057         * lib/unistdio/u16-vasprintf.c: New file.
44058         * lib/unistdio/u16-vsnprintf.c: New file.
44059         * lib/unistdio/u16-vsprintf.c: New file.
44060         * lib/unistdio/u16-u16-asnprintf.c: New file.
44061         * lib/unistdio/u16-u16-asprintf.c: New file.
44062         * lib/unistdio/u16-u16-snprintf.c: New file.
44063         * lib/unistdio/u16-u16-sprintf.c: New file.
44064         * lib/unistdio/u16-u16-vasnprintf.c: New file.
44065         * lib/unistdio/u16-u16-vasprintf.c: New file.
44066         * lib/unistdio/u16-u16-vsnprintf.c: New file.
44067         * lib/unistdio/u16-u16-vsprintf.c: New file.
44068         * lib/unistdio/u32-asnprintf.c: New file.
44069         * lib/unistdio/u32-asprintf.c: New file.
44070         * lib/unistdio/u32-printf-parse.c: New file.
44071         * lib/unistdio/u32-snprintf.c: New file.
44072         * lib/unistdio/u32-sprintf.c: New file.
44073         * lib/unistdio/u32-vasnprintf.c: New file.
44074         * lib/unistdio/u32-vasprintf.c: New file.
44075         * lib/unistdio/u32-vsnprintf.c: New file.
44076         * lib/unistdio/u32-vsprintf.c: New file.
44077         * lib/unistdio/u32-u32-asnprintf.c: New file.
44078         * lib/unistdio/u32-u32-asprintf.c: New file.
44079         * lib/unistdio/u32-u32-snprintf.c: New file.
44080         * lib/unistdio/u32-u32-sprintf.c: New file.
44081         * lib/unistdio/u32-u32-vasnprintf.c: New file.
44082         * lib/unistdio/u32-u32-vasprintf.c: New file.
44083         * lib/unistdio/u32-u32-vsnprintf.c: New file.
44084         * lib/unistdio/u32-u32-vsprintf.c: New file.
44085         * tests/unistdio/test-ulc-asnprintf1.c: New file.
44086         * tests/unistdio/test-ulc-asnprintf1.h: New file.
44087         * tests/unistdio/test-ulc-printf1.h: New file.
44088         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
44089         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
44090         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
44091         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
44092         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
44093         * tests/unistdio/test-ulc-vasprintf1.c: New file.
44094         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
44095         * tests/unistdio/test-ulc-vsprintf1.c: New file.
44096         * tests/unistdio/test-u8-asnprintf1.c: New file.
44097         * tests/unistdio/test-u8-asnprintf1.h: New file.
44098         * tests/unistdio/test-u8-printf1.h: New file.
44099         * tests/unistdio/test-u8-vasnprintf1.c: New file.
44100         * tests/unistdio/test-u8-vasnprintf2.c: New file.
44101         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
44102         * tests/unistdio/test-u8-vasnprintf3.c: New file.
44103         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
44104         * tests/unistdio/test-u8-vasprintf1.c: New file.
44105         * tests/unistdio/test-u8-vsnprintf1.c: New file.
44106         * tests/unistdio/test-u8-vsprintf1.c: New file.
44107         * tests/unistdio/test-u16-asnprintf1.c: New file.
44108         * tests/unistdio/test-u16-asnprintf1.h: New file.
44109         * tests/unistdio/test-u16-printf1.h: New file.
44110         * tests/unistdio/test-u16-vasnprintf1.c: New file.
44111         * tests/unistdio/test-u16-vasnprintf2.c: New file.
44112         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
44113         * tests/unistdio/test-u16-vasnprintf3.c: New file.
44114         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
44115         * tests/unistdio/test-u16-vasprintf1.c: New file.
44116         * tests/unistdio/test-u16-vsnprintf1.c: New file.
44117         * tests/unistdio/test-u16-vsprintf1.c: New file.
44118         * tests/unistdio/test-u32-asnprintf1.c: New file.
44119         * tests/unistdio/test-u32-asnprintf1.h: New file.
44120         * tests/unistdio/test-u32-printf1.h: New file.
44121         * tests/unistdio/test-u32-vasnprintf1.c: New file.
44122         * tests/unistdio/test-u32-vasnprintf2.c: New file.
44123         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
44124         * tests/unistdio/test-u32-vasnprintf3.c: New file.
44125         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
44126         * tests/unistdio/test-u32-vasprintf1.c: New file.
44127         * tests/unistdio/test-u32-vsnprintf1.c: New file.
44128         * tests/unistdio/test-u32-vsprintf1.c: New file.
44129         * modules/unistdio/base: New file.
44130         * modules/unistdio/u-printf-args: New file.
44131         * modules/unistdio/ulc-asnprintf: New file.
44132         * modules/unistdio/ulc-asprintf: New file.
44133         * modules/unistdio/ulc-fprintf: New file.
44134         * modules/unistdio/ulc-printf-parse: New file.
44135         * modules/unistdio/ulc-snprintf: New file.
44136         * modules/unistdio/ulc-sprintf: New file.
44137         * modules/unistdio/ulc-vasnprintf: New file.
44138         * modules/unistdio/ulc-vasprintf: New file.
44139         * modules/unistdio/ulc-vfprintf: New file.
44140         * modules/unistdio/ulc-vsnprintf: New file.
44141         * modules/unistdio/ulc-vsprintf: New file.
44142         * modules/unistdio/u8-asnprintf: New file.
44143         * modules/unistdio/u8-asprintf: New file.
44144         * modules/unistdio/u8-printf-parse: New file.
44145         * modules/unistdio/u8-snprintf: New file.
44146         * modules/unistdio/u8-sprintf: New file.
44147         * modules/unistdio/u8-vasnprintf: New file.
44148         * modules/unistdio/u8-vasprintf: New file.
44149         * modules/unistdio/u8-vsnprintf: New file.
44150         * modules/unistdio/u8-vsprintf: New file.
44151         * modules/unistdio/u8-u8-asnprintf: New file.
44152         * modules/unistdio/u8-u8-asprintf: New file.
44153         * modules/unistdio/u8-u8-snprintf: New file.
44154         * modules/unistdio/u8-u8-sprintf: New file.
44155         * modules/unistdio/u8-u8-vasnprintf: New file.
44156         * modules/unistdio/u8-u8-vasprintf: New file.
44157         * modules/unistdio/u8-u8-vsnprintf: New file.
44158         * modules/unistdio/u8-u8-vsprintf: New file.
44159         * modules/unistdio/u16-asnprintf: New file.
44160         * modules/unistdio/u16-asprintf: New file.
44161         * modules/unistdio/u16-printf-parse: New file.
44162         * modules/unistdio/u16-snprintf: New file.
44163         * modules/unistdio/u16-sprintf: New file.
44164         * modules/unistdio/u16-vasnprintf: New file.
44165         * modules/unistdio/u16-vasprintf: New file.
44166         * modules/unistdio/u16-vsnprintf: New file.
44167         * modules/unistdio/u16-vsprintf: New file.
44168         * modules/unistdio/u16-u16-asnprintf: New file.
44169         * modules/unistdio/u16-u16-asprintf: New file.
44170         * modules/unistdio/u16-u16-snprintf: New file.
44171         * modules/unistdio/u16-u16-sprintf: New file.
44172         * modules/unistdio/u16-u16-vasnprintf: New file.
44173         * modules/unistdio/u16-u16-vasprintf: New file.
44174         * modules/unistdio/u16-u16-vsnprintf: New file.
44175         * modules/unistdio/u16-u16-vsprintf: New file.
44176         * modules/unistdio/u32-asnprintf: New file.
44177         * modules/unistdio/u32-asprintf: New file.
44178         * modules/unistdio/u32-printf-parse: New file.
44179         * modules/unistdio/u32-snprintf: New file.
44180         * modules/unistdio/u32-sprintf: New file.
44181         * modules/unistdio/u32-vasnprintf: New file.
44182         * modules/unistdio/u32-vasprintf: New file.
44183         * modules/unistdio/u32-vsnprintf: New file.
44184         * modules/unistdio/u32-vsprintf: New file.
44185         * modules/unistdio/u32-u32-asnprintf: New file.
44186         * modules/unistdio/u32-u32-asprintf: New file.
44187         * modules/unistdio/u32-u32-snprintf: New file.
44188         * modules/unistdio/u32-u32-sprintf: New file.
44189         * modules/unistdio/u32-u32-vasnprintf: New file.
44190         * modules/unistdio/u32-u32-vasprintf: New file.
44191         * modules/unistdio/u32-u32-vsnprintf: New file.
44192         * modules/unistdio/u32-u32-vsprintf: New file.
44193         * modules/unistdio/ulc-asnprintf-tests: New file.
44194         * modules/unistdio/ulc-vasnprintf-tests: New file.
44195         * modules/unistdio/ulc-vasprintf-tests: New file.
44196         * modules/unistdio/ulc-vsnprintf-tests: New file.
44197         * modules/unistdio/ulc-vsprintf-tests: New file.
44198         * modules/unistdio/u8-asnprintf-tests: New file.
44199         * modules/unistdio/u8-vasnprintf-tests: New file.
44200         * modules/unistdio/u8-vasprintf-tests: New file.
44201         * modules/unistdio/u8-vsnprintf-tests: New file.
44202         * modules/unistdio/u8-vsprintf-tests: New file.
44203         * modules/unistdio/u16-asnprintf-tests: New file.
44204         * modules/unistdio/u16-vasnprintf-tests: New file.
44205         * modules/unistdio/u16-vasprintf-tests: New file.
44206         * modules/unistdio/u16-vsnprintf-tests: New file.
44207         * modules/unistdio/u16-vsprintf-tests: New file.
44208         * modules/unistdio/u32-asnprintf-tests: New file.
44209         * modules/unistdio/u32-vasnprintf-tests: New file.
44210         * modules/unistdio/u32-vasprintf-tests: New file.
44211         * modules/unistdio/u32-vsnprintf-tests: New file.
44212         * modules/unistdio/u32-vsprintf-tests: New file.
44213         * MODULES.html.sh (Unicode string functions): Add the new modules.
44214
44215 2007-07-01  Bruno Haible  <bruno@clisp.org>
44216
44217         * lib/sprintf.c (sprintf): Limit the available length estimation,
44218         to avoid address wraparound.
44219         * lib/vsprintf.c (vsprintf): Likewise.
44220         * modules/sprintf-posix (Dependencies): Add stdint.
44221         * modules/vsprintf-posix (Dependencies): Likewise.
44222
44223 2007-07-01  Bruno Haible  <bruno@clisp.org>
44224
44225         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
44226         Windows PATH as well. Conservative double-quoting. Comments.
44227
44228 2007-07-01  Bruno Haible  <bruno@clisp.org>
44229             Eric Blake  <ebb9@byu.net>
44230             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44231
44232         * gnulib-tool (self_abspathname): Fix algorithm to cope with
44233         empty components in $PATH, denoting '.'.
44234
44235 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44236
44237         * gnulib-tool: Fix indentation.
44238         (func_create_megatestdir): Likewise.
44239         Report by Bruno Haible.
44240
44241 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44242
44243         Sync from Automake.
44244         * build-aux/gnupload: Fix shell portability issues with for loops.
44245         Report by Karl Berry.
44246
44247 2007-06-29  Simon Josefsson  <simon@josefsson.org>
44248
44249         * build-aux/maint.mk (POURL): Use translationproject.org.
44250
44251 2007-06-27  Simon Josefsson  <simon@josefsson.org>
44252             Bruno Haible  <bruno@clisp.org>
44253
44254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
44255         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
44256         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
44257         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
44258         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
44259
44260 2007-06-27  Bruno Haible  <bruno@clisp.org>
44261
44262         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
44263         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
44264
44265 2007-06-26  Karl Berry  <karl@gnu.org>
44266
44267         * MODULES.html.sh: remove xreadlink-with-size.
44268
44269 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
44270
44271         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
44272         method that I hope also handles the double-include problem noted
44273         by Bruno Haible in
44274         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
44275
44276 2007-06-23  Bruno Haible  <bruno@clisp.org>
44277
44278         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44279         Don't let the 'mostlyclean' target fail if the last subdirectory could
44280         not be removed.
44281         Reported by Karl Berry.
44282
44283 2007-06-23  Bruno Haible  <bruno@clisp.org>
44284
44285         * gnulib-tool (echo): Add a speedier workaround for ksh.
44286         * tests/test-echo.sh: Likewise.
44287
44288 2007-06-23  Bruno Haible  <bruno@clisp.org>
44289
44290         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
44291         * tests/test-echo.sh: Likewise.
44292
44293 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44294
44295         * gnulib-tool (IFS): Initialize early, so we don't set it to
44296         empty later.
44297         (self_abspathname): Rewrite algorithm to set it, reindent.
44298         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
44299         (func_create_megatestdir): Merge some sed scripts.
44300
44301 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
44302
44303         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
44304         exposed by Sun Studio 11 cc on Solaris 8.
44305
44306 2007-06-22  Bruno Haible  <bruno@clisp.org>
44307
44308         * gnulib-tool (echo): Ensure the echo primitive does not interpret
44309         backslashes.
44310         * tests/test-echo.sh: New file.
44311
44312 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44313
44314         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
44315         simplify `sed_replace_build_aux' scripts, they are portable but
44316         echoing them with `echo' is not.
44317         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
44318
44319 2007-06-21  Karl Berry  <karl@gnu.org>
44320
44321         * config/srclist.txt: guess we can't handle the licenses via
44322         srclist at the moment.
44323
44324 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
44325
44326         * MODULES.html.sh: Add include_next.
44327         * modules/include_next: New file.
44328
44329 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
44330
44331         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
44332         INCLUDE_NEXT.
44333         (gl_CHECK_NEXT_HEADERS): New macro.
44334         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
44335         the obsolescent gl_ABSOLUTE_HEADER.
44336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
44337         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
44338         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
44339         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44340         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
44341         * m4/math_h.m4 (gl_MATH_H): Likewise.
44342         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44343         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
44344         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
44345         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44346         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
44347         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
44348         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
44349         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44350         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44351         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
44352         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
44353         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44354         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
44355         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44356         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44357         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44358         * m4/inttypes.m4 (gl_INTTYPES_H): Define
44359         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
44360         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
44361         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
44362         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
44363         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
44364         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
44365         * lib/float_.h: Likewise.
44366         * lib/inttypes_.h: Likewise.
44367         * lib/math_.h: Likewise.
44368         * lib/search_.h: Likewise.
44369         * lib/signal_.h: Likewise.
44370         * lib/stdint_.h: Likewise.
44371         * lib/stdio_.h: Likewise.
44372         * lib/stdlib_.h: Likewise.
44373         * lib/string_.h: Likewise.
44374         * lib/sys_stat_.h: Likewise.
44375         * lib/sys_time_.h: Likewise.
44376         * lib/time_.h: Likewise.
44377         * lib/unistd_.h: Likewise.
44378         * lib/wchar_.h: Likewise.
44379         * lib/wctype_.h: Likewise.
44380         * lib/dirent_.h: Likewise.
44381         * lib/iconv_.h: Likewise.
44382         * lib/locale_.h: Likewise.
44383         * lib/netinet_in_.h: Likewise.
44384         * lib/sys_select_.h: Likewise.
44385         * lib/sys_socket_.h: Likewise.
44386         * lib/sysexits_.h: Likewise.
44387         * modules/fcntl (Depends-on): Depend on include_next, not
44388         absolute_header.
44389         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
44390         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
44391         * modules/fchdir: Likewise.
44392         * modules/float: Likewise.
44393         * modules/iconv_open: Likewise.
44394         * modules/inttypes: Likewise.
44395         * modules/locale: Likewise.
44396         * modules/math: Likewise.
44397         * modules/netinet_in: Likewise.
44398         * modules/search: Likewise.
44399         * modules/signal: Likewise.
44400         * modules/stdint: Likewise.
44401         * modules/stdio: Likewise.
44402         * modules/stdlib: Likewise.
44403         * modules/string: Likewise.
44404         * modules/sys_select: Likewise.
44405         * modules/sys_socket: Likewise.
44406         * modules/sys_stat: Likewise.
44407         * modules/sys_time: Likewise.
44408         * modules/sysexits: Likewise.
44409         * modules/time: Likewise.
44410         * modules/unistd: Likewise.
44411         * modules/wchar: Likewise.
44412         * modules/wctype: Likewise.
44413         * modules/sys_stat: Change maintainer to "all".
44414         * modules/unistd: Likewise.
44415
44416 2007-06-20  Karl Berry  <karl@gnu.org>
44417
44418         * config/srclist.txt: track www changes in license files.
44419
44420 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
44421
44422         * build-aux/bootstrap: Remove stray dot.
44423         Make sure build_aux settings are honored when linking
44424         gnulib_extra_files.
44425
44426 2007-06-19  Eric Blake  <ebb9@byu.net>
44427
44428         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
44429         Allow compilation on cygwin.
44430
44431 2007-06-19  Jim Meyering  <jim@meyering.net>
44432
44433         xreadlink-with-size: Remove module.  No longer used.
44434         Ex-callers now use xreadlink or mreadlink-with-size.
44435         * modules/xreadlink-with-size: Remove module.
44436         * lib/xreadlink-with-size.c: Remove file.
44437         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
44438         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
44439         just before the function definition *is* accurate.
44440
44441         Eliminate one way canonicalize_filename_mode could exit.
44442         * lib/canonicalize.c (canonicalize_filename_mode):
44443         Use mreadlink_with_size, not xreadlink_with_size.
44444
44445 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
44446
44447         Detect porting problems to FreeBSD/arm, which has time_t wider than
44448         long int.  Original problem reported for GNU diff by Xin Li in
44449         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
44450         * modules/getdate (Depends-on): Add intprops, verify.
44451         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
44452         is an integer type no wider than long int.
44453
44454 2007-06-18  Jim Meyering  <jim@meyering.net>
44455
44456         New module: mreadlink-with-size.
44457         * MODULES.html.sh: Add mreadlink-with-size.
44458         * modules/mreadlink-with-size: New module
44459         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
44460         not xreadlink-with-size.
44461         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
44462
44463 2007-06-16  Bruno Haible  <bruno@clisp.org>
44464
44465         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
44466         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
44467         Reported by Gary V. Vaughan <gary@gnu.org>.
44468
44469 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
44470
44471         Revamp lchown so that it lives in unistd.h where it belongs.
44472         * lib/lchown.h: Remove.
44473         * lib/dirchownmod.c: Don't include lib/lchown.h.
44474         * lib/fchownat.c: Likewise.
44475         * lib/openat.c: Likewise.
44476         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
44477         does not follow symlinks.
44478         (EOPNOTSUPP): Define if not defined.
44479         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
44480         is defined to 0.
44481         (lchown): New decl.
44482         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
44483         Do not check for lchown decl.
44484         Set REPLACE_LCHOWN.
44485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
44486         REPLACE_LCHOWN.
44487         * modules/chown: Make it clear it follows symlinks.
44488         * modules/lchown: Make it clear it doesn't follow symlinks.
44489         (Files): Remove lib/lchown.h
44490         (Depends-on): Add unistd.
44491         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
44492         (Include): Include <unistd.h>, not "lchown.h".
44493         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
44494         REPLACE_LCHOWN.
44495
44496 2007-06-15  Jim Meyering  <jim@meyering.net>
44497
44498         Change license (GPL to LGPL) of fsusage and dependents.
44499         * modules/fsusage (License): Change to LGPL.
44500         * modules/full-read (License): Likewise.
44501         * modules/full-write (License): Likewise.
44502         * modules/safe-read (License): Likewise.
44503         * modules/safe-write (License): Likewise.
44504
44505 2007-06-14  Ben Pfaff  <blp@gnu.org>
44506
44507         Missing part of allocsa -> malloca transition.
44508         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
44509         gl_MALLOCA.
44510
44511 2007-06-12  Bruno Haible  <bruno@clisp.org>
44512
44513         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
44514         to ia64, x86_64, i386.
44515         Reported by Eric Blake.
44516
44517 2007-06-12  Bruno Haible  <bruno@clisp.org>
44518
44519         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
44520         cross-compiling to x86_64.
44521
44522 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
44523
44524         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
44525         glitch reported by Ralf Wildenhues in
44526         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
44527
44528         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
44529         Vin Shelton.
44530
44531 2007-06-11  Bruno Haible  <bruno@clisp.org>
44532
44533         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
44534         replacement string.
44535         Reported by Eric Blake.
44536
44537 2007-06-10  Bruno Haible  <bruno@clisp.org>
44538
44539         Prepare vasnprintf code for use with Unicode strings.
44540         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
44541         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
44542         TYPE_U32_STRING.
44543         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
44544         a_u32_string variants.
44545         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44546         * lib/printf-args.c: Don't include config.h and the specification
44547         header if PRINTF_FETCHARGS is already defined.
44548         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
44549         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
44550         TYPE_U16_STRING, TYPE_U32_STRING.
44551         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
44552         u16_directive, u16_directives, u32_directive, u32_directives): New
44553         types.
44554         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
44555         New declarations.
44556         * lib/printf-parse.c: Don't include config.h and the specification
44557         header if PRINTF_PARSE is already defined. Eliminate the set of
44558         parameters for WIDE_CHAR_VERSION; the user of this file must provide
44559         them now. Include c-ctype.h.
44560         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
44561         directive and CHAR_T_ONLY_ASCII.
44562         * lib/vasnprintf.c: Don't include config.h and the specification header
44563         if VASNPRINTF is already defined.
44564         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
44565         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
44566         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
44567         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
44568         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
44569         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
44570         code accordingly.
44571         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
44572         pad_ourselves also in this case, with the 'c' and 's' directives, and
44573         with a different notion of "width".
44574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
44575
44576 2007-06-10  Bruno Haible  <bruno@clisp.org>
44577
44578         * modules/unistr/u32-mbsnlen: New file.
44579         * lib/unistr/u32-mbsnlen.c: New file.
44580
44581         * modules/unistr/u16-mbsnlen: New file.
44582         * lib/unistr/u16-mbsnlen.c: New file.
44583
44584         * modules/unistr/u8-mbsnlen: New file.
44585         * lib/unistr/u8-mbsnlen.c: New file.
44586
44587         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
44588         declarations.
44589
44590 2007-06-10  Bruno Haible  <bruno@clisp.org>
44591
44592         * lib/string_.h (mbsnlen): New declaration.
44593         * lib/mbsnlen.c: New file.
44594         * m4/mbsnlen.m4: New file.
44595         * modules/mbsnlen: New file.
44596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
44597         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
44598         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
44599
44600 2007-06-10  Bruno Haible  <bruno@clisp.org>
44601
44602         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
44603
44604 2007-06-10  Bruno Haible  <bruno@clisp.org>
44605
44606         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
44607         * lib/mbuiter.h: Likewise.
44608
44609 2007-06-10  Bruno Haible  <bruno@clisp.org>
44610
44611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
44612         declaration.
44613
44614 2007-06-10  Karl Berry  <karl@gnu.org>
44615
44616         * config/srclist.txt: remove gettext entries, Bruno prefers
44617         to update individually.
44618
44619 2007-06-10  Bruno Haible  <bruno@clisp.org>
44620
44621         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
44622         'maxlen'. Ensure only length + width bytes are allocated, not
44623         length + 1 + width.
44624
44625 2007-06-09  Bruno Haible  <bruno@clisp.org>
44626
44627         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
44628         (CHAR_T): Remove macro.
44629         (VASNPRINTF): Update.
44630
44631 2007-06-09  Bruno Haible  <bruno@clisp.org>
44632
44633         * MODULES.html.sh (Unicode string functions): Add the new modules.
44634
44635         * modules/uniconv/u32-conv-to-enc: New file.
44636         * lib/uniconv/u32-conv-to-enc.c: New file.
44637         * modules/uniconv/u32-conv-to-enc-tests: New file.
44638         * tests/uniconv/test-u32-conv-to-enc.c: New file.
44639
44640         * modules/uniconv/u16-conv-to-enc: New file.
44641         * lib/uniconv/u16-conv-to-enc.c: New file.
44642         * lib/uniconv/u-conv-to-enc.h: New file.
44643         * modules/uniconv/u16-conv-to-enc-tests: New file.
44644         * tests/uniconv/test-u16-conv-to-enc.c: New file.
44645
44646         * modules/uniconv/u8-conv-to-enc: New file.
44647         * lib/uniconv/u8-conv-to-enc.c: New file.
44648         * modules/uniconv/u8-conv-to-enc-tests: New file.
44649         * tests/uniconv/test-u8-conv-to-enc.c: New file.
44650
44651         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44652         u32_conv_to_encoding): New declarations.
44653
44654 2007-06-09  Bruno Haible  <bruno@clisp.org>
44655
44656         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
44657
44658 2007-06-09  Bruno Haible  <bruno@clisp.org>
44659
44660         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
44661         * modules/malloca: Renamed from modules/allocsa, updated.
44662         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
44663         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
44664         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
44665         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
44666         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
44667         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
44668         * modules/xmalloca: Renamed from modules/xallocsa, updated.
44669         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
44670         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
44671         * modules/c-strcasestr (Depends-on): Update.
44672         * lib/c-strcasestr.c: Update.
44673         * modules/c-strstr (Depends-on): Update.
44674         * lib/c-strstr.c: Update.
44675         * modules/canonicalize-lgpl (Depends-on): Update.
44676         * lib/canonicalize-lgpl.c: Update.
44677         * modules/clean-temp (Depends-on): Update.
44678         * lib/clean-temp.c: Update.
44679         * modules/csharpcomp (Depends-on): Update.
44680         * lib/csharpcomp.c: Update.
44681         * modules/csharpexec (Depends-on): Update.
44682         * lib/csharpexec.c: Update.
44683         * modules/javacomp (Depends-on): Update.
44684         * lib/javacomp.c: Update.
44685         * modules/javaexec (Depends-on): Update.
44686         * lib/javaexec.c: Update.
44687         * modules/mbscasestr (Depends-on): Update.
44688         * lib/mbscasestr.c: Update.
44689         * modules/mbsstr (Depends-on): Update.
44690         * lib/mbsstr.c: Update.
44691         * modules/setenv (Depends-on): Update.
44692         * lib/setenv.c: Update.
44693         * modules/strcasestr (Depends-on): Update.
44694         * lib/strcasestr.c: Update.
44695         * modules/striconveha (Depends-on): Update.
44696         * lib/striconveha.c: Update.
44697         * modules/relocatable-prog-wrapper (Files): Update.
44698         * lib/relocwrapper.c: Update.
44699         * build-aux/install-reloc: Update.
44700         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
44701
44702 2007-06-08  Bruno Haible  <bruno@clisp.org>
44703
44704         Port to uClibc.
44705         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
44706         * lib/fpurge.c (fpurge): Likewise.
44707         * lib/freading.c (freading): Likewise.
44708         * lib/fseeko.c (rpl_fseeko): Likewise.
44709         * lib/fseterr.c (fseterr): Likewise.
44710         * lib/fwriting.c (fwriting): Likewise.
44711         * tests/test-fflush.c (main): Avoid a failure on uClibc.
44712
44713 2007-06-08  Bruno Haible  <bruno@clisp.org>
44714
44715         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
44716         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
44717         * modules/gettext (Files): Add m4/intlmacosx.m4.
44718
44719 2007-06-07  Bruno Haible  <bruno@clisp.org>
44720
44721         * modules/localename-tests: New file.
44722         * tests/test-localename.c: New file.
44723
44724         New module 'localename'.
44725         * lib/localename.h: New file.
44726         * lib/localename.c: New file, from GNU gettext.
44727         * m4/localename.m4: New file.
44728         * modules/localename: New file.
44729
44730 2007-06-07  Bruno Haible  <bruno@clisp.org>
44731
44732         Work around the lack of <wchar.h> on some builds of uClibc.
44733         * doc/headers/wchar.texi: Update.
44734         * lib/wchar_.h: Include <wchar.h> only if it exists.
44735         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
44736         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
44737         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
44738         doesn't exist.
44739         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
44740         * modules/mbfile (Depends-on): Add wchar.
44741         * modules/mbiter (Depends-on): Likewise.
44742         * modules/mbuiter (Depends-on): Likewise.
44743         Reported by Simon Josefsson.
44744
44745 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
44746
44747         Work around problem reported by Steven M. Schweda in
44748         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
44749         Tru64 5.1B with the Compaq compiler environment installed declares
44750         an 'isblank' function but does not define it in the C library.
44751         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
44752         * lib/regex_internal.h (isblank): Likewise.
44753         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
44754         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44755
44756 2007-06-05  Bruno Haible  <bruno@clisp.org>
44757
44758         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
44759         ia64.
44760         * modules/printf-safe: New file.
44761         * modules/fprintf-posix (Depends-on): Add printf-safe.
44762         * modules/printf-posix (Depends-on): Likewise.
44763         * modules/snprintf-posix (Depends-on): Likewise.
44764         * modules/sprintf-posix (Depends-on): Likewise.
44765         * modules/vasnprintf-posix (Depends-on): Likewise.
44766         * modules/vasprintf-posix (Depends-on): Likewise.
44767         * modules/vfprintf-posix (Depends-on): Likewise.
44768         * modules/vprintf-posix (Depends-on): Likewise.
44769         * modules/vsnprintf-posix (Depends-on): Likewise.
44770         * modules/vsprintf-posix (Depends-on): Likewise.
44771         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
44772         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
44773         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
44774         "no" on i386, x86_64, ia64.
44775         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
44776         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44777         on i386, x86_64, ia64.
44778         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
44779         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44780         on i386, x86_64, ia64.
44781         * tests/test-vasnprintf-posix.c: Include float.h.
44782         (LDBL80_WORDS): New macro.
44783         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44784         on i386, x86_64, ia64.
44785         * tests/test-vasprintf-posix.c: Include float.h.
44786         (LDBL80_WORDS): New macro.
44787         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
44788         on i386, x86_64, ia64.
44789         * tests/test-snprintf-posix.c: Include float.h.
44790         * tests/test-sprintf-posix.c: Likewise.
44791         * tests/test-vsnprintf-posix.c: Likewise.
44792         * tests/test-vsprintf-posix.c: Likewise.
44793
44794 2007-06-05  Bruno Haible  <bruno@clisp.org>
44795
44796         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
44797         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
44798         non-IEEE numbers on i386, x86_64, ia64.
44799         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
44800         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
44801         * tests/test-isnanl.h: Include float.h.
44802         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
44803
44804 2007-06-05  Bruno Haible  <bruno@clisp.org>
44805
44806         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
44807         also the %a / %A. Handle the %a / %A code before this extra handling.
44808
44809 2007-06-05  Bruno Haible  <bruno@clisp.org>
44810
44811         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
44812         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
44813
44814 2007-06-05  Bruno Haible  <bruno@clisp.org>
44815
44816         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
44817         typo in variable name.
44818
44819 2007-06-05  Eric Blake  <ebb9@byu.net>
44820
44821         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
44822         Reported by Simon Josefsson.
44823
44824 2007-06-04  Bruno Haible  <bruno@clisp.org>
44825
44826         Avoid test failures on some PowerPC platforms.
44827         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
44828         Define differently for PowerPC.
44829         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
44830         Reported by Gary V. Vaughan <gary@gnu.org>.
44831
44832 2007-06-02  Bruno Haible  <bruno@clisp.org>
44833
44834         Fix test-stdint failure on FreeBSD/ia64.
44835         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
44836         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
44837         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
44838         * doc/headers/stdint.texi: Update.
44839
44840 2007-06-01  Bruno Haible  <bruno@clisp.org>
44841
44842         * tests/test-binary-io.c (main): Pass a third argument to open().
44843         Reported by Gary V. Vaughan <gary@gnu.org>.
44844
44845 2007-06-01  Bruno Haible  <bruno@clisp.org>
44846
44847         * doc/functions/frexpl.texi: Update for mingw.
44848
44849 2007-06-01  Bruno Haible  <bruno@clisp.org>
44850
44851         * tests/test-lseek.c (main): Disable test of errno for invalid third
44852         argument.
44853         * doc/functions/lseek.texi: Update.
44854         Reported by Gary V. Vaughan <gary@gnu.org>.
44855
44856 2007-05-28  Bruno Haible  <bruno@clisp.org>
44857
44858         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
44859
44860 2007-05-31  Eric Blake  <ebb9@byu.net>
44861
44862         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
44863         cross compiling.
44864
44865 2007-05-30  Eric Blake  <ebb9@byu.net>
44866         and Bruno Haible  <bruno@clisp.org>
44867
44868         Work around mingw test failures exposed by m4-1.4.9b.
44869         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
44870         * tests/test-unistd.c: Disable uid_t and git_t tests for the
44871         moment.
44872
44873 2007-05-30  Bruno Haible  <bruno@clisp.org>
44874
44875         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
44876         assuming that they are closed. Needed on HP-UX 11.
44877
44878 2007-05-29  Bruno Haible  <bruno@clisp.org>
44879
44880         Fix a problem with #include_next.
44881         * lib/dirent_.h: Split the double-inclusion guard.
44882         * lib/fcntl_.h: Likewise.
44883         * lib/float_.h: Likewise.
44884         * lib/iconv_.h: Likewise.
44885         * lib/inttypes_.h: Likewise.
44886         * lib/locale_.h: Likewise.
44887         * lib/math_.h: Likewise.
44888         * lib/netinet_in_.h: Likewise.
44889         * lib/search_.h: Likewise.
44890         * lib/signal_.h: Likewise.
44891         * lib/stdint_.h: Likewise.
44892         * lib/stdio_.h: Likewise.
44893         * lib/stdlib_.h: Likewise.
44894         * lib/string_.h: Likewise.
44895         * lib/sys_select_.h: Likewise.
44896         * lib/sys_socket_.h: Likewise.
44897         * lib/sys_stat_.h: Likewise.
44898         * lib/sys_time_.h: Likewise.
44899         * lib/sysexits_.h: Likewise.
44900         * lib/time_.h: Likewise.
44901         * lib/unistd_.h: Likewise.
44902         * lib/wchar_.h: Likewise.
44903         * lib/wctype_.h: Likewise.
44904
44905 2007-05-29  Bruno Haible  <bruno@clisp.org>
44906
44907         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
44908         for the moment.
44909
44910 2007-05-29  Bruno Haible  <bruno@clisp.org>
44911
44912         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
44913         invocation.
44914         Reported by Eric Blake.
44915
44916 2007-05-29  Bruno Haible  <bruno@clisp.org>
44917
44918         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
44919         compiling case.
44920
44921 2007-05-29  Eric Blake  <ebb9@byu.net>
44922             Bruno Haible  <bruno@clisp.org>
44923
44924         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
44925         cross compiles.
44926
44927 2007-05-28  Eric Blake  <ebb9@byu.net>
44928
44929         * modules/closein-tests (test_closein_LDADD): Support test on
44930         cygwin with libtool.
44931
44932 2007-05-28  Bruno Haible  <bruno@clisp.org>
44933
44934         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
44935         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44936         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44937         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44938         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44939         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44940         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44941         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44942         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44943
44944 2007-05-28  Eric Blake  <ebb9@byu.net>
44945
44946         Unconditionally include <config.h> in unit tests.
44947         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
44948         * tests/test-allocsa.c, tests/test-arcfour.c,
44949         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
44950         tests/test-array_list.c, tests/test-array_oset.c,
44951         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
44952         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
44953         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
44954         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
44955         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
44956         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
44957         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
44958         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
44959         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
44960         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
44961         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
44962         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
44963         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
44964         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
44965         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
44966         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
44967         test-md5.c, test-memmem.c, test-printf-posix.c,
44968         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
44969         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
44970         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
44971         test-strcasestr.c, test-striconv.c, test-striconveh.c,
44972         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
44973         test-vasnprintf-posix2.c, test-vasnprintf.c,
44974         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
44975         test-vfprintf-posix.c, test-vprintf-posix.c,
44976         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
44977         test-xvasprintf.c: Likewise.
44978
44979 2007-05-28  Bruno Haible  <bruno@clisp.org>
44980
44981         * gnulib-tool (func_import): Remember the --with-tests command-line
44982         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
44983         Reported by Eric Blake.
44984
44985 2007-05-28  Bruno Haible  <bruno@clisp.org>
44986
44987         * modules/ftell-tests: New file.
44988         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
44989         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
44990
44991         * lib/ftell.c: New file.
44992         * modules/ftell: New file.
44993         * m4/ftell.m4: New file.
44994         * doc/functions/ftell.texi: Update.
44995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
44996         REPLACE_FTELL.
44997         * lib/stdio_.h (rpl_ftell): New declaration.
44998         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
44999         REPLACE_FTELL.
45000
45001 2007-05-28  Eric Blake  <ebb9@byu.net>
45002
45003         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
45004
45005 2007-05-28  Bruno Haible  <bruno@clisp.org>
45006
45007         * modules/fseek-tests: New file.
45008         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
45009         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
45010
45011         * lib/fseek.c: New file.
45012         * modules/fseek: New file.
45013         * m4/fseek.m4: New file.
45014         * doc/functions/fseek.texi: Update.
45015         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
45016         REPLACE_FSEEK.
45017         * lib/stdio_.h (rpl_fseek): New declaration.
45018         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
45019         REPLACE_FSEEK.
45020
45021 2007-05-28  Bruno Haible  <bruno@clisp.org>
45022
45023         * lib/stdio_.h (fflush): More comments.
45024
45025 2007-05-28  Bruno Haible  <bruno@clisp.org>
45026
45027         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
45028         runtime test.
45029
45030 2007-05-28  Eric Blake  <ebb9@byu.net>
45031
45032         Improve lseek module.
45033         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
45034         * lib/unistd_.h (lseek): Scale back link warning message.
45035         * tests/test-lseek.c: Beef up test.
45036         * tests/test-lseek.sh: Exercise more facets of lseek.
45037         Reported by Bruno Haible.
45038
45039 2007-05-28  Bruno Haible  <bruno@clisp.org>
45040
45041         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
45042         to define.
45043
45044 2007-05-27  Bruno Haible  <bruno@clisp.org>
45045
45046         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
45047
45048 2007-05-27  Bruno Haible  <bruno@clisp.org>
45049
45050         * modules/openmp: New file.
45051         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
45052         Noah Misch.
45053
45054 2007-05-26  Bruno Haible  <bruno@clisp.org>
45055
45056         * modules/chdir-long (Depends-on): Add fchdir.
45057         * modules/chdir-safer (Depends-on): Likewise.
45058         * modules/fts (Depends-on): Likewise.
45059         * modules/fts-lgpl (Depends-on): Likewise.
45060         * modules/openat (Depends-on): Likewise.
45061         * modules/savewd (Depends-on): Likewise.
45062
45063 2007-05-24  Eric Blake  <ebb9@byu.net>
45064
45065         Fix lseek on mingw.
45066         * modules/lseek: New module.
45067         * m4/lseek.m4: New file.
45068         * lib/lseek.c: New file.
45069         * modules/lseek-tests: New file.
45070         * tests/test-lseek.c: New file.
45071         * tests/test-lseek.sh: New file.
45072         * MODULES.html.sh: Document lseek module.
45073         * modules/fflush (Depends-on): Add lseek, fseeko.
45074         * modules/fseeko (Depends-on): Likewise.
45075         * modules/ftello (Depends-on): Likewise.
45076         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
45077         broken.
45078         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
45079         broken.
45080         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
45081         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
45082         * lib/ftello.c (rpl_ftello): Likewise.
45083         * tests/test-fseeko.c (main): Test this.
45084         * tests/test-fseeko.sh: Likewise.
45085         * tests/test-ftello.c (main): Likewise.
45086         * tests/test-ftello.sh: Likewise.
45087         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
45088         implies replacing fseek.
45089         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
45090         HAVE_FTELLO.
45091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
45092         * modules/unistd (Makefile.am): Likewise.
45093         * lib/unistd_.h (lseek): Declare a replacement.
45094         * doc/functions/lseek.texi (lseek): Document this fix.
45095         * doc/functions/fseek.texi (fseek): Likewise.
45096         * doc/functions/ftell.texi (ftell): Likewise.
45097
45098 2007-05-24  Bruno Haible  <bruno@clisp.org>
45099
45100         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
45101         in the printed representation of a NaN.
45102         * tests/test-vasprintf-posix.c (test_function): Likewise.
45103         * tests/test-snprintf-posix.h (test_function): Likewise.
45104         * tests/test-sprintf-posix.h (test_function): Likewise.
45105         Reported by Eric Blake.
45106
45107 2007-05-23  Eric Blake  <ebb9@byu.net>
45108
45109         Fix fseeko/ftello on cygwin 1.5.24.
45110         * doc/functions/fseeko.texi (fseeko): Document the fix.
45111         * doc/functions/ftello.texi (ftello): Document the fix.
45112         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
45113         * doc/functions/stdout.text (stdout): New file.
45114         * doc/functions/stderr.text (stderr): New file.
45115         * doc/gnulib.texi (Function Substitutes): Use new files.
45116         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
45117         prior to 1.7.0.
45118         * tests/test-ftello.c (main): Likewise for ftello.
45119         * tests/test-fseeko.sh: New file.
45120         * tests/test-ftello.sh: New file.
45121         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
45122         with seekable stdin.
45123         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
45124         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
45125         (gl_REPLACE_FSEEKO): New macro.
45126         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
45127         * modules/fseeko (Files): Distribute fseeko.c.
45128         * modules/ftello (Files): Distribute ftello.c.
45129         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
45130         mode.
45131         * lib/ftello.c (rpl_ftello): New file.
45132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
45133         fseeko, ftello.
45134         (gl_STDIN_LARGE_OFFSET): New macro.
45135         * modules/stdio (Makefile.am): Perform the replacement.
45136         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
45137
45138 2007-05-23  Bruno Haible  <bruno@clisp.org>
45139
45140         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
45141         GNULIB_POSIXCHECK is defined.
45142
45143 2007-05-21  Bruno Haible  <bruno@clisp.org>
45144
45145         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
45146         Check also the output for NaN arguments. When cross-compiling, guess
45147         no on IRIX.
45148         * lib/vasnprintf.c: Update comments.
45149         * tests/test-vasnprintf-posix.c (strisnan): New function.
45150         (test_function): Use it.
45151         * tests/test-vasprintf-posix.c (strisnan): New function.
45152         (test_function): Use it.
45153         * tests/test-snprintf-posix.h (strisnan): New function.
45154         (test_function): Use it.
45155         * tests/test-sprintf-posix.h (strisnan): New function.
45156         (test_function): Use it.
45157         Reported by Eric Blake.
45158
45159 2007-05-20  Bruno Haible  <bruno@clisp.org>
45160
45161         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
45162         numbers that fails on BeOS.
45163         * doc/functions/frexpl.texi: Update.
45164
45165 2007-05-20  Jim Meyering  <jim@meyering.net>
45166
45167         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
45168         forced upon us by glibc-2.6.
45169
45170 2007-05-20  Bruno Haible  <bruno@clisp.org>
45171
45172         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
45173         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
45174         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
45175         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
45176         NEED_PRINTF_INFINITE.
45177         (is_infinitel): New function.
45178         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
45179         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
45180         gl_PREREQ_VASNPRINTF_INFINITE.
45181         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
45182         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45183         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
45184         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
45185         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
45186         gl_PREREQ_VASNPRINTF_INFINITE.
45187         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45188         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45189         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45190         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45191         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45192         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45193         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45194         * doc/functions/fprintf.texi: Update.
45195         * doc/functions/printf.texi: Update.
45196         * doc/functions/snprintf.texi: Update.
45197         * doc/functions/sprintf.texi: Update.
45198         * doc/functions/vfprintf.texi: Update.
45199         * doc/functions/vprintf.texi: Update.
45200         * doc/functions/vsnprintf.texi: Update.
45201         * doc/functions/vsprintf.texi: Update.
45202
45203 2007-05-20  Bruno Haible  <bruno@clisp.org>
45204
45205         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
45206         was not found in libc.
45207         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45208
45209 2007-05-20  Bruno Haible  <bruno@clisp.org>
45210
45211         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
45212         printed as "-nan" instead of "nan".
45213         * tests/test-vasprintf-posix.c (test_function): Likewise.
45214         * tests/test-snprintf-posix.h (test_function): Likewise.
45215         * tests/test-sprintf-posix.h (test_function): Likewise.
45216         Needed for HP-UX 11.
45217
45218 2007-05-20  Jim Meyering  <jim@meyering.net>
45219
45220         Fix buggy test for the fchownat-deref bug.
45221         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
45222         symlink required for the run-test.  Without it, this test would
45223         always declare that fchownat doesn't work, and client code would
45224         unnecessarily use the replacement function with fixed libc.
45225         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
45226         Reported by Greg Schafer.
45227
45228 2007-05-19  Bruno Haible  <bruno@clisp.org>
45229
45230         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
45231         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
45232         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
45233         Needed for IRIX 6.5 and Solaris 2.5.1.
45234
45235 2007-05-19  Bruno Haible  <bruno@clisp.org>
45236
45237         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
45238         (test_function): Skip tests involving -0.0 on platforms where
45239         -0.0 = 0.0.
45240         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
45241         (test_function): Skip tests involving -0.0 on platforms where
45242         -0.0 = 0.0.
45243         * tests/test-snprintf-posix.h (have_minus_zero): New function.
45244         (test_function): Skip tests involving -0.0 on platforms where
45245         -0.0 = 0.0.
45246         * tests/test-sprintf-posix.h (have_minus_zero): New function.
45247         (test_function): Skip tests involving -0.0 on platforms where
45248         -0.0 = 0.0.
45249         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
45250         tests.
45251         * tests/test-printf-posix.h (test_function): Likewise.
45252         * tests/test-printf-posix.output: Remove all -0.0 related results.
45253         Needed for IRIX 6.5.
45254
45255 2007-05-19  Bruno Haible  <bruno@clisp.org>
45256
45257         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
45258         printed as "nan0x7fffffff" instead of "nan".
45259         * tests/test-vasprintf-posix.c (test_function): Likewise.
45260         * tests/test-snprintf-posix.h (test_function): Likewise.
45261         * tests/test-sprintf-posix.h (test_function): Likewise.
45262         * tests/test-fprintf-posix.h (NaN): Remove macro.
45263         (test_function): Remove all NaN related tests.
45264         * tests/test-printf-posix.h (NaN): Remove macro.
45265         (test_function): Remove all NaN related tests.
45266         * tests/test-printf-posix.output: Remove all NaN related results.
45267         Needed for IRIX 6.5.
45268
45269 2007-05-19  Bruno Haible  <bruno@clisp.org>
45270
45271         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
45272         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
45273
45274 2007-05-19  Bruno Haible  <bruno@clisp.org>
45275
45276         * lib/float_.h: New file.
45277         * m4/float_h.m4: New file.
45278         * modules/float: New file.
45279         * modules/isnanl (Dependencies): Add float.
45280         * modules/isnanl-nolibm (Dependencies): Likewise.
45281         * modules/mathl (Dependencies): Likewise.
45282         * modules/printf-frexpl (Dependencies): Likewise.
45283         * modules/signbit (Dependencies): Likewise.
45284         * modules/vasnprintf (Dependencies): Likewise.
45285         * doc/headers/float.texi: Update.
45286
45287 2007-05-19  Jim Meyering  <jim@meyering.net>
45288
45289         * lib/utimens.c (gl_futimens): Rename from futimens,
45290         now that glibc-2.6 declares futimens.
45291         * lib/utimens.h: Likewise.
45292
45293 2007-05-19  Bruno Haible  <bruno@clisp.org>
45294
45295         Avoid test failures on mingw.
45296         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
45297         * tests/test-printf-posix.sh: Likewise.
45298         * tests/test-vfprintf-posix.sh: Likewise.
45299         * tests/test-vprintf-posix.sh: Likewise.
45300
45301 2007-05-19  Bruno Haible  <bruno@clisp.org>
45302
45303         Fix *printf result for NaN, Inf, -0.0 on mingw.
45304         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
45305         * lib/vasnprintf.c: Include math.h and isnan.h.
45306         (is_infinite_or_zero): New function.
45307         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
45308         values in the %f, %F, %e, %E, %g, %G directives.
45309         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
45310         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45311         gl_PRINTF_INFINITE and test its result. Invoke
45312         gl_PREREQ_VASNPRINTF_INFINITE.
45313         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45314         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45316         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45317         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45318         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45319         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45320         * doc/functions/fprintf.texi: Update.
45321         * doc/functions/printf.texi: Update.
45322         * doc/functions/snprintf.texi: Update.
45323         * doc/functions/sprintf.texi: Update.
45324         * doc/functions/vfprintf.texi: Update.
45325         * doc/functions/vprintf.texi: Update.
45326         * doc/functions/vsnprintf.texi: Update.
45327         * doc/functions/vsprintf.texi: Update.
45328
45329 2007-05-19  Bruno Haible  <bruno@clisp.org>
45330
45331         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
45332         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
45333         Instead of multiplying with 10^k, set extra_zeroes to k.
45334         (scale10_round_long_double): Remove function.
45335
45336 2007-05-18  Bruno Haible  <bruno@clisp.org>
45337
45338         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
45339         introduced on 2007-05-06.
45340
45341 2007-05-18  Bruno Haible  <bruno@clisp.org>
45342
45343         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
45344         %g directives.
45345         * tests/test-vasprintf-posix.c (test_function): Likewise.
45346         * tests/test-snprintf-posix.h (test_function): Likewise.
45347         * tests/test-sprintf-posix.h (test_function): Likewise.
45348
45349 2007-05-18  Bruno Haible  <bruno@clisp.org>
45350
45351         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
45352         (strmatch): New function.
45353         (test_function): Test the %f directive on numbers of various exponents.
45354         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
45355         (strmatch): New function.
45356         (test_function): Test the %f directive on numbers of various exponents.
45357         * tests/test-snprintf-posix.h (strmatch): New function.
45358         (test_function): Test the %f directive on numbers of various exponents.
45359         * tests/test-sprintf-posix.h (strmatch): New function.
45360         (test_function): Test the %f directive on numbers of various exponents.
45361         * tests/test-snprintf-posix.c (SIZEOF): New macro.
45362         * tests/test-sprintf-posix.c (SIZEOF): New macro.
45363         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
45364         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
45365
45366 2007-05-18  Bruno Haible  <bruno@clisp.org>
45367
45368         Add support for 'long double' number output.
45369         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
45370         * lib/vasnprintf.c: Include math.h and float+.h.
45371         (mp_limb_t): New type.
45372         (GMP_LIMB_BITS): New macro.
45373         (mp_twolimb_t): New type.
45374         (GMP_TWOLIMB_BITS): New macro.
45375         (mpn_t): New type.
45376         (multiply, divide, convert_to_decimal, decode_long_double,
45377         scale10_round_long_double, scale10_round_decimal_long_double,
45378         floorlog10l): New functions.
45379         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
45380         for the %f, %F, %e, %E, %g, %G directives.
45381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
45382         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45383         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
45384         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
45385         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45386         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45387         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45388         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45389         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45390         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45391         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45392         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
45393         * modules/snprintf-posix (Depends-on): Likewise.
45394         * modules/sprintf-posix (Depends-on): Likewise.
45395         * modules/vasnprintf-posix (Depends-on): Likewise.
45396         * modules/vasprintf-posix (Depends-on): Likewise.
45397         * modules/vfprintf-posix (Depends-on): Likewise.
45398         * modules/vsnprintf-posix (Depends-on): Likewise.
45399         * modules/vsprintf-posix (Depends-on): Likewise.
45400         * modules/vasnprintf (Files): Add lib/float+.h.
45401         * doc/functions/fprintf.texi: Update.
45402         * doc/functions/printf.texi: Update.
45403         * doc/functions/snprintf.texi: Update.
45404         * doc/functions/sprintf.texi: Update.
45405         * doc/functions/vfprintf.texi: Update.
45406         * doc/functions/vprintf.texi: Update.
45407         * doc/functions/vsnprintf.texi: Update.
45408         * doc/functions/vsprintf.texi: Update.
45409
45410 2007-05-18  Bruno Haible  <bruno@clisp.org>
45411
45412         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
45413
45414 2007-05-18  Bruno Haible  <bruno@clisp.org>
45415
45416         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
45417         for printing 64-bit integers. Needed for mingw.
45418
45419 2007-05-18  Bruno Haible  <bruno@clisp.org>
45420
45421         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
45422         gl_FUNC_FREXPL_WORKS.
45423         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
45424
45425 2007-05-18  Bruno Haible  <bruno@clisp.org>
45426
45427         * modules/frexpl-nolibm-tests: New file.
45428
45429         * modules/frexpl-nolibm: New file.
45430         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
45431
45432 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
45433
45434         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
45435         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
45436         GCC 4.2, which otherwise issues a lot of warnings.
45437         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
45438         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
45439         Likewise.
45440         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
45441         * modules/iconv_open (iconv.h): Likewise.
45442         * modules/locale (locale.h): Likewise.
45443         * modules/netinet_in (netinet/in.h): Likewise.
45444         * modules/sys_select (sys_select.h): Likewise.
45445         * modules/sys_socket (sys/socket.h): Likewise.
45446         * modules/sys_stat (sys/stat.h): Likewise.
45447         * modules/sysexits (sysexits.h): Likewise.
45448         * modules/unistd (unistd.h): Likewise.
45449
45450 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45451
45452         * modules/closein-tests (Makefile.am): Distribute
45453         `test-closein.sh'.
45454
45455 2007-05-17  Bruno Haible  <bruno@clisp.org>
45456
45457         * tests/test-printf-posix.output: Renamed from
45458         tests/test-fprintf-posix.out.
45459         * modules/fprintf-posix-tests: Update.
45460         * modules/printf-posix-tests: Update.
45461         * modules/vfprintf-posix-tests: Update.
45462         * modules/vprintf-posix-tests: Update.
45463         * tests/test-fprintf-posix.sh: Update.
45464         * tests/test-printf-posix.sh: Update.
45465         * tests/test-vfprintf-posix.sh: Update.
45466         * tests/test-vprintf-posix.sh: Update.
45467         Reported by Ralf Wildenhues.
45468
45469 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
45470
45471         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
45472         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
45473         GCC 4.2, which otherwise issues a lot of warnings.
45474         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
45475         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
45476         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
45477         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
45478         it should no longer be needed.
45479         * lib/string_.h: Likewise.
45480         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
45481         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
45482         * modules/inttypes (inttypes.h): Likewise.
45483         * modules/math (math.h): Likewise.
45484         * modules/search (search.h): Likewise.
45485         * modules/signal (signal.h): Likewise.
45486         * modules/stdint (stdint.h): Likewise.
45487         * modules/stdio (stdio.h): Likewise.
45488         * modules/stdlib (stdlib.h): Likewise.
45489         * modules/string (string.h): Likewise.
45490         * modules/sys_time (sys/time.h): Likewise.
45491         * modules/time (time.h): Likewise.
45492         * modules/wchar (wchar.h): Likewise.
45493         * modules/wctype (wtype.h): Likewise.
45494
45495 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45496
45497         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
45498
45499 2007-05-13  Bruno Haible  <bruno@clisp.org>
45500
45501         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
45502         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45503         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
45504         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45505         (gl_PREREQ_STRTOK_R): Don't require it here.
45506
45507 2007-05-13  Bruno Haible  <bruno@clisp.org>
45508
45509         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
45510         when used in C++ mode.
45511
45512 2007-05-12  Bruno Haible  <bruno@clisp.org>
45513
45514         * lib/linebuffer.h: Tweak doc.
45515         * lib/linebuffer.c: Likewise.
45516
45517 2007-05-12  James Youngman  <jay@gnu.org>
45518
45519         * lib/linebuffer.c (readlinebuffer_delim): New function,
45520         like readlinebuffer, but use a caller-specified delimiter.
45521         (readlinebuffer): Just call readlinebuffer_delim with '\n'
45522         as the delimiter.
45523         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
45524
45525 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45526
45527         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
45528         * modules/openat (Files): Remove openat-die.c.
45529         (Depends-on): Add openat-die.
45530         * modules/openat-die: New module.
45531
45532 2007-05-06  Bruno Haible  <bruno@clisp.org>
45533
45534         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
45535         Update with info about Cygwin.
45536         * doc/functions/fprintf.texi: Update.
45537         * doc/functions/printf.texi: Update.
45538         * doc/functions/snprintf.texi: Update.
45539         * doc/functions/sprintf.texi: Update.
45540         * doc/functions/vfprintf.texi: Update.
45541         * doc/functions/vprintf.texi: Update.
45542         * doc/functions/vsnprintf.texi: Update.
45543         * doc/functions/vsprintf.texi: Update.
45544         Reported by Eric Blake.
45545
45546 2007-05-06  Bruno Haible  <bruno@clisp.org>
45547
45548         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
45549         padding ourselves for the floating-point directives.
45550         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
45551         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
45552         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45553         gl_PRINTF_FLAG_ZERO and test its result. Invoke
45554         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
45555         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45556         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45557         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45559         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45560         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45561         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45562         * tests/test-snprintf-posix.h (test_function): Also check the width
45563         and some flags in the %f directive.
45564         * tests/test-sprintf-posix.h (test_function): Likewise.
45565         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45566         * tests/test-vasprintf-posix.c (test_function): Likewise.
45567         * doc/functions/fprintf.texi: Update.
45568         * doc/functions/printf.texi: Update.
45569         * doc/functions/snprintf.texi: Update.
45570         * doc/functions/sprintf.texi: Update.
45571         * doc/functions/vfprintf.texi: Update.
45572         * doc/functions/vprintf.texi: Update.
45573         * doc/functions/vsnprintf.texi: Update.
45574         * doc/functions/vsprintf.texi: Update.
45575
45576 2007-05-06  Bruno Haible  <bruno@clisp.org>
45577
45578         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
45579         pass the ' flag character to sprintf or snprintf.
45580         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
45581         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
45582         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45583         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
45584         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
45585         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45586         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
45587         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45588         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45589         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45590         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45591         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45592         * tests/test-snprintf-posix.h (test_function): Also check the grouping
45593         flag.
45594         * tests/test-sprintf-posix.h (test_function): Likewise.
45595         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45596         * tests/test-vasprintf-posix.c (test_function): Likewise.
45597         * doc/functions/fprintf.texi: Update.
45598         * doc/functions/printf.texi: Update.
45599         * doc/functions/snprintf.texi: Update.
45600         * doc/functions/sprintf.texi: Update.
45601         * doc/functions/vfprintf.texi: Update.
45602         * doc/functions/vprintf.texi: Update.
45603         * doc/functions/vsnprintf.texi: Update.
45604         * doc/functions/vsprintf.texi: Update.
45605
45606 2007-05-01  Bruno Haible  <bruno@clisp.org>
45607
45608         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
45609
45610 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
45611
45612         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
45613         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
45614
45615 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45616
45617         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
45618         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
45619         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
45620
45621 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
45622
45623         * lib/argp-help.c (struct hol_entry): New member `ord'.
45624         (HOL_ENTRY_PTRCMP): Use ord for comparison
45625         (hol_sort): Initialize ord.
45626
45627 2007-05-01  Bruno Haible  <bruno@clisp.org>
45628
45629         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
45630         Reported by Eric Blake.
45631         * doc/gnulib.texi (Function Substitutes): Update.
45632
45633 2007-05-01  Bruno Haible  <bruno@clisp.org>
45634
45635         * doc/functions.texi: Remove file, now redundant through
45636         doc/functions/*.texi.
45637
45638 2007-05-01  Bruno Haible  <bruno@clisp.org>
45639
45640         * modules/argp (Depends-on): Add sleep.
45641
45642 2007-05-01  Bruno Haible  <bruno@clisp.org>
45643
45644         * modules/sleep-tests: New file.
45645         * tests/test-sleep.c: New file.
45646
45647         * modules/sleep: New file.
45648         * lib/sleep.c: New file.
45649         * m4/sleep.m4: New file.
45650         * lib/unistd_.h (sleep): New declaration.
45651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
45652         HAVE_SLEEP.
45653         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
45654         * doc/functions/sleep.texi: Document the sleep module.
45655
45656 2007-05-01  Bruno Haible  <bruno@clisp.org>
45657
45658         * lib/sigprocmask.h: Remove file.
45659         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
45660         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
45661         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
45662         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
45663         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
45664         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
45665         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
45666         HAVE_SIGSET_T as a shell variable.
45667         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
45668         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
45669         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
45670         (Depends-on): Add signal. Remove verify.
45671         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
45672         (Include): Mention <signal.h> instead of sigprocmask.h.
45673         * NEWS: Mention the change.
45674         * lib/fatal-signal.c: Don't include sigprocmask.h.
45675
45676 2007-05-01  Bruno Haible  <bruno@clisp.org>
45677
45678         * modules/signal: New file.
45679         * lib/signal_.h: New file.
45680         * m4/signal_h.m4: New file.
45681
45682 2007-05-01  Bruno Haible  <bruno@clisp.org>
45683
45684         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
45685         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
45686         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
45687         HAVE_WCTYPE_CTMP_BUG into wctype.h.
45688
45689 2007-05-01  Bruno Haible  <bruno@clisp.org>
45690
45691         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
45692         configure time.
45693         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
45694         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
45695         * modules/sys_stat (Makefile.am): Substitute their values into
45696         sys/stat.h.
45697
45698 2007-05-01  Bruno Haible  <bruno@clisp.org>
45699
45700         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
45701         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
45702         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
45703
45704 2007-05-01  Bruno Haible  <bruno@clisp.org>
45705
45706         * doc/header/assert.texi: Undo last change: don't mention the gnulib
45707         'assert' module here.
45708
45709 2007-05-01  Bruno Haible  <bruno@clisp.org>
45710
45711         * doc/functions/*.texi: New files.
45712         * doc/functions/google-ranking.txt: New file.
45713         * doc/gnulib.texi (Function Substitutes): New chapter.
45714         (ctime, inet_ntoa): Remove sections.
45715         * doc/ctime.texi: Remove file.
45716         * doc/inet_ntoa.texi: Remove file.
45717         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
45718         dependencies.
45719         (%.info): New rule, specifying a --reference-limit.
45720
45721 2007-05-01  Bruno Haible  <bruno@clisp.org>
45722
45723         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
45724
45725 2007-05-01  Bruno Haible  <bruno@clisp.org>
45726
45727         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
45728         the portability of 'mkdir' to mingw systems.
45729
45730 2007-05-01  Bruno Haible  <bruno@clisp.org>
45731
45732         * doc/headers/google-ranking.txt: New file.
45733
45734 2007-04-30  Eric Blake  <ebb9@byu.net>
45735
45736         Prefer fseeko to fseek.
45737         * modules/getpass (Depends-on): Add fseeko.
45738         * lib/getpass.c (getpass): Use fseeko, not fseek.
45739
45740 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
45741
45742         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
45743         assumes the sorting is stable, while most qsort implementations
45744         are not.  Use argument addresses to ensure they never compare as
45745         equal.
45746
45747         * tests/test-argp-2.sh (usage-indent test): Fix output
45748         (func_compare): Restore diff options
45749         * tests/test-argp.c: Restore #include "progname.h"
45750
45751 2007-04-29  Bruno Haible  <bruno@clisp.org>
45752
45753         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
45754         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
45755         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
45756         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45757         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
45758         (configure.ac): Define CHECK_SNPRINTF_POSIX.
45759         (TESTS, check_PROGRAMS): Add test-snprintf.
45760         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
45761         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
45762         (TESTS, check_PROGRAMS): Add test-vsnprintf.
45763         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
45764         assertions that fail on HP-UX, OSF/1, or IRIX.
45765         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
45766
45767 2007-04-29  Bruno Haible  <bruno@clisp.org>
45768
45769         * MODULES.html.sh (posix_functions): Remove 'contents'.
45770
45771 2007-04-29  Karl Berry  <karl@gnu.org>
45772
45773         * config/srclist.txt (gendocs_template_min): new entry.
45774
45775 2007-04-29  Bruno Haible  <bruno@clisp.org>
45776
45777         Work around fpurge bug on BSD systems.
45778         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
45779         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
45780         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
45781         fpurge to rpl_fpurge if the system already has this function.
45782         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
45783         the case where the system already has this function. Correct invariants
45784         on BSD systems.
45785         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
45786         BSD systems.
45787
45788 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45789
45790         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
45791         proposed by Sven Verdoolaege.
45792
45793         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
45794         options.
45795         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
45796         (usage and help tests): Update
45797
45798 2007-04-29  Bruno Haible  <bruno@clisp.org>
45799
45800         * tests/test-fflush.c (main): Use a file of size 17, not 10.
45801         Print more information in case of failure. Disable a test on BeOS.
45802
45803 2007-04-29  Bruno Haible  <bruno@clisp.org>
45804
45805         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
45806         This helps debugging on systems on which no gdb is available.
45807
45808 2007-04-29  Bruno Haible  <bruno@clisp.org>
45809
45810         * lib/freading.h: Improve comments.
45811         * lib/fwriting.h: Likewise.
45812         * tests/test-freading.c (main): Don't check freading immediately after
45813         repositioning. Needed for glibc.
45814
45815 2007-04-29  Bruno Haible  <bruno@clisp.org>
45816
45817         * lib/freading.c (freading): Trivial simplification.
45818
45819 2007-04-28  Bruno Haible  <bruno@clisp.org>
45820
45821         * tests/test-fwriting.c (main): Also test the interaction between
45822         fflush and fwriting.
45823         * modules/fwriting-tests (Depends-on): Add fflush.
45824
45825         * tests/test-freading.c (main): Also test the interaction between
45826         fflush and freading.
45827         * modules/freading-tests (Depends-on): Add fflush.
45828
45829 2007-04-28  Bruno Haible  <bruno@clisp.org>
45830
45831         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
45832         fseeko and ftello.
45833         Suggested by Eric Blake.
45834
45835 2007-04-28  Jim Meyering  <jim@meyering.net>
45836
45837         Avoid false-negative in gl_STDINT_H's C99 conformance test.
45838         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
45839         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
45840
45841 2007-04-27  Eric Blake  <ebb9@byu.net>
45842
45843         * doc/headers/assert.texi (assert.h): Document assert module use.
45844
45845 2007-04-27  Bruno Haible  <bruno@clisp.org>
45846
45847         * doc/headers/*.texi: New files.
45848         * doc/gnulib.texi (Header File Substitutes): New chapter.
45849         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
45850         dependencies.
45851         (standards.info ,standards.html, standards.dvi): Update dependencies.
45852         (mostlyclean, clean): New targets.
45853
45854 2007-04-27  Bruno Haible  <bruno@clisp.org>
45855
45856         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
45857         * modules/sysexits (Files, Makefile.am): Update.
45858
45859         * lib/sys_socket_.h: Renamed from lib/socket_.h.
45860         * modules/sys_socket (Files, Makefile.am): Update.
45861
45862         * lib/sys_stat_.h: Renamed from lib/stat_.h.
45863         * modules/sys_stat (Files, Makefile.am): Update.
45864
45865 2007-04-27  Eric Blake  <ebb9@byu.net>
45866
45867         * lib/freading.h: Improve comments.
45868         * lib/fwriting.h: Likewise.
45869         * lib/fflush.c: Likewise.
45870
45871         Fix closein for mingw.
45872         * modules/closein-tests: Add tests for closein.
45873         * tests/test-closein.c: New file.
45874         * tests/test-closein.sh: Likewise.
45875         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
45876         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
45877
45878 2007-04-27  Bruno Haible  <bruno@clisp.org>
45879
45880         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
45881         version is < 6.
45882         * lib/math_.h [__DECC]: Likewise.
45883         * lib/stdio_.h [__DECC]: Likewise.
45884         * lib/stdlib_.h [__DECC]: Likewise.
45885         * lib/string_.h [__DECC]: Likewise.
45886         * lib/time_.h [__DECC]: Likewise.
45887         * lib/wchar_.h [__DECC]: Likewise.
45888         * lib/wctype_.h [__DECC]: Likewise.
45889
45890 2007-04-27  Bruno Haible  <bruno@clisp.org>
45891
45892         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
45893
45894 2007-04-27  Bruno Haible  <bruno@clisp.org>
45895
45896         * lib/fflush.c: Add comments.
45897         * modules/fpurge-tests (Depends-on): Add fflush.
45898         * modules/freadable-tests (Depends-on): Likewise.
45899         * modules/fwritable-tests (Depends-on): Likewise.
45900
45901 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
45902
45903         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
45904         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
45905         Report by Bruno Haible <bruno@clisp.org>.
45906
45907 2007-04-26  Eric Blake  <ebb9@byu.net>
45908
45909         Fix fflush on mingw.
45910         * modules/fflush (Depends-on): Add freading.
45911         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
45912         but unread data.
45913
45914 2007-04-26  Eric Blake  <ebb9@byu.net>
45915         and Bruno Haible  <bruno@clisp.org>
45916
45917         Implement freading and fwriting.
45918         * lib/freading.c: New file.
45919         * lib/freading.h: Likewise.
45920         * m4/freading.m4: Likewise.
45921         * modules/freading: Likewise.
45922         * modules/freading-tests: Likewise.
45923         * tests/test-freading.c: Likewise.
45924         * lib/fwriting.c: New file.
45925         * lib/fwriting.h: Likewise.
45926         * m4/fwriting.m4: Likewise.
45927         * modules/fwriting: Likewise.
45928         * modules/fwriting-tests: Likewise.
45929         * tests/test-fwriting.c: Likewise.
45930         * MODULES.html.sh (File stream based Input/Output): Mention them.
45931
45932 2007-04-26  Bruno Haible  <bruno@clisp.org>
45933
45934         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
45935         'long' when we assume it.
45936         Suggested by Eric Blake.
45937
45938 2007-04-26  Bruno Haible  <bruno@clisp.org>
45939
45940         Ensure fseeko, ftello are declared on glibc systems.
45941         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
45942         * modules/fseeko (configure.ac-early): Likewise.
45943         * modules/ftello (configure.ac-early): Likewise.
45944         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
45945         AC_FUNC_FSEEKO for this.
45946         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
45947         (gl_CHECK_FSEEKO): Remove macro.
45948
45949 2007-04-26  Bruno Haible  <bruno@clisp.org>
45950
45951         * tests/test-fflush.c (main): Also check the ftell result after
45952         fflush and fseek/fseeko.
45953         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
45954         file descriptor position cache in the stream.
45955         * lib/fseeko.c (rpl_fseeko): Likewise.
45956
45957 2007-04-26  Bruno Haible  <bruno@clisp.org>
45958
45959         * modules/fflush-tests (Depends-on): Add fseeko.
45960
45961 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
45962             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45963
45964         * lib/argz_.h: ensure error_t definition is obtained in same
45965         mechanism system argz.h would have.
45966         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
45967         argz facilities are known bad.  Err on the side of caution if
45968         cross-compiling.
45969
45970 2007-04-25  Eric Blake  <ebb9@byu.net>
45971
45972         * lib/fpurge.c (includes): Use stdlib.h for free.
45973         * tests/test-fflush.c (main): Also test fflush-fseeko.
45974
45975 2007-04-25  Bruno Haible  <bruno@clisp.org>
45976
45977         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
45978         * lib/fseeko.c: New file.
45979         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
45980         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
45981         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
45982         gl_FUNC_FSEEKO.
45983         (gl_FUNC_FSEEKO): Invoke it.
45984         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
45985         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
45986         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
45987
45988 2007-04-25  Bruno Haible  <bruno@clisp.org>
45989
45990         * modules/fflush (Depends-on): Add ftello.
45991
45992 2007-04-25  Bruno Haible  <bruno@clisp.org>
45993
45994         * modules/ftello-tests: New file.
45995         * tests/test-ftello.c: New file.
45996
45997         * modules/ftello: New file.
45998         * m4/ftello.m4: New file.
45999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
46000         HAVE_FTELLO.
46001         * lib/stdio_.h (ftello): New declaration.
46002         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
46003         HAVE_FTELLO.
46004
46005 2007-04-25  Bruno Haible  <bruno@clisp.org>
46006
46007         * modules/fseeko-tests: New file.
46008         * tests/test-fseeko.c: New file.
46009
46010         * modules/fseeko: New file.
46011         * m4/fseeko.m4: New file.
46012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
46013         HAVE_FSEEKO.
46014         * lib/stdio_.h (fseeko): New declaration.
46015         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
46016         HAVE_FSEEKO.
46017
46018 2007-04-25  Bruno Haible  <bruno@clisp.org>
46019
46020         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
46021
46022 2007-04-25  Bruno Haible  <bruno@clisp.org>
46023
46024         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
46025         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
46026         * tests/test-unistd.c: Likewise.
46027         * tests/test-fcntl.c: Likewise.
46028
46029 2007-04-23  Eric Blake  <ebb9@byu.net>
46030
46031         * lib/fflush.c: Fix missing include.
46032         Reported by Bruno Haible.
46033
46034 2007-04-23  Bruno Haible  <bruno@clisp.org>
46035
46036         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
46037         Reported by Eric Blake.
46038
46039 2007-04-23  Bruno Haible  <bruno@clisp.org>
46040
46041         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
46042
46043 2007-04-23  Bruno Haible  <bruno@clisp.org>
46044
46045         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
46046
46047 2007-04-23  Bruno Haible  <bruno@clisp.org>
46048
46049         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
46050         Needed on HP-UX 11.
46051
46052 2007-04-16  Eric Blake  <ebb9@byu.net>
46053
46054         Make fflush rely on fpurge.
46055         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
46056         open coding all variants.
46057         * modules/fflush (Depends-on): Add fpurge and unistd.
46058         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
46059         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
46060
46061         Fix --with-tests compilation on cygwin.
46062         * modules/argmatch-tests (Makefile.am): List gnulib library first
46063         in LDADD.
46064         * modules/argp-tests (Makefile.am): Likewise.
46065         * modules/array-list-tests (Makefile.am): Likewise.
46066         * modules/array-oset-tests (Makefile.am): Likewise.
46067         * modules/avltree-list-tests (Makefile.am): Likewise.
46068         * modules/avltree-oset-tests (Makefile.am): Likewise.
46069         * modules/avltreehash-list-tests (Makefile.am): Likewise.
46070         * modules/carray-list-tests (Makefile.am): Likewise.
46071         * modules/dirname-tests (Makefile.am): Likewise.
46072         * modules/frexp-tests (Makefile.am): Likewise.
46073         * modules/isnanl-tests (Makefile.am): Likewise.
46074         * modules/linked-list-tests (Makefile.am): Likewise.
46075         * modules/linkedhash-list-tests (Makefile.am): Likewise.
46076         * modules/lock-tests (Makefile.am): Likewise.
46077         * modules/rbtree-list-tests (Makefile.am): Likewise.
46078         * modules/rbtree-oset-tests (Makefile.am): Likewise.
46079         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
46080         * modules/tls-tests (Makefile.am): Likewise.
46081         * modules/tsearch-tests (Makefile.am): Likewise.
46082         * modules/xvasprintf-tests (Makefile.am): Likewise.
46083
46084         Fix fpurge for cygwin.
46085         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
46086         value.
46087         * modules/fpurge-tests (Depends-on): Clean up trash.
46088
46089 2007-04-16  Simon Josefsson  <simon@josefsson.org>
46090
46091         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
46092
46093         * m4/autobuild.m4: Re-indent.
46094
46095 2007-04-13  Bruno Haible  <bruno@clisp.org>
46096
46097         * modules/fpurge-tests: New file.
46098         * tests/test-fpurge.c: New file.
46099
46100         * modules/fpurge: New file.
46101         * lib/fpurge.h: New file.
46102         * lib/fpurge.c: New file.
46103         * m4/fpurge.m4: New file.
46104
46105 2007-04-13  Bruno Haible  <bruno@clisp.org>
46106
46107         * modules/fbufmode-tests: New file.
46108         * tests/test-fbufmode.c: New file.
46109
46110         * modules/fbufmode: New file.
46111         * lib/fbufmode.h: New file.
46112         * lib/fbufmode.c: New file.
46113         * m4/fbufmode.m4: New file.
46114
46115 2007-04-13  Bruno Haible  <bruno@clisp.org>
46116
46117         * modules/fwritable-tests: New file.
46118         * tests/test-fwritable.c: New file.
46119
46120         * modules/fwritable: New file.
46121         * lib/fwritable.h: New file.
46122         * lib/fwritable.c: New file.
46123         * m4/fwritable.m4: New file.
46124
46125 2007-04-13  Bruno Haible  <bruno@clisp.org>
46126
46127         * modules/freadable-tests: New file.
46128         * tests/test-freadable.c: New file.
46129
46130         * modules/freadable: New file.
46131         * lib/freadable.h: New file.
46132         * lib/freadable.c: New file.
46133         * m4/freadable.m4: New file.
46134
46135 2007-04-13  Bruno Haible  <bruno@clisp.org>
46136
46137         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
46138         MOSTLYCLEANFILES.
46139
46140 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46141
46142         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
46143         gzip bootstrap.conf to avoid dragging in i18n machinery.
46144         (gnulib_tool_option): Use it.
46145
46146 2007-04-13  Bruno Haible  <bruno@clisp.org>
46147
46148         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
46149         %F directives.
46150         * tests/test-vasprintf-posix.c (test_function): Likewise.
46151         * tests/test-snprintf-posix.h (test_function): Likewise.
46152         * tests/test-sprintf-posix.h (test_function): Likewise.
46153         * tests/test-fprintf-posix.h (test_function): Likewise.
46154         * tests/test-printf-posix.h (test_function): Likewise.
46155         * tests/test-fprintf-posix.out: Likewise.
46156
46157 2007-04-13  Bruno Haible  <bruno@clisp.org>
46158
46159         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
46160         * modules/tls-tests (configure.ac): Likewise.
46161         Reported by Arto C. Nirkko <anirkko@insel.ch>.
46162
46163 2007-04-13  Bruno Haible  <bruno@clisp.org>
46164
46165         * lib/tls.c (glthread_tls_get): Fix return type.
46166         Patch by Arto C. Nirkko <anirkko@insel.ch>.
46167
46168 2007-04-12  Eric Blake  <ebb9@byu.net>
46169
46170         * modules/gettime (Depends-on): Remove gettime.
46171         Reported by Dmitry V. Levin.
46172
46173 2007-04-12  Bruno Haible  <bruno@clisp.org>
46174
46175         * modules/fflush (Include): Mention <stdio.h>.
46176         * modules/strtoimax (Include): Mention <inttypes.h>.
46177         * modules/strtoumax (Include): Likewise.
46178
46179 2007-04-12  Eric Blake  <ebb9@byu.net>
46180
46181         * .cvsignore: New file.
46182         * .gitignore: Likewise.
46183
46184 2007-04-12  Bruno Haible  <bruno@clisp.org>
46185
46186         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
46187         not before, since $(LDADD) often contains libgnu.a.
46188         * modules/striconv-tests (test_striconv_LDADD): Likewise.
46189         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
46190         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
46191         Needed on Cygwin.
46192
46193 2007-04-12  Eric Blake  <ebb9@byu.net>
46194
46195         Work around glibc's failure to flush stdin on fclose.
46196         * lib/closein.c (close_stdin): Flush stdin before closing.
46197
46198         Work around glibc's failure to reset seekable stdin on exit.
46199         * modules/closein: New module.
46200         * lib/closein.c: New file.
46201         * lib/closein.h: Likewise.
46202         * m4/closein.m4: Likewise.
46203         * MODULES.html.sh (File stream based Input/Output): Document it.
46204
46205 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46206
46207         * gnulib-tool: Rename generated 'autobuild' script to
46208         'do-autobuild' in --create-megatestdir output.
46209
46210         * doc/gnulib.texi (Build robot for gnulib): Fix.
46211
46212 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46213
46214         * modules/sysexits (Depends-on): Add absolute-header.
46215
46216 2007-04-12  Eric Blake  <ebb9@byu.net>
46217
46218         No need to preserve errno on success.
46219         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
46220         Reported by Bruno Haible.
46221
46222 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46223
46224         * MODULES.html.sh (Support for maintaining and releasing
46225         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
46226
46227 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46228
46229         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
46230
46231 2007-04-12  Simon Josefsson  <simon@josefsson.org>
46232
46233         * modules/autobuild: New module.
46234
46235         * m4/autobuild.m4: New file.
46236
46237 2007-04-11  Bruno Haible  <bruno@clisp.org>
46238
46239         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
46240         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
46241         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
46242         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
46243         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46244         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46245         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46246         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46247         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46248         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46249         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
46250         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46251         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46252         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
46253         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46254         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46255         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
46256         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46257         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46258         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
46259         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46260         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
46262         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46263         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46264         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
46265         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
46266         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
46267         Reported by Eric Blake.
46268
46269 2007-04-11  Bruno Haible  <bruno@clisp.org>
46270
46271         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
46272
46273 2007-04-10  Bruno Haible  <bruno@clisp.org>
46274
46275         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
46276         for NaN and Infinity. Needed on FreeBSD 6.1.
46277         * tests/test-vasnprintf-posix.c (test_function): Undo last change
46278         regarding results for "%010a" of Infinity and NaN.
46279         * tests/test-vasprintf-posix.c (test_function): Likewise.
46280         * tests/test-snprintf-posix.h (test_function): Likewise.
46281         * tests/test-sprintf-posix.h (test_function): Likewise.
46282         * tests/test-fprintf-posix.h (test_function): Likewise.
46283         * tests/test-printf-posix.h (test_function): Likewise.
46284         * tests/test-fprintf-posix.out: Likewise.
46285
46286 2007-04-10  Bruno Haible  <bruno@clisp.org>
46287
46288         * modules/locale-tests: New file.
46289         * tests/test-locale.c: New file.
46290
46291         * modules/locale: New file.
46292         * lib/locale_.h: New file.
46293         * m4/locale_h.m4: New file.
46294
46295 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
46296             Bruno Haible  <bruno@clisp.org>
46297
46298         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
46299         be determined, test for availability of the copysignf, copysign,
46300         copysignl functions.
46301         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
46302         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
46303         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
46304
46305 2007-04-09  Eric Blake  <ebb9@byu.net>
46306
46307         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
46308         * modules/stdio (Makefile.am): Support fflush.
46309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46310         * modules/fflush: New file.
46311         * lib/fflush.c: Likewise.
46312         * m4/fflush.m4: Likewise.
46313         * modules/fflush-tests: New test.
46314         * tests/test-fflush.c: Likewise.
46315         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
46316
46317 2007-04-06  Bruno Haible  <bruno@clisp.org>
46318
46319         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
46320         (VASNPRINTF): Use signbit for faster determination whether to print a
46321         minus sign.
46322         * modules/vasnprintf (Files): Remove lib/float+.h.
46323         * modules/fprintf-posix (Depends-on): Add signbit.
46324         * modules/snprintf-posix (Depends-on): Likewise.
46325         * modules/sprintf-posix (Depends-on): Likewise.
46326         * modules/vasnprintf-posix (Depends-on): Likewise.
46327         * modules/vasprintf-posix (Depends-on): Likewise.
46328         * modules/vfprintf-posix (Depends-on): Likewise.
46329         * modules/vsnprintf-posix (Depends-on): Likewise.
46330         * modules/vsprintf-posix (Depends-on): Likewise.
46331
46332 2007-04-06  Bruno Haible  <bruno@clisp.org>
46333
46334         * tests/test-frexp.c (main): Test also the sign bit of zero results.
46335         * tests/test-frexpl.c (main): Likewise.
46336         * tests/test-ldexpl.c (main): Likewise.
46337         * modules/frexp-tests (Depends-on): Add signbit.
46338         * modules/frexpl-tests (Depdends-on): Likewise.
46339         * modules/ldexpl-tests (Depdends-on): Likewise.
46340
46341 2007-04-06  Bruno Haible  <bruno@clisp.org>
46342
46343         * modules/signbit-tests: New file.
46344         * tests/test-signbit.c: New file.
46345
46346         * modules/signbit: New file.
46347         * lib/signbitf.c: New file.
46348         * lib/signbitd.c: New file.
46349         * lib/signbitl.c: New file.
46350         * m4/signbit.m4: New file.
46351         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
46352         (signbit): New macro.
46353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
46354         REPLACE_SIGNBIT.
46355         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
46356         REPLACE_FREXPL into math.h.
46357
46358 2007-04-06  Bruno Haible  <bruno@clisp.org>
46359
46360         * modules/isnanf-nolibm-tests: New file.
46361         * tests/test-isnanf.c: New file.
46362
46363         * modules/isnanf-nolibm: New file.
46364         * lib/isnanf.h: New file.
46365         * lib/isnanf.c: New file.
46366         * lib/isnan.c: Consider the USE_FLOAT macro.
46367         * m4/isnanf.m4: New file.
46368
46369 2007-04-06  Bruno Haible  <bruno@clisp.org>
46370
46371         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
46372         (Link): New section.
46373
46374         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
46375
46376 2007-04-06  Bruno Haible  <bruno@clisp.org>
46377
46378         Assume the 'long double' type.
46379         * m4/longdouble.m4: Remove file.
46380         * config/srclist.txt: Don't mention longdouble.m4.
46381         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
46382         * lib/float+.h: Likewise.
46383         * lib/frexp.c: Likewise.
46384         * lib/printf-args.h: Likewise.
46385         * lib/printf-args.c: Likewise.
46386         * lib/printf-frexp.c: Likewise.
46387         * lib/printf-parse.c: Likewise.
46388         * lib/vasnprintf.c: Likewise.
46389         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
46390         * m4/intl.m4: Likewise.
46391         * m4/isnanl.m4: Likewise.
46392         * m4/printf.m4: Likewise.
46393         * m4/printf-frexpl.m4: Likewise.
46394         * m4/vasnprintf.m4: Likewise.
46395         * modules/allocsa (Files): Remove m4/longdouble.m4.
46396         * modules/gettext (Files): Likewise.
46397         * modules/relocatable-prog-wrapper (Files): Likewise.
46398         * modules/vasnprintf (Files): Likewise.
46399         * modules/isnanl (Files): Likewise.
46400         (Include): Simplify.
46401         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
46402         (Include): Simplify.
46403         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
46404         (Include): Simplify.
46405         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
46406         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46407         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
46408         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46409         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
46410         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46411         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
46412         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46413         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
46414         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46415         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
46416         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
46417         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
46418         * tests/test-isnanl.c: Likewise.
46419         * tests/test-snprintf-posix.h: Likewise.
46420         * tests/test-sprintf-posix.h: Likewise.
46421         * tests/test-vasnprintf-posix.c: Likewise.
46422         * tests/test-vasnprintf-posix2.c: Likewise.
46423         * tests/test-vasprintf-posix.c: Likewise.
46424
46425 2007-04-06  Bruno Haible  <bruno@clisp.org>
46426
46427         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
46428         * lib/math_.h [__DECC]: Include the overridden include file through
46429         #include_next, outside the double-inclusion guard.
46430         * lib/stdio_.h [__DECC]: Likewise.
46431         * lib/stdlib_.h [__DECC]: Likewise.
46432         * lib/string_.h [__DECC]: Likewise.
46433         * lib/time_.h [__DECC]: Likewise.
46434         * lib/wchar_.h [__DECC]: Likewise.
46435         * lib/wctype_.h [__DECC]: Likewise.
46436         * lib/inttypes_.h [__DECC]: Likewise.
46437         Reported by Albert Chin <china@thewrittenword.com> in
46438         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
46439
46440 2007-04-04  Eric Blake  <ebb9@byu.net>
46441
46442         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
46443         1.5.x.
46444
46445 2007-04-04  Bruno Haible  <bruno@clisp.org>
46446
46447         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
46448         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
46449
46450 2007-04-04  Bruno Haible  <bruno@clisp.org>
46451
46452         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
46453         results for "%010a" of Infinity and NaN.
46454         * tests/test-vasprintf-posix.c (test_function): Likewise.
46455         * tests/test-snprintf-posix.h (test_function): Likewise.
46456         * tests/test-sprintf-posix.h (test_function): Likewise.
46457         * tests/test-fprintf-posix.h (test_function): Remove these tests.
46458         * tests/test-printf-posix.h (test_function): Likewise.
46459         * tests/test-fprintf-posix.out: Update.
46460         Needed for FreeBSD 6.1.
46461
46462 2007-04-04  Bruno Haible  <bruno@clisp.org>
46463
46464         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
46465         directly used by the gnulib modules nor by gnulib-tool.
46466
46467 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
46468
46469         * DEPENDENCIES: Give overall description of version dependency
46470         desirability.  Use more-typical names for apps.
46471         Add shell, coreutils, diffutils, grep, tar, gzip.
46472
46473 2007-04-04  Simon Josefsson  <simon@josefsson.org>
46474
46475         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
46476
46477 2007-04-04  Karl Berry  <karl@gnu.org>
46478
46479         * MODULES.html.sh (func_module): missing '.
46480
46481 2007-04-03  Bruno Haible  <bruno@clisp.org>
46482
46483         * modules/argmatch-tests (Makefile.am): New variable
46484         test_argmatch_LDADD.
46485         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
46486         * modules/array-list-tests (Makefile.am): New variable
46487         test_array_list_LDADD.
46488         * modules/array-oset-tests (Makefile.am): New variable
46489         test_array_oset_LDADD.
46490         * modules/avltree-list-tests (Makefile.am): New variable
46491         test_avltree_list_LDADD.
46492         * modules/avltree-oset-tests (Makefile.am): New variable
46493         test_avltree_oset_LDADD.
46494         * modules/avltreehash-list-tests (Makefile.am): New variable
46495         test_avltreehash_list_LDADD.
46496         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
46497         test_canonicalize_lgpl_LDADD.
46498         * modules/carray-list-tests (Makefile.am): New variable
46499         test_carray_list_LDADD.
46500         * modules/dirname-tests (Makefile.am): New variable
46501         test_dirname_LDADD.
46502         * modules/linked-list-tests (Makefile.am): New variable
46503         test_linked_list_LDADD.
46504         * modules/linkedhash-list-tests (Makefile.am): New variable
46505         test_linkedhash_list_LDADD.
46506         * modules/rbtree-list-tests (Makefile.am): New variable
46507         test_rbtree_list_LDADD.
46508         * modules/rbtree-oset-tests (Makefile.am): New variable
46509         test_rbtree_oset_LDADD.
46510         * modules/rbtreehash-list-tests (Makefile.am): New variable
46511         test_rbtreehash_list_LDADD.
46512         * modules/xvasprintf-tests (Makefile.am): New variable
46513         test_xvasprintf_LDADD.
46514         Reported by Eric Blake.
46515
46516 2007-04-03  Eric Blake  <ebb9@byu.net>
46517
46518         * DEPENDENCIES: Weaken m4 requirements.
46519
46520 2007-04-03  Bruno Haible  <bruno@clisp.org>
46521
46522         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
46523         * modules/isnanl-tests (configure.ac): Likewise.
46524
46525 2007-04-03  Ben Pfaff  <blp@gnu.org>
46526
46527         * modules/iconv_open: Add $(srcdir)/ to source directory
46528         references in Makefile fragments that call gperf, to fix VPATH
46529         builds.
46530
46531 2007-04-03  Bruno Haible  <bruno@clisp.org>
46532
46533         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
46534         * lib/ldexpl.c: Undo last change.
46535
46536 2007-04-03  Bruno Haible  <bruno@clisp.org>
46537
46538         * modules/printf-frexpl (Depends-on): Undo last change.
46539         (Files): Add m4/ldexpl.m4.
46540
46541 2007-04-03  Bruno Haible  <bruno@clisp.org>
46542
46543         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
46544         * modules/isnanl (Link): New section.
46545
46546         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
46547         * modules/frexp (Link): New section.
46548
46549         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
46550         * modules/frexpl (Link): New section.
46551
46552         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
46553         * modules/ldexpl (Link): New section.
46554
46555 2007-04-03  Bruno Haible  <bruno@clisp.org>
46556
46557         * modules/TEMPLATE-EXTENDED: New file.
46558         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
46559
46560 2007-04-03  Bruno Haible  <bruno@clisp.org>
46561
46562         * DEPENDENCIES: New file.
46563         Suggested by Simon Josefsson.
46564
46565 2007-04-03  Bruno Haible  <bruno@clisp.org>
46566
46567         * doc/gnulib.texi: Escape @.
46568
46569 2007-04-03  James Youngman  <jay@gnu.org>
46570         and Paul Eggert  <eggert@cs.ucla.edu>
46571
46572         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
46573         birthtime on all systems that have birthtime, not just those which
46574         use st_birthtimensec rather than st_birthtim.  Putting zero in
46575         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
46576         that the birth time is not available for files on an NFS mount.
46577
46578 2007-04-03  Simon Josefsson  <simon@josefsson.org>
46579
46580         * modules/memxor: Move back from crypto/, suggested by Bruno.
46581         * modules/crypto/hmac-sha1: Fix memxor dependency.
46582
46583         * modules/crypto/gc: Moved from ../.
46584
46585 2007-04-02  Eric Blake  <ebb9@byu.net>
46586
46587         * lib/ldexpl.c (includes): Avoid libm.
46588
46589         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
46590
46591 2007-04-02  Bruno Haible  <bruno@clisp.org>
46592
46593         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
46594         on IRIX.
46595
46596 2007-04-02  Bruno Haible  <bruno@clisp.org>
46597
46598         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
46599         x86 or x86_64 platforms running MacOS X.
46600         Reported by Ryan Schmidt <@ryandesign.com>.
46601
46602 2007-04-02  Bruno Haible  <bruno@clisp.org>
46603
46604         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
46605         i386.
46606
46607 2007-04-01  Simon Josefsson  <simon@josefsson.org>
46608
46609         * modules/crypto/arcfour: Moved from ../.
46610         * modules/crypto/arcfour-tests: Moved from ../.
46611         * modules/crypto/arctwo: Moved from ../.
46612         * modules/crypto/arctwo-tests: Moved from ../.
46613         * modules/crypto/des: Moved from ../.
46614         * modules/crypto/des-tests: Moved from ../.
46615         * modules/crypto/gc-arcfour: Moved from ../.
46616         * modules/crypto/gc-arcfour-tests: Moved from ../.
46617         * modules/crypto/gc-arctwo: Moved from ../.
46618         * modules/crypto/gc-arctwo-tests: Moved from ../.
46619         * modules/crypto/gc-des: Moved from ../.
46620         * modules/crypto/gc-des-tests: Moved from ../.
46621         * modules/crypto/gc-hmac-md5: Moved from ../.
46622         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
46623         * modules/crypto/gc-hmac-sha1: Moved from ../.
46624         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
46625         * modules/crypto/gc-md2: Moved from ../.
46626         * modules/crypto/gc-md2-tests: Moved from ../.
46627         * modules/crypto/gc-md4: Moved from ../.
46628         * modules/crypto/gc-md4-tests: Moved from ../.
46629         * modules/crypto/gc-md5: Moved from ../.
46630         * modules/crypto/gc-md5-tests: Moved from ../.
46631         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
46632         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
46633         * modules/crypto/gc-random: Moved from ../.
46634         * modules/crypto/gc-rijndael: Moved from ../.
46635         * modules/crypto/gc-rijndael-tests: Moved from ../.
46636         * modules/crypto/gc-sha1: Moved from ../.
46637         * modules/crypto/gc-sha1-tests: Moved from ../.
46638         * modules/crypto/gc-tests: Moved from ../.
46639         * modules/crypto/hmac-md5: Moved from ../.
46640         * modules/crypto/hmac-md5-tests: Moved from ../.
46641         * modules/crypto/hmac-sha1: Moved from ../.
46642         * modules/crypto/hmac-sha1-tests: Moved from ../.
46643         * modules/crypto/md2: Moved from ../.
46644         * modules/crypto/md2-tests: Moved from ../.
46645         * modules/crypto/md4: Moved from ../.
46646         * modules/crypto/md4-tests: Moved from ../.
46647         * modules/crypto/md5: Moved from ../.
46648         * modules/crypto/md5-tests: Moved from ../.
46649         * modules/crypto/memxor: Moved from ../.
46650         * modules/crypto/rijndael: Moved from ../.
46651         * modules/crypto/rijndael-tests: Moved from ../.
46652         * modules/crypto/sha1: Moved from ../.
46653
46654 2007-03-30  James Youngman  <jay@gnu.org>
46655
46656         * tests/test-stat-time.c (prepare_test): use chmod() rather than
46657         rename() to change the ctime of a file (because ctime is unaffected
46658         by rename on jfs2 on AIX 5.1).
46659         (main): Start by doing cleanup, in case a previous run failed leaving
46660         test files behind.
46661
46662 2007-03-31  Bruno Haible  <bruno@clisp.org>
46663
46664         Support old proprietary implementations of iconv.
46665         * modules/iconv_open: New file.
46666         * lib/iconv_.h: New file.
46667         * m4/iconv_h.m4: New file.
46668         * lib/iconv_open.c: New file.
46669         * lib/iconv_open-aix.gperf: New file.
46670         * lib/iconv_open-hpux.gperf: New file.
46671         * lib/iconv_open-irix.gperf: New file.
46672         * lib/iconv_open-osf.gperf: New file.
46673         * m4/iconv_open.m4: New file.
46674         * modules/linebreak (Depends-on): Add iconv_open.
46675         * modules/striconv (Depends-on): Likewise.
46676         * modules/striconveh (Depends-on): Likewise.
46677         * modules/unicodeio (Depends-on): Likewise.
46678         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
46679         (iconv_t)(-1).
46680         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
46681         conversion if cd is (iconv_t)(-1).
46682         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
46683         is not possible.
46684
46685 2007-03-31  Bruno Haible  <bruno@clisp.org>
46686
46687         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
46688         work on Solaris either. Protect also second use of "autodetect_jp".
46689
46690 2007-03-31  Bruno Haible  <bruno@clisp.org>
46691
46692         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
46693         the function is not present.
46694
46695 2007-03-31  Bruno Haible  <bruno@clisp.org>
46696
46697         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
46698         the function is not present.
46699
46700 2007-03-31  Bruno Haible  <bruno@clisp.org>
46701
46702         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
46703         a bug in HP-UX iconv_open().
46704
46705 2007-03-31  Bruno Haible  <bruno@clisp.org>
46706
46707         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
46708         (Mathematics <math.h>): New section, add fpieee.
46709         (Input/output <stdio.h>): Add fseterr.
46710         (Mathematics <math.h>): New section, add printf-frexp.
46711         (Container data structures): Add sublist.
46712         (Core language properties): Add fpucw, inline.
46713         (Functions for greatest-width integer types <inttypes.h>): Add
46714         imaxabs, imaxdiv, inttypes.
46715         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
46716         isnanl-nolibm, ldexp.
46717         (Mathematics <math.h>): New section, add printf-frexpl.
46718         (Support for systems lacking POSIX:2001): Add fprintf-posix,
46719         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
46720         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
46721         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
46722         (Unicode string functions): Add unistr/u*-mbtoucr.
46723         (Java): Add javacomp-script, javaexec-script.
46724         (C#): Add csharpcomp-script, csharpexec-script.
46725         (Support for building libraries and executables): Add havelib,
46726         relocatable-*.
46727         (Support for maintaining and releasing projects): Renamed from
46728         'Support for maintaining and release projects'. Add announce-gen.
46729
46730 2007-03-31  Bruno Haible  <bruno@clisp.org>
46731
46732         * README: Talk primarily about git.
46733         (git and CVS): Renamed from CVS.
46734         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
46735         gnulib is available through git.
46736         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
46737
46738 2007-03-30  Bruno Haible  <bruno@clisp.org>
46739
46740         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
46741         * lib/poll_.h: Likewise.
46742         * lib/stat_.h: Likewise.
46743         * lib/sys_time_.h: Likewise.
46744         * lib/sysexit_.h: Likewise.
46745         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
46746         * lib/stdbool_.h: Likewise.
46747         * lib/byteswap_.h: Add double-inclusion guard.
46748
46749 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
46750
46751         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
46752
46753 2007-03-30  Karl Berry  <karl@gnu.org>
46754
46755         * config/srclist-update: double space after USA in the license
46756         substitution, since that's how it's usually (?) written.
46757
46758 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46759
46760         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
46761         reported by Bruno Haible.
46762
46763 2007-03-29  Bruno Haible  <bruno@clisp.org>
46764
46765         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
46766         a bug in AIX iconv().
46767
46768 2007-03-29  Bruno Haible  <bruno@clisp.org>
46769
46770         * modules/ldexpl-tests: New file.
46771         * tests/test-ldexpl.c: New file.
46772
46773 2007-03-29  Bruno Haible  <bruno@clisp.org>
46774
46775         * lib/ldexpl.c: Include fpucw.h.
46776         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
46777         multiplication.
46778         * modules/ldexpl (Depends-on): Add fpucw.
46779
46780 2007-03-29  Bruno Haible  <bruno@clisp.org>
46781
46782         * modules/ldexpl: New file.
46783         * m4/ldexpl.m4: New file.
46784         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
46785         set.
46786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
46787         REPLACE_LDEXPL.
46788         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
46789         REPLACE_LDEXPL.
46790         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
46791         gl_FUNC_LDEXPL_WORKS.
46792         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
46793         * modules/mathl (Files): Remove lib/ldexpl.c.
46794         (Depends-on): Add ldexpl.
46795
46796 2007-03-29  Bruno Haible  <bruno@clisp.org>
46797
46798         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
46799
46800 2007-03-29  Bruno Haible  <bruno@clisp.org>
46801
46802         * tests/test-striconveh.c (main): Don't assume that a direct conversion
46803         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
46804         and possibly also HP-UX.
46805         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
46806         work on AIX, IRIX, HP-UX, OSF/1.
46807         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46808         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46809         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46810         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46811         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
46812         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46813
46814 2007-03-29  Bruno Haible  <bruno@clisp.org>
46815
46816         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
46817
46818 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
46819
46820         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
46821         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
46822
46823 2007-03-29  Eric Blake  <ebb9@byu.net>
46824
46825         * lib/acl-internal.h: Remove redundant include.
46826         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
46827         Cygwin when a file is locked.
46828
46829 2007-03-29  Bruno Haible  <bruno@clisp.org>
46830
46831         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
46832         file.
46833         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
46834
46835 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
46836
46837         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
46838         try to remove a parent directory if the child couldn't be removed
46839         (except for the first rmdir, which could fail because the child
46840         doesn't exist).  Problem reported by Jeff Blaine in
46841         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
46842
46843 2007-03-28  Bruno Haible  <bruno@clisp.org>
46844
46845         * lib/striconveh.c (utf8conv_carefully): New function.
46846         (mem_cd_iconveh_internal): Invoke it.
46847
46848 2007-03-28  Bruno Haible  <bruno@clisp.org>
46849
46850         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
46851         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
46852         input.
46853         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
46854         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
46855         unistr/u8-uctomb.
46856
46857 2007-03-28  Bruno Haible  <bruno@clisp.org>
46858
46859         * modules/unistr/u8-mbtoucr: New file.
46860         * lib/unistr/u8-mbtoucr.c: New file.
46861         * modules/unistr/u16-mbtoucr: New file.
46862         * lib/unistr/u16-mbtoucr.c: New file.
46863         * modules/unistr/u16-mbtoucr: New file.
46864         * lib/unistr/u16-mbtoucr.c: New file.
46865         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
46866
46867 2007-03-27  Simon Josefsson  <simon@josefsson.org>
46868             Bruno Haible  <bruno@clisp.org>
46869
46870         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
46871         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
46872         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
46873
46874         * m4/stdio_h.m4: Add stubs for vasprintf too.
46875
46876         * modules/stdio: Support vasprintf in sed command.
46877
46878         * modules/vasprintf: Depend on stdio for prototypes.  Remove
46879         vasprintf.h.  Add stdio module indicator.
46880
46881         * lib/stdio_.h: Declare asprintf and vasprintf, based on
46882         vasprintf.h.
46883
46884         * lib/vasprintf.h: File removed.
46885
46886         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
46887         * lib/vasprintf.c: Ditto.
46888         * lib/xvasprintf.c: Ditto.
46889         * tests/test-vasprintf-posix.c: Ditto.
46890         * tests/test-vasprintf.c: Ditto.
46891
46892 2007-03-27  Bruno Haible  <bruno@clisp.org>
46893
46894         Make vasnprintf multithread-safe.
46895         * lib/vasnprintf.c (decimal_point_char): New function.
46896         (VASNPRINTF): Use it.
46897         Suggested by Simon Josefsson.
46898
46899 2007-03-27  Eric Blake  <ebb9@byu.net>
46900
46901         Support sub-second birthtime on cygwin.
46902         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
46903         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
46904         (get_stat_birthtime): Also work with st_birthtim.
46905
46906 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
46907
46908         * lib/stat-time.h (USE_BIRTHTIME): Remove.
46909         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
46910         (get_stat_birthtime_ns): Do not try to use "spare" fields.
46911         (get_stat_birthtime_ns): Simplify compile-time tests.
46912         (get_stat_birthtime): Change the API to look like
46913         get_stat_mtime etc., except return a negative tv_nsec on error.
46914         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
46915         Don't check for "spare" fields.
46916         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
46917         or for struct stat.st_birthtime, as these tests aren't used.
46918         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
46919
46920 2007-03-27  Bruno Haible  <bruno@clisp.org>
46921
46922         * lib/stat-time.h: Include <sys/stat.h>.
46923
46924 2007-03-27  James Youngman  <jay@gnu.org>
46925
46926         * lib/stat-time.h (get_stat_birthtime): New function for
46927           retrieving st_birthtime as provided by UFS2 (hence *BSD).
46928         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
46929           and its variants.
46930         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
46931         * modules/stat-time-test: New file.
46932         * tests/test-stat-time.c: New test, devised by Bruno Haible.
46933
46934 2007-03-26  Bruno Haible  <bruno@clisp.org>
46935
46936         Better support of signalling NaNs.
46937         * lib/atanl.c: Include isnanl.h.
46938         (atanl): Perform test for NaN at the beginning of the function and
46939         through a call to isnanl.
46940         * lib/cosl.c: Include isnanl.h.
46941         (cosl): Perform test for NaN at the beginning of the function and
46942         through a call to isnanl.
46943         * lib/ldexpl.c: Include isnanl.h.
46944         (ldexpl): Perform test for NaN through a call to isnanl.
46945         * lib/logl.c: Include isnanl.h.
46946         (logl): Perform test for NaN at the beginning of the function and
46947         through a call to isnanl.
46948         * lib/sinl.c: Include isnanl.h.
46949         (sinl): Perform test for NaN at the beginning of the function and
46950         through a call to isnanl.
46951         * lib/sqrtl.c: Include isnanl.h.
46952         (sqrtl): Perform test for NaN at the beginning of the function and
46953         through a call to isnanl.
46954         * lib/tanl.c: Include isnanl.h.
46955         (tanl): Perform test for NaN at the beginning of the function and
46956         through a call to isnanl.
46957         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
46958         * modules/mathl (Depends-on): Add isnanl.
46959
46960 2007-03-26  Eric Blake  <ebb9@byu.net>
46961
46962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
46963         regression in logic sense of previous patch.
46964
46965 2007-03-26  Bruno Haible  <bruno@clisp.org>
46966
46967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
46968         unportable shell command "if ! ...".
46969         Reported by Ralf Wildenhues.
46970
46971 2007-03-25  Bruno Haible  <bruno@clisp.org>
46972
46973         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
46974         <sysexits.h> file, and only add EX_CONFIG.
46975         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
46976         absolute file name and whether it is sufficient. Substitute also
46977         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
46978         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
46979         ABSOLUTE_SYSEXITS_H into sysexits.h.
46980
46981 2007-03-25  Bruno Haible  <bruno@clisp.org>
46982
46983         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
46984         hints is NULL.
46985
46986 2007-03-25  Bruno Haible  <bruno@clisp.org>
46987
46988         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
46989         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
46990
46991 2007-03-25  Bruno Haible  <bruno@clisp.org>
46992
46993         * lib/vasnprintf.c: Include langinfo.h.
46994         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
46995         multithread-safe.
46996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
46997         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
46998         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46999         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47000         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47001         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47002         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47003         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
47004         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47005         Reported by Simon Josefsson.
47006
47007 2007-03-25  Bruno Haible  <bruno@clisp.org>
47008
47009         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
47010         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
47011         * modules/vasnprintf (Depends-on): Add stdint.
47012
47013 2007-03-25  Bruno Haible  <bruno@clisp.org>
47014
47015         * modules/fpieee: New file.
47016         * m4/fpieee.m4: New file.
47017         * modules/isnan-nolibm (Depends-on): Add fpieee.
47018         * modules/isnanl-nolibm (Depends-on): Add fpieee.
47019         * modules/isnanl (Depends-on): Add fpieee.
47020
47021 2007-03-25  Bruno Haible  <bruno@clisp.org>
47022
47023         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
47024
47025 2007-03-25  Bruno Haible  <bruno@clisp.org>
47026
47027         Avoid test failures on IRIX 6.5.
47028         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
47029         (main): Use it.
47030         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
47031         macros.
47032         (main): Use them.
47033
47034 2007-03-25  Bruno Haible  <bruno@clisp.org>
47035
47036         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
47037         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
47038         exists but doesn't work.
47039         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
47040         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
47041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
47042         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
47043
47044 2007-03-25  Bruno Haible  <bruno@clisp.org>
47045
47046         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
47047         returns inf. Needed on IRIX 6.5.
47048
47049 2007-03-25  Bruno Haible  <bruno@clisp.org>
47050
47051         * tests/test-frexpl.c: Include isnanl-nolibm.h.
47052         (main): Use isnanl instead of x != x idiom.
47053         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
47054
47055         * tests/test-frexp.c: Include isnan.h.
47056         (main): Use isnan instead of x != x idiom.
47057         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
47058
47059 2007-03-25  Bruno Haible  <bruno@clisp.org>
47060
47061         * tests/test-frexp.c (NaN): New function/macro.
47062         (main): Use it instead of 0.0 / 0.0.
47063         * tests/test-isnan.c (NaN): New function/macro.
47064         (main): Use it instead of 0.0 / 0.0.
47065         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
47066         (test_function): Use it instead of 0.0 / 0.0.
47067         * tests/test-vasprintf-posix.c (NaN): New function/macro.
47068         (test_function): Use it instead of 0.0 / 0.0.
47069         * tests/test-snprintf-posix.h (NaN): New function/macro.
47070         (test_function): Use it instead of 0.0 / 0.0.
47071         * tests/test-sprintf-posix.h (NaN): New function/macro.
47072         (test_function): Use it instead of 0.0 / 0.0.
47073         * tests/test-fprintf-posix.h (NaN): New function/macro.
47074         (test_function): Use it instead of 0.0 / 0.0.
47075         * tests/test-printf-posix.h (NaN): New function/macro.
47076         (test_function): Use it instead of 0.0 / 0.0.
47077
47078         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
47079
47080 2007-03-25  Bruno Haible  <bruno@clisp.org>
47081
47082         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
47083
47084 2007-03-25  Bruno Haible  <bruno@clisp.org>
47085
47086         * lib/regexec.c (merge_state_with_log): Make static.
47087
47088 2007-03-25  Bruno Haible  <bruno@clisp.org>
47089
47090         * lib/trigl.c (kernel_rem_pio2): Make static.
47091
47092 2007-03-25  Bruno Haible  <bruno@clisp.org>
47093
47094         * lib/sincosl.c (sincosl_table): Make static.
47095
47096 2007-03-25  Bruno Haible  <bruno@clisp.org>
47097
47098         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
47099         if the compiler does not support C99.
47100
47101 2007-03-25  Bruno Haible  <bruno@clisp.org>
47102
47103         * modules/time (Makefile.am): Ensure all rule action lines start with a
47104         tab.
47105
47106 2007-03-24  Bruno Haible  <bruno@clisp.org>
47107
47108         * modules/tsearch-tests: New file.
47109         * tests/test-tsearch.sh: New file.
47110         * tests/test-tsearch.c: New file, mostly copied from glibc.
47111
47112         * modules/search-tests: New file.
47113         * tests/test-search.c: New file.
47114
47115         * modules/search: New file.
47116         * lib/search_.h: New file, incorporating lib/tsearch.h.
47117         * m4/search_h.m4: New file.
47118         * lib/tsearch.h: Remove file.
47119         * lib/tsearch.c: Include search.h instead of tsearch.h.
47120         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
47121         HAVE_TSEARCH.
47122         * modules/tsearch (Files): Remove lib/tsearch.h.
47123         (Depends-on): Add search.
47124         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
47125         (Include): Change tsearch.h into search.h.
47126
47127 2007-03-24  Bruno Haible  <bruno@clisp.org>
47128
47129         * modules/fpucw: New file.
47130         * lib/fpucw.h: New file.
47131         * lib/frexp.c: Include fpucw.h.
47132         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
47133         (FUNC): Use them.
47134         * lib/printf-frexp.c: Include fpucw.h.
47135         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
47136         (FUNC): Use them.
47137         * lib/vasnprintf.c: Include fpucw.h.
47138         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
47139         'long double' calculations.
47140         * tests/test-frexpl.c: Include fpucw.h.
47141         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
47142         * tests/test-printf-frexpl.c: Include fpucw.h.
47143         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
47144         * modules/frexpl (Depends-on): Add fpucw.
47145         * modules/printf-frexpl (Depends-on): Likewise.
47146         * modules/fprintf-posix (Depends-on): Likewise.
47147         * modules/snprintf-posix (Depends-on): Likewise.
47148         * modules/sprintf-posix (Depends-on): Likewise.
47149         * modules/vasnprintf-posix (Depends-on): Likewise.
47150         * modules/vasprintf-posix (Depends-on): Likewise.
47151         * modules/vfprintf-posix (Depends-on): Likewise.
47152         * modules/vsnprintf-posix (Depends-on): Likewise.
47153         * modules/vsprintf-posix (Depends-on): Likewise.
47154         * modules/frexpl-tests (Depends-on): Likewise.
47155         * modules/printf-frexpl-tests (Depends-on): Likewise.
47156
47157 2007-03-24  Bruno Haible  <bruno@clisp.org>
47158
47159         * lib/float+.h: New file.
47160         * lib/isnan.c: Include float+.h.
47161         (SIZE): New macro.
47162         (FUNC): Compare only SIZE bytes of the value.
47163         * lib/vasnprintf.c: Include float+.h.
47164         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
47165         SIZEOF_LDBL or SIZEOF_DBL bytes.
47166         * modules/isnan-nolibm (Files): Add lib/float+.h.
47167         * modules/isnanl-nolibm (Files): Add lib/float+.h.
47168         * modules/isnanl (Files): Add lib/float+.h.
47169         * modules/vasnprintf (Files): Add lib/float+.h.
47170
47171 2007-03-24  Bruno Haible  <bruno@clisp.org>
47172
47173         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
47174         include isnanl-nolibm.h.
47175
47176 2007-03-24  Bruno Haible  <bruno@clisp.org>
47177
47178         * tests/test-read-file.c (main): Don't produce spurious output for
47179         expected situations. Make the test fail if it encountered unexpected
47180         results.
47181
47182 2007-03-24  Bruno Haible  <bruno@clisp.org>
47183
47184         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
47185         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
47186
47187 2007-03-24  Bruno Haible  <bruno@clisp.org>
47188
47189         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
47190
47191 2007-03-24  Bruno Haible  <bruno@clisp.org>
47192
47193         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
47194         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
47195
47196         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
47197         * modules/utf8-ucs4: Turn into a symbolic link to module
47198         unistr/u8-mbtouc.
47199
47200         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
47201         utf8-ucs4-unsafe.
47202         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
47203         unistr/u8-mbtouc-unsafe.
47204
47205         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
47206         * modules/utf16-ucs4: Turn into a symbolic link to module
47207         unistr/u16-mbtouc.
47208
47209         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
47210         utf16-ucs4-unsafe.
47211         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
47212         unistr/u16-mbtouc-unsafe.
47213
47214         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
47215         * modules/ucs4-utf8: Turn into a symbolic link to module
47216         unistr/u8-ubtomb.
47217
47218         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
47219         * modules/ucs4-utf16: Turn into a symbolic link to module
47220         unistr/u16-ubtomb.
47221
47222 2007-03-24  Bruno Haible  <bruno@clisp.org>
47223
47224         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
47225         Enable the function only if HAVE_INLINE.
47226         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
47227         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
47228         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
47229         Enable the function only if HAVE_INLINE.
47230         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
47231         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
47232         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
47233         Enable the function only if HAVE_INLINE.
47234         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
47235         Enable the function only if HAVE_INLINE.
47236         * modules/utf8-ucs4: Update.
47237         * modules/utf8-ucs4-unsafe: Update.
47238         * modules/utf16-ucs4: Update.
47239         * modules/utf16-ucs4-unsafe: Update.
47240         * modules/ucs4-utf8: Update.
47241         * modules/ucs4-utf16: Update.
47242
47243 2007-03-24  Bruno Haible  <bruno@clisp.org>
47244
47245         * lib/utf8-ucs4.h: Remove file.
47246         * lib/utf8-ucs4-unsafe.h: Remove file.
47247         * lib/utf16-ucs4.h: Remove file.
47248         * lib/utf16-ucs4-unsafe.h: Remove file.
47249         * lib/ucs4-utf8.h: Remove file.
47250         * lib/ucs4-utf16.h: Remove file.
47251         * lib/unistr.h: Include their previous contents.
47252         * m4/utf-ucs4.m4: Remove file.
47253         * m4/ucs4-utf.m4: Remove file.
47254         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
47255         (Depends-on): Add unistr/base.
47256         (configure.ac): Remove gl_UTF_UCS4.
47257         (Makefile.am): Update.
47258         (Include): Change to unistr.h.
47259         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
47260         (Depends-on): Add unistr/base.
47261         (configure.ac): Remove gl_UTF_UCS4.
47262         (Makefile.am): Update.
47263         (Include): Change to unistr.h.
47264         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
47265         (Depends-on): Add unistr/base.
47266         (configure.ac): Remove gl_UTF_UCS4.
47267         (Makefile.am): Update.
47268         (Include): Change to unistr.h.
47269         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
47270         (Depends-on): Add unistr/base.
47271         (configure.ac): Remove gl_UTF_UCS4.
47272         (Makefile.am): Update.
47273         (Include): Change to unistr.h.
47274         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
47275         (Depends-on): Add unistr/base.
47276         (configure.ac): Remove gl_UCS4_UTF.
47277         (Makefile.am): Update.
47278         (Include): Change to unistr.h.
47279         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
47280         (Depends-on): Add unistr/base.
47281         (configure.ac): Remove gl_UCS4_UTF.
47282         (Makefile.am): Update.
47283         (Include): Change to unistr.h.
47284         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
47285         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
47286         utf8-ucs4-unsafe.h.
47287         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
47288         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
47289         utf16-ucs4-unsafe.h.
47290         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
47291         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
47292         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
47293         * lib/unistr/u8-strchr.c: Likewise.
47294         * lib/unistr/u8-strrchr.c: Likewise.
47295         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
47296         * lib/unistr/u16-strchr.c: Likewise.
47297         * lib/unistr/u16-strrchr.c: Likewise.
47298         * lib/striconveh.c: Update.
47299         * lib/linebreak.c: Update.
47300
47301 2007-03-24  Bruno Haible  <bruno@clisp.org>
47302
47303         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
47304         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
47305
47306 2007-03-22  Bruno Haible  <bruno@clisp.org>
47307
47308         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
47309
47310 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
47311
47312         * MODULES.html.sh (File system functions): New module write-any-file.
47313         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
47314         * m4/write-any-file.m4: New files.
47315
47316 2007-03-23  Eric Blake  <ebb9@byu.net>
47317
47318         * gnulib-tool: Rearrange space-tab sequences, since some editors
47319         like to eat them.
47320
47321 2007-03-23  Eric Blake  <ebb9@byu.net>
47322
47323         * lib/version-etc.c (version_etc_va): Update license wording to
47324         be more concise.  Recommended by Richard Stallman.
47325
47326 2007-03-22  Bruno Haible  <bruno@clisp.org>
47327
47328         * lib/poll.c (MSG_PEEK): New fallback definition.
47329
47330 2007-03-22  Bruno Haible  <bruno@clisp.org>
47331
47332         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
47333         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
47334         (main): Update.
47335         Fixes a compilation error on BeOS.
47336
47337 2007-03-22  Bruno Haible  <bruno@clisp.org>
47338
47339         * modules/frexpl-tests: New file.
47340         * tests/test-frexpl.c: New file.
47341
47342         * modules/frexpl: New file.
47343         * m4/frexpl.m4: New file.
47344         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
47345         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
47346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
47347         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
47348         (Depends-on): Add frexpl. Remove isnanl-nolibm.
47349         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
47350
47351 2007-03-22  Bruno Haible  <bruno@clisp.org>
47352
47353         * lib/frexpl.c: Share code with lib/frexp.c.
47354         * modules/mathl (Files): Add lib/frexp.c.
47355         (Depends-on): Add isnanl-nolibm.
47356
47357 2007-03-22  Bruno Haible  <bruno@clisp.org>
47358
47359         * modules/printf-frexp (Files): Add m4/frexp.m4.
47360         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
47361         only if the found frexp function actually works.
47362
47363 2007-03-22  Bruno Haible  <bruno@clisp.org>
47364
47365         * lib/frexp.c: Remove older implementation that uses divisions.
47366
47367 2007-03-21  Bruno Haible  <bruno@clisp.org>
47368
47369         * modules/frexp-tests: New file.
47370         * tests/test-frexp.c: New file.
47371
47372         * modules/frexp: New file.
47373         * lib/frexp.c: New file.
47374         * m4/frexp.m4: New file.
47375         * lib/math_.h (frexp): New declaration.
47376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
47377         REPLACE_FREXP.
47378         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
47379
47380 2007-03-21  Bruno Haible  <bruno@clisp.org>
47381
47382         * modules/isnanl-tests: New file.
47383         * tests/test-isnanl.c: New file.
47384
47385         * modules/isnanl: New file.
47386         * lib/isnanl.h: New file.
47387         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
47388         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
47389         gl_FUNC_ISNANL_WORKS.
47390         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
47391         New macros.
47392
47393 2007-03-21  Bruno Haible  <bruno@clisp.org>
47394
47395         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
47396         lib/isnanl.h.
47397         (Include): Update.
47398         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
47399         * lib/vasnprintf.c: Update.
47400         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
47401         tests/test-isnanl.h, remove tests/test-isnanl.c.
47402         (Makefile.am): Update.
47403         * tests/test-isnanl-nolibm.c: New file.
47404         * tests/test-isnanl.h: New file.
47405         * tests/test-isnanl.c: Remove file.
47406
47407 2007-03-21  Jim Meyering  <jim@meyering.net>
47408
47409         When trying to open ".", treat ESTALE like EACCES.
47410         * lib/savewd.c (savewd_save): Resort to forking not just upon
47411         failure with EACCES, but also when errno is ESTALE.
47412
47413 2007-03-20  Bruno Haible  <bruno@clisp.org>
47414
47415         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
47416         Needed on AIX 5.1. Reported by Matthew Woehlke.
47417
47418 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47419
47420         Suggestions by Bruno Haible:
47421         * lib/acl-internal.h: Include "gettext.h" rather than rolling
47422         our own.
47423         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
47424         * modules/acl (Depends-on): Add gettext.
47425
47426 2007-03-19  Bruno Haible  <bruno@clisp.org>
47427
47428         * modules/iconvme: Remove file.
47429         * lib/iconvme.h: Remove file.
47430         * lib/iconvme.c: Remove file.
47431         * m4/iconvme.m4: Remove file.
47432
47433 2007-03-19  Bruno Haible  <bruno@clisp.org>
47434
47435         * doc/relocatable-maint.texi: Break long shell script line.
47436         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
47437
47438 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47439
47440         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
47441         handle file_has_acl.
47442         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
47443         * lib/acl.c: Move header inclusions and related macro defns into
47444         lib/acl-internal.h.
47445         (S_ISLNK): Remove defn, since that's now done for us.
47446         (file_has_acl): Move to lib/file-has-acl.c.
47447         Call acl_trivial if available.  This is the crucial part of the fix.
47448         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
47449         shared within the library.  Rewrite a bit, partly to make it compatible
47450         with the GNU coding style.
47451         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
47452         Remove unnecessary double-quotes.
47453         Don't test for acl_to_text; the build will catch that.
47454         Replace acl_entries if it doesn't exist and it is needed.
47455         Check for -lsec and acl_trivial (as used on Solaris 10).
47456         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
47457         lib/file-has-acl.c.
47458         (Depends-on): Add sys_stat, for S_ISLNK.
47459
47460 2007-03-19  Ben Pfaff  <blp@gnu.org>
47461
47462         * doc/gnulib.texi: Fix typos.
47463         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
47464
47465 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
47466
47467         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
47468         If size is zero here, buf must be zero.
47469
47470 2007-03-19  Simon Josefsson  <simon@josefsson.org>
47471
47472         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
47473         <bruno@clisp.org>.
47474
47475 2007-03-18  Bruno Haible  <bruno@clisp.org>
47476
47477         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
47478         Suggested by Eric Blake.
47479
47480 2007-03-18  Ben Pfaff  <blp@gnu.org>
47481
47482         * doc/relocatable.texi: Recommend using as prefix a directory
47483         that does not exist and will never be created.  Based on
47484         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
47485         and others.
47486
47487 2007-03-17  Bruno Haible  <bruno@clisp.org>
47488
47489         * lib/fchownat.c: Include lchown.h.
47490
47491 2007-03-17  Bruno Haible  <bruno@clisp.org>
47492
47493         Fix endless loop when the given allocated size was > INT_MAX.
47494         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
47495         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
47496         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
47497         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
47498         * lib/sprintf.c (sprintf): Likewise.
47499
47500 2007-03-17  Bruno Haible  <bruno@clisp.org>
47501
47502         * tests/test-argp-2.sh (func_compare): Output a context diff.
47503
47504 2007-03-17  Bruno Haible  <bruno@clisp.org>
47505
47506         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
47507         locale's decimal-point character.
47508
47509 2007-03-17  Bruno Haible  <bruno@clisp.org>
47510
47511         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
47512         before comparing it. Needed because on some platforms (e.g. x86) a
47513         'long double' occupies less bytes than sizeof (long double).
47514
47515 2007-03-17  Bruno Haible  <bruno@clisp.org>
47516
47517         * tests/test-crc.c (main): Make printf statements 64-bit clean.
47518         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
47519         * tests/test-getaddrinfo.c (simple): Likewise.
47520         * tests/test-read-file.c (main): Likewise.
47521
47522 2007-03-17  Bruno Haible  <bruno@clisp.org>
47523
47524         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
47525
47526 2007-03-17  Bruno Haible  <bruno@clisp.org>
47527
47528         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
47529         unused variable.
47530
47531 2007-03-17  Bruno Haible  <bruno@clisp.org>
47532
47533         * tests/test-c-strcasecmp.c: Include c-strcase.h.
47534         * tests/test-c-strncasecmp.c: Likewise.
47535
47536 2007-03-17  Bruno Haible  <bruno@clisp.org>
47537
47538         * modules/stdlib (Depends-on): Add unistd.
47539         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
47540         Needed for MacOS X 10.3.
47541
47542 2007-03-17  Bruno Haible  <bruno@clisp.org>
47543
47544         * lib/unistr/u-strdup.h: Include <stdlib.h>.
47545
47546 2007-03-17  Bruno Haible  <bruno@clisp.org>
47547
47548         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
47549
47550 2007-03-17  Bruno Haible  <bruno@clisp.org>
47551
47552         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
47553         to reflect files copied from gnulib (with or without modifications).
47554         Suggested by Jim Meyering.
47555
47556 2007-03-17  Eric Blake  <ebb9@byu.net>
47557
47558         * NEWS: Document stdlib change from 2007-02-18.
47559
47560 2007-03-17  Jim Meyering  <jim@meyering.net>
47561
47562         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
47563         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
47564         someone uses a name containing shell meta-characters.
47565         Reported by Alfred M. Szmidt.
47566
47567         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
47568
47569 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47570
47571         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
47572         and copy gettext configuration files only if configure.ac contains
47573         a use of AM_GNU_GETTEXT_VERSION.
47574
47575 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
47576
47577         * build-aux/bootstrap (gnulib_name): New variable.
47578         (gnulib_tool_options): Use it.
47579
47580 2007-03-13  Simon Josefsson  <simon@josefsson.org>
47581
47582         * tests/test-des.c: Use new namespace.
47583
47584 2007-03-15  Bruno Haible  <bruno@clisp.org>
47585
47586         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
47587         Reported by James Youngman <jay@gnu.org>.
47588
47589 2007-03-15  Bruno Haible  <bruno@clisp.org>
47590
47591         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
47592         declared prototype. Needed with cc on OSF/1 5.1.
47593
47594 2007-03-15  Bruno Haible  <bruno@clisp.org>
47595
47596         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
47597         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
47598         (struct gl_list_implementation): Add dispose_fn argument to the
47599         'create_empty', 'create' methods.
47600         (struct gl_list_impl_base): Add field 'dispose_fn'.
47601         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
47602         argument.
47603         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
47604         dispose_fn argument.
47605         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
47606         dispose_fn on the dropped values.
47607         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
47608         dispose_fn argument.
47609         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
47610         dropped values.
47611         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
47612         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47613         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
47614         (gl_tree_remove_node): Call dispose_fn on the dropped value.
47615         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
47616         argument.
47617         (gl_tree_list_free): Call dispose_fn on the dropped values.
47618         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
47619         the dropped values.
47620         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47621         Add dispose_fn argument.
47622         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
47623         Call dispose_fn on the dropped values.
47624         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
47625         Add dispose_fn argument.
47626         (gl_sublist_create): Initialize the 'dispose_fn' field.
47627         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
47628         * tests/test-array_list.c (main): Update.
47629         * tests/test-carray_list.c (main): Update.
47630         * tests/test-avltree_list.c (main): Update.
47631         * tests/test-rbtree_list.c (main): Update.
47632         * tests/test-avltreehash_list.c (main): Update.
47633         * tests/test-rbtreehash_list.c (main): Update.
47634         * tests/test-linked_list.c (main): Update.
47635         * tests/test-linkedhash_list.c (main): Update.
47636         * tests/test-array_oset.c (main): Update.
47637
47638 2007-03-15  Bruno Haible  <bruno@clisp.org>
47639
47640         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
47641         (gl_oset_create_empty): Add dispose_fn argument.
47642         (struct gl_oset_implementation): Add dispose_fn argument to
47643         'create_empty' method.
47644         (struct gl_oset_impl_base): Add dispose_fn field.
47645         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
47646         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
47647         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
47648         values.
47649         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
47650         (gl_tree_oset_free): Call dispose_fn on the dropped values.
47651         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47652         dropped value.
47653         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
47654         dropped value.
47655         * tests/test-array_oset.c (main): Update.
47656         * tests/test-avltree_oset.c (main): Update.
47657         * tests/test-rbtree_oset.c (main): Update.
47658         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
47659
47660 2007-03-13  Bruno Haible  <bruno@clisp.org>
47661
47662         * tests/test-stdbool.c (i): Update after last patch.
47663
47664 2007-03-12  Bruno Haible  <bruno@clisp.org>
47665
47666         * lib/quotearg.c: Include <wctype.h> early, before the definition of
47667         the iswprint macro. Needed on Solaris 2.5.1.
47668
47669 2007-03-12  Bruno Haible  <bruno@clisp.org>
47670
47671         * tests/test-printf-frexp.c (main): Declare x as volatile.
47672
47673 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47674
47675         * doc/gnulib.texi (Build robot for gnulib): New section.
47676
47677 2007-03-12  Jim Meyering  <jim@meyering.net>
47678
47679         * build-aux/bootstrap: New file.
47680         * build-aux/bootstrap.conf: New file, from coreutils.
47681
47682 2007-03-11  Bruno Haible  <bruno@clisp.org>
47683
47684         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
47685
47686 2007-03-12  Simon Josefsson  <simon@josefsson.org>
47687
47688         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
47689         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
47690         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
47691
47692 2007-03-11  Bruno Haible  <bruno@clisp.org>
47693
47694         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
47695         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
47696
47697 2007-03-11  Bruno Haible  <bruno@clisp.org>
47698
47699         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
47700         formula. Needed for SunPRO C 5.0.
47701
47702 2007-03-11  Bruno Haible  <bruno@clisp.org>
47703
47704         * modules/long-options (Depends-on): Add getopt.
47705
47706 2007-03-11  Bruno Haible  <bruno@clisp.org>
47707
47708         * modules/modechange (Depends-on): Add stdbool.
47709
47710 2007-03-11  Bruno Haible  <bruno@clisp.org>
47711
47712         * modules/i-ring (Depends-on): Add stdbool.
47713
47714 2007-03-11  Bruno Haible  <bruno@clisp.org>
47715
47716         * modules/gc-des (Depends-on): Add stdbool.
47717
47718 2007-03-11  Bruno Haible  <bruno@clisp.org>
47719
47720         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
47721
47722 2007-03-11  Bruno Haible  <bruno@clisp.org>
47723
47724         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
47725
47726 2007-03-11  Bruno Haible  <bruno@clisp.org>
47727
47728         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
47729
47730 2007-03-11  Bruno Haible  <bruno@clisp.org>
47731
47732         * lib/vasnprintf.c (sprintf): Undefine.
47733
47734 2007-03-11  Bruno Haible  <bruno@clisp.org>
47735
47736         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
47737         initializers in SunPRO C and Compaq C compilers.
47738
47739 2007-03-11  Bruno Haible  <bruno@clisp.org>
47740
47741         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
47742         decrementing code ANSI C compliant.
47743
47744 2007-03-11  Bruno Haible  <bruno@clisp.org>
47745
47746         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
47747         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
47748
47749 2007-03-11  Bruno Haible  <bruno@clisp.org>
47750
47751         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
47752         <stdbool.h> substitute doesn't pass.
47753
47754 2007-03-11  Bruno Haible  <bruno@clisp.org>
47755
47756         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
47757
47758 2007-03-11  Bruno Haible  <bruno@clisp.org>
47759
47760         * gnulib-tool (func_create_megatestdir): Create also an autobuild
47761         script, for submission to autobuild.josefsson.org.
47762
47763 2007-03-10  Bruno Haible  <bruno@clisp.org>
47764
47765         * modules/canonicalize-lgpl-tests: New file.
47766         * tests/test-canonicalize-lgpl.sh: New file.
47767         * tests/test-canonicalize-lgpl.c: New file.
47768
47769         * modules/c-strcase-tests: New file.
47770         * tests/test-c-strcase.sh: New file.
47771         * tests/test-c-strcasecmp.c: New file.
47772         * tests/test-c-strncasecmp.c: New file.
47773
47774         * modules/atexit-tests: New file.
47775         * tests/test-atexit.sh: New file.
47776         * tests/test-atexit.c: New file.
47777
47778 2007-03-10  Bruno Haible  <bruno@clisp.org>
47779
47780         * tests/test-binary-io.sh: Use temporary filenames that are not so
47781         likely to clash with those of other tests (in a parallel make).
47782         * tests/test-binary-io.c: Likewise.
47783
47784 2007-03-10  Bruno Haible  <bruno@clisp.org>
47785
47786         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
47787         fallback; use #error instead.
47788         Suggested by Simon Josefsson.
47789
47790 2007-03-10  Bruno Haible  <bruno@clisp.org>
47791
47792         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
47793         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
47794         first and the last.
47795
47796 2007-03-10  Bruno Haible  <bruno@clisp.org>
47797
47798         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
47799
47800 2007-03-10  Bruno Haible  <bruno@clisp.org>
47801
47802         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
47803         "make distcheck".
47804         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
47805         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
47806         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
47807
47808 2007-03-10  Bruno Haible  <bruno@clisp.org>
47809
47810         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
47811         variable.
47812         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
47813         variable.
47814
47815 2007-03-09  Eric Blake  <ebb9@byu.net>
47816         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
47817
47818         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
47819         types are not being provided by gnulib.
47820         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
47821         types are supported.
47822
47823 2007-03-10  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/stdio_.h (__attribute__): New macro.
47826         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
47827         vsprintf): Specify __attribute__ __format__ for GCC.
47828         Suggested by Eric Blake.
47829
47830 2007-03-09  Bruno Haible  <bruno@clisp.org>
47831
47832         * modules/printf-posix-tests: New file.
47833         * tests/test-printf-posix.sh: New file.
47834         * tests/test-printf-posix.c: New file.
47835
47836         * modules/printf-posix: New file.
47837         * lib/printf.c: New file.
47838         * m4/printf-posix-rpl.m4: New file.
47839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
47840         REPLACE_PRINTF.
47841         * lib/stdio_.h (printf): New declaration.
47842         (format, __format__, ____printf____, ____scanf____, ____strftime____,
47843         ____strfmon____): New macros.
47844         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
47845         REPLACE_PRINTF.
47846
47847 2007-03-09  Bruno Haible  <bruno@clisp.org>
47848
47849         * tests/test-vasnprintf-posix2.sh: New file.
47850         * tests/test-vasnprintf-posix2.c: New file.
47851         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
47852         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47853         (Makefile.am): Activate test-vasnprintf-posix2.sh.
47854
47855         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
47856         a locale dependent decimal point, rather than always '.'.
47857
47858 2007-03-09  Eric Blake  <ebb9@byu.net>
47859
47860         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
47861         spite of platforms like Tandem/NSK that define it to -1.
47862
47863 2007-03-08  Bruno Haible  <bruno@clisp.org>
47864
47865         * modules/vprintf-posix-tests: New file.
47866         * tests/test-vprintf-posix.sh: New file.
47867         * tests/test-vprintf-posix.c: New file.
47868         * tests/test-printf-posix.h: New file.
47869
47870         * modules/vprintf-posix: New file.
47871         * lib/vprintf.c: New file.
47872         * m4/vprintf-posix.m4: New file.
47873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
47874         REPLACE_VPRINTF.
47875         * lib/stdio_.h (vprintf): New declaration.
47876         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
47877         REPLACE_VPRINTF.
47878
47879 2007-03-08  Bruno Haible  <bruno@clisp.org>
47880
47881         * modules/fprintf-posix-tests: New file.
47882         * tests/test-fprintf-posix.sh: New file.
47883         * tests/test-fprintf-posix.c: New file.
47884
47885         * modules/fprintf-posix: New file.
47886         * lib/fprintf.c: New file.
47887         * m4/fprintf-posix.m4: New file.
47888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
47889         REPLACE_FPRINTF.
47890         * lib/stdio_.h (fprintf): New declaration.
47891         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
47892         REPLACE_FPRINTF.
47893
47894 2007-03-08  Bruno Haible  <bruno@clisp.org>
47895
47896         * modules/vfprintf-posix-tests: New file.
47897         * tests/test-vfprintf-posix.sh: New file.
47898         * tests/test-vfprintf-posix.c: New file.
47899         * tests/test-fprintf-posix.h: New file.
47900         * tests/test-fprintf-posix.out: New file.
47901
47902         * modules/vfprintf-posix: New file.
47903         * lib/vfprintf.c: New file.
47904         * m4/vfprintf-posix.m4: New file.
47905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
47906         REPLACE_VFPRINTF.
47907         * lib/stdio_.h (vfprintf): New declaration.
47908         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
47909         REPLACE_VFPRINTF.
47910
47911 2007-03-08  Bruno Haible  <bruno@clisp.org>
47912
47913         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
47914
47915 2007-03-08  Bruno Haible  <bruno@clisp.org>
47916
47917         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
47918         instead of 'expr' invocations.
47919         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47920         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47921         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47922         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47924         Suggested by Paul Eggert.
47925
47926 2007-03-08  Bruno Haible  <bruno@clisp.org>
47927
47928         * modules/fseterr-tests: New file.
47929         * tests/test-fseterr.c: New file.
47930
47931         * modules/fseterr: New file.
47932         * lib/fseterr.h: New file.
47933         * lib/fseterr.c: New file.
47934
47935 2007-03-08  Bruno Haible  <bruno@clisp.org>
47936
47937         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
47938         * lib/getopt_.h: Likewise.
47939         * lib/mbswidth.h: Likewise.
47940         * lib/setenv.h: Likewise.
47941         * lib/vasnprintf.h: Likewise.
47942         * lib/vasprintf.h: Likewise.
47943         * lib/verror.h: Likewise.
47944         * lib/xsetenv.h: Likewise.
47945         * lib/xvasprintf.h: Likewise.
47946
47947 2007-03-08  Jim Meyering  <jim@meyering.net>
47948
47949         * users.txt: Add parted.
47950
47951         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
47952
47953 2007-03-07  Bruno Haible  <bruno@clisp.org>
47954
47955         * m4/printf.m4: Make the shell script snippets copy&pastable.
47956
47957 2007-03-02  Bruno Haible  <bruno@clisp.org>
47958
47959         * lib/netinet_in_.h: New file.
47960         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
47961         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
47962         * modules/netinet_in (Files): Add lib/netinet_in_.h.
47963         (Depends-on): Add absolute-header.
47964         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
47965         into netinet/in.h.
47966
47967 2007-03-03  Bruno Haible  <bruno@clisp.org>
47968
47969         * lib/sys_select_.h: New file.
47970         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
47971         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
47972         * modules/sys_select (Files): Add lib/sys_select_.h.
47973         (Depends-on): Add absolute-header.
47974         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
47975         into sys/select.h.
47976
47977 2007-03-02  Bruno Haible  <bruno@clisp.org>
47978
47979         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
47980         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
47981         values.
47982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
47983         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
47984         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
47985         * modules/sys_socket (Depends-on): Add absolute-header.
47986         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
47987         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
47988         (Include): Remove requirement of inclusion of <sys/types.h>.
47989
47990 2007-03-02  Bruno Haible  <bruno@clisp.org>
47991
47992         * lib/byteswap_.h (bswap_32): Fix formula.
47993
47994 2007-03-06  Bruno Haible  <bruno@clisp.org>
47995
47996         * modules/sprintf-posix-tests: New file.
47997         * tests/test-sprintf-posix.c: New file.
47998
47999         * modules/sprintf-posix: New file.
48000         * lib/sprintf.c: New file.
48001         * m4/sprintf-posix.m4: New file.
48002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
48003         REPLACE_SPRINTF.
48004         * lib/stdio_.h (sprintf): New declaration.
48005         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
48006         REPLACE_SPRINTF.
48007
48008 2007-03-06  Bruno Haible  <bruno@clisp.org>
48009
48010         * modules/vsprintf-posix-tests: New file.
48011         * tests/test-vsprintf-posix.c: New file.
48012         * tests/test-sprintf-posix.h: New file.
48013
48014         * modules/vsprintf-posix: New file.
48015         * lib/vsprintf.c: New file.
48016         * m4/vsprintf-posix.m4: New file.
48017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
48018         REPLACE_VSPRINTF.
48019         * lib/stdio_.h (vsprintf): New declaration.
48020         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
48021         REPLACE_VSPRINTF.
48022
48023 2007-03-06  Bruno Haible  <bruno@clisp.org>
48024
48025         * modules/vsnprintf (Depend-on): Remove minmax.
48026
48027 2007-03-06  Bruno Haible  <bruno@clisp.org>
48028
48029         * modules/snprintf-posix-tests: New file.
48030         * tests/test-snprintf-posix.c: New file.
48031
48032         * modules/snprintf-posix: New file.
48033         * m4/snprintf-posix.m4: New file.
48034         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
48035         gl_FUNC_SNPRINTF.
48036         (gl_FUNC_SNPRINTF): Invoke it.
48037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
48038         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
48039         is set.
48040         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
48041
48042 2007-03-06  Bruno Haible  <bruno@clisp.org>
48043
48044         * modules/vsnprintf-posix-tests: New file.
48045         * tests/test-vsnprintf-posix.c: New file.
48046         * tests/test-snprintf-posix.h: New file.
48047
48048         * modules/vsnprintf-posix: New file.
48049         * m4/vsnprintf-posix.m4: New file.
48050         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
48051         gl_FUNC_VSNPRINTF.
48052         (gl_FUNC_VSNPRINTF): Invoke it.
48053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
48054         * lib/stdio_.h (vsnprintf): Define as a replacement if
48055         REPLACE_VSNPRINTF is set.
48056         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
48057
48058 2007-03-06  Bruno Haible  <bruno@clisp.org>
48059
48060         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
48061         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
48062
48063 2007-03-06  Bruno Haible  <bruno@clisp.org>
48064
48065         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
48066         (asinl): Declare also if HAVE_DECL_ASINL is set.
48067         (atanl): Declare also if HAVE_DECL_ATANL is set.
48068         (ceill): Declare also if HAVE_DECL_CEILL is set.
48069         (cosl): Declare also if HAVE_DECL_COSL is set.
48070         (expl): Declare also if HAVE_DECL_EXPL is set.
48071         (floorl): Declare also if HAVE_DECL_FLOORL is set.
48072         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
48073         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
48074         (logl): Declare also if HAVE_DECL_LOGL is set.
48075         (sinl): Declare also if HAVE_DECL_SINL is set.
48076         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
48077         (tanl): Declare also if HAVE_DECL_TANL is set.
48078         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
48079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
48080         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
48081         declaration of frexpl, ldexpl.
48082         * modules/printf-frexpl (Depends-on): Add math.
48083         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
48084
48085 2007-03-05  Bruno Haible  <bruno@clisp.org>
48086
48087         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
48088         frexpl and ldexpl are declared.
48089         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
48090
48091 2007-03-05  Bruno Haible  <bruno@clisp.org>
48092
48093         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
48094         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
48095
48096 2007-03-05  Bruno Haible  <bruno@clisp.org>
48097
48098         * lib/stdio_.h: Include <stddef.h>.
48099
48100 2007-03-05  Bruno Haible  <bruno@clisp.org>
48101
48102         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
48103
48104 2007-03-05  Bruno Haible  <bruno@clisp.org>
48105
48106         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
48107         NetBSD 4, from Ralf Wildenhues.
48108
48109 2007-03-04  Bruno Haible  <bruno@clisp.org>
48110
48111         * lib/vasprintf.h: Update #if logic for the case when the functions
48112         exist but are overridden.
48113
48114 2007-03-04  Bruno Haible  <bruno@clisp.org>
48115
48116         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
48117         implementations: glibc-2.4 and MacOS X 10.3.
48118         * tests/test-vasnprintf-posix.c (test_function): Test also the case
48119         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
48120         * tests/test-vasprintf-posix.c (test_function): Likewise.
48121
48122 2007-03-04  Bruno Haible  <bruno@clisp.org>
48123
48124         * modules/vasprintf-posix-tests: New file.
48125         * tests/test-vasprintf-posix.c: New file.
48126
48127         * modules/vasprintf-posix: New file.
48128         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
48129         defined.
48130         * m4/vasprintf-posix.m4: New file.
48131         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
48132         gl_FUNC_VASPRINTF.
48133         (gl_FUNC_VASPRINTF): Invoke it.
48134         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
48135         here.
48136         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
48137
48138 2007-03-04  Bruno Haible  <bruno@clisp.org>
48139
48140         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
48141         REPLACE_GETTIMEOFDAY.
48142         * modules/sys_time (Makefile.am): Likewise.
48143         * m4/sys_time_h.m4: Likewise.
48144         * m4/gettimeofday.m4: Likewise.
48145
48146 2007-03-04  Bruno Haible  <bruno@clisp.org>
48147
48148         * modules/vasnprintf-posix-tests: New file.
48149         * tests/test-vasnprintf-posix.c: New file.
48150
48151         * modules/vasnprintf-posix: New file.
48152         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
48153         printf-frexpl.h.
48154         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
48155         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
48156         REPLACE_VASNPRINTF is defined.
48157         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
48158         gl_FUNC_VASNPRINTF.
48159         (gl_FUNC_VASNPRINTF): Invoke it.
48160         * m4/vasnprintf-posix.m4: New file.
48161         * m4/printf.m4: New file.
48162
48163 2007-03-04  Bruno Haible  <bruno@clisp.org>
48164
48165         Compile progreloc.c only if --enable-relocatable is specified.
48166         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
48167         if --enable-relocatable was specified.
48168         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
48169         lib_SOURCES.
48170
48171 2007-03-04  Jim Meyering  <jim@meyering.net>
48172
48173         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
48174         Use it consistently, rather than enumerating errno constants.
48175
48176 2007-03-04  Bruno Haible  <bruno@clisp.org>
48177
48178         * modules/xvasprintf-tests: New file.
48179         * tests/test-xvasprintf.c: New file.
48180
48181         * modules/vasprintf-tests: New file.
48182         * tests/test-vasprintf.c: New file.
48183
48184         * modules/vasnprintf-tests: New file.
48185         * tests/test-vasnprintf.c: New file.
48186
48187         * modules/vsnprintf-tests: New file.
48188         * tests/test-vsnprintf.c: New file.
48189
48190         * modules/snprintf-tests: New file.
48191         * tests/test-snprintf.c: New file.
48192
48193 2007-03-04  Bruno Haible  <bruno@clisp.org>
48194
48195         Compile relocatable.c only if --enable-relocatable is specified.
48196         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
48197         gl_RELOCATABLE_LIBRARY.
48198         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
48199         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
48200         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
48201         gl_RELOCATABLE_LIBRARY.
48202         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
48203         (Makefile.am): Remove lib_SOURCES.
48204         * modules/relocatable-lib-lgpl (configure.ac): Invoke
48205         gl_RELOCATABLE_LIBRARY.
48206         (Makefile.am): Remove lib_SOURCES.
48207         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
48208         always.
48209         * modules/relocatable-prog-wrapper (configure.ac): Invoke
48210         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
48211
48212 2007-03-04  Bruno Haible  <bruno@clisp.org>
48213
48214         * modules/argmatch-tests: New file.
48215         * tests/test-argmatch.c: New file.
48216
48217         * tests/test-allocsa.c (main): Halve the number of loop runs.
48218
48219         * modules/alloca-opt-tests: New file.
48220         * tests/test-alloca-opt.c: New file.
48221
48222 2007-03-04  Jim Meyering  <jim@meyering.net>
48223
48224         Work around difference between Linux ACLs and Solaris 10 ZFS.
48225         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
48226         for EINVAL.
48227
48228 2007-03-03  Bruno Haible  <bruno@clisp.org>
48229
48230         * modules/relocatable-prog (Depends-on): Add back progreloc's
48231         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
48232
48233 2007-03-03  Bruno Haible  <bruno@clisp.org>
48234
48235         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
48236         * modules/relocatable-lib: New file.
48237
48238 2007-03-03  Bruno Haible  <bruno@clisp.org>
48239
48240         * modules/relocatable-prog: Renamed from modules/relocatable.
48241         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
48242
48243 2007-03-03  Bruno Haible  <bruno@clisp.org>
48244
48245         * modules/relocatable-script (Files): Add doc/relocatable.texi,
48246         m4/relocatable-lib.m4.
48247         (Depends-on): Remove 'relocatable'.
48248         (configure.ac): Add gl_RELOCATABLE_NOP.
48249
48250 2007-03-03  Bruno Haible  <bruno@clisp.org>
48251
48252         * modules/relocatable-prog-wrapper: New file.
48253         * modules/relocatable (Depends-on): Add it. Remove all other
48254         dependencies except progname.
48255         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
48256
48257         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
48258         (gl_FUNC_STRERROR): Nop.
48259         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
48260
48261         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
48262         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
48263
48264         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
48265         (gl_FUNC_READLINK): Update.
48266
48267         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
48268
48269 2007-03-03  Bruno Haible  <bruno@clisp.org>
48270
48271         * lib/xreadlink.c: Include <unistd.h> unconditionally.
48272         * modules/xreadlink (Depends-on): Add unistd.
48273         * modules/xreadlink-with-size (Depends-on): Likewise.
48274
48275 2007-03-03  Bruno Haible  <bruno@clisp.org>
48276
48277         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
48278         extracted from gt_FUNC_SETENV.
48279         (gt_FUNC_SETENV): Remove macro.
48280         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
48281         remove gt_FUNC_SETENV.
48282
48283 2007-03-03  Bruno Haible  <bruno@clisp.org>
48284
48285         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
48286         ENABLE_RELOCATABLE here.
48287         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
48288
48289 2007-03-03  Bruno Haible  <bruno@clisp.org>
48290
48291         * modules/rbtreehash-list-tests (Depends-on): Add progname.
48292         * tests/test-rbtreehash_list.c: Include progname.h.
48293         (main): Call set_program_name.
48294
48295         * modules/rbtree-oset-tests (Depends-on): Add progname.
48296         * tests/test-rbtree_oset.c: Include progname.h.
48297         (main): Call set_program_name.
48298
48299         * modules/rbtree-list-tests (Depends-on): Add progname.
48300         * tests/test-rbtree_list.c: Include progname.h.
48301         (main): Call set_program_name.
48302
48303         * modules/linked-list-tests (Depends-on): Add progname.
48304         * tests/test-linked_list.c: Include progname.h.
48305         (main): Call set_program_name.
48306
48307 2007-03-03  Bruno Haible  <bruno@clisp.org>
48308
48309         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
48310         All uses of __restrict changed to _Restrict_.
48311         * lib/glob_.h (__restrict): Remove macro.
48312
48313 2007-03-02  Bruno Haible  <bruno@clisp.org>
48314
48315         * modules/gettext (configure.ac): Require gettext infrastructure
48316         from version 0.16.1.
48317
48318 2007-03-02  Bruno Haible  <bruno@clisp.org>
48319
48320         * modules/linkedhash-list-tests (Depends-on): Add progname.
48321         * tests/test-linkedhash_list.c: Include progname.h.
48322         (main): Call set_program_name.
48323
48324         * modules/carray-list-tests (Depends-on): Add progname.
48325         * tests/test-carray_list.c: Include progname.h.
48326         (main): Call set_program_name.
48327
48328         * modules/avltreehash-list-tests (Depends-on): Add progname.
48329         * tests/test-avltreehash_list.c: Include progname.h.
48330         (main): Call set_program_name.
48331
48332         * modules/avltree-oset-tests (Depends-on): Add progname.
48333         * tests/test-avltree_oset.c: Include progname.h.
48334         (main): Call set_program_name.
48335
48336         * modules/avltree-list-tests (Depends-on): Add progname.
48337         * tests/test-avltree_list.c: Include progname.h.
48338         (main): Call set_program_name.
48339
48340         * modules/array-oset-tests (Depends-on): Add progname.
48341         * tests/test-array_oset.c: Include progname.h.
48342         (main): Call set_program_name.
48343
48344         * modules/array-list-tests (Depends-on): Add progname.
48345         * tests/test-array_list.c: Include progname.h.
48346         (main): Call set_program_name.
48347
48348         * modules/argp-tests (Depends-on): Add progname.
48349         * tests/test-argp.c: Include argp.h first. Include progname.h.
48350         (main): Call set_program_name.
48351
48352 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
48353
48354         * doc/gnulib-tool.texi (Initial import): Reword description of
48355         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
48356         limited effect even if defined after the first system include.
48357
48358 2007-03-01  Bruno Haible  <bruno@clisp.org>
48359
48360         * build-aux/config.libpath: Update to libtool-1.5.22.
48361         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48362
48363 2007-03-01  Bruno Haible  <bruno@clisp.org>
48364
48365         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
48366         foo_CFLAGS.
48367         Reported by Ralf Wildenhues.
48368
48369 2007-03-01  Bruno Haible  <bruno@clisp.org>
48370
48371         * build-aux/install-reloc: Remove object files left over by some
48372         compilers.
48373         Reported by Ralf Wildenhues.
48374
48375 2007-03-01  Bruno Haible  <bruno@clisp.org>
48376
48377         * build-aux/install-reloc: Break long lines.
48378
48379 2007-03-01  Bruno Haible  <bruno@clisp.org>
48380
48381         * doc/relocatable.texi: Document that it may not work on OpenBSD.
48382         Reported by Ralf Wildenhues.
48383
48384 2007-03-01  Bruno Haible  <bruno@clisp.org>
48385
48386         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
48387         include ordering constraints.
48388
48389 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48390
48391         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
48392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
48393         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
48394         as another example.
48395         * lib/time_.h: Fix misspelling.
48396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48397         Require gl_HEADER_TIME_H_DEFAULTS.
48398         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
48399         * m4/time_r.m4 (gl_TIME_R): Likewise.
48400         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
48401
48402 2007-03-01  Bruno Haible  <bruno@clisp.org>
48403
48404         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
48405         * m4/utimens.m4 (gl_UTIMENS): Likewise.
48406
48407 2007-03-01  Jim Meyering  <jim@meyering.net>
48408
48409         * modules/xreadlink (Maintainer): Add my name.
48410         * modules/xreadlink-with-size (Depends-on): Alphabetize.
48411
48412 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
48413             Bruno Haible  <bruno@clisp.org>
48414
48415         * build-aux/install-reloc: Compile also c-ctype.c.
48416         * build-aux/relocatable.sh.in: New file.
48417         * doc/relocatable.texi: New file.
48418         * doc/relocatable-maint.texi: New file.
48419         * doc/gnulib.texi: Include relocatable-maint.texi.
48420         * lib/progreloc.c: Include unistd.h unconditionally.
48421         * lib/relocwrapper.c: Include unistd.h unconditionally.
48422         Include c-ctype.h.
48423         (add_dotbin): Use c_tolower.
48424         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
48425         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
48426         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
48427         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
48428         to m4/relocatable-lib.m4.
48429         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
48430         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
48431         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
48432         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
48433         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
48434         * modules/relocatable: New file.
48435         * modules/relocatable-lib: New file.
48436         * modules/relocatable-script: New file.
48437
48438 2007-02-28  Bruno Haible  <bruno@clisp.org>
48439
48440         Import --enable-relocatable infrastructure.
48441         * build-aux/config.libpath: New file, from GNU gettext.
48442         * build-aux/install-reloc: New file, from GNU gettext.
48443         * build-aux/reloc-ldflags: New file, from GNU gettext.
48444         * lib/relocatable.h: New file, from GNU gettext.
48445         * lib/relocatable.c: New file, from GNU gettext.
48446         * lib/relocwrapper.c: New file, from GNU gettext.
48447         * m4/relocatable.m4: New file, from GNU gettext.
48448
48449 2007-02-28  Bruno Haible  <bruno@clisp.org>
48450
48451         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
48452
48453         * modules/xreadlink: New file, from GNU gettext with modifications.
48454         * lib/xreadlink.c: New file, from GNU gettext.
48455         * lib/xreadlink.h: Add comments.
48456         (xreadlink): New declaration.
48457
48458         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
48459         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
48460         lib/xreadlink-with-size.c.
48461         (configure.ac): Remove gl_XREADLINK invocation.
48462         (Makefile.am): Augment lib_SOURCES.
48463         * m4/xreadlink.m4: Remove file.
48464         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
48465         (xreadlink_with_size): Renamed from xreadink.
48466         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
48467         * modules/canonicalize (Depends-on): Replace xreadlink with
48468         xreadlink-with-size.
48469         * lib/canonicalize.c (canonicalize_filename_mode): Update.
48470
48471 2007-02-25  Jim Meyering  <jim@meyering.net>
48472
48473         * build-aux/announce-gen: When complaining about excess arguments,
48474         list them.
48475
48476 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
48477
48478         * README: Document signed integer overflow situation more
48479         accurately.
48480
48481 2007-02-25  Bruno Haible  <bruno@clisp.org>
48482
48483         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
48484         'a' or 'A' conversion.
48485
48486 2007-02-25  Bruno Haible  <bruno@clisp.org>
48487
48488         * modules/filename: Renamed from modules/pathname.
48489         (Files): Replace lib/pathname.h with lib/filename.h. Replace
48490         lib/concatpath.c with lib/concat-filename.c.
48491         (Makefile.am): Update.
48492         (Include): Replace pathname.h with filename.h.
48493         * lib/filename.h: Renamed from lib/pathname.h.
48494         (concatenated_filename): Renamed from concatenated_pathname.
48495         * lib/concat-filename.c: Renamed from lib/concatpath.c.
48496         (concatenated_filename): Renamed from concatenated_pathname.
48497         * lib/findprog.c: Include filename.h instead of pathname.h.
48498         (find_in_path): Update.
48499         * lib/javacomp.c: Include filename.h instead of pathname.h.
48500         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48501         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48502         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48503         is_oldgcj_14_13_usable, is_javac_usable): Update.
48504         * lib/javaexec.c: Include filename.h instead of pathname.h.
48505         (execute_java_class): Update.
48506         * modules/findprog: Update.
48507         * modules/javacomp: Update.
48508         * modules/javaexec: Update.
48509         * MODULES.html.sh (File system functions): Add 'filename', remove
48510         'pathname'.
48511
48512 2007-02-25  Bruno Haible  <bruno@clisp.org>
48513
48514         * modules/printf-frexpl-tests: New file.
48515         * tests/test-printf-frexpl.c: New file.
48516
48517         * modules/printf-frexpl: New file.
48518         * lib/printf-frexpl.h: New file.
48519         * lib/printf-frexpl.c: New file.
48520         * m4/printf-frexpl.m4: New file.
48521
48522 2007-02-25  Bruno Haible  <bruno@clisp.org>
48523
48524         * modules/printf-frexp-tests: New file.
48525         * tests/test-printf-frexp.c: New file.
48526
48527         * modules/printf-frexp: New file.
48528         * lib/printf-frexp.h: New file.
48529         * lib/printf-frexp.c: New file.
48530         * m4/printf-frexp.m4: New file.
48531
48532 2007-02-25  Bruno Haible  <bruno@clisp.org>
48533
48534         Assume automake >= 1.10 for the tests.
48535         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
48536         * modules/arctwo-tests: Likewise.
48537         * modules/argp-tests: Likewise.
48538         * modules/avltree-list-tests: Likewise.
48539         * modules/avltree-oset-tests: Likewise.
48540         * modules/avltreehash-list-tests: Likewise.
48541         * modules/carray-list-tests: Likewise.
48542         * modules/crc-tests: Likewise.
48543         * modules/des-tests: Likewise.
48544         * modules/gc-arcfour-tests: Likewise.
48545         * modules/gc-arctwo-tests: Likewise.
48546         * modules/gc-des-tests: Likewise.
48547         * modules/gc-hmac-md5-tests: Likewise.
48548         * modules/gc-hmac-sha1-tests: Likewise.
48549         * modules/gc-md2-tests: Likewise.
48550         * modules/gc-md4-tests: Likewise.
48551         * modules/gc-md5-tests: Likewise.
48552         * modules/gc-pbkdf2-sha1-tests: Likewise.
48553         * modules/gc-rijndael-tests: Likewise.
48554         * modules/gc-sha1-tests: Likewise.
48555         * modules/gc-tests: Likewise.
48556         * modules/getaddrinfo-tests: Likewise.
48557         * modules/hmac-md5-tests: Likewise.
48558         * modules/hmac-sha1-tests: Likewise.
48559         * modules/linked-list-tests: Likewise.
48560         * modules/linkedhash-list-tests: Likewise.
48561         * modules/lock-tests: Likewise.
48562         * modules/md2-tests: Likewise.
48563         * modules/md4-tests: Likewise.
48564         * modules/md5-tests: Likewise.
48565         * modules/rbtree-list-tests: Likewise.
48566         * modules/rbtree-oset-tests: Likewise.
48567         * modules/rbtreehash-list-tests: Likewise.
48568         * modules/read-file-tests: Likewise.
48569         * modules/rijndael-tests: Likewise.
48570         * modules/stdint-tests: Likewise.
48571         * modules/tls-tests: Likewise.
48572
48573 2007-02-24  Bruno Haible  <bruno@clisp.org>
48574
48575         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
48576         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
48577         function; instead check whether isnan with a double argument links.
48578         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
48579         function; instead check whether isnan with a 'long double' argument
48580         links.
48581         Reported by Eric Blake <ebb9@byu.net>.
48582
48583 2007-02-24  Bruno Haible  <bruno@clisp.org>
48584
48585         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
48586         defined.
48587         * lib/isnanl.c: Remove all code. Just include isnan.c.
48588         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
48589
48590 2007-02-25  Jim Meyering  <jim@meyering.net>
48591
48592         Avoid conflicting types for 'unsetenv' on FreeBSD.
48593         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
48594         conflicting with FreeBSD's (5.0 and 6.1) function declaration
48595         in stdlib.h.
48596
48597 2007-02-24  Bruno Haible  <bruno@clisp.org>
48598
48599         * modules/isnanl-nolibm-tests: New file.
48600         * tests/test-isnanl.c: New file.
48601
48602         * modules/isnanl-nolibm: New file.
48603         * lib/isnanl.h: New file.
48604         * lib/isnanl.c: New file.
48605         * m4/isnanl.m4: New file.
48606
48607 2007-02-24  Bruno Haible  <bruno@clisp.org>
48608
48609         * modules/isnan-nolibm-tests: New file.
48610         * tests/test-isnan.c: New file.
48611
48612         * modules/isnan-nolibm: New file.
48613         * lib/isnan.h: New file.
48614         * lib/isnan.c: New file.
48615         * m4/isnan.m4: New file.
48616
48617 2007-02-24  Bruno Haible  <bruno@clisp.org>
48618
48619         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
48620         assume that an exponent fits in 20 bits.
48621
48622 2007-02-24  Jim Meyering  <jim@meyering.net>
48623
48624         * m4/regex.m4: Update the description of the configure-time option,
48625         --without-included-regex, to state accurately what the defaults are,
48626         and perhaps to give people an idea why using this option is risky.
48627
48628 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48629
48630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
48631         loops on small arguments.  This attempts to avoid the problem
48632         Bruno Haible reported for AIX 4.3.2 in
48633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
48634
48635 2007-02-23  Bruno Haible  <bruno@clisp.org>
48636
48637         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
48638         Needed for help2man.
48639
48640 2007-02-23  Karl Berry  <karl@gnu.org>
48641
48642         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
48643         exists, foo.h should be cvs-ignored, not committed.
48644
48645 2007-02-23  Eric Blake  <ebb9@byu.net>
48646
48647         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
48648         * lib/stat-time.h (includes): Likewise.
48649         * lib/utimecmp.c (includes): Likewise.
48650         * lib/utimens.h (includes): Likewise.
48651         * lib/getdate.y (includes): Also include "timespec.h" for use
48652         internal to the module.
48653         * modules/utimens (Depends-on): Revert yesterday's patch.
48654         * modules/nanosleep (Depends-on): Add missing dependency.
48655
48656 2007-02-22  Bruno Haible  <bruno@clisp.org>
48657
48658         * lib/glob.c: Don't include getlogin_r.h.
48659
48660 2007-02-22  Jim Meyering  <jim@meyering.net>
48661
48662         * modules/utimens (Depends-on): Add timespec, required for
48663         utimens.h's inclusion of timespec.h.
48664
48665 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
48666
48667         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
48668         long unreadable paths in GNU/Linux.  Problem reported by Andreas
48669         Schwab in
48670         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
48671         I'll try to think of a better way to fix the Solaris problem.
48672
48673         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
48674         like glibc; on Solaris 10, it fails with errno == EINVAL.
48675         POSIX says the behavior is unspecified if the first argument is NULL,
48676         so play it safe and never pass NULL to the system getcwd.
48677
48678 2007-02-21  Jim Meyering  <jim@meyering.net>
48679
48680         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
48681         of gettimeofday.  It would conflict with the one now always
48682         provided via sys_time_.h.  Reported by Matthew Woehlke, as
48683         an IRIX 6.5 build failure.
48684
48685 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48686
48687         Minor fixups to port to Solaris 10 with Sun C 5.8.
48688         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
48689         * modules/getcwd (Depends-on): Add dirfd.
48690         * lib/putenv.c (putenv): #undef it.
48691         (rpl_putenv): New decl.
48692         (malloc, free): Include <stdlib.h> rather than prototyping separately.
48693
48694 2007-02-20  Bruno Haible  <bruno@clisp.org>
48695
48696         * modules/stdio-tests: New file.
48697         * tests/test-stdio.c: New file.
48698
48699         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
48700         (Depends-on): Add stdio.
48701         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48702         (Include): Use <stdio.h> instead of vsnprintf.h.
48703         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48704         HAVE_DECL_VSNPRINTF.
48705         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
48706
48707         * modules/snprintf (Files): Remove lib/snprintf.h.
48708         (Depends-on): Add stdio.
48709         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
48710         (Include): Use <stdio.h> instead of snprintf.h.
48711         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
48712         HAVE_DECL_SNPRINTF.
48713         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
48714         * lib/getaddrinfo.c: Likewise.
48715
48716         * modules/stdio: New file.
48717         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
48718         * lib/snprintf.h: Remove file.
48719         * lib/vsnprintf.h: Remove file.
48720         * lib/.cppi-disable: Remove snprintf.h.
48721         * m4/stdio_h.m4: New file.
48722         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
48723
48724 2007-02-20  Jim Meyering  <jim@meyering.net>
48725
48726         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
48727         used by e.g., mingw.  From Bruno Haible.
48728
48729 2007-02-19  Bruno Haible  <bruno@clisp.org>
48730
48731         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
48732         warnings.
48733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48734
48735 2007-02-19  Bruno Haible  <bruno@clisp.org>
48736
48737         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
48738         from mingw users.
48739
48740 2007-02-19  Bruno Haible  <bruno@clisp.org>
48741
48742         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
48743         warnings.
48744         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
48745
48746 2007-02-19  Jim Meyering  <jim@meyering.net>
48747
48748         Don't use FD after a successful "fdopendir (fd)".
48749         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
48750         Reset it by calling dirfd on the just-obtained DIR*.
48751
48752         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
48753         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
48754
48755 2007-02-18  Bruno Haible  <bruno@clisp.org>
48756
48757         * lib/readlink.c: Include <unistd.h>.
48758         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
48759         HAVE_READLINK.
48760         * modules/readlink (Depends-on): Add unistd.
48761         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48762         (Include): Add <unistd.h>.
48763
48764         * lib/getlogin_r.h: Remove file.
48765         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
48766         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
48767         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
48768         HAVE_DECL_GETLOGIN_R.
48769         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
48770         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48771         (Include): Use <unistd.h> instead of getlogin_r.h.
48772
48773         * lib/getcwd.h: Remove file.
48774         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
48775         * lib/xgetcwd.c: Likewise.
48776         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
48777         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
48778         * modules/getcwd (Files): Remove lib/getcwd.h.
48779         (Depends-on): Add unistd.
48780         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48781         (Include): Use <unistd.h> instad of getcwd.h.
48782
48783         * lib/ftruncate.c: Include <unistd.h> first.
48784         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
48785         Set HAVE_FTRUNCATE.
48786         * modules/ftruncate (Depends-on): Add unistd.
48787         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48788
48789         * lib/fchdir.c: Include <unistd.h> first.
48790         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
48791         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
48792         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
48793         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48794         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
48795
48796         * lib/dup2.c: Include <unistd.h> first.
48797         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
48798         HAVE_DUP2.
48799         * modules/dup2 (Depends-on): Add unistd.
48800         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48801
48802         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
48803         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
48804         REPLACE_CHOWN. Don't define chown as a macro here.
48805         * modules/chown (Depends-on): Add unistd.
48806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48807
48808         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
48809         Add definition for GL_LINK_WARNING.
48810         (chown, dup2): New declarations.
48811         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
48812         link warning.
48813         (ftruncate): New declaration.
48814         (getcwd): New declaration, taken from old getcwd.h.
48815         (getlogin_r): New declaration, taken from old getlogin_r.h.
48816         (readlink): New declaration.
48817         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
48818         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
48819         (gl_PREREQ_UNISTD): Remove macro.
48820         (gl_UNISTD_MODULE_INDICATOR): New macro.
48821         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
48822         many new variables. Don't set UNISTD_H.
48823         * modules/unistd (Description): Change.
48824         (Depends-on): Add link-warning.
48825         (configure.ac): Update.
48826         (Makefile.am): Create unistd.h always. Substitute many new variables
48827         into it.
48828
48829 2007-02-18  Bruno Haible  <bruno@clisp.org>
48830
48831         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
48832         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
48833         HAVE_GETSUBOPT.
48834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
48835         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
48836         * lib/getsubopt.h: Remove file.
48837         * modules/getsubopt (Files): Remove lib/getsubopt.h.
48838         (Depends-on): Add stdlib.
48839         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48840         (Includes): Use <stdlib.h> instead of getsubopt.h.
48841         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
48842         Set HAVE_GETSUBOPT.
48843         * lib/getsubopt.c: Don't include getsubopt.h.
48844
48845 2007-02-18  Bruno Haible  <bruno@clisp.org>
48846
48847         * modules/fchdir (Depends-on): Add dup2.
48848
48849 2007-02-18  Bruno Haible  <bruno@clisp.org>
48850
48851         * lib/stdlib_.h: Handle glibc's special invocation convention
48852         specially.
48853
48854 2007-02-18  Bruno Haible  <bruno@clisp.org>
48855
48856         * modules/stdlib-tests: New file.
48857         * tests/test-stdlib.c: New file.
48858
48859         * modules/mkstemp (Files): Remove lib/mkstemp.h.
48860         (Depends-on): Add stdlib.
48861         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48862         (Includes): Use <stdlib.h> instead of mkstemp.h.
48863         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
48864         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
48865         * lib/mkstemp.c: Don't include mkstemp.h.
48866         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
48867         * lib/stdlib--.h: Don't include mkstemp.h.
48868
48869         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
48870         (Depends-on): Add stdlib.
48871         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48872         (Includes): Use <stdlib.h> instead of mkdtemp.h.
48873         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
48874         HAVE_MKDTEMP.
48875         * lib/mkdtemp.c: Don't include mkdtemp.h.
48876         * lib/clean-temp.c: Don't include mkdtemp.h.
48877
48878         * modules/exit (Files): Remove lib/exit.h.
48879         (Depends-on): Add stdlib.
48880         (Makefile.am): Remove lib_SOURCES.
48881         (Include): Use <stdlib.h> instead of exit.h.
48882         * lib/argmatch.c: Don't include exit.h.
48883         * lib/execute.c: Likewise.
48884         * lib/pagealign_alloc.c: Likewise.
48885         * lib/pipe.c: Likewise.
48886         * lib/wait-process.c: Likewise.
48887         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
48888         * lib/exitfail.c: Likewise.
48889         * lib/savewd.c: Likewise.
48890         * lib/xsetenv.c: Likewise.
48891
48892         * modules/stdlib: New file.
48893         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
48894         and extra comments about mkstemp().
48895         * lib/exit.h: Remove file.
48896         * lib/mkdtemp.h: Remove file.
48897         * lib/mkstemp.h: Remove file.
48898         * m4/stdlib_h.m4: New file.
48899         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
48900
48901 2007-02-18  Bruno Haible  <bruno@clisp.org>
48902
48903         * modules/math-tests: New file.
48904         * tests/test-math.c: New file.
48905
48906         * modules/math: New file.
48907         * modules/mathl (Files): Remove lib/mathl.h.
48908         (Depends-on): Add math.
48909         (Makefile.am): Don't mention mathl.h.
48910         (Include): Use <math.h> instead of mathl.h.
48911         * lib/math_.h: New file.
48912         * lib/mathl.h: Remove file.
48913         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
48914         mathl.h.
48915         * lib/asinl.c: Likewise.
48916         * lib/atanl.c: Likewise.
48917         * lib/ceill.c: Likewise.
48918         * lib/cosl.c: Likewise.
48919         * lib/expl.c: Likewise.
48920         * lib/floorl.c: Likewise.
48921         * lib/frexpl.c: Likewise.
48922         * lib/ldexpl.c: Likewise.
48923         * lib/logl.c: Likewise.
48924         * lib/sincosl.c: Likewise.
48925         * lib/sinl.c: Likewise.
48926         * lib/sqrtl.c: Likewise.
48927         * lib/tanl.c: Likewise.
48928         * lib/trigl.c: Likewise.
48929         * m4/math_h.m4: New file.
48930         * MODULES.html.sh (Mathematics): Add math.
48931
48932 2007-02-17  Bruno Haible  <bruno@clisp.org>
48933
48934         * modules/wctype-tests: New file.
48935         * tests/test-wctype.c: New file.
48936
48937         * modules/wchar-tests: New file.
48938         * tests/test-wchar.c: New file.
48939
48940         * modules/unistd-tests: New file.
48941         * tests/test-unistd.c: New file.
48942
48943         * modules/time-tests: New file.
48944         * tests/test-time.c: New file.
48945
48946         * modules/sysexits-tests: New file.
48947         * tests/test-sysexits.c: New file.
48948
48949         * modules/sys_time-tests: New file.
48950         * tests/test-sys_time.c: New file.
48951
48952         * modules/sys_stat-tests: New file.
48953         * tests/test-sys_stat.c: New file.
48954
48955         * modules/sys_socket-tests: New file.
48956         * tests/test-sys_socket.c: New file.
48957
48958         * modules/sys_select-tests: New file.
48959         * tests/test-sys_select.c: New file.
48960
48961         * modules/string-tests: New file.
48962         * tests/test-string.c: New file.
48963
48964         * modules/stdbool-tests: New file.
48965         * tests/test-stdbool.c: New file.
48966
48967         * modules/netinet_in-tests: New file.
48968         * tests/test-netinet_in.c: New file.
48969
48970         * modules/inttypes-tests: New file.
48971         * tests/test-inttypes.c: New file.
48972
48973         * modules/fcntl-tests: New file.
48974         * tests/test-fcntl.c: New file.
48975
48976         * modules/byteswap-tests: New file.
48977         * tests/test-byteswap.c: New file.
48978
48979         * modules/arpa_inet-tests: New file.
48980         * tests/test-arpa_inet.c: New file.
48981
48982 2007-02-17  Bruno Haible  <bruno@clisp.org>
48983
48984         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
48985         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
48986         if the corresponding module is not enabled. Emit link warnings if
48987         the function is used nevertheless.
48988         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
48989         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
48990         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
48991         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
48992         * modules/inttypes (Depends-on): Add link-warning.
48993         (Makefile.am): Copy the contents of build-aux/link-warning.h into
48994         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
48995         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
48996         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
48997         * modules/imaxdiv (configure.ac): Likewise.
48998         * modules/strtoimax (configure.ac): Likewise.
48999         * modules/strtoumax (configure.ac): Likewise.
49000
49001 2007-02-17  Bruno Haible  <bruno@clisp.org>
49002
49003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
49004         gl_STRING_MODULE_INDICATOR_DEFAULTS.
49005         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
49006         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
49007
49008 2007-02-17  Bruno Haible  <bruno@clisp.org>
49009
49010         * modules/link-warning: New file.
49011         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
49012         * lib/string_.h (GL_LINK_WARNING): Remove definition.
49013         * modules/string (Depends-on): Add link-warning.
49014         (Makefile.am): Copy the contents of build-aux/link-warning.h into
49015         string.h.
49016         * MODULES.html.sh (Support for building libraries and executables): Add
49017         link-warning.
49018
49019 2007-02-17  Bruno Haible  <bruno@clisp.org>
49020
49021         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
49022         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
49023         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
49024         long lines.
49025
49026 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
49027             Bruno Haible  <bruno@clisp.org>
49028
49029         * modules/tmpfile: New file.
49030         * lib/tmpfile.c: New file.
49031         * m4/tmpfile.m4: New file.
49032         * MODULES.html.sh (func_all_modules): New section "Input/output".
49033
49034 2007-02-15  Bruno Haible  <bruno@clisp.org>
49035
49036         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
49037         (supports_delete_on_close): New function.
49038         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
49039
49040 2007-02-14  Bruno Haible  <bruno@clisp.org>
49041
49042         * modules/mbspcasecmp-tests: New file.
49043         * tests/test-mbspcasecmp.sh: New file.
49044         * tests/test-mbspcasecmp.c: New file.
49045
49046         New module mbspcasecmp.
49047         * modules/mbspcasecmp: New file.
49048         * lib/mbspcasecmp.c: New file.
49049         * lib/string_.h (strncasecmp): Change warning message.
49050         (mbspcasecmp): New declaration.
49051         * m4/mbspcasecmp.m4: New file.
49052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49053         GNULIB_MBSPCASECMP.
49054         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
49055         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
49056
49057 2007-02-14  Bruno Haible  <bruno@clisp.org>
49058
49059         * modules/mbsncasecmp-tests: New file.
49060         * tests/test-mbsncasecmp.sh: New file.
49061         * tests/test-mbsncasecmp.c: New file.
49062
49063         New module mbsncasecmp.
49064         * modules/mbsncasecmp: New file.
49065         * lib/mbsncasecmp.c: New file.
49066         * lib/string_.h (mbsncasecmp): New declaration.
49067         * m4/mbsncasecmp.m4: New file.
49068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49069         GNULIB_MBSNCASECMP.
49070         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
49071         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
49072
49073 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
49074
49075         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
49076         Verify that it doesn't overlap with our flags.
49077         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
49078         do not have the desired effect in multibyte locales; instead, use
49079         mbscasecmp.
49080         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
49081         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
49082         we don't require GNU fnmatch ourselves (if our users require it, they
49083         should do so explicitly).
49084
49085         Fix regex code so it doesn't rely on strcasecmp.
49086         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
49087         Otherwise, include gnulib's langinfo.h.
49088         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
49089         undesirable behavior in non-C locales.  Instead, rely on localecharset.
49090         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
49091         * modules/regex (FILES): Remove m4/codeset.m4.
49092         (Depends-on): Add localcharset.  Remove strcase.
49093
49094 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49095
49096         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
49097         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
49098
49099 2007-02-13  Bruno Haible  <bruno@clisp.org>
49100
49101         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
49102         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49103
49104 2007-02-12  Bruno Haible  <bruno@clisp.org>
49105
49106         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
49107         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
49108         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
49109         time warning rather than a link error.
49110
49111 2007-02-12  Bruno Haible  <bruno@clisp.org>
49112
49113         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
49114         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49115         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49116
49117 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
49118
49119         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
49120         args, not 2.
49121
49122 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
49123
49124         New module 'time', so that apps can include <time.h> as per
49125         POSIX and GNU instead of separate include files like time_r.h
49126         and timegm.h.  This implementation tries out a simpler approach
49127         for replacing decls in standard include files (as compared to
49128         the string module), somewhat as an experiment.
49129
49130         * config/srclist.txt: Comment out mktime.c for now.
49131         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
49132         since it doesn't apply any more.  Use generic wording instead.
49133         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
49134         'time'.
49135         * lib/time_.h, m4/time_h.m4, modules/time: New files.
49136         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
49137         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
49138         Don't include <sys/types.h>; no longer needed since we assume C89.
49139         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
49140         * lib/strftime.c: Likewise.
49141         * lib/time_r.c: Likewise.
49142         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
49143         * lib/nanosleep.c: Include <time.h> first, to check interface.
49144         * lib/strptime.c: Likewise.
49145         * lib/time_r.c: Likewise.
49146         * lib/timegm.c: Likewise.
49147         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
49148         needed.
49149         * lib/timegm.c: Don't include timegm.h; no longer needed.
49150         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
49151         time.h now handles any problems in that area.
49152         (struct timespec, nanosleep): Remove; time.h now arranges for these.
49153         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
49154         that time.h defines struct timespec.
49155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
49156         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
49157         handles that.
49158         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
49159         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
49160         needed.  Set REPLACE_LOCALTIME.
49161         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
49162         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
49163         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
49164         nanosleep; time_h.m4 now does that.  Don't require
49165         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
49166         module handles this now.
49167         * modules/getdate (Depends-on): Remove timespec.  Add time.
49168         * modules/nanosleep (Depends-on): Likewise.
49169         * modules/stat-time (Depends-on): Likewise.
49170         * modules/nanosleep (Include): Include time.h, not timespec.h.
49171         * modules/strptime (Files): Remove lib/strptime.h.
49172         (Depends-on): Add extensions, time.
49173         (Include): Include time.h, not strptime.h.
49174         * modules/time_r (Files): Remove lib/time_r.h.
49175         (Depends-on): Add time.
49176         (Include): Include time.h, not time_r.h.
49177         * modules/timegm: Likewise.
49178         * modules/timespec (Description): Now does timespec-related decls
49179         of our own, instead of struct timespec itself.
49180         (Depends-on): Add time; remove extensions.
49181         (Maintainer): Add self.
49182         * modules/utimecmp (Depends-on): Add time; remove timespec.
49183         * modules/utimens (Depends-on): Likewise.
49184         * modules/xnanosleep (Depends-on): Likewise.
49185
49186 2007-02-11  Bruno Haible  <bruno@clisp.org>
49187
49188         * lib/c-strstr.c: Include allocsa.h.
49189         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49190         * lib/c-strcasestr.c: Include allocsa.h.
49191         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49192         * lib/strcasestr.c: Include allocsa.h.
49193         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
49194         * lib/mbsstr.c: Include allocsa.h.
49195         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
49196         allocsa/freesa instead of malloc/free.
49197         * lib/mbscasestr.c: Include allocsa.h.
49198         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
49199         allocsa/freesa instead of malloc/free.
49200         * modules/c-strstr (Depends-on): Add allocsa.
49201         * modules/c-strcasestr (Depends-on): Likewise.
49202         * modules/strcasestr (Depends-on): Likewise.
49203         * modules/mbsstr (Depends-on): Likewise.
49204         * modules/mbscasestr (Depends-on): Likewise.
49205
49206 2007-02-11  Bruno Haible  <bruno@clisp.org>
49207
49208         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
49209
49210         * modules/mbsspn-tests: New file.
49211         * tests/test-mbsspn.sh: New file.
49212         * tests/test-mbsspn.c: New file.
49213
49214 2007-02-11  Bruno Haible  <bruno@clisp.org>
49215
49216         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
49217
49218         * modules/mbspbrk-tests: New file.
49219         * tests/test-mbspbrk.sh: New file.
49220         * tests/test-mbspbrk.c: New file.
49221
49222 2007-02-11  Bruno Haible  <bruno@clisp.org>
49223
49224         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
49225         unneeded cast.
49226
49227         * modules/mbscspn-tests: New file.
49228         * tests/test-mbscspn.sh: New file.
49229         * tests/test-mbscspn.c: New file.
49230
49231 2007-02-11  Bruno Haible  <bruno@clisp.org>
49232
49233         * modules/mbscasecmp-tests: New file.
49234         * tests/test-mbscasecmp.sh: New file.
49235         * tests/test-mbscasecmp.c: New file.
49236
49237 2007-02-11  Bruno Haible  <bruno@clisp.org>
49238
49239         Ensure O(n) worst-case complexity of mbscasestr.
49240         * lib/mbscasestr.c: Include stdbool.h.
49241         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
49242         functions.
49243         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
49244         the bookkeeping indicates that it's worth it.
49245         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
49246
49247         * modules/mbscasestr-tests: New file.
49248         * tests/test-mbscasestr1.c: New file.
49249         * tests/test-mbscasestr2.sh: New file.
49250         * tests/test-mbscasestr2.c: New file.
49251         * tests/test-mbscasestr3.sh: New file.
49252         * tests/test-mbscasestr3.c: New file.
49253         * tests/test-mbscasestr4.sh: New file.
49254         * tests/test-mbscasestr4.c: New file.
49255         * m4/locale-tr.m4: New file.
49256
49257 2007-02-11  Bruno Haible  <bruno@clisp.org>
49258
49259         Ensure O(n) worst-case complexity of mbsstr.
49260         * lib/mbsstr.c: Include stdbool.h.
49261         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
49262         functions.
49263         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
49264         bookkeeping indicates that it's worth it.
49265         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
49266
49267         * modules/mbsstr-tests: New file.
49268         * tests/test-mbsstr1.c: New file.
49269         * tests/test-mbsstr2.sh: New file.
49270         * tests/test-mbsstr2.c: New file.
49271         * tests/test-mbsstr3.sh: New file.
49272         * tests/test-mbsstr3.c: New file.
49273         * m4/locale-fr.m4: New file.
49274
49275 2007-02-11  Bruno Haible  <bruno@clisp.org>
49276
49277         * lib/mbsrchr.c (mbsrchr): Fix bug.
49278
49279         * modules/mbsrchr-tests: New file.
49280         * tests/test-mbsrchr.sh: New file.
49281         * tests/test-mbsrchr.c: New file.
49282
49283 2007-02-11  Bruno Haible  <bruno@clisp.org>
49284
49285         * lib/mbschr.c (mbschr): Fix bug.
49286
49287         * modules/mbschr-tests: New file.
49288         * tests/test-mbschr.sh: New file.
49289         * tests/test-mbschr.c: New file.
49290         * m4/locale-zh.m4: New file.
49291
49292 2007-02-11  Bruno Haible  <bruno@clisp.org>
49293
49294         Support for copying multibyte string iterators.
49295         * lib/mbiter.h: Include <string.h>.
49296         (mbiter_multi_copy): New function.
49297         (mbi_copy): New macro.
49298         * lib/mbuiter.h: Include <string.h>.
49299         (mbuiter_multi_copy): New function.
49300         (mbui_copy): New macro.
49301
49302 2007-02-11  Bruno Haible  <bruno@clisp.org>
49303
49304         New module mbslen.
49305         * modules/mbslen: New file.
49306         * lib/mbslen.c: New file.
49307         * lib/string_.h (mbslen): New declaration.
49308         * m4/mbslen.m4: New file.
49309         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49310         GNULIB_MBSLEN.
49311         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
49312         * MODULES.html.sh (Internationalization functions): Add mbslen.
49313
49314 2007-02-11  Bruno Haible  <bruno@clisp.org>
49315
49316         Ensure O(n) worst-case complexity of strcasestr substitute.
49317         * lib/strcasestr.c: Include stdbool.h.
49318         (knuth_morris_pratt): New function.
49319         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
49320         bookkeeping indicates that it's worth it.
49321         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
49322
49323         * modules/strcasestr-tests: New file.
49324         * tests/test-strcasestr.c: New file.
49325
49326 2007-02-11  Bruno Haible  <bruno@clisp.org>
49327
49328         Ensure O(n) worst-case complexity of c_strcasestr.
49329         * lib/c-strcasestr.c: Include stdbool.h, string.h.
49330         (knuth_morris_pratt): New function.
49331         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
49332         the bookkeeping indicates that it's worth it.
49333         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
49334
49335         * modules/c-strcasestr-tests: New file.
49336         * tests/test-c-strcasestr.c: New file.
49337
49338 2007-02-11  Bruno Haible  <bruno@clisp.org>
49339
49340         Ensure O(n) worst-case complexity of c_strstr.
49341         * lib/c-strstr.c: Include stdbool.h, string.h.
49342         (knuth_morris_pratt): New function.
49343         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
49344         bookkeeping indicates that it's worth it.
49345         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
49346
49347         * lib/c-strstr.c: Complete rewrite for maintainability.
49348
49349         * modules/c-strstr-tests: New file.
49350         * tests/test-c-strstr.c: New file.
49351
49352 2007-02-11  Bruno Haible  <bruno@clisp.org>
49353
49354         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
49355         5.2.1 and earlier, whereby \055 was treated just like the range
49356         delimiter '-'.
49357         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49358
49359 2007-02-08  Bruno Haible  <bruno@clisp.org>
49360
49361         * modules/regex (Depends-on): Add stdbool.
49362         Reported by Dalibor Topic <robilad@kaffe.org>.
49363
49364 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
49365
49366         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
49367         Prefer returning from main to exiting from it.
49368         Remove unnecessary parens after sizeof.
49369
49370 2007-02-05  Bruno Haible  <bruno@clisp.org>
49371
49372         New module mbssep.
49373         * modules/mbssep: New file.
49374         * lib/mbssep.c: New file.
49375         * lib/string_.h (strsep): Add a conditional link warning.
49376         (mbssep): New declaration.
49377         * m4/mbssep.m4: New file.
49378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49379         GNULIB_MBSSEP.
49380         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
49381         * MODULES.html.sh (Internationalization functions): Add mbssep.
49382
49383 2007-02-05  Bruno Haible  <bruno@clisp.org>
49384
49385         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
49386         Optimize search in case of 1 delimiter.
49387
49388 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
49389
49390         * lib/acl.h: Include sys/types.h before sys/acl.h.
49391
49392 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
49393
49394         Merge upstream fix for glibc bugzilla #3957:
49395
49396         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
49397
49398         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
49399         bit for RE_HAT_LISTS_NOT_NEWLINE.
49400         (build_charclass_op): Remove bogus comment.
49401
49402 2007-02-05  Simon Josefsson  <simon@josefsson.org>
49403
49404         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
49405
49406 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49407
49408         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
49409         * lib/memmem.c [!defined _LIBC]: Include config.h.
49410
49411 2007-02-04  Bruno Haible  <bruno@clisp.org>
49412
49413         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
49414         warning message.
49415
49416 2007-02-04  Bruno Haible  <bruno@clisp.org>
49417
49418         New module mbstok_r.
49419         * modules/mbstok_r: New file.
49420         * lib/mbstok_r.c: New file.
49421         * lib/string_.h (strtok_r): Change argument names to match the
49422         comments. Add a conditional link warning.
49423         (mbstok_r): New declaration.
49424         * m4/mbstok_r.m4: New file.
49425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49426         GNULIB_MBSTOK_R.
49427         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
49428         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
49429
49430 2007-02-04  Bruno Haible  <bruno@clisp.org>
49431
49432         New module mbsspn.
49433         * modules/mbsspn: New file.
49434         * lib/mbsspn.c: New file.
49435         * lib/string_.h (strspn): Add a conditional link warning.
49436         (mbsspn): New declaration.
49437         * m4/mbsspn.m4: New file.
49438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49439         GNULIB_MBSSPN.
49440         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
49441         * MODULES.html.sh (Internationalization functions): Add mbsspn.
49442
49443 2007-02-04  Bruno Haible  <bruno@clisp.org>
49444
49445         New module mbspbrk.
49446         * modules/mbspbrk: New file.
49447         * lib/mbspbrk.c: New file.
49448         * lib/string_.h (strpbrk): Add a conditional link warning.
49449         (mbspbrk): New declaration.
49450         * m4/mbspbrk.m4: New file.
49451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49452         GNULIB_MBSPBRK.
49453         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
49454         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
49455
49456 2007-02-04  Bruno Haible  <bruno@clisp.org>
49457
49458         New module mbscspn.
49459         * modules/mbscspn: New file.
49460         * lib/mbscspn.c: New file.
49461         * lib/string_.h (strcspn): Add a conditional link warning.
49462         (mbscspn): New declaration.
49463         * m4/mbscspn.m4: New file.
49464         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49465         GNULIB_MBSCSPN.
49466         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
49467         * MODULES.html.sh (Internationalization functions): Add mbscspn.
49468
49469 2007-02-04  Bruno Haible  <bruno@clisp.org>
49470
49471         New module mbscasestr, reduced goal of strcasestr.
49472         * modules/mbscasestr: New file.
49473         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
49474         (mbscasestr): Renamed from strcasestr.
49475         * lib/strcasestr.c: Don't include mbuiter.h.
49476         (strcasestr): Remove support for multibyte locales.
49477         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
49478         Change the conditional link warning.
49479         (mbscasestr): New declaration.
49480         * m4/mbscasestr.m4: New file.
49481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
49482         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
49483         REPLACE_STRCASESTR.
49484         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
49485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49486         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
49487         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
49488         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
49489         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
49490         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
49491         (Depends-on): Remove mbuiter.
49492         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
49493
49494 2007-02-04  Bruno Haible  <bruno@clisp.org>
49495
49496         Simplify handling of strncasecmp.
49497         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
49498         the conditional link warning.
49499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49500         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
49501         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
49502         * modules/strcase (configure.ac): Don't invoke
49503         gl_STRING_MODULE_INDICATOR.
49504         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
49505
49506 2007-02-04  Bruno Haible  <bruno@clisp.org>
49507
49508         New module mbscasecmp, reduced goal of strcasecmp.
49509         * modules/mbscasecmp: New file.
49510         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
49511         (mbscasecmp): Renamed from strcasecmp.
49512         * lib/strcasecmp.c: Don't include mbuiter.h.
49513         (strcasecmp): Remove support for multibyte locales.
49514         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
49515         Change the conditional link warning.
49516         (mbscasecmp): New declaration.
49517         * m4/mbscasecmp.m4: New file.
49518         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
49519         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
49520         REPLACE_STRCASECMP.
49521         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
49522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49523         GNULIB_MBSCASECMP.
49524         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
49525         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
49526         * modules/strcase (Files): Remove m4/mbrtowc.m4.
49527         (Depends-on): Remove mbuiter.
49528         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
49529
49530 2007-02-04  Bruno Haible  <bruno@clisp.org>
49531
49532         New module mbsstr. Remove module strstr.
49533         * modules/mbsstr: New file.
49534         * modules/strstr: Remove file.
49535         * lib/mbsstr.c: Renamed from lib/strstr.c.
49536         (mbsstr): Renamed from strstr.
49537         * lib/string_.h (strstr): Remove declaration. Change the conditional
49538         link warning.
49539         (mbsstr): New declaration.
49540         * m4/mbsstr.m4: New file.
49541         * m4/strstr.m4: Remove file.
49542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
49543         REPLACE_STRSTR.
49544         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
49545         Don't initialize GNULIB_STRSTR.
49546         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
49547         substitute GNULIB_STRSTR and REPLACE_STRSTR.
49548         * MODULES.html.sh (Internationalization functions): Add mbsstr.
49549         (Support for systems lacking ANSI C 89): Remove strstr.
49550
49551 2007-02-04  Bruno Haible  <bruno@clisp.org>
49552
49553         New module mbsrchr.
49554         * modules/mbsrchr: New file.
49555         * lib/mbsrchr.c: New file.
49556         * lib/string_.h (strrchr): Add a conditional link warning.
49557         (mbsrchr): New declaration.
49558         * m4/mbsrchr.m4: New file.
49559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49560         GNULIB_MBSRCHR.
49561         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
49562         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
49563
49564 2007-02-04  Bruno Haible  <bruno@clisp.org>
49565
49566         New module mbschr.
49567         * modules/mbschr: New file.
49568         * lib/mbschr.c: New file.
49569         * lib/string_.h (strchr): Add a conditional link warning.
49570         (mbschr): New declaration.
49571         * m4/mbschr.m4: New file.
49572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
49573         GNULIB_MBSCHR.
49574         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
49575         * MODULES.html.sh (Internationalization functions): Add mbschr.
49576
49577 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49578
49579         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
49580
49581         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
49582
49583 2007-02-04  Bruno Haible  <bruno@clisp.org>
49584
49585         New module description section 'configure.ac-early'.
49586         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
49587         (func_get_autoconf_early_snippet): New function.
49588         (func_import, func_create_testdir): Use it. Remove special cases for
49589         modules 'extensions' and 'lock'.
49590         * modules/extensions (configure.ac-early): Require
49591         gl_USE_SYSTEM_EXTENSIONS.
49592         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
49593
49594 2007-02-04  Bruno Haible  <bruno@clisp.org>
49595
49596         Make use of gcj-4.3's -fsource and -ftarget option.
49597         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
49598         and if so try the options -fsource and -ftarget.
49599         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
49600         source_version, ftarget_option, target_version arguments.
49601         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
49602         (is_envjavac_oldgcj_14_14_usable): Renamed from
49603         is_envjavac_gcj_14_14_usable.
49604         (is_envjavac_oldgcj_14_13_usable): Renamed from
49605         is_envjavac_gcj_14_13_usable.
49606         (is_gcj_present): Update.
49607         (is_gcj_43, is_gcj43_usable): New functions.
49608         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
49609         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
49610         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
49611         try the options -fsource and -ftarget.
49612
49613 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49614
49615         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
49616         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
49617         larger value.
49618
49619 2007-02-03  Jim Meyering  <jim@meyering.net>
49620
49621         Give tools a better chance to allocate space for very large buffers.
49622         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
49623
49624         Make pwd and readlink work also when run with an unreadable parent dir
49625         on systems with openat support.
49626         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
49627         provided getcwd function, even when we have openat support.
49628         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
49629
49630 2007-02-02  Bruno Haible  <bruno@clisp.org>
49631
49632         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
49633         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
49634         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
49635         portability problems if one of these functions is only used on specific
49636         platforms.
49637         Reported by Paul Eggert.
49638
49639 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
49640
49641         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
49642         is causing more trouble than it's curing.
49643         * lib/regex_internal.h (__mempcpy): Remove.
49644         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
49645         (and make the code a tad smaller to boot).
49646         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
49647
49648 2007-02-02  Jim Meyering  <jim@meyering.net>
49649
49650         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
49651         section, not in the Makefile.am: one.
49652
49653 2007-02-02  Eric Blake  <ebb9@byu.net>
49654
49655         * lib/strchrnul.c: Always include config.h first.
49656
49657         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
49658         gnulib strstr is not necessary here.
49659
49660 2007-02-02  Simon Josefsson  <simon@josefsson.org>
49661
49662         * m4/socklen.m4: Fix typo.
49663
49664 2007-02-02  Eric Blake  <ebb9@byu.net>
49665
49666         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
49667         * modules/netinet_in (Makefile.am): Likewise.
49668
49669 2007-02-01  Bruno Haible  <bruno@clisp.org>
49670
49671         * lib/string_.h (GL_LINK_WARNING): New macro.
49672         (strcasecmp, strstr, strcasestr): If provided by the system,
49673         conditionally define as a macro that leads to a warning instead of to
49674         an error.
49675         (strncasecmp): Conditionally define as a macro that leads to a warning.
49676
49677 2007-02-01  Karl Berry  <karl@gnu.org>
49678
49679         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
49680
49681 2007-02-01  Bruno Haible  <bruno@clisp.org>
49682
49683         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
49684         renamings.
49685
49686 2007-02-01  Eric Blake  <ebb9@byu.net>
49687
49688         * modules/regex (Depends-on): Revert dependence on mempcpy.
49689         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
49690         module's definition of mempcpy.
49691         Reported by Paul Eggert.
49692
49693 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
49694
49695         * lib/string_.h: If the gnulib module XYZ is not present, undefine
49696         the symbol XYZ before redefining it.  This fixes a problem with
49697         programs that don't use XYZ, when compiled on systems that define
49698         XYZ to something else.
49699
49700 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
49701
49702         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
49703         occurs when "mkdir -m foo" creates a setgid directory that is (1)
49704         writeable to group or other and (2) is intended to have a special
49705         mode bit that is set or cleared.  In such a case, the directory
49706         should be neither group- nor other-writeable until the special
49707         mode bits are right.
49708
49709 2007-01-31  Eric Blake  <ebb9@byu.net>
49710
49711         * modules/mountlist (Depends-on): Add strstr.
49712
49713         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
49714         bug.
49715         * modules/string (Makefile.am): Remove redundant replacement.
49716         * modules/regex (Depends-on): Add mempcpy.
49717
49718 2007-01-31  Bruno Haible  <bruno@clisp.org>
49719
49720         New module description field 'Link'.
49721         * gnulib-tool (func_usage): Document --extract-link-directive.
49722         (sed_extract_prog): Recognize 'Link' directive.
49723         (func_get_link_directive): New function.
49724         (func_import): Show summary of link directives.
49725         Handle --extract-link-directive option.
49726         * modules/acl (Link): New section.
49727         * modules/clock-time (Link): New section.
49728         * modules/euidaccess (Link): New section.
49729         * modules/gettext (Link): New section.
49730         * modules/iconv (Link): New section.
49731         * modules/lock (Link): New section.
49732         * modules/nanosleep (Link): New section.
49733         * modules/readline (Link): New section.
49734
49735 2007-01-27  Bruno Haible  <bruno@clisp.org>
49736
49737         Enforce the use of gnulib modules for unportable <string.h> functions.
49738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
49739         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
49740         (gl_HEADER_STRING_H_BODY): Require it.
49741         * lib/string_.h: If the gnulib module XYZ is not present, redefine
49742         the symbol XYZ to one that gives a link error.
49743         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
49744         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
49745         * modules/mempcpy (configure.ac): Likewise.
49746         * modules/memrchr (configure.ac): Likewise.
49747         * modules/stpcpy (configure.ac): Likewise.
49748         * modules/stpncpy (configure.ac): Likewise.
49749         * modules/strcase (configure.ac): Likewise.
49750         * modules/strcasestr (configure.ac): Likewise.
49751         * modules/strchrnul (configure.ac): Likewise.
49752         * modules/strdup (configure.ac): Likewise.
49753         * modules/strndup (configure.ac): Likewise.
49754         * modules/strnlen (configure.ac): Likewise.
49755         * modules/strpbrk (configure.ac): Likewise.
49756         * modules/strsep (configure.ac): Likewise.
49757         * modules/strstr (configure.ac): Likewise.
49758         * modules/strtok_r (configure.ac): Likewise.
49759
49760 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
49761
49762         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
49763
49764 2007-01-30  Jim Meyering  <jim@meyering.net>
49765
49766         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
49767
49768 2007-01-29  Bruno Haible  <bruno@clisp.org>
49769
49770         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
49771         * lib/execute.c: Likewise.
49772         * lib/pipe.c: Likewise.
49773         * lib/printf-args.h: Likewise.
49774         * lib/printf-args.c: Likewise.
49775         * lib/printf-parse.c: Likewise.
49776         * lib/vasnprintf.c: Likewise.
49777
49778 2007-01-29  Eric Blake  <ebb9@byu.net>
49779
49780         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
49781         declaration.
49782
49783 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
49784
49785         * lib/strptime.h (strptime): Use 'restrict' for args where
49786         POSIX requires this.
49787         * lib/strptime.c (strptime): Likewise.
49788         Change license notice from LGPL to GPL, since gnulib-tool will
49789         change this as needed.
49790         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
49791         defined.
49792         Include "strptime.h" first, to check interface.
49793         Do not #undef _LIBC and _NL_CURRENT.
49794         Do not include <stdlib.h>; no longer needed.
49795         Include "time_r.h" and declare ptime_locale_status
49796         only if _LIBC is not defined.
49797         (__P): Remove unused macro.
49798         (match_string): Bring back glibc version, but use it only if _LIBC
49799         is defined.
49800         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
49801         Remove unnecessary assertion and abort() call.
49802         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
49803         * m4/strptime.m4: Fix serial number comment.
49804         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
49805         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
49806         (Depends-on): Add time_r.
49807
49808 2007-01-29  Bruno Haible  <bruno@clisp.org>
49809
49810         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49811         strptime.
49812         * modules/strptime (Depends-on): Add stdbool.
49813         * lib/strptime.h: Include <time.h> always. Add comments.
49814
49815 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49816
49817         * modules/strptime: New file.
49818         * lib/strptime.h: New file.
49819         * lib/strptime.c: New file.
49820         * m4/strptime.m4: New file.
49821
49822 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49823
49824         * MODULES.html.sh: New module mpsort.
49825         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
49826
49827         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
49828         a circularity problem with HP-UX ia64 reported by Bob Proulx in
49829         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
49830         All uses changed.
49831         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
49832         All uses changed.
49833         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
49834         to _Restrict_.
49835         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
49836         the parameter matches the prototype.
49837
49838 2007-01-28  Jim Meyering  <jim@meyering.net>
49839
49840         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
49841         sys/time.h here, reverting that part of the previous patch:
49842         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
49843
49844 2007-01-28  Bruno Haible  <bruno@clisp.org>
49845
49846         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
49847         value of $(SYS_TIME_H).
49848         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
49849         remove it conditionally, too. [added by Jim Meyering]
49850         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
49851         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
49852         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
49853         GETTIMEOFDAY_REPLACEMENT to 1.
49854
49855 2007-01-28  Bruno Haible  <bruno@clisp.org>
49856
49857         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
49858         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
49859         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
49860         Set UNISTD_H instead of UNISTD_H2.
49861         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
49862
49863 2007-01-28  Bruno Haible  <bruno@clisp.org>
49864
49865         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
49866         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
49867
49868 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49869
49870         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
49871         (func_create_testdir): Ensure C locale for `grep' and `tr'
49872         character ranges.
49873         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
49874         ACLOCAL_AMFLAGS parsing state machine.
49875
49876 2007-01-27  Bruno Haible  <bruno@clisp.org>
49877
49878         * modules/unistr/base: Update.
49879
49880 2007-01-27  Bruno Haible  <bruno@clisp.org>
49881
49882         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
49883         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
49884         * modules/unistr/u32-mbtouc-unsafe: Renamed from
49885         modules/unistr/u32-mbtouc.
49886         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
49887         * lib/unistr.h: Update.
49888         * lib/linebreak.c: Update.
49889         * modules/unistr/u32-mbtouc: Renamed from
49890         modules/unistr/u32-mbtouc-safe.
49891         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
49892         * lib/unistr.h: Update.
49893         * lib/unistr/u32-to-u8.c: Update.
49894         * lib/unistr/u32-to-u16.c: Update.
49895
49896 2007-01-27  Bruno Haible  <bruno@clisp.org>
49897
49898         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
49899         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
49900         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
49901         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
49902         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
49903         * modules/unistr/u16-mbtouc-unsafe: Renamed from
49904         modules/unistr/u16-mbtouc.
49905         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
49906         * lib/unistr.h: Update.
49907         * lib/linebreak.c: Update.
49908         * modules/linebreak: Update.
49909         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
49910         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
49911         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
49912         * modules/unistr/u16-mbtouc: Renamed from
49913         modules/unistr/u16-mbtouc-safe.
49914         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
49915         * lib/unistr.h: Update.
49916         * lib/unistr/u16-to-u8.c: Update.
49917         * modules/unistr/u16-to-u8: Update.
49918         * lib/unistr/u16-to-u32.c: Update.
49919         * modules/unistr/u16-to-u32: Update.
49920
49921 2007-01-27  Bruno Haible  <bruno@clisp.org>
49922
49923         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
49924         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
49925         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
49926         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
49927         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
49928         * modules/unistr/u8-mbtouc-unsafe: Renamed from
49929         modules/unistr/u8-mbtouc.
49930         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
49931         * lib/unistr.h: Update.
49932         * lib/striconveh.c: Update.
49933         * modules/striconveh: Update.
49934         * lib/linebreak.c: Update.
49935         * modules/linebreak: Update.
49936         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
49937         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
49938         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
49939         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
49940         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
49941         * lib/unistr.h: Update.
49942         * lib/striconveh.c: Update.
49943         * modules/striconveh: Update.
49944         * lib/unistr/u8-to-u16.c: Update.
49945         * modules/unistr/u8-to-u16: Update.
49946         * lib/unistr/u8-to-u32.c: Update.
49947         * modules/unistr/u8-to-u32: Update.
49948
49949 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49950
49951         Sync from Libtool.
49952         * lib/argz.c: Do not include strings.h nor memory.h, include
49953         string.h unconditionally.  Patch by Simon Josefsson.
49954
49955 2007-01-27  Bruno Haible  <bruno@clisp.org>
49956
49957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
49958         from gl_HEADER_STRING_H_BODY.
49959         (gl_HEADER_STRING_H_BODY): Require it.
49960         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
49961         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49962         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49963         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49965         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
49966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49967         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49968         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
49969         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49970         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49971         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
49972         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49973         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49974         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49975
49976 2007-01-27  Bruno Haible  <bruno@clisp.org>
49977
49978         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
49979         check_PROGRAMS into noinst_PROGRAMS.
49980         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
49981         check_PROGRAMS in this case.
49982         (func_import): Set for_test to false.
49983         (func_create_testdir): Set for_test to true.
49984
49985 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
49986             Bruno Haible  <bruno@clisp.org>
49987
49988         * modules/strcasestr (Files): Remove lib/strcasestr.h.
49989         (Depends-on): Add string.
49990         (Includes): Use <string.h> instead of strcasestr.h.
49991         * modules/string (Makefile.am): Also substitute the value of
49992         REPLACE_STRCASESTR.
49993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
49994         assume strcasestr is declared in <string.h> not <strings.h>. Also
49995         set REPLACE_STRCASESTR.
49996         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
49997         REPLACE_STRCASESTR.
49998         * lib/strcasestr.h: Remove file.
49999         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
50000         * lib/string_.h (strcasestr): New declaration.
50001
50002 2007-01-27  Bruno Haible  <bruno@clisp.org>
50003
50004         * lib/string_.h: Use 'extern'.
50005
50006 2007-01-27  Jim Meyering  <jim@meyering.net>
50007
50008         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
50009         of set-but-not-used local, "q".
50010
50011         * lib/mempcpy.c: Include <config.h> before <string.h>.
50012         This fixes a compilation error on HP-UX, due to the system's
50013         "restrict"-using mempcpy prototype.
50014
50015 2007-01-26  Bruno Haible  <bruno@clisp.org>
50016
50017         Small optimization.
50018         * lib/javacomp.c: Include c-strstr.h.
50019          (is_envjavac_gcj): Use c_strstr instead of strstr.
50020         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
50021
50022 2007-01-26  Bruno Haible  <bruno@clisp.org>
50023
50024         * MODULES.html.sh (Unicode string functions): Add the new modules.
50025
50026         * modules/uniconv/u32-strconv-to-locale: New file.
50027         * lib/uniconv/u32-strconv-to-locale.c: New file.
50028
50029         * modules/uniconv/u16-strconv-to-locale: New file.
50030         * lib/uniconv/u16-strconv-to-locale.c: New file.
50031
50032         * modules/uniconv/u8-strconv-to-locale: New file.
50033         * lib/uniconv/u8-strconv-to-locale.c: New file.
50034
50035         * modules/uniconv/u32-strconv-from-locale: New file.
50036         * lib/uniconv/u32-strconv-from-locale.c: New file.
50037
50038         * modules/uniconv/u16-strconv-from-locale: New file.
50039         * lib/uniconv/u16-strconv-from-locale.c: New file.
50040
50041         * modules/uniconv/u8-strconv-from-locale: New file.
50042         * lib/uniconv/u8-strconv-from-locale.c: New file.
50043
50044         * modules/uniconv/u32-strconv-to-enc: New file.
50045         * lib/uniconv/u32-strconv-to-enc.c: New file.
50046         * modules/uniconv/u32-strconv-to-enc-tests: New file.
50047         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
50048
50049         * modules/uniconv/u16-strconv-to-enc: New file.
50050         * lib/uniconv/u16-strconv-to-enc.c: New file.
50051         * lib/uniconv/u-strconv-to-enc.h: New file.
50052         * modules/uniconv/u16-strconv-to-enc-tests: New file.
50053         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
50054
50055         * modules/uniconv/u8-strconv-to-enc: New file.
50056         * lib/uniconv/u8-strconv-to-enc.c: New file.
50057         * modules/uniconv/u8-strconv-to-enc-tests: New file.
50058         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
50059
50060         * modules/uniconv/u32-strconv-from-enc: New file.
50061         * lib/uniconv/u32-strconv-from-enc.c: New file.
50062         * modules/uniconv/u32-strconv-from-enc-tests: New file.
50063         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
50064
50065         * modules/uniconv/u16-strconv-from-enc: New file.
50066         * lib/uniconv/u16-strconv-from-enc.c: New file.
50067         * modules/uniconv/u16-strconv-from-enc-tests: New file.
50068         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
50069
50070         * modules/uniconv/u8-strconv-from-enc: New file.
50071         * lib/uniconv/u8-strconv-from-enc.c: New file.
50072         * lib/uniconv/u-strconv-from-enc.h: New file.
50073         * modules/uniconv/u8-strconv-from-enc-tests: New file.
50074         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
50075
50076         * modules/uniconv/u32-conv-from-enc: New file.
50077         * lib/uniconv/u32-conv-from-enc.c: New file.
50078         * modules/uniconv/u32-conv-from-enc-tests: New file.
50079         * tests/uniconv/test-u32-conv-from-enc.c: New file.
50080
50081         * modules/uniconv/u16-conv-from-enc: New file.
50082         * lib/uniconv/u16-conv-from-enc.c: New file.
50083         * lib/uniconv/u-conv-from-enc.h: New file.
50084         * modules/uniconv/u16-conv-from-enc-tests: New file.
50085         * tests/uniconv/test-u16-conv-from-enc.c: New file.
50086
50087         * modules/uniconv/u8-conv-from-enc: New file.
50088         * lib/uniconv/u8-conv-from-enc.c: New file.
50089         * modules/uniconv/u8-conv-from-enc-tests: New file.
50090         * tests/uniconv/test-u8-conv-from-enc.c: New file.
50091
50092         * modules/uniconv/base: New file.
50093         * lib/uniconv.h: New file.
50094
50095 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
50096
50097         * doc/gnulib-tool.texi (Initial import): Update to match current
50098         behavior with strdup module.
50099         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
50100         * lib/memmem.h: Remove; all uses removed.  This is now done
50101         by <string.h>.
50102         * lib/mempcpy.h: Likewise.
50103         * lib/memrchr.h: Likewise.
50104         * lib/stpcpy.h: Likewise.
50105         * lib/stpncpy.h: Likewise.
50106         * lib/strcase.h: Likewise.
50107         * lib/strchrnul.h: Likewise.
50108         * lib/strdup.h: Likewise.
50109         * lib/strndup.h: Likewise.
50110         * lib/strnlen.h: Likewise.
50111         * lib/strpbrk.h: Likewise.
50112         * lib/strsep.h: Likewise.
50113         * lib/strstr.h: Likewise.
50114         * lib/strtok_r.h: Likewise.
50115         * lib/string_.h: New file.
50116         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
50117         Rely on <string.h> instead.
50118         * lib/canon-host.c: Likewise.
50119         * lib/chdir-long.c: Likewise.
50120         * lib/concatpath.c: Likewise.
50121         * lib/exclude.c: Likewise.
50122         * lib/fchdir.c: Likewise.
50123         * lib/getaddrinfo.c: Likewise.
50124         * lib/getcwd.c: Likewise.
50125         * lib/getsubopt.c: Likewise.
50126         * lib/glob.c: Likewise.
50127         * lib/hard-locale.c: Likewise.
50128         * lib/iconvme.c: Likewise.
50129         * lib/javacomp.c: Likewise.
50130         * lib/mempcpy.c: Likewise.
50131         * lib/memrchr.c: Likewise.
50132         * lib/regex_internal.h: Likewise.
50133         * lib/stpncpy.c: Likewise.
50134         * lib/strcasecmp.c: Likewise.
50135         * lib/strchrnul.c: Likewise.
50136         * lib/strdup.c: Likewise.
50137         * lib/striconv.c: Likewise.
50138         * lib/striconveh.c: Likewise.
50139         * lib/striconveha.c: Likewise.
50140         * lib/strncasecmp.c: Likewise.
50141         * lib/strndup.c: Likewise.
50142         * lib/strnlen.c: Likewise.
50143         * lib/strsep.c: Likewise.
50144         * lib/strstr.c: Likewise.
50145         * lib/strtok_r.c: Likewise.
50146         * lib/userspec.c: Likewise.
50147         * lib/w32spawn.h: Likewise.
50148         * lib/xstrndup.c: Likewise.
50149         * lib/mountlist.c (strstr): Remove decl.
50150         * m4/string_h.m4: New file.
50151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
50152         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
50153         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
50154         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
50155         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
50156         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
50157         Set REPLACE_STRCASECMP if necessary.
50158         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
50159         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
50160         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
50161         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
50162         HAVE_DECL_STRDUP if necessary.
50163         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
50164         since gl_FUNC_STRNDUP does that now.
50165         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
50166         Check for decl here...
50167         (gl_PREREQ_STRNLEN): ... not here.
50168         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
50169         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
50170         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
50171         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
50172         necessary.
50173         * modules/string: New file.
50174         * modules/memmem (Files): Remove special-purpose include file.
50175         (Depends-on): Add string.
50176         (Include): Include <string.h>, not the removed file.
50177         * modules/mempcpy: Likewise.
50178         * modules/memrchr: Likewise.
50179         * modules/stpcpy: Likewise.
50180         * modules/stpncpy: Likewise.
50181         * modules/strcase: Likewise.
50182         * modules/strchrnul: Likewise.
50183         * modules/strdup: Likewise.
50184         * modules/strndup: Likewise.
50185         * modules/strnlen: Likewise.
50186         * modules/strpbrk: Likewise.
50187         * modules/strsep: Likewise.
50188         * modules/strstr: Likewise.
50189         * modules/strtok_r: Likewise.
50190         * tests/test-dirname.c: Don't include "strdup.h", since
50191         <string.h> now suffices.
50192         * tests/test-memmem.c: Don't include "memmem.h", since
50193         <string.h> now suffices.
50194
50195 2007-01-25  Bruno Haible  <bruno@clisp.org>
50196
50197         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
50198         *resultp is 0.
50199
50200         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
50201         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
50202         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
50203         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
50204
50205         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
50206         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
50207         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
50208         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
50209         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
50210         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
50211
50212 2007-01-24  Bruno Haible  <bruno@clisp.org>
50213
50214         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
50215         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
50216         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
50217         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
50218         gl_FUNC_FTS_CORE.
50219         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
50220         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
50221         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50222         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
50223         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
50224         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
50225         gl_FUNC_FCHOWNAT.
50226         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
50227         gl_FUNC_STRFTIME.
50228         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
50229         Reported by Ralf Wildenhues.
50230
50231 2007-01-24  Bruno Haible  <bruno@clisp.org>
50232
50233         Drop AC_REQUIRE calls that are redundant with the module dependencies.
50234         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
50235         gl_GETADDRINFO.
50236         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
50237         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
50238         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
50239
50240 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
50241
50242         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
50243         Don't use 'exit'; just return from 'main'.
50244         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
50245
50246         * lib/fnmatch_.h: Readjust white space and comments to match
50247         glibc, to avoid spurious diffs.
50248
50249 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50250
50251         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
50252         2004-12-01 change by Jakub Jelinek, since this code won't compile
50253         if !LIBC.  Problem reported by Bob Proulx.
50254
50255 2007-01-23  Bruno Haible  <bruno@clisp.org>
50256
50257         * lib/striconveh.c: Include c-strcaseeq.h.
50258         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
50259         * modules/striconveh (Depends-on): Add c-strcaseeq.
50260
50261 2007-01-23  Bruno Haible  <bruno@clisp.org>
50262
50263         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
50264
50265         * modules/c-strcaseeq: New file.
50266         * lib/c-strcaseeq.h: New file.
50267
50268         * modules/streq: New file.
50269         * lib/streq.h: New file.
50270
50271 2007-01-23  Bruno Haible  <bruno@clisp.org>
50272
50273         * modules/striconveha-tests: New file.
50274         * tests/test-striconveha.c: New file.
50275
50276         * lib/striconveha.h: Include <stdbool.h>.
50277         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
50278         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
50279         (mem_iconveha_notranslit): Renamed from mem_iconveha.
50280         (mem_iconveha): New function.
50281         (str_iconveha_notranslit): Renamed from str_iconveha.
50282         (str_iconveha): New function.
50283         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
50284         c-strcase.
50285
50286 2007-01-23  Bruno Haible  <bruno@clisp.org>
50287
50288         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
50289         encodings without forgiving before trying any encoding with handler.
50290         (str_iconveha): Try all encodings without forgiving before trying any
50291         encoding with handler.
50292
50293 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50294
50295         Import the following changes from libc.
50296
50297         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50298
50299         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
50300
50301         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
50302
50303         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
50304         normal_bracket label.
50305
50306         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
50307
50308         [BZ #361]
50309         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
50310         to normal_bracket after fetching the next character.
50311
50312 2007-01-22  Bruno Haible  <bruno@clisp.org>
50313
50314         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
50315         argument.
50316         * lib/striconveh.c (iconv_carefully_1): New function.
50317         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
50318         argument.
50319         (str_cd_iconveh): Update.
50320         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
50321         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
50322         * tests/test-striconveh.c (MAGIC): New macro.
50323         (new_offsets): New function.
50324         (main): Test call with and without offsets.
50325
50326 2007-01-22  Bruno Haible  <bruno@clisp.org>
50327
50328         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
50329         * modules/sys_select (Makefile.am): Likewise.
50330         * modules/sys_socket (Makefile.am): Likewise.
50331         * modules/sys_time (Makefile.am): Likewise.
50332
50333 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
50334
50335         * modules/gettimeofday (License): Change from GPL to LGPL, since
50336         gettimeofday is a library function.
50337
50338 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50339
50340         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
50341
50342 2007-01-21  Bruno Haible  <bruno@clisp.org>
50343
50344         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
50345
50346 2007-01-21  Bruno Haible  <bruno@clisp.org>
50347
50348         * modules/striconveha: New file.
50349         * lib/striconveha.h: New file.
50350         * lib/striconveha.c: New file.
50351         * MODULES.html.sh (Internationalization functions): Add striconveha.
50352         * lib/striconv.c (str_iconv): Optimize the case of an empty input
50353         string.
50354         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
50355
50356 2007-01-21  Bruno Haible  <bruno@clisp.org>
50357
50358         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
50359         * lib/striconveh.c (str_iconveh): Likewise.
50360
50361 2007-01-21  Bruno Haible  <bruno@clisp.org>
50362
50363         * lib/striconveh.h (mem_iconveh): New declaration.
50364         * lib/striconveh.c (mem_iconveh): New function.
50365         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
50366
50367 2007-01-21  Bruno Haible  <bruno@clisp.org>
50368
50369         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
50370
50371         * lib/striconveh.h (mem_cd_iconveh): Change specification.
50372         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
50373         original result buffer.
50374         (str_cd_iconveh): Update.
50375         * tests/test-striconveh.c (main): Update.
50376
50377         * lib/striconv.h (mem_cd_iconv): Change specification.
50378         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
50379         result buffer.
50380         (str_cd_iconv): Update.
50381         * tests/test-striconv.c (main): Update.
50382
50383 2007-01-21  Bruno Haible  <bruno@clisp.org>
50384
50385         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
50386
50387 2007-01-20  Jim Meyering  <jim@meyering.net>
50388
50389         * lib/userspec.c (parse_with_separator): If a user or group string
50390         starts with "+", skip the corresponding name-to-ID look-up, since
50391         such a look-up must fail: user and group names may not include "+".
50392
50393 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
50394
50395         * lib/poll.c: Include sys/time.h and time.h unconditionally,
50396         since we now assume the sys_time module.
50397         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
50398         check for sys/time.h; no longer needed.
50399         * modules/poll (Depends-on): Depend on sys_time.
50400
50401 2007-01-18  Bruno Haible  <bruno@clisp.org>
50402
50403         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
50404         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
50405
50406         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
50407         gettimeofday.
50408
50409         * tests/test-gettimeofday.c: Include <time.h>.
50410         (dummy): Remove variable.
50411
50412         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
50413         gl_HEADER_SYS_TIME_H.
50414         (gl_HEADER_SYS_TIME_H): New macro.
50415
50416         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
50417         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50418         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
50419         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
50420         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50421         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
50422         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
50423         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50424         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
50425         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
50426         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50427
50428         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
50429         last change; it caused a compilation error when cross-compiling to
50430         Cygwin.
50431
50432 2007-01-18  Jim Meyering  <jim@meyering.net>
50433
50434         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
50435         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
50436         than the race-prone "test -d sys || mkdir sys".
50437         (configure.ac): Use AC_PROG_MKDIR_P.
50438         * modules/sys_select: Likewise.
50439         * modules/sys_socket: Likewise.
50440         * modules/sys_time: Likewise.
50441
50442 2007-01-18  Eric Blake  <ebb9@byu.net>
50443
50444         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
50445         replace gettimeofday.
50446         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
50447         name, to avoid infinite recursion.
50448
50449 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
50450
50451         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
50452         module sys_time.
50453         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
50454         assume timespec.h defines struct timeval.
50455         * lib/settime.c: Likewise.
50456         * lib/utimens.c: Likewise.
50457         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
50458         since we now assume the gettimeofday module.
50459         * lib/tempname.c (__gen_tempname): Likewise.
50460         * lib/gettimeofday.h: Remove.
50461         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
50462         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
50463         Include <time.h>, for 'time()'.
50464         (localtime_buffer_addr): Also use this workaround if
50465         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
50466         to simplify the uses.  All uses changed.
50467         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
50468         that #undef is inside {}, and 'const' follows type name consistently.
50469         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
50470         (gettimeofday): Do not use the maximum possible value for
50471         tv->tv_usec, since that might break usages other than ls.c.
50472         Instead, we'll leave ls.c alone.  This undoes today's patch
50473         by Bruno.  Add a compile-time warning for 1s-clock resolution;
50474         we've never observed the problem but might as well keep the
50475         canary.
50476         * lib/nanosleep.c: Include timespec.h first, for interface check.
50477         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
50478         now assume the sys_time module.
50479         * lib/tempname.c: Likewise.
50480         * lib/timespec.h: Likewise.
50481         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
50482         needed.
50483         * lib/strftime.c: Likewise.
50484         * lib/timespec.h: Likewise.
50485         * lib/posixtm.c: Include posixtm.h first, for interface check.
50486         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
50487         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
50488         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
50489         * lib/sys_time_.h: New file.
50490         * lib/timespec.h (struct timespec): Use long int, not long.
50491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
50492         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
50493         Remove obsolescent call to AC_HEADER_TIME.
50494         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
50495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50496         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
50497         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
50498         Likewise.
50499         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
50500         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
50501         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
50502         into the sys_time module.  Check for gettimeofday just once.
50503         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
50504         for gettimeofday signature to just check the signature.  Merely
50505         compile it, since linking doesn't test signature.  Improve test for
50506         whether gettimeofday.o is actually needed.
50507         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
50508         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
50509         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
50510         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50511         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
50512         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
50513         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
50514         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
50515         than worrying about sys/time.h.
50516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50517         Don't bother worrying about TIME_WITH_SYS_TIME.
50518         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
50519         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
50520         * m4/sys_time_h.m4: New file.
50521         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
50522         Don't include sys/time.h.  Return from main rather than exiting.
50523         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
50524         all uses changed.
50525         * modules/gethrxtime (Depends-on): Add sys_time.
50526         * modules/gettime (Depends-on): Likewise.
50527         * modules/gettimeofday (Depends-on): Likewise.
50528         * modules/nanosleep (Depends-on): Likewise.
50529         * modules/settime (Depends-on): Likewise.
50530         * modules/tempname (Depends-on): Likewise.
50531         * modules/utimens (Depends-on): Likewise.
50532         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
50533         (Include:) Change back to <sys/time.h>.
50534         (Maintainer:) Add self.
50535         * modules/sys_time: New file.
50536         * modules/tempname (Depends-on): Add gettimeofday.
50537         * tests/test-gettimeofday.c: Include <sys/time.h>
50538         rather than gettimeofday.h.
50539
50540 2007-01-17  Bruno Haible  <bruno@clisp.org>
50541
50542         * gnulib-tool (func_get_license): Revert last patch. Instead, let
50543         the license default to GPL.
50544         (func_create_testdir): Don't complain if a module is LGPL and its
50545         tests module depends on GPLed modules.
50546
50547 2007-01-17  Bruno Haible  <bruno@clisp.org>
50548
50549         * lib/gettimeofday.c (gettimeofday): Add code for the case
50550         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
50551         maximum possible value for tv->tv_usec, rather than the minimum one.
50552
50553 2005-10-08  Martin Lambers  <marlam@marlam.de>
50554 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50555 2007-01-16  Bruno Haible  <bruno@clisp.org>
50556
50557         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
50558         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
50559         gl_FUNC_GETTIMEOFDAY.
50560         (Include): Add gettimeofday.h.
50561         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
50562         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
50563         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
50564         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
50565         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
50566         * lib/gettimeofday.h: New file.
50567         * lib/gettimeofday.c: Include <sys/timeb.h>.
50568         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
50569         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
50570         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
50571         fall back on time().
50572
50573         * tests/test-gettimeofday.c: New file.
50574         * modules/gettimeofday-tests: New file.
50575
50576 2007-01-16  Eric Blake  <ebb9@byu.net>
50577
50578         * modules/fnmatch (Depends-on): Depend on wchar.
50579         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
50580         * m4/fnmatch.m4: Likewise.
50581         * modules/mbchar (Makefile.am): Assume <wchar.h>.
50582         * m4/mbchar.m4: Likewise.
50583         * modules/mbswidth (Depends-on): Depend on wchar.
50584         * lib/mbswidth.c: Assume <wchar.h>.
50585         * m4/mbswidth.m4: Likewise.
50586         * modules/quotearg (Depends-on): Depend on wchar.
50587         * lib/quotearg.c: Assume <wchar.h>.
50588         * m4/quotearg.m4: Likewise.
50589         * modules/regex (Depends-on): Depend on wchar.
50590         * lib/regex_internal.h: Assume <wchar.h>.
50591         * m4/regex.m4: Likewise.
50592         * modules/stdint (Depends-on): Depend on wchar.
50593         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
50594         * m4/stdint.m4: Likewise.
50595         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
50596         * modules/strftime (Depends-on): Depend on wchar.
50597         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
50598         * modules/strtol (Depends-on): Depend on wchar.
50599         * lib/strtol.c: Assume <wchar.h>.
50600         * modules/wcwidth (Depends-on): Depend on wchar.
50601         * lib/wcwidth.h: Assume <wchar.h>.
50602         * m4/wcwidth.m4: Likewise.
50603
50604 2007-01-16  Bruno Haible  <bruno@clisp.org>
50605
50606         * modules/csharpexec-script: New, created from...
50607         * modules/csharpexec: ... this.
50608
50609 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50610
50611         * modules/javaexec-script: New, created from...
50612         * modules/javaexec: ... this.
50613
50614 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50615
50616         * modules/poll (Dependencies): Add sys_select.
50617
50618 2007-01-15  Jim Meyering  <jim@meyering.net>
50619
50620         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
50621         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
50622         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
50623         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
50624
50625 2007-01-15  Bruno Haible  <bruno@clisp.org>
50626
50627         * modules/striconveh: New file.
50628         * lib/striconveh.h: New file.
50629         * lib/striconveh.c: New file.
50630         * MODULES.html.sh (Internationalization functions): Add striconveh.
50631
50632         * modules/striconveh-tests: New file.
50633         * tests/test-striconveh.c: New file.
50634
50635 2007-01-15  Bruno Haible  <bruno@clisp.org>
50636
50637         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
50638         not from GNU libiconv or GNU libc.
50639
50640 2007-01-15  Bruno Haible  <bruno@clisp.org>
50641
50642         * doc/gnulib-intro.texi (Copyright): Explain the different license
50643         terms for module descriptions, autoconf macros, tests, documentation.
50644
50645 2007-01-14  Bruno Haible  <bruno@clisp.org>
50646
50647         * modules/striconv-tests: New file.
50648         * tests/test-striconv.c: New file.
50649
50650 2007-01-14  Bruno Haible  <bruno@clisp.org>
50651
50652         * modules/iconv-tests: New file.
50653         * tests/test-iconv.c: New file.
50654
50655 2007-01-14  Bruno Haible  <bruno@clisp.org>
50656
50657         * gnulib-tool (func_get_license): For test modules, use the license of
50658         the main module.
50659
50660 2007-01-14  Bruno Haible  <bruno@clisp.org>
50661
50662         * modules/iconv (Include): Clarify that <iconv.h> can only be included
50663         if iconv is found to exist.
50664
50665 2007-01-14  Bruno Haible  <bruno@clisp.org>
50666
50667         * modules/c-ctype-tests: New file.
50668         * tests/test-c-ctype.c: New file.
50669
50670 2007-01-14  Bruno Haible  <bruno@clisp.org>
50671
50672         * modules/binary-io-tests: New file.
50673         * tests/test-binary-io.sh: New file.
50674         * tests/test-binary-io.c: New file.
50675
50676 2007-01-14  Bruno Haible  <bruno@clisp.org>
50677
50678         * modules/array-oset-tests: New file.
50679         * tests/test-array_oset.c: New file.
50680
50681 2007-01-14  Bruno Haible  <bruno@clisp.org>
50682
50683         * modules/array-list-tests: New file.
50684         * tests/test-array_list.c: New file.
50685
50686 2007-01-14  Bruno Haible  <bruno@clisp.org>
50687
50688         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
50689         and make.
50690         Reported by Simon Josefsson in
50691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
50692
50693 2007-01-14  Bruno Haible  <bruno@clisp.org>
50694
50695         * modules/allocsa-tests: New file.
50696         * tests/test-allocsa.c: New file.
50697
50698 2007-01-14  Bruno Haible  <bruno@clisp.org>
50699
50700         * modules/fchdir (Depends-on): Add absolute-header.
50701         * modules/unistd (Depends-on): Likewise.
50702
50703 2006-12-30  Bruno Haible  <bruno@clisp.org>
50704
50705         * modules/fchdir: New file.
50706         * modules/unistd (Files): Add lib/unistd_.h.
50707         (Makefile.am): Generate unistd.h from unistd_.h.
50708         * lib/fchdir.c: New file.
50709         * lib/dirent_.h: New file.
50710         * lib/unistd_.h: New file.
50711         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
50712         * m4/fchdir.m4: New file.
50713         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
50714         (gl_HEADER_UNISTD): Invoke it.
50715         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
50716         function.
50717         * lib/backupfile.c (opendir, closedir): Undefine.
50718         * lib/chown.c (open, close): Undefine.
50719         * lib/clean-temp.c (open, close): Undefine.
50720         * lib/copy-file.c (open, close): Undefine.
50721         * lib/execute.c (open, close): Undefine.
50722         * lib/fsusage.c (open, close): Undefine.
50723         * lib/gc-gnulib.c (open, close): Undefine.
50724         * lib/getcwd.c (opendir, closedir): Undefine.
50725         * lib/glob.c (opendir, closedir): Undefine.
50726         * lib/javacomp.c (open, close): Undefine.
50727         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
50728         * lib/openat-proc.c (open, close): Undefine.
50729         * lib/pagealign_alloc.c (open, close): Undefine.
50730         * lib/pipe.c (open, close): Undefine.
50731         * lib/progreloc.c (open, close): Undefine.
50732         * lib/savedir.c (opendir, closedir): Undefine.
50733         * lib/utime.c (open, close): Undefine.
50734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
50735
50736 2007-01-10  Bruno Haible  <bruno@clisp.org>
50737
50738         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
50739
50740 2007-01-12  Eric Blake  <ebb9@byu.net>
50741
50742         Provide a robust <wchar.h>.  Further simplifications are now
50743         possible in other modules, but not included here.
50744         * modules/wchar: New module.
50745         * m4/wchar.m4: New file.
50746         * lib/wchar_.h: Likewise.
50747         * modules/mbchar (Depends-on): Depend on wchar, as the first use
50748         of the new module.
50749         * MODULES.html.sh (Extended multibyte and wide character utilities):
50750         New section.
50751
50752 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
50753
50754         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
50755         to a reasonable default for memory allocation.
50756         (xreadlink): Don't allocate a huge buffer, to work around a buggy
50757         file system that reports garbage st_size values for symlinks.
50758         Problem reported by Liyang Hu.
50759
50760 2007-01-11  Simon Josefsson  <simon@josefsson.org>
50761
50762         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
50763         Emacs .#* auto-save files).
50764
50765 2007-01-11  Bruno Haible  <bruno@clisp.org>
50766
50767         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
50768         directory.
50769
50770 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
50771
50772         Use @...@ consistently in lib/wctype_.h.
50773         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
50774         on it being set to 1 or 0.
50775         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
50776         go back to AC_SUBSTing it.
50777         * modules/wctype (Makefile.am): Undo previous change.
50778
50779 2007-01-10  Eric Blake  <ebb9@byu.net>
50780
50781         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
50782         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
50783         * modules/wctype (Makefile.am): Likewise.
50784         Reported by Chris McGuire.
50785
50786 2007-01-10  Jim Meyering  <jim@meyering.net>
50787
50788         fts.c: a small readability/maintainability improvement
50789         * lib/fts.c (fts_read): Make this code slightly more readable and
50790         maintainable by hoisting the "sp->fts_cur = p" assignments to
50791         immediately follow the statements that set P.  Derived from
50792         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
50793
50794 2007-01-10  Eric Blake  <ebb9@byu.net>
50795
50796         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
50797         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
50798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50799         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50800         Reported by Chris McGuire.
50801
50802 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50803
50804         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
50805         in sed script.
50806
50807 2007-01-09  Bruno Haible  <bruno@clisp.org>
50808
50809         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
50810         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
50811         variables.
50812         (func_module): Use them.
50813
50814 2007-01-09  Bruno Haible  <bruno@clisp.org>
50815
50816         * modules/unistr/base: New file.
50817         * lib/unistr.h: New file.
50818
50819         * modules/unistr/u8-to-u16: New file.
50820         * lib/unistr/u8-to-u16.c: New file.
50821
50822         * modules/unistr/u8-to-u32: New file.
50823         * lib/unistr/u8-to-u32.c: New file.
50824
50825         * modules/unistr/u16-to-u8: New file.
50826         * lib/unistr/u16-to-u8.c: New file.
50827
50828         * modules/unistr/u16-to-u32: New file.
50829         * lib/unistr/u16-to-u32.c: New file.
50830
50831         * modules/unistr/u32-to-u8: New file.
50832         * lib/unistr/u32-to-u8.c: New file.
50833
50834         * modules/unistr/u32-to-u16: New file.
50835         * lib/unistr/u32-to-u16.c: New file.
50836
50837         * modules/unistr/u8-check: New file.
50838         * modules/unistr/u16-check: New file.
50839         * modules/unistr/u32-check: New file.
50840         * lib/unistr/u8-check.c: New file.
50841         * lib/unistr/u16-check.c: New file.
50842         * lib/unistr/u32-check.c: New file.
50843
50844         * modules/unistr/u8-chr: New file.
50845         * modules/unistr/u16-chr: New file.
50846         * modules/unistr/u32-chr: New file.
50847         * lib/unistr/u8-chr.c: New file.
50848         * lib/unistr/u16-chr.c: New file.
50849         * lib/unistr/u32-chr.c: New file.
50850
50851         * modules/unistr/u8-cmp: New file.
50852         * modules/unistr/u16-cmp: New file.
50853         * modules/unistr/u32-cmp: New file.
50854         * lib/unistr/u8-cmp.c: New file.
50855         * lib/unistr/u16-cmp.c: New file.
50856         * lib/unistr/u32-cmp.c: New file.
50857
50858         * modules/unistr/u8-cpy: New file.
50859         * modules/unistr/u16-cpy: New file.
50860         * modules/unistr/u32-cpy: New file.
50861         * lib/unistr/u8-cpy.c: New file.
50862         * lib/unistr/u16-cpy.c: New file.
50863         * lib/unistr/u32-cpy.c: New file.
50864         * lib/unistr/u-cpy.h: New file.
50865
50866         * modules/unistr/u8-cpy-alloc: New file.
50867         * modules/unistr/u16-cpy-alloc: New file.
50868         * modules/unistr/u32-cpy-alloc: New file.
50869         * lib/unistr/u8-cpy-alloc.c: New file.
50870         * lib/unistr/u16-cpy-alloc.c: New file.
50871         * lib/unistr/u32-cpy-alloc.c: New file.
50872         * lib/unistr/u-cpy-alloc.h: New file.
50873
50874         * modules/unistr/u8-endswith: New file.
50875         * modules/unistr/u16-endswith: New file.
50876         * modules/unistr/u32-endswith: New file.
50877         * lib/unistr/u8-endswith.c: New file.
50878         * lib/unistr/u16-endswith.c: New file.
50879         * lib/unistr/u32-endswith.c: New file.
50880         * lib/unistr/u-endswith.h: New file.
50881
50882         * modules/unistr/u8-mblen: New file.
50883         * modules/unistr/u16-mblen: New file.
50884         * modules/unistr/u32-mblen: New file.
50885         * lib/unistr/u8-mblen.c: New file.
50886         * lib/unistr/u16-mblen.c: New file.
50887         * lib/unistr/u32-mblen.c: New file.
50888
50889         * modules/unistr/u8-mbtouc: New file.
50890         * modules/unistr/u16-mbtouc: New file.
50891         * modules/unistr/u32-mbtouc: New file.
50892         * lib/unistr/u8-mbtouc.c: New file.
50893         * lib/unistr/u16-mbtouc.c: New file.
50894         * lib/unistr/u32-mbtouc.c: New file.
50895
50896         * modules/unistr/u8-mbtouc-safe: New file.
50897         * modules/unistr/u16-mbtouc-safe: New file.
50898         * modules/unistr/u32-mbtouc-safe: New file.
50899         * lib/unistr/u8-mbtouc-safe.c: New file.
50900         * lib/unistr/u16-mbtouc-safe.c: New file.
50901         * lib/unistr/u32-mbtouc-safe.c: New file.
50902
50903         * modules/unistr/u8-move: New file.
50904         * modules/unistr/u16-move: New file.
50905         * modules/unistr/u32-move: New file.
50906         * lib/unistr/u8-move.c: New file.
50907         * lib/unistr/u16-move.c: New file.
50908         * lib/unistr/u32-move.c: New file.
50909         * lib/unistr/u-move.h: New file.
50910
50911         * modules/unistr/u8-next: New file.
50912         * modules/unistr/u16-next: New file.
50913         * modules/unistr/u32-next: New file.
50914         * lib/unistr/u8-next.c: New file.
50915         * lib/unistr/u16-next.c: New file.
50916         * lib/unistr/u32-next.c: New file.
50917
50918         * modules/unistr/u8-prev: New file.
50919         * modules/unistr/u16-prev: New file.
50920         * modules/unistr/u32-prev: New file.
50921         * lib/unistr/u8-prev.c: New file.
50922         * lib/unistr/u16-prev.c: New file.
50923         * lib/unistr/u32-prev.c: New file.
50924
50925         * modules/unistr/u8-set: New file.
50926         * modules/unistr/u16-set: New file.
50927         * modules/unistr/u32-set: New file.
50928         * lib/unistr/u8-set.c: New file.
50929         * lib/unistr/u16-set.c: New file.
50930         * lib/unistr/u32-set.c: New file.
50931         * lib/unistr/u-set.h: New file.
50932
50933         * modules/unistr/u8-startswith: New file.
50934         * modules/unistr/u16-startswith: New file.
50935         * modules/unistr/u32-startswith: New file.
50936         * lib/unistr/u8-startswith.c: New file.
50937         * lib/unistr/u16-startswith.c: New file.
50938         * lib/unistr/u32-startswith.c: New file.
50939         * lib/unistr/u-startswith.h: New file.
50940
50941         * modules/unistr/u8-stpcpy: New file.
50942         * modules/unistr/u16-stpcpy: New file.
50943         * modules/unistr/u32-stpcpy: New file.
50944         * lib/unistr/u8-stpcpy.c: New file.
50945         * lib/unistr/u16-stpcpy.c: New file.
50946         * lib/unistr/u32-stpcpy.c: New file.
50947         * lib/unistr/u-stpcpy.h: New file.
50948
50949         * modules/unistr/u8-stpncpy: New file.
50950         * modules/unistr/u16-stpncpy: New file.
50951         * modules/unistr/u32-stpncpy: New file.
50952         * lib/unistr/u8-stpncpy.c: New file.
50953         * lib/unistr/u16-stpncpy.c: New file.
50954         * lib/unistr/u32-stpncpy.c: New file.
50955         * lib/unistr/u-stpncpy.h: New file.
50956
50957         * modules/unistr/u8-strcat: New file.
50958         * modules/unistr/u16-strcat: New file.
50959         * modules/unistr/u32-strcat: New file.
50960         * lib/unistr/u8-strcat.c: New file.
50961         * lib/unistr/u16-strcat.c: New file.
50962         * lib/unistr/u32-strcat.c: New file.
50963         * lib/unistr/u-strcat.h: New file.
50964
50965         * modules/unistr/u8-strchr: New file.
50966         * modules/unistr/u16-strchr: New file.
50967         * modules/unistr/u32-strchr: New file.
50968         * lib/unistr/u8-strchr.c: New file.
50969         * lib/unistr/u16-strchr.c: New file.
50970         * lib/unistr/u32-strchr.c: New file.
50971
50972         * modules/unistr/u8-strcmp: New file.
50973         * modules/unistr/u16-strcmp: New file.
50974         * modules/unistr/u32-strcmp: New file.
50975         * lib/unistr/u8-strcmp.c: New file.
50976         * lib/unistr/u16-strcmp.c: New file.
50977         * lib/unistr/u32-strcmp.c: New file.
50978
50979         * modules/unistr/u8-strcpy: New file.
50980         * modules/unistr/u16-strcpy: New file.
50981         * modules/unistr/u32-strcpy: New file.
50982         * lib/unistr/u8-strcpy.c: New file.
50983         * lib/unistr/u16-strcpy.c: New file.
50984         * lib/unistr/u32-strcpy.c: New file.
50985         * lib/unistr/u-strcpy.h: New file.
50986
50987         * modules/unistr/u8-strcspn: New file.
50988         * modules/unistr/u16-strcspn: New file.
50989         * modules/unistr/u32-strcspn: New file.
50990         * lib/unistr/u8-strcspn.c: New file.
50991         * lib/unistr/u16-strcspn.c: New file.
50992         * lib/unistr/u32-strcspn.c: New file.
50993         * lib/unistr/u-strcspn.h: New file.
50994
50995         * modules/unistr/u8-strdup: New file.
50996         * modules/unistr/u16-strdup: New file.
50997         * modules/unistr/u32-strdup: New file.
50998         * lib/unistr/u8-strdup.c: New file.
50999         * lib/unistr/u16-strdup.c: New file.
51000         * lib/unistr/u32-strdup.c: New file.
51001         * lib/unistr/u-strdup.h: New file.
51002
51003         * modules/unistr/u8-strlen: New file.
51004         * modules/unistr/u16-strlen: New file.
51005         * modules/unistr/u32-strlen: New file.
51006         * lib/unistr/u8-strlen.c: New file.
51007         * lib/unistr/u16-strlen.c: New file.
51008         * lib/unistr/u32-strlen.c: New file.
51009         * lib/unistr/u-strlen.h: New file.
51010
51011         * modules/unistr/u8-strmblen: New file.
51012         * modules/unistr/u16-strmblen: New file.
51013         * modules/unistr/u32-strmblen: New file.
51014         * lib/unistr/u8-strmblen.c: New file.
51015         * lib/unistr/u16-strmblen.c: New file.
51016         * lib/unistr/u32-strmblen.c: New file.
51017
51018         * modules/unistr/u8-strmbtouc: New file.
51019         * modules/unistr/u16-strmbtouc: New file.
51020         * modules/unistr/u32-strmbtouc: New file.
51021         * lib/unistr/u8-strmbtouc.c: New file.
51022         * lib/unistr/u16-strmbtouc.c: New file.
51023         * lib/unistr/u32-strmbtouc.c: New file.
51024
51025         * modules/unistr/u8-strncat: New file.
51026         * modules/unistr/u16-strncat: New file.
51027         * modules/unistr/u32-strncat: New file.
51028         * lib/unistr/u8-strncat.c: New file.
51029         * lib/unistr/u16-strncat.c: New file.
51030         * lib/unistr/u32-strncat.c: New file.
51031         * lib/unistr/u-strncat.h: New file.
51032
51033         * modules/unistr/u8-strncmp: New file.
51034         * modules/unistr/u16-strncmp: New file.
51035         * modules/unistr/u32-strncmp: New file.
51036         * lib/unistr/u8-strncmp.c: New file.
51037         * lib/unistr/u16-strncmp.c: New file.
51038         * lib/unistr/u32-strncmp.c: New file.
51039
51040         * modules/unistr/u8-strncpy: New file.
51041         * modules/unistr/u16-strncpy: New file.
51042         * modules/unistr/u32-strncpy: New file.
51043         * lib/unistr/u8-strncpy.c: New file.
51044         * lib/unistr/u16-strncpy.c: New file.
51045         * lib/unistr/u32-strncpy.c: New file.
51046         * lib/unistr/u-strncpy.h: New file.
51047
51048         * modules/unistr/u8-strnlen: New file.
51049         * modules/unistr/u16-strnlen: New file.
51050         * modules/unistr/u32-strnlen: New file.
51051         * lib/unistr/u8-strnlen.c: New file.
51052         * lib/unistr/u16-strnlen.c: New file.
51053         * lib/unistr/u32-strnlen.c: New file.
51054         * lib/unistr/u-strnlen.h: New file.
51055
51056         * modules/unistr/u8-strpbrk: New file.
51057         * modules/unistr/u16-strpbrk: New file.
51058         * modules/unistr/u32-strpbrk: New file.
51059         * lib/unistr/u8-strpbrk.c: New file.
51060         * lib/unistr/u16-strpbrk.c: New file.
51061         * lib/unistr/u32-strpbrk.c: New file.
51062         * lib/unistr/u-strpbrk.h: New file.
51063
51064         * modules/unistr/u8-strrchr: New file.
51065         * modules/unistr/u16-strrchr: New file.
51066         * modules/unistr/u32-strrchr: New file.
51067         * lib/unistr/u8-strrchr.c: New file.
51068         * lib/unistr/u16-strrchr.c: New file.
51069         * lib/unistr/u32-strrchr.c: New file.
51070
51071         * modules/unistr/u8-strspn: New file.
51072         * modules/unistr/u16-strspn: New file.
51073         * modules/unistr/u32-strspn: New file.
51074         * lib/unistr/u8-strspn.c: New file.
51075         * lib/unistr/u16-strspn.c: New file.
51076         * lib/unistr/u32-strspn.c: New file.
51077         * lib/unistr/u-strspn.h: New file.
51078
51079         * modules/unistr/u8-strstr: New file.
51080         * modules/unistr/u16-strstr: New file.
51081         * modules/unistr/u32-strstr: New file.
51082         * lib/unistr/u8-strstr.c: New file.
51083         * lib/unistr/u16-strstr.c: New file.
51084         * lib/unistr/u32-strstr.c: New file.
51085         * lib/unistr/u-strstr.h: New file.
51086
51087         * modules/unistr/u8-strtok: New file.
51088         * modules/unistr/u16-strtok: New file.
51089         * modules/unistr/u32-strtok: New file.
51090         * lib/unistr/u8-strtok.c: New file.
51091         * lib/unistr/u16-strtok.c: New file.
51092         * lib/unistr/u32-strtok.c: New file.
51093         * lib/unistr/u-strtok.h: New file.
51094
51095         * modules/unistr/u8-uctomb: New file.
51096         * modules/unistr/u16-uctomb: New file.
51097         * modules/unistr/u32-uctomb: New file.
51098         * lib/unistr/u8-uctomb.c: New file.
51099         * lib/unistr/u16-uctomb.c: New file.
51100         * lib/unistr/u32-uctomb.c: New file.
51101
51102         * MODULES.html.sh (Unicode string functions): Add the new modules.
51103
51104 2007-01-08  Bruno Haible  <bruno@clisp.org>
51105
51106         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
51107         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
51108         subdirectories.
51109
51110 2007-01-08  Karl Berry  <karl@gnu.org>
51111
51112         * doc/error.texi: mention that main() fns must set program_name
51113         when progname is used.
51114
51115 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
51116
51117         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
51118         WCTYPE_H is empty, for the benefit of builds from non-distclean
51119         directories.  Problem reported by Eric Blake in
51120         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
51121
51122 2007-01-08  Bruno Haible  <bruno@clisp.org>
51123
51124         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
51125         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
51126         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
51127         PROVIDE_CANONICALIZE_FILENAME_MODE.
51128         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
51129
51130 2007-01-08  Bruno Haible  <bruno@clisp.org>
51131
51132         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
51133         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
51134         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
51135         * lib/fts.c: Likewise.
51136         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
51137
51138 2006-12-25  Bruno Haible  <bruno@clisp.org>
51139
51140         * modules/utf8-ucs4-safe: New file.
51141         * lib/utf8-ucs4-safe.h: New file.
51142         * lib/unistr/utf8-ucs4-safe.c: New file.
51143
51144         * modules/utf16-ucs4-safe: New file.
51145         * lib/utf16-ucs4-safe.h: New file.
51146         * lib/unistr/utf16-ucs4-safe.c: New file.
51147
51148         * MODULES.html.sh (Unicode string functions): Add the new modules.
51149
51150 2007-01-08  Bruno Haible  <bruno@clisp.org>
51151
51152         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
51153         (Depends-on): Add unitypes.
51154         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
51155         (u8_mbtouc_aux): Move out to separate file.
51156         (u8_mbtouc): Use ucs4_t, uint8_t types.
51157         * lib/unistr/utf8-ucs4.c: New file.
51158
51159         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
51160         (Depends-on): Add unitypes.
51161         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
51162         (u16_mbtouc_aux): Move out to separate file.
51163         (u16_mbtouc): Use ucs4_t, uint16_t types.
51164         * lib/unistr/utf16-ucs4.c: New file.
51165
51166         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
51167         (Depends-on): Add unitypes.
51168         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
51169         (u8_uctomb_aux): Move out to separate file.
51170         (u8_uctomb): Use ucs4_t, uint8_t types.
51171         * lib/unistr/ucs4-utf8.c: New file.
51172
51173         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
51174         (Depends-on): Add unitypes.
51175         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
51176         (u16_uctomb_aux): Move out to separate file.
51177         (u16_uctomb): Use ucs4_t, uint16_t types.
51178         * lib/unistr/ucs4-utf16.c: New file.
51179
51180 2006-12-25  Bruno Haible  <bruno@clisp.org>
51181
51182         * modules/unitypes: New file.
51183         * lib/unitypes.h: New file.
51184         * MODULES.html.sh (func_all_modules): New section "Unicode string
51185         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
51186         this section. Add unitypes.
51187
51188 2007-01-08  Bruno Haible  <bruno@clisp.org>
51189
51190         Avoid variable names that conflict with those from libtool.
51191         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
51192         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
51193         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
51194         library_names_spec to acl_library_names_spec, hardcode_* to
51195         acl_hardcode_*.
51196         Reported by Ralf Wildenhues.
51197
51198 2007-01-08  Bruno Haible  <bruno@clisp.org>
51199
51200         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
51201         definition.
51202         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
51203         definition.
51204         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
51205         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
51206         definition.
51207         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
51208         definition.
51209         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
51210         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
51211         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
51212         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
51213         definition.
51214         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
51215         definition.
51216         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
51217         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
51218         GC_USE_<algorithm>.
51219         * lib/gc-libgcrypt.c: Likewise.
51220         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
51221         * modules/gc-arctwo (configure.ac): Likewise.
51222         * modules/gc-des (configure.ac): Likewise.
51223         * modules/gc-hmac-md5 (configure.ac): Likewise.
51224         * modules/gc-hmac-sha1 (configure.ac): Likewise.
51225         * modules/gc-md2 (configure.ac): Likewise.
51226         * modules/gc-md4 (configure.ac): Likewise.
51227         * modules/gc-md5 (configure.ac): Likewise.
51228         * modules/gc-random (configure.ac): Likewise.
51229         * modules/gc-rijndael (configure.ac): Likewise.
51230         * modules/gc-sha1 (configure.ac): Likewise.
51231
51232 2007-01-08  Bruno Haible  <bruno@clisp.org>
51233
51234         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
51235         macro definition.
51236         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
51237         definition.
51238         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
51239         definition.
51240         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
51241         * modules/fcntl-safer (configure.ac): Likewise.
51242         * modules/fopen-safer (configure.ac): Likewise.
51243         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
51244         GNULIB_FWRITEERROR macro definition.
51245
51246 2007-01-08  Bruno Haible  <bruno@clisp.org>
51247
51248         * m4/gnulib-common.m4: New file.
51249         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
51250         (func_get_filelist): Add m4/gnulib-common.m4.
51251
51252 2007-01-08  Bruno Haible  <bruno@clisp.org>
51253
51254         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
51255         command.
51256
51257 2007-01-08  Jim Meyering  <jim@meyering.net>
51258
51259         Use a more robust test for a "can't happen" condition.
51260         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
51261         narrowed the st_size value.  Presuming the "can't happen" condition
51262         is true, that narrowing could conceivably convert an invalid st_size
51263         value into a valid one.  Instead, use a change based on Matthew
51264         Woehlke's original patch.
51265
51266         Slight readability improvement: use an assert-like macro
51267         in place of literal "abort ()" uses.
51268         * lib/fts.c (fts_assert): Define.
51269         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
51270         Use this macro instead of a bare 'abort'.
51271
51272 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
51273
51274         Don't worry about using IRIX 5.3's wctype.h broken definitions;
51275         simply work around them.
51276         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
51277         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
51278         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
51279         declaring.
51280         Don't bother to define as macros, since the standard doesn't require it.
51281         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
51282         longer worry about IRIX 5.3.
51283         (HAVE_WCTYPE_CTMP_BUG): Remove.
51284
51285 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51286
51287         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
51288         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
51289         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51290         Problems reported by Georg Schwarz for IRIX 5.3.
51291
51292         * gnulib-tool (autoconf_minversion): Take the maximum version number
51293         found, not the minimum.  Problem reported by James Youngman.
51294
51295 2007-01-03  Karl Berry  <karl@gnu.org>
51296
51297         * doc/error.texi: new file, explaining interaction with progname.
51298         * doc/gnulib.texi: include it.  Update copyright.
51299
51300 2007-01-03  Simon Josefsson  <simon@josefsson.org>
51301
51302         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
51303         AC_CANONICAL_HOST, to improve autobuild outputs.
51304
51305 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
51306             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51307
51308         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
51309         sockets, server sockets, and other file descriptors.  Count errors
51310         to compute the return value.  Reorder the code a bit to be easier
51311         to follow.  Don't set event bits that were not requested (except
51312         POLLERR and POLLHUP).
51313
51314 2007-01-01  Bruno Haible  <bruno@clisp.org>
51315
51316         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
51317
51318 2007-01-03  Jim Meyering  <jim@meyering.net>
51319
51320         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
51321
51322 2007-01-02  Bruno Haible  <bruno@clisp.org>
51323
51324         * modules/settime (Include): Require timespec.h.
51325         * modules/nanosleep (Include): Likewise.
51326
51327 2007-01-01  Bruno Haible  <bruno@clisp.org>
51328
51329         * gnulib-tool (func_emit_copyright_notice): Bump year.
51330         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
51331
51332 2007-01-01  Bruno Haible  <bruno@clisp.org>
51333
51334         Improve support for OpenBSD.
51335         * build-aux/config.rpath (libname_spec): Export.
51336         (library_names_spec): New variable. Export.
51337         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
51338         library_names_spec from the config.rpath output. Locate shared library
51339         through the name pattern in library_names_spec.
51340
51341 2007-01-01  Eric Blake  <ebb9@byu.net>
51342
51343         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
51344
51345 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
51346
51347         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
51348         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
51349         assume the C locale, and avoid an "eval" that could cause trouble.
51350         Problem with SORT reported by Bob Proulx.
51351
51352         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
51353         Define.  Trivial patch from Henning Nielsen Lund, originally
51354         sent to bug-grep@gnu.org today.
51355
51356 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51357
51358         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
51359         struct stat.  Problem reported by Henning Nielsen Lund.
51360         * lib/acl.c: Include acl.h first, to check interface.  Don't
51361         bother to include sys/types.h and sys/stat.h again.
51362
51363 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51364
51365         Import the following change from libc; problem reported by
51366         Sven Verdoolaege.
51367
51368         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
51369
51370         [BZ #1373]
51371         * lib/argp.h: Remove __NTH for __argp_usage inline function.
51372
51373 2006-12-28  Jim Meyering  <jim@meyering.net>
51374
51375         * build-aux/announce-gen: Do not assume that the package
51376         builds any of tar.gz, tar.bz2, and .xdelta files.
51377         Suggestion from Simon Josefsson.
51378
51379 2006-12-28  Simon Josefsson  <simon@josefsson.org>
51380
51381         * modules/announce-gen: New file.
51382
51383 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
51384
51385         * lib/mbchar.h: Just include <wctype.h>; the wctype module
51386         handles its gotchas now.
51387         * lib/mbswidth.c: Likewise.
51388         * lib/wcwidth.h: Likewise.
51389         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
51390         and iswcntrl; the wctype module does this stuff now.
51391         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51393         * modules/mbchar (Depends-on): Add wctype.
51394         * modules/mbswidth (Depends-on): Likewise.
51395         * modules/wcwidth (Depends-on): Likewise.
51396
51397 2006-12-27  Eric Blake  <ebb9@byu.net>
51398
51399         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
51400         module uses more than what <wctype.h> is required to provide.
51401
51402 2006-12-26  Eric Blake  <ebb9@byu.net>
51403
51404         * gnulib-tool (sed_extract_prog): Avoid space-tab.
51405
51406 2006-12-26  Eric Blake  <ebb9@byu.net>
51407
51408         * modules/absolute-header: New module.
51409         * modules/fcntl (Depends-on): Depend on it.
51410         * modules/inttypes (Depends-on): Likewise.
51411         * modules/stdint (Depends-on): Likewise.
51412         * modules/sys_stat (Depends-on): Likewise.
51413         * modules/wctype (Depends-on): Likewise.
51414         * MODULES.html.sh (Support for building libraries and
51415         executables): Document it.
51416
51417 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51418
51419         * gnulib-tool (SED): Remove, undoing previous change.
51420         The problem was that it broke coreutils on Solaris, because
51421         "sed --posix" leaked into a makefile.
51422         (sed): New alias, if 'alias' and GNU sed.
51423
51424 2006-12-24  Jim Meyering  <jim@meyering.net>
51425
51426         Work around an fchownat bug in glibc-2.4:
51427         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
51428         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
51429         in spite of the -P option.
51430         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
51431         New macros.
51432         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
51433         * modules/openat (Files): Add lib/fchownat.c.
51434         * lib/openat.c (fchownat): Don't define here.  Move to...
51435         * lib/fchownat.c: ...this new file.
51436
51437 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51438
51439         Fix bug reported by Bruno Haible in
51440         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
51441         where quotearg.c didn't compile on Mac OS X 10.2 because it
51442         lacks <wchar.h> and wint_t.
51443         * lib/wctype_.h (__wctype_wint_t): New type.
51444         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
51445         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
51446         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
51447         Arg is now of type __wctype_wint_t, not wint_t.
51448         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
51449         substitute HAVE_WINT_T.
51450         * modules/wctype (Files): Add m4/wint_t.m4.
51451         (wctype.h): Substitute HAVE_WINT_T.
51452
51453 2006-12-23  Bruno Haible  <bruno@clisp.org>
51454
51455         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
51456
51457 2006-12-23  Bruno Haible  <bruno@clisp.org>
51458
51459         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
51460         S_ISLNK.
51461         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
51462         mingw.
51463
51464 2006-12-22  Bruno Haible  <bruno@clisp.org>
51465
51466         * lib/copy-file.c: Include acl.h.
51467         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
51468         Close the file descriptors only after being done with copy_acl.
51469         * modules/copy-file (Depends-on): Add acl.
51470
51471 2006-12-22  Bruno Haible  <bruno@clisp.org>
51472
51473         * gnulib-tool (SED): New variable.
51474         Use $SED instead of sed everywhere.
51475
51476 2006-12-22  Bruno Haible  <bruno@clisp.org>
51477
51478         * modules/no-c++: New file.
51479         * m4/no-c++.m4: New file.
51480         * MODULES.html.sh (Support for building libraries and executables):
51481         Add no-c++.
51482
51483 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
51484
51485         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51486         Include <limits.h>, and use its INT_MAX to rewrite the
51487         j loop so that it does not overflow 'int'.  Problem reported by
51488         Ralf Wildenhues in
51489         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
51490         Play it safe by shifting left by 1 rather than multiplying by 2,
51491         as GCC is less likely to optimize this away when the value
51492         is signed (when it assumes overflow leads to undefined behavior).
51493         Also, don't assume time_t uses two's complement.
51494
51495 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
51496
51497         * MODULES.html.sh: New module wctype.
51498         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
51499         * lib/fnmatch.c: Don't bother to include <wchar.h> before
51500         <wctype.h>, since the new wctype module should fix this.
51501         * lib/quotearg.c: Include <wctype.h> unconditionally, since
51502         the wctype module should arrange for it.
51503         * lib/regex_internal.h: Likewise.
51504         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
51505         since the wctype module should handle this now.
51506         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
51507         * modules/fnmatch (Depends-on): Add wctype.
51508         * modules/quotearg (Depends-on): Likewise.
51509         * modules/regex (Depends-on): Likewise.
51510
51511 2006-12-19  Bruno Haible  <bruno@clisp.org>
51512
51513         * lib/strdup.h [C++]: Wrap definitions in extern "C".
51514         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
51515
51516 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51517
51518         * modules/savewd (Depends-on): Fix dependency on fcntl.
51519
51520 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51521
51522         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
51523         conforms to C99, rather than relying on the user's environment
51524         setting of STDINT_H.
51525
51526 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51527         and Eric Blake  <ebb9@byu.net>
51528
51529         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
51530         This is more consistent with the other defines here.
51531         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
51532         Port to z/OS.  Problem reported by Paul Gilmartin.
51533         Change local vars to use gl_ prefix rather than ac_.
51534         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
51535         with other defines.
51536         * modules/double-slash-root: New module.
51537         * modules/dirname (Files): Remove m4/double-slash-root.m4.
51538         (Depends-on): Add double-slash-root.
51539         * MODULES.html.sh (File system functions): Mention new module.
51540
51541 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
51542
51543         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
51544         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
51545         This is for the benefit of gzip, which doesn't do i18n.
51546
51547 2006-12-12  Jim Meyering  <jim@meyering.net>
51548
51549         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
51550         Reported by Andreas Schwab <schwab@suse.de>.
51551
51552 2006-12-12  Bruno Haible  <bruno@clisp.org>
51553
51554         Merge these changes.
51555         2006-09-05  Bruno Haible  <bruno@clisp.org>
51556         * lib/iconvme.c (iconv_string): No need to save and restore errno when
51557         iconv_alloc succeeded.
51558         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
51559         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
51560         test for " && dest " at the end - dest is always != NULL there. Call
51561         iconv with 4xNULL arguments initially, to reset the state. Call iconv
51562         with 2xNULL arguments, also to flush the state storage. Handle the
51563         IRIX iconv behaviour. Realloc the final result, to throw away unused
51564         memory.
51565
51566 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
51567
51568         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
51569         and fchmodat unconditionally, since glibc 2.4 has them.
51570         Problem reported by Arkadiusz Miskiewicz.
51571
51572 2006-12-10  Bruno Haible  <bruno@clisp.org>
51573
51574         * gnulib-tool (func_import): Show the include files only for those
51575         modules that are copied and specified.
51576         Reported by Karl Berry.
51577
51578 2006-12-08  Jim Meyering  <jim@meyering.net>
51579
51580         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
51581         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
51582
51583         * build-aux/announce-gen: Add two new options, both optional:
51584         --bootstrap-tools=TOOL_LIST
51585               a comma-separated list of tools, e.g.,
51586               autoconf,automake,bison,gnulib
51587         --gnulib-snapshot-date=DATE
51588               if gnulib is in the bootstrap tool list,
51589               then report this as the snapshot date.
51590               If not specified, use the current date/time.
51591               If you specify a date here, be sure it's UTC.
51592
51593 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51594
51595         * tests/test-argp-2.sh: Fix test to match actual output.
51596         (func_compare): Fix sed script to be portable.
51597
51598 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
51599
51600         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
51601         workaround for this case.  It is not autoconfigured now; offhand
51602         it's hard to see how to autoconfigure it.
51603
51604 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51605
51606         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
51607         a directory that is about to be chowned.  Such a directory's
51608         initial file permissions should permit the owner only and this
51609         should not be changed until after the chown, since the group and
51610         other bits would be incorrect if they granted permission before
51611         the chown.
51612
51613         Fix porting problem for iswctype reported by Georg Schwarz in:
51614         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
51615         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
51616         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
51617         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
51618         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51619
51620 2006-12-03  Jim Meyering  <jim@meyering.net>
51621
51622         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
51623         p->fts_statp may not yet be defined.
51624         (fts_read): Instead, set it in the caller, once p->fts_statp is
51625         sure to be defined, and corresponds to a top-level directory.
51626         This bug made du -x fail.  Here's the coreutils test case:
51627         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
51628         Reported by Mike Frysinger.
51629
51630 2006-12-01  Jim Meyering  <jim@meyering.net>
51631
51632         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
51633         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
51634         Reported by Simon Josefsson.
51635
51636 2006-11-30  Jim Meyering  <jim@meyering.net>
51637
51638         * m4/warning.m4: Use the all-permissive copyright notice
51639         recommended by RMS (rather than LGPL).
51640         * m4/vararrays.m4: Likewise.
51641         * m4/flexmember.m4: Likewise.
51642
51643 2006-11-29  Bruno Haible  <bruno@clisp.org>
51644
51645         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51646         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
51647         using +=.
51648         Reported by Simon Josefsson <simon@josefsson.org>.
51649
51650 2006-11-28  James Youngman <jay@gnu.org>
51651
51652         * README: Advise users that they might find the bug-gnulib@gnu.org
51653         and autotools-announce@gnu.org mailing lists useful.
51654
51655 2006-11-28  Bruno Haible  <bruno@clisp.org>
51656
51657         * m4/ptrdiff_max.m4: Remove file.
51658
51659 2006-11-21  Bruno Haible  <bruno@clisp.org>
51660
51661         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
51662         _AC_COMPUTE_INT.
51663         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51664         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
51665         _AC_COMPUTE_INT.
51666         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51667         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
51668         _AC_COMPUTE_INT.
51669         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51670
51671 2006-11-28  Jim Meyering  <jim@meyering.net>
51672
51673         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
51674         warning from "gcc -Wshadow" about shadowing the builtin.
51675
51676 2006-11-27  Bruno Haible  <bruno@clisp.org>
51677
51678         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
51679         _AC_COMPUTE_INT.
51680         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
51681
51682 2006-11-27  Bruno Haible  <bruno@clisp.org>
51683             Paul Eggert  <eggert@cs.ucla.edu>
51684
51685         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
51686
51687 2006-11-26  Bruno Haible  <bruno@clisp.org>
51688
51689         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51690         noinst_LTLIBRARIES.
51691
51692 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51693             Bruno Haible  <bruno@clisp.org>
51694
51695         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
51696         if compiling with "gcc -ansi".
51697
51698 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51699
51700         Fix some incompatibilities with gcc -ansi -pedantic.
51701         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
51702         if compiling pedantically with GCC, unless it's C99 or later.
51703         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
51704         it mishandles gcc -ansi -pedantic as well.
51705         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
51706         if gcc -pedantic.
51707         * lib/regexec.c (check_node_accept_bytes): Don't use auto
51708         initializers for struct if -pedantic, unless it's C99 or later.
51709
51710 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
51711
51712         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
51713         Don't close an fd more than once. Identical atimes indicate
51714         success, not failure.
51715
51716 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
51717
51718         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
51719
51720 2006-11-23  Jim Meyering  <jim@meyering.net>
51721
51722         * build-aux/announce-gen: New file.  From coreutils.
51723
51724 2006-11-22  Jim Meyering  <jim@meyering.net>
51725
51726         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
51727         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
51728         (fts_read): Use a temporary to narrow the overused st_size member
51729         before using it in a switch statement.  Reported by Matthew Woehlke.
51730
51731         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
51732         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
51733
51734 2006-11-20  Bruno Haible  <bruno@clisp.org>
51735
51736         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
51737         changequote instead of pairs of brackets.
51738         Reported by Andreas Schwab <schwab@suse.de>.
51739
51740 2006-11-21  Jim Meyering  <jim@meyering.net>
51741
51742         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
51743         so as to remain compatible with older compilers.
51744         Patch from Michael Deutschmann.
51745
51746 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51747
51748         * MODULES.html.sh (File system functions): Add openat.
51749
51750         * lib/openat.h (rpl_fstatat): New macro, if
51751         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
51752         (fstatat): Define to rpl_fstatat under the same conditions,
51753         unless COMPILING_FSTATAT.
51754         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
51755         seems to have the bug.
51756         * lib/fstatat.c: New file.
51757         * modules/openat (Files): Add it.
51758
51759 2006-11-20  Bruno Haible  <bruno@clisp.org>
51760
51761         * Makefile: New file.
51762
51763 2006-11-20  Jim Meyering  <jim@meyering.net>
51764
51765         The beginnings of syntax-related checks for gnulib.
51766         * lib/Makefile: New file.
51767         * lib/t-idcache: New script.  Ensure that the two halves of
51768         idcache.c stay in sync.
51769
51770         * lib/idcache.c: Adjust comments in user- and group- portions to
51771         be more accurate, and to be consistent with one another.
51772
51773 2006-11-20  Jim Meyering  <jim@meyering.net>
51774
51775         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
51776         continue using the flexible array member (thus, this module performs
51777         half as many malloc calls), with the addition that...
51778         (getgroup, getuser): Consistently record a non-match via an empty
51779         "name" string, and map an empty string match to a NULL return value.
51780         * modules/idcache (Depends-on): Re-add flexmember.
51781
51782         * lib/idcache.c (getuser): Remove all uses of the register keyword.
51783         (getuidbyname, getgroup, getgidbyname): Likewise.
51784
51785         Use cleaner syntax: NULL rather than 0.
51786         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
51787
51788 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51789
51790         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
51791         It mishandled the case where the group was missing.
51792         Problem reported by Greg Schafer.
51793         * modules/idcache: Likewise.
51794
51795 2006-11-18  Jim Meyering  <jim@meyering.net>
51796
51797         * check-module (%exempt_header): Add exception for some
51798         conditionally-included headers.
51799
51800         * modules/i-ring (Depends-on): Add verify.
51801         (License): Change to LGPL.
51802
51803 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51804
51805         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
51806         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
51807         and inttostr.h.  Use snprintf rather than uinttostr, so that
51808         LGPLed code doesn't depend on GPLed.
51809
51810 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51811
51812         * modules/inline (License): Change from GPL to LGPL.
51813
51814 2006-11-17  Jim Meyering  <jim@meyering.net>
51815
51816         * modules/d-type (License): Switch to LGPL.
51817
51818 2006-11-15  Bruno Haible  <bruno@clisp.org>
51819
51820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
51821
51822 2006-11-15  Eric Blake  <ebb9@byu.net>
51823
51824         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
51825         the module dependency.
51826
51827 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51828             Bruno Haible  <bruno@clisp.org>
51829
51830         * gnulib-tool (func_create_testdir): Add license consistency check.
51831
51832 2006-11-15  Eric Blake  <ebb9@byu.net>
51833
51834         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
51835         random "(cached)" in configure output.
51836
51837 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51838
51839         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
51840         test for conforming inttypes.h is both announced and cached.
51841
51842         * MODULES.html.sh (seen_modules, seen_files): New variables.
51843         (func_module): Rewrite to use a few less gnulib-tool and sed
51844         invocations.  Avoid a couple of quadratic algorithms for ...
51845         (missed_modules, missed_files): ... these, with ...
51846         (func_append, func_tmpdir): ... these new functions, from
51847         gnulib-tool.  Analogously, install traps for cleanup.
51848
51849         * tests/test-gc.c (main): Remove unused variables.
51850         * tests/test-read-file.c: Include stdlib.h, for 'free'.
51851
51852 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
51853
51854         * modules/inttostr (License): Change to LGPL.
51855
51856 2006-11-14  Eric Blake  <ebb9@byu.net>
51857
51858         * modules/tempname (License): Change to LGPL.
51859
51860 2006-11-14  Eric Blake  <ebb9@byu.net>
51861
51862         * doc/functions.texi (Function Portability): *printf functions on
51863         Cygwin now understand all POSIX size specifiers.
51864
51865 2006-11-14  Bruno Haible  <bruno@clisp.org>
51866
51867         * modules/c-ctype (License): Change to LGPL.
51868
51869 2006-11-12  Bruno Haible  <bruno@clisp.org>
51870
51871         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51872         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
51873         for GNOME libraries, for which the include files are installed in
51874         subdirectories of $prefix/include.
51875
51876 2006-11-12  Bruno Haible  <bruno@clisp.org>
51877
51878         * m4/lib-link.m4: Require at least autoconf-2.54.
51879         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
51880         name to underscores for the --with option.
51881
51882 2006-11-13  Bruno Haible  <bruno@clisp.org>
51883
51884         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
51885         the tests directory.
51886         Reported by Ralf Wildenhues.
51887
51888 2006-11-13  Bruno Haible  <bruno@clisp.org>
51889
51890         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
51891         (func_emit_initmacro_end): Undo the override here.
51892         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
51893         Works around the famous automake error in coreutils.
51894
51895 2006-11-13  Eric Blake  <ebb9@byu.net>
51896
51897         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
51898         element, not its node.
51899
51900 2006-11-12  Bruno Haible  <bruno@clisp.org>
51901
51902         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
51903         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
51904
51905 2006-11-12  Bruno Haible  <bruno@clisp.org>
51906
51907         * gnulib-tool: New option --local-symlink.
51908         (func_usage): Document it.
51909         (lsymbolic): New variable.
51910         (func_import, func_create_testdir): If --symlink was not specified,
51911         test whether --local-symlink was specified and the file comes from
51912         the local_gnulib_dir.
51913
51914 2006-11-12  Bruno Haible  <bruno@clisp.org>
51915
51916         * gnulib-tool (func_ln): New function.
51917         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
51918
51919 2006-11-12  Bruno Haible  <bruno@clisp.org>
51920
51921         Finish support for source files in subdirectories.
51922         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
51923         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
51924         AUTOMAKE_OPTIONS.
51925         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
51926
51927 2006-11-12  Bruno Haible  <bruno@clisp.org>
51928
51929         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51930         EXTRA_lib_SOURCES augmentation.
51931         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
51932
51933 2006-11-12  Jim Meyering  <jim@meyering.net>
51934
51935         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
51936         file descriptors.  This also averts a failure on systems with
51937         native openat support when a traversed directory lacks "x" access.
51938         * lib/fts_.h: Include "i-ring.h"
51939         (struct FTS) [fts_fd_ring]: New member.
51940         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
51941         (FCHDIR): Add parentheses.
51942         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
51943         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
51944         When descending, rather than simply closing the previous
51945         fts_cwd_fd value, push that file descriptor onto the ring.
51946         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
51947         (fts_open): Initialize the new fd_ring member.
51948         (fts_close): Clear the ring.
51949         (fts_safe_changedir): When possible, use our new fd_ring to skip
51950         the diropen and fstat and dev/ino comparison that would normally
51951         accompany a virtual `chdir ("..")'.
51952
51953         * modules/fts (Depends-on): Add i-ring.
51954         * modules/i-ring: New module.
51955         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
51956         * m4/i-ring.m4: New file.
51957
51958 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51959
51960         * gnulib-tool (func_create_testdir): Fix replacement of
51961         `build-aux' in configure.ac.  Run autotools in gltests
51962         subdirectory.
51963         (func_create_testdir, func_create_megatestdir, test): There is
51964         no need for '--force' in most autotool invocations in a new
51965         tree.  Actually fail the whole test if any of the tools, or the
51966         configure or make stages fail.
51967
51968         Sync from Automake.
51969         * build-aux/gnupload: Revert last change.  Add pointer to upload
51970         instructions of the GNU Maintenance Instructions.
51971         Suggestion by Karl Berry.
51972
51973 2006-11-10  Jim Meyering  <jim@meyering.net>
51974
51975         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
51976
51977 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51978
51979         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
51980         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
51981         (bind_textdomain_codeset) [! ENABLE_NLS]:
51982         Evaluate all the arguments.  That way, callers get compatible behavior
51983         if the arguments have side effects.  Also, it avoids some GCC
51984         diagnostics in some cases; Joel E. Denny reported problems when Bison
51985         was configured with --enable-gcc-warnigs.
51986
51987 2006-11-10  Jim Meyering  <jim@meyering.net>
51988
51989         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
51990         relevant options in CFLAGS (like -O, -fno-inline) are taken into
51991         account.
51992
51993 2006-11-10  Jim Meyering  <jim@meyering.net>
51994
51995         * modules/inline: New file/module.
51996         * modules/xalloc (Files): Remove m4/inline.m4.
51997         (Depends-on): Add inline, instead.
51998         * modules/oset: Likewise.
51999         * modules/list: Likewise.
52000
52001 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52002
52003         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
52004         Problem reported by Matthew Woehlke.
52005
52006 2006-11-09  Bruno Haible  <bruno@clisp.org>
52007
52008         * lib/tempname.c (gen_tempname): Remove variant that invokes
52009         __gen_tempname.
52010         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
52011         __gen_tempname.
52012
52013 2006-11-08  Bruno Haible  <bruno@clisp.org>
52014
52015         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
52016         to 'yes' instead of 'cross-compiling'.
52017
52018 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
52019
52020         * lib/quotearg.h (quotearg_free): New decl.
52021         * lib/quotearg.c (quotearg_free): New function.
52022         (slot0, nslots, slotvec0, slotvec):
52023         Now file-scope so that quotearg_free can get at them.
52024
52025 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52026
52027         Sync from Automake.
52028         * build-aux/gnupload: Add missing 'gnu' to example URL.
52029         Report by Karl Berry.
52030
52031 2006-11-08  Bruno Haible  <bruno@clisp.org>
52032
52033         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
52034         Suggested by Paul Eggert.
52035
52036 2006-11-08  Jim Meyering  <jim@meyering.net>
52037
52038         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
52039         It's already included if !_LIBC.
52040         (fts_safe_changedir): Add a comment.
52041
52042 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52043
52044         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
52045         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
52046         Matthew Woehlke.
52047
52048         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
52049         definitions up, to avoid colliding with change below.
52050         (static_inline) [HAVE_INLINE]: New macro.
52051         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
52052         Provide extern decls when !HAVE_INLINE.  Do not define unless
52053         static_inline is defined, either by us or by xmalloc.c.  Use
52054         static_inline rather than static inline.
52055         (XCALLOC): Optimize sizeof(T) = 1 case.
52056         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
52057
52058 2006-11-07  Bruno Haible  <bruno@clisp.org>
52059
52060         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
52061         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
52062         AC_C_INLINE.
52063         * modules/xalloc (Files): Add m4/inline.m4.
52064
52065 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52066
52067         * README: Fix typo.
52068         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
52069         (Miscellanous Notes): ...from this.
52070
52071 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
52072
52073         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
52074         Mention that offsetof should be used instead of sizeof.
52075         From Bruno Haible.
52076
52077 2006-11-07  Bruno Haible  <bruno@clisp.org>
52078
52079         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
52080
52081 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
52082
52083         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
52084         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
52085         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
52086         (gl_tree_add_before, gl_tree_add_after):
52087         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
52088         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
52089         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52090         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
52091         (gl_linked_add_after, gl_linked_add_at): Likewise.
52092         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
52093         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
52094         (gl_tree_add_before, gl_tree_add_after): Likewise.
52095         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
52096         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
52097         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
52098
52099 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52100
52101         * lib/gl_oset.h: Use C comment style, not C++ comment style.
52102
52103 2006-11-06  Bruno Haible  <bruno@clisp.org>
52104
52105         * m4/inline.m4: New file.
52106         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
52107         * modules/list (Files): Add m4/inline.m4.
52108         * modules/oset (Files): Likewise.
52109
52110 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
52111
52112         * lib/idcache.c: Include <stddef.h>, for offsetof.
52113         (struct userid.name): Change from char * to a flexible array member.
52114         All uses changed.
52115         * modules/idcache (Depends-on): Add flexmember.
52116
52117         * MODULES.html.sh (Core language properties): New module flexmember.
52118         * modules/flexmember, m4/flexmember.m4: New files.
52119
52120         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
52121         inline functions that are identical with the old xnmalloc_inline,
52122         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
52123         that we can avoid some unnecessary integer multiplications and
52124         divisions in the common case where the element size is known at
52125         compile time.
52126         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
52127         needed.
52128         (xnboundedmalloc): Remove.
52129         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
52130         arguments, for consistency with rest of this header.
52131         (xcharalloc): Rewrite using XNMALLOC.
52132         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
52133         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
52134         versions have been moved to lib/xalloc.h and renamed to be the
52135         non-*_inline versions.
52136         (xmalloc, xrealloc): Implement without reference to the xnmalloc
52137         and xnrealloc functions, since those functions are now inline and
52138         now call us.
52139         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
52140         renaming described above.
52141         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
52142         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
52143         captures the dependency in AC_C_INLINE.
52144
52145         New module canonicalize-lgpl, proposed by Charles Wilson in
52146         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
52147         with a few small changes afterwards.
52148         * MODULES.html.sh (File system functions): New module
52149         canonicalize-lgpl.
52150         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
52151         and canonicalize_file_name.
52152         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
52153         * modules/canonicalize-lgpl: New files.
52154
52155 2006-11-05  Bruno Haible  <bruno@clisp.org>
52156
52157         * gnulib-tool (func_import, func_create_testdir): Create directories
52158         also for files in subdirectories of lib/.
52159
52160 2006-11-05  Bruno Haible  <bruno@clisp.org>
52161
52162         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
52163         ANSI C compliant.
52164
52165 2006-11-03  Bruno Haible  <bruno@clisp.org>
52166
52167         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
52168         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
52169         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
52170         (xnboundedmalloc): New inline function.
52171         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
52172         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
52173         xmalloc.
52174         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
52175         xmalloc.
52176         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
52177         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
52178         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
52179         xmalloc.
52180         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
52181         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
52182         xmalloc.
52183         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
52184         gl_tree_add_after): Use XMALLOC instead of xmalloc.
52185         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
52186         xmalloc.
52187         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
52188         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
52189         gl_tree_add_after): Use XMALLOC instead of xmalloc.
52190         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
52191         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
52192         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
52193         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
52194
52195 2006-11-03  Bruno Haible  <bruno@clisp.org>
52196
52197         * lib/c-ctype.h [C++]: Define functions without name mangling.
52198         * lib/fwriteerror.h [C++]: Likewise.
52199         * lib/gcd.h [C++]: Likewise.
52200         * lib/linebreak.h [C++]: Likewise.
52201
52202 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52203
52204         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
52205         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
52206         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
52207         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
52208         Check for functions and headers just once.
52209         Check for declaration of canonicalize_file_name.
52210         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
52211
52212 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52213
52214         * gnulib-tool (func_import): Fix typo in actioncmd.
52215
52216 2006-11-02  Bruno Haible  <bruno@clisp.org>
52217
52218         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
52219         newline sequence in the Makefile.am snippet as a space, like "make"
52220         does.
52221         Reported by Roger Persson <perrog@gmail.com>.
52222
52223 2006-11-01  Bruno Haible  <bruno@clisp.org>
52224
52225         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
52226         already declared in <string.h>.
52227         * lib/strcase.h (strncasecmp): Don't declare it if yes.
52228
52229 2006-11-01  Bruno Haible  <bruno@clisp.org>
52230
52231         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
52232         * lib/strcase.h: Include <string.h>.
52233         (strcasecmp): Define to rpl_strcasecmp here.
52234
52235 2006-11-01  Bruno Haible  <bruno@clisp.org>
52236
52237         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
52238
52239 2006-11-01  Eric Blake  <ebb9@byu.net>
52240
52241         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
52242
52243         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
52244
52245 2006-10-29  Bruno Haible  <bruno@clisp.org>
52246
52247         Make it compile in C++ mode.
52248         * lib/full-write.c (full_rw): Add a cast.
52249
52250 2006-11-01  Bruno Haible  <bruno@clisp.org>
52251
52252         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
52253         be POSIX compliant.
52254         Reported by Roger Persson <perrog@gmail.com>.
52255
52256 2006-11-01  Eric Blake  <ebb9@byu.net>
52257
52258         * lib/getopt_.h: Fix comments.
52259
52260 2006-10-31  Eric Blake  <ebb9@byu.net>
52261
52262         * modules/tmpdir (Depends-on): Add sys_stat.
52263         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
52264         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
52265         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
52266         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
52267         tempname.
52268
52269 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
52270
52271         Avoid some C++ diagnostics reported by Bruno Haible.
52272         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
52273         xmalloc.
52274         (quotearg_alloc): Use xcharalloc rather than xmalloc.
52275         (struct slotvec): Move to top level.
52276         (quotearg_n_options): Rewrite to avoid xmalloc.
52277         * lib/xalloc.h (xcharalloc): New function.
52278         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
52279         [defined __cplusplus]: Add function template that provides result
52280         type propagation.  This part of the change is from Bruno Haible.
52281
52282 2006-10-29  Bruno Haible  <bruno@clisp.org>
52283
52284         Make it compile in C++ mode.
52285         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
52286         * lib/strnlen1.c (strnlen1): Cast memchr result.
52287         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
52288         * lib/clean-temp.c (string_equals, string_hash): Add casts.
52289         (create_temp_dir): Rename local variable 'template'.
52290         (compile_csharp_using_sscli): Add cast.
52291         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
52292         * lib/findprog.c (find_in_path): Likewise.
52293         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
52294         * lib/wait-process.c (register_slave_subprocess): Likewise.
52295
52296 2006-10-22  Bruno Haible  <bruno@clisp.org>
52297
52298         * modules/tsearch: New file.
52299         * lib/tsearch.h: New file.
52300         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
52301         * m4/tsearch.m4: New file.
52302         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
52303
52304 2006-10-29  Eric Blake  <ebb9@byu.net>
52305
52306         * lib/arcfour.c: Assume config.h.
52307         * lib/arctwo.c: Likewise.
52308         * lib/base64.c: Likewise.
52309         * lib/check-version.c: Likewise.
52310         * lib/crc.c: Likewise.
52311         * lib/des.c: Likewise.
52312         * lib/gc-gnulib.c: Likewise.
52313         * lib/gc-libgcrypt.c: Likewise.
52314         * lib/gc-pbkdf2-sha1.c: Likewise.
52315         * lib/getaddrinfo.c: Likewise.
52316         * lib/getdelim.c: Likewise.
52317         * lib/getline.c: Likewise.
52318         * lib/hmac-md5.c: Likewise.
52319         * lib/hmac-sha1.c: Likewise.
52320         * lib/iconvme.c: Likewise.
52321         * lib/md2.c: Likewise.
52322         * lib/md4.c: Likewise.
52323         * lib/memxor.c: Likewise.
52324         * lib/read-file.c: Likewise.
52325         * lib/readline.c: Likewise.
52326         * lib/rijndael-alg-fst.c: Likewise.
52327         * lib/rijndael-api-fst.c: Likewise.
52328         * lib/xgetdomainname.c: Likewise.
52329
52330 2006-10-28  Eric Blake  <ebb9@byu.net>
52331
52332         * lib/xstrndup.c: Assume config.h.
52333
52334 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
52335
52336         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
52337         stat-macros.h is now for our own macros, whereas stat_h is for
52338         macros in the <sys/stat.h> name space.
52339         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
52340         (STAT_MACROS_H): Remove.
52341         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
52342         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
52343         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
52344         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
52345         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
52346         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
52347         Move these macros to ...
52348         * lib/stat_.h: here.  Don't include stat-macros.h.
52349         * lib/canonicalize.c: Don't include stat-macros.h.
52350         * lib/chown.c: Likewise.
52351         * lib/euidaccess.c: Likewise.
52352         * lib/file-type.c: Likewise.
52353         * lib/filemode.c: Likewise.
52354         * lib/glob.c: Likewise.
52355         * lib/isapipe.c: Likewise.
52356         * lib/lchown.c: Likewise.
52357         * lib/lstat.c: Likewise.
52358         * lib/mkdir-p.c: Likewise.
52359         * lib/rmdir.c: Likewise.
52360         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
52361         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
52362         unless mkdir isn't declared, to speed up 'configure'.
52363         Always create sys/stat.h, since it's unlikely any real sys/stat.h
52364         would define all the S_* symbols.
52365         * modules/canonicalize (Depends-on):
52366         Depend on sys_stat, not stat-macros.
52367         * modules/chown: Likewise.
52368         * modules/euidaccess: Likewise.
52369         * modules/filemode: Likewise.
52370         * modules/file-type: Likewise.
52371         * modules/glob: Likewise.
52372         * modules/isapipe: Likewise.
52373         * modules/lchown: Likewise.
52374         * modules/lstat: Likewise.
52375         * modules/mkancesdirs: Likewise.
52376         * modules/rmdir: Likewise.
52377         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
52378         * modules/modechange: Likewise.
52379         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
52380         (configure.ac): Remove gl_STAT_MACROS.
52381         * modules/sys_stat (Depends-on): Remove stat-macros.
52382
52383 2006-10-27  Bruno Haible  <bruno@clisp.org>
52384
52385         * m4/signed.m4: Remove file.
52386         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
52387         invocation.
52388         * modules/vasnprintf (Files): Remove m4/signed.m4.
52389
52390 2006-10-27  Bruno Haible  <bruno@clisp.org>
52391
52392         Update to GNU gettext 0.16.
52393         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
52394         m4/inttypes-h.m4, m4/signed.m4.
52395         * m4/gettext.m4: Update to GNU gettext 0.16.
52396         * m4/intl.m4: New file, from GNU gettext.
52397         * m4/intldir.m4: New file, from GNU gettext.
52398         * config/srclist.txt: Update
52399
52400 2006-10-27  Eric Blake  <ebb9@byu.net>
52401
52402         * MODULES.html.sh: Document tempname.
52403         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
52404         dependencies.
52405         (Files): Move lib/tempname.c...
52406         * modules/tempname: ...to this new module.
52407         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
52408         (gl_PREREQ_TEMPNAME): Move...
52409         * m4/tempname.m4: ...to this new file.
52410         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
52411         * modules/sys_stat (Depends-on): Add stat-macros.
52412         * lib/stat_.h (includes): Pick up stat macros.
52413         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
52414         if stat macros are broken.
52415         * lib/tempname.c (includes): No need to include "stat-macros.h".
52416         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
52417         (direxists, __path_search) [!_LIBC]: Don't compile these in
52418         gnulib; the tmpdir module covers that.
52419         * lib/tempname.h: New file.
52420
52421 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
52422
52423         * COPYING: Explain how gnulib-tool converts licence headers.
52424         Almost all wording by Eric Blake.
52425
52426 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
52427
52428         * lib/mbchar.h (is_basic_table): Make read-only.
52429         * lib/mbchar.c (is_basic_table): Likewise.
52430         Reported by John Darrington.
52431
52432 2006-10-25  Bruno Haible  <bruno@clisp.org>
52433
52434         * lib/progname.h (set_program_name): Undefine before defining.
52435
52436 2006-10-25  Bruno Haible  <bruno@clisp.org>
52437
52438         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
52439         false for non-gcc C++ compilers.
52440         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52441
52442 2006-10-24  Bruno Haible  <bruno@clisp.org>
52443
52444         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
52445         iconv implementations like Irix iconv.
52446
52447 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52448
52449         * modules/vararrays: New file.
52450         * m4/vararrays.m4: New file, taken from diffutils.
52451         * MODULES.html.sh: New module vararrays.
52452
52453 2006-10-24  Karl Berry  <karl@gnu.org>
52454
52455         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
52456         Don't call GNU Unix.
52457
52458 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52459
52460         * users.txt: Add Libtool.
52461
52462         Sync from Libtool:
52463
52464         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52465
52466         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
52467         to gnulib's policy of including config.h unconditionally.
52468
52469 2006-10-24  Bruno Haible  <bruno@clisp.org>
52470
52471         * modules/wcwidth (Files): Add m4/wint_t.m4.
52472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
52473         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
52474
52475 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52476
52477         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
52478         to pacify GCC with some -W flags enabled.  Problem reported by
52479         Bruno Haible.
52480
52481 2006-10-24  Jim Meyering  <jim@meyering.net>
52482
52483         * MODULES.html.sh: Remove uinttostr.  It's not a module.
52484         Reported by Karl Berry.
52485
52486 2006-10-23  Bruno Haible  <bruno@clisp.org>
52487
52488         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
52489
52490 2006-10-24  Bruno Haible  <bruno@clisp.org>
52491
52492         * lib/gl_list.h: Use C comment style, not C++ comment style.
52493
52494 2006-10-23  Eric Blake  <ebb9@byu.net>
52495
52496         * lib/getaddrinfo.c (includes): Add missing include.
52497
52498 2006-10-23  Bruno Haible  <bruno@clisp.org>
52499             Paul Eggert  <eggert@cs.ucla.edu>
52500
52501         Ability to rename obstack_free.
52502         * lib/obstack.h (__obstack_free): New macro. Declare instead of
52503         obstack_free.
52504         (obstack_free): Invoke the __obstack_free macro.
52505         * lib/obstack.c (obstack_free): Use __obstack_free macro.
52506
52507 2006-10-23  Bruno Haible  <bruno@clisp.org>
52508             Paul Eggert  <eggert@cs.ucla.edu>
52509
52510         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
52511         __argc, __argv from the declaration. (They are defined as macros on
52512         mingw.)
52513
52514 2006-10-22  Bruno Haible  <bruno@clisp.org>
52515
52516         * doc/gnulib-intro.texi: New file.
52517         * doc/gnulib.texi: Include it.
52518
52519 2006-10-21  Bruno Haible  <bruno@clisp.org>
52520
52521         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
52522         "Introduction", "Miscellanous Notes", "Particular Modules".
52523
52524 2006-10-21  Bruno Haible  <bruno@clisp.org>
52525
52526         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52527         Change mostlyclean-local rule to avoid sh syntax error from bash
52528         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
52529
52530 2006-10-23  Jim Meyering  <jim@meyering.net>
52531
52532         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
52533         in place of snprintf.
52534
52535         * modules/inttostr (Files): Add lib/uinttostr.c.
52536         * lib/uinttostr.c (inttostr): New file/function.
52537         * lib/inttostr.h (uinttostr): Declare.
52538         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
52539         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52540         Add uinttostr.
52541         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
52542
52543 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52544
52545         * lib/canonicalize.c (ELOOP): Define if not already defined.
52546         Problem reported by Bruno Haible in
52547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
52548
52549 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
52550
52551         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
52552         Problem reported by Perry Smith and Ville Laurikari.
52553
52554         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
52555         uses.
52556
52557 2006-10-19  Bruno Haible  <bruno@clisp.org>
52558
52559         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
52560         for mingw.
52561
52562 2006-10-19  Bruno Haible  <bruno@clisp.org>
52563
52564         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
52565         Needed for mingw.
52566
52567 2006-10-19  Bruno Haible  <bruno@clisp.org>
52568
52569         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
52570
52571 2006-10-19  Bruno Haible  <bruno@clisp.org>
52572
52573         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
52574         it.
52575
52576 2006-10-19  Bruno Haible  <bruno@clisp.org>
52577
52578         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
52579         invocation.
52580
52581 2006-10-19  Bruno Haible  <bruno@clisp.org>
52582
52583         * gnulib-tool (func_create_testdir): Don't include ftruncate and
52584         mountlist by default.
52585
52586 2006-10-16  Bruno Haible  <bruno@clisp.org>
52587
52588         * lib/c-strstr.c: Include c-strstr.h.
52589
52590 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
52591
52592         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
52593         in a slash.
52594
52595 2006-10-18  Bruno Haible  <bruno@clisp.org>
52596
52597         * lib/lock.h [C++]: Wrap definitions in extern "C".
52598
52599 2006-10-18  Bruno Haible  <bruno@clisp.org>
52600
52601         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
52602         gl_LIBOBJS list.
52603
52604 2006-10-18  Bruno Haible  <bruno@clisp.org>
52605
52606         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
52607
52608 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
52609
52610         * lib/xstrtol.h: Include gettext.h.
52611         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
52612         Problem reported by Eric Blake.
52613         * modules/xstrtol (Depends-on): Add gettext-h.
52614
52615 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
52616
52617         * lib/strftime.c (advance): New macro.
52618         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
52619         incomplete type, so you can't add 0 to it.  Problem and patch
52620         reported by Eelco Dolstra for dietlibc.
52621
52622 2006-10-18  Jim Meyering  <jim@meyering.net>
52623
52624         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
52625         type for a local, and rename it: s/up/user_proc/.
52626
52627 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52628
52629         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
52630         READ_UTMP_USER_PROCESS.
52631         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
52632
52633 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52634
52635         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
52636         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
52637
52638 2006-10-17  Eric Blake  <ebb9@byu.net>
52639
52640         * lib/sigprocmask.c (sigprocmask): Fix typo.
52641
52642         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
52643
52644         * modules/clean-temp (Makefile.am): Don't add to make output...
52645         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
52646         config.h.
52647
52648 2006-10-17  Bruno Haible  <bruno@clisp.org>
52649
52650         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
52651         differently if DEFAULT_TEXT_DOMAIN is set.
52652
52653 2006-10-16  Bruno Haible  <bruno@clisp.org>
52654
52655         * lib/clean-temp.c: Include fwriteerror.h.
52656
52657 2006-10-16  Bruno Haible  <bruno@clisp.org>
52658
52659         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
52660
52661 2006-10-16  Bruno Haible  <bruno@clisp.org>
52662
52663         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
52664         * lib/sigprocmask.h: Include <sys/types.h>.
52665         (sigset_t): Use the system's definition if present.
52666
52667 2006-10-17  Eric Blake  <ebb9@byu.net>
52668
52669         * lib/xvasprintf.c (includes): Assume config.h.
52670         * lib/xasprintf.c (includes): Likewise.
52671
52672 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52673
52674         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
52675         at least as wide as intmax_t.
52676
52677 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
52678
52679         (Imported from Automake.)
52680         * build-aux/gnupload: Update to version 1.1 of directive file.
52681
52682 2006-10-16  Eric Blake  <ebb9@byu.net>
52683
52684         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
52685         match Automake 1.10a.
52686
52687 2006-10-14  Bruno Haible  <bruno@clisp.org>
52688
52689         * modules/sigprocmask: New file.
52690         * lib/sigprocmask.h: New file.
52691         * lib/sigprocmask.c: New file.
52692         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
52693         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
52694         request sigprocmask.o.
52695         (gl_PREREQ_SIGPROCMASK): New macro.
52696         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
52697         (Depends-on): Add sigprocmask.
52698         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
52699         gt_SIGNALBLOCKING. Test for 'raise' only once.
52700         * lib/fatal-signal.c: Include sigprocmask.h.
52701         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
52702         unblock_fatal_signals): Define always.
52703         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52704         sigprocmask.
52705
52706 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52707
52708         Sync from Automake.
52709         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
52710         which incorrectly sets the mode of an existing destination
52711         directory.  In some cases the unpatched install-sh could do the
52712         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
52713         system.  We hope this is rare in practice, but it's clearly worth
52714         fixing.  Problem reported by Alex Unleashed in
52715         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
52716         Also, don't bother to check for -m bugs unless we're using -m;
52717         suggested by Stepan Kasal.
52718
52719 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52720
52721         Sync from Automake.
52722         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
52723         `-c' flag, so they appear at the same position as in %FASTDEP%
52724         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
52725         which ignores unknown options only after the first non-option.
52726         Bug report against M4 by Nelson H. F. Beebe.
52727
52728 2006-10-13  Jim Meyering  <jim@meyering.net>
52729
52730         Fix a bug in yesterday's change.
52731         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
52732         p->fts_statp->st_dev would be used uninitialized.
52733         Ensures that we always call fts_stat on the very first entry.
52734         Miklos Szeredi reported that find -xdev stopped working.
52735
52736 2006-10-12  Bruno Haible  <bruno@clisp.org>
52737
52738         * gnulib-tool (func_get_automake_snippet): Append an automatically
52739         computed EXTRA_DIST augmentation.
52740         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
52741         * modules/alloca-opt (Makefile.am): Likewise.
52742         * modules/allocsa (Makefile.am): Likewise.
52743         * modules/arcfour (Makefile.am): Likewise.
52744         * modules/arctwo (Makefile.am): Likewise.
52745         * modules/argmatch (Makefile.am): Likewise.
52746         * modules/argz (Makefile.am): Likewise.
52747         * modules/atexit (Makefile.am): Likewise.
52748         * modules/backupfile (Makefile.am): Likewise.
52749         * modules/byteswap (Makefile.am): Likewise.
52750         * modules/c-strtod (Makefile.am): Likewise.
52751         * modules/c-strtold (Makefile.am): Likewise.
52752         * modules/calloc (Makefile.am): Likewise.
52753         * modules/canon-host (Makefile.am): Likewise.
52754         * modules/canonicalize (Makefile.am): Likewise.
52755         * modules/chdir-long (Makefile.am): Likewise.
52756         * modules/chdir-safer (Makefile.am): Likewise.
52757         * modules/check-version (Makefile.am): Likewise.
52758         * modules/chown (Makefile.am): Likewise.
52759         * modules/cloexec (Makefile.am): Likewise.
52760         * modules/close-stream (Makefile.am): Likewise.
52761         * modules/closeout (Makefile.am): Likewise.
52762         * modules/crc (Makefile.am): Likewise.
52763         * modules/csharpexec (Makefile.am): Likewise.
52764         * modules/cycle-check (Makefile.am): Likewise.
52765         * modules/des (Makefile.am): Likewise.
52766         * modules/dev-ino (Makefile.am): Likewise.
52767         * modules/dirfd (Makefile.am): Likewise.
52768         * modules/dirname (Makefile.am): Likewise.
52769         * modules/dup2 (Makefile.am): Likewise.
52770         * modules/eealloc (Makefile.am): Likewise.
52771         * modules/error (Makefile.am): Likewise.
52772         * modules/euidaccess (Makefile.am): Likewise.
52773         * modules/exclude (Makefile.am): Likewise.
52774         * modules/exitfail (Makefile.am): Likewise.
52775         * modules/fcntl-safer (Makefile.am): Likewise.
52776         * modules/fcntl (Makefile.am): Likewise.
52777         * modules/file-type (Makefile.am): Likewise.
52778         * modules/fileblocks (Makefile.am): Likewise.
52779         * modules/filemode (Makefile.am): Likewise.
52780         * modules/filenamecat (Makefile.am): Likewise.
52781         * modules/fnmatch (Makefile.am): Likewise.
52782         * modules/fopen-safer (Makefile.am): Likewise.
52783         * modules/fpending (Makefile.am): Likewise.
52784         * modules/fprintftime (Makefile.am): Likewise.
52785         * modules/free (Makefile.am): Likewise.
52786         * modules/fsusage (Makefile.am): Likewise.
52787         * modules/ftruncate (Makefile.am): Likewise.
52788         * modules/fts (Makefile.am): Likewise.
52789         * modules/gc-arcfour (Makefile.am): Likewise.
52790         * modules/gc-des (Makefile.am): Likewise.
52791         * modules/gc-hmac-md5 (Makefile.am): Likewise.
52792         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
52793         * modules/gc-md4 (Makefile.am): Likewise.
52794         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
52795         * modules/gc-sha1 (Makefile.am): Likewise.
52796         * modules/gc (Makefile.am): Likewise.
52797         * modules/getaddrinfo (Makefile.am): Likewise.
52798         * modules/getcwd (Makefile.am): Likewise.
52799         * modules/getdelim (Makefile.am): Likewise.
52800         * modules/getdomainname (Makefile.am): Likewise.
52801         * modules/getgroups (Makefile.am): Likewise.
52802         * modules/gethostname (Makefile.am): Likewise.
52803         * modules/gethrxtime (Makefile.am): Likewise.
52804         * modules/getline (Makefile.am): Likewise.
52805         * modules/getloadavg (Makefile.am): Likewise.
52806         * modules/getlogin_r (Makefile.am): Likewise.
52807         * modules/getndelim2 (Makefile.am): Likewise.
52808         * modules/getopt (Makefile.am): Likewise.
52809         * modules/getpagesize (Makefile.am): Likewise.
52810         * modules/getpass-gnu (Makefile.am): Likewise.
52811         * modules/getpass (Makefile.am): Likewise.
52812         * modules/getsubopt (Makefile.am): Likewise.
52813         * modules/gettime (Makefile.am): Likewise.
52814         * modules/gettimeofday (Makefile.am): Likewise.
52815         * modules/getugroups (Makefile.am): Likewise.
52816         * modules/getusershell (Makefile.am): Likewise.
52817         * modules/glob (Makefile.am): Likewise.
52818         * modules/group-member (Makefile.am): Likewise.
52819         * modules/hard-locale (Makefile.am): Likewise.
52820         * modules/hash (Makefile.am): Likewise.
52821         * modules/hmac-md5 (Makefile.am): Likewise.
52822         * modules/hmac-sha1 (Makefile.am): Likewise.
52823         * modules/human (Makefile.am): Likewise.
52824         * modules/idcache (Makefile.am): Likewise.
52825         * modules/imaxabs (Makefile.am): Likewise.
52826         * modules/imaxdiv (Makefile.am): Likewise.
52827         * modules/inet_ntop (Makefile.am): Likewise.
52828         * modules/inet_pton (Makefile.am): Likewise.
52829         * modules/intprops (Makefile.am): Likewise.
52830         * modules/inttostr (Makefile.am): Likewise.
52831         * modules/inttypes (Makefile.am): Likewise.
52832         * modules/isapipe (Makefile.am): Likewise.
52833         * modules/javaversion (Makefile.am): Likewise.
52834         * modules/lchmod (Makefile.am): Likewise.
52835         * modules/lchown (Makefile.am): Likewise.
52836         * modules/localcharset (Makefile.am): Likewise.
52837         * modules/long-options (Makefile.am): Likewise.
52838         * modules/lstat (Makefile.am): Likewise.
52839         * modules/malloc (Makefile.am): Likewise.
52840         * modules/mathl (Makefile.am): Likewise.
52841         * modules/mbchar (Makefile.am): Likewise.
52842         * modules/md2 (Makefile.am): Likewise.
52843         * modules/md4 (Makefile.am): Likewise.
52844         * modules/md5 (Makefile.am): Likewise.
52845         * modules/memcasecmp (Makefile.am): Likewise.
52846         * modules/memchr (Makefile.am): Likewise.
52847         * modules/memcmp (Makefile.am): Likewise.
52848         * modules/memcoll (Makefile.am): Likewise.
52849         * modules/memcpy (Makefile.am): Likewise.
52850         * modules/memmem (Makefile.am): Likewise.
52851         * modules/memmove (Makefile.am): Likewise.
52852         * modules/mempcpy (Makefile.am): Likewise.
52853         * modules/memrchr (Makefile.am): Likewise.
52854         * modules/memset (Makefile.am): Likewise.
52855         * modules/memxor (Makefile.am): Likewise.
52856         * modules/mkancesdirs (Makefile.am): Likewise.
52857         * modules/mkdir-p (Makefile.am): Likewise.
52858         * modules/mkdir (Makefile.am): Likewise.
52859         * modules/mkdtemp (Makefile.am): Likewise.
52860         * modules/mkstemp (Makefile.am): Likewise.
52861         * modules/mktime (Makefile.am): Likewise.
52862         * modules/modechange (Makefile.am): Likewise.
52863         * modules/mountlist (Makefile.am): Likewise.
52864         * modules/nanosleep (Makefile.am): Likewise.
52865         * modules/obstack (Makefile.am): Likewise.
52866         * modules/openat (Makefile.am): Likewise.
52867         * modules/pagealign_alloc (Makefile.am): Likewise.
52868         * modules/pathmax (Makefile.am): Likewise.
52869         * modules/physmem (Makefile.am): Likewise.
52870         * modules/poll (Makefile.am): Likewise.
52871         * modules/posixtm (Makefile.am): Likewise.
52872         * modules/posixver (Makefile.am): Likewise.
52873         * modules/putenv (Makefile.am): Likewise.
52874         * modules/quote (Makefile.am): Likewise.
52875         * modules/quotearg (Makefile.am): Likewise.
52876         * modules/raise (Makefile.am): Likewise.
52877         * modules/read-file (Makefile.am): Likewise.
52878         * modules/readline (Makefile.am): Likewise.
52879         * modules/readlink (Makefile.am): Likewise.
52880         * modules/readtokens (Makefile.am): Likewise.
52881         * modules/readutmp (Makefile.am): Likewise.
52882         * modules/realloc (Makefile.am): Likewise.
52883         * modules/regex (Makefile.am): Likewise.
52884         * modules/rename-dest-slash (Makefile.am): Likewise.
52885         * modules/rename (Makefile.am): Likewise.
52886         * modules/rijndael (Makefile.am): Likewise.
52887         * modules/rmdir (Makefile.am): Likewise.
52888         * modules/rpmatch (Makefile.am): Likewise.
52889         * modules/safe-read (Makefile.am): Likewise.
52890         * modules/safe-write (Makefile.am): Likewise.
52891         * modules/same-inode (Makefile.am): Likewise.
52892         * modules/same (Makefile.am): Likewise.
52893         * modules/save-cwd (Makefile.am): Likewise.
52894         * modules/savedir (Makefile.am): Likewise.
52895         * modules/setenv (Makefile.am): Likewise.
52896         * modules/settime (Makefile.am): Likewise.
52897         * modules/sha1 (Makefile.am): Likewise.
52898         * modules/sig2str (Makefile.am): Likewise.
52899         * modules/snprintf (Makefile.am): Likewise.
52900         * modules/stat-macros (Makefile.am): Likewise.
52901         * modules/stat-time (Makefile.am): Likewise.
52902         * modules/stdbool (Makefile.am): Likewise.
52903         * modules/stdint (Makefile.am): Likewise.
52904         * modules/stdlib-safer (Makefile.am): Likewise.
52905         * modules/stpcpy (Makefile.am): Likewise.
52906         * modules/stpncpy (Makefile.am): Likewise.
52907         * modules/strcase (Makefile.am): Likewise.
52908         * modules/strcasestr (Makefile.am): Likewise.
52909         * modules/strchrnul (Makefile.am): Likewise.
52910         * modules/strcspn (Makefile.am): Likewise.
52911         * modules/strdup (Makefile.am): Likewise.
52912         * modules/strerror (Makefile.am): Likewise.
52913         * modules/strftime (Makefile.am): Likewise.
52914         * modules/strndup (Makefile.am): Likewise.
52915         * modules/strnlen (Makefile.am): Likewise.
52916         * modules/strpbrk (Makefile.am): Likewise.
52917         * modules/strsep (Makefile.am): Likewise.
52918         * modules/strstr (Makefile.am): Likewise.
52919         * modules/strtod (Makefile.am): Likewise.
52920         * modules/strtoimax (Makefile.am): Likewise.
52921         * modules/strtok_r (Makefile.am): Likewise.
52922         * modules/strtol (Makefile.am): Likewise.
52923         * modules/strtoll (Makefile.am): Likewise.
52924         * modules/strtoul (Makefile.am): Likewise.
52925         * modules/strtoull (Makefile.am): Likewise.
52926         * modules/strtoumax (Makefile.am): Likewise.
52927         * modules/strverscmp (Makefile.am): Likewise.
52928         * modules/sys_socket (Makefile.am): Likewise.
52929         * modules/sys_stat (Makefile.am): Likewise.
52930         * modules/sysexits (Makefile.am): Likewise.
52931         * modules/time_r (Makefile.am): Likewise.
52932         * modules/timegm (Makefile.am): Likewise.
52933         * modules/timespec (Makefile.am): Likewise.
52934         * modules/tmpfile-safer (Makefile.am): Likewise.
52935         * modules/trim (Makefile.am): Likewise.
52936         * modules/unistd-safer (Makefile.am): Likewise.
52937         * modules/unlinkdir (Makefile.am): Likewise.
52938         * modules/unlocked-io (Makefile.am): Likewise.
52939         * modules/userspec (Makefile.am): Likewise.
52940         * modules/utime (Makefile.am): Likewise.
52941         * modules/utimecmp (Makefile.am): Likewise.
52942         * modules/utimens (Makefile.am): Likewise.
52943         * modules/vasnprintf (Makefile.am): Likewise.
52944         * modules/vasprintf (Makefile.am): Likewise.
52945         * modules/vsnprintf (Makefile.am): Likewise.
52946         * modules/xalloc (Makefile.am): Likewise.
52947         * modules/xgetcwd (Makefile.am): Likewise.
52948         * modules/xnanosleep (Makefile.am): Likewise.
52949         * modules/xreadlink (Makefile.am): Likewise.
52950         * modules/xstrtod (Makefile.am): Likewise.
52951         * modules/xstrtol (Makefile.am): Likewise.
52952         * modules/xstrtold (Makefile.am): Likewise.
52953         * modules/yesno (Makefile.am): Likewise.
52954         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
52955
52956 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52957
52958         * modules/error (Makefile.am): Distribute files through
52959         EXTRA_DIST, not lib_SOURCES.
52960
52961 2006-10-12  Eric Blake  <ebb9@byu.net>
52962
52963         * modules/error (Makefile.am): Distribute files in /lib.
52964         * modules/obstack (Makefile.am): Likewise.
52965
52966 2006-10-12  Bruno Haible  <bruno@clisp.org>
52967
52968         * modules/acl (Makefile.am): Distribute all files in lib/ through
52969         EXTRA_DIST.
52970         * modules/arcfour (Makefile.am): Likewise.
52971         * modules/arctwo (Makefile.am): Likewise.
52972         * modules/argmatch (Makefile.am): Likewise.
52973         * modules/argz (Makefile.am): Likewise.
52974         * modules/atexit (Makefile.am): Likewise.
52975         * modules/backupfile (Makefile.am): Likewise.
52976         * modules/c-strtod (Makefile.am): Likewise.
52977         * modules/c-strtold (Makefile.am): Likewise.
52978         * modules/calloc (Makefile.am): Likewise.
52979         * modules/canon-host (Makefile.am): Likewise.
52980         * modules/canonicalize (Makefile.am): Likewise.
52981         * modules/chdir-long (Makefile.am): Likewise.
52982         * modules/chdir-safer (Makefile.am): Likewise.
52983         * modules/check-version (Makefile.am): Likewise.
52984         * modules/chown (Makefile.am): Likewise.
52985         * modules/cloexec (Makefile.am): Likewise.
52986         * modules/close-stream (Makefile.am): Likewise.
52987         * modules/closeout (Makefile.am): Likewise.
52988         * modules/crc (Makefile.am): Likewise.
52989         * modules/cycle-check (Makefile.am): Likewise.
52990         * modules/des (Makefile.am): Likewise.
52991         * modules/dirfd (Makefile.am): Likewise.
52992         * modules/dirname (Makefile.am): Likewise.
52993         * modules/dup2 (Makefile.am): Likewise.
52994         * modules/euidaccess (Makefile.am): Likewise.
52995         * modules/exclude (Makefile.am): Likewise.
52996         * modules/exitfail (Makefile.am): Likewise.
52997         * modules/fcntl-safer (Makefile.am): Likewise.
52998         * modules/file-type (Makefile.am): Likewise.
52999         * modules/fileblocks (Makefile.am): Likewise.
53000         * modules/filemode (Makefile.am): Likewise.
53001         * modules/filenamecat (Makefile.am): Likewise.
53002         * modules/fnmatch (Makefile.am): Likewise.
53003         * modules/fopen-safer (Makefile.am): Likewise.
53004         * modules/fpending (Makefile.am): Likewise.
53005         * modules/fprintftime (Makefile.am): Likewise.
53006         * modules/free (Makefile.am): Likewise.
53007         * modules/fsusage (Makefile.am): Likewise.
53008         * modules/ftruncate (Makefile.am): Likewise.
53009         * modules/fts (Makefile.am): Likewise.
53010         * modules/gc (Makefile.am): Likewise.
53011         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
53012         * modules/getaddrinfo (Makefile.am): Likewise.
53013         * modules/getcwd (Makefile.am): Likewise.
53014         * modules/getdelim (Makefile.am): Likewise.
53015         * modules/getdomainname (Makefile.am): Likewise.
53016         * modules/getgroups (Makefile.am): Likewise.
53017         * modules/gethostname (Makefile.am): Likewise.
53018         * modules/gethrxtime (Makefile.am): Likewise.
53019         * modules/getline (Makefile.am): Likewise.
53020         * modules/getloadavg (Makefile.am): Likewise.
53021         * modules/getlogin_r (Makefile.am): Likewise.
53022         * modules/getopt (Makefile.am): Likewise.
53023         * modules/getpass (Makefile.am): Likewise.
53024         * modules/getpass-gnu (Makefile.am): Likewise.
53025         * modules/getsubopt (Makefile.am): Likewise.
53026         * modules/gettime (Makefile.am): Likewise.
53027         * modules/gettimeofday (Makefile.am): Likewise.
53028         * modules/getugroups (Makefile.am): Likewise.
53029         * modules/getusershell (Makefile.am): Likewise.
53030         * modules/glob (Makefile.am): Likewise.
53031         * modules/group-member (Makefile.am): Likewise.
53032         * modules/hard-locale (Makefile.am): Likewise.
53033         * modules/hash (Makefile.am): Likewise.
53034         * modules/hmac-md5 (Makefile.am): Likewise.
53035         * modules/hmac-sha1 (Makefile.am): Likewise.
53036         * modules/human (Makefile.am): Likewise.
53037         * modules/idcache (Makefile.am): Likewise.
53038         * modules/imaxabs (Makefile.am): Likewise.
53039         * modules/imaxdiv (Makefile.am): Likewise.
53040         * modules/inet_ntop (Makefile.am): Likewise.
53041         * modules/inet_pton (Makefile.am): Likewise.
53042         * modules/inttostr (Makefile.am): Likewise.
53043         * modules/isapipe (Makefile.am): Likewise.
53044         * modules/lchown (Makefile.am): Likewise.
53045         * modules/long-options (Makefile.am): Likewise.
53046         * modules/lstat (Makefile.am): Likewise.
53047         * modules/malloc (Makefile.am): Likewise.
53048         * modules/mathl (Makefile.am): Likewise.
53049         * modules/mbchar (Makefile.am): Likewise.
53050         * modules/md2 (Makefile.am): Likewise.
53051         * modules/md4 (Makefile.am): Likewise.
53052         * modules/md5 (Makefile.am): Likewise.
53053         * modules/memcasecmp (Makefile.am): Likewise.
53054         * modules/memchr (Makefile.am): Likewise.
53055         * modules/memcmp (Makefile.am): Likewise.
53056         * modules/memcoll (Makefile.am): Likewise.
53057         * modules/memcpy (Makefile.am): Likewise.
53058         * modules/memmem (Makefile.am): Likewise.
53059         * modules/memmove (Makefile.am): Likewise.
53060         * modules/mempcpy (Makefile.am): Likewise.
53061         * modules/memrchr (Makefile.am): Likewise.
53062         * modules/memset (Makefile.am): Likewise.
53063         * modules/memxor (Makefile.am): Likewise.
53064         * modules/mkancesdirs (Makefile.am): Likewise.
53065         * modules/mkdir (Makefile.am): Likewise.
53066         * modules/mkdir-p (Makefile.am): Likewise.
53067         * modules/mkdtemp (Makefile.am): Likewise.
53068         * modules/mkstemp (Makefile.am): Likewise.
53069         * modules/mktime (Makefile.am): Likewise.
53070         * modules/modechange (Makefile.am): Likewise.
53071         * modules/mountlist (Makefile.am): Likewise.
53072         * modules/nanosleep (Makefile.am): Likewise.
53073         * modules/openat (Makefile.am): Likewise.
53074         * modules/pagealign_alloc (Makefile.am): Likewise.
53075         * modules/physmem (Makefile.am): Likewise.
53076         * modules/poll (Makefile.am): Likewise.
53077         * modules/posixtm (Makefile.am): Likewise.
53078         * modules/posixver (Makefile.am): Likewise.
53079         * modules/putenv (Makefile.am): Likewise.
53080         * modules/quote (Makefile.am): Likewise.
53081         * modules/quotearg (Makefile.am): Likewise.
53082         * modules/raise (Makefile.am): Likewise.
53083         * modules/read-file (Makefile.am): Likewise.
53084         * modules/readline (Makefile.am): Likewise.
53085         * modules/readlink (Makefile.am): Likewise.
53086         * modules/readtokens (Makefile.am): Likewise.
53087         * modules/readutmp (Makefile.am): Likewise.
53088         * modules/realloc (Makefile.am): Likewise.
53089         * modules/regex (Makefile.am): Likewise.
53090         * modules/rename (Makefile.am): Likewise.
53091         * modules/rename-dest-slash (Makefile.am): Likewise.
53092         * modules/rijndael (Makefile.am): Likewise.
53093         * modules/rmdir (Makefile.am): Likewise.
53094         * modules/rpmatch (Makefile.am): Likewise.
53095         * modules/safe-read (Makefile.am): Likewise.
53096         * modules/safe-write (Makefile.am): Likewise.
53097         * modules/same (Makefile.am): Likewise.
53098         * modules/save-cwd (Makefile.am): Likewise.
53099         * modules/savedir (Makefile.am): Likewise.
53100         * modules/setenv (Makefile.am): Likewise.
53101         * modules/settime (Makefile.am): Likewise.
53102         * modules/sha1 (Makefile.am): Likewise.
53103         * modules/sig2str (Makefile.am): Likewise.
53104         * modules/snprintf (Makefile.am): Likewise.
53105         * modules/stdlib-safer (Makefile.am): Likewise.
53106         * modules/stpcpy (Makefile.am): Likewise.
53107         * modules/stpncpy (Makefile.am): Likewise.
53108         * modules/strcase (Makefile.am): Likewise.
53109         * modules/strcasestr (Makefile.am): Likewise.
53110         * modules/strchrnul (Makefile.am): Likewise.
53111         * modules/strcspn (Makefile.am): Likewise.
53112         * modules/strdup (Makefile.am): Likewise.
53113         * modules/strerror (Makefile.am): Likewise.
53114         * modules/strftime (Makefile.am): Likewise.
53115         * modules/strndup (Makefile.am): Likewise.
53116         * modules/strnlen (Makefile.am): Likewise.
53117         * modules/strpbrk (Makefile.am): Likewise.
53118         * modules/strsep (Makefile.am): Likewise.
53119         * modules/strstr (Makefile.am): Likewise.
53120         * modules/strtod (Makefile.am): Likewise.
53121         * modules/strtoimax (Makefile.am): Likewise.
53122         * modules/strtok_r (Makefile.am): Likewise.
53123         * modules/strtol (Makefile.am): Likewise.
53124         * modules/strtoll (Makefile.am): Likewise.
53125         * modules/strtoul (Makefile.am): Likewise.
53126         * modules/strtoull (Makefile.am): Likewise.
53127         * modules/strtoumax (Makefile.am): Likewise.
53128         * modules/strverscmp (Makefile.am): Likewise.
53129         * modules/time_r (Makefile.am): Likewise.
53130         * modules/timegm (Makefile.am): Likewise.
53131         * modules/tmpfile-safer (Makefile.am): Likewise.
53132         * modules/unistd-safer (Makefile.am): Likewise.
53133         * modules/unlinkdir (Makefile.am): Likewise.
53134         * modules/userspec (Makefile.am): Likewise.
53135         * modules/utime (Makefile.am): Likewise.
53136         * modules/utimecmp (Makefile.am): Likewise.
53137         * modules/utimens (Makefile.am): Likewise.
53138         * modules/vasnprintf (Makefile.am): Likewise.
53139         * modules/vasprintf (Makefile.am): Likewise.
53140         * modules/vsnprintf (Makefile.am): Likewise.
53141         * modules/xalloc (Makefile.am): Likewise.
53142         * modules/xgetcwd (Makefile.am): Likewise.
53143         * modules/xnanosleep (Makefile.am): Likewise.
53144         * modules/xreadlink (Makefile.am): Likewise.
53145         * modules/xstrtod (Makefile.am): Likewise.
53146         * modules/xstrtol (Makefile.am): Likewise.
53147         * modules/xstrtold (Makefile.am): Likewise.
53148         * modules/yesno (Makefile.am): Likewise.
53149
53150 2006-10-12  Jim Meyering  <jim@meyering.net>
53151
53152         * m4/getloadavg.m4: Revert the change below.
53153
53154         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
53155         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
53156         fail with a symlink, which is what coreutils' ./bootstrap now
53157         creates by default.
53158
53159 2006-10-12  Bruno Haible  <bruno@clisp.org>
53160
53161         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
53162         mingw.
53163         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
53164         MSVC and mingw explicitly.
53165
53166 2006-10-11  Simon Josefsson  <jas@extundo.com>
53167             Bruno Haible  <bruno@clisp.org>
53168
53169         Add support for multiple gnulib-tool invocations in the scope of a
53170         single configure.ac file.
53171         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
53172         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
53173         with the same contents as the _LIBADD variable.
53174         (func_emit_initmacro_start, func_emit_initmacro_end,
53175         func_emit_initmacro_done): New functions.
53176         (func_import, func_create_testdir): Invoke them. Allow the identifiers
53177         gl_LIBOBJS and gl_LTLIBOBJS.
53178
53179 2006-10-11  Bruno Haible  <bruno@clisp.org>
53180
53181         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
53182         (func_create_testdir): Don't create po/Makefile.am, don't invoke
53183         autoreconf. Instead, invoke autopoint explicitly but move back the
53184         *.m4 files from gnulib.
53185
53186 2006-10-11  Bruno Haible  <bruno@clisp.org>
53187
53188         * gnulib-tool (func_usage): Make module names after --create-testdir
53189         optional.
53190         (func_create_testdir): If no module was specified, use nearly all
53191         modules.
53192
53193 2006-10-12  Jim Meyering  <jim@meyering.net>
53194
53195         Big performance improvement for fts-based tools that use FTS_NOSTAT.
53196         Avoid spurious inode-mismatch problems on non-POSIX file systems.
53197         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
53198         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
53199         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
53200         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
53201         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
53202         (fts_set_stat_required): New function.
53203         (fts_open): Defer the calls to fts_stat, if possible or requested.
53204         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
53205         into fts_stat itself.
53206         (fts_read): Perform any required (deferred) fts_stat call.
53207         (fts_build): Likewise, for the directory we're about to open and read.
53208         In the readdir loop, carefully decide whether each entry will require
53209         an eventual call to fts_stat, using dirent.d_type info if available.
53210         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
53211         a command line argument into this function.  Update all callers.
53212         Map a return value of FTS_DOT to FTS_D for a command line argument.
53213         * modules/fts (Depends-on): Add d-type.  Alphabetize.
53214         Thanks to Miklos Szeredi for his tenacity and for the initial
53215         bug report about "find" failing on a FUSE-based file system.
53216
53217         * lib/fts.c (fts_open): Use consistent indentation.
53218
53219 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53220
53221         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
53222         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
53223         reported by Jim Meyering.  All uses of cache variables renamed
53224         to match Autoconf's.
53225         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
53226         the other one.
53227
53228         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
53229         Fix misspelling in diagnostic.
53230
53231 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53232
53233         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
53234         defined.  Problem reported by Matthew Woehlke.
53235
53236         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
53237         Add support for Tandem NonStop R series.
53238         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
53239         Use new macro.
53240
53241         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
53242         (has_trailing_slash): Omit size arg; all callers changed.
53243         Omit 'inline', since it doesn't help performance and we'd
53244         need to configure it.
53245         Don't count //, ///, etc. as having a trailing slash.
53246         As a side effect, this removes a C99ism reported by Matthew Woehlke.
53247         (rpl_rename_dest_slash): On failure, use rename's errno rather
53248         than (in some cases) an incorrect or junk errno.
53249         Simplify code by removing need to compute length; this does
53250         cause it to make two passes instead of one over the file name,
53251         but it's worth it.
53252
53253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
53254         change, since Autoconf's version may no longer be appropriate now
53255         that we are using CVS Autoconf's version.  Add support for Tandem.
53256
53257 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53258             Bruno Haible  <bruno@clisp.org>
53259
53260         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
53261         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
53262         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
53263         gl_AC_TYPE_LONG_LONG.
53264
53265         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
53266         instead of HAVE_LONG_LONG.
53267         * lib/printf-args.c (printf_fetchargs): Likewise.
53268         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
53269         * lib/vasnprintf.c (VASNPRINTF): Likewise.
53270         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
53271         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
53272         gl_AC_TYPE_LONG_LONG.
53273
53274 2006-10-11  Bruno Haible  <bruno@clisp.org>
53275
53276         * m4/longlong.m4: Add comments.
53277         * m4/ulonglong.m4: Likewise.
53278
53279 2006-10-10  Bruno Haible  <bruno@clisp.org>
53280
53281         Make it possible to #define stpcpy, strdup to aliases.
53282         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
53283         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
53284
53285 2006-10-10  Bruno Haible  <bruno@clisp.org>
53286
53287         Make it possible to #define gcd to an alias.
53288         * lib/gcd.c: Include config.h.
53289
53290 2006-10-10  Bruno Haible  <bruno@clisp.org>
53291
53292         Make it possible to #define c_isascii to an alias.
53293         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
53294         defined. Undefine the macros before defining them, to avoid gcc
53295         warnings.
53296         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
53297         define NO_C_CTYPE_MACROS early.
53298
53299 2006-10-10  Bruno Haible  <bruno@clisp.org>
53300
53301         Make it possible to #define set_program_name to an alias.
53302         * lib/progname.c: Don't undefine set_program_name; instead, undefine
53303         ENABLE_RELOCATABLE early.
53304
53305 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53306
53307         Port to Tandem NSK OSS, which has 64-bit signed int but at most
53308         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
53309         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
53310         More generally, don't assume that 64-bit signed int is available
53311         if unsigned int is, and vice versa.
53312         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
53313         unsigned symbols, not on their signed counterparts.
53314         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
53315         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
53316         (UINT64_C, UINTMAX_C):
53317         Likewise.
53318         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
53319         unsigned counterparts.
53320         (Have_long_long, Unsigned): New macros.
53321         (Int): Renamed from INT.
53322         (strtoimax): Use the new macros.
53323         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
53324         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
53325         * modules/inttypes (inttypes.h): Substitute
53326         HAVE_UNSIGNED_LONG_LONG_INT.
53327         * modules/stdint (stdint.h): Likewise.
53328         (Files): Add m4/ulonglong.m4.
53329
53330 2006-10-10  Bruno Haible  <bruno@clisp.org>
53331
53332         Fix a gcc -Wshadow warning.
53333         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
53334         to 'bucket'.
53335         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
53336         gl_linked_indexof_from_to): Likewise.
53337         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
53338         Likewise.
53339         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
53340         Likewise.
53341         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
53342         Reported by Eric Blake.
53343
53344 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
53345
53346         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
53347         for NetBSD.  Problem reported by Bruno Haible.
53348
53349 2006-10-09  Jim Meyering  <jim@meyering.net>
53350
53351         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
53352         Patch from Bruno Haible.
53353
53354 2006-10-09  Jim Meyering  <jim@meyering.net>
53355
53356         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
53357         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
53358         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
53359
53360 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53361
53362         Don't include <config.h> twice; this doesn't work in some cases,
53363         e.g., when config.h has "#define intmax_t long long int" and
53364         we include <config.h>, <inttypes.h>, <config.h> in that order.
53365         Problem reported by Matthew Woehlke in:
53366         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
53367         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
53368         * lib/fts-cycle.c: Don't include config.h.
53369         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
53370         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
53371         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
53372         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
53373         inttypes.h.
53374         * lib/xstrtoumax.c: Likewise.
53375         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
53376         __strtol and the like, so that this module is more like its siblings.
53377         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
53378         Remove; no longer needed now that we assume gnulib inttypes.h.
53379
53380 2006-10-08  Bruno Haible  <bruno@clisp.org>
53381
53382         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
53383         option.
53384
53385 2006-10-07  Jim Meyering  <jim@meyering.net>
53386
53387         * modules/inttypes (inttypes.h): Revert what seems to have been
53388         an inadvertent part of today's change: use "|", not "/" in the
53389         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
53390
53391 2006-10-07  Bruno Haible  <bruno@clisp.org>
53392
53393         * modules/sublist: New file.
53394
53395 2006-10-07  Bruno Haible  <bruno@clisp.org>
53396
53397         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
53398         * modules/argz (argz.h): Likewise.
53399         * modules/arpa_inet (arpa/inet.h): Likewise.
53400         * modules/byteswap (byteswap.h): Likewise.
53401         * modules/configmake (configmake.h): Likewise.
53402         * modules/fcntl (fcntl.h): Likewise.
53403         * modules/fnmatch (fnmatch.h): Likewise.
53404         * modules/getopt (getopt.h): Likewise.
53405         * modules/glob (glob.h): Likewise.
53406         * modules/inttypes (inttypes.h): Likewise.
53407         * modules/netinet_in (netinet/in.h): Likewise.
53408         * modules/poll (poll.h): Likewise.
53409         * modules/stdbool (stdbool.h): Likewise.
53410         * modules/stdint (stdint.h): Likewise.
53411         * modules/sys_select (sys/select.h): Likewise.
53412         * modules/sys_socket (sys/socket.h): Likewise.
53413         * modules/sys_stat (sys/stat.h): Likewise.
53414         * modules/sysexits (sysexits.h): Likewise.
53415         * modules/unistd (unistd.h): Likewise.
53416         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53417         Add a "DO NOT EDIT" comment to the generated file.
53418         (func_import): Likewise for gnulib-comp.m4.
53419
53420 2006-10-07  Bruno Haible  <bruno@clisp.org>
53421
53422         * lib/gl_sublist.h: New file.
53423         * lib/gl_sublist.c: New file.
53424
53425 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53426
53427         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
53428         name (relative to the original working directory) and the file
53429         name component (relative to the temporary working directory).  All
53430         callers changed.
53431         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
53432         * lib/mkdir-p.c (make_dir_parents): Likewise.
53433         * lib/mkdir-p.h (make_dir_parents): Likewise.
53434
53435 2006-10-06  Eric Blake  <ebb9@byu.net>
53436
53437         Define several macros for use by the clean-temp module.
53438         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
53439         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
53440         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
53441
53442         * lib/clean-temp.h (close_stream_temp): New declaration.
53443         * lib/clean-temp.c (includes): Pull in headers according to what
53444         other modules are in use.
53445         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
53446
53447 2006-10-06  Bruno Haible  <bruno@clisp.org>
53448
53449         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
53450         instead of fopen, fwriteerror.
53451
53452 2006-10-06  Bruno Haible  <bruno@clisp.org>
53453
53454         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
53455         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
53456         int.
53457         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
53458         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
53459         Return an error indicator.
53460         Suggested by Eric Blake.
53461
53462 2006-10-06  Bruno Haible  <bruno@clisp.org>
53463
53464         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
53465         Reported by Eric Blake.
53466
53467 2006-10-06  Bruno Haible  <bruno@clisp.org>
53468
53469         * modules/closeout (Description): Mention stderr too.
53470
53471 2006-10-06  Bruno Haible  <bruno@clisp.org>
53472         and Paul Eggert  <eggert@cs.ucla.edu>
53473
53474         * lib/closeout.c (close_stdout): Also close stderr.
53475         * lib/closeout.h: Update comment.
53476
53477 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53478
53479         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
53480         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
53481         * lib/dirchownmod.c: Include lchown.h.
53482         * lib/lchown.c: Don't include files that lchown.h now includes.
53483         Don't declare chown, since lchown.h now does that.
53484         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
53485         (lchown): Define to rpl_chown if lchown is declared but
53486         does not exist.  Declare using a prototype if lchown is not
53487         declared.  Add a copyright notice.
53488         * lib/mkstemp.h: Include <unistd.h>.
53489         * lib/openat.c: Include lchown.h.
53490
53491         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
53492         we now test for that separately.
53493         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
53494         rather than O_NOFOLLOW, when testing whether it's possible to
53495         avoid a race condition reliably.
53496         * lib/savewd.c (savewd_chdir): Likewise.
53497
53498         Remove macros that are no longer needed now that stdint.h is
53499         reliable.
53500         * lib/fsusage.c (UINTMAX_MAX): Remove.
53501         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
53502         * lib/utimecmp.c (SIZE_MAX): Remove.
53503
53504         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
53505
53506         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
53507         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
53508         O_NOATIME works.
53509
53510 2006-10-05  Bruno Haible  <bruno@clisp.org>
53511
53512         * lib/gl_list.h (gl_sortedlist_search_from_to,
53513         gl_sortedlist_indexof_from_to): New declarations.
53514         (gl_list_implementation): New fields sortedlist_search_from_to,
53515         sortedlist_indexof_from_to.
53516         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
53517         inline functions.
53518         * lib/gl_list.c (gl_sortedlist_search_from_to,
53519         gl_sortedlist_indexof_from_to): New functions.
53520         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
53521         function.
53522         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
53523         (gl_array_sortedlist_search_from_to): New function.
53524         (gl_array_list_implementation): Update.
53525         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
53526         function.
53527         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
53528         (gl_carray_sortedlist_search_from_to): New function.
53529         (gl_carray_list_implementation): Update.
53530         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
53531         gl_linked_sortedlist_indexof_from_to): New functions.
53532         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53533         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53534         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
53535         gl_tree_sortedlist_indexof_from_to): New functions.
53536         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53537         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53538         Update.
53539         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53540         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
53541         Update.
53542
53543 2006-10-05  Bruno Haible  <bruno@clisp.org>
53544
53545         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
53546         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
53547         (struct gl_list_implementation): Add fields search_from_to,
53548         indexof_from_to. Remove fields search, indexof.
53549         (gl_list_search): Use the search_from_to method.
53550         (gl_list_search_from, gl_list_search_from_to): New functions.
53551         (gl_list_indexof): Use the indexof_from_to method.
53552         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53553         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
53554         (gl_list_search_from, gl_list_search_from_to): New functions.
53555         (gl_list_indexof): Use the indexof_from_to method.
53556         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
53557         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
53558         gl_array_indexof. Add start_index, end_index arguments.
53559         (gl_array_search_from_to): Renamed from gl_array_search. Add
53560         start_index, end_index arguments.
53561         (gl_array_remove, gl_array_list_implementation): Update.
53562         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
53563         gl_carray_indexof. Add start_index, end_index arguments.
53564         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
53565         start_index, end_index arguments.
53566         (gl_carray_remove, gl_carray_list_implementation): Update.
53567         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
53568         gl_linked_search. Add start_index, end_index arguments.
53569         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
53570         start_index, end_index arguments.
53571         (gl_linked_remove): Update.
53572         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53573         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53574         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
53575         field to 'size_t'.
53576         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
53577         gl_tree_search. Add start_index, end_index arguments.
53578         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53579         start_index, end_index arguments.
53580         (gl_tree_remove): Update.
53581         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53582         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53583         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
53584         function.
53585         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
53586         gl_tree_search. Add start_index, end_index arguments.
53587         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
53588         start_index, end_index arguments.
53589         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53590         Update.
53591         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53592
53593 2006-10-05  Bruno Haible  <bruno@clisp.org>
53594
53595         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
53596
53597         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
53598         fwriteerror_temp): New declarations.
53599         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
53600         (descriptors): New variable.
53601         (cleanup): First, close the descriptors.
53602         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
53603         fclose_temp, fwriteerror_temp): New functions.
53604
53605 2006-10-04  Jim Meyering  <jim@meyering.net>
53606
53607         * lib/fts.c (fts_open): Tiny comment change.
53608
53609 2006-10-04  Bruno Haible  <bruno@clisp.org>
53610
53611         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
53612         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
53613         gl_LOCK_BODY.
53614         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
53615         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
53616         gl_LOCK_EARLY_BODY.
53617         (gl_LOCK): Require gl_LOCK_BODY.
53618
53619 2006-10-04  Bruno Haible  <bruno@clisp.org>
53620
53621         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
53622         (gl_oset_search_atleast): New declaration.
53623         (struct gl_oset_implementation): Add field 'search_atleast'.
53624         (gl_oset_search_atleast): New inline function.
53625         * lib/gl_oset.c (gl_oset_search_atleast): New function.
53626         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
53627         (gl_array_oset_implementation): Update.
53628         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
53629         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
53630         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
53631
53632 2006-10-04  Bruno Haible  <bruno@clisp.org>
53633
53634         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
53635
53636 2006-10-03  Bruno Haible  <bruno@clisp.org>
53637
53638         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
53639         from gl_avltreehash_list_implementation.
53640
53641 2006-10-03  Bruno Haible  <bruno@clisp.org>
53642
53643         * lib/gl_oset.c (gl_oset_add): Fix return type.
53644
53645 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
53646
53647         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
53648
53649 2006-10-02  Eric Blake  <ebb9@byu.net>
53650
53651         * modules/strnlen (Depends-on): Add extensions.
53652
53653 2006-10-02  Eric Blake  <ebb9@byu.net>
53654
53655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
53656         definition in 2.60+.
53657
53658 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
53659
53660         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
53661         checks.
53662
53663 2006-10-02  Bruno Haible  <bruno@clisp.org>
53664
53665         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
53666         to the AUTOMAKE_OPTIONS.
53667         Reported by Jim Meyering.
53668
53669 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
53670
53671         Work around bug in Solaris 10 /proc file system:
53672         /proc/self/fd/NNN/.. isn't the parent directory of
53673         the directory whose file descriptor is NNN.  This needs to
53674         be worked around at run time, not compile time, since a
53675         program might be built on Solaris 8, where things work, and
53676         run on Solaris 10.
53677         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
53678         to use the following interface instead:
53679         (OPENAT_BUFFER_SIZE): New macro.
53680         (openat_proc_name): New function.
53681         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
53682         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
53683         Likewise.
53684         * lib/openat-proc.c: New file.
53685         * modules/openat (Files): Add lib/openat-proc.c.
53686         (Depends-on): Add same-inode, stdbool.
53687         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
53688
53689 2006-09-29  Bruno Haible  <bruno@clisp.org>
53690
53691         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
53692         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
53693         argument. Set stdout_closed before testing for ferror, not after.
53694         (fwriteerror, fwriteerror_no_ebadf): New functions.
53695
53696 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53697
53698         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
53699
53700 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
53701
53702         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
53703         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
53704
53705 2006-09-28  Jim Meyering  <jim@meyering.net>
53706
53707         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
53708         Include <unistd.h>.
53709
53710 2006-09-28  Bruno Haible  <bruno@clisp.org>
53711
53712         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
53713         * modules/linkedhash-list (Depends-on): Likewise.
53714         * modules/rbtreehash-list (Depends-on): Likewise.
53715
53716 2006-09-28  Bruno Haible  <bruno@clisp.org>
53717
53718         * lib/strndup.h: Simplify the redefinition of strndup.
53719         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
53720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
53721
53722 2006-09-28  Bruno Haible  <bruno@clisp.org>
53723
53724         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
53725         * lib/gl_linkedhash_list.c: Likewise.
53726         * lib/gl_rbtreehash_list.c: Likewise.
53727
53728 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
53729
53730         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
53731         getaddrinfo.
53732
53733         * lib/__fpending.h: Don't include <stdio_ext.h> unless
53734         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
53735         it causes <stdio_ext.h> to cause a compile-time error.
53736         Problem reported by Nelson H. F. Beebe.
53737         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
53738         of HAVE_DECL___PENDING.
53739
53740         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
53741         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
53742         declaration.
53743
53744 2006-09-27  Jim Meyering  <jim@meyering.net>
53745
53746         This file could end up with a definition for a function
53747         named __strndup, rather than rpl_strndup on a system with
53748         incomplete weak_alias support.
53749         * lib/strndup.c (strndup): Rename from __strndup.
53750         Remove #defines that used to map __strndup to strndup.
53751         Don't use K&R prototypes.
53752         Remove LIBC-related code, since this file is not sync'd with glibc.
53753         * lib/strndup.h: Revamp, accordingly.
53754         * m4/strndup.m4: Modernize.
53755
53756 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
53757
53758         * modules/savewd (Depends-on): Add 'raise'.
53759         * lib/savewd.c: Include <signal.h>, for 'raise'.
53760
53761 2006-09-26  Jim Meyering  <jim@meyering.net>
53762
53763         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
53764         when we detect Darwin 8.7.0's acl_get_file bug.
53765         Rearrange to perform the new (below) run-test while $LIBS
53766         contains any acl-related library.  Set USE_ACL at the end.
53767         (gl_ACL_GET_FILE): New function.
53768
53769 2006-09-26  Eric Blake  <ebb9@byu.net>
53770
53771         * lib/verror.c: Include <config.h> unconditionally.
53772
53773 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
53774
53775         * modules/clock-time (Maintainer): Add self.
53776         * modules/getlogin_r (Depends-on): Add extensions.
53777
53778 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53779
53780         * modules/clock-time: New module.
53781         * modules/nanosleep (Depends-on): Add clock-time.
53782         * modules/gethrxtime (Depends-on): Likewise.
53783         * modules/gettime (Depends-on): Likewise.
53784         * modules/settime (Depends-on): Likewise.
53785
53786         * modules/fts-lgpl: Depend on openat.
53787         * modules/mkancesdirs: Depend on savewd.
53788         * modules/mkdir-p: Likewise.
53789
53790 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53791
53792         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
53793
53794         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
53795         `gl_have_arbitrary_file_name_length_limit' to
53796         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
53797         actually works between configure runs.
53798
53799 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53800             Bruno Haible  <bruno@clisp.org>
53801
53802         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
53803
53804 2006-09-25  Jim Meyering  <jim@meyering.net>
53805
53806         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
53807         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
53808
53809 2006-09-25  Eric Blake  <ebb9@byu.net>
53810
53811         * gnulib-tool (func_import, func_create_testdir): Fix typos in
53812         exec's in 2006-09-18 patch when shuffling fds.
53813
53814 2006-09-25  Bruno Haible  <bruno@clisp.org>
53815
53816         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
53817         Reported by Jim Meyering.
53818
53819 2006-09-24  Jim Meyering  <jim@meyering.net>
53820
53821         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
53822         compare a pointer against a literal "0".  That caused failures with
53823         at least HP-UX's hpcc.
53824
53825 2006-09-22  Simon Josefsson  <jas@extundo.com>
53826
53827         * modules/gc-sha1:
53828         * modules/gc-md4:
53829         * modules/gc-hmac-sha1:
53830         * modules/gc-hmac-md5:
53831         * modules/gc-des:
53832         * modules/gc-arcfour: Distribute more files.
53833
53834 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53835
53836         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
53837         (gl_linked_iterator_from_to): Initialize struct completely.
53838         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
53839         (gl_tree_iterator_from_to): Likewise
53840         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
53841         * lib/gl_array_list.c [lint] (gl_array_iterator)
53842         (gl_array_iterator_from_to): Likewise.
53843         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
53844         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
53845         (gl_carray_iterator_from_to): Likewise.
53846
53847         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
53848         * lib/md4.c (md4_process_block): Remove unused variable.
53849         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
53850         parentheses for clarity.
53851
53852 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53853
53854         * modules/bison-i18n (Depends-on): Add gettext.
53855
53856 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53857
53858         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
53859         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
53860         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
53861         also add missing comma that caused broken test.
53862         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
53863         stdlib.h, for `abort'.
53864         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
53865         variables.
53866         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
53867         include unistd.h if present, for `rmdir'.
53868         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
53869         variables.
53870         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
53871         in the process include standard headers for prototypes.
53872         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
53873         gets declared on GNU/Linux.
53874         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
53875         unistd.h, for `rmdir'.
53876         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
53877
53878         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
53879         always true.
53880         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
53881
53882         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
53883
53884 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53885
53886         * gnulib-tool (func_version): Create output all at once.  This
53887         may help avoid triggering unnecessary SIGPIPEs, and at any
53888         rate it doesn't hurt.
53889
53890 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53891             Bruno Haible  <bruno@clisp.org>
53892
53893         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
53894         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53895         * m4/signed.m4 (bh_C_SIGNED): Likewise.
53896
53897         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
53898         (gl_FUNC_VASPRINTF): Invoke it.
53899
53900 2006-09-22  Bruno Haible  <bruno@clisp.org>
53901
53902         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
53903         getloadavg.c as first argument.
53904
53905 2006-09-22  Bruno Haible  <bruno@clisp.org>
53906
53907         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
53908         at the beginning of the gl_INIT macro.
53909         * modules/getloadavg (configure.ac): Pass $gl_source_base to
53910         gl_GETLOADAVG.
53911
53912 2006-09-22  Bruno Haible  <bruno@clisp.org>
53913
53914         * gnulib-tool (func_create_megatestdir): Don't include the config-h
53915         module.
53916         Suggested by Ralf Wildenhues.
53917
53918 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53919
53920         Import this patch from libc:
53921
53922         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
53923
53924         * lib/regex_internal.c (re_string_reconstruct): Handle
53925         offset < pstr->valid_raw_len && pstr->offsets_needed case.
53926         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
53927         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
53928         re_string_context_at.
53929
53930         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
53931         now requires it.
53932         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
53933         gl_REGEX now does it for us.
53934         (gl_REGEX): Add test taken from
53935         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
53936
53937         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
53938         Check that large offsets work.  Modernize Autoconf usages.
53939         Prefer "yes" to mean a good thing rather than a bad.
53940         Don't put "#define mkstemp" in config.h, as this might interfere
53941         with standard system headers that "#define mkstemp mkstemp64".
53942
53943         * modules/mkstemp (Depends-on): Add extensions, so that
53944         mkstemp is visible on some platforms.
53945         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
53946         (Include): Change to "mkstemp.h" from <stdlib.h>.
53947         (Files): Add mkstemp.h.
53948
53949         * lib/mkstemp.h: New file, since some standard headers
53950         #define mkstemp.
53951         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
53952         Include "mkstemp.h".
53953         Make the _LIBC code resemble glibc original more,
53954         e.g., use K&R style.
53955         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
53956         (mkstemp): Remove, since mkstemp.h does this for us.
53957         * lib/stdlib--.h: Include mkstemp.h.
53958
53959         Import this patch from libc:
53960
53961         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53962
53963         * lib/tempname.c (__gen_tempname): Change attempts_min
53964         into a macro.  Use preprocessor to decide how to initialize
53965         attempts [Coverity CID 67].
53966
53967 2006-09-20  Bruno Haible  <bruno@clisp.org>
53968
53969         * lib/mkdtemp.c: Import from libc.
53970         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
53971                 * sysdeps/posix/tempname.c (__gen_tempname): Change
53972                 attempts_min into a macro.  Use preprocessor to decide how to
53973                 initialize attempts [Coverity CID 67].
53974         2001-11-27  Paul Eggert  <eggert@twinsun.com>
53975                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
53976                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
53977
53978 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53979
53980         * gnulib-tool (func_exit): New function, to allow to pass the
53981         exit status portably through the trap.  Use everywhere.
53982         (--help, --version): Signal a write error.
53983         (trap): catch SIGPIPE, for write errors.
53984         Exit at the end of the trap, with the correct exit status.
53985
53986 2006-09-19  Karl Berry  <karl@gnu.org>
53987
53988         * doc/gnulib.texi: note about the license texinfo files.
53989
53990 2006-09-19  Eric Blake  <ebb9@byu.net>
53991
53992         * gnulib-tool: Avoid space-tab.
53993
53994 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
53995
53996         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
53997         that prevented coreutils 6.1 from building.  Problem reported
53998         by Petter Reinholdtsen.
53999
54000 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
54001
54002         * gnulib-tool (avoidlist): Fix typo that broke options like
54003         --avoid=lock that are used by coreutils bootstrap.
54004
54005 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
54006
54007         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
54008         more systematically.
54009
54010 2006-09-18  Jim Meyering  <jim@meyering.net>
54011
54012         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
54013
54014 2006-09-18  Bruno Haible  <bruno@clisp.org>
54015
54016         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
54017
54018 2006-09-18  Bruno Haible  <bruno@clisp.org>
54019
54020         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
54021         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
54022         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
54023         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
54024         * m4/gettext.m4: Require autoconf >= 2.52.
54025         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
54026         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
54027         of gl_cv_header_inttypes_h.
54028
54029 2006-09-18  Bruno Haible  <bruno@clisp.org>
54030
54031         * lib/javaversion.c: Include configmake.h.
54032
54033 2006-09-18  Bruno Haible  <bruno@clisp.org>
54034
54035         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
54036         avoid that the while loops be executed in a subshell.
54037
54038 2006-09-18  Bruno Haible  <bruno@clisp.org>
54039
54040         * MODULES.html.sh (func_module): Break long lines.
54041         Suggested by Bruce Korb <bkorb@gnu.org>.
54042
54043 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54044
54045         Speed up by a factor of 1.12.
54046         * gnulib-tool (nl): New variable.
54047         (func_import): Rewrite include directive extraction to only read each
54048         directive once.
54049
54050 2006-09-17  Bruno Haible  <bruno@clisp.org>
54051
54052         * modules/javaversion (Makefile.am): Remove DEFS setting.
54053         (Depends-on): Add configmake, for PKGDATADIR definition.
54054
54055 2006-09-17  Bruno Haible  <bruno@clisp.org>
54056
54057         * gnulib-tool (func_create_testdir): Rewrite all files at once.
54058
54059 2006-09-17  Bruno Haible  <bruno@clisp.org>
54060
54061         * gnulib-tool (func_append): New function, stolen from libtool.m4.
54062         (func_modules_transitive_closure, func_modules_add_dummy,
54063         func_modules_to_filelist, func_import, func_create_testdir,
54064         func_create_megatestdir, ...): Use it wherever possible.
54065         Suggested by Ralf Wildenhues.
54066
54067 2006-09-16  Karl Berry  <karl@gnu.org>
54068
54069         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
54070         to avoid sectioning errors.
54071         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
54072         [ifinfo]: blank line after @center-ed titles.
54073         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
54074         Spell FSF address consistently with others.
54075         (These changes approved by rms.)
54076
54077 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54078
54079         Speed up by a factor of 1.61.
54080         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
54081         already checked module names again.
54082
54083 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54084
54085         Speed up by a factor of 1.13.
54086         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
54087         for new_files, and the input to func_add_or_update.
54088
54089 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54090
54091         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
54092         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
54093
54094 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54095
54096         * modules/mkancesdirs (Depends-on): Add fcntl.
54097         * modules/savewd: New file.
54098         * MODULES.html.sh (File system functions): Add savewd.
54099
54100         * modules/configmake (Makefile.am): Add support for the
54101         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
54102
54103 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54104
54105         * m4/savewd.m4: New file.
54106
54107 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
54108
54109         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
54110         (dirchownmod): New arg FD.  All callers changed.
54111         Use FD rather than opening the directory ourself, as opening is
54112         now the caller's responsibility.
54113         * lib/dirchownmod.h: Likewise.
54114         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
54115         hosts that require <sys/types.h> before <sys/stat.h>.  Include
54116         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
54117         (test_dir): Remove.
54118         (mkancesdirs): Return length of prefix of FILE that has already
54119         been made, or -2 if there is a child doing the work.  Redo
54120         algorithm so that it is O(N) rather than O(N**2).  Optimize away
54121         ".", and treat ".." specially since it might stray back into
54122         already-created areas.  Use a subprocess if necessary.  New arg
54123         WD; all users changed.  MAKE_DIR function should now return 1
54124         if it creates a directory that is not readable.  Return -2 if
54125         a child process is spun off.
54126         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
54127         Adjust signature to match code.
54128         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
54129         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
54130         all users changed.
54131         * lib/savewd.c, lib/savewd.h: New files.
54132
54133 2006-09-15  Jim Meyering  <jim@meyering.net>
54134
54135         * modules/rename-dest-slash: New module.
54136         * MODULES.html.sh (posix_compat): Add it here.
54137
54138         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
54139
54140 2006-09-15  Jim Meyering  <jim@meyering.net>
54141
54142         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
54143         file.
54144
54145         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
54146
54147 2006-09-15  Jim Meyering  <jim@meyering.net>
54148
54149         * lib/rename-dest-slash.c (has_trailing_slash): Use
54150         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
54151         (rpl_rename_dest_slash): Perform the cheaper trailing slash
54152         test before testing whether SRC is a directory.
54153         Suggestions from Bruno Haible.
54154
54155         Avoid a warning about an unused variable.
54156         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
54157         into the #ifdef block where it's used.
54158
54159         * lib/rename-dest-slash.c: New file.
54160
54161 2006-09-14  Bruno Haible  <bruno@clisp.org>
54162
54163         * lib/allocsa.c: Include <config.h> unconditionally.
54164         * lib/asnprintf.c: Likewise.
54165         * lib/asprintf.c: Likewise.
54166         * lib/c-strcasecmp.c: Likewise.
54167         * lib/c-strcasestr.c: Likewise.
54168         * lib/c-strncasecmp.c: Likewise.
54169         * lib/c-strstr.c: Likewise.
54170         * lib/classpath.c: Likewise.
54171         * lib/clean-temp.c: Likewise.
54172         * lib/concatpath.c: Likewise.
54173         * lib/copy-file.c: Likewise.
54174         * lib/csharpcomp.c: Likewise.
54175         * lib/csharpexec.c: Likewise.
54176         * lib/execute.c: Likewise.
54177         * lib/fatal-signal.c: Likewise.
54178         * lib/findprog.c: Likewise.
54179         * lib/fwriteerror.c: Likewise.
54180         * lib/gl_array_list.c: Likewise.
54181         * lib/gl_array_oset.c: Likewise.
54182         * lib/gl_avltree_list.c: Likewise.
54183         * lib/gl_avltree_oset.c: Likewise.
54184         * lib/gl_avltreehash_list.c: Likewise.
54185         * lib/gl_carray_list.c: Likewise.
54186         * lib/gl_linked_list.c: Likewise.
54187         * lib/gl_linkedhash_list.c: Likewise.
54188         * lib/gl_list.c: Likewise.
54189         * lib/gl_oset.c: Likewise.
54190         * lib/gl_rbtree_list.c: Likewise.
54191         * lib/gl_rbtree_oset.c: Likewise.
54192         * lib/gl_rbtreehash_list.c: Likewise.
54193         * lib/imaxabs.c: Likewise.
54194         * lib/imaxdiv.c: Likewise.
54195         * lib/javacomp.c: Likewise.
54196         * lib/javaexec.c: Likewise.
54197         * lib/javaversion.c: Likewise.
54198         * lib/linebreak.c: Likewise.
54199         * lib/localcharset.c: Likewise.
54200         * lib/lock.c: Likewise.
54201         * lib/mbchar.c: Likewise.
54202         * lib/mbswidth.c: Likewise.
54203         * lib/mkdtemp.c: Likewise.
54204         * lib/pipe.c: Likewise.
54205         * lib/printf-args.c: Likewise.
54206         * lib/printf-parse.c: Likewise.
54207         * lib/progname.c: Likewise.
54208         * lib/progreloc.c: Likewise.
54209         * lib/readlink.c: Likewise.
54210         * lib/sh-quote.c: Likewise.
54211         * lib/stpcpy.c: Likewise.
54212         * lib/stpncpy.c: Likewise.
54213         * lib/strcasecmp.c: Likewise.
54214         * lib/strcasestr.c: Likewise.
54215         * lib/strcspn.c: Likewise.
54216         * lib/striconv.c: Likewise.
54217         * lib/strncasecmp.c: Likewise.
54218         * lib/strnlen1.c: Likewise.
54219         * lib/strstr.c: Likewise.
54220         * lib/strtok_r.c: Likewise.
54221         * lib/tls.c: Likewise.
54222         * lib/tmpdir.c: Likewise.
54223         * lib/unicodeio.c: Likewise.
54224         * lib/unsetenv.c: Likewise.
54225         * lib/vasnprintf.c: Likewise.
54226         * lib/vasprintf.c: Likewise.
54227         * lib/wait-process.c: Likewise.
54228         * lib/xallocsa.c: Likewise.
54229         * lib/xsetenv.c: Likewise.
54230         * lib/xstriconv.c: Likewise.
54231
54232 2006-09-13  Simon Josefsson  <jas@extundo.com>
54233
54234         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
54235         that internally, suggested by Ralf Wildenhues
54236         <Ralf.Wildenhues@gmx.de>.
54237
54238 2006-09-13  Simon Josefsson  <jas@extundo.com>
54239
54240         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
54241         @LIBOBJS@.
54242         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54243
54244 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54245
54246         * lib/_fpending.c: Include <config.h> unconditionally, since we no
54247         longer worry about uses that don't define HAVE_CONFIG_H.
54248         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
54249         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
54250         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
54251         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
54252         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
54253         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
54254         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
54255         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
54256         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
54257         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
54258         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
54259         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
54260         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
54261         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
54262         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
54263         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
54264         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
54265         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
54266         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
54267         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
54268         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
54269         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
54270         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
54271         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
54272         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
54273         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
54274         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
54275         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
54276         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
54277         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
54278         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
54279         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
54280         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
54281         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
54282         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
54283         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
54284         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
54285         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
54286         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
54287         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
54288         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
54289         Likewise.
54290
54291 2006-09-13  Eric Blake  <ebb9@byu.net>
54292
54293         * lib/getopt.c: Fix typo in last commit.
54294
54295 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54296
54297         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
54298         dgettext.
54299
54300 2006-09-12  Jim Meyering  <jim@meyering.net>
54301
54302         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
54303         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
54304         Reported by Nelson H. F. Beebe.
54305
54306 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54307
54308         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
54309         program_invocation_name and program_invocation_short_name are
54310         initialized.
54311         * lib/argp-namefrob.h: Move declarations of program_invocation_name
54312         and program_invocation_short_name to argp.h, so they are visible
54313         to user programs.
54314         * lib/argp.h: Likewise
54315
54316 2006-09-10  Bruno Haible  <bruno@clisp.org>
54317
54318         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
54319         m4/inttypes_h.m4, m4/uintmax_t.m4.
54320
54321 2006-09-10  Bruno Haible  <bruno@clisp.org>
54322
54323         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
54324         gl_AC_TYPE_UINTMAX_T.
54325
54326 2006-09-10  Bruno Haible  <bruno@clisp.org>
54327
54328         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
54329
54330 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54331
54332         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
54333         convention.  Text proposed by Bruno Haible.
54334         (struct argp_option): Document the use of N_() wrappers.
54335
54336         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
54337         '\v', and translate the two parts separately, instead of feeding
54338         the whole string to gettext.  This allows to exclude
54339         '\v' from the strings visible to the translator by writing doc
54340         strings as N_("..") "\v" N_("..").
54341
54342 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
54343
54344         * config/srclist.txt: Undo latest change; the bug was fixed.
54345
54346 2006-09-09  Bruno Haible  <bruno@clisp.org>
54347
54348         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
54349         assignments if building a library without libtool.
54350         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
54351         in func_emit_lib_Makefile_am.
54352         (func_import): When building a static library libfoo.a, arrange to
54353         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
54354         (func_create_testdir): Likewise.
54355         * modules/gc (configure.ac, Makefile.am): If building statically,
54356         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
54357         * modules/iconvme (configure.ac, Makefile.am): Likewise.
54358         * modules/striconv (configure.ac, Makefile.am): Likewise.
54359         Based on a suggestion by Ralf Wildenhues.
54360
54361 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54362
54363         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54364         Check for unistd.h too, since Autoconf doesn't assume POSIX.
54365         Also:
54366
54367         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54368         Add year_2050_test to catch glibc bug 2821
54369         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
54370
54371         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54372         Prefer #ifdef to #if.
54373
54374         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
54375         Return from 'main' instead of calling 'exit'.
54376
54377 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54378
54379         * lib/mktime.c (guess_time_tm): Fix bug where mktime
54380         returned the maximum time_t value rather than (time_t) -1.
54381         Problem originally reported by William Bardwell
54382         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
54383
54384         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
54385         Moved to here ...
54386         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
54387         ... from here.
54388
54389 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
54390
54391         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
54392         2821 is fixed.
54393
54394 2006-09-08  Jim Meyering  <jim@meyering.net>
54395
54396         Don't make generated files read-only.  That would bother too many
54397         people.  However, do retain the ability to work when targets are
54398         read-only: remove the destination and temporary files before writing
54399         them (when generated via sed or echo), or by using the -f option for
54400         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
54401         * modules/alloca-opt, modules/argz, modules/arpa_inet:
54402         * modules/byteswap, modules/configmake, modules/fcntl:
54403         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
54404         * modules/localcharset, modules/netinet_in, modules/poll:
54405         * modules/stdbool, modules/stdint, modules/sys_select:
54406         * modules/sys_socket, modules/sys_stat, modules/sysexits:
54407
54408 2006-09-08  Jim Meyering  <jim@meyering.net>
54409
54410         Avoid new build failure on FreeBSD 6.0.
54411         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
54412         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
54413         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
54414
54415 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54416
54417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
54418
54419 2006-09-07  Jim Meyering  <jim@meyering.net>
54420
54421         Fix global typo in last change: use chmod u-w, not chmod u-x.
54422         Spotted by Paul Eggert and Bruce Korb.
54423         * modules/alloca-opt, modules/argz, modules/arpa_inet:
54424         * modules/byteswap, modules/configmake, modules/fcntl:
54425         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
54426         * modules/localcharset, modules/netinet_in, modules/poll:
54427         * modules/stdbool, modules/stdint, modules/sys_select:
54428         * modules/sys_socket, modules/sys_stat, modules/sysexits:
54429
54430 2006-09-06  Jim Meyering  <jim@meyering.net>
54431
54432         Make generated files be read-only.
54433         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
54434         Ensure that each generated file is now read-only.
54435         * modules/argz: Likewise.
54436         * modules/arpa_inet: Likewise.
54437         * modules/byteswap: Likewise.
54438         * modules/configmake: Likewise.
54439         * modules/fcntl: Likewise.
54440         * modules/fnmatch: Likewise.
54441         * modules/getopt: Likewise.
54442         * modules/glob: Likewise.
54443         * modules/inttypes: Likewise.
54444         * modules/netinet_in: Likewise.
54445         * modules/poll: Likewise.
54446         * modules/stdbool: Likewise.
54447         * modules/stdint: Likewise.
54448         * modules/sys_select: Likewise.
54449         * modules/sys_socket: Likewise.
54450         * modules/sys_stat: Likewise.
54451         * modules/sysexits: Likewise.
54452         * modules/localcharset: Same as above, but continue using temporary
54453         file named "t-$@" (why different?) rather than the "$@-t" used
54454         everywhere else.
54455
54456         * modules/sysexits (Makefile.am): Replace literal occurrences
54457         of "sysexit.h" more readable, and more consistent, "$@".
54458
54459 2006-09-06  Bruno Haible  <bruno@clisp.org>
54460
54461         * modules/striconv: New file.
54462         * modules/xstriconv: New file.
54463         * MODULES.html.sh (Internationalization functions): Add striconv,
54464         xstriconv.
54465
54466 2006-09-06  Bruno Haible  <bruno@clisp.org>
54467
54468         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
54469         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
54470         not using libtool correctly.
54471
54472 2006-09-06  Bruno Haible  <bruno@clisp.org>
54473
54474         * lib/striconv.h: New file.
54475         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
54476         iconvstring.c.
54477         * lib/xstriconv.h: New file.
54478         * lib/xstriconv.c: New file.
54479
54480 2006-09-06  Bruno Haible  <bruno@clisp.org>
54481
54482         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54483         lib_..._LDFLAGS.
54484
54485 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54486
54487         * lib/argz_.h: Sync from Libtool.
54488
54489         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
54490                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
54491
54492         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
54493
54494 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
54495
54496         * modules/trim: New file.
54497
54498 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
54499
54500         * lib/trim.h: New file.
54501         * lib/trim.c: New file.
54502
54503 2006-09-05  Bruno Haible  <bruno@clisp.org>
54504
54505         * MODULES.html.sh (String handling): Add trim.
54506
54507 2006-09-04  Karl Berry  <karl@gnu.org>
54508
54509         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
54510         until next release.
54511
54512 2006-09-03  Bruno Haible  <bruno@clisp.org>
54513
54514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
54515         correctly.
54516
54517 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54518
54519         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
54520         not gl_GETLOADAVG.  Omit unneeded semicolons.
54521         Problems reported by Ralf Wildenhues in
54522         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
54523         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
54524         at the end, which is the usual gnulib style.
54525
54526         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
54527         of doing all the work ourselves.
54528         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
54529         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
54530
54531 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54532
54533         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
54534         Problem reported by Ralf Wildenhues in
54535         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
54536
54537         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
54538         HAVE_STRUCT_STATFS_F_FSTYPENAME.
54539
54540 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54541
54542         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
54543         yesterday's patch by changing test -n to test -z.
54544
54545 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54546
54547         * modules/getloadavg (Files): Add m4/getloadavg.m4.
54548         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
54549         the former is now obsolescent.
54550
54551         * modules/chdir-long (Depends-on): Add fcntl.
54552
54553 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54554
54555         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
54556         obsolescent, and programs should use gnulib instead.
54557         * m4/getloadavg.m4: New file, with contents taken from Autoconf
54558         but with prefixes changed.
54559
54560 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54561
54562         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
54563         or stdbool.h, because they might not exist while configuring.
54564
54565         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
54566         Don't include unistd.h or limits.h; not needed, since chdir-long.h
54567         does that for us.
54568         (O_DIRECTORY): Remove.
54569
54570 2006-08-31  Eric Blake  <ebb9@byu.net>
54571
54572         * gnulib-tool: Don't let emacs change spaces to TAB.
54573
54574 2006-08-31  Bruno Haible  <bruno@clisp.org>
54575
54576         * gnulib-tool: When calling func_import more than once, do it in a
54577         subshell.
54578         Reported by Eric Blake <ebb9@byu.net>.
54579
54580 2006-08-31  Bruno Haible  <bruno@clisp.org>
54581
54582         * gnulib-tool (nl): Remove variable.
54583         (sed_transform_lib_file): Use more robust test for config-h module.
54584         (func_import): Fix typo in 2006-08-25 patch.
54585
54586 2006-08-31  Bruno Haible  <bruno@clisp.org>
54587
54588         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
54589         specified, augment Makefile.am variables instead of assigning them.
54590
54591 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54592
54593         Work around a bug in both the Linux and SunOS 64-bit kernels:
54594         nanosleep mishandles sleeps for longer than 2**31 seconds.
54595         Problem reported by Frank v Waveren in
54596         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
54598         Check for nanosleep bug.
54599         (LIB_NANOSLEEP): Append clock_gettime library if needed.
54600
54601 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54602
54603         Work around a bug in both the Linux and SunOS 64-bit kernels:
54604         nanosleep mishandles sleeps for longer than 2**31 seconds.
54605         Problem reported by Frank v Waveren in
54606         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
54607         * lib/nanosleep.c (BILLION): New constant.
54608         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
54609         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
54610         implementation.
54611
54612 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54613
54614         * modules/nanosleep (Depends-on): Add gettime.
54615
54616 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
54617         and Simon Josefsson  <jas@extundo.com>
54618         and Oskar Liljeblad  <oskar@osk.mine.nu>
54619
54620         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
54621         * gnulib-tool (func_import): New license type 'unmodifiable license
54622         text'.
54623         * modules/fdl: Use it.  Longer description.
54624         * module/gpl, module/lgpl: New files.
54625
54626 2006-08-30  Jim Meyering  <jim@meyering.net>
54627
54628         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
54629         shadowing the parameter.
54630
54631 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54632
54633         Sync from Libtool:
54634
54635         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54636
54637         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
54638         sharing with gnulib.  Report by Eric Blake.
54639
54640 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54641
54642         * modules/isapipe: New file.
54643         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
54644
54645 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54646
54647         * modules/configmake (Makefile.am): Add a comment, and omit
54648         the CONFIGMAKE_ prefix from generated macro names.  Suggested
54649         by Bruno Haible.
54650
54651 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54652
54653         * m4/isapipe.m4: New file.
54654
54655 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
54656
54657         * lib/isapipe.c, lib/isapipe.h: New files.
54658
54659 2006-08-29  Jim Meyering  <jim@meyering.net>
54660
54661         * modules/configmake (Makefile.am): Make configmake.h depend on
54662         Makefile.  Otherwise, a stale configmake.h could hang around.
54663
54664 2006-08-29  Eric Blake  <ebb9@byu.net>
54665
54666         * lib/error.c (error_at_line, print_errno_message): Match libc, after
54667         resolution of upstream bug 3044.
54668
54669 2006-08-29  Bruno Haible  <bruno@clisp.org>
54670
54671         * modules/localcharset (Depends-on): Add configmake.
54672         (Makefile.am): Remove setting of LIBDIR through DEFS.
54673
54674 2006-08-29  Bruno Haible  <bruno@clisp.org>
54675
54676         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
54677         defined.
54678
54679 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54680
54681         * modules/fcntl: New file.
54682         * modules/chdir-safer (Depends-on): Add fcntl.
54683         * modules/fts: Likewise.
54684         * modules/mkdir-p: Likewise.
54685
54686         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
54687         This undoes the most recent change, since we're now addressing the
54688         problem in a different way.
54689
54690         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
54691         into output, since the output might be called Makefile.am even
54692         if $makefile_name is something different.
54693         (func_import): Use $makefile_am rather than
54694         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
54695         empty.
54696
54697         * modules/inttypes (Files): Add m4/inttypes-h.m4.
54698
54699 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54700
54701         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
54702         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
54703         recent change to stdint.m4, since we're now addressing the problem in a
54704         different way.
54705
54706 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54707
54708         * m4/fcntl_h.m4: New file.
54709
54710 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
54711
54712         * lib/fcntl_.h: New file.
54713         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
54714         the fcntl module.
54715         * lib/dirchownmod.c: Likewise.
54716         * lib/fts.c: Likewise.
54717
54718         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
54719         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
54720         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
54721         just before including <inttypes.h>, to avoid circular inclusion.
54722
54723 2006-08-28  Jim Meyering  <jim@meyering.net>
54724
54725         * doc/visibility.texi: Actually read and correct the grammar of the
54726         sentence affected by yesterday's change.
54727
54728 2006-08-28  Eric Blake  <ebb9@byu.net>
54729
54730         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
54731         needs wrapper.
54732
54733 2006-08-28  Eric Blake  <ebb9@byu.net>
54734
54735         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
54736
54737 2006-08-28  Eric Blake  <ebb9@byu.net>
54738
54739         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
54740
54741 2006-08-28  Bruno Haible  <bruno@clisp.org>
54742
54743         * modules/c-strstr: New file, from GNU gettext.
54744         * MODULES.html.sh (String handling): Add c-strstr.
54745
54746 2006-08-28  Bruno Haible  <bruno@clisp.org>
54747
54748         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
54749         macros.
54750         Reported by Eric Blake.
54751
54752 2006-08-28  Bruno Haible  <bruno@clisp.org>
54753
54754         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
54755         (VASNPRINTF): Return a string of length > INT_MAX without failing.
54756         * lib/vasprintf.c: Include errno.h, limits.h.
54757         (EOVERFLOW): New fallback definition.
54758         (vasprintf): Test here whether the string length is > INT_MAX.
54759         * lib/vsnprintf.c: Include errno.h, limits.h.
54760         (EOVERFLOW): New fallback definition.
54761         (vsnprintf): Fix bug when generated string was too long for the buffer.
54762         Test here whether the string length is > INT_MAX.
54763
54764 2006-08-28  Bruno Haible  <bruno@clisp.org>
54765
54766         * lib/inttypes_.h (SCNX*): Remove definitions.
54767         Reported by Eric Blake.
54768
54769 2006-08-28  Bruno Haible  <bruno@clisp.org>
54770
54771         * lib/c-strstr.h: New file, from GNU gettext.
54772         * lib/c-strstr.c: New file, from GNU gettext.
54773
54774 2006-08-28  Bruno Haible  <bruno@clisp.org>
54775
54776         * gnulib-tool: Reorder some statements.
54777
54778 2006-08-28  Bruno Haible  <bruno@clisp.org>
54779
54780         * gnulib-tool: New option --makefile-name.
54781         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
54782         $makefile_name.
54783         (func_import): Write $makefile_name to the cache file, and read it from
54784         there unless explicitly specified. Use $makefile_name as file name
54785         instead of Makefile.am. Adjust the recommendations accordingly.
54786
54787 2006-08-28  Bruno Haible  <bruno@clisp.org>
54788
54789         * gnulib-tool (func_verify_module): Check against misapplying patch.
54790
54791 2006-08-28  Bruno Haible  <bruno@clisp.org>
54792
54793         * gnulib-tool (func_relativize, func_relconcat): New functions.
54794         Give an error if --local-dir is given with --update.
54795         Remove trailing slashes from $local_gnulib_dir.
54796         (func_import): Store the relativized $local_gnulib_dir in
54797         gnulib-cache.m4, and read it from there if not specified explicitly.
54798
54799 2006-08-28  Bruno Haible  <bruno@clisp.org>
54800
54801         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
54802         is the current directory. Respect also $local_gnulib_dir.
54803
54804 2006-08-28  Bruno Haible  <bruno@clisp.org>
54805             Simon Josefsson  <jas@extundo.com>
54806
54807         BeOS portability.
54808         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
54809
54810 2006-08-27  Jim Meyering  <jim@meyering.net>
54811
54812         * doc/visibility.texi: Remove duplicate word: "pointer".
54813
54814 2006-08-26  Bruno Haible  <bruno@clisp.org>
54815
54816         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
54817         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
54818         (Makefile.am): Create inttypes.h from inttypes_.h.
54819         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
54820
54821         * modules/imaxabs: New file.
54822
54823         * modules/imaxdiv: New file.
54824
54825 2006-08-26  Bruno Haible  <bruno@clisp.org>
54826
54827         * m4/inttypes.m4: New file.
54828         * m4/_inttypes_h.m4: Remove file.
54829         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
54830         PRI_MACROS_BROKEN.
54831         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
54832
54833         * m4/imaxabs.m4: New file.
54834
54835         * m4/imaxdiv.m4: New file.
54836
54837 2006-08-26  Bruno Haible  <bruno@clisp.org>
54838
54839         * lib/inttypes_.h: New file.
54840         * lib/inttypes.h: Remove file.
54841         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
54842
54843         * lib/imaxabs.c: New file.
54844
54845         * lib/imaxdiv.c: New file.
54846
54847 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54848
54849         New config-h module, so that "make" output needn't be cluttered
54850         by -DHAVE_CONFIG_H.
54851         * MODULES.html.sh (Support for building libraries and executables):
54852         Add config-h.
54853         * modules/config-h: New file.
54854         * gnulib-tool (nl, sed_transform_lib_file): New vars.
54855         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
54856         the config-h module is used.
54857
54858         New configmake module, so that "make" output needn't be cluttered
54859         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
54860         * MODULES.html.sh (Support for building libraries and executables):
54861         Add configmake.
54862         * modules/configmake: New file.
54863
54864 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54865
54866         * m4/config-h.m4: New file.
54867
54868 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54869
54870         * config/srclist.txt: Add elisp-comp.
54871
54872 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54873
54874         * MODULES.html.sh (Support for building libraries and executables):
54875         Add elisp-comp.
54876         * build-aux/elisp-comp: New file.
54877         * modules/elisp-comp: New file.
54878
54879 2006-08-24  Bruno Haible  <bruno@clisp.org>
54880
54881         * gnulib-tool (func_create_testdir): Use non-default values of
54882         sourcebase and m4base.
54883
54884 2006-08-24  Bruno Haible  <bruno@clisp.org>
54885
54886         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
54887         HTML structure.
54888
54889 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54890
54891         * modules/openat (Depends-on): Add lchown.
54892
54893 2006-08-23  Bruno Haible  <bruno@clisp.org>
54894
54895         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
54896         of gl_LOCK_EARLY instead of gl_LOCK.
54897
54898 2006-08-23  Bruno Haible  <bruno@clisp.org>
54899
54900         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
54901         on OSF/1 to no.
54902         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
54903
54904 2006-08-23  Bruno Haible  <bruno@clisp.org>
54905
54906         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
54907         as unusable.
54908
54909         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
54910         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
54911         (gl_LOCK): New macro.
54912
54913 2006-08-22  Simon Josefsson  <jas@extundo.com>
54914
54915         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
54916         to md5 module.
54917
54918 2006-08-22  Simon Josefsson  <jas@extundo.com>
54919
54920         * MODULES.html.sh: Add "Support for maintaining and release
54921         projects".
54922
54923         * build-aux/gnupload: New file, from coreutils.
54924
54925 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54926
54927         Avoid the need for AC_LIBSOURCES in m4 macros.
54928         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
54929         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
54930         * modules/check-version (EXTRA_DIST): Add check-version.h.
54931         * modules/crc (EXTRA_DIST): Add crc.h.
54932         * modules/des (EXTRA_DIST): Add des.h.
54933         * modules/gc (EXTRA_DIST): Add gc.h.
54934         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
54935         * modules/getline (EXTRA_DIST): Add getline.h.
54936         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
54937         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
54938         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
54939         * modules/md2 (EXTRA_DIST): Add md2.h.
54940         * modules/md4 (EXTRA_DIST): Add md4.h.
54941         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
54942         * modules/read-file (EXTRA_DIST): Add read-file.h.
54943         * modules/readline (EXTRA_DIST): Add readline.h.
54944         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
54945         rijndael-api-fst.h.
54946
54947 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54948
54949         * m4/rijndael.m4 (gl_ARCFOUR):
54950         * m4/arctwo.m4 (gl_ARCTWO):
54951         * m4/check-version.m4 (gl_CHECK_VERSION):
54952         * m4/crc.m4 (gl_CRC):
54953         * m4/des.m4 (gl_DES):
54954         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
54955         * m4/gc.m4 (gl_GC):
54956         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
54957         * m4/getline.m4 (gl_FUNC_GETLINE):
54958         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
54959         * m4/hmac-md5.m4 (gl_HMAC_MD5):
54960         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
54961         * m4/md2.m4 (gl_MD2):
54962         * m4/md4.m4 (gl_MD4):
54963         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
54964         * m4/read-file.m4 (gl_FUNC_READ_FILE):
54965         * m4/readline.m4 (gl_FUNC_READLINE):
54966         * m4/rijndael.m4 (gl_RIJNDAEL):
54967         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
54968         to get the necessary .h files and whatnot.
54969
54970 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
54971
54972         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
54973         gnulib rather than the other way around.
54974         * config/srclistvars.sh (COREUTILS): Remove.
54975
54976 2006-08-22  Jim Meyering  <jim@meyering.net>
54977
54978         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
54979
54980         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
54981
54982 2006-08-22  Eric Blake  <ebb9@byu.net>
54983
54984         * modules/regexprops-generic: New file.
54985         * MODULES.html.sh (Support for building documentation): List it.
54986
54987 2006-08-22  Eric Blake  <ebb9@byu.net>
54988
54989         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
54990         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
54991         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
54992         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
54993
54994 2006-08-22  Bruno Haible  <bruno@clisp.org>
54995
54996         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
54997         and lib_LTLIBRARIES like the other lib_* variables.
54998
54999 2006-08-22  Bruno Haible  <bruno@clisp.org>
55000
55001         * build-aux/x-to-1.in: New file, from GNU gettext.
55002
55003 2006-08-22  Bruno Haible  <bruno@clisp.org>
55004
55005         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
55006         <utmpx.h> exists.
55007
55008 2006-08-22  Bruno Haible  <bruno@clisp.org>
55009
55010         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
55011         <utmpx.h> exists.
55012
55013 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55014
55015         BeOS portability.
55016         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
55017         exist.
55018         Problem reported by Bruno Haible.
55019
55020 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55021
55022         Avoid the need for AC_LIBSOURCES in m4 macros.
55023         * modules/acl (EXTRA_DIST): Add acl.h.
55024         * modules/argmatch (Files): Add m4/argmatch.m4.
55025         (configure.ac): Add gl_ARGMATCH.
55026         (EXTRA_DIST): Renamed from lib_SOURCES, for
55027         consistency with the other modules.  Remove argmatch.c.
55028         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
55029         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
55030         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
55031         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
55032         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
55033         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
55034         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
55035         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
55036         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
55037         * modules/closeout (EXTRA_DIST): Add closeout.h.
55038         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
55039         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
55040         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
55041         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
55042         dirname.h; remove basename.c and stripslash.c.
55043         * modules/exclude (EXTRA_DIST): Add exclude.h.
55044         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
55045         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
55046         * modules/file-type (EXTRA_DIST): Add file-type.h.
55047         * modules/filemode (EXTRA_DIST): Add filemode.h.
55048         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
55049         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
55050         * modules/fpending (EXTRA_DIST): Add __fpending.h.
55051         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
55052         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
55053         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
55054         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
55055         * modules/getdate (EXTRA_DIST): Add getdate.c.
55056         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
55057         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
55058         * modules/getpass (EXTRA_DIST): Add getpass.h.
55059         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
55060         * modules/group-member (EXTRA_DIST): Add group-member.h.
55061         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
55062         * modules/hash (EXTRA_DIST): Add hash.h.
55063         * modules/human (EXTRA_DIST): Add human.h.
55064         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
55065         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
55066         * modules/lchown (EXTRA_DIST): Add lchown.h.
55067         * modules/long-options (EXTRA_DIST): Add long-options.h.
55068         * modules/lstat (EXTRA_DIST): Add lstat.h.
55069         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
55070         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
55071         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
55072         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
55073         * modules/memxor (EXTRA_DIST): Add memxor.h.
55074         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
55075         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
55076         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
55077         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
55078         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
55079         * modules/physmem (EXTRA_DIST): Add physmem.h.
55080         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
55081         * modules/posixver (EXTRA_DIST): Add posixver.h.
55082         * modules/quote (EXTRA_DIST): Add quote.h.
55083         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
55084         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
55085         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
55086         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
55087         regex_internal.h regexec.c.
55088         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
55089         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
55090         * modules/same (EXTRA_DIST): Add same.h.
55091         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
55092         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
55093         * modules/savedir (EXTRA_DIST): Add savedir.h.
55094         * modules/sha1 (EXTRA_DIST): Add sha1.h.
55095         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
55096         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
55097         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
55098         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
55099         * modules/strdup (EXTRA_DIST): Add strdup.h.
55100         * modules/strftime (EXTRA_DIST): Add strftime.h.
55101         * modules/strndup (EXTRA_DIST): Add strndup.h.
55102         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
55103         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
55104         * modules/time_r (EXTRA_DIST): Add time_r.h.
55105         * modules/timespec (EXTRA_DIST): Add timespec.h.
55106         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
55107         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
55108         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
55109         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
55110         * modules/userspec (EXTRA_DIST): Add userspec.h.
55111         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
55112         * modules/utimens (EXTRA_DIST): Add utimens.h.
55113         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
55114         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
55115         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
55116         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
55117         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
55118         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
55119         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
55120         * modules/yesno (EXTRA_DIST): Add yesno.h.
55121
55122 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
55123
55124         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
55125
55126         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
55127         * m4/dev-ino.m4, same-inode.m4: Remove.
55128
55129         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
55130         * m4/acl.m4 (AC_FUNC_ACL):
55131         * m4/backupfile.m4 (gl_BACKUPFILE):
55132         * m4/c-strtod.m4 (gl_C99_STRTOLD):
55133         * m4/canon-host.m4 (gl_CANON_HOST):
55134         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55135         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
55136         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
55137         * m4/cloexec.m4 (gl_CLOEXEC):
55138         * m4/close-stream.m4 (gl_CLOSE_STREAM):
55139         * m4/closeout.m4 (gl_CLOSEOUT):
55140         * m4/dirfd.m4 (gl_FUNC_DIRFD):
55141         * m4/dirname.m4 (gl_DIRNAME):
55142         * m4/exclude.m4 (gl_EXCLUDE):
55143         * m4/exitfail.m4 (gl_EXITFAIL):
55144         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
55145         * m4/file-type.m4 (gl_FILE_TYPE):
55146         * m4/filemode.m4 (gl_FILEMODE):
55147         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
55148         * m4/fpending.m4 (gl_FUNC_FPENDING):
55149         * m4/fprintftime.m4 (gl_FPRINTFTIME):
55150         * m4/fts.m4 (gl_FUNC_FTS):
55151         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
55152         * m4/getdate.m4 (gl_GETDATE):
55153         * m4/gethrxtime.m4 (gl_GETHRXTIME):
55154         * m4/getpagesize.m4 (gl_GETPAGESIZE):
55155         * m4/getpass.m4 (gl_FUNC_GETPASS):
55156         * m4/gettime.m4 (gl_GETTIME):
55157         * m4/getugroups.m4 (gl_GETUGROUPS):
55158         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
55159         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
55160         * m4/hard-locale.m4 (gl_HARD_LOCALE):
55161         * m4/hash.m4 (gl_HASH):
55162         * m4/idcache.m4 (gl_IDCACHE):
55163         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
55164         * m4/lchown.m4 (gl_FUNC_LCHOWN):
55165         * m4/long-options.m4 (gl_LONG_OPTIONS):
55166         * m4/lstat.m4 (gl_FUNC_LSTAT):
55167         * m4/md5.m4 (gl_MD5):
55168         * m4/memcasecmp.m4 (gl_MEMCASECMP):
55169         * m4/memcoll.m4 (gl_MEMCOLL):
55170         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
55171         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
55172         * m4/memxor.m4 (gl_MEMXOR):
55173         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
55174         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
55175         * m4/modechange.m4 (gl_MODECHANGE):
55176         * m4/mountlist.m4 (gl_MOUNTLIST):
55177         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55178         * m4/openat.m4 (gl_FUNC_OPENAT):
55179         * m4/pathmax.m4 (gl_PATHMAX):
55180         * m4/physmem.m4 (gl_PHYSMEM):
55181         * m4/posixtm.m4 (gl_POSIXTM):
55182         * m4/posixver.m4 (gl_POSIXVER):
55183         * m4/quote.m4 (gl_QUOTE):
55184         * m4/quotearg.m4 (gl_QUOTEARG):
55185         * m4/readtokens.m4 (gl_READTOKENS):
55186         * m4/readutmp.m4 (gl_READUTMP):
55187         * m4/regex.m4 (gl_REGEX):
55188         * m4/safe-read.m4 (gl_SAFE_READ):
55189         * m4/safe-write.m4 (gl_SAFE_WRITE):
55190         * m4/same.m4 (gl_SAME):
55191         * m4/save-cwd.m4 (gl_SAVE_CWD):
55192         * m4/savedir.m4 (gl_SAVEDIR):
55193         * m4/settime.m4 (gl_SETTIME):
55194         * m4/sha1.m4 (gl_SHA1):
55195         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
55196         * m4/stat-macros.m4 (gl_STAT_MACROS):
55197         * m4/stat-time.m4 (gl_STAT_TIME):
55198         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
55199         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
55200         * m4/strdup.m4 (gl_FUNC_STRDUP):
55201         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
55202         * m4/strndup.m4 (gl_FUNC_STRNDUP):
55203         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
55204         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
55205         * m4/time_r.m4 (gl_TIME_R):
55206         * m4/timespec.m4 (gl_TIMESPEC):
55207         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
55208         * m4/unlinkdir.m4 (gl_UNLINKDIR):
55209         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
55210         * m4/userspec.m4 (gl_USERSPEC):
55211         * m4/utimecmp.m4 (gl_UTIMECMP):
55212         * m4/utimens.m4 (gl_UTIMENS):
55213         * m4/xalloc.m4 (gl_XALLOC):
55214         * m4/xgetcwd.m4 (gl_XGETCWD):
55215         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
55216         * m4/xreadlink.m4 (gl_XREADLINK):
55217         * m4/xstrtod.m4 (gl_XSTRTOD):
55218         * m4/yesno.m4 (gl_YESNO):
55219         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
55220         to get the necessary .h files and whatnot.
55221
55222 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
55223             Bruno Haible  <bruno@clisp.org>
55224
55225         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
55226         /bin/sh understanding of '!' conditional negation.
55227
55228 2006-08-21  Jim Meyering  <jim@meyering.net>
55229
55230         * modules/openat (Depends-on): Really alphabetize.
55231
55232         * modules/acl (Depends-on): Add error and quote.
55233
55234         * check-module (find_included_lib_files): Add at-func.c to the
55235         ok-to-include-more-than-once white list.
55236
55237         * modules/openat (Depends-on): Add lstat.  Alphabetize.
55238
55239 2006-08-21  Bruno Haible  <bruno@clisp.org>
55240
55241         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55242         Emit a pkgdata_DATA variable only if some snippets add contents to it.
55243         Reported by Martin Lambers <marlam@marlam.de>.
55244
55245 2006-08-21  Bruno Haible  <bruno@clisp.org>
55246
55247         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
55248         specify an installation location, don't emit a noinst_LIBRARIES or
55249         noinst_LTLIBRARIES assignment.
55250
55251 2006-08-21  Bruno Haible  <bruno@clisp.org>
55252
55253         BeOS portability.
55254         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
55255         BeOS has mbrtowc() but no <wctype.h>.
55256
55257 2006-08-21  Bruno Haible  <bruno@clisp.org>
55258
55259         BeOS portability.
55260         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
55261         exist.
55262
55263 2006-08-21  Bruno Haible  <bruno@clisp.org>
55264
55265         BeOS portability.
55266         * lib/mbchar.h: Include <wctype.h> only if it exists.
55267
55268 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55269
55270         Remove files that are no longer needed by their respective modules.
55271         * m4/obstack.m4: Remove.
55272         * m4/strerror_r.m4: Remove.
55273         * m4/uint32_t.m4: Remove.
55274         * m4/uintptr_t.m4: Remove.
55275         * m4/ullong_max.m4: Remove.
55276         * m4/xstrtoimax.m4: Remove.
55277         * m4/xstrtoumax.m4: Remove.
55278
55279         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
55280         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
55281         dependencies now capture this.
55282
55283         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
55284         Do not use AC_LIBSOURCES, since gnulib modules now do this.
55285         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
55286         * m4/human.m4 (gl_HUMAN): Likewise.
55287         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
55288         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
55289
55290         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
55291
55292         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
55293         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
55294         stdint.
55295         * m4/human.m4 (gl_HUMAN): Likewise.
55296         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
55297         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
55298         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
55299         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
55300         * m4/xstrtol (gl_XSTRTOL): Likewise.
55301
55302         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
55303         AC_TYPE_LONG_LONG_INT.
55304         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
55305         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
55306         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
55307         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
55308
55309         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
55310         on stdbool.
55311
55312         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
55313         (gl_PREREQ_XSTRTOUL): Remove.
55314
55315         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
55316
55317         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
55318         mode.
55319
55320 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55321
55322         Add and change modules to make it easier for coreutils to use
55323         gnulib-tool.
55324         * modules/backupfile (Files): Remove m4/d-ino.m4.
55325         (Depends-on): Add d-ino.
55326         * modules/cycle-check (Depends-on): Add stdint.
55327         (lib_SOURCES): Add cycle-check.h.
55328         * modules/d-ino: New module.
55329         * modules/d-type: New module.
55330         * modules/error (Files): Remove m4/strerror_r.m4.
55331         * modules/filemode (Files): Add m4/st_dm_mode.m4.
55332         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
55333         m4/inttypes_h.m4, m4/uintmax_t.m4.
55334         (Depends-on): Add stdint.
55335         (lib_SOURCES): Add fsusage.h.
55336         * modules/getcwd (Files): Remove d-ino.m4.
55337         (Depends-on): Add d-ino.
55338         * modules/getndelim2 (Depends-on): Add stdint.
55339         * modules/glob (Files): Remove m4/d-type.m4.
55340         (Depends-on): Add d-type.
55341         * modules/host-os: New module.
55342         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
55343         m4/inttypes_h.m4, m4/uintmax_t.m4.
55344         * Depends-on: Add stdint.
55345         (lib_SOURCES): Add human.h.
55346         * modules/inttostr (Files): Remove m4/intmax_t.m4,
55347         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
55348         m4/uintmax_t.m4, m4/ulonglong.m4.
55349         (Depends-on): Add stdint.
55350         (EXTRA_DIST): Add inttostr.h.
55351         * modules/lchmod: New module.
55352         * modules/link-follow: New module.
55353         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
55354         (Depends-on): Add lchmod.
55355         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
55356         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
55357         (Depends-on): Add stdint.
55358         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
55359         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
55360         (Depends-on): Add stdint.
55361         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
55362         * modules/perl: New module.
55363         * modules/regex (Depends-on): Add stdint.
55364         * modules/rmdir-errno: New module.
55365         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
55366         m4/intmax_t.m4.
55367         (Depends-on): Add stdint.
55368         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
55369         m4/uintmax_t.m4.
55370         (Depends-on): Add stdint.
55371         * modules/unlink-busy: New module.
55372         * modules/utimecmp (Depends-on): Add stdint.
55373         * modules/uptime: New module.
55374         * modules/winsz-ioctl: New module.
55375         * modules/winsz-termios: New module.
55376         * modules/xnanosleep (Depends-on): Add nanosleep.
55377         * modules/ullong_max: Remove.
55378         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
55379         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
55380         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
55381         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
55382         (Depends-on): Add inttypes.
55383         (lib_SOURCES): Add xstrtol.h.
55384         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
55385         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
55386         * MODULES.html.sh: Move 'assert' into the assert section.
55387         Move 'dummy' into the linking section.
55388         Remove ullong_max.
55389         Add section for compatibility checks for POSIX:2001 functions,
55390         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
55391         winsz-ioctl, and winsz-termios into it.
55392         Add lchmod.
55393         Add top-level Misc section and put host-os, perl, and uptime
55394         into it.
55395
55396 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
55397
55398         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
55399         now assume the stdint module.  Do not include inttypes.h.
55400         * lib/fsusage.h: Likewise.
55401         * lib/getndelim2.c: Likewise.
55402         * lib/human.h: Likewise.
55403         * lib/inttostr.h: Likewise.
55404         * lib/obstack.c: Likewise.
55405         * lib/regex_internal.h: Likewise.
55406         * lib/tempname.c: Likewise.
55407         * lib/utimecmp.c: Likewise.
55408         * lib/xstrtol.h: Likewise.
55409
55410         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
55411
55412         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
55413         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
55414         * lib/xtime.h: Likewise.
55415
55416 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55417
55418         * modules/openat (Files): Add lib/fchmodat.c.
55419         Fixes problem reported by Jay Youngman.
55420
55421 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55422
55423         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
55424         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
55425
55426 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
55427             Bruno Haible  <bruno@clisp.org>
55428
55429         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
55430         and is a script that invokes bison. Tighten the code. Add comments.
55431
55432 2006-08-18  Jim Meyering  <jim@meyering.net>
55433
55434         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
55435         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
55436         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
55437         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
55438
55439 2006-08-18  Bruno Haible  <bruno@clisp.org>
55440
55441         * modules/bison-i18n: New file.
55442         * MODULES.html.sh (Internationalization functions): Add it.
55443
55444 2006-08-18  Bruno Haible  <bruno@clisp.org>
55445
55446         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
55447         sys/statvfs.h. When getmntinfo was found, check its declaration and
55448         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
55449
55450 2006-08-18  Bruno Haible  <bruno@clisp.org>
55451
55452         * m4/bison-i18n.m4: New file, from bison.
55453
55454 2006-08-18  Bruno Haible  <bruno@clisp.org>
55455
55456         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
55457         (ME_DUMMY): Treat "kernfs" as a dummy.
55458         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
55459
55460 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55461
55462         Update from coreutils.
55463
55464         2006-08-15  Jim Meyering  <jim@meyering.net>
55465
55466         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
55467
55468         2006-01-17  Jim Meyering  <jim@meyering.net>
55469
55470         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
55471
55472         2006-01-11  Jim Meyering  <jim@meyering.net>
55473
55474         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
55475         Check for the lchmod function.
55476
55477 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55478
55479         Update from coreutils.
55480
55481         * lib/__fpending.h: Add copyright notice.
55482         * lib/fprintftime.h: Likewise.
55483         * lib/savedir.c: Use (C) in copyright notice.
55484         * lib/savedir.h: Likewise.
55485
55486         2006-08-15  Jim Meyering  <jim@meyering.net>
55487
55488         * lib/at-func.c: New file, with the logic of all emulated at-functions.
55489         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
55490         in support of the EXPECTED_ERRNO macro.
55491         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
55492         definitions.  Instead, define the appropriate symbols and include
55493         "at-func.c".
55494         * lib/mkdirat.c (mkdirat): Likewise.
55495         * lib/fchmodat.c (fchmodat): Likewise.
55496         (ENOSYS): Remove definition.
55497         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
55498         it.  Don't include "unistd--.h" -- it wasn't ever used.
55499
55500         2006-01-17  Jim Meyering  <jim@meyering.net>
55501
55502         Rewrite fts.c not to change the current working directory,
55503         by using openat, fstatat, fdopendir, etc..
55504
55505         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
55506         (HAVE_OPENAT_SUPPORT): Define.
55507         [_LIBC] (fchdir): Don't undef or define; no longer used.
55508         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
55509         Now, this `function' always succeeds, and consumes its file descriptor
55510         parameter -- so callers must not close such FDs.  Update callers.
55511         (diropen_fd, opendirat, cwd_advance_fd): New functions.
55512         (diropen): Add parameter, SP.  Adjust all callers.
55513         Implement using diropen_fd, rather than open.
55514         (fts_open): Initialize new member, fts_cwd_fd.
55515         Remove fts_rft-setting code.
55516         (fts_close): Close fts_cwd_fd, if necessary.
55517         (__opendir2): Define in terms of opendir or opendirat,
55518         depending on whether the FST_NOCHDIR flag is set.
55519         (fts_build): Since fts_safe_changedir consumes its FD, and since
55520         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
55521         and close the dup'd file descriptor upon failure.
55522         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
55523         (fts_safe_changedir): Tweak semantics to reflect that this function
55524         now calls cwd_advance_fd and hence consumes its FD argument.
55525         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
55526         [struct FTS] (fts_rft): Remove now-unused member.
55527         [struct FTS] (fts_cycle.state): Improve comment.
55528
55529         * lib/openat.c (openat_needs_fchdir): New function.
55530         * lib/openat.h (openat_needs_fchdir): Declare it.
55531
55532 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
55533
55534         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
55535         Problem and fix reported by Pádraig Brady in
55536         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
55537
55538 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55539
55540         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
55541
55542 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55543
55544         * lib/memcoll.c (memcoll): Optimize for the common case where the
55545         arguments are bytewise equal.
55546
55547 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55548
55549         * doc/regexprops-generic.texi: Add a copyright notice.
55550
55551 2006-08-15  Bruno Haible  <bruno@clisp.org>
55552
55553         * modules/tmpdir (License): Change to LGPL.
55554
55555 2006-08-15  Bruno Haible  <bruno@clisp.org>
55556
55557         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
55558         module.
55559
55560 2006-08-14  Simon Josefsson  <jas@extundo.com>
55561
55562         * config/srclist.txt: Add gnupload.
55563
55564 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55565
55566         Change copyright notice from LGPL 2 to GPL 2, since that's the
55567         standard form used in the gnulib repository.
55568         * tests/test-lock.c: Likewise.
55569         * tests/test-stdint.c: Likewise.
55570         * tests/test-tls.c: Likewise.
55571
55572         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
55573         prelude-manager.  User shorter URLs for GNU projects, without '?'.
55574         Add copyright notice.
55575
55576         * check-module: Add copyright notice.  Output a copyright
55577         notice if "--version" is specified.
55578         * modules/COPYING: New file.
55579         * tests/test-getaddrinfo.c: Add copyright notice.
55580         * tests/test-verify.c: Likewise.
55581
55582 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55583
55584         Change copyright notice from LGPL 2 to GPL 2, since that's the
55585         standard form used in the gnulib repository.
55586         * lib/lock.c: LGPL -> GPL.
55587         * lib/lock.h: Likewise.
55588         * lib/strnlen1.c: Likewise.
55589         * lib/strnlen1.h: Likewise.
55590         * lib/tls.c: Likewise.
55591         * lib/tls.h: Likewise.
55592         * lib/tmpdir.c: Likewise.
55593
55594         * lib/TODO: Remove; this belongs only in coreutils.
55595
55596 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55597
55598         Add copyright notices to long-enough files that lack them, since
55599         otherwise the files aren't clearly free.  Use the same notice that
55600         getdate.texi already uses.
55601         * doc/alloca-opt.texi: Add copyright notice.
55602         * doc/alloca.texi: Likewise.
55603         * doc/ctime.texi: Likewise.
55604         * doc/functions.texi: Likewise.
55605         * doc/gcd.texi: Likewise.
55606         * doc/gnulib-tool.texi: Likewise.
55607         * doc/inet_ntoa.texi: Likewise.
55608         * doc/visibility.texi: Likewise.
55609
55610         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
55611         * doc/quote.texi: Add copyright notice.
55612
55613         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
55614         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
55615         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
55616         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
55617         is now obsolete, and give a pointer to the Sun list.
55618         Add copyright notice.
55619
55620 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55621
55622         * config/srclistvars.sh: Add copyright notice.
55623
55624 2006-08-14  Eric Blake  <ebb9@byu.net>
55625
55626         Import the following change from libc:
55627
55628         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
55629
55630         Upstream bug 2997.
55631         * lib/misc/error.c: Add space between program name and message if file
55632         name is missing.
55633
55634 2006-08-12  Karl Berry  <karl@gnu.org>
55635
55636         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
55637         remove, these originate in gnulib now.
55638
55639 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55640
55641         * doc/Makefile (standards.info standards.html standards.dvi):
55642         Also depend on make-stds.texi.
55643
55644 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55645
55646         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
55647         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
55648
55649         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
55650         in wchar_t.  Problem reported by Eric Blake.
55651
55652         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
55653         LEN is smaller than SIZE.  Suggested by Bruno Haible.
55654         Also, help the compiler to keep LEN in a register.
55655
55656 2006-08-11  Eric Blake  <ebb9@byu.net>
55657
55658         * users.txt: Sort.  Add tar.
55659
55660 2006-08-11  Bruno Haible  <bruno@clisp.org>
55661
55662         * users.txt: New file.
55663
55664 2006-08-11  Bruno Haible  <bruno@clisp.org>
55665
55666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
55667         before <wchar.h>. Needed for OSF/1 and BSD/OS.
55668
55669 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55670
55671         * modules/snprintf (Depends-on): Remove minmax.
55672         (Maintainer): Add self and Bruno.
55673
55674 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55675
55676         * lib/.cppi-disable: Add snprintf.h, socket_.h.
55677         * lib/snprintf.c: Include <errno.h> and <limits.h>.
55678         (EOVERFLOW): Define if the system does not.
55679         Do not include "minmax.h"; it wasn't used.
55680         (snprintf): Don't assume size_t promotes to an unsigned type.
55681         Fix bug when generated string was too long for the buffer: the
55682         buffer's contents are supposed to be the initial prefix of the
55683         output.  Don't assume vasnprintf returns EOVERFLOW if the size
55684         exceeds INT_MAX; do the check ourselves.
55685
55686         Import the following changes from libc:
55687
55688         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
55689
55690         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
55691         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
55692         set wc to the byte which couldn't be converted.
55693         (re_string_reconstruct): Don't clear valid_raw_len before calling
55694         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
55695         tip_context using re_string_context_at.
55696
55697         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
55698
55699         * lib/posix/regex.h: g++ still cannot handled [restrict].
55700
55701         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
55702
55703         * lib/posix/regex.h: Remove special handling for VMS.
55704
55705 2006-08-10  Jim Meyering  <jim@meyering.net>
55706
55707         * modules/same-inode: New module.
55708         * modules/dev-ino: New module.
55709         * modules/cycle-check: Depend on these modules, rather than simply
55710         including their .h files.
55711         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
55712         required via m4/cycle-check.m4.
55713         * modules/same: Depend on new same-inode module, rather than
55714         including same-inode.h.
55715         * modules/chdir-safer: New file.
55716
55717         * modules/chown (Depends-on): Add stat-macros.
55718
55719 2006-08-10  Jim Meyering  <jim@meyering.net>
55720
55721         * m4/cycle-check.m4: New file.
55722         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
55723         * m4/dev-ino.m4, m4/same-inode.m4: New files.
55724
55725 2006-08-10  Eric Blake  <ebb9@byu.net>
55726
55727         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
55728         in from original proposal.
55729
55730 2006-08-10  Eric Blake  <ebb9@byu.net>
55731         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
55732
55733         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
55734         namespace.
55735
55736 2006-08-10  Bruno Haible  <bruno@clisp.org>
55737
55738         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
55739         as well.
55740
55741 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55742
55743         Sync from coreutils.
55744
55745         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
55746
55747         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
55748         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
55749
55750 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55751
55752         * modules/restrict: Remove; no longer needed now that we assume
55753         Autoconf 2.59 or later.
55754         * MODULES.html.sh: Remove 'restrict'.
55755         * modules/argp (Depends-on): Remove 'restrict'.
55756         * modules/base64 (Depends-on): Likewise.
55757         * modules/gc (Depends-on): Likewise.
55758         * modules/getaddrinfo (Depends-on): Likewise.
55759         * modules/glob (Depends-on): Likewise.
55760         * modules/inet_ntop (Depends-on): Likewise.
55761         * modules/inet_pton (Depends-on): Likewise.
55762         * modules/memxor (Depends-on): Likewise.
55763         * modules/regex (Depends-on): Likewise.
55764         * modules/strtok_r (Depends-on): Likewise.
55765         * modules/time_r (Depends-on): Likewise.
55766
55767 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55768
55769         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
55770         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
55771         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55772         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
55773         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
55774         * m4/memxor.m4 (gl_MEMXOR): Likewise.
55775         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
55776         gl_C_RESTRICT replaced by AC_C_RESTRICT.
55777
55778         Merge from coreutils.
55779         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
55780         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
55781         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55782         * m4/time_r.m4 (gl_TIME_R): Likewise.
55783
55784 2006-08-09  Karl Berry  <karl@gnu.org>
55785
55786         * config/srclist.txt: no more gettext-tools, per Bruno.
55787
55788 2006-08-08  Eric Blake  <ebb9@byu.net>
55789
55790         * modules/verror: New module.
55791         * MODULES.html.sh: Document it.
55792
55793 2006-08-08  Eric Blake  <ebb9@byu.net>
55794
55795         * lib/verror.h, lib/verror.c: New files.
55796
55797 2006-08-08  Eric Blake  <ebb9@byu.net>
55798
55799         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
55800         verror_at_line output complies with GNU Coding Standards even when
55801         file is NULL.
55802
55803 2006-08-07  Bruno Haible  <bruno@clisp.org>
55804
55805         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
55806         versions of AIX.
55807         Reported by Ralf Wildenhues.
55808
55809 2006-08-07  Bruno Haible  <bruno@clisp.org>
55810
55811         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
55812         in an AC_DEFUN. Needed so that the autoconf snippets can use
55813         AC_REQUIRE.
55814
55815 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55816
55817         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55818         Initialize pkgdata_DATA.
55819         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
55820         overriding it.
55821
55822 2006-08-06  Eric Blake  <ebb9@byu.net>
55823
55824         * lib/error.h: Fold in some upstream changes from glibc.
55825         * lib/error.c: Likewise.
55826
55827 2006-08-04  Bruno Haible  <bruno@clisp.org>
55828
55829         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55830         Make the mostlyclean-local rule depend on mostlyclean-generic.
55831         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
55832
55833 2006-07-31  Bruno Haible  <bruno@clisp.org>
55834
55835         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
55836         <stdlib.h>, <string.h>.
55837
55838 2006-07-30  Bruno Haible  <bruno@clisp.org>
55839
55840         * modules/readlink (License): Change to LGPL.
55841
55842 2006-07-30  Bruno Haible  <bruno@clisp.org>
55843
55844         * modules/javaversion (Makefile.am): Distribute javaversion.java and
55845         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
55846         set PKGDATADIR to point to it.
55847
55848 2006-07-30  Bruno Haible  <bruno@clisp.org>
55849
55850         * modules/csharpexec (configure.ac): Comment out macro invocation.
55851         * modules/javaexec (configure.ac): Likewise.
55852         * modules/javacomp-script (configure.ac): Likewise.
55853
55854         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
55855
55856 2006-07-30  Bruno Haible  <bruno@clisp.org>
55857
55858         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
55859         linked-list.
55860
55861 2006-07-30  Bruno Haible  <bruno@clisp.org>
55862
55863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
55864
55865 2006-07-30  Bruno Haible  <bruno@clisp.org>
55866
55867         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55868         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
55869         get removed.
55870
55871 2006-07-29  Bruno Haible  <bruno@clisp.org>
55872
55873         Make it possible for gnulib-tool to work with locally modified or
55874         augmented gnulib repositories.
55875         * gnulib-tool (func_usage): Document --local-dir option.
55876         (local_gnulib_dir): New variable.
55877         Handle --local-dir option.
55878         (func_lookup_file): New function.
55879         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
55880         (func_get_description, func_get_filelist, func_get_description,
55881         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
55882         func_get_automake_snippet, func_get_include_directive,
55883         func_get_license, func_get_maintainer): Use func_lookup_file.
55884         (func_import, func_create_testdir): Use func_lookup_file.
55885
55886 2006-07-29  Bruno Haible  <bruno@clisp.org>
55887
55888         * modules/setenv (Depends-on): Add unistd.
55889
55890 2006-07-29  Bruno Haible  <bruno@clisp.org>
55891
55892         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
55893
55894 2006-07-29  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
55897
55898 2006-07-29  Bruno Haible  <bruno@clisp.org>
55899
55900         * gnulib-tool (import, update): If there is no Makefile.am, look at
55901         aclocal.m4, instead of bailing out.
55902
55903 2006-07-29  Bruno Haible  <bruno@clisp.org>
55904
55905         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
55906         Categorize the options by when they are useful.
55907
55908 2006-07-29  Bruno Haible  <bruno@clisp.org>
55909
55910         * gnulib-tool (func_usage): Document option --no-libtool.
55911         Handle option --no-libtool.
55912         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
55913         for changed semantics of $libtool variable.
55914         (func_import): Likewise. If libtool is not used, show this through
55915         an option --no-libtool.
55916         (func_create_testdir): Update.
55917
55918 2006-07-29  Bruno Haible  <bruno@clisp.org>
55919
55920         * gnulib-tool (func_import): Extend error message about missing
55921         --doc-base.
55922
55923 2006-07-29  Bruno Haible  <bruno@clisp.org>
55924
55925         * gnulib-tool (func_import): Don't create the $docbase directory if
55926         there is no file to store there.
55927
55928 2006-07-29  Bruno Haible  <bruno@clisp.org>
55929
55930         * gnulib-tool (autoconf_minversion): If a --dir option is given and
55931         relevant, look for configure.ac there, not in the current directory.
55932         Also use a simple search for AC_PREREQ, not "autoconf --trace".
55933
55934 2006-07-29  Bruno Haible  <bruno@clisp.org>
55935
55936         * gnulib-tool (SORT): New variable.
55937         (func_usage): Undocument --assume-autoconf option.
55938         Remove --assume-autoconf option handling.
55939         (autoconf_minversion): Determine from the contents of configure.ac.
55940         (func_import): Remove autoconf_minversion handling.
55941         Suggested by Eric Blake.
55942
55943 2006-07-29  Bruno Haible  <bruno@clisp.org>
55944
55945         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
55946
55947 2006-07-29  Bruno Haible  <bruno@clisp.org>
55948
55949         * config/srclist.txt (*setenv.[ch]): Remove rules.
55950
55951 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55952
55953         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
55954
55955 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55956
55957         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
55958         arpa/inet.h.
55959
55960 2006-07-28  Simon Josefsson  <jas@extundo.com>
55961
55962         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
55963         * modules/inet_pton (Depends-on): Likewise.
55964
55965 2006-07-28  Simon Josefsson  <jas@extundo.com>
55966
55967         * m4/netinet_in_h.m4: New file.
55968
55969 2006-07-28  Simon Josefsson  <jas@extundo.com>
55970
55971         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
55972         #include's.
55973
55974 2006-07-28  Simon Josefsson  <jas@extundo.com>
55975
55976         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
55977         #include's.
55978
55979 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
55980
55981         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
55982         setgid on directories only if they set these bits.
55983         * lib/modechange.h: Remove obsolete comment about masks.
55984
55985 2006-07-28  Eric Blake  <ebb9@byu.net>
55986
55987         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
55988         macro expansion.
55989
55990 2006-07-28  Bruno Haible  <bruno@clisp.org>
55991
55992         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
55993
55994 2006-07-28  Bruno Haible  <bruno@clisp.org>
55995
55996         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
55997
55998 2006-07-28  Bruno Haible  <bruno@clisp.org>
55999
56000         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56001         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56002         Define fallbacks.
56003         Avoids link error on FreeBSD 4.x.
56004         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56005
56006         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
56007         encoding.
56008         * lib/mbswidth.c (iswcntrl): Likewise.
56009
56010 2006-07-27  Bruno Haible  <bruno@clisp.org>
56011
56012         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
56013         test.
56014
56015 2006-07-27  Bruno Haible  <bruno@clisp.org>
56016
56017         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
56018         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
56019         defined.
56020
56021 2006-07-26  Eric Blake  <ebb9@byu.net>
56022
56023         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
56024
56025 2006-07-26  Eric Blake  <ebb9@byu.net>
56026
56027         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
56028         like mingw that lack mkstemp.
56029         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
56030         avoid compilation warning on mingw.
56031
56032 2006-07-26  Bruno Haible  <bruno@clisp.org>
56033
56034         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
56035         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
56036         INT_FAST*_MIN, INTPTR_MIN.
56037
56038 2006-07-25  Bruno Haible  <bruno@clisp.org>
56039
56040         * modules/version-etc (Depends-on): Add stdarg.
56041
56042 2006-07-25  Bruno Haible  <bruno@clisp.org>
56043
56044         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
56045         complex commands.
56046
56047 2006-07-25  Bruno Haible  <bruno@clisp.org>
56048
56049         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
56050         defined in <stdarg.h> or config.h.
56051
56052 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
56053
56054         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
56055         (gl_STDIO_SAFER): Remove.
56056
56057 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
56058
56059         * MODULES.html.sh (File stream based Input/Output):
56060         Add fopen-safer, tmpfile-safer; remove stdio-safer.
56061         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
56062         * modules/fopen-safer, modules/tmpfile-safer: New files.
56063         * modules/stdio-safer: Remove.
56064
56065 2006-07-24  Bruno Haible  <bruno@clisp.org>
56066
56067         * modules/tmpdir: New file.
56068         * MODULES.html.sh (File system functions): Add it.
56069
56070 2006-07-24  Bruno Haible  <bruno@clisp.org>
56071
56072         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
56073         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
56074
56075 2006-07-24  Bruno Haible  <bruno@clisp.org>
56076
56077         * modules/clean-temp: New file.
56078
56079 2006-07-24  Bruno Haible  <bruno@clisp.org>
56080
56081         * m4/tmpdir.m4: New file, from GNU gettext.
56082
56083 2006-07-24  Bruno Haible  <bruno@clisp.org>
56084
56085         * lib/tmpdir.h: New file, from GNU gettext.
56086         * lib/tmpdir.c: New file, from GNU gettext.
56087
56088 2006-07-24  Bruno Haible  <bruno@clisp.org>
56089
56090         * lib/clean-temp.h: New file, from GNU gettext.
56091         * lib/clean-temp.c: New file, from GNU gettext.
56092
56093 2006-07-23  Eric Blake  <ebb9@byu.net>
56094
56095         * modules/stdio-safer (Files): Add tmpfile-safer.c.
56096         (Depends-on): Add binary-io.
56097
56098 2006-07-23  Eric Blake  <ebb9@byu.net>
56099
56100         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
56101
56102 2006-07-23  Eric Blake  <ebb9@byu.net>
56103
56104         * lib/tmpfile-safer.c: New file.
56105         * lib/stdio-safer.h (fopen_safer): Add prototype.
56106         * lib/stdio--.h (tmpfile): Make safer.
56107
56108 2006-07-23  Bruno Haible  <bruno@clisp.org>
56109
56110         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
56111         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
56112         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
56113         gl_linked_remove_at): Use it.
56114
56115 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56116         and Simon Josefsson <jas@extundo.com>
56117
56118         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
56119
56120         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
56121
56122 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56123
56124         * modules/close-stream: New file.
56125         * modules/closeout (Description): Make it clear that it exits
56126         with a diagnostic on error.
56127         (Depends-on): Add close-stream.  Remove fpending, stdbool.
56128         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
56129
56130 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56131
56132         * m4/close-stream.m4: New file.
56133
56134 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56135
56136         * lib/close-stream.c, lib/close-stream.h: New files.
56137
56138 2006-07-22  Bruno Haible  <bruno@clisp.org>
56139
56140         Merge from GNU gettext 0.15.
56141
56142         2006-05-01  Bruno Haible  <bruno@clisp.org>
56143
56144                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
56145
56146         2006-07-22  Bruno Haible  <bruno@clisp.org>
56147
56148                 * modules/javaversion: New file.
56149                 * MODULES.html.sh (Java): Add javaversion.
56150
56151         2006-03-12  Bruno Haible  <bruno@clisp.org>
56152
56153                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
56154
56155         2005-12-04  Bruno Haible  <bruno@clisp.org>
56156
56157                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
56158                 (untested).
56159
56160         2006-06-21  Bruno Haible  <bruno@clisp.org>
56161
56162                 Avoid warnings from recent versions of mcs.
56163                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
56164                 -o, -L, -r any more. Use options documented since mcs-1.0
56165                 instead. Similarly for -g.
56166
56167         2005-12-04  Bruno Haible  <bruno@clisp.org>
56168
56169                 * build-aux/csharpcomp.sh.in: Suffix for resources is
56170                 .resources, not .resource.
56171
56172         2005-07-09  Bruno Haible  <bruno@clisp.org>
56173
56174                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
56175                 add a .dll suffix.
56176                 Reported by Mark Junker <mjscod@gmx.de>.
56177
56178         2006-07-22  Bruno Haible  <bruno@clisp.org>
56179
56180                 * modules/gettext: Upgrade to gettext-0.15.
56181                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
56182                 m4/visibility.m4.
56183                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
56184
56185 2006-07-22  Bruno Haible  <bruno@clisp.org>
56186
56187         Merge from GNU gettext 0.15.
56188
56189         2006-03-25  Bruno Haible  <bruno@clisp.org>
56190
56191                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
56192
56193         2006-07-21  Bruno Haible  <bruno@clisp.org>
56194
56195                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
56196                 "1.1".
56197
56198         2006-05-09  Bruno Haible  <bruno@clisp.org>
56199
56200                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
56201                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
56202                 for the conftestver execution.
56203
56204         2006-05-01  Bruno Haible  <bruno@clisp.org>
56205
56206                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
56207                 optional target-version argument. Verify that the compiler
56208                 groks source of the specified source-version, or add -source
56209                 option as necessary. Verify that the compiler produces
56210                 bytecode in the specified target-version, or add -target and
56211                 -source options as necessary. Make the result of the test
56212                 available as variable CONF_JAVAC. Also log error output in
56213                 config.log.
56214
56215         2006-03-11  Bruno Haible  <bruno@clisp.org>
56216
56217                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
56218
56219         2006-05-09  Bruno Haible  <bruno@clisp.org>
56220
56221                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
56222                 CLASSPATH_SEPARATOR to a semicolon.
56223
56224         2006-03-12  Bruno Haible  <bruno@clisp.org>
56225
56226                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
56227                 available as variable CONF_JAVA, for subsequent autoconf
56228                 tests. Also log error output in config.log.
56229
56230         2006-07-19  Bruno Haible  <bruno@clisp.org>
56231
56232                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
56233                 that getline works on glibc2 systems. Needed to avoid trouble
56234                 in relocatable.c.
56235                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
56236
56237         2005-12-04  Bruno Haible  <bruno@clisp.org>
56238
56239                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
56240                 launcher (untested).
56241
56242         2005-12-04  Bruno Haible  <bruno@clisp.org>
56243
56244                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
56245
56246         2006-07-22  Bruno Haible  <bruno@clisp.org>
56247
56248                 * gettext.m4: Update from GNU gettext-0.15.
56249                 * nls.m4: Likewise.
56250                 * po.m4: Likewise.
56251                 * inttypes-pri.m4: Likewise.
56252                 * inttypes-h.m4: Renamed from inttypes.m4.
56253                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
56254
56255 2006-07-22  Bruno Haible  <bruno@clisp.org>
56256
56257         Merge from GNU gettext 0.15.
56258
56259         2005-07-05  Bruno Haible  <bruno@clisp.org>
56260
56261                 * printf-args.c (printf_fetchargs): Work around broken
56262                 definition of wint_t on mingw.
56263
56264         2005-02-12  Bruno Haible  <bruno@clisp.org>
56265
56266                 * xallocsa.h: Add extern "C" for C++.
56267
56268         2006-05-17  Bruno Haible  <bruno@clisp.org>
56269
56270                 Cygwin portability.
56271                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
56272
56273         2006-04-30  Bruno Haible  <bruno@clisp.org>
56274
56275                 * progreloc.c: Include <mach-o/dyld.h> if available.
56276                 (find_executable): Use _NSGetExecutablePath when possible.
56277
56278         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56279
56280                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
56281                 function.
56282
56283         2005-12-29  Bruno Haible  <bruno@clisp.org>
56284
56285                 * progreloc.c (set_program_name_and_installdir): Fix
56286                 compilation error.
56287
56288         2005-12-04  Bruno Haible  <bruno@clisp.org>
56289
56290                 Cygwin portability.
56291                 * progreloc.c: Include <windows.h> also on Cygwin.
56292                 (find_executable): Add support for Cygwin.
56293                 (set_program_name_and_installdir): Handle also platforms with
56294                 nonempty EXEEXT.
56295
56296         2006-07-11  Bruno Haible  <bruno@clisp.org>
56297
56298                 * javacomp.c: Fix a comment.
56299                 Reported by Jim Meyering.
56300
56301         2006-04-30  Bruno Haible  <bruno@clisp.org>
56302
56303                 * javacomp.h (compile_java_class): Add source_version,
56304                 target_version arguments.
56305                 * javacomp.c: Rewritten to choose only a compiler that
56306                 respects the specified source_version and target_version.
56307
56308         2006-06-27  Bruno Haible  <bruno@clisp.org>
56309
56310                 Assume correct S_ISDIR macro.
56311                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
56312
56313         2006-07-22  Bruno Haible  <bruno@clisp.org>
56314
56315                 * javaversion.h: New file, from GNU gettext.
56316                 * javaversion.c: New file, from GNU gettext.
56317                 * javaversion.java: New file, from GNU gettext.
56318                 * javaversion.class: New file, from GNU gettext.
56319
56320         2006-05-17  Bruno Haible  <bruno@clisp.org>
56321
56322                 Cygwin portability.
56323                 * javaexec.c (execute_java_class): Test for jview program
56324                 also on Cygwin.
56325
56326         2006-04-09  Bruno Haible  <bruno@clisp.org>
56327
56328                 * fatal-signal.c: Don't include string.h.
56329                 (at_fatal_signal): Use a copying loop instead of memcpy.
56330
56331         2005-12-04  Bruno Haible  <bruno@clisp.org>
56332
56333                 * csharpexec.c: Add support for 'clix' launcher (untested).
56334                 (execute_csharp_using_sscli): New function.
56335                 (execute_csharp_program): Call it.
56336
56337         2006-06-21  Bruno Haible  <bruno@clisp.org>
56338
56339                 Avoid warnings from recent versions of mcs.
56340                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
56341                 -o, -L, -r any more. Use options documented since mcs-1.0
56342                 instead. Similarly for -g.
56343
56344         2005-07-09  Bruno Haible  <bruno@clisp.org>
56345
56346                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
56347                 add a .dll suffix.
56348                 Reported by Mark Junker <mjscod@gmx.de>.
56349
56350         2006-06-17  Bruno Haible  <bruno@clisp.org>
56351
56352                 * config.charset: Update for NetBSD 3.0.
56353
56354         2006-05-17  Bruno Haible  <bruno@clisp.org>
56355
56356                 Cygwin portability.
56357                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
56358
56359         2006-05-16  Bruno Haible  <bruno@clisp.org>
56360
56361                 * localcharset.c [CYGWIN]: Include <windows.h>.
56362                 (get_charset_aliases): For Cygwin, return the same CPxxx
56363                 aliases list as under WIN32.
56364                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
56365                 the environment variables. Fall back to GetACP().
56366
56367         2006-04-05  Bruno Haible  <bruno@clisp.org>
56368
56369                 * config.charset: Update Juan Manuel Guerrero's address.
56370
56371         2005-02-12  Bruno Haible  <bruno@clisp.org>
56372
56373                 * allocsa.h: Add extern "C" for C++.
56374
56375         2005-02-10  Bruno Haible  <bruno@clisp.org>
56376
56377                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
56378                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
56379
56380         2006-07-22  Bruno Haible  <bruno@clisp.org>
56381
56382                 * gettext.h: Update to GNU gettext-0.15.
56383
56384 2006-07-22  Bruno Haible  <bruno@clisp.org>
56385
56386         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
56387         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
56388         lib-prefix.m4, longdouble.m4, ssize_t.m4.
56389
56390 2006-07-21  Eric Blake  <ebb9@byu.net>
56391
56392         * modules/stdlib-safer: New file.
56393         * MODULES.html.sh (File stream based Input/Output): Add
56394         stdlib-safer.
56395
56396 2006-07-21  Eric Blake  <ebb9@byu.net>
56397
56398         * lib/stdlib-safer.h: New file from coreutils, required by
56399         stdlib--.h.
56400
56401 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
56402
56403         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
56404
56405 2006-07-20  Bruno Haible  <bruno@clisp.org>
56406
56407         * gnulib-tool: Recognize new option --assume-autoconf.
56408         (autoconf_minversion): New variable.
56409         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
56410
56411 2006-07-20  Bruno Haible  <bruno@clisp.org>
56412
56413         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
56414
56415 2006-07-19  Derek R. Price  <derek@ximbiot.com>
56416
56417         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
56418         Reindent and repaginate.
56419
56420 2006-07-19  Derek Price  <derek@ximbiot.com>
56421
56422         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
56423         Correct grammar.
56424
56425 2006-07-17  Bruno Haible  <bruno@clisp.org>
56426
56427         * modules/list: New file.
56428         * modules/array-list: New file.
56429         * modules/carray-list, modules/carray-list-tests: New files.
56430         * modules/linked-list, modules/linked-list-tests: New files.
56431         * modules/avltree-list, modules/avltree-list-tests: New files.
56432         * modules/rbtree-list, modules/rbtree-list-tests: New files.
56433         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
56434         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
56435         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
56436         * modules/oset: New file.
56437         * modules/array-oset: New file.
56438         * modules/avltree-oset, modules/avltree-oset-tests: New files.
56439         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
56440         * tests/test-carray_list.c: New file.
56441         * tests/test-linked_list.c: New file.
56442         * tests/test-avltree_list.c: New file.
56443         * tests/test-rbtree_list.c: New file.
56444         * tests/test-linkedhash_list.c: New file.
56445         * tests/test-avltreehash_list.c: New file.
56446         * tests/test-rbtreehash_list.c: New file.
56447         * tests/test-avltree_oset.c: New file.
56448         * tests/test-rbtree_oset.c: New file.
56449         * MODULES.html.sh (Container data structures): New section.
56450
56451 2006-07-17  Bruno Haible  <bruno@clisp.org>
56452
56453         * m4/gl_list.m4: New file.
56454
56455 2006-07-17  Bruno Haible  <bruno@clisp.org>
56456
56457         * lib/gl_list.h: New file.
56458         * lib/gl_list.c: New file.
56459         * lib/gl_array_list.h: New file.
56460         * lib/gl_array_list.c: New file.
56461         * lib/gl_carray_list.h: New file.
56462         * lib/gl_carray_list.c: New file.
56463         * lib/gl_linked_list.h: New file.
56464         * lib/gl_linked_list.c: New file.
56465         * lib/gl_anylinked_list1.h: New file.
56466         * lib/gl_anylinked_list2.h: New file.
56467         * lib/gl_avltree_list.h: New file.
56468         * lib/gl_avltree_list.c: New file.
56469         * lib/gl_anyavltree_list1.h: New file.
56470         * lib/gl_anyavltree_list2.h: New file.
56471         * lib/gl_rbtree_list.h: New file.
56472         * lib/gl_rbtree_list.c: New file.
56473         * lib/gl_anyrbtree_list1.h: New file.
56474         * lib/gl_anyrbtree_list2.h: New file.
56475         * lib/gl_anytree_list1.h: New file.
56476         * lib/gl_anytree_list2.h: New file.
56477         * lib/gl_linkedhash_list.h: New file.
56478         * lib/gl_linkedhash_list.c: New file.
56479         * lib/gl_anyhash_list1.h: New file.
56480         * lib/gl_anyhash_list2.h: New file.
56481         * lib/gl_avltreehash_list.h: New file.
56482         * lib/gl_avltreehash_list.c: New file.
56483         * lib/gl_rbtreehash_list.h: New file.
56484         * lib/gl_rbtreehash_list.c: New file.
56485         * lib/gl_anytreehash_list1.h: New file.
56486         * lib/gl_anytreehash_list2.h: New file.
56487
56488         * lib/gl_oset.h: New file.
56489         * lib/gl_oset.c: New file.
56490         * lib/gl_array_oset.h: New file.
56491         * lib/gl_array_oset.c: New file.
56492         * lib/gl_avltree_oset.h: New file.
56493         * lib/gl_avltree_oset.c: New file.
56494         * lib/gl_rbtree_oset.h: New file.
56495         * lib/gl_rbtree_oset.c: New file.
56496         * lib/gl_anytree_oset.h: New file.
56497
56498 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56499
56500         * m4/mkancesdirs.m4: New file.
56501         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
56502         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
56503         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
56504         it.
56505
56506 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56507
56508         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
56509         * lib/mkancesdirs.h: New files.
56510         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
56511         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
56512         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
56513         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
56514         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
56515         callers changed.  Revamp internals significantly, by not
56516         attempting to create directories that are temporarily more
56517         permissive than the final results.  Do not attempt to use
56518         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
56519         This removes some race conditions, fixes some bugs, and simplifies
56520         things.  Use new dirchownmod function to do owner and mode changes.
56521         * lib/mkdir-p.h: Likewise.
56522         * lib/modechange.c (octal_to_mode): New function.
56523         (struct mode_change): New member mentioned.
56524         (make_node_op_equals): New arg mentioned.  All callers changed.
56525         (mode_compile): Keep track of which mode bits the user has explicitly
56526         mentioned.
56527         (mode_adjust): New arg DIR, so that we implement the X op correctly.
56528         New arg PMODE_BITS, to keep track of which mode bits the user
56529         mentioned; it treats S_ISUID and S_ISGID speciall.
56530         All callers changed.
56531         * lib/modechange.h: Likewise.
56532
56533 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
56534
56535         * MODULES.html.sh: Add mkancestors.
56536         * modules/mkancesdirs: New module.
56537         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
56538         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
56539         The chdir-safer and afs files are now orphans; I'll remove them
56540         unless someone speaks up.
56541         Add lib/dirchownmod.c, lib/dirchownmod.h.
56542         (Depends-on): Remove alloca, chown, save-cwd, dirname.
56543         Add lchown, mkancesdirs.
56544         (Maintainer): Add self.
56545
56546 2006-07-15  Karl Berry  <karl@gnu.org>
56547
56548         * gnulib-tool: help message wording/arrangement.
56549
56550 2006-07-14  Simon Josefsson  <jas@extundo.com>
56551
56552         * doc/gnulib.texi (Libtool and Windows): New section.
56553
56554 2006-07-12  Simon Josefsson  <jas@extundo.com>
56555
56556         * modules/gendocs (License): Fix license, approved by Karl.
56557
56558 2006-07-12  Eric Blake  <ebb9@byu.net>
56559
56560         * MODULES.html.sh: Add gendocs.
56561
56562 2006-07-11  Eric Blake  <ebb9@byu.net>
56563
56564         * modules/fdl: New module, to install doc/fdl.texi.
56565         * MODULES.html.sh: Add new section for documentation modules.
56566         * gnulib-tool: Avoid space-tab.
56567         (--doc-base): New option, to manage files from doc.
56568
56569 2006-07-11  Eric Blake  <ebb9@byu.net>
56570
56571         * m4/absolute-header.m4: Fix comments to match recent change.
56572
56573 2006-07-11  Eric Blake  <ebb9@byu.net>
56574
56575         * gnulib-tool: List --doc-base before --tests-base.
56576
56577 2006-07-11  Derek R. Price  <derek@ximbiot.com>
56578
56579         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
56580
56581 2006-07-11  Bruno Haible  <bruno@clisp.org>
56582
56583         * README: Mention where to put documentation.
56584
56585 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56586
56587         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
56588
56589 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56590
56591         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
56592         to stdint.m4.
56593
56594 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
56595
56596         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
56597         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
56598         "no/such/file/stdint.h" when there is no such file, so that
56599         the resulting C code can be parsed by dodgy compilers.
56600         Problems reported by Bob Proulx.
56601
56602 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56603
56604         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
56605         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56606         macros into the GNU _D_EXACT_NAMLEN.
56607         * lib/savedir.c:  Likewise.
56608         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
56609
56610 2006-07-10  Derek R. Price  <derek@ximbiot.com>
56611         and Paul Eggert  <eggert@cs.ucla.edu>
56612
56613         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
56614         * m4/savedir.m4:
56615         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
56616         macros into the GNU _D_EXACT_NAMLEN.
56617
56618 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56619
56620         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
56621         around the absolute name, to work around a problem with the HP-UX
56622         11.23 native C compiler, reported by Bob Proulx.
56623
56624 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56625
56626         * doc/maintain.texi, make-stds.texi: Sync from
56627         <http://savannah.gnu.org/projects/gnustandards>.
56628
56629 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
56630
56631         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
56632
56633 2006-07-09  Jim Meyering  <jim@meyering.net>
56634
56635         * m4/glob.m4: Remove a doubled word in a comment.
56636
56637 2006-07-09  Jim Meyering  <jim@meyering.net>
56638
56639         * lib/argp-pv.c: Remove a doubled word in a comment.
56640         * lib/check-version.c (check_version): Likewise.
56641         * lib/javacomp.c (compile_java_class): Likewise.
56642
56643 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56644
56645         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
56646         for the benefit of people using Autoconf 2.60.  If you want to
56647         support older Autoconf versions you can copy m4/onceonly_2_57.m4
56648         (or m4/onceonly.m4, if pre-2.57) manually.
56649
56650 2006-07-08  Jim Meyering  <jim@meyering.net>
56651
56652         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
56653         comment.
56654         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
56655         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
56656         comment.
56657
56658 2006-07-08  Jim Meyering  <jim@meyering.net>
56659
56660         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
56661
56662 2006-07-07  Simon Josefsson  <jas@extundo.com>
56663
56664         * tests/test-crc.c: Change expected crc value, the test vector
56665         were probably computed using the old broken crc.c?
56666
56667 2006-07-06  Simon Josefsson  <jas@extundo.com>
56668
56669         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
56670         now the canonical place for the M4 file).
56671
56672         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
56673         from the sys_socket dependency now.
56674
56675         * modules/inet_pton (Files): Ditto.
56676
56677         * modules/inet_ntop (Files): Ditto.
56678
56679 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56680
56681         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
56682         not gl_PREREQ_GETUSERSHELL.
56683
56684 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56685
56686         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
56687         with only one argument, for Autoconf 2.60.
56688         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
56689         expand to nothing, so add a shell command to avoid syntax error.
56690         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
56691
56692 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56693
56694         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
56695
56696 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56697
56698         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
56699         no longer needed.  Check for isblank decl.
56700         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
56701         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
56702         of existence.
56703
56704 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56705
56706         * lib/getloadavg.c: Use __VMS, not VMS.
56707         * lib/getopt.c: Likewise.
56708         * lib/getpagesize.h: Likewise.
56709         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
56710         and probably does not work.
56711
56712 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
56713
56714         * lib/.cppi-disable: Add wcwidth.
56715         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
56716         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
56717         (ISGRAPH): Remove.  All uses changed to isgraph.
56718         (FOLD) [!defined _LIBC]: Remove special case.
56719         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
56720         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
56721         HAVE_ISBLANK.
56722         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
56723         case.
56724
56725 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
56726
56727         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
56728         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
56729         brackets.  Other minor changes to suppress some compiler
56730         warnings.
56731
56732 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56733         and Paul Eggert  <eggert@cs.ucla.edu>
56734
56735         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
56736         of invoking obsolescent AC_HEADER_DIRENT macro.
56737         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
56738         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
56739         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
56740         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
56741         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
56742         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56743         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
56744         * m4/readdir.m4: Remove; no longer needed.
56745
56746 2006-07-06  Derek R. Price  <derek@ximbiot.com>
56747         and Paul Eggert  <eggert@cs.ucla.edu>
56748
56749         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
56750         Don't worry about this obsolete case any more.
56751         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
56752         directories.
56753         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
56754         worry about this obsolete case any more.
56755         * lib/fts.c: Likewise.
56756         * lib/getcwd.c: Likewise.
56757         * lib/glob.h: Likewise.
56758         * lib/savedir.c: Likewise.
56759
56760 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56761
56762         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
56763         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
56764         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
56765         needed.
56766         All uses removed.
56767         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56768         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56769         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
56770         needed.
56771         * m4/getdate.m4 (gl_GETDATE): Likewise.
56772         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
56773         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
56774         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
56775         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56776         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
56777         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56778         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
56779         needed.
56780
56781 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
56782
56783         * lib/memcasecmp.c: Include <limits.h>.
56784         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
56785         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
56786         Don't assume isdigit succeeds only on '0' through '9'.
56787
56788 2006-07-05  Eric Blake  <ebb9@byu.net>
56789
56790         * modules/getaddrinfo (Depends-on): Add snprintf.
56791
56792 2006-07-05  Eric Blake  <ebb9@byu.net>
56793
56794         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
56795         to avoid 'header present but could not be compiled' on cygwin.
56796
56797 2006-07-05  Eric Blake  <ebb9@byu.net>
56798
56799         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
56800         missing from netdb.h.
56801         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
56802
56803 2006-07-05  Derek R. Price  <derek@ximbiot.com>
56804
56805         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
56806         no longer needed.
56807         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
56808         * m4/getdate.m4 (gl_GETDATE): Likewise.
56809         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
56810         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
56811         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
56812         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
56813         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56814
56815 2006-07-05  Derek R. Price  <derek@ximbiot.com>
56816
56817         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
56818         All uses of is_space replaced by isspace.
56819         * lib/exit.h: Don't talk about STDC_HEADERS.
56820         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
56821         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
56822         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
56823         replaced by isprint etc.
56824         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
56825         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
56826         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
56827         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
56828         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
56829         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
56830
56831 2006-07-05  Bruno Haible  <bruno@clisp.org>
56832
56833         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
56834         the function exists, before testing against AIX.
56835         Reported by Martin Lambers <marlam@marlam.de>.
56836
56837 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
56838
56839         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
56840         From Mark D. Baushke.
56841
56842 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
56843
56844         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
56845         to the absolute name, not just one, to bypass Sun C 5.8's
56846         "warning: #include of /usr/include/... may be non-portable".
56847
56848 2006-07-04  Eric Blake  <ebb9@byu.net>
56849
56850         * modules/dirname-tests: New test module.
56851         * tests/test-dirname.c: New file, replacing dirname.c
56852         TEST_DIRNAME section that was recently deleted.
56853
56854 2006-07-04  Bruno Haible  <bruno@clisp.org>
56855
56856         Assume ANSI C header files and <ctype.h> functions.
56857         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
56858         (mbsnwidth): Use isprint, iscntrl instead.
56859
56860 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56861
56862         Merge from coreutils.
56863         * MODULES.html.sh: Add xstrtold.
56864         * modules/xstrtold: New file.
56865         * modules/cycle-check (Files): Add lib/same-inode.h.
56866         * modules/dirname (Files): Add m4/double-slash-root.m4.
56867         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
56868         * modules/mkdir-p (Files): Add lib/same-inode.h.
56869         * modules/same (Files): Add lib/same-inode.h.
56870
56871 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56872
56873         * m4/absolute-header.m4: Renamed from full-header-path.m4.
56874         This is to keep the terminology clean; POSIX talks about
56875         "absolute pathnames", not "full pathnames", but the GNU
56876         Coding Standards say to use "path" for something else;
56877         so use "absolute" to keep both sides happy.
56878         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
56879         Set gl_absolute_header, not gl_full_header_path.
56880         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
56881         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
56882         All uses changed.
56883
56884         Merge from coreutils.
56885
56886         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
56887
56888         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
56889         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
56890         want to require the building of c-strtod.o.
56891         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
56892         needs -lm directly.
56893         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
56894
56895         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
56896
56897         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
56898         --as-needed option if available.  Problem reported by Albert Chin in
56899         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
56900         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
56901         cc merely issues a bunch of annoying warnings for --as-needed
56902         (this problem was reported by Bob Proulx).  Also, try linking with
56903         -lm to detect a bug in binutils 2.16 (this problem was reported
56904         by Ralf Wildenhues).
56905
56906         2006-06-18  Jim Meyering  <jim@meyering.net>
56907
56908         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
56909         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
56910         macro.
56911         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
56912         also check for glibc-2.4's abort-inducing bug.
56913
56914         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
56915         Low-probability clean-up should be to use rmdir to get rid of
56916         the just-created directory, not unlink.
56917
56918         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
56919         configure fail, and request a bug report to inform us about it.
56920         Add a comment that, barring reports to the contrary, in 2007 we'll
56921         assume ftruncate is universally available.
56922
56923         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56924
56925         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
56926
56927         2006-03-12  Jim Meyering  <jim@meyering.net>
56928
56929         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
56930         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
56931         * m4/same.m4 (gl_SAME): Likewise.
56932         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
56933
56934         2006-03-11  Eric Blake  <ebb9@byu.net>
56935
56936         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
56937         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
56938         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
56939         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
56940
56941 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
56942
56943         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
56944         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
56945         reported by Mark D. Baushke, one in
56946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
56947
56948         Merge from coreutils.
56949
56950         * lib/.cppi-disable: Add stdint_.h.
56951         * lib/.cvsignore: Add stdint.h.
56952
56953         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
56954
56955         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
56956         both double and long double versions.
56957         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
56958         * lib/xstrtold.c: New file.
56959         * lib/xstrtod.h (xstrtold): New decl.
56960
56961         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
56962
56963         * lib/filemode.c (setst): Remove.
56964         (strmode): Rewrite to avoid setst.  This makes the code shorter,
56965         (arguably) clearer, and the generated code is a bit smaller on my
56966         Debian GNU/Linux stable x86 host.
56967
56968         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
56969
56970         * lib/filemode.c: Include "filemode.h" first, to test the interface.
56971         Assume that filemode.h includes sys/types.h and sys/stat.h.
56972         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
56973         (ftypelet): Reorder to put common cases first, for efficiency.
56974         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
56975         to do 'M'.
56976         (strmode): Renamed from mode_string, and now stores 12 bytes instead
56977         of 10, for compatibility with FreeBSD.  All callers changed.
56978         (filemodestring): Now stores 12 bytes instead of 10, and sets file
56979         types that can't be deduced solely from st_mode.  First arg is now a
56980         const pointer.
56981         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
56982         (strmode): Renamed from mode_string.
56983         (filemodestring): New decl.
56984         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
56985         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
56986         needed.
56987         (S_ISPORT, S_ISWHT): New macros, if not already defined.
56988
56989         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56990
56991         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
56992         fsusage.h now does that.  Include fsusage.h first, to test interface.
56993         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
56994         at most one method (the old code could have generated decls that
56995         didn't conform to C89, not that this was ever exercised).
56996         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
56997
56998         2006-03-19  Jim Meyering  <jim@meyering.net>
56999
57000         Work even in a chroot where d_ino values for entries in "/"
57001         don't match the stat.st_ino values for the same names.
57002         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
57003         number, iterate through all entries again, using lstat instead.
57004         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
57005         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
57006
57007         * lib/getcwd.c (__getcwd): Clarify a comment.
57008         Use memcpy in place of a call to strcpy.
57009
57010         2006-03-12  Jim Meyering  <jim@meyering.net>
57011
57012         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
57013         matches that of the current directory (which we're about to chdir ".."
57014         out of), then save the dev-ino of the parent, instead.
57015
57016         * lib/same-inode.h (SAME_INODE): New file/macro.
57017         * lib/chdir-safer.c (SAME_INODE): Remove definition.
57018         Include "same-inode.h", instead.
57019         * lib/same.c: Likewise.
57020         * lib/cycle-check.h: Include "same-inode.h".
57021         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
57022         * lib/cycle-check.c (SAME_INODE): Remove definition.
57023         * lib/root-dev-ino.h: Include "same-inode.h".
57024
57025         2006-03-11  Eric Blake  <ebb9@byu.net>
57026
57027         * lib/same.c (same_name): s/base_name/last_component/
57028         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
57029         * lib/filenamecat.c (file_name_concat): Likewise.
57030
57031         2006-03-11  Eric Blake  <ebb9@byu.net>,
57032                     Paul Eggert  <eggert@cs.ucla.edu>
57033
57034         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
57035         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
57036         drive prefix.
57037         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
57038         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
57039         (last_component): New method.
57040         * lib/dirname.c (dir_len): Determine when drive letters need a
57041         subsequent slash.  Preserve // when it is special.
57042         (dir_name): Don't append dot when drive letter is absolute.
57043         [TEST_DIRNAME]: Move into a full-blown gnulib test.
57044         * lib/basename.c (base_name): New semantics - malloc the result.
57045         Preserve // when it is special.  Preserve relative files that look
57046         like drive letters.
57047         (base_len): Preserve // when it is special.
57048         (last_component): New method, similar to old base_name semantics.
57049         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
57050         base_name.  Strip redundant slashes from ///.
57051
57052 2006-07-03  Jim Meyering  <jim@meyering.net>
57053
57054         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
57055         macro is used before the first cycle_check call.
57056
57057 2006-07-03  Eric Blake  <ebb9@byu.net>
57058
57059         * modules/dirname (Depends-on): Add xstrndup.
57060
57061 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57062
57063         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
57064         test cases, so that config.log is a bit easier to follow.
57065
57066 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57067
57068         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
57069         both are 64 bits, since this seems to be the tradition, and this
57070         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
57071         we ever run into a host that prefers long long to long in this
57072         case, we'll need another configure-time test.  Problem reported by
57073         Jim Meyering.
57074
57075 2006-07-02  Eric Blake  <ebb9@byu.net>
57076
57077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
57078
57079 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57080
57081         * modules/inttypes (Depends-on): No longer depends on stdint.
57082         * modules/stdint (Description): Say more about assumptions.
57083         Say that the fast types might differ.  Say macros are used.
57084         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
57085         (Makefile.am): Revise list of substituted symbols to match
57086         new stdint.m4.
57087         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
57088         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
57089         * tests/test-stdint.c (verify_same_types)
57090         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
57091         the code conforms to C99/C89.
57092         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
57093         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
57094
57095 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57096
57097         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
57098         but fix a bug, by requiring at least 64 bits.
57099         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57100         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
57101         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
57102         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
57103
57104         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
57105         changes.  Make 2.59 a prerequisite.  Check and substitute for
57106         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
57107         inttypes.h.  Do not use special include files; just use the
57108         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
57109         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
57110         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
57111         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
57112         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
57113         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
57114         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
57115         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
57116         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
57117         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
57118         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
57119         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
57120         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
57121         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
57122         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
57123         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
57124         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
57125         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
57126         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
57127         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
57128         WINT_MAX.  Check for C99 conformance more strictly, by detecting
57129         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
57130         not check for things that C99 does not require, e.g., int8_t.  If
57131         a test isn't needed unless <stdint.h> isn't working, and is
57132         unlikely to be needed for any other reason, then don't do it
57133         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
57134         size_t, since we assume C89 freestanding at least.  Do not check
57135         for sig_atomic_t, wchar_t, or wint_t, since the code now does
57136         the right thing even if the types are not defined.  Instead use:
57137         (gl_STDINT_TYPE_PROPERTIES): New macro.
57138         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
57139         testing whether <sys/types.h> clashes, as Autoconf does this for
57140         us now.  All uses removed.
57141         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
57142         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
57143         (gl_CHECK_TYPE_SAME):
57144         Remove; no longer needed.
57145         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
57146         exists, since we'll return 0 anyway in that case.
57147         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
57148
57149 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57150
57151         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
57152         possible collision with system files.
57153         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
57154         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
57155         WCHAR_MIN and WCHAR_MAX in this case.
57156         (<stddef.h>): Do not include; no longer needed.
57157         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
57158         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
57159         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
57160         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
57161         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
57162         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
57163         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
57164         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
57165         !defined(__c99))]: Include in this case too, since it's harmless
57166         now.
57167         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
57168         dangerous to do so.
57169         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
57170         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
57171         (_STDINT_MIN, _STDINT_MAX): New macros.
57172         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
57173         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
57174         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
57175         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
57176         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
57177         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
57178         macros, not typedefs; this simplifies things quite a bit.
57179         Use long int for all types narrower than int64_t.
57180         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
57181         Define in terms of long long int or int64_t or long int,
57182         not int64_t or int32_t.  This saves some compile-time testing.
57183         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
57184         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
57185         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
57186         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
57187         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
57188         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
57189         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
57190         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
57191         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
57192         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
57193         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
57194         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
57195         undef any previous version and define our own version, for
57196         simplicity and consistency with the new macros for types.
57197         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
57198         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
57199         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
57200         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
57201         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
57202         @WINT_T_SUFFIX@ to keep things simple here.
57203         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
57204         Simplify by assuming typical 8/16/32/64 host, since we're
57205         already doing that elsewhere anyway.
57206         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
57207         and assume long long int is 64 bits if available.  This
57208         speeds up 'configure'.
57209
57210 2006-07-01  Eric Blake  <ebb9@byu.net>
57211
57212         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
57213         Reported by Andreas Buening.
57214
57215 2006-07-01  Eric Blake  <ebb9@byu.net>
57216
57217         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
57218
57219 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
57220
57221         * lib/getaddrinfo.c: fixed typo
57222
57223 2006-06-29  Jim Meyering  <jim@meyering.net>
57224
57225         * modules/strftime (Maintainer): Add my name, since with the
57226         FPRINTFTIME changes strftime.c has forked from glibc.
57227
57228 2006-06-29  Eric Blake  <ebb9@byu.net>
57229
57230         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
57231
57232 2006-06-29  Eric Blake  <ebb9@byu.net>
57233
57234         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
57235
57236 2006-06-29  Eric Blake  <ebb9@byu.net>
57237
57238         * lib/stat_.h: New file.
57239
57240 2006-06-29  Eric Blake  <ebb9@byu.net>
57241
57242         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
57243         unused static function.
57244
57245 2006-06-29  Eric Blake  <ebb9@byu.net>
57246
57247         * doc/functions.texi (Function Portability): Document missing lstat
57248         on mingw.
57249
57250 2006-06-29  Eric Blake  <ebb9@byu.net>
57251
57252         * MODULES.html.sh: Add sys_stat.
57253         * modules/sys_stat: New module.
57254         * modules/mkstemp (Depends-on): Add sys_stat.
57255
57256 2006-06-29  Derek R. Price  <derek@ximbiot.com>
57257
57258         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
57259
57260 2006-06-29  Derek R. Price  <derek@ximbiot.com>
57261
57262         * m4/c-bs-a.m4: Removed.
57263
57264 2006-06-29  Derek R. Price  <derek@ximbiot.com>
57265
57266         * lib/strftime.c: Assume strftime() exists.
57267
57268 2006-06-29  Derek Price  <derek@ximbiot.com>
57269
57270         * modules/c-bs-a: Removed - \a is C89.
57271         * MODULES.html.sh: Remove c-bs-a.
57272
57273 2006-06-29  Bruno Haible  <bruno@clisp.org>
57274
57275         * modules/wcwidth (License): Change to LGPL.
57276
57277 2006-06-28  Simon Josefsson  <jas@extundo.com>
57278
57279         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
57280         on _WIN32.
57281
57282         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
57283         getnameinfo.
57284
57285 2006-06-28  Simon Josefsson  <jas@extundo.com>
57286
57287         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
57288
57289 2006-06-28  Simon Josefsson  <jas@extundo.com>
57290
57291         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
57292         functions there.  It will succeed on Windows XP, but on Windows
57293         2000 and (presumably) earlier, it will fail, and use the internal
57294         re-implementation.
57295         (use_win32_p): New function.
57296         (getaddrinfo): Use strtoul on servname, to support numeric ports.
57297         Support AI_NUMERICSERV to disable getservbyname.
57298         (getnameinfo): New function, only supports
57299         NI_NUMERICHOST|NI_NUMERICSERV for now.
57300
57301         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
57302         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
57303         getnameinfo.
57304
57305 2006-06-28  Eric Blake  <ebb9@byu.net>
57306
57307         * modules/wcwidth: New file.
57308         * modules/mbchar (Depends-on): Add wcwidth.
57309         * modules/mbswidth (Depends-on): Add wcwidth.
57310         * MODULES.html.sh: Add wcwidth.
57311
57312 2006-06-28  Eric Blake  <ebb9@byu.net>
57313
57314         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
57315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
57316
57317 2006-06-28  Eric Blake  <ebb9@byu.net>
57318
57319         * lib/xvasprintf.h: Fix comments.
57320
57321 2006-06-28  Eric Blake  <ebb9@byu.net>
57322
57323         * lib/mbchar.h (wcwidth): Include wcwidth.h.
57324         * lib/mbswidth.c (wcwidth): Move from here...
57325         * lib/wcwidth.h: ...to this new file.
57326
57327 2006-06-28  Derek R. Price  <derek@ximbiot.com>
57328
57329         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
57330
57331         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
57332         it's obsolete.
57333         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
57334
57335 2006-06-28  Derek R. Price  <derek@ximbiot.com>
57336
57337         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
57338         Autoconf 2.60 says this stuff was obsolete.
57339
57340 2006-06-28  Bruno Haible  <bruno@clisp.org>
57341
57342         * modules/wcwidth (Files): Add m4/wchar_t.m4.
57343
57344 2006-06-28  Bruno Haible  <bruno@clisp.org>
57345
57346         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
57347         gt_TYPE_WCHAR_T.
57348
57349 2006-06-28  Bruno Haible  <bruno@clisp.org>
57350
57351         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
57352         declaration for wcwidth.
57353         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
57354
57355 2006-06-28  Bruno Haible  <bruno@clisp.org>
57356
57357         * lib/mkdtemp.c [MINGW]: Include <io.h>.
57358         (mkdir): Define using _mkdir.
57359
57360 2006-06-28  Bruno Haible  <bruno@clisp.org>
57361
57362         * lib/getaddrinfo.h: Fix POSIX URL.
57363         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
57364         _WIN32.
57365         (use_win32_p): Make static.
57366         (getaddrinfo): Reject service name if it is empty or does not consist
57367         solely of decimal digits, or if its value is > 65535.
57368         (getnameinfo): Remove useless casts.
57369
57370 2006-06-27  Simon Josefsson  <jas@extundo.com>
57371
57372         * modules/sys_select: New file, suggested by Bruno Haible, Paul
57373         Eggert and Martin Lambers.
57374
57375 2006-06-27  Simon Josefsson  <jas@extundo.com>
57376
57377         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
57378         Eggert and Martin Lambers.
57379
57380 2006-06-27  Bruno Haible  <bruno@clisp.org>
57381
57382         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
57383         result to 0, not to empty.
57384         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
57385
57386 2006-06-27  Bruno Haible  <bruno@clisp.org>
57387
57388         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
57389
57390 2006-06-26  Simon Josefsson  <jas@extundo.com>
57391
57392         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
57393         present.
57394
57395 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
57396
57397         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
57398         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
57399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
57400
57401 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
57402
57403         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
57404
57405 2006-06-26  Bruno Haible  <bruno@clisp.org>
57406
57407         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
57408
57409 2006-06-26  Bruno Haible  <bruno@clisp.org>
57410
57411         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
57412
57413 2006-06-26  Bruno Haible  <bruno@clisp.org>
57414
57415         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
57416         SGI C compiler in pre-C99 mode.
57417         Suggested by Mark D. Baushke and Larry Jones.
57418
57419 2006-06-26  Bruno Haible  <bruno@clisp.org>
57420
57421         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
57422         WCHAR_MAX.
57423         Reported by Mark D. Baushke and Larry Jones.
57424
57425 2006-06-26  Bruno Haible  <bruno@clisp.org>
57426
57427         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
57428         in pre-C99 mode.
57429         Suggested by Mark D. Baushke and Larry Jones.
57430
57431 2006-06-23  Simon Josefsson  <jas@extundo.com>
57432             Bruno Haible  <bruno@clisp.org>
57433
57434         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
57435         Emit mostlyclean-local rule.
57436         (func_emit_tests_Makefile_am): Likewise.
57437         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
57438
57439 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
57440
57441         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
57442
57443 2006-06-23  Bruno Haible  <bruno@clisp.org>
57444
57445         * tests/test-stdint.c: Update to match ISO C 99 Technical
57446         Corrigendum 1.
57447
57448 2006-06-23  Bruno Haible  <bruno@clisp.org>
57449
57450         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
57451
57452 2006-06-23  Bruno Haible  <bruno@clisp.org>
57453
57454         * lib/stdint_.h: Treat IRIX like OpenBSD.
57455
57456 2006-06-23  Bruno Haible  <bruno@clisp.org>
57457
57458         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
57459         ISO C 99 Technical Corrigendum 1.
57460
57461 2006-06-22  Simon Josefsson  <jas@extundo.com>
57462
57463         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
57464         MinGW.
57465
57466 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57467
57468         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
57469         needed.  Some compiler complained about some of them.  Problem reported
57470         by Larry Jones in
57471         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
57472
57473 2006-06-21  Simon Josefsson  <jas@extundo.com>
57474
57475         * tests/test-getaddrinfo.c: New file.
57476
57477         * modules/getaddrinfo-tests: New file.
57478
57479         * MODULES.html.sh: Add inet_pton.
57480
57481         * modules/inet_pton: New file.
57482
57483 2006-06-21  Simon Josefsson  <jas@extundo.com>
57484
57485         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
57486         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
57487         of using the (limited) gnulib implementation on Windows XP.
57488
57489         * m4/inet_pton.m4: New file.
57490
57491 2006-06-21  Simon Josefsson  <jas@extundo.com>
57492
57493         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
57494         variable.
57495
57496         * lib/socket_.h: Don't define WINVER.
57497
57498         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
57499         slightly modified to work in gnulib.
57500
57501 2006-06-21  Simon Josefsson  <jas@extundo.com>
57502
57503         * doc/gnulib.texi (Windows sockets): Add.
57504
57505 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57506
57507         * lib/read-file.c (fread_file): Start with buffer allocation of
57508         0 bytes rather than 1 byte; this simplifies the code.
57509         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
57510         code to free buffer and save/restore errno.
57511         (internal_read_file): Remove unused local.
57512
57513 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57514
57515         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
57516         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
57517         Problem reported by Denis Excoffier in
57518         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
57519
57520 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57521
57522         * modules/sys_socket, modules/socklen: Include sys/types since
57523         FreeBSD 4.x's sys/socket.h needs it.
57524
57525 2006-06-19  Simon Josefsson  <jas@extundo.com>
57526
57527         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
57528
57529 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
57530
57531         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
57532
57533 2006-06-19  Bruno Haible  <bruno@clisp.org>
57534
57535         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
57536         and FULL_PATH_INTTYPES_H in angle brackets.
57537         Reported by Mark D. Baushke <mdb@gnu.org>.
57538
57539 2006-06-17  Eric Blake  <ebb9@byu.net>
57540
57541         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
57542         errno.
57543
57544 2006-06-17  Bruno Haible  <bruno@clisp.org>
57545
57546         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
57547         <sys/inttypes.h>.
57548
57549 2006-06-17  Bruno Haible  <bruno@clisp.org>
57550
57551         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
57552         whether errno is declared. Assume <errno.h> declares errno.
57553
57554 2006-06-17  Bruno Haible  <bruno@clisp.org>
57555
57556         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
57557
57558 2006-06-17  Bruno Haible  <bruno@clisp.org>
57559
57560         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
57561         problem on Solaris 2.5.1.
57562
57563 2006-06-16  Eric Blake  <ebb9@byu.net>
57564
57565         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
57566         * lib/unicodeio.c [!defined errno]: Likewise.
57567         * lib/strtol.c [!defined errno]: Likewise.
57568         * lib/strtod.c [!defined errno]: Likewise.
57569
57570 2006-06-15  Eric Blake  <ebb9@byu.net>
57571
57572         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
57573
57574 2006-06-15  Eric Blake  <ebb9@byu.net>
57575
57576         * config/srclist.txt (ssize_t.m4): Lose sync.
57577
57578 2006-06-15  Bruno Haible  <bruno@clisp.org>
57579
57580         * modules/stdint (Files): Include m4/full-header-path.m4,
57581         m4/size_max.m4, m4/wchar_t.m4.
57582         (Makefile.am): Many more substitutions.
57583         * modules/stdint-tests: New file.
57584         * tests/test-stdint.c: New file.
57585
57586 2006-06-15  Bruno Haible  <bruno@clisp.org>
57587
57588         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
57589         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
57590         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
57591         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
57592         gl_CHECK_TYPE_SAME): New macros.
57593
57594 2006-06-15  Bruno Haible  <bruno@clisp.org>
57595
57596         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
57597
57598 2006-06-15  Bruno Haible  <bruno@clisp.org>
57599
57600         * lib/stdint_.h: Rewritten to be fully auto-configured.
57601         Fixes bug on HP-UX/IA64.
57602
57603 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
57604
57605         * lib/getdate.y (__attribute__): Don't define if already defined.
57606         Problem reported by Larry Jones.
57607         * lib/utimens.c (__attribute__): Likewise.
57608
57609 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
57610
57611         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
57612         reported by Andreas Schwab.
57613
57614 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57615             Bruno Haible  <bruno@clisp.org>
57616
57617         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
57618         check for the declaration of strnlen and a run test that exposes the
57619         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
57620         rpl_strndup.
57621
57622 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57623             Bruno Haible  <bruno@clisp.org>
57624
57625         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
57626
57627 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57628
57629         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
57630         compile test, for Tru64 4.0D.
57631
57632 2006-05-28  Karl Berry  <karl@gnu.org>
57633
57634         * config/srclist.txt (printf-args.c): lose sync.
57635
57636 2006-05-26  Martin Lambers  <marlam@marlam.de>
57637
57638         * lib/getpass.c: Updates the test for the native W32 API, and adds
57639         missing includes, thus fixing compilation warnings.
57640
57641 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
57642
57643         * lib/exclude.c (exclude_fnmatch): New function.
57644         (excluded_file_name): Call exclude_fnmatch.
57645         * lib/exclude.h (excluded_file_name): New prototype
57646
57647 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
57648
57649         * lib/tempname.c (small_open, large_open): New macros.
57650         (__open, __open64) [!_LIBC]: Remove.
57651         (__gen_tempname): Use small_open and large_open instead of __open
57652         and __open64.  This fixes a portability bug on HP-UX 11.11i
57653         reported by Simon Wing-Tang in
57654         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
57655
57656 2006-05-24  Bruno Haible  <bruno@clisp.org>
57657
57658         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
57659         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
57660         Reported by Thorsten Maerz <torte@netztorte.de> via
57661         Aaron Stone <aaron@serendipity.cx>.
57662
57663 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57664
57665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
57666         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
57667         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
57668         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
57669         not really conditional on the cache.
57670         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
57671
57672 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
57673
57674         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
57675         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
57676         (my_usleep): Don't mishandle maximum value.
57677
57678 2006-05-19  Jim Meyering  <jim@meyering.net>
57679
57680         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
57681
57682 2006-05-17  Bruno Haible  <bruno@clisp.org>
57683
57684         Cygwin portability.
57685         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
57686
57687 2006-05-17  Bruno Haible  <bruno@clisp.org>
57688
57689         * lib/stdint_.h: Fix recognition of Cygwin.
57690
57691 2006-05-15  Bruno Haible  <bruno@clisp.org>
57692
57693         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
57694         on libtool patch by Ralf Wildenhues.
57695
57696 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57697
57698         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
57699         test for C99 conformance; (bool) 0.5 is an integer constant
57700         expression, but (bool) -0.5 is not.  Problem reported by Fedor
57701         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
57702
57703 2006-05-11  Simon Josefsson  <jas@extundo.com>
57704
57705         * m4/xvasprintf.m4: Fix obvious typo.
57706
57707 2006-05-11  Jim Meyering  <jim@meyering.net>
57708
57709         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
57710         James Lemley.
57711
57712 2006-05-10  Simon Josefsson  <jas@extundo.com>
57713
57714         * lib/md4.c: Typo fix, update copyright years.
57715         (K1, K2): Don't use L because it turn computations into 64-bit on
57716         64-bit platforms.
57717
57718 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
57719
57720         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
57721         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
57722         unwanted sign propagation, e.g., on hosts with 64-bit int.
57723         There still are some problems with reeelly weird theoretical hosts
57724         (e.g., 33-bit int) but it's not worth worrying about now.
57725         * lib/sha1.c (rol): Likewise.
57726         (K1, K2, K3, K4): Remove unnecessary L suffix.
57727
57728 2006-05-10  Bruno Haible  <bruno@clisp.org>
57729
57730         * lib/des.c: Cast to avoid warnings.
57731
57732 2006-05-09  Bruno Haible  <bruno@clisp.org>
57733
57734         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
57735         (Depends-on): Depend also on xsize, stdarg.
57736         (configure.ac): Add gl_XVASPRINTF.
57737
57738 2006-05-09  Bruno Haible  <bruno@clisp.org>
57739
57740         * m4/xvasprintf.m4: New file.
57741
57742 2006-05-09  Bruno Haible  <bruno@clisp.org>
57743
57744         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
57745         (EOVERFLOW): Define fallback value.
57746         (xstrcat): New function.
57747         (xvasprintf): Recognize the special case of a string concatenation.
57748
57749 2006-05-08  Eric Blake  <ebb9@byu.net>
57750
57751         * gnulib-tool (func_version): Base copyright year on CVS date.
57752         (func_emit_copyright_notice): New function.
57753         (func_emit_lib_Makefile_am): Use it.
57754         (func_emit_tests_Makefile_am): Likewise.
57755         (func_import): Likewise.
57756
57757 2006-05-08  Bruno Haible  <bruno@clisp.org>
57758
57759         * modules/stdarg: New file.
57760         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
57761
57762 2006-05-08  Bruno Haible  <bruno@clisp.org>
57763
57764         * m4/stdarg.m4: New file, from GNU gettext.
57765
57766 2006-05-08  Bruno Haible  <bruno@clisp.org>
57767
57768         * config/srclist.txt (build-aux/config.rpath): different from latest
57769         release.
57770
57771 2006-05-08  Bruno Haible  <bruno@clisp.org>
57772
57773         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
57774
57775 2006-05-05  Jim Meyering  <jim@meyering.net>
57776
57777         * m4/warning.m4: New file, derived from bison's file by the same name.
57778
57779 2006-05-03  Bruno Haible  <bruno@clisp.org>
57780
57781         * lib/stdint_.h: Shorter URL.
57782         * lib/inttypes.h: Likewise.
57783
57784 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57785
57786         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
57787
57788 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57789
57790         * lib/verify.h: Document the internals better.  Most of this change
57791         was written by Bruno Haible.
57792
57793 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57794
57795         * doc/verify.texi: New file, partly based on a proposal by
57796         Bruno Haible.
57797
57798 2006-05-02  Bruno Haible  <bruno@clisp.org>
57799
57800         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
57801         test from here...
57802         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
57803
57804 2006-04-29  Bruno Haible  <bruno@clisp.org>
57805
57806         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
57807         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
57808
57809 2006-04-29  Bruno Haible  <bruno@clisp.org>
57810
57811         * gnulib-tool: Make --update option actually work.
57812
57813 2006-04-29  Bruno Haible  <bruno@clisp.org>
57814
57815         * doc/gcd.texi: New file.
57816         * doc/gnulib.texi: Include it.
57817
57818 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
57819
57820         * lib/getdate.y (get_date): When adding relative date, start with the
57821         initial time, not with the result of the first mktime call.
57822
57823 2006-04-25  Bruno Haible  <bruno@clisp.org>
57824
57825         * gnulib-tool (func_import): Output the include directives in three
57826         blocks, sorted separately.
57827         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57828
57829 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57830
57831         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
57832         to define main with arguments, for C++.  Reported by Eric Blake.
57833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
57834         Prefer 'int main ()' to 'int main (void)', for C++.
57835         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
57836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
57837         for 'main', for C99 and C++.
57838
57839 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57840
57841         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
57842         Don't assume that exit status -1 is valid.
57843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57844         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57845         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
57846         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
57847         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
57848         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
57849         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
57850         functions can be used without declaring them, or that you can
57851         exit with status -1.
57852         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
57853
57854 2006-04-24  Karl Berry  <karl@gnu.org>
57855
57856         * config/srclist.txt (longdouble.m4): sync lost.
57857
57858 2006-04-24  Eric Blake  <ebb9@byu.net>
57859
57860         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
57861
57862 2006-04-24  Bruno Haible  <bruno@clisp.org>
57863
57864         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
57865         poll() implementation in AIX.
57866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57867
57868 2006-04-24  Bruno Haible  <bruno@clisp.org>
57869
57870         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
57871         assigned exactly once.
57872
57873 2006-04-23  Claudio Fontana  <claudio@gnu.org>
57874             Bruno Haible  <bruno@clisp.org>
57875
57876         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
57877         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
57878         for AM_CPPFLAGS.
57879
57880 2006-04-23  Bruno Haible  <bruno@clisp.org>
57881
57882         * modules/copy-file: Depend on unistd.
57883         * modules/execute: Likewise.
57884         * modules/fatal-signal: Likewise.
57885         * modules/findprog: Likewise.
57886         * modules/mkdtemp : Likewise.
57887         * modules/pipe: Likewise.
57888         * modules/wait-process: Likewise.
57889
57890 2006-04-23  Bruno Haible  <bruno@clisp.org>
57891
57892         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
57893         condition was already detected.
57894         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57895
57896 2006-04-23  Bruno Haible  <bruno@clisp.org>
57897
57898         * lib/copy-file.c: Include <unistd.h> unconditionally.
57899         * lib/execute.c: Likewise.
57900         * lib/fatal-signal.c: Likewise.
57901         * lib/findprog.c: Likewise.
57902         * lib/mkdtemp.c: Likewise.
57903         * lib/pipe.h: Likewise.
57904         * lib/pipe.c: Likewise.
57905         * lib/wait-process.h: Likewise.
57906
57907 2006-04-23  Bruno Haible  <bruno@clisp.org>
57908
57909         * gnulib-tool (func_usage): Fix --import description. Document
57910         --update.
57911         (func_import): Create temporary file in a temporary directory, if
57912         --dry-run is specified. Silence errors from 'grep' when there are no
57913         m4 files in $m4dir.
57914         (func_create_testdir): Silence errors from 'grep' when there are no
57915         m4 files in $m4dir.
57916         Reported by Karl Berry <karl@freefriends.org>.
57917
57918 2006-04-20  Bruno Haible  <bruno@clisp.org>
57919
57920         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
57921         one argument, so that the code will be portable to Autoconf 2.60.
57922         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
57923         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
57924         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
57925
57926 2006-04-19  Derek Price  <derek@ximbiot.com>
57927             Eric Blake  <ebb9@byu.net>
57928
57929         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
57930         rather than "/full/path.h".  Update comment to match.  Shorten &
57931         generalize m4_translit call via AS_TR_CPP.
57932
57933 2006-04-19  Derek Price  <derek@ximbiot.com>
57934             Eric Blake  <ebb9@byu.net>
57935
57936         * lib/inttypes.h: Correct grammar in comment.
57937
57938 2006-04-18  Derek Price  <derek@ximbiot.com>
57939             Paul Eggert  <eggert@cs.ucla.edu>
57940
57941         * modules/inttypes: New file.
57942         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
57943
57944 2006-04-18  Derek Price  <derek@ximbiot.com>
57945             Paul Eggert  <eggert@cs.ucla.edu>
57946
57947         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
57948         New files.
57949
57950 2006-04-18  Derek Price  <derek@ximbiot.com>
57951             Paul Eggert  <eggert@cs.ucla.edu>
57952
57953         * lib/inttypes.h: New file.
57954         * lib/strtoimax.c: Assume <inttypes.h>.
57955
57956 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
57957
57958         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
57959         isn't mounted.  Problem reported by Kir Kolyshkin.
57960
57961 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57962
57963         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
57964         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
57965         Derek R. Price.
57966         * lib/regex.h (RE_DUP_MAX): Update comment to match current
57967         implementation.
57968
57969 2006-04-12  Eric Blake  <ebb9@byu.net>
57970
57971         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
57972         is now done automatically by the corresponding Autoconf macro.
57973
57974 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
57975
57976         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
57977         time_r.h.
57978
57979 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57980
57981         Merge regex changes from libc, removing some of our
57982         POSIX-conformance changes that were rejected and redoing them in a
57983         less-intrusive way.
57984
57985         * lib/regcomp.c (re_compile_internal, init_dfa):
57986         Length arg is now size_t, not Idx.  All uses changed.
57987         (peek_token): Forward decl now says internal_function.
57988         (__re_error_msgid, __re_error_msgid_idx):
57989         Now static rather than extern with attribute_hidden.
57990         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
57991         For some reason libc prefers K&R style defns for external functions.
57992         (regerror) [!defined _LIBC]: Likewise.
57993         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
57994         (seek_collating_symbol_entry, lookup_collation_sequence_value):
57995         (build_range_exp, build_collating_symbol):
57996         Use K&R-style defn.
57997         (re_compile_fastmap): Use '\0' to memset, not 0.
57998         (utf8_sb_map): Make the calculations more obvious.
57999         (init_dfa, parse_bracket_exp, build_charclass_op):
58000         Call calloc and cast result, as glibc does.
58001         (init_word_char, fetch_token, peek_token, peek_token_bracket):
58002         (build_range_exp, build_collating_symbol):
58003         Now internal functions.
58004
58005         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
58006
58007         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
58008         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
58009         Don't depend on VMS; depend on __VMS instead, for POSIX
58010         namespace cleanness.
58011         (regoff_t): Define to ssize_t, not long int.
58012
58013         Remove the REG_ macros named below.  Instead, make the old names
58014         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
58015         __USE_GNU_REGEX.
58016         (REG_BACKSLASH_ESCAPE_IN_LISTS):
58017         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
58018         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
58019         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
58020         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
58021         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
58022         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
58023         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
58024         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
58025         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
58026         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
58027         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
58028         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
58029         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
58030         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
58031         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
58032         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
58033         (REG_NREGS):
58034         Remove.  All uses replaced by the old RE_* names.
58035         (RE_BACKSLASH_ESCAPE_IN_LISTS):
58036         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
58037         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
58038         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
58039         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
58040         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
58041         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
58042         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
58043         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
58044         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
58045         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
58046         Don't bother having these macros be independent of each others'
58047         values, since they no longer exist in the POSIX name space.
58048
58049         Rename the following member names back to their old names,
58050         unless !__USE_GNU_REGEX.  All uses changed back.
58051         (buffer): Renamed from re_buffer.
58052         (allocated): Renamed from re_allocated.
58053         (used): Renamed from re_used.
58054         (syntax): Renamed from re_syntax.
58055         (fastmap): Renamed from re_fastmap.
58056         (translate): Renamed from re_translate.
58057         (can_be_null): Renamed from re_can_be_null.
58058         (regs_allocated): Renamed from re_regs_allocated.
58059         (fastmap_accurate): Renamed from re_fastmap_accurate.
58060         (no_sub): Renamed from re_no_sub.
58061         (not_bol): Renamed from re_not_bol.
58062         (not_eol): Renamed from re_not_eol.
58063         (newline_anchor): Renamed from re_newline_anchor.
58064         (num_regs): Renamed from rm_num_regs.
58065         (start): Renamed from rm_start.
58066         (end): Renamed from rm_end.
58067
58068         (free_state): Move up a bit.
58069
58070         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
58071         #define to be empty.
58072         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
58073         when that is what is intended.
58074         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
58075         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
58076         (MAX): New macro.
58077         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
58078         All uses changed back to re_malloc, etc.  It's now the caller's
58079         responsibility to check for overflow; all callers changed.
58080         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
58081         (re_x2nrealloc): Remove.
58082         (free_state): Remove decl.
58083
58084         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
58085         (re_set_registers, re_exec):
58086         Use K&R-style defn.
58087
58088         2006-01-31  Roland McGrath  <roland@redhat.com>
58089
58090         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
58091         Reported by Mike Frysinger <vapier@gentoo.org>.
58092
58093         2006-01-15  Andreas Jaeger  <aj@suse.de>
58094
58095         [BZ #1950]
58096         * lib/regex_internal.c (re_string_reconstruct): Adjust for
58097         build_wcs_upper_buffer change.
58098         (build_wcs_upper_buffer): Change return type.
58099
58100         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
58101
58102         * lib/regex_internal.h: Include <stdint.h> if available.
58103
58104         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
58105
58106         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
58107
58108         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58109
58110         * lib/regcomp.c: Adjust for changed secondary hash function.
58111
58112         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
58113
58114         * lib/regex.h: Pretty printing.
58115         Clean up namespace a bit.
58116
58117         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
58118
58119         * lib/regexec.c (update_cur_sifted_state, check_arrival,
58120         check_arrival_add_next_nodes): Avoid using uninitialized variable.
58121
58122         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58123                     Ulrich Drepper  <drepper@redhat.com>
58124
58125         [BZ #1302]
58126         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
58127         changed.
58128         (bitset_word_t): Renamed from bitset_word.  All uses changed.
58129
58130         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
58131
58132         [BZ #281]
58133         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
58134         * lib/regcomp.c: Remove unnecessary uses of
58135         unsigned RE_TRANSLATE_TYPE.
58136         * lib/regex_internal.h: Likewise.
58137         * lib/regex_internal.c: Likewise.
58138         * lib/regexec.c: Likewise.
58139         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
58140
58141         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
58142
58143         * lib/regexec.c (find_recover_state): Remove unnecessary
58144         initialization.
58145         (transit_state_bkref): Make DFA a const pointer.
58146         (get_subexp): Likewise.
58147         (check_arrival): Likewise.
58148         (update_cur_sifted_state): Likewise.
58149         (re_search_internal): Likewise.
58150         (prune_impossible_nodes): Likewise.
58151         (acquire_init_state_context): Likewise.
58152         (proceed_next_node): Likewise.
58153         (set_regs): Likewise.
58154         (free_fail_stack_return): Likewise.
58155         (check_arrival_expand_ecl): Mark DFA parameter as const.
58156         (check_arrival_expand_ecl_sub): Likewise.
58157         (check_subexp_limits): Likewise.
58158         (sub_epsilon_src_nodes):  Likewise.
58159         (add_epsilon_src_nodes):  Likewise.
58160         (merge_state_array): Likewise.
58161         (update_regs): Likewise.
58162         (build_trtable): Likewise.
58163         (sift_states_backward): Mark MCTX parameter as const.
58164         (build_sifted_states): Likewise.
58165         (update_cur_sifted_state): Likewise.
58166         (sift_states_mkref): Likewise.
58167         (check_arrival_expand_ecl): Mark eclosure as const.
58168         (check_dst_limits_calc_pos_1): Likewise.
58169         * lib/regex_internal.h (re_match_context_t): Make dfa a const
58170         pointer.
58171
58172         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
58173
58174         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
58175         (transit_state_sb): Likewise.
58176         (transit_state_mb): Likewise.
58177         (sift_states_iter_mb): Likewise.
58178         (check_arrival_add_next_nodes): Likewise.
58179         (check_node_accept_bytes): Change first parameter to pointer-to-const.
58180         [_LIBC] (re_search_2_stub): Use mempcpy.
58181
58182         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
58183         mbrtowc for very simple UTF-8 case.
58184
58185         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
58186         a pointer-to-const.
58187         (re_acquire_state_context): Likewise.
58188         * lib/regex_internal.h: Adjust prototypes.
58189
58190         * lib/regex.c: Prevent using C++ compilers.
58191
58192         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
58193         (re_acquire_state_context): Likewise.
58194
58195 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58196
58197         * modules/regex (Depends-on): Add ssize_t.
58198
58199 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58200
58201         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
58202         translation table.
58203
58204 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58205
58206         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
58207
58208 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
58209             Bruno Haible  <bruno@clisp.org>
58210
58211         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
58212         <sys/types.h> and <inttypes.h>.
58213
58214 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58215
58216         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
58217         `__error_t_defined', so argp.h will not typedef the former.
58218
58219 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
58220
58221         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
58222         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
58223         glibc names.  Even if glibc is changed to conform to POSIX, the
58224         traditional names will be available anyway, since regex depends on
58225         the extensions module.  Also, fix a longstanding typo in the
58226         implementation of Spencer ERE test #75 from grep 2.3.  Problems
58227         reported by Emanuele Giaquinta.  Also, change sense of cached
58228         variable, so that the message makes sense.
58229
58230 2006-03-24  Simon Josefsson  <jas@extundo.com>
58231
58232         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
58233         including some doc fixes.
58234         (base64_encode_alloc): Fix +1 bug on allocation failures.
58235
58236 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58237
58238         * lib/base64.c (base64_encode): Do not read past end of array with
58239         unsanitized input on systems with CHAR_BIT > 8.
58240
58241 2006-03-24  Eric Blake  <ebb9@byu.net>
58242
58243         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
58244
58245 2006-03-22  Karl Berry  <karl@gnu.org>
58246
58247         * config/srclist.txt (*setenv.[ch]): get from coreutils.
58248         * config/srclistvars.sh (COREUTILS): new var.
58249
58250 2006-03-17  Jim Meyering  <jim@meyering.net>
58251
58252         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
58253         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
58254
58255 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
58256
58257         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
58258         no longer needs it.  Instead, check that regoff_t is as least
58259         as wide as ptrdiff_t.
58260
58261         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
58262         so that our regex.h stays compatible with the installed regex.
58263         This is helpful for installers who configure --without-included-regex.
58264         Problem reported by Emanuele Giaquinta.
58265
58266 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
58267
58268         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
58269         Typedef to long int, not to off_, as POSIX will likely change
58270         in that direction.
58271
58272 2006-03-15  Eric Blake  <ebb9@byu.net>
58273
58274         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
58275
58276 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
58277
58278         * lib/argp-help.c (validate_uparams): Fix typo
58279         * lib/argp-parse.c (argp_default_options): Consistently begin help
58280         messages with a lowercase letter.
58281
58282 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
58283
58284         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
58285         overrun buffers and shouldn't be used (much as gets shouldn't be
58286         used).
58287         * lib/time_r.c (asctime_r, ctime_r): Likewise.
58288
58289 2006-03-08  Simon Josefsson  <jas@extundo.com>
58290
58291         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
58292         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58293
58294 2006-03-08  Simon Josefsson  <jas@extundo.com>
58295
58296         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
58297         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58298
58299 2006-03-08  Simon Josefsson  <jas@extundo.com>
58300
58301         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
58302         signal that configure disabled the device.
58303
58304 2006-03-08  Simon Josefsson  <jas@extundo.com>
58305
58306         * build-aux/maint.mk: Fix refresh-po, to handle no translated
58307         languages.
58308
58309 2006-03-07  Simon Josefsson  <jas@extundo.com>
58310
58311         * modules/getopt (Depends-on): Add unistd.
58312
58313         * modules/unistd: New file.
58314
58315 2006-03-07  Simon Josefsson  <jas@extundo.com>
58316
58317         * modules/gc-random: New file.
58318
58319 2006-03-07  Simon Josefsson  <jas@extundo.com>
58320
58321         * m4/unistd_h.m4: New file.
58322
58323 2006-03-07  Simon Josefsson  <jas@extundo.com>
58324
58325         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
58326         test to be side-effect free by storing the result in the cache
58327         variable gl_cv_lib_readline, and moving the assignment of
58328         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
58329         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58330
58331 2006-03-07  Simon Josefsson  <jas@extundo.com>
58332
58333         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
58334         error on missing devices (the functions will return an error).
58335
58336         * m4/gc.m4: Move random stuff to gc-random.m4
58337
58338 2006-03-07  Simon Josefsson  <jas@extundo.com>
58339
58340         * lib/unistd_.h: New file.
58341
58342 2006-03-07  Simon Josefsson  <jas@extundo.com>
58343
58344         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
58345
58346 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58347
58348         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
58349         Problem reported by Juan Manuel Guerrero.
58350
58351 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58352
58353         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
58354         the unistd module.
58355         * lib/getlogin_r.c: Likewise.
58356         * lib/getlogin_r.h: Likewise.
58357         * lib/glob.c: Likewise.
58358         * lib/pagealign_alloc.c: Likewise.
58359         * lib/unistd_.h: Remove; no longer needed.
58360
58361 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
58362
58363         * MODULES.html.sh (Support for systems lacking POSIX:2001):
58364         Add unistd.
58365         * modules/c-stack (Depends-on): Add unistd.
58366         * modules/getlogin_r: Likewise.
58367         * modules/glob: Likewise.
58368         * modules/pagealign_alloc: Likewise.
58369         * modules/unistd (Files): Remove lib/unistd_.h.
58370         (EXTRA_DIST): Remove.
58371         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
58372         need unistd_.h.
58373         (MOSTLYCLEANFILES): Remove unistd.h-t.
58374
58375 2006-03-03  Simon Josefsson  <jas@extundo.com>
58376
58377         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
58378
58379 2006-03-03  Simon Josefsson  <jas@extundo.com>
58380
58381         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
58382         libidn and bison.
58383
58384 2006-03-03  Simon Josefsson  <jas@extundo.com>
58385
58386         * build-aux/maint.mk: Add indent target.
58387
58388 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
58389
58390         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
58391         our replacement poll.h in any case, to avoid a differing
58392         declaration from a system header.  Seen on AIX.
58393
58394 2006-03-01  Simon Josefsson  <jas@extundo.com>
58395
58396         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
58397         <kasal@ucw.cz>.
58398
58399 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58400
58401         * modules/gettime (Depends-on): Add extensions module.
58402         * modules/nanosleep (Depends-on): Likewise.
58403         * modules/settime (Depends-on): Likewise.
58404
58405 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58406
58407         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
58408         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
58409         pedantically.
58410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58411         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
58412
58413         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
58414         not "==".  Reported by Ralf Wildenhues.
58415
58416 2006-03-01  Karl Berry  <karl@gnu.org>
58417
58418         * doc/Copyright/request-*: new files, synced from gnuorg.
58419
58420 2006-03-01  Karl Berry  <karl@gnu.org>
58421
58422         * config/srclist.txt (Copyright/*): new entries.
58423
58424 2006-02-28  Simon Josefsson  <jas@extundo.com>
58425
58426         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
58427
58428 2006-02-27  Simon Josefsson  <jas@extundo.com>
58429
58430         * lib/base64.h: Indent #define's.  From Jim Meyering
58431         <jim@meyering.net>.
58432
58433 2006-02-27  Jim Meyering  <jim@meyering.net>
58434
58435         Revert the change of 2006-02-24, so these files can continue
58436         to be sync'd from gettext.
58437         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
58438         of `config.h'.
58439
58440 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58441
58442         * modules/intprops: New file.
58443         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58444         Add intprops.
58445         * modules/getloadavg (Files): Remove lib/intprops.h.
58446         (Depends-on): Add intprops.
58447         * modules/human: Likewise.
58448         * modules/inttostr: Likewise.
58449         * modules/openat: Likewise.
58450         * modules/sig2str: Likewise.
58451         * modules/userspec: Likewise.
58452         * modules/utimecmp: Likewise.
58453         * modules/xnanosleep: Likewise.
58454         * modules/xstrtol: Likewise.
58455
58456 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
58457
58458         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
58459         * modules/lock-tests (TESTS): Use $(EXEEXT).
58460         * modules/tls-tests: Likewise.
58461         * modules/argp-tests: Likewise.
58462         (check_PROGRAMS): New var, replacing...
58463         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
58464
58465 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58466
58467         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
58468         `config.h'.
58469
58470 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58471
58472         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
58473
58474 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58475
58476         Sync from coreutils.
58477         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
58478         gl_CHDIR_SAFER.
58479
58480 2006-02-22  Jim Meyering  <jim@meyering.net>
58481
58482         Sync from coreutils.
58483         * m4/chdir-safer.m4: New file.
58484
58485 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58486
58487         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
58488         AT_FDCWD exceeds INT_MAX.
58489         * lib/openat.h (AT_FDCWD): Likewise.
58490
58491 2006-02-17  Eric Blake  <address@hidden>
58492
58493         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
58494
58495 2006-02-16  Simon Josefsson  <jas@extundo.com>
58496
58497         * modules/getaddrinfo (Depends-on): Add sys_socket.
58498
58499 2006-02-15  Simon Josefsson  <jas@extundo.com>
58500
58501         * build-aux/maint.mk: Add dsyntax-check rule.
58502
58503 2006-02-15  Eric Blake  <ebb9@byu.net>
58504
58505         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
58506         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
58507         'present but cannot compile' warnings on cygwin.
58508         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
58509         use ws2tcpip.h if sys/socket.h works.
58510         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
58511         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
58512
58513 2006-02-14  Simon Josefsson  <jas@extundo.com>
58514
58515         * modules/maintainer-makefile (Files): Rename.
58516
58517         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
58518         and (the local) Makefile.cfg to maint-cfg.mk.
58519
58520         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
58521         to the latter.
58522
58523         * modules/maintainer-makefile: New module.
58524
58525         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
58526         severaly stripped to make it possible to build it up from scratch
58527         with reliable tests.
58528
58529         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
58530         fixes to permit overriding the default actions when configure and
58531         makefile are not available.
58532
58533 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
58534
58535         Sync from coreutils.
58536         * modules/lstat (Depends-on): Don't depend on xalloc.
58537         (License): Change from GPL to LGPL, since this is now simply a
58538         replacement for a libc function.
58539
58540 2006-02-14  Jim Meyering  <jim@meyering.net>
58541
58542         Sync from coreutils.
58543
58544         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
58545         failure on deficient systems, and simplify gnulib lgpl dependencies.
58546         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
58547         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
58548
58549         * lib/xalloc-die.c: Remove unused definition of N_.
58550
58551 2006-02-14  Jim Meyering  <jim@meyering.net>
58552
58553         Sync from coreutils.
58554         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
58555         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
58556         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
58557         double-quote uses of that variable, to accommodate the rare case in
58558         which getmntent is available in none of the libraries checked.  This
58559         happens at least on FreeBSD 5.0.
58560
58561 2006-02-13  Simon Josefsson  <jas@extundo.com>
58562
58563         * gnulib-tool (Usage): Fix --import, from
58564         karl@freefriends.org (Karl Berry).
58565
58566 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
58567
58568         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
58569
58570 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
58571
58572         * lib/argp-namefrob.h: Restore changes accidentally lost during the
58573         "autoupdate" on 2005-12-12.
58574
58575 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58576
58577         * modules/closeout (Depends-on): Remove atexit.
58578
58579 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
58580
58581         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
58582         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
58583
58584 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
58585
58586         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
58587         __EXTENSIONS__ if this causes compilation to fail.  Problem
58588         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
58589         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
58590
58591 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
58592
58593         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
58594         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
58595         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
58596         All uses changed.
58597
58598 2006-01-26  Simon Josefsson  <jas@extundo.com>
58599
58600         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
58601         prototype is visible on mingw32.
58602
58603         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
58604         for mingw32.
58605
58606         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
58607         mingw32).
58608
58609 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58610
58611         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
58612         attempt to open for write; this always fails, at least on POSIX
58613         hosts.  This reinstates the 2006-01-09 change, which was
58614         inadvertently removed.
58615
58616 2006-01-26  Bruno Haible  <bruno@clisp.org>
58617
58618         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
58619         Reported by Paul Eggert.
58620
58621 2006-01-26  Bruno Haible  <bruno@clisp.org>
58622             Paul Eggert  <eggert@cs.ucla.edu>
58623
58624         * lib/stdbool_.h (_Bool)
58625         [(! (defined __cplusplus || defined __BEOS__)
58626           && !defined __GNUC__
58627           && !(defined __HP_cc || defined __xlc__
58628                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
58629                || defined __sgi))]:
58630         #define to signed char in these cases too; this simplifies
58631         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
58632         etc., separately) and makes it more conservative.
58633
58634 2006-01-25  Simon Josefsson  <jas@extundo.com>
58635
58636         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
58637         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
58638         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
58639
58640 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58641
58642         * lib/argp-namefrob.h: Bugfix. Remove stray #
58643
58644 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58645
58646         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
58647         so that we test the test.
58648         Check for yet another HP-UX cc bug involving *bool |= bool.
58649
58650 2006-01-25  Karl Berry  <karl@gnu.org>
58651
58652         * config/srclist.txt (vasnprintf.c): sync lost.
58653
58654 2006-01-25  Jim Meyering  <jim@meyering.net>
58655
58656         Sync from the stable (b5) branch of coreutils:
58657
58658         * lib/fts.c (fts_children): Don't let close() clobber errno from
58659         failed fchdir().
58660
58661         * lib/fts.c (fts_stat): When following a symlink-to-directory,
58662         don't necessarily interpret stat-fails+lstat-succeeds as indicating
58663         a dangling symlink.  That can also happen at least for ELOOP.
58664         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
58665         FYI, this bug predates the inclusion of fts.c in coreutils.
58666
58667         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
58668         in their own block, so pre-c99 compilers don't object.
58669
58670         Avoid the double-free (first in fts_read, second in fts_close) that
58671         would occur when an `active' directory is made inaccessible (e.g.,
58672         via chmod a-x) during a traversal.
58673         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
58674         before returning.  Reproduce this failure by
58675         mkdir -p a/b; cd a; chmod a-x . b
58676         Reported by Stavros Passas.
58677
58678 2006-01-25  Jim Meyering  <jim@meyering.net>
58679
58680         * lib/fileblocks.c: Remove more useless parentheses.
58681         * lib/readutmp.h: Likewise.
58682
58683 2006-01-25  Bruno Haible  <bruno@clisp.org>
58684
58685         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
58686         warnings.
58687         Reported by Paul Eggert.
58688
58689 2006-01-25  Bruno Haible  <bruno@clisp.org>
58690
58691         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
58692         rid of a trap command. For Solaris sh.
58693         Reported by Mark D. Baushke <mdb@gnu.org>.
58694
58695 2006-01-24  Simon Josefsson  <jas@extundo.com>
58696
58697         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
58698         Bruno.
58699
58700 2006-01-24  Karl Berry  <karl@gnu.org>
58701
58702         * config/srclist.txt (argp-namefrob.h): sync lost.
58703
58704 2006-01-24  Jim Meyering  <jim@meyering.net>
58705
58706         * modules/openat (Files): Add lib/intprops.h.
58707         From Mark D. Baushke.
58708
58709 2006-01-24  Jim Meyering  <jim@meyering.net>
58710
58711         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
58712         Reported by Mark D. Baushke.
58713
58714 2006-01-24  Jim Meyering  <jim@meyering.net>
58715
58716         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
58717
58718 2006-01-24  Bruno Haible  <bruno@clisp.org>
58719
58720         * modules/strnlen (Maintainer): Change from glibc to all.
58721
58722 2006-01-24  Bruno Haible  <bruno@clisp.org>
58723
58724         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
58725         Patch by Paul Eggert.
58726
58727 2006-01-24  Bruno Haible  <bruno@clisp.org>
58728
58729         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
58730         already has it.
58731         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
58732         2005-11-26.
58733
58734         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
58735         'signed char' to avoid problems with the built-in _Bool type.
58736         Reported by Paul Eggert on 2005-11-26.
58737
58738 2006-01-24  Bruno Haible  <bruno@clisp.org>
58739
58740         * gnulib-tool (func_import): Avoid constructing complicated sed
58741         expressions inside backquote.
58742         Report and solution by Mark D. Baushke <mdb@gnu.org>.
58743
58744 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
58745
58746         These changes imported from libc.
58747         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
58748         test and two separate function calls.
58749         * lib/strndup.c (__strndup): Add libc_hidden_def.
58750
58751 2006-01-23  Simon Josefsson  <jas@extundo.com>
58752
58753         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
58754         Remove the test_*_SOURCES variable: automake infers it by default.
58755         * modules/tls-tests: Likewise.
58756
58757 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58758
58759         Work around porting bugs reported by Dieter in
58760         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
58761         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
58762         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
58763         Include "getopt.h" first, to check interface.
58764         (getenv): Declare only if defined HAVE_DECL_GETENV &&
58765         !HAVE_DECL_GETENV.
58766         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
58767         (__strndup): Revert to K&R-style function dfns, the glibc style.
58768         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
58769         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
58770         Include strnlen.h first, to get prototype properly.
58771         (strnlen): Renamed from __strnlen.
58772         Remove weak alias.
58773
58774 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58775
58776         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
58777
58778 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58779
58780         * config/srclist.txt: Adjust to reflect glibc reorganization.
58781         This affects only comments.
58782
58783 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58784
58785          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
58786          Reported by Bruce Korb <bkorb@gnu.org>.
58787
58788 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58789
58790         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
58791         to pacify gcc -Wswitch-default.
58792
58793 2006-01-22  Bruno Haible  <bruno@clisp.org>
58794
58795         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
58796         temporary buffer for sprintf, take into account the precision also
58797         for 'd', 'i', 'u', 'o', 'x', 'X'.
58798
58799 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
58800
58801         * modules/argp-tests: New module
58802         * tests/test-argp.c: New file
58803         * tests/test-argp-2.sh: New file
58804
58805 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
58806
58807         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
58808         (__argp_base_name): Removed
58809         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
58810         typo.
58811         (__argp_base_name): Provide macro definition or extern declaration
58812         depending on the configuration
58813
58814 2006-01-20  Simon Josefsson  <jas@extundo.com>
58815
58816         * modules/inet_ntop (Depends-on): Depend on sys_socket.
58817
58818 2006-01-20  Simon Josefsson  <jas@extundo.com>
58819
58820         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
58821
58822 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58823
58824         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
58825         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
58826         Suggested by Bruno Haible.
58827
58828 2006-01-20  Karl Berry  <karl@gnu.org>
58829
58830         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
58831         until changes propagate, I guess.
58832
58833 2006-01-19  Simon Josefsson  <jas@extundo.com>
58834
58835         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
58836
58837 2006-01-19  Simon Josefsson  <jas@extundo.com>
58838
58839         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
58840
58841 2006-01-19  Simon Josefsson  <jas@extundo.com>
58842
58843         * gnulib-tool: Set check_PROGRAMS.
58844
58845         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
58846         modules/des-tests, modules/gc-arcfour-tests,
58847         modules/gc-arctwo-tests, modules/gc-des-tests,
58848         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
58849         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
58850         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
58851         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
58852         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
58853         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
58854         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
58855         test_*_SOURCES.
58856
58857 2006-01-18  Simon Josefsson  <jas@extundo.com>
58858
58859         * modules/socklen (Depends-on): Depend on sys_socket.
58860
58861 2006-01-18  Simon Josefsson  <jas@extundo.com>
58862
58863         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
58864         modules/des-tests, modules/gc-arcfour-tests,
58865         modules/gc-arctwo-tests, modules/gc-des-tests,
58866         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
58867         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
58868         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
58869         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
58870         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
58871         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
58872         $(EXEEXT) to automake TESTS variable, for mingw32.
58873
58874 2006-01-17  Simon Josefsson  <jas@extundo.com>
58875
58876         * modules/socklen (Include): Need sys/socket.h.
58877
58878 2006-01-17  Bruno Haible  <bruno@clisp.org>
58879
58880         * modules/ssize_t (Include): Add <sys/types.h>.
58881
58882 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
58883
58884         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
58885         it's not portable and it doesn't work with cross-compiles.
58886         Problem reported by Bruno Haible.  Fix missing-$ typo in
58887         'test "gl_cv_ignore_unused_libraries" ...' that prevented
58888         -zignore from being used with Sun's C compiler.
58889
58890 2006-01-12  Simon Josefsson  <jas@extundo.com>
58891
58892         * lib/base64.c: Fix warning, reported by Bruno Haible
58893         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
58894
58895 2006-01-12  Bruno Haible  <bruno@clisp.org>
58896
58897         * modules/ldd: New file.
58898         * build-aux/ldd.sh.in: New file.
58899         * MODULES.html.sh (Support for building libraries and executables): Add
58900         ldd.
58901
58902 2006-01-12  Bruno Haible  <bruno@clisp.org>
58903
58904         * m4/ldd.m4: New file.
58905
58906 2006-01-12  Bruno Haible  <bruno@clisp.org>
58907
58908         * gnulib-tool (func_import, func_create_testdir): Don't go into an
58909         endless loop while replacing $auxdir with build-aux.
58910
58911 2006-01-11  Simon Josefsson  <jas@extundo.com>
58912
58913         * lib/stdint_.h (SIZE_MAX): Add missing (.
58914
58915 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
58916
58917         Sync from coreutils.
58918         * lib/md5.c: Fix commentary typos.
58919         (alignof, UNALIGNED_P): No need for a GCC-specific version.
58920         * lib/md5.h (__attribute__): Remove; unused.
58921         * lib/sha1.c: Fix commentary to match md5 better.
58922         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
58923         so that we don't need to worry about alignment.  All uses changed.
58924         This merges the 2005-10-28 md5 change into sha1.
58925
58926 2006-01-11  Jim Meyering  <jim@meyering.net>
58927
58928         Sync from coreutils.
58929         * lib/md5.c (OP): Fix spacing.
58930
58931 2006-01-11  Bruno Haible  <bruno@clisp.org>
58932
58933         Ensure automatic ordering between gl_LOCK and gl_ARGP.
58934         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
58935         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
58936
58937 2006-01-11  Bruno Haible  <bruno@clisp.org>
58938
58939         Ensure automatic ordering between gl_LOCK and gl_ARGP.
58940         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
58941         the "early" section as well.
58942
58943 2006-01-11  Bruno Haible  <bruno@clisp.org>
58944
58945         Avoid "ar: no archive members specified" error on MacOS X.
58946         * gnulib-tool (func_modules_add_dummy): New function.
58947         (func_import, func_create_testdir): Invoke it.
58948
58949 2006-01-11  Bruno Haible  <bruno@clisp.org>
58950
58951         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
58952         with $auxdir in AC_CONFIG_FILES statements.
58953
58954 2006-01-11  Bruno Haible  <bruno@clisp.org>
58955
58956         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58957         Initialize also noinst_HEADERS to empty.
58958
58959 2006-01-11  Bruno Haible  <bruno@clisp.org>
58960
58961         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
58962         variables.
58963         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
58964         autoreconf.
58965
58966 2006-01-11  Bruno Haible  <bruno@clisp.org>
58967
58968         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
58969         overridable by the user.
58970         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58971
58972 2006-01-10  Simon Josefsson  <jas@extundo.com>
58973
58974         * modules/sys_socket: New file.
58975
58976 2006-01-10  Simon Josefsson  <jas@extundo.com>
58977
58978         * m4/sys_socket_h.m4: New file.
58979
58980 2006-01-10  Simon Josefsson  <jas@extundo.com>
58981
58982         * lib/socket_.h: New file.
58983
58984 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58985
58986         * modules/readutmp (Maintainer): Add myself.
58987
58988 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58989
58990         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
58991         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
58992         People who are still concerned with buggy memcmp implementations
58993         can invoke gl_FUNC_MEMCMP themselves.
58994
58995 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58996
58997         * lib/regex_internal.h (BITSET_WORD_BITS):
58998         Work around a bug in 64-bit PGC (before version 6.1-2), where the
58999         preprocessor mishandles large unsigned values as if they were signed.
59000         Problem reported by Claudio Fontana in
59001         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
59002
59003 2006-01-10  Jim Meyering  <jim@meyering.net>
59004
59005         Avoid the double-free (first in fts_read, second in fts_close) that
59006         would occur when an `active' directory is made inaccessible (e.g.,
59007         via chmod a-x) during a traversal.
59008         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
59009         before returning.  Reproduce this failure by
59010         mkdir -p a/b; cd a; chmod a-x . b
59011         Reported by Stavros Passas.
59012
59013         Sync from coreutils.
59014         * lib/sha1.c: Tweak grammar in a comment.
59015
59016 2006-01-10  Jim Meyering  <jim@meyering.net>
59017
59018         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
59019         Patch by Joerg Sonnenberger.
59020
59021 2006-01-10  Bruno Haible  <bruno@clisp.org>
59022
59023         * modules/readutmp: Depend on module free.
59024         * modules/strtok_r: Depend on module restrict.
59025
59026 2006-01-10  Bruno Haible  <bruno@clisp.org>
59027
59028         * modules/gettext (configure.ac): Add an invocation of
59029         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
59030
59031 2006-01-10  Bruno Haible  <bruno@clisp.org>
59032
59033         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
59034         Reported by Werner Lemberg <wl@gnu.org>.
59035
59036 2006-01-10  Bruno Haible  <bruno@clisp.org>
59037
59038         * lib/localcharset.c: Update from GNU gettext.
59039
59040 2006-01-10  Bruno Haible  <bruno@clisp.org>
59041
59042         * lib/argp.h (__const): Remove macro. Use const instead.
59043         * lib/argp-fmtstream.h (__const): Likewise.
59044         * lib/glob_.h (__const): Remove macro.
59045         * lib/glob-libc.h: Use const instead of __const.
59046
59047 2006-01-10  Bruno Haible  <bruno@clisp.org>
59048
59049         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
59050         variable.
59051         Needed to avoid an automake error regarding the 'gettext' module.
59052
59053 2006-01-09  Simon Josefsson  <jas@extundo.com>
59054
59055         * modules/inet_ntop (Depends-on): Add restrict.
59056
59057 2006-01-09  Simon Josefsson  <jas@extundo.com>
59058
59059         * modules/gc-rijndael-tests (License): Put under LGPL.
59060
59061         * modules/gc-des-tests (License): Likewise.
59062
59063         * modules/gc-arcfour-tests (License): Likewise.
59064
59065         * modules/gc-arctwo-tests (License): Likewise.
59066
59067         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
59068
59069         * modules/gc-hmac-sha1-tests (Files): Likewise.
59070
59071         * modules/gc-hmac-md5-tests (License): Likewise.
59072
59073         * modules/gc-sha1-tests (License): Likewise.
59074
59075         * modules/gc-md5-tests (License): Likewise.
59076
59077         * modules/gc-md4-tests (License): Likewise.
59078
59079         * modules/gc-md2-tests (License): Likewise.
59080
59081         * modules/gc-tests (License): Likewise.
59082
59083         * modules/des-tests (License): Likewise.
59084
59085         * modules/md4-tests (License): Likewise.
59086
59087         * modules/md2-tests (License): Likewise.
59088
59089 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59090
59091         Sync from coreutils:
59092
59093         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
59094         * modules/lib-ignore: New file.
59095         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
59096         chdir-safer.m4, lchmod.m4.
59097         * modules/openat: Add mkdirat.c, openat-priv.h.
59098
59099 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59100
59101         Sync from coreutils.
59102         * m4/lib-ignore.m4: New file.
59103         * m4/lchmod.m4: New file.
59104
59105 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59106
59107         Sync from coreutils.
59108         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
59109         for write access: POSIX says that must fail.
59110         * lib/fts.c (diropen): Likewise.
59111         * lib/save-cwd.c (save_cwd): Likewise.
59112         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
59113         well, for minor improvements on hosts that lack O_DIRECTORY.
59114         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
59115         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
59116         Fall back on chown if open failed with EACCES.
59117
59118         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
59119         Report an error at compile-time if only a 1-second nominal clock
59120         resolution is found.
59121
59122         * lib/lchmod.h: New file.
59123         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
59124         (make_dir_parents): Use lchown rather than chown, and
59125         lchmod rather than chmod.
59126
59127         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
59128         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
59129         "proc" reported by n0dalus.
59130
59131         * lib/mountlist.c: Include <limits.h>.
59132         (dev_from_mount_options)
59133         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
59134         New function.  It no longer assumes "dev=" has the System V meaning
59135         on Linux (since it doesn't).  It also parses "dev=" more carefully.
59136         (read_file_system_list)
59137         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
59138         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
59139         dev= in that case.
59140
59141         * lib/posixtm.h (PDS_PRE_2000): New macro.
59142         * lib/posixtm.c (year): Arg is now syntax_bits rather than
59143         allow_century.  All usages changed.  Reject dates outside the range
59144         1969-1999 if PDS_PRE_2000 is used.
59145
59146 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59147
59148         Sync from coreutils.
59149         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
59150         (Time of day items): Mention the possibility of leap seconds.
59151         Problem reported by Dr. David Alan Gilbert.
59152
59153 2006-01-09  Jim Meyering  <jim@meyering.net>
59154
59155         Sync from coreutils.
59156
59157         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
59158
59159         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
59160
59161         * lib/modechange.c (mode_compile): Reject an invalid mode string
59162         that starts with an octal digit.  From Andreas Gruenbacher.
59163
59164         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
59165         and dup to open_safer and dup_safer, respectively.
59166         (openat_permissive): Fix typo in comment.
59167
59168         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
59169         "gettext.h"; either no longer needed or are guaranteed by openat.h.
59170         (_): Remove; no longer needed.
59171         (openat): Renamed from rpl_openat; no need for rpl_openat
59172         since openat.h renames openat for us.
59173         Replace most of the body with a call to openat_permissive,
59174         to avoid duplicate code.
59175         Port to (probably hypothetical) environments were mode_t is
59176         wider than int.
59177         (openat_permissive): Require mode arg, so that we can check
59178         types better.  Put it just after flags.  Change cwd failure
59179         indicator from pointer-to-bool to pointer-to-errno-value.
59180         All callers changed.
59181         Invoke openat_save_fail and/or openat_restore_fail if
59182         cwd_errno is null, so that openat can call us.
59183         (openat_permissive, fdopendir, fstatat, unlinkat):
59184         Simplify errno handling to avoid some duplicate code,
59185         as it's OK to set errno on success.
59186         * lib/openat.h: Revamp code so that function macros depend on
59187         __OPENAT_PREFIX only, not also on AT_FDCWD.
59188         (openat_ro): Remove.  Caller changed to use openat_permissive.
59189         (openat_permissive): Now a macro, if not a function.
59190         (openat_restore_fail, openat_save_fail): Now always functions,
59191         since mkdirat needs them even if __OPENAT_PREFIX is defined.
59192
59193         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
59194         and openat.c.
59195         * lib/mkdirat.c: Include openat-priv.h.
59196         Remove definitions of macros defined therein.
59197         * lib/openat.c: Likewise.
59198
59199         * lib/mkdirat.c (mkdirat): New file and function.
59200         * lib/openat.h (mkdirat): Declare.
59201
59202         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
59203
59204         * lib/openat.h (openat_permissive): Declare.
59205         (openat_ro): Define.
59206
59207         * lib/openat.c (EXPECTED_ERRNO): New macro.
59208         (openat_permissive): New function -- used in remove.c rewrite.
59209         (all functions): Set errno just before returning, only if there
59210         was an actual failure.
59211         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
59212
59213         Emulate openat-family functions using Linux's procfs, if possible.
59214         Idea and some code based on Ulrich Drepper's glibc changes.
59215
59216         * lib/openat.c: (BUILD_PROC_NAME): New macro.
59217         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
59218         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
59219         before falling back on save_cwd and restore_cwd.
59220         (fdopendir, fstatat, unlinkat): Likewise.
59221
59222         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
59223         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
59224
59225         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
59226         as second argument to va_arg.  Otherwise, some versions of gcc
59227         warn that `if this code is reached, the program will abort'.
59228
59229 2006-01-09  Jim Meyering  <jim@meyering.net>
59230
59231         Sync from coreutils.
59232         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
59233         Require openat-priv.h.
59234
59235 2006-01-09  Bruno Haible  <bruno@clisp.org>
59236
59237         * modules/strnlen (Include): Use strnlen.h.
59238
59239 2006-01-09  Bruno Haible  <bruno@clisp.org>
59240
59241         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
59242
59243 2006-01-09  Bruno Haible  <bruno@clisp.org>
59244
59245         * lib/sysexit_.h (EX_OK): New macro.
59246         Suggested by Martin Lambers <marlam@marlam.de>.
59247
59248 2006-01-09  Bruno Haible  <bruno@clisp.org>
59249
59250         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
59251         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
59252
59253 2006-01-09  Bruno Haible  <bruno@clisp.org>
59254
59255         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
59256         numbers.
59257
59258 2006-01-09  Bruno Haible  <bruno@clisp.org>
59259
59260         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
59261         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
59262         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
59263         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
59264
59265 2006-01-09  Bruno Haible  <bruno@clisp.org>
59266
59267         * build-aux/javacomp.sh.in: New file, moved from lib/.
59268         * modules/javacomp-script (Files): Update.
59269         (configure.ac): Add AC_CONFIG_FILES invocation.
59270         (EXTRA_DIST): Remove variable.
59271
59272         * build-aux/javaexec.sh.in: New file, moved from lib/.
59273         * modules/javaexec (Files): Update.
59274         (configure.ac): Add AC_CONFIG_FILES invocation.
59275         (EXTRA_DIST): Remove javaexec.sh.in.
59276
59277         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
59278         * modules/csharpcomp-script (Files): Update.
59279         (configure.ac): Add AC_CONFIG_FILES invocation.
59280         (EXTRA_DIST): Remove variable.
59281
59282         * build-aux/csharpexec.sh.in: New file, moved from lib/.
59283         * modules/csharpexec (Files): Update.
59284         (configure.ac): Add AC_CONFIG_FILES invocation.
59285         (EXTRA_DIST): Remove csharpexec.sh.in.
59286
59287 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
59288
59289         Sync from coreutils.
59290
59291         Add POSIX ACL support
59292         * lib/acl.h (copy_acl, set_acl): Add declarations.
59293         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
59294         systems other than Linux.
59295         (chmod_or_fchmod): New function: use fchmod when possible,
59296         and chmod otherwise.
59297         (file_has_acl): Add a POSIX ACL implementation, with a
59298         Linux-specific subcase.
59299         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
59300         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
59301         acls are unsupported.
59302         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
59303         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
59304         are unsupported.
59305
59306 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
59307
59308         Sync from coreutils.
59309         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
59310
59311 2006-01-07  Bruno Haible  <bruno@clisp.org>
59312
59313         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
59314         gl_EARLY.
59315
59316 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59317
59318         * lib/strftime.c (tzname): Don't declare if it is already #defined.
59319         Problem reported for Mingw by Mark Junker.
59320
59321 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59322
59323         * README: Gnulib normally doesn't generate a tarball.
59324
59325 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
59326
59327         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
59328         long int, not int, for nanosecond counts, so that people who are
59329         used to POSIX struct timespec won't be surprised.  Reported by Jim
59330         Meyering.
59331
59332 2005-12-28  Bruno Haible  <bruno@clisp.org>
59333
59334         * build-aux/config.rpath: Update from GNU gettext.
59335
59336 2005-12-16  Jim Meyering  <jim@meyering.net>
59337
59338         * modules/fprintftime: New module.
59339         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
59340
59341 2005-12-16  Jim Meyering  <jim@meyering.net>
59342
59343         * m4/fprintftime.m4: New file.
59344
59345 2005-12-16  Jim Meyering  <jim@meyering.net>
59346
59347         * lib/fprintftime.c, lib/fprintftime.h: New files.
59348
59349 2005-12-15  Simon Josefsson  <jas@extundo.com>
59350
59351         * modules/socklen (configure.ac): Fix M4 macro name, to align with
59352         new m4/socklen.m4.
59353
59354 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59355
59356         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
59357         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
59358
59359 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59360
59361         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
59362         * lib/argp-help.c (fill_in_uparams): Check if the constructed
59363         struct uparams is valid. Fall back to the default values if it is
59364         not.
59365
59366 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59367
59368         * modules/argp (Files): Add argp-pin.c
59369         (Depends-on): dirname
59370         (lib_SOURCES): Add argp-pin.c
59371
59372 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59373
59374         * m4/argp.m4:  Check if program_invocation_name and
59375         program_invocation_short_name are declared and define appropriate
59376         macros if they are not.
59377
59378 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59379
59380         * lib/argp-help.c (__argp_base_name): New function
59381         (__argp_short_program_name): Rewrite using __argp_base_name
59382         * lib/argp-namefrob.h: Define program_invocation_name and
59383         program_invocation_short_name if requested
59384         (__argp_base_name): Add prototype
59385         * lib/argp-parse.c (argp_def): Use gettext wrappers
59386         (argp_default_parser): Use __argp_base_name
59387         * lib/argp-pin.c: New file. Defines program_invocation_name and
59388         program_invocation_short_name on systems that lack them.
59389
59390 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59391
59392         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
59393         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
59394         porting problem reported by Georg Schwarz in
59395         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
59396
59397 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59398
59399         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
59400         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
59401         porting problem reported by Georg Schwarz in
59402         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
59403
59404 2005-12-05  Bruno Haible  <bruno@clisp.org>
59405
59406         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
59407         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
59408         Reported by Mark Junker <mjscod@gmx.de>.
59409
59410 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
59411
59412         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
59413         Use implementation from Albert Chin, with some
59414         comments/corrections by Stepan Kasal and myself.
59415
59416 2005-12-02  Bruno Haible  <bruno@clisp.org>
59417
59418         * gnulib-tool (func_import): Accept GPLed build tool modules when
59419         --lgpl is given.
59420         * modules/csharpcomp-script: New file.
59421         * modules/csharpcomp: Depend on it.
59422         * modules/javacomp-script: New file.
59423         * modules/javacomp: Depend on it.
59424         Suggested by Simon Josefsson.
59425
59426 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
59427
59428         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
59429         statement, to work around an HP-UX 10.20 compiler bug reported by
59430         Peter O'Gorman.
59431
59432 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
59433
59434         * modules/savedir (Depends-on): Add openat.
59435
59436 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
59437
59438         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
59439         (uintmax_t) [defined uintmax_t]: Do not declare.
59440         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
59441         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
59442         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
59443         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
59444         sake of portability to weird hosts that C allows (though we don't
59445         know of any practical examples).
59446
59447         * lib/savedir.h (fdsavedir): New decl.
59448         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
59449         contains most of the former guts of savedir.
59450         (savedir): Use savedirstream.
59451         Include "openat.h".
59452
59453 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59454
59455         * modules/obstack (Files): Add m4/ulonglong.m4.
59456         Problem reported by Davide Angelocola.
59457
59458 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59459
59460         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
59461         coreutils no longer futzes with rounding modes.
59462
59463 2005-11-14  Jim Meyering  <jim@meyering.net>
59464
59465         * lib/mkstemp-safer.c: Include <config.h>, required for possible
59466         replacement of mkstemp.
59467
59468 2005-11-10  Simon Josefsson  <jas@extundo.com>
59469
59470         * lib/readline.c: Remove EOL.
59471
59472 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59473
59474         * modules/gethrxtime (Depends-on): Add gettime.
59475
59476 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59477
59478         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
59479         or gettimeofday; no longer needed.
59480
59481 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59482
59483         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
59484         time business.
59485         (gethrxtime) [! (HAVE_NANOUPTIME
59486         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
59487         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
59488         our own approximation.
59489
59490 2005-11-08  Eric Blake  <ebb9@byu.net>
59491
59492         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
59493
59494 2005-11-08  Eric Blake  <ebb9@byu.net>
59495
59496         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
59497
59498 2005-11-04  Bruno Haible  <bruno@clisp.org>
59499
59500         * gnulib-tool: Implement --update mode.
59501
59502 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59503
59504         Fix porting problem reported by Theodoros V. Kalamatianos.
59505         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
59506         Don't assume that futimes failing means we must fail.
59507
59508 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59509
59510         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
59511         variables to suggest the intended function of the PATH_MAX check.
59512
59513 2005-10-30  Kean Johnston  <jkj@sco.com>
59514
59515         Trivial changes to support SCO systems.
59516         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
59517         as PATH_MAX.
59518         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
59519         where __ptr is null when no I/O is pending.
59520
59521 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59522
59523         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
59524         leave errno alone.  Problem reported by Dmitry V. Levin.
59525
59526 2005-10-28  Simon Josefsson  <jas@extundo.com>
59527
59528         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
59529         Test more.
59530
59531         * tests/test-gc-md2.c, tests/test-md2.c: New files.
59532
59533         * modules/md2, modules/md2-tests: New files.
59534
59535 2005-10-28  Simon Josefsson  <jas@extundo.com>
59536
59537         * m4/inet_ntop.m4: More tests.
59538
59539         * m4/gc-md2.m4, md2.m4: New file.
59540
59541 2005-10-28  Simon Josefsson  <jas@extundo.com>
59542
59543         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
59544         "restrict" keywords, as per POSIX.  Protect the function
59545         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
59546         Don't use K&R prototypes.  Check the sprintf return values.
59547         Re-define EAFNOSUPPORT if not present.  Indent.
59548
59549         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
59550         suggested by Bruno Haible <bruno@clisp.org>.
59551
59552         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
59553
59554         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
59555
59556         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
59557         libgcrypt).
59558
59559         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
59560
59561         * lib/md2.h, lib/md2.c: New files.
59562
59563 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
59564
59565         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
59566         errno alone.  Problem reported by Frederic Jolliton.
59567
59568 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59569
59570         * modules/verify (License): Change from GPL to LGPL.  This is a
59571         tiny module and there are apparently near-equivalents that are
59572         under the BSD license.
59573
59574 2005-10-24  Simon Josefsson  <jas@extundo.com>
59575
59576         * modules/sha1: Relicense to LGPL.
59577
59578 2005-10-24  Simon Josefsson  <jas@extundo.com>
59579
59580         * lib/md4.h: Shrink buffer size, now that we changed the type.
59581
59582 2005-10-23  Simon Josefsson  <jas@extundo.com>
59583
59584         * gnulib-tool (func_import): Fix --tests-base.
59585
59586 2005-10-22  Simon Josefsson  <jas@extundo.com>
59587
59588         * modules/arcfour (Depends-on): Need stdint.
59589
59590 2005-10-22  Simon Josefsson  <jas@extundo.com>
59591
59592         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
59593         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
59594
59595 2005-10-22  Simon Josefsson  <jas@extundo.com>
59596
59597         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
59598         suggested by Bruno Haible <bruno@clisp.org>.
59599
59600 2005-10-22  Simon Josefsson  <jas@extundo.com>
59601
59602         * lib/crc.h: Include stddef.h, for size_t.
59603
59604 2005-10-22  Simon Josefsson  <jas@extundo.com>
59605
59606         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
59607         arcfour_context struct (simplify test vector testing in GNU
59608         Shishi).
59609
59610 2005-10-21  Simon Josefsson  <jas@extundo.com>
59611
59612         * modules/des, modules/des-tests: New files.
59613
59614         * modules/gc-des, modules/gc-des-tests: New files.
59615
59616         * tests/test-des.c, tests/test-gc-des.c: New file.
59617
59618 2005-10-21  Simon Josefsson  <jas@extundo.com>
59619
59620         * modules/arctwo, modules/arctwo-tests: New files.
59621
59622         * tests/test-arctwo.c: New file.
59623
59624         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
59625
59626         * tests/test-gc-arctwo.c: New file.
59627
59628 2005-10-21  Simon Josefsson  <jas@extundo.com>
59629
59630         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
59631         Bruno Haible <bruno@clisp.org>.
59632
59633         * m4/gc-des.m4: New file.
59634
59635 2005-10-21  Simon Josefsson  <jas@extundo.com>
59636
59637         * m4/arctwo.m4: New file.
59638
59639         * m4/gc-arctwo.m4: New file.
59640
59641 2005-10-21  Simon Josefsson  <jas@extundo.com>
59642
59643         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
59644         block.
59645
59646 2005-10-21  Simon Josefsson  <jas@extundo.com>
59647
59648         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
59649         <bruno@clisp.org>.
59650
59651         * lib/hmac-sha1.c (hmac_sha1): Likewise.
59652
59653         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
59654         Bruno Haible <bruno@clisp.org>.
59655
59656         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
59657         <bruno@clisp.org>.
59658
59659 2005-10-21  Simon Josefsson  <jas@extundo.com>
59660
59661         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
59662
59663 2005-10-21  Simon Josefsson  <jas@extundo.com>
59664
59665         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
59666
59667 2005-10-21  Simon Josefsson  <jas@extundo.com>
59668
59669         * lib/des.h, lib/des.c: New files.
59670
59671         * lib/gc-gnulib.c: Support DES.c
59672
59673 2005-10-21  Simon Josefsson  <jas@extundo.com>
59674
59675         * lib/arctwo.h, lib/arctwo.c: New files.
59676
59677         * lib/gc-gnulib.c: Support ARCTWO.
59678
59679 2005-10-21  Simon Josefsson  <jas@extundo.com>
59680
59681         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
59682         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59683
59684 2005-10-21  Simon Josefsson  <jas@extundo.com>
59685
59686         * gnulib-tool (func_import, func_create_testdir): Define automake
59687         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
59688         Makefile.am snippet),
59689         suggested by Bruno Haible <bruno@clisp.org>.
59690
59691         * modules/gc (Makefile.am): Use it.
59692
59693 2005-10-21  Bruno Haible  <bruno@clisp.org>
59694
59695         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
59696         patch.
59697
59698 2005-10-19  Simon Josefsson  <jas@extundo.com>
59699
59700         * tests/test-gc-rijndael.c: New file.
59701
59702         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
59703
59704 2005-10-19  Simon Josefsson  <jas@extundo.com>
59705
59706         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
59707         interface too.
59708
59709 2005-10-19  Simon Josefsson  <jas@extundo.com>
59710
59711         * tests/test-gc-arcfour.c: New file.
59712
59713         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
59714
59715 2005-10-19  Simon Josefsson  <jas@extundo.com>
59716
59717         * modules/gc-md4, modules/gc-md4-tests: New file.
59718
59719         * tests/test-gc-md4.c: New file.
59720
59721 2005-10-19  Simon Josefsson  <jas@extundo.com>
59722
59723         * m4/gc-md4.m4: New file.
59724
59725 2005-10-19  Simon Josefsson  <jas@extundo.com>
59726
59727         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
59728         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
59729         <kasal@ucw.cz>.
59730
59731 2005-10-19  Simon Josefsson  <jas@extundo.com>
59732
59733         * m4/gc-arcfour.m4: New file.
59734
59735         * m4/gc-rijndael.m4: New file.
59736
59737 2005-10-19  Simon Josefsson  <jas@extundo.com>
59738
59739         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
59740
59741 2005-10-19  Simon Josefsson  <jas@extundo.com>
59742
59743         * lib/gc-gnulib.c: Support ARCFOUR.
59744
59745 2005-10-19  Simon Josefsson  <jas@extundo.com>
59746
59747         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
59748         support.
59749
59750         * lib/gc.h: Add ECB enum type.
59751
59752         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
59753
59754 2005-10-18  Simon Josefsson  <jas@extundo.com>
59755
59756         * tests/test-md5.c: New file.
59757
59758         * modules/md5-tests: New file.
59759
59760 2005-10-18  Simon Josefsson  <jas@extundo.com>
59761
59762         * tests/test-md4.c: New file.
59763
59764         * modules/md4, modules/md4-tests: New files.
59765
59766 2005-10-18  Simon Josefsson  <jas@extundo.com>
59767
59768         * m4/md4.m4: New file.
59769
59770 2005-10-18  Simon Josefsson  <jas@extundo.com>
59771
59772         * lib/md4.h, lib/md4.c: New files, based on md5.?.
59773
59774 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
59775
59776         * gnulib-tool (func_create_testdir): Omit the second check whether
59777         BUILT_SOURCES in nonempty.
59778
59779 2005-10-17  Simon Josefsson  <jas@extundo.com>
59780
59781         * tests/test-rijndael.c: New file.
59782
59783 2005-10-17  Simon Josefsson  <jas@extundo.com>
59784
59785         * modules/sha1: Depend on stdint instead of md5.
59786
59787         * modules/md5: Depend on stdint, remove uint32_t.
59788
59789 2005-10-17  Simon Josefsson  <jas@extundo.com>
59790
59791         * modules/gc-sha1-tests: New file.
59792
59793         * tests/test-gc-sha1.c: New file.
59794
59795 2005-10-17  Simon Josefsson  <jas@extundo.com>
59796
59797         * m4/md5.m4: Remove call to uint32_t.m4.
59798
59799 2005-10-17  Simon Josefsson  <jas@extundo.com>
59800
59801         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
59802
59803         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
59804         md5.h.
59805
59806         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
59807
59808         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
59809
59810 2005-10-17  Simon Josefsson  <jas@extundo.com>
59811
59812         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
59813
59814 2005-10-17  Simon Josefsson  <jas@extundo.com>
59815
59816         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
59817
59818 2005-10-17  Simon Josefsson  <jas@extundo.com>
59819
59820         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
59821
59822         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
59823
59824 2005-10-17  Bruno Haible  <bruno@clisp.org>
59825
59826         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
59827         that it can also be used in a test.
59828
59829 2005-10-16  Bruno Haible  <bruno@clisp.org>
59830
59831         * gnulib-tool (func_emit_tests_Makefile_am): Also define
59832         TESTS_ENVIRONMENT, so that individual tests can augment it.
59833
59834         * gnulib-tool (func_create_testdir): Use an intermediate target for
59835         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
59836         macros, like $(ALLOCA_H), which cannot be passed through the command
59837         line.
59838
59839 2005-10-15  Simon Josefsson  <jas@extundo.com>
59840
59841         * modules/rijndael-tests: New file.
59842
59843         * modules/rijndael: New file.
59844
59845 2005-10-15  Simon Josefsson  <jas@extundo.com>
59846
59847         * m4/rijndael.m4: New file.
59848
59849 2005-10-15  Simon Josefsson  <jas@extundo.com>
59850
59851         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
59852
59853         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
59854
59855 2005-10-14  Simon Josefsson  <jas@extundo.com>
59856
59857         * tests/test-arcfour.c: New file.
59858
59859         * modules/arcfour, modules/arcfour-tests: New files.
59860
59861 2005-10-14  Simon Josefsson  <jas@extundo.com>
59862
59863         * m4/arcfour.m4: New file.
59864
59865 2005-10-14  Simon Josefsson  <jas@extundo.com>
59866
59867         * lib/arcfour.h, lib/arcfour.c: New files.
59868
59869 2005-10-14  Roland McGrath  <roland@redhat.com>
59870
59871         Import from libc.  [BZ #1331]
59872         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
59873         macro argument.
59874         Reported by Matej Vela <vela@debian.org>.
59875
59876 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59877
59878         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
59879         include <wchar.h>; no longer needed.
59880
59881 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59882
59883         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
59884
59885 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
59886         and  Ulrich Drepper  <drepper@redhat.com>
59887
59888         Import from libc.
59889         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
59890         instead of inline stream orientation test and two separate
59891         function calls.  Pay no attention to USE_IN_LIBIO.
59892
59893 2005-10-13  Simon Josefsson  <jas@extundo.com>
59894
59895         * modules/gc-hmac-md5-tests: New file.
59896
59897         * tests/test-gc-hmac-sha1.c: New file.
59898
59899         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
59900
59901         * modules/gc-hmac-md5-tests: New file.
59902
59903         * tests/test-gc-md5.c: New file.
59904
59905         * modules/gc-md5-tests: New file.
59906
59907 2005-10-13  Simon Josefsson  <jas@extundo.com>
59908
59909         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
59910         Move memory allocation outside of loop.
59911
59912 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
59913
59914         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
59915         intermediate directory is in a read-only file system.  Problem
59916         reported by Eric Blake.
59917
59918 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
59919
59920         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
59921
59922 2005-10-12  Simon Josefsson  <jas@extundo.com>
59923
59924         * tests/test-hmac-sha1.c: New file.
59925
59926         * modules/hmac-sha1-tests: New file.
59927
59928         * modules/hmac-sha1: New file.
59929
59930 2005-10-12  Simon Josefsson  <jas@extundo.com>
59931
59932         * modules/gc-sha1: New file.
59933
59934 2005-10-12  Simon Josefsson  <jas@extundo.com>
59935
59936         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
59937
59938         * tests/test-gc-pbkdf2-sha1.c: New file.
59939
59940 2005-10-12  Simon Josefsson  <jas@extundo.com>
59941
59942         * modules/gc-md5, modules/gc-hmac-md5: New files.
59943
59944         * modules/gc (Files): Remove md5, memxor and hmac files.
59945
59946 2005-10-12  Simon Josefsson  <jas@extundo.com>
59947
59948         * m4/gc-pbkdf2-sha1.m4: New file.
59949
59950         * m4/gc-hmac-sha1.m4: New file.
59951
59952         * m4/gc-sha1: New file.
59953
59954         * m4/hmac-sha1.m4: New file.
59955
59956 2005-10-12  Simon Josefsson  <jas@extundo.com>
59957
59958         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
59959
59960         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
59961
59962 2005-10-12  Simon Josefsson  <jas@extundo.com>
59963
59964         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
59965         suggested by Bruno Haible <bruno@clisp.org>.
59966
59967 2005-10-12  Simon Josefsson  <jas@extundo.com>
59968
59969         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
59970
59971 2005-10-12  Simon Josefsson  <jas@extundo.com>
59972
59973         * lib/gc-pbkdf2-sha1.c: New file.
59974
59975         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
59976
59977 2005-10-12  Simon Josefsson  <jas@extundo.com>
59978
59979         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
59980
59981         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
59982
59983 2005-10-12  Simon Josefsson  <jas@extundo.com>
59984
59985         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
59986         GC_USE_HMAC_MD5, respectively.
59987
59988         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
59989         (gc_md5): Fix typo.
59990
59991         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
59992
59993         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
59994
59995         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
59996
59997 2005-10-12  Bruno Haible  <bruno@clisp.org>
59998
59999         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
60000         Reported by Stepan Kasal <kasal@ucw.cz>.
60001
60002 2005-10-11  Simon Josefsson  <jas@extundo.com>
60003
60004         * tests/test-crc.c: New file.
60005
60006         * modules/crc, modules/crc-tests: New files.
60007
60008 2005-10-11  Simon Josefsson  <jas@extundo.com>
60009
60010         * m4/crc.m4: New file.
60011
60012 2005-10-11  Simon Josefsson  <jas@extundo.com>
60013
60014         * lib/gc.h: Add gc_hash and gc_hash_buffer.
60015
60016         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
60017
60018         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
60019
60020 2005-10-11  Simon Josefsson  <jas@extundo.com>
60021
60022         * lib/crc.h, lib/crc.c: New files.
60023
60024         * lib/gc.h (gc_hash_buffer): Add doc.
60025
60026 2005-10-11  Bruno Haible  <bruno@clisp.org>
60027
60028         * modules/c-strcasestr: New file.
60029         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
60030
60031 2005-10-11  Bruno Haible  <bruno@clisp.org>
60032
60033         * modules/c-strcase: New file.
60034         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
60035
60036 2005-10-11  Bruno Haible  <bruno@clisp.org>
60037
60038         * lib/strcasecmp.c: Include limits.h.
60039         (strcasecmp): Avoid integer overflow on exotic platforms.
60040         * lib/strncasecmp.c: Include limits.h.
60041         (strncasecmp): Avoid integer overflow on exotic platforms.
60042         Reported by Paul Eggert.
60043
60044 2005-10-11  Bruno Haible  <bruno@clisp.org>
60045
60046         * lib/c-strcasestr.h: New file, from GNU gettext.
60047         * lib/c-strcasestr.c: New file, from GNU gettext.
60048
60049 2005-10-11  Bruno Haible  <bruno@clisp.org>
60050
60051         * lib/c-strcase.h: New file, from GNU gettext.
60052         * lib/c-strcasecmp.c: New file, from GNU gettext.
60053         * lib/c-strncasecmp.c: New file, from GNU gettext.
60054
60055 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60056
60057         * modules/mempcpy (License): GPL -> LGPL.
60058         * modules/strchrnul (License): Likewise.
60059         * modules/sysexits (License): Likewise.
60060
60061 2005-10-08  Simon Josefsson  <jas@extundo.com>
60062
60063         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
60064
60065 2005-10-07  Simon Josefsson  <jas@extundo.com>
60066
60067         * m4/memxor.m4: Remove gl_C_RESTRICT call.
60068
60069 2005-10-06  Simon Josefsson  <jas@extundo.com>
60070
60071         * tests/test-hmac-md5.c: New file.
60072
60073         * modules/hmac-md5-tests: New file.
60074
60075         * modules/hmac-md5: New file.
60076
60077 2005-10-06  Simon Josefsson  <jas@extundo.com>
60078
60079         * m4/hmac-md5.m4: New file.
60080
60081         * m4/memxor.m4: Require gl_C_RESTRICT.
60082
60083 2005-10-06  Simon Josefsson  <jas@extundo.com>
60084
60085         * lib/memxor.c (memxor): Avoid casts and warnings.
60086
60087 2005-10-06  Simon Josefsson  <jas@extundo.com>
60088
60089         * lib/hmac-md5.c: New file.
60090
60091         * lib/hmac.h: New file.
60092
60093 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60094
60095         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
60096         promotes to int, not unsigned int, to catch the AIX 5.3
60097         compiler bug.
60098
60099 2005-10-05  Simon Josefsson  <jas@extundo.com>
60100
60101         * modules/memxor: New file.
60102
60103         * modules/iconv (Files): Move config.rpath to havelib, it is used
60104         there.
60105
60106         * modules/havelib (Files): Add config.rpath.
60107
60108 2005-10-05  Simon Josefsson  <jas@extundo.com>
60109
60110         * m4/memxor.m4: New file.
60111
60112 2005-10-05  Simon Josefsson  <jas@extundo.com>
60113
60114         * lib/memxor.c (memxor): Fix compiler error.
60115
60116         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
60117         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
60118
60119         * lib/memxor.h, lib/memxor.c: New files.
60120
60121         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
60122         we assume all systems have it, suggested by Jim Meyering
60123         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
60124         any systems lack sys/socket.h; mingw32 is known to lack it, but we
60125         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
60126         same reasons.
60127
60128 2005-10-05  Simon Josefsson  <jas@extundo.com>
60129
60130         * config/srclist.txt: Add glibc bug 1423 for md5.h.
60131
60132 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60133
60134         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
60135         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
60136         needed, since the source code now assumes these .h files.
60137
60138 2005-10-05  Derek Price  <derek@ximbiot.com>
60139
60140         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
60141
60142 2005-10-05  Bruno Haible  <bruno@clisp.org>
60143
60144         * modules/stdint (License): Change to LGPL.
60145
60146 2005-10-04  Simon Josefsson  <jas@extundo.com>
60147
60148         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
60149         D. Baushke" <mdb@gnu.org>.
60150
60151 2005-10-04  Bruno Haible  <bruno@clisp.org>
60152
60153         * lib/verify.h (verify_true): Provide alternative definition for C++.
60154
60155 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60156
60157         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
60158         (SSIZE_MAX): New macro, if not already defined.
60159         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
60160         than 2 GiB.
60161
60162 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60163
60164         Sync from coreutils.
60165         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
60166         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
60167         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
60168         ULLONG_MAX doesn't work with 2.7.2.1.
60169
60170 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60171
60172         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
60173         From Ben Pfaff.
60174
60175         * modules/exclude (Depends-on): Depend on verify.
60176         * modules/strtoimax (Depends-on): Likewise.
60177         * modules/utimecmp (Depends-on): Likewise.
60178
60179 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
60180
60181         * lib/exclude.c: Include verify.h.
60182         (verify): Remove.  All callers changed to use verify.h's version.
60183         * lib/strtoimax.c: Likewise.
60184         * lib/utimecmp.c: Likewis.e
60185
60186         Sync from coreutils.
60187         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
60188         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
60189         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
60190         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
60191         bother returning ENOSYS if settimeofday or stime fails; just let
60192         them return whatever errno they want to return.
60193         * lib/utimens.c: Include unistd.h, for dup2.
60194         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
60195         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
60196
60197 2005-10-02  Jim Meyering  <jim@meyering.net>
60198
60199         Sync from coreutils.
60200         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
60201         from glibc-2.2.5 that fails for read-only files.
60202
60203 2005-10-02  Jim Meyering  <jim@meyering.net>
60204
60205         Sync from coreutils.
60206         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
60207         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
60208         `#if HAVE_CONFIG_H'.
60209         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
60210         Remove AT_FDCWD test.
60211         Do not consume the fd unless successful.
60212         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
60213         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
60214         block, so that we don't even try to compile it if settimeofday is
60215         available.  This works around a compilation failure on OSF1 V5.1,
60216         due to stime requiring a `long int*' while tv_sec is `int'.
60217
60218 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
60219
60220         Sync from coreutils.
60221         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
60222         against `yes', rather than just testing for nonempty.
60223
60224 2005-10-01  Simon Josefsson  <jas@extundo.com>
60225
60226         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
60227         and Darwin.
60228
60229         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
60230         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
60231         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
60232         freeaddrinfo and gai_strerror are declared by the POSIX headers.
60233         Check if struct addrinfo is declared.
60234
60235 2005-10-01  Simon Josefsson  <jas@extundo.com>
60236
60237         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
60238         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
60239         AI_* and EAI_* definitions.  Protect function declarations.
60240
60241 2005-10-01  Jim Meyering  <jim@meyering.net>
60242
60243         Sync from coreutils.
60244
60245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
60246         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
60247         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
60248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
60249         in the inet and nsl libraries.  Required on Solaris 5.7.
60250
60251 2005-10-01  Jim Meyering  <jim@meyering.net>
60252
60253         Sync from coreutils.
60254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
60255         in the inet and nsl libraries.  Required on Solaris 5.7.
60256
60257 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
60258
60259         * lib/getdelim.c (getdelim): Remove unused variables.
60260
60261 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60262
60263         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
60264         so that the code works even with ancient cpp.  Portability problem
60265         with GCC 2.7.2.1 reported by Thomas M.Ott.
60266
60267 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60268
60269         * modules/regex (Depends-on): Add strcase.
60270
60271         * modules/gethostname (Licence): Change from GPL to LGPL, since
60272         gethostname.c is a trivial implementation of a standard library
60273         function.
60274         * modules/poll (License): Change from GPL to LGPL, since it's
60275         derived from LGPL code.
60276
60277 2005-09-27  Jim Meyering  <jim@meyering.net>
60278
60279         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
60280         HAVE_CONFIG_H.
60281
60282         * lib/intprops.h (signed_type_or_expr__): Define.
60283         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
60284         for unsigned types.
60285
60286 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60287
60288         * lib/verify.h (verify_expr): Remove, replacing with:
60289         (verify_true): New macro that returns true instead of void.
60290         (verify_type__): Remove.
60291         (verify): Use verify_true rather than verify_type__.
60292
60293 2005-09-26  Bruno Haible  <bruno@clisp.org>
60294
60295         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
60296         is necessary.
60297         (lib_SOURCES): Remove mbchar.c.
60298         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
60299         (Files): Add m4/mbrtowc.m4.
60300         * modules/mbiter: Likewise.
60301         * modules/mbuiter: Likewise.
60302
60303 2005-09-26  Bruno Haible  <bruno@clisp.org>
60304
60305         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
60306         compile mbchar.c if they are not both present.
60307         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
60308         * m4/mbiter.m4 (gl_MBITER): Likewise.
60309         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
60310         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
60311         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
60312
60313 2005-09-25  Jim Meyering  <jim@meyering.net>
60314
60315         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
60316         also uses socklen_t.
60317
60318 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
60319
60320         * lib/utimens.c (ENOSYS): Define if not already defined.
60321         (futimens): Support having a null PATH if the file descriptor
60322         is nonnegative.
60323
60324         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
60325         Remove.
60326         (__attribute): Define to empty unless GCC 3.1 or later.
60327         This works around a core dump on OpenBSD 3.4, which has GCC
60328         2.95.3, which dumps core when given __attribute__(()).  It also
60329         simplifies other tests, since we really don't want to bother with
60330         worrying about which ancient version of GCC supported what.
60331         Original problem reported by Yoann Vandoorselaere, with part of
60332         the fix suggested by Derek Price.
60333
60334 2005-09-24  Jim Meyering  <jim@meyering.net>
60335
60336         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
60337         so we can once again use a positive bitfield width of 1 -- now we
60338         don't have to explain why we were using a bitfield width of 2.
60339
60340 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
60341
60342         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
60343         and similarly for the other external symbols.  Problem reported
60344         by James Gallager.
60345
60346         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
60347         bug reported by Jim Meyering.
60348
60349         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
60350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
60351         not needed, since socklen is a prerequisite module.
60352
60353 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
60354
60355         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
60356         Problem reported by Eric Blake.
60357         (getaddrinfo): Initialize se so that it's not garbage.
60358         Redo internal storage allocation so that it doesn't make unportable
60359         assumptions about alignment.
60360         Fix a memory leak.
60361
60362         * lib/utimens.c (futimens): Use futimesat if available.
60363         Prefer it to futimes since it doesn't have the futimes bug.
60364
60365         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
60366         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
60367         Instead, declare a function that returns a pointer to an array,
60368         and use verify_type__ to declare the size of the array.
60369         Problem and germ of a solution reported by Bruno Haible.
60370         (verify_type__): Use 2, not 1, for bitfield size, to avoid
60371         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
60372
60373 2005-09-23  Jim Meyering  <jim@meyering.net>
60374
60375         Sync from coreutils.
60376         Correct build failure (socklen_t not defined) on at least
60377         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
60378         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
60379
60380 2005-09-23  Jim Meyering  <jim@meyering.net>
60381
60382         * modules/getaddrinfo (Depends-on): Add socklen.
60383
60384 2005-09-23  Bruno Haible  <bruno@clisp.org>
60385
60386         * tests/test-verify.c: New file.
60387
60388 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60389
60390         Sync from coreutils.
60391
60392         * modules/argmatch (Depends-on): Add verify.
60393         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
60394         unistd-safer.
60395         * modules/save-cwd (Depends-on): Likewise.
60396
60397         * modules/openat (Files): Add lib/openat-die.c.
60398         (Depends-on): Remove error, exitfail.
60399         Add dirname.
60400
60401         * modules/verify: New file.
60402         * MODULES.html.sh (Diagnostics <assert.h>): New section,
60403         with "verify" module.
60404
60405 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60406
60407         Sync from coreutils.
60408
60409         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
60410         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
60411         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
60412         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
60413         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
60414         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
60415         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
60416         Don't bother checking for string.h, stdlib.h, unistd.h.
60417         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
60418         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
60419         module's job.
60420         * m4/jm-macros.m4 (gl_MACROS): Likewise.
60421         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
60422
60423         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
60424         (gl_GETDATE): Use it.
60425
60426         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
60427
60428 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60429
60430         Sync from coreutils.
60431
60432         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
60433         stat-time.h.
60434         * lib/argmatch.h: Include verify.h
60435         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
60436         (ARGMATCH_ASSERT): Remove; unused.
60437         * lib/canonicalize.c: Assume STDC_HEADERS.
60438         * lib/exclude.c: Include "strcase.h".
60439         * lib/regex_internal.h [!defined _LIBC]: Likewise.
60440         * lib/getusershell.c: Include stdio--.h rather than stdio.h
60441         and stdio-safer.h.
60442         (getusershell): Call fopen, not fopen_safer.
60443         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
60444         Do not include unistd-safer.h.
60445         (save_cwd): Don't call fd_safer; no longer needed
60446         now that we include fcntl--.h.
60447
60448         * lib/getdate.y (relative_time): New type.
60449         (RELATIVE_TIME_0): New constant.
60450         (parser_control): Use relative_time instead of doing it ourselves.
60451         (%union): Add new relative_time rel member.
60452         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
60453         Now typeless.
60454         (relunit, relunit_snumber): Now of type rel.
60455         (zone, rel, relunit, get_date): Adjust to above changes.
60456
60457         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
60458         Do not include unistd-safer.h.
60459         (getloadavg): Don't call fd_safer; no longer needed
60460         now that we include fcntl--.h.
60461
60462         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
60463         (make_dir_parents): Treat ENOSYS like EEXIST.
60464
60465         Improve quality of diagnostics on restore_cwd failure.
60466         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
60467         (make_dir_parents): Last arg is now int * (for errno), not bool *.
60468         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
60469         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
60470         each time through the loop.  Do not diagnose restore_cwd failure;
60471         that is the caller's job (and perhaps the caller does not care).
60472
60473         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
60474         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
60475         If the file already exists but is not a directory, don't bother
60476         to try to make its parents.
60477         Close potential file descriptor leak if we can't chdir("/") (!).
60478         Don't always return true if chdir($PWD) fails; return true only
60479         if the requested action was done successfully (except for the
60480         chdir($PWD)).
60481         Don't log final directory unless we actually made it.
60482         Refactor to avoid duplicate code to fix up permissions.
60483         Don't attempt to fix up parent permissions if chdir($PWD) fails.
60484
60485         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
60486         to make it a bit faster and (I hope) clearer.
60487         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
60488         Fix bug in formats like %2N.
60489
60490         * lib/verify.h: New file.
60491
60492 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60493
60494         Sync from coreutils.
60495         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
60496
60497 2005-09-22  Jim Meyering  <jim@meyering.net>
60498
60499         Sync from coreutils.
60500
60501         * m4/lstat.m4 (gl_FUNC_LSTAT):
60502         Use AC_LIBSOURCES to require lstat.c and lstat.h.
60503         Remove obsolete comment.
60504         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
60505         * m4/xstrtod.m4: Likewise.
60506
60507         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
60508
60509 2005-09-22  Jim Meyering  <jim@meyering.net>
60510
60511         Sync from coreutils.
60512
60513         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
60514
60515         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
60516         the .tm_year member, since otherwise gcc-4.0 would now warn about
60517         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
60518
60519         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
60520         order to avoid an unsuppressible warning from gcc on 64-bit systems.
60521
60522         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
60523         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
60524         when run in a time zone for which daylight savings time is in effect
60525         for the starting date.
60526
60527         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
60528         stop us from restricting permissions of just-created absolute-named
60529         directories.
60530         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
60531         to restore initial working directory.
60532         * lib/mkdir-p.c (make_dir_parents): New parameter:
60533         different_working_dir, to tell caller if/when we change the working
60534         directory and are unable to return to the initial one.
60535         * lib/mkdir-p.h (make_dir_parents): Update prototype.
60536         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
60537         `return false'.  This fixes a bug introduced on 2004-07-30.
60538
60539         * lib/openat.c (fdopendir): Be sure to close the supplied
60540         file descriptor before returning.  This makes our replacement
60541         implementation a little closer to Solaris's, where fdopendir
60542         ties the file descriptor to the returned DIR* pointer.
60543         * lib/openat.c (unlinkat): New function.
60544         * lib/openat.h (unlinkat): Add prototype.
60545         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
60546         (openat_restore_fail): Rename from openat_restore_die.
60547         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
60548
60549         Provide an alternative to exiting immediately upon save_cwd or
60550         restore_cwd failure.  Now, an application can arrange e.g.,
60551         to perform a longjump in that case.
60552         * lib/openat.c: Include dirname.h.
60553         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
60554         (rpl_openat, fdopendir, fstatat): Call openat_save_die
60555         and openat_restore_die rather than calling error directly.
60556         Don't include "error.h" or "exitfail.h"; they're no longer needed.
60557
60558         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
60559         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
60560         define.
60561
60562         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
60563         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
60564                             int utc, int nanoseconds);
60565         Background:
60566         date should not have to allocate a megabyte of virtual memory to
60567         handle a format argument like +%1048575T.  When implemented with
60568         strftime, it must allocate such a buffer, use strftime to fill it
60569         in, print it, then free it.
60570         With fprintftime, it simply prints everything and exits.
60571         With no need for memory allocation, that's one fewer way to fail.
60572         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
60573         optional field width, not before, so we accept %9:z, not %:9z.
60574         (my_strftime): Be sure to use L_('x') for literals.
60575
60576         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
60577         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
60578         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
60579         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
60580         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
60581         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
60582         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
60583         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
60584         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
60585         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
60586         * lib/xgethostname.c, lib/xreadlink.c:
60587         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
60588
60589         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
60590         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
60591         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
60592         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
60593         and don't include <sys/file.h>).
60594
60595 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
60596
60597         Sync from coreutils.
60598
60599         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
60600         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
60601         [!LDAV_DONE]: Avoid unused variable warning.
60602
60603 2005-09-21  Bruno Haible  <bruno@clisp.org>
60604
60605         * lib/unicodeio.h (unicode_to_mb): New declaration.
60606
60607 2005-09-20  Derek Price  <derek@ximbiot.com>
60608
60609         * lib/getaddrinfo.c: Don't include <netdb.h> included from
60610         getaddrinfo.h.
60611
60612 2005-09-20  Bruno Haible  <bruno@clisp.org>
60613
60614         * gnulib-tool: Remove trailing slashes from the values specified for
60615         --source-base, --m4-base, --tests-base, --aux-dir.
60616         Suggested by Simon Josefsson <jas@extundo.com>.
60617
60618 2005-09-20  Bruno Haible  <bruno@clisp.org>
60619
60620         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
60621         func_modules_to_filelist, func_import, func_create_testdir): Make all
60622         sorting results locale-independent, so that gnulib-cache.m4 doesn't
60623         change when gnulib-tool is invoked in a different locale.
60624
60625 2005-09-19  Simon Josefsson  <jas@extundo.com>
60626
60627         * m4/socklen.m4: Fix typo.
60628
60629 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60630
60631         Use a consistent style for including <config.h>.
60632         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
60633         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
60634         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
60635         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
60636         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
60637         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
60638         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
60639         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
60640         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
60641         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
60642         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
60643         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
60644         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
60645         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
60646         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
60647         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
60648         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
60649         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
60650         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
60651         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
60652         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
60653         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
60654         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
60655         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
60656         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
60657         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
60658         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
60659         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
60660         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
60661         lib/xstrtoumax.c, lib/yesno.c:
60662         Standardize inclusion of config.h.
60663         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
60664         lib/inttostr.h:  Removed inclusion of config.h from header files.
60665         * lib/inttostr.c:  Adjusted in-tree users.
60666         * lib/timespec.h: Remove superfluous warning to include config.h.
60667         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
60668         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
60669         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
60670         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
60671         config.h with HAVE_CONFIG_H.
60672
60673 2005-09-19  Jim Meyering  <jim@meyering.net>
60674
60675         * modules/pathmax (License): Change to LGPL.
60676
60677 2005-09-19  Derek Price  <derek@ximbiot.com>
60678
60679         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
60680
60681 2005-09-19  Bruno Haible  <bruno@clisp.org>
60682
60683         * gnulib-tool (import): Provide default for --tests-base.
60684
60685 2005-09-19  Bruno Haible  <bruno@clisp.org>
60686
60687         * doc/quote.texi: New file, extracted from gnulib.texi.
60688         * doc/ctime.texi: New file, extracted from gnulib.texi.
60689         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
60690         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
60691         * doc/gnulib.texi: Include them.
60692
60693 2005-09-18  Bruno Haible  <bruno@clisp.org>
60694
60695         Portability fix.
60696         * gnulib-tool (func_readlink): New function.
60697         (func_ln_if_changed): Use it.
60698
60699 2005-09-18  Bruno Haible  <bruno@clisp.org>
60700
60701         * gnulib-tool: Support --with-tests also with --import.
60702         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
60703         (func_import): Use variables $testsbase and $inctests. Emit a
60704         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
60705         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
60706         SUBDIRS += $testsdir.
60707         (func_create_testdir): Update.
60708
60709 2005-09-18  Bruno Haible  <bruno@clisp.org>
60710
60711         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
60712         instead of $dry_run.
60713         (func_cp_if_changed, func_mv_if_changed): Remove functions.
60714         (func_ln_if_changed): Don't handle dry-run here.
60715         (func_import): In dry-run mode, detect more precisely which actions
60716         would be performed, and don't use "...ing" verbs.
60717
60718 2005-09-18  Bruno Haible  <bruno@clisp.org>
60719
60720         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
60721         (func_import): Use join on two temporary files instead of three nested
60722         loops, in order to determine which files are new or old.
60723
60724 2005-09-18  Bruno Haible  <bruno@clisp.org>
60725
60726         * gnulib-tool (func_import): Comment out code that spits out the
60727         new files with --dry-run.
60728
60729 2005-09-18  Bruno Haible  <bruno@clisp.org>
60730
60731         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
60732
60733 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60734
60735         * lib/stat-time.h: New file.
60736         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
60737         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
60738         in a different way.
60739         (timespec_cmp): New function.
60740         * lib/utimecmp.c: Include stat-time.h.
60741         (SYSCALL_RESOLUTION): Depend on whether various struct stat
60742         members exist, not on the obsolescent ST_MTIM_NSEC.
60743         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
60744
60745 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60746
60747         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
60748
60749 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
60750
60751         * MODULES.html.sh (File system functions): Add stat-time.
60752         * modules/stat-time: New file.
60753         * modules/timespec (Files): Remove m4/st_mtim.m4; this
60754         is now done in a different way, by the stat-time module.
60755         * modules/utimecmp (Depends-on): Add stat-time.
60756
60757 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60758
60759         * m4/st_mtim.m4: Remove.  Superseded by...
60760         * m4/stat-time.m4: New file.
60761         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
60762         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
60763
60764 2005-09-15  Derek Price  <derek@ximbiot.com>
60765
60766         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
60767
60768 2005-09-15  Derek Price  <derek@ximbiot.com>
60769
60770         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
60771         * lib/regex_internal.c: Ditto, using this...
60772         (__GNUC_PREREQ): ...new macro.
60773         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
60774         using...
60775         (__GNUC_PREREQ): ...this new macro.
60776
60777         * lib/strstr.h: Include string.h. Define strstr as a macro here.
60778
60779 2005-09-15  Derek Price  <derek@ximbiot.com>
60780             Paul Eggert  <eggert@cs.ucla.edu>
60781
60782         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
60783         changes, consolidating in...
60784         * lib/regex_internal.h: ...this file.
60785
60786 2005-09-13  Jim Meyering  <jim@meyering.net>
60787
60788         * lib/canon-host.c: Filter through gnu indent and reword comments
60789         slightly.
60790         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
60791
60792 2005-09-13  Derek Price  <derek@ximbiot.com>
60793
60794         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
60795         failure.
60796         Reported by Jim Meyering  <jim@meyering.net>.
60797
60798 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60799
60800         * lib/base64.c: Typo.
60801         (base64_encode): Put b64str in initialized data section.
60802
60803 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
60804
60805         Merge glibc and coreutils changes into gnulib, plus a few
60806         extra fixes.
60807         * lib/md5.c: Use #error rather than a string.
60808         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
60809         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
60810         (__attribute__): Define to empty for non recent-GCC.
60811         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
60812         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
60813         Renamed from their non-__ counterparts, with new macros replacing
60814         them if not _LIBC.  Add __THROW attribute.
60815         (rol): Remove.
60816         (struct md5_ctx): Align buffer if using GCC.
60817         * lib/sha1.h (struct sha1_ctx): Likewise.
60818         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
60819         The old name was backwards.
60820         (NOTSWAP): Remove; not used.
60821         (rol): New macro, moved here from md5.h.
60822         (sha1_process_block): Remove a FIXME that doesn't make sense.
60823
60824 2005-09-12  Derek Price  <derek@ximbiot.com>
60825
60826         Return usable errors from canon-host.
60827         * lib/canon-host.h: New file.
60828         * lib/canon-host.c (canon_host): Wrap...
60829         (canon_host_r): ...this new function, which now relies exclusively on
60830         getaddrinfo.
60831         (ch_strerror): New function.
60832         (last_cherror): New global.
60833         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
60834         interface.
60835         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
60836         void *.
60837         (freeaddrinfo): Free ai->ai_canonname when set.
60838
60839 2005-09-12  Derek Price  <derek@ximbiot.com>
60840
60841         Make canon-host require getaddrinfo.
60842         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
60843         AC_LIBSOURCE canon-host.h.  Call...
60844         (gl_PREREQ_CANON_HOST): ...this new function, which requires
60845         gl_GETADDRINFO.
60846         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
60847
60848 2005-09-12  Derek Price  <derek@ximbiot.com>
60849
60850         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
60851         LGPL.
60852         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
60853
60854 2005-09-12  Derek Price  <derek@ximbiot.com>
60855
60856         * lib/gai_strerror.c: Include config.h when available.  Include
60857         getaddrinfo.h before other headers to test interface.
60858         Reported by Larry Jones <lawrence.jones@ugs.com>.
60859
60860 2005-09-12  Derek Price  <derek@ximbiot.com>
60861             Paul Eggert  <eggert@cs.ucla.edu>
60862
60863         * modules/glob (Files): Add glob-libc.h.
60864
60865 2005-09-12  Derek Price  <derek@ximbiot.com>
60866             Paul Eggert  <eggert@cs.ucla.edu>
60867
60868         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
60869         glob_.h, glob-libc.h.
60870         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
60871
60872 2005-09-12  Derek Price  <derek@ximbiot.com>
60873             Paul Eggert  <eggert@cs.ucla.edu>
60874
60875         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
60876         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
60877         protecting things that should be done only in gnulib contexts.
60878         * lib/glob_.h: New file, containing only the glob things needed for
60879         gnulib.
60880         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
60881         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
60882         (glob, globfree, glob_pattern_p): Now defined simply in terms of
60883         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
60884         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
60885         and to respect the namespace rules better.
60886
60887 2005-09-08  Simon Josefsson  <jas@extundo.com>
60888
60889         * modules/socklen: New file.
60890
60891 2005-09-08  Simon Josefsson  <jas@extundo.com>
60892
60893         * m4/socklen.m4: New file.
60894
60895 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60896
60897         * modules/utimens (Files): Add m4/utimbuf.m4, since
60898         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
60899         Reported by Sergey Poznyakoff.
60900
60901 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60902
60903         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
60904         definitions, since that's the preferred style in glibc.
60905         Fix a minor spacing issue, and update copyright notice to match
60906         glibc's.
60907
60908 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60909
60910         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
60911
60912 2005-09-06  Simon Josefsson  <jas@extundo.com>
60913
60914         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
60915         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
60916
60917 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60918
60919         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
60920         warning.
60921
60922 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60923
60924         * config/srclist.txt: Add glibc bug 1302.
60925
60926 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
60927
60928         Change bitset word type from unsigned int to unsigned long int,
60929         as this has better performance on typical 64-bit hosts.
60930         Port bitset code to hosts with unusual word sizes.
60931         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
60932         (build_collating_symbol):
60933         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
60934         argument is a bitset.  This is merely a style issue, but it makes
60935         it clearer that an entire array is expected.
60936         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
60937         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
60938         Port to the case where bitset_word is not the same as unsigned int.
60939         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
60940         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
60941         Likewise.
60942         * lib/regexec.c (check_dst_limits_calc_pos_1,
60943         check_subexp_matching_top):
60944         (build_trtable, group_nodes_into_DFAstates):
60945         Likewise.
60946         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
60947         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
60948         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
60949         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
60950         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
60951         * lib/regcomp.c (optimize_subexps, lower_subexp):
60952         Work even if bitset_word has holes in its bitwise representation.
60953         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
60954         * lib/regexec.c (check_dst_limits_calc_pos_1,
60955         check_subexp_matching_top):
60956         Likewise.
60957         * lib/regex_internal.c (re_string_reconstruct):
60958         Don't assume UCHAR_MAX == 255.
60959         * lib/regex_internal.h (bitset_set_all): Likewise.
60960         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
60961         All uses changed.
60962         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
60963         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
60964         All uses changed.
60965         (BITSET_WORD_MAX): New macro.
60966         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
60967         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
60968         (bitset_empty, bitset_copy):
60969         Prefer sizeof (bitset) to multiplying it out ourselves.
60970         (bitset_not_merge): Remove; unused.
60971         (bitset_contain): Return bool, not unsigned int with one bit on.
60972         All callers changed.
60973         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
60974         alignment than re_node_set; do this by defining a new internal
60975         type struct dests_alloc and using it to allocate memory.
60976
60977 2005-09-05  Bruno Haible  <bruno@clisp.org>
60978
60979         * gnulib-tool (func_import): Fix comparison in handling of symbolic
60980         links.
60981
60982 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
60983
60984         * modules/size_max (Makefile.am): Add size_max.h
60985
60986 2005-09-04  Derek Price  <derek@ximbiot.com>
60987
60988         * gnulib-tool (func_import): Fix reversed $symbolic logic.
60989
60990 2005-09-03  Simon Josefsson  <jas@extundo.com>
60991
60992         * gnulib-tool: Fix typo.
60993
60994 2005-09-03  Simon Josefsson  <jas@extundo.com>
60995
60996         * config/srclist.txt: Add glibc bug 1293.
60997
60998 2005-09-03  Derek Price  <derek@ximbiot.com>
60999
61000         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
61001         From Larry Jones <lawrence.jones@ugs.com>.
61002
61003 2005-09-02  Simon Josefsson  <jas@extundo.com>
61004
61005         * modules/socklen: New file.
61006
61007 2005-09-02  Simon Josefsson  <jas@extundo.com>
61008
61009         * modules/havelib: New module.
61010
61011         * modules/gettext, modules/iconv, modules/lock, modules/readline:
61012         Use havelib.
61013
61014 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61015
61016         Check for arithmetic overflow when calculating sizes, to prevent
61017         some buffer-overflow issues.  These patches are conservative, in the
61018         sense that when I couldn't determine whether an overflow was possible,
61019         I inserted a run-time check.
61020         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
61021         macros.
61022         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
61023         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
61024         (re_xnrealloc, re_x2nrealloc): New inline functions.
61025         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
61026         parse_bracket_exp):
61027         (build_equiv_class, build_charclass): Check for arithmetic overflow
61028         in size expression calculations.
61029         * lib/regex_internal.c (re_string_realloc_buffers):
61030         (build_wcs_upper_buffer, re_node_set_add_intersect):
61031         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
61032         (re_dfa_add_node, register_state): Likewise.
61033         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
61034         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
61035         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
61036         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
61037
61038 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61039
61040         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61041         m4/ulonglong.m4.  Problem reported by Martin Lambers.
61042
61043 2005-09-02  Bruno Haible  <bruno@clisp.org>
61044
61045         Support for lib vs. lib64 distinction on biarch platforms.
61046         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
61047         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
61048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
61049
61050 2005-09-02  Bruno Haible  <bruno@clisp.org>
61051
61052         * gnulib-tool (import): In the other first-use case, provide defaults
61053         as well.
61054
61055 2005-09-02  Bruno Haible  <bruno@clisp.org>
61056
61057         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
61058         patches not yet found in the latest gettext release.
61059
61060 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61061
61062         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
61063         to avoid a collision with bits/local_lim.h in glibc.
61064         All uses changed.  Problem reported by Dmitry V. Levin in
61065         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
61066
61067         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
61068         bugs in int versus size_t comparisons.
61069         (re_string_context_at): Fix bug where the code assumed that
61070         Idx is signed.
61071
61072         Use bool where appropriate.
61073         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
61074         All callers changed.
61075         (calc_eclosure_iter): Likewise, for ROOT arg.
61076         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
61077         (build_charclass_op): Likewise, for NON_MATCH arg.
61078         * lib/regex_internal.c (re_string_allocate, re_string_construct):
61079         (re_string_construct_common): Likewise, for ICASE arg.
61080         * lib/regexec.c (re_search_2_stub, re_search_stub):
61081         Likewise, for RET_LEN arg.
61082         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
61083         (set_regs): Likewise, for FL_BACKTRACK arg.
61084         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
61085         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
61086         (calc_eclosure_iter, parse_bracket_exp):
61087         Use bool for internal variables that are booleans.
61088         * lib/regexec.c (re_search_internal, check_matching,
61089         proceed_next_node):
61090         (set_regs, build_sifted_states, sift_states_bkref):
61091         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
61092         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
61093         (find_collation_sequence_value):
61094         Likewise.
61095         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
61096         (re_node_set_compare):
61097         Return bool, not int. All callers changed.
61098         * lib/regexec.c (check_halt_node_context, check_dst_limits):
61099         (build_trtable, check_node_accept): Likewise.
61100         * lib/regex_internal.h: Include stdbool.h.
61101
61102         Fix bugs uncovered when converting to bool.
61103         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
61104         failure instead of charging ahead blindly.
61105         * lib/regex_internal.c (register_state): Likewise.
61106         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
61107         for freeing internal storage.
61108         (group_nodes_into_DFA_states): Use unsigned int, not int, for
61109         bitset pieces used as boolean, to avoid undefined behavior
61110         on hosts that do int overflow checking.
61111
61112 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61113
61114         * config/srclist.txt: Add glibc bugs 1285-1287.
61115
61116 2005-09-01  Jim Meyering  <jim@meyering.net>
61117
61118         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
61119         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
61120         Require gl_STAT_MACROS, too.
61121
61122 2005-09-01  Bruno Haible  <bruno@clisp.org>
61123
61124         * gnulib-tool (import): In the first-use case, provide defaults.
61125
61126 2005-09-01  Bruno Haible  <bruno@clisp.org>
61127
61128         * gnulib-tool (func_import): Remove the .tmp files.
61129
61130 2005-09-01  Bruno Haible  <bruno@clisp.org>
61131
61132         * gnulib-tool (func_import): Fix handling of symbolic links.
61133
61134 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61135
61136         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
61137         old glibc regex code mishandles strings longer than 2**31 bytes.
61138         This patch fixes this when the regex code is used in gnulib
61139         (i.e., outside glibc).
61140
61141         This patch should not affect the use of the regex code inside
61142         glibc.  No doubt this problem also needs to be handled for glibc
61143         as well, but the result will be an incompatible change to the
61144         glibc ABI, and the old ABI will have to be supported too.  That
61145         can be the the subject for another patch.
61146
61147         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
61148         governing whether the rest of this patch is active.  By default,
61149         the macro is disabled and the patch has no effect.
61150         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
61151         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
61152         (struct re_pattern_buffer, re_search, re_search_2, re_match):
61153         (re_match_2, re_set_registers): Use the new types.
61154         * lib/regex_internal.h (Idx, re_hashval_t): New types.
61155         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
61156         New macros.
61157         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
61158         (re_string_context_at, bin_tree_t, re_dfastate_t):
61159         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
61160         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
61161         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
61162         (re_string_char_size_at, re_string_wchar_at):
61163         (re_string_elem_size_at):
61164         Use the new types and macros to port to 64-bit hosts.
61165         Use unsigned types for internal values, so that the code
61166         mostly works even for arrays larger than SSIZE_MAX.
61167         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
61168         (search_duplicated_node, calc_eclosure_iter, fetch_number):
61169         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
61170         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
61171         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
61172         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
61173         (calc_inveclosure, parse_dup_op, build_range_exp):
61174         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
61175         (fetch_number, create_token_tree, mark_opt_subexp):
61176         Likewise.
61177         * lib/regex_internal.c (re_string_construct_common,
61178         create_ci_newstate):
61179         (create_cd_newstate, re_string_allocate, re_string_construct):
61180         (re_string_realloc_buffers, build_wcs_upper_buffer):
61181         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
61182         (re_string_reconstruct, re_string_peek_byte_case):
61183         (re_string_fetch_byte_case, re_string_context_at):
61184         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
61185         (re_node_set_init_copy, re_node_set_add_intersect):
61186         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61187         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61188         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
61189         (re_acquire_state, re_acquire_state_context, register_state):
61190         Likewise.
61191         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
61192         search_cur_bkref_entry):
61193         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
61194         (re_search_internal, re_search_2_stub, re_search_stub)
61195         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
61196         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
61197         (update_cur_sifted_state, check_dst_limits):
61198         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
61199         (check_subexp_limits, sift_states_bkref, merge_state_array):
61200         (check_subexp_matching_top, get_subexp, get_subexp_sub):
61201         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
61202         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
61203         (expand_bkref_cache, check_node_accept_bytes):
61204         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
61205         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
61206         (acquire_init_state_context, check_halt_node_context):
61207         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
61208         (sift_states_backward, clean_state_log_if_needed):
61209         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
61210         (find_recover_state, transit_state_sb, transit_state_mb):
61211         (transit_state_bkref, build_trtable, match_ctx_clean):
61212         Likewise.
61213         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
61214         to work around an assumption that REG_MISSING is negative.
61215
61216         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
61217         (seek_collating_symbol_entry) [defined _LIBC]:
61218         (lookup_collation_sequence_value) [defined _LIBC]:
61219         (build_range_exp, build_collating_symbol) [defined _LIBC]:
61220         Use prototypes rather than old-style function definitions.
61221         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
61222         (transit_state_sb) [0]:
61223         (find_collation_sequence_value) [defined _LIBC]: Likewise.
61224
61225         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
61226         rm_eo.
61227
61228         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
61229         (optimize_subexps, lower_subexp):
61230         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
61231         since the signed shift might overflow.  Use 1u<<31 instead.
61232         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
61233         Likewise.
61234         * lib/regexec.c (check_dst_limits_calc_pos_1,
61235         check_subexp_matching_top): Likewise.
61236
61237         * lib/regcomp.c (optimize_subexps, lower_subexp):
61238         Use CHAR_BIT rather than 8, for clarity.
61239         * lib/regexec.c (check_dst_limits_calc_pos_1):
61240         (check_subexp_matching_top): Likewise.
61241         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
61242         have to worry about portability issues when shifting it left.
61243         Remove no-longer-needed test for table_size > 0.
61244         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
61245         in a word, as the resulting behavior is undefined.
61246         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
61247         in one case, a <= should have been an <, and in another case the
61248         whole test was missing.
61249         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
61250         the standard name CHAR_BIT.
61251         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
61252         this is not true on one's complement and signed-magnitude hosts.
61253
61254         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
61255         next_last_offset.
61256         (struct re_dfa_t): Remove unused member states_alloc.
61257         * lib/regcomp.c (init_dfa): Don't initialize unused members.
61258
61259 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61260
61261         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
61262         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
61263         and large-file glibc and in 32-bit large-file Solaris.
61264
61265 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61266
61267         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
61268         lengths fit in regoff_t; this isn't true if regoff_t is the same
61269         width as size_t.
61270         * lib/regex.c (re_search_internal): 5th arg is LAST_START
61271         (= START + RANGE) instead of RANGE.  This avoids overflow
61272         problems when regoff_t is the same width as size_t.
61273         All callers changed.
61274         (re_search_2_stub): Check for overflow when adding the
61275         sizes of the two strings.
61276         (re_search_stub): Check for overflow when adding START
61277         to RANGE; if it occurs, substitute the extreme value.
61278
61279 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61280
61281         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
61282
61283 2005-08-31  Jim Meyering  <jim@meyering.net>
61284
61285         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
61286         a pointer-to-const.
61287         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
61288         (register_state): Likewise.
61289         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
61290         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
61291         (group_nodes_into_DFAstates): Likewise.
61292
61293 2005-08-31  Jim Meyering  <jim@meyering.net>
61294
61295         * check-module: Add a FIXME comment.
61296
61297 2005-08-31  Eric Blake  <ebb9@byu.net>
61298
61299         * modules/unistd-safer (Files): Add unistd--.h.
61300         * modules/stdio-safer (Files): Add stdio--.h.
61301
61302 2005-08-31  Derek Price  <derek@ximbiot.com>
61303
61304         * lib/getdelim.c (getdelim): Return EOF on EOF.
61305         Reported by Larry Jones <lawrence.jones@ugs.com>.
61306
61307 2005-08-31  Bruno Haible  <bruno@clisp.org>
61308
61309         Avoid unnecessary diffs in the generated lib/Makefile.am.
61310         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
61311         the generated files.
61312         (func_import): Don't set cmd.
61313
61314 2005-08-31  Bruno Haible  <bruno@clisp.org>
61315
61316         * lib/strstr.c: Include <stddef.h>, for NULL.
61317         * lib/strcasestr.c: Likewise.
61318         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61319
61320 2005-08-31  Bruno Haible  <bruno@clisp.org>
61321
61322         * gnulib-tool: New option --macro-prefix.
61323         (func_import): Use macro_prefix.
61324         (import): Handle option --macro-prefix.
61325
61326 2005-08-31  Bruno Haible  <bruno@clisp.org>
61327
61328         * gnulib-tool (import): Rename most ac_* variables to cached_*.
61329         Also use new variables cached_lgpl, cached_libtool.
61330
61331 2005-08-31  Bruno Haible  <bruno@clisp.org>
61332
61333         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
61334         always instantiating them.
61335
61336 2005-08-31  Bruno Haible  <bruno@clisp.org>
61337
61338         * gnulib-tool (func_import): Read the previous cached settings
61339         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
61340         earlier added by gnulib but are now dropped. Warn when a gnulib file
61341         overwrites a non-gnulib file.
61342
61343 2005-08-31  Bruno Haible  <bruno@clisp.org>
61344
61345         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
61346         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
61347         projects that don't keep autogenerated files in CVS. Put into
61348         actioncmd only the specified modules, not the transitive closure.
61349
61350 2005-08-31  Bruno Haible  <bruno@clisp.org>
61351
61352         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
61353         Create directories that shall be filled.
61354         (import): Don't look for gl_* macros in configure.ac. Recurse across
61355         all directories containing a gnulib-cache.m4 files, if meaningful.
61356
61357 2005-08-31  Bruno Haible  <bruno@clisp.org>
61358
61359         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
61360         (import): Set seen_libtool when we see gl_LIBTOOL.
61361
61362 2005-08-31  Bruno Haible  <bruno@clisp.org>
61363
61364         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
61365         declaration macro definitions from generated gnulib.m4.
61366
61367 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
61368
61369         * lib/iconvme.h: Add prototype for iconv_alloc.
61370
61371 2005-08-29  Simon Josefsson  <jas@extundo.com>
61372
61373         * lib/iconvme.c: Fix errno.
61374
61375 2005-08-29  Bruno Haible  <bruno@clisp.org>
61376
61377         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
61378         that it works when the directory contains spaces.
61379
61380 2005-08-29  Bruno Haible  <bruno@clisp.org>
61381
61382         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
61383
61384 2005-08-29  Bruno Haible  <bruno@clisp.org>
61385
61386         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
61387         Emit more advice.
61388
61389 2005-08-29  Bruno Haible  <bruno@clisp.org>
61390         and Stepan Kasal  <kasal@ucw.cz>
61391
61392         * check-module: If more parameters are given, check each of them
61393         separately; add more exceptions, as noted by Jim Meyering.
61394         (check_module): New procedure.
61395         (%exempt_header): Now contains all exceptions.
61396
61397 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
61398
61399         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
61400
61401 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61402
61403         * lib/iconvme.c: Split iconv_string into iconv_alloc.
61404
61405 2005-08-28  Bruno Haible  <bruno@clisp.org>
61406
61407         * m4/gnulib-tool.m4: New file.
61408
61409 2005-08-27  Jim Meyering  <jim@meyering.net>
61410
61411         * modules/unistd-safer (Files): Add pipe-safer.c.
61412         * modules/fcntl-safer (Files): Add creat-safer.c.
61413
61414 2005-08-27  Jim Meyering  <jim@meyering.net>
61415
61416         * m4/stdlib-safer.m4: New file.  From coreutils.
61417         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
61418         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
61419         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
61420         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
61421         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
61422
61423 2005-08-27  Jim Meyering  <jim@meyering.net>
61424
61425         * lib/fopen-safer.c: Merge minor changes from coreutils.
61426         * lib/dup-safer.c: Likewise.
61427         * lib/fd-safer.c: Likewise.
61428
61429         Merge from coreutils.
61430         * lib/stdio--.h: New file.
61431         * lib/stdlib--.h: New file.
61432         * lib/mkstemp-safer.c: New file.
61433
61434         GNU tar needs these.
61435         * lib/pipe-safer.c: New file.
61436         * lib/creat-safer.c: New file.
61437         * lib/fcntl--.h (creat): Define to creat_safer.
61438         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
61439         * lib/unistd--.h (pipe): Define to pipe_safer.
61440         * lib/unistd-safer.h: Declare pipe_safer.
61441
61442 2005-08-26  Simon Josefsson  <jas@extundo.com>
61443
61444         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
61445         Haible <bruno@clisp.org>.
61446
61447 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
61448
61449         * lib/regex_internal.h: Remove all references to
61450         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
61451         or better.
61452         (bitset_not, bitset_merge, bitset_not_merge):
61453         (bitset_mask, re_string_allocate, re_string_construct):
61454         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
61455         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
61456         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
61457         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
61458         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61459         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61460         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
61461         (re_acquire_state_context):
61462         Remove unnecessary forward decls.
61463         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
61464         Put __attribute at function definition,
61465         now that the function decl has been removed.
61466         * lib/regex_internal.c (re_string_peek_byte_case):
61467         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
61468         Likewise.
61469
61470 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
61471
61472         * m4/regex.m4: Add AC_PREREQ(2.50).
61473         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
61474
61475 2005-08-25  Simon Josefsson  <jas@extundo.com>
61476
61477         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
61478         __fsetlocking.
61479
61480 2005-08-25  Simon Josefsson  <jas@extundo.com>
61481
61482         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
61483         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
61484         GLIBC specific code.
61485
61486 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61487
61488         Make regex safe for g++.  This fixes one real bug (an "err"
61489         that should have been "*err").  g++ problem reported by
61490         Sam Steingold.
61491         * lib/regex_internal.h (re_calloc): New macro, consistent with
61492         re_malloc etc.  All callers of calloc changed to use re_calloc.
61493         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
61494         not int.  All callers changed.
61495         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
61496         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
61497         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
61498         (find_recover_state): Change "err" to "*err"; this fixes what
61499         appears to be a real bug.
61500         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
61501         versus int.
61502
61503 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61504
61505         * modules/regex (Depends-on): Add malloc, since the code
61506         assumes that !malloc(0) means failure.
61507
61508 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61509
61510         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
61511
61512         alloca modernization/simplification for regex.
61513         * lib/regex.c: Remove portability cruft for alloca.  This no longer
61514         needs to be at the start of the file, and can be moved into
61515         regex_internal.h and simplified.
61516         * lib/regex_internal.h: Include <alloca.h>.
61517         (__libc_use_alloca) [!defined _LIBC]: New macro.
61518         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
61519         now works outside glibc.
61520
61521 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61522
61523         * config/srclist.txt: Add glibc bugs 1241, 1245.
61524
61525 2005-08-25  Jim Meyering  <jim@meyering.net>
61526
61527         * lib/open-safer.c: Include <config.h>.
61528         Otherwise, we'd lose LARGEFILE support in any file using
61529         e.g. "fcntl--.h"
61530
61531 2005-08-25  Bruno Haible  <bruno@clisp.org>
61532
61533         * m4/minmax.m4: Require autoconf 2.52.
61534         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
61535         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
61536         alternatives of translit over the alphabet.
61537         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
61538
61539 2005-08-24  Simon Josefsson  <jas@extundo.com>
61540
61541         * tests/test-getpass.c: New file.
61542
61543 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61544
61545         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
61546         for GNU regex features.
61547
61548 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61549
61550         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
61551         * lib/regex.h (regerror): Likewise.
61552
61553         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
61554         requires this.  (The code never needed it.)
61555
61556         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
61557         All uses of recently-renamed identifiers changed to use the new,
61558         POSIX-compliant names.  The code will build and run just fine
61559         without these changes, but it's better to eat our own dog food
61560         and use the standard-conforming names.
61561
61562         * lib/regex.h: Fix a multitude of POSIX name space violations.
61563         These changes have an effect only for programs that define
61564         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
61565         do not change anything for programs compiled in the normal way.
61566         Also, there is no effect on the ABI.
61567
61568         (_REGEX_SOURCE): New macro.
61569         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
61570         defined and _GNU_SOURCE is not; this fixes a name space violation.
61571
61572         Rename the following macros to obey POSIX requirements.
61573         The old names are still visible as macros if _REGEX_SOURCE is defined.
61574         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
61575         RE_BACKSLASH_ESCAPE_IN_LISTS.
61576         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
61577         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
61578         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
61579         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
61580         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
61581         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
61582         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
61583         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
61584         (REG_INTERVALS): renamed from RE_INTERVALS.
61585         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
61586         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
61587         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
61588         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
61589         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
61590         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
61591         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
61592         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
61593         RE_UNMATCHED_RIGHT_PAREN_ORD.
61594         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
61595         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
61596         (REG_DEBUG): renamed from RE_DEBUG.
61597         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
61598         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
61599         unusual, since we can't clash with the POSIX REG_ICASE.
61600         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
61601         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
61602         (REG_NO_SUB): renamed from RE_NO_SUB.
61603         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
61604         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
61605         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
61606         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
61607         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
61608         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
61609         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
61610         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
61611         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
61612         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
61613         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
61614         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
61615         RE_SYNTAX_POSIX_MINIMAL_BASIC.
61616         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
61617         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
61618         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
61619         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
61620         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
61621         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
61622         (REG_FIXED): Renamed from REGS_FIXED.
61623         (REG_NREGS): Renamed from RE_NREGS.
61624
61625         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
61626         of other REG_* macros, since POSIX says the user is allowed to
61627         #undef these macros selectively.
61628
61629         (reg_errcode_t): Update comment stating what other tables need
61630         to be consistent.
61631
61632         Rename the following enum values to obey POSIX requirements.
61633         The old names are still visible as macros.
61634         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
61635         is not defined, since GNU is supposed to be a superset of POSIX as
61636         much as possible, and since we want reg_errcode_t to be a signed
61637         type for implementation consistency.
61638         (_REG_NOERROR): Renamed from REG_NOERROR.
61639         (_REG_NOMATCH): Renamed from REG_NOMATCH.
61640         (_REG_BADPAT): Renamed from REG_BADPAT.
61641         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
61642         (_REG_ECTYPE): Renamed from REG_ECTYPE.
61643         (_REG_EESCAPE): Renamed from REG_EESCAPE.
61644         (_REG_ESUBREG): Renamed from REG_ESUBREG.
61645         (_REG_EBRACK): Renamed from REG_EBRACK.
61646         (_REG_EPAREN): Renamed from REG_EPAREN.
61647         (_REG_EBRACE): Renamed from REG_EBRACE.
61648         (_REG_BADBR): Renamed from REG_BADBR.
61649         (_REG_ERANGE): Renamed from REG_ERANGE.
61650         (_REG_ESPACE): Renamed from REG_ESPACE.
61651         (_REG_BADRPT): Renamed from REG_BADRPT.
61652         (_REG_EEND): Renamed from REG_EEND.
61653         (_REG_ESIZE): Renamed from REG_ESIZE.
61654         (_REG_ERPAREN): Renamed from REG_ERPAREN.
61655         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
61656         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
61657         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
61658         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
61659
61660         (_REG_RE_NAME, _REG_RM_NAME): New macros.
61661         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
61662         changed.  But support the old name if the new one is not defined
61663         and if _REGEX_SOURCE.
61664
61665         Change the following member names in struct re_pattern_buffer.
61666         The old names are still supported if !_REGEX_SOURCE.
61667         The new names are always supported, regardless of _REGEX_SOURCE.
61668         (re_buffer): Renamed from buffer.
61669         (re_allocated): Renamed from allocated.
61670         (re_used): Renamed from used.
61671         (re_syntax): Renamed from syntax.
61672         (re_fastmap): Renamed from fastmap.
61673         (re_translate): Renamed from translate.
61674         (re_can_be_null): Renamed from can_be_null.
61675         (re_regs_allocated): Renamed from regs_allocated.
61676         (re_fastmap_accurate): Renamed from fastmap_accurate.
61677         (re_no_sub): Renamed from no_sub.
61678         (re_not_bol): Renamed from not_bol.
61679         (re_not_eol): Renamed from not_eol.
61680         (re_newline_anchor): Renamed from newline_anchor.
61681
61682         Change the following member names in struct re_registers.
61683         The old names are still supported if !_REGEX_SOURCE.
61684         The new names are always supported, regardless of _REGEX_SOURCE.
61685         (rm_num_regs): Renamed from num_regs.
61686         (rm_start): Renamed from start.
61687         (rm_end): Renamed from end.
61688
61689         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
61690         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
61691         Prepend __ to parameter names.
61692
61693         Undo yesterday's changes.
61694
61695 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61696
61697         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
61698         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
61699         lib/regex.c.
61700
61701 2005-08-24  Jim Meyering  <jim@meyering.net>
61702
61703         Sync from coreutils.
61704         * m4/fcntl-safer.m4: New file.
61705
61706         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
61707         and object files for this module.
61708
61709 2005-08-24  Jim Meyering  <jim@meyering.net>
61710
61711         Sync from coreutils.
61712         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
61713
61714 2005-08-24  Jim Meyering  <jim@meyering.net>
61715
61716         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
61717         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
61718
61719 2005-08-24  Jim Meyering  <jim@meyering.net>
61720
61721         * modules/fcntl-safer: New module.
61722         * modules/fts (Depends-on): Add fcntl-safer.
61723         * MODULES.html.sh (File descriptor based Input/Output):
61724         Add fcntl-safer.
61725
61726 2005-08-24  Bruno Haible  <bruno@clisp.org>
61727
61728         Support for unit test modules.
61729         * modules/README: Mention tests modules.
61730         * modules/TEMPLATE-TESTS: New file.
61731         * gnulib-tool: New options --extract-tests-module, --with-tests and
61732         --tests-base (unused for the moment).
61733         (testsbase, inctests): New variables.
61734         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
61735         (func_verify_module): Exclude TEMPLATE-TESTS.
61736         (func_verify_nontests_module, func_verify_tests_module): New functions.
61737         (func_get_dependencies): Add implicit dependency for tests modules.
61738         (func_get_tests_module): New function.
61739         (func_modules_transitive_closure): When --with-tests was specified,
61740         include the unit tests as well, unless explicitly avoided.
61741         (func_emit_lib_Makefile_am): Ignore the tests modules here.
61742         (func_emit_tests_Makefile_am): New function.
61743         (func_create_testdir): When --with-tests was specified, emit a
61744         tests/ directory.
61745         * MODULES.html.sh (Future developments): Update.
61746
61747 2005-08-24  Bruno Haible  <bruno@clisp.org>
61748
61749         * modules/tls-tests: New file.
61750         * tests/test-tls.c: New file, from GNU gettext.
61751
61752 2005-08-24  Bruno Haible  <bruno@clisp.org>
61753
61754         * modules/lock-tests: New file.
61755         * tests/test-lock.c: New file, from GNU gettext.
61756
61757 2005-08-24  Bruno Haible  <bruno@clisp.org>
61758
61759         * lib/lock.h: Add multiple inclusion guard.
61760         * lib/tls.h: Add multiple inclusion guard.
61761
61762 2005-08-24  Bruno Haible  <bruno@clisp.org>
61763
61764         * gnulib-tool: Add support for the --aux-dir option to
61765         --create-testdir, --create-megatestdir, --test, --megatest.
61766         (func_create_testdir, func_create_megatestdir): Optionally emit a
61767         AC_CONFIG_AUX_DIR directive.
61768         (create-testdir, create-megatestdir, test, megatest): Provide a
61769         default value for $auxdir.
61770
61771 2005-08-24  Bruno Haible  <bruno@clisp.org>
61772
61773         * gnulib-tool (import): Use compound statement instead of subshell
61774         where possible.
61775
61776 2005-08-24  Bruno Haible  <bruno@clisp.org>
61777
61778         * gnulib-tool (import): Change --aux-dir default to "build-aux".
61779
61780 2005-08-24  Bruno Haible  <bruno@clisp.org>
61781
61782         * gnulib-tool (func_version): Update.
61783
61784 2005-08-24  Bruno Haible  <bruno@clisp.org>
61785
61786         * gnulib-tool (func_import, func_create_testdir,
61787         func_create_megatestdir): Quote all autoconf macro arguments.
61788
61789 2005-08-24  Bruno Haible  <bruno@clisp.org>
61790
61791         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
61792         option --force, because --force causes the aclocal.m4 of each
61793         subdirectory to be newer than the corresponding config.h.in.
61794
61795 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61796
61797         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
61798         All contents moved to gl_REGEX.
61799         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
61800         assume that it does.
61801
61802 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61803
61804         * lib/regex.h (REG_NOSYS)
61805         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
61806         Define, since POSIX requires it as of 2001.
61807         (_REG_ENOSYS)
61808         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
61809         New private symbol, used to keep the enum signed in all cases.
61810         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
61811         Youngman in
61812         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
61813
61814         * lib/regex_internal.c (re_string_skip_chars, register_state):
61815         (calc_state_hash):
61816         Remove forward decls; no longer needed now that we use prototypes.
61817         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
61818         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
61819         (clean_state_log_if_needed): Likewise.
61820
61821 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61822
61823         * config/srclist.txt: Add glibc bugs 1231-1233.
61824
61825 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61826
61827         Fix problems reported by Sam Steingold in
61828         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
61829         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
61830         assumed that reg_errcode_t is a signed type, which is not
61831         necessarily true if _XOPEN_SOURCE is not defined.
61832         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
61833         since some compilers warn about it otherwise.
61834
61835 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61836
61837         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
61838         (init_word_char, create_initial_state, duplicate_node_closure):
61839         (fetch_token, peek_token_bracket, build_range_exp):
61840         (build_collating_symbol): Remove forward decls; no longer needed
61841         now that we use prototypes.
61842
61843         * lib/regcomp.c:
61844         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
61845         (re_compile_fastmap_iter, regcomp, regerror, regfree):
61846         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
61847         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
61848         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
61849         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
61850         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
61851         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
61852         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
61853         (build_range_exp, build_collating_symbol, parse_bracket_exp):
61854         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
61855         (build_charclass, build_charclass_op, fetch_number, create_tree):
61856         (create_token_tree, mark_opt_subexp, duplicate_tree):
61857         Use prototypes rather than old-style definitions.
61858
61859         * lib/regex_internal.c:
61860         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
61861         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
61862         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
61863         (re_string_reconstruct, re_string_peek_byte_case):
61864         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
61865         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
61866         (re_node_set_init_copy, re_node_set_add_intersect):
61867         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
61868         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
61869         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
61870         (re_acquire_state, re_acquire_state_context, register_state):
61871         (create_ci_newstate, create_cd_newstate, free_state):
61872         Likewise.
61873         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
61874         re_search_2):
61875         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
61876         (re_search_internal, prune_impossible_nodes):
61877         (acquire_init_state_context, check_matching, static):
61878         (check_halt_node_context, check_halt_state_context, proceed_next_node):
61879         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
61880         (update_regs, sift_states_backward, build_sifted_states):
61881         (clean_state_log_if_needed, merge_state_array):
61882         (update_cur_sifted_state, add_epsilon_src_nodes):
61883         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
61884         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
61885         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
61886         (find_recover_state, check_subexp_matching_top, transit_state_mb):
61887         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
61888         (check_arrival, check_arrival_add_next_nodes):
61889         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
61890         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
61891         (check_node_accept_bytes, check_node_accept, extend_buffers):
61892         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
61893         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
61894         (sift_ctx_init):
61895         Likewise.
61896
61897         * lib/regex_internal.h:
61898         (re_string_allocate, re_string_construct, re_string_reconstruct):
61899         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
61900         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
61901         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
61902         (re_string_context_at, re_string_peek_byte_case):
61903         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
61904         is defined, since we now use prototypes always.
61905
61906         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
61907         C89 or better.  All uses removed.
61908
61909 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61910
61911         * config/srclist.txt: Add glibc bugs 1220-1227.
61912
61913 2005-08-20  Jim Meyering  <jim@meyering.net>
61914
61915         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
61916         of unused local, dfa.
61917
61918 2005-08-20  Bruno Haible  <bruno@clisp.org>
61919
61920         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
61921
61922 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61923
61924         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
61925         (re_node_set_insert_last, re_dfa_add_node):
61926         Rename local variables to avoid GCC shadowing warnings.
61927
61928 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61929
61930         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
61931         [defined lint]: Suppress bogus uninitialized-variable warnings.
61932
61933         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
61934         and let the caller return REG_ESPACE if out of space.  This
61935         removes an uninitialied-variable warning with GCC 4.0.1, and also
61936         avoids taking the address of a local variable.  All callers
61937         changed.
61938
61939 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61940
61941         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
61942         $LIBCSRC/posix/regexec.c.
61943         Add glibc bug 1217 for regcomp.c.
61944
61945 2005-08-19  Jim Meyering  <jim@meyering.net>
61946
61947         * lib/regexec.c (proceed_next_node): Redo local variables to
61948         avoid GCC shadowing warnings.
61949
61950 2005-08-18  Bruno Haible  <bruno@clisp.org>
61951
61952         * lib/strstr.c (strstr): Fix return value in multibyte case.
61953         * lib/strcasestr.c (strcasestr): Likewise.
61954
61955 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61956
61957         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
61958
61959 2005-08-17  Jim Meyering  <jim@meyering.net>
61960
61961         Make the %s format (seconds since the epoch) work for a negative
61962         number and when used with a zero-padded field width, e.g. %015s.
61963
61964         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
61965         label so that it precedes the code to set `digits'.  Otherwise,
61966         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
61967         print `00-22'.  Now, it prints `-0022', as it should.
61968
61969 2005-08-17  Bruno Haible  <bruno@clisp.org>
61970
61971         * modules/strstr (Files): Add m4/mbrtowc.m4.
61972         (Depends-on): Add mbuiter.
61973
61974 2005-08-17  Bruno Haible  <bruno@clisp.org>
61975
61976         * modules/strcasestr: New file.
61977         * MODULES.html.sh (String handling, based on ANSI C 89): Add
61978         strcasestr.
61979
61980 2005-08-17  Bruno Haible  <bruno@clisp.org>
61981
61982         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
61983
61984 2005-08-17  Bruno Haible  <bruno@clisp.org>
61985
61986         * modules/mbuiter: New file.
61987         * MODULES.html.sh (Extended multibyte and wide character utilities):
61988         Add mbuiter.
61989
61990 2005-08-17  Bruno Haible  <bruno@clisp.org>
61991
61992         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
61993         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
61994
61995 2005-08-17  Bruno Haible  <bruno@clisp.org>
61996
61997         * m4/strcasestr.m4: New file.
61998
61999 2005-08-17  Bruno Haible  <bruno@clisp.org>
62000
62001         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
62002         * lib/strstr.c: Completely rewritten, with multibyte locale support.
62003
62004 2005-08-17  Bruno Haible  <bruno@clisp.org>
62005
62006         * lib/strcasestr.h: New file.
62007         * lib/strcasestr.c: New file.
62008
62009 2005-08-17  Bruno Haible  <bruno@clisp.org>
62010
62011         * lib/strcasecmp.c: Use mbuiter.h.
62012
62013 2005-08-17  Bruno Haible  <bruno@clisp.org>
62014
62015         * lib/mbuiter.h: New file.
62016
62017 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62018
62019         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
62020         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
62021         and gl_GETOPT are both invoked via different paths (as happens
62022         with GNU tar CVS because it uses both argp and getopt), the former
62023         wins.
62024
62025 2005-08-16  Bruno Haible  <bruno@clisp.org>
62026
62027         * modules/tls: New file.
62028         * MODULES.html.sh (Multithreading): Add tls.
62029
62030 2005-08-16  Bruno Haible  <bruno@clisp.org>
62031
62032         * modules/strnlen1: New file.
62033         * MODULES.html.sh (String handling): Add strnlen1.
62034
62035 2005-08-16  Bruno Haible  <bruno@clisp.org>
62036
62037         * modules/strcase (Files): Add m4/mbrtowc.m4.
62038         (Depends-on): Add strnlen1, mbchar.
62039
62040 2005-08-16  Bruno Haible  <bruno@clisp.org>
62041
62042         * modules/mbiter: New file.
62043         * MODULES.html.sh (Extended multibyte and wide character utilities):
62044         Add mbiter.
62045
62046 2005-08-16  Bruno Haible  <bruno@clisp.org>
62047
62048         * modules/mbfile: New file.
62049         * MODULES.html.sh (Extended multibyte and wide character utilities):
62050         Add mbfile.
62051
62052 2005-08-16  Bruno Haible  <bruno@clisp.org>
62053
62054         * modules/mbchar: New file.
62055         * MODULES.html.sh (Extended multibyte and wide character utilities):
62056         New section.
62057
62058 2005-08-16  Bruno Haible  <bruno@clisp.org>
62059
62060         * m4/tls.m4: New file, from GNU gettext.
62061
62062 2005-08-16  Bruno Haible  <bruno@clisp.org>
62063
62064         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
62065         always.
62066         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
62067
62068 2005-08-16  Bruno Haible  <bruno@clisp.org>
62069
62070         * m4/mbiter.m4: New file.
62071
62072 2005-08-16  Bruno Haible  <bruno@clisp.org>
62073
62074         * m4/mbfile.m4: New file.
62075
62076 2005-08-16  Bruno Haible  <bruno@clisp.org>
62077
62078         * m4/mbchar.m4: New file.
62079
62080 2005-08-16  Bruno Haible  <bruno@clisp.org>
62081
62082         * lib/tls.h: New file, from GNU gettext.
62083         * lib/tls.c: New file, from GNU gettext.
62084
62085 2005-08-16  Bruno Haible  <bruno@clisp.org>
62086
62087         * lib/strnlen1.h: New file.
62088         * lib/strnlen1.c: New file.
62089
62090 2005-08-16  Bruno Haible  <bruno@clisp.org>
62091
62092         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
62093         (mbi_init): Update.
62094         (mbi_avail, mbi_advance): Let the iteration end before the terminating
62095         NUL byte, not after it.
62096
62097 2005-08-16  Bruno Haible  <bruno@clisp.org>
62098
62099         * lib/strcase.h (strcasecmp): Add note in comments.
62100         * lib/strncasecmp.c: Use code from strcasecmp.c.
62101         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
62102         (strcasecmp): Work correctly in multibyte locales.
62103
62104 2005-08-16  Bruno Haible  <bruno@clisp.org>
62105
62106         * lib/mbiter.h: New file.
62107
62108 2005-08-16  Bruno Haible  <bruno@clisp.org>
62109
62110         * lib/mbfile.h: New file.
62111
62112 2005-08-16  Bruno Haible  <bruno@clisp.org>
62113
62114         * lib/mbchar.h: New file.
62115         * lib/mbchar.c: New file.
62116
62117 2005-08-16  Bruno Haible  <bruno@clisp.org>
62118
62119         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
62120         the valid ones. Makes the comparison operations transitive:
62121         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
62122         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
62123
62124 2005-08-15  Simon Josefsson  <jas@extundo.com>
62125
62126         * modules/ssize_t (License): Change to 'unlimited'.
62127
62128         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
62129
62130 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62131
62132         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
62133         Add comments for each pending glibc patch.
62134
62135 2005-08-15  Bruno Haible  <bruno@clisp.org>
62136
62137         * lib/regex.h (__restrict_arr): Don't define to __restrict if
62138         __cplusplus is defined.
62139
62140 2005-08-14  Jim Meyering  <jim@meyering.net>
62141
62142         Sync from coreutils.
62143
62144         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
62145         Use the hash-table-based cycle-detection code not just when
62146         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
62147         Reported by James Youngman in
62148         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
62149         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
62150         FTS_TIGHT_CYCLE_CHECK.
62151         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
62152         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
62153         once again.
62154         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
62155         * lib/fts.c (fd_safer): Remove decl.
62156         Include fcntl--.h rather than unistd-safer.h
62157         (fts_safe_changedir): Don't call fd_safer; no longer needed
62158         now that we include fcntl--.h.
62159
62160 2005-08-12  Simon Josefsson  <jas@extundo.com>
62161
62162         * modules/getndelim2: Use ssize_t module.
62163         * modules/getnline: Likewise.
62164         * modules/safe-read: Likewise.
62165         * modules/xreadlink: Likewise.
62166
62167         * modules/ssize_t: New file.
62168
62169 2005-08-12  Simon Josefsson  <jas@extundo.com>
62170
62171         * m4/readline.m4: Look for termcap, curses or ncurses if required.
62172
62173 2005-08-12  Simon Josefsson  <jas@extundo.com>
62174
62175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62176         ssize_t.
62177
62178 2005-08-12  Simon Josefsson  <jas@extundo.com>
62179
62180         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
62181         readline, getdelim and check_version.
62182         (Support for systems lacking ISO C 99: Sizes of integer types):
62183         Add size_max.
62184
62185 2005-08-12  Bruno Haible  <bruno@clisp.org>
62186
62187         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
62188
62189 2005-08-11  Simon Josefsson  <jas@extundo.com>
62190
62191         * modules/readline: New file.
62192
62193         * modules/strnlen (Files): Add strnlen.h.
62194
62195 2005-08-11  Simon Josefsson  <jas@extundo.com>
62196
62197         * m4/readline.m4: New file.
62198
62199 2005-08-11  Simon Josefsson  <jas@extundo.com>
62200
62201         * lib/readline.h, readline.c: New file.
62202
62203 2005-08-11  Simon Josefsson  <jas@extundo.com>
62204
62205         * doc/gnulib.texi (Initial import, Finishing touches): Mention
62206         gl_AVOID.
62207
62208 2005-08-11  Bruno Haible  <bruno@clisp.org>
62209
62210         * lib/strnlen.h (strnlen): Change parameter name to match comment.
62211
62212 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
62213
62214         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
62215
62216 2005-08-10  Simon Josefsson  <jas@extundo.com>
62217
62218         * tests/test-iconvme.c: New file.
62219
62220 2005-08-10  Simon Josefsson  <jas@extundo.com>
62221
62222         * m4/strnlen.m4: New file.
62223
62224         * m4/strndup.m4: Don't check for strnlen declaration, done in
62225         strnlen.m4.
62226
62227 2005-08-10  Simon Josefsson  <jas@extundo.com>
62228
62229         * lib/strndup.c: Use strnlen.h.
62230
62231         * lib/strnlen.h: New file.
62232
62233 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62234
62235         * README: Typos.
62236
62237 2005-08-02  Simon Josefsson  <jas@extundo.com>
62238
62239         * modules/readline: New file.
62240
62241 2005-08-02  Simon Josefsson  <jas@extundo.com>
62242
62243         * modules/getdelim: New file.
62244
62245         * modules/getline: Rewrite, don't use getndelim2.
62246
62247 2005-08-02  Simon Josefsson  <jas@extundo.com>
62248
62249         * m4/getline.m4: Separate out getdelim stuff into separate module.
62250
62251         * m4/getdelim.m4: New file.
62252
62253 2005-08-02  Simon Josefsson  <jas@extundo.com>
62254
62255         * lib/getline.h, getline.c: Rewrite.
62256
62257         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
62258
62259 2005-07-31  Bruno Haible  <bruno@clisp.org>
62260
62261         * lib/lock.h (gl_lock_initializer): New macro.
62262         (gl_lock_define_initialized): Use it.
62263         (gl_rwlock_initializer): New macro.
62264         (gl_rwlock_define_initialized): Use it.
62265         (gl_recursive_lock_initializer): New macro.
62266         (gl_recursive_lock_define_initialized): Use it.
62267
62268 2005-07-30  Karl Berry  <karl@gnu.org>
62269
62270         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
62271         Report from Ben Pfaff, regarding getopt.
62272
62273 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
62274
62275         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
62276         normal way.
62277         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
62278         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
62279         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
62280         (gl_GETOPT): Use the new macros.  Most of the implementation
62281         is moved to the new macros.  This is for programs like Emacs
62282         that don't want all the functionality of gl_GETOPT.
62283
62284 2005-07-26  Bruno Haible  <bruno@clisp.org>
62285
62286         * m4/lock.m4: Update from GNU gettext.
62287
62288 2005-07-26  Bruno Haible  <bruno@clisp.org>
62289
62290         * lib/lock.h: Update from GNU gettext.
62291         * lib/lock.c: Update from GNU gettext.
62292
62293 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
62294
62295         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
62296         obsolescent AC_TRY_RUN.  Include the default includes files, for
62297         'exit'.
62298
62299 2005-07-24  Bruno Haible  <bruno@clisp.org>
62300
62301         * modules/visibility: New file.
62302         * MODULES.html.sh (Misc): Add visibility.
62303
62304 2005-07-24  Bruno Haible  <bruno@clisp.org>
62305
62306         * m4/visibility.m4: New file.
62307
62308 2005-07-24  Bruno Haible  <bruno@clisp.org>
62309
62310         * doc/visibility.texi: New file.
62311
62312 2005-07-22  Bruno Haible  <bruno@clisp.org>
62313
62314         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
62315         $(ALLOCA_H), redundant through BUILT_SOURCES.
62316         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
62317         redundant through BUILT_SOURCES.
62318         * modules/byteswap (Makefile.am): Remove explicit dependency on
62319         $(BYTESWAP_H), redundant through BUILT_SOURCES.
62320         * modules/fnmatch (Makefile.am): Remove explicit dependency on
62321         $(FNMATCH_H), redundant through BUILT_SOURCES.
62322         * modules/getopt (Makefile.am): Remove explicit dependency on
62323         $(GETOPT_H), redundant through BUILT_SOURCES.
62324         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
62325         redundant through BUILT_SOURCES.
62326         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
62327         redundant through BUILT_SOURCES.
62328         * modules/stdbool (Makefile.am): Remove explicit dependency on
62329         $(STDBOOL_H), redundant through BUILT_SOURCES.
62330         * modules/stdint (Makefile.am): Remove explicit dependency on
62331         $(STDINT_H), redundant through BUILT_SOURCES.
62332         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
62333         Remove explicit dependency on $(SYSEXITS_H).
62334         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
62335
62336 2005-07-18  Simon Josefsson  <jas@extundo.com>
62337
62338         * lib/check-version.c (check_version): Accept identical versions too.
62339
62340 2005-07-18  Bruno Haible  <bruno@clisp.org>
62341
62342         * modules/lock: New file.
62343         * MODULES.html.sh (Multithreading): New section.
62344
62345 2005-07-18  Bruno Haible  <bruno@clisp.org>
62346
62347         * m4/lock.m4: New file, from GNU gettext.
62348
62349 2005-07-18  Bruno Haible  <bruno@clisp.org>
62350
62351         * lib/lock.h: New file, from GNU gettext.
62352         * lib/lock.c: New file, from GNU gettext.
62353
62354 2005-07-18  Bruno Haible  <bruno@clisp.org>
62355
62356         * lib/lock.h (gl_once_t): New type.
62357         (gl_once_define, gl_once): New macros.
62358         * lib/lock.c (fresh_once): New variable.
62359         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
62360         functions.
62361
62362 2005-07-16  Simon Josefsson  <jas@extundo.com>
62363
62364         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
62365         workaround, suggested by Bruno.
62366
62367 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
62368
62369         * modules/xalloc (Depends-on): Add xalloc-die.
62370         * modules/xvasprintf (Depends-on): Add xalloc-die.
62371
62372 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
62373
62374         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
62375         with a minor change.
62376
62377 2005-07-15  Bruno Haible  <bruno@clisp.org>
62378
62379         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
62380         When using lib/poll.c, define poll as rpl_poll.
62381
62382 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
62383
62384         * modules/argp (Depends-on): Remove unlocked-io.
62385
62386 2005-07-14  Derek Price  <derek@ximbiot.com>
62387
62388         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
62389         for glob symlink bug.
62390
62391 2005-07-14  Bruno Haible  <bruno@clisp.org>
62392
62393         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
62394         Instead, test for *_unlocked function declarations directly.
62395
62396 2005-07-11  Simon Josefsson  <jas@extundo.com>
62397
62398         * modules/size_max: New file.
62399
62400         * modules/xsize: Depend on size_max module for size_max.m4.
62401
62402 2005-07-11  Simon Josefsson  <jas@extundo.com>
62403
62404         * lib/size_max.h: New file.
62405
62406 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
62407
62408         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
62409         copyright symbol and the year.
62410         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
62411         (version_etc_va): Use parameterized copyright notice.
62412         Reword to conform to the current GNU coding standards.
62413
62414 2005-07-11  Karl Berry  <karl@gnu.org>
62415
62416         * doc/gnulib.texi (Quoting): new node.
62417         (Initial import): more info, from Patrice.
62418
62419 2005-07-11  Bruno Haible  <bruno@clisp.org>
62420
62421         * gnulib-tool (func_usage): Document option --avoid.
62422         (Command line options): Handle --avoid.
62423         (func_acceptable): New function.
62424         (func_modules_transitive_closure): Use it.
62425
62426 2005-07-11  Bruno Haible  <bruno@clisp.org>
62427
62428         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
62429         Reported by Jim Meyering.
62430
62431 2005-07-10  Bruno Haible  <bruno@clisp.org>
62432
62433         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
62434         Needed when size_t is smaller than 'unsigned int'.
62435         Reported by Paul Eggert.
62436
62437 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62438
62439         * modules/argp (Depends-on): Add unlocked-io
62440
62441 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62442
62443         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
62444         block of defines.
62445
62446 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62447
62448         * config/srclist.txt: Comment out regcomp.c, since we have a porting
62449         fix now.
62450
62451 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
62452         and Paul Eggert  <eggert@cs.ucla.edu>
62453
62454         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
62455         in wint_t, not wchar_t.  Remove now-unnecessary cast.
62456
62457 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62458
62459         * modules/regex (Files): Add lib/regex_internal.c,
62460         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
62461         (Depends-on): Add extensions.
62462         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
62463
62464 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62465
62466         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
62467         pathconf.
62468         * m4/same.m4 (gl_SAME): Likewise.
62469         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
62470
62471         * m4/regex.m4: Adjust to new libc regex implementation.
62472         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
62473         all the .c and .h parts of (the new) regex.
62474         Quote the m4 stuff better.
62475         Check for RE_ICASE bug of old gnulib.
62476         Check for REG_STARTEND of recent libc.
62477         Rename local variables from jm_* to gl_*.
62478         Quote operand of "test -f".
62479         Say "recent enough" version of libc, not "version 2".
62480         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
62481         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
62482         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
62483         Remove check for btowc, isascii.
62484         Require AM_LANGINFO_CODESET.
62485
62486 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62487
62488         * lib/regex.c, regex.h: Sync from libc.
62489         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
62490         * lib/regexec.c:
62491         New files, synced from libc, except that regex_internal.h
62492         currently has a small porting fix.
62493
62494 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
62495
62496         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
62497         regex_internal.c, regexec.c.
62498         Add regex_internal.h too, but as a comment, since the libc version
62499         is currently broken in gnulib mode.
62500
62501 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62502
62503         Support programs like Emacs that use gnulib but not gettext.
62504         * MODULES.html.sh (Internationalization functions): Add gettext-h.
62505         * modules/gettext-h: New file.
62506         * modules/gettext (Files): Remove lib/gettext.h.
62507         (Depends-on): Add gettext-h.
62508         (Makefile.am): Remove lib_SOURCES.
62509         * modules/argmatch, modules/c-stack, modules/closeout:
62510         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
62511         * modules/execute, modules/file-type, modules/getaddrinfo:
62512         * modules/getopt, modules/human, modules/javacomp:
62513         * modules/javaexec, modules/mkdir-p, modules/obstack:
62514         * modules/openat, modules/pagealign_alloc, modules/pipe:
62515         * modules/quotearg, modules/regex, modules/rpmatch:
62516         * modules/unicodeio, modules/userspec, modules/version-etc:
62517         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
62518         * modules/xsetenv:
62519         Depend on gettext-h, not gettext.
62520
62521 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62522
62523         * gnulib-tool (func_import): Add support for 'public domain' license.
62524         * modules/alloca, modules/atexit, modules/memmove:
62525         Now public domain, not GPL.
62526         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
62527         * modules/realloc, modules/strerror, modules/strtod:
62528         Now LGPL, not GPL.
62529
62530 2005-07-05  Bruno Haible  <bruno@clisp.org>
62531
62532         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
62533         autoconf CVS. Needed for mingw.
62534
62535 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         Remove the dependency of the strftime module on the tzset module.
62538         * modules/strftime (Depends-on): Remove dependency on tzset.
62539
62540 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62541
62542         Remove the dependency of the strftime module on the tzset module.
62543         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
62544         gl_FUNC_TZSET_CLOBBER.
62545
62546 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62547
62548         Remove the dependency of the strftime module on the tzset module.
62549         * lib/strftime.c (my_strftime)
62550         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
62551         Copy the input structure, to work around some of the bug with
62552         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
62553         Solaris releases, you should also use the tzset module, but we won't
62554         require it as a dependency any more since we don't want LGPLed code
62555         to depend on GPLed code.
62556
62557 2005-07-02  Jim Meyering  <jim@meyering.net>
62558
62559         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
62560         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
62561         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
62562         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
62563
62564 2005-07-02  Jim Meyering  <jim@meyering.net>
62565
62566         * lib/backupfile.c (backup_args): Change a `0' to NULL.
62567
62568 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62569
62570         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
62571         declares only 'struct timespec;' (!).
62572
62573 2005-07-01  Jim Meyering  <jim@meyering.net>
62574
62575         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
62576         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
62577         * lib/save-cwd.c, tempname.c:
62578         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
62579         and don't include <sys/file.h>).
62580
62581 2005-06-29  Jim Meyering  <jim@meyering.net>
62582
62583         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
62584         type name.  Use the variable name instead.
62585         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
62586         Likewise.
62587
62588 2005-06-28  Simon Josefsson  <jas@extundo.com>
62589
62590         * modules/check-version (Files): Add check-version.m4.
62591
62592 2005-06-28  Simon Josefsson  <jas@extundo.com>
62593
62594         * m4/check-version.m4: New file, suggested by Jim Meyering
62595         <jim@meyering.net>.
62596
62597 2005-06-28  Simon Josefsson  <jas@extundo.com>
62598
62599         * lib/check-version.h, lib/check-version.c: New files.
62600
62601 2005-06-28  Simon Josefsson  <jas@extundo.com>
62602
62603         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
62604         collision with global variable.  Better indentation.  Don't
62605         increment buffer pointer beyond buffer end.  Based on comments
62606         from Paul Eggert <eggert@cs.ucla.edu>.
62607
62608         * lib/base64.h: Indent.
62609
62610 2005-06-28  Simon Josefsson  <jas@extundo.com>
62611
62612         * doc/gnulib.texi (Library version handling): New section.
62613
62614 2005-06-28  Jim Meyering  <jim@meyering.net>
62615
62616         * check-module (find_included_lib_files): Hard-code another
62617         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
62618         but modules/fts-lgpl (correctly) does not list those files.
62619
62620         * modules/canonicalize (Files): Add lib/pathmax.h.
62621
62622 2005-06-25  Simon Josefsson  <jas@extundo.com>
62623
62624         * modules/check-version: New file.
62625
62626 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
62627
62628         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
62629         initializer of struct addrinfo, as an indication that we don't
62630         care how many members the structure has.
62631
62632 2005-06-24  Derek Price  <derek@ximbiot.com>
62633         and Bruno Haible  <bruno@clisp.org>
62634
62635         Remove stat module & update lstat.
62636         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
62637         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62638         * m4/stat.m4: Remove this file.
62639
62640 2005-06-24  Derek Price  <derek@ximbiot.com>
62641         and Bruno Haible  <bruno@clisp.org>
62642
62643         Remove stat module & update lstat.
62644         * lib/stat.c: Remove this file...
62645         (slash_aware_lstat): ...moving this content and its support...
62646         * lib/lstat.c (rpl_lstat): ...into here.
62647         * lib/lstat.h: New file.
62648
62649 2005-06-24  Derek Price  <derek@ximbiot.com>
62650         and Bruno Haible  <bruno@clisp.org>
62651
62652         Remove stat module & update lstat.
62653         * config/srclist.txt (libc sources): Remove stat.
62654
62655 2005-06-24  Derek Price  <derek@ximbiot.com>
62656         and Bruno Haible  <bruno@clisp.org>
62657
62658         Remove stat module & update lstat.
62659         * MODULES.html.sh (stat): Remove.
62660         * MODULES.html: Regenerated.
62661         * modules/lstat (Description): Correct function name.
62662         (Files): Add "lstat.h".
62663         (Depends-on): Remove stat, add xalloc, stat-macros.
62664         * modules/stat: Remove this file.
62665         (Include): Add "lstat.h", remove <sys/stat.h>.
62666
62667 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62668
62669         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
62670         (ranged_convert): Don't save conversion in a temporary struct.
62671         This causes a warning with GCC 4.0.0, and anyway in the typical
62672         case it's not worth the extra 100 bytes or so of code.
62673         (ranged_convert, __mktime_internal): When calling a function via a
62674         pointer P, use P () rather than (*P) (), as we now assume C89 or
62675         better.
62676
62677 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62678
62679         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
62680         "who -r" failed to give output.  Problem reported by Tim Waugh.
62681
62682         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
62683         (xcalloc): Use it to avoid needless tests.
62684         Problem reported by Jim Meyering.
62685
62686 2005-06-20  Derek Price  <derek@ximbiot.com>
62687
62688         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
62689         unnecessary for Autoconfs > 2.59c.
62690
62691 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62692
62693         * lib/argp.h (__option_is_short): Check upper limit of
62694         __key. Isprint() requires its argument to have the value
62695         of an unsigned char or EOF.
62696
62697 2005-06-16  Jim Meyering  <jim@meyering.net>
62698
62699         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
62700         when either N or S is zero.
62701
62702 2005-06-16  Derek Price  <derek@ximbiot.com>
62703
62704         * m4/bison.m4: Declare YACC & YFLAGS precious.
62705
62706 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
62707
62708         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
62709         multibyte string or pattern, fall back on unibyte matching.
62710         Problem reported by James Youngman.
62711
62712 2005-06-08  Bruno Haible  <bruno@clisp.org>
62713
62714         * modules/csharpcomp: New file.
62715         * MODULES.html.sh (C#): Add csharpcomp.
62716
62717 2005-06-08  Bruno Haible  <bruno@clisp.org>
62718
62719         * m4/csharpcomp.m4: New file, from GNU gettext.
62720
62721 2005-06-08  Bruno Haible  <bruno@clisp.org>
62722
62723         * lib/csharpcomp.h: New file, from GNU gettext.
62724         * lib/csharpcomp.c: New file, from GNU gettext.
62725         * lib/csharpcomp.sh.in: New file, from GNU gettext.
62726
62727 2005-06-08  Bruno Haible  <bruno@clisp.org>
62728
62729         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
62730         warning on mingw.
62731
62732 2005-06-07  Derek Price  <derek@ximbiot.com>
62733
62734         Sync from CVS.
62735         * lib/glob_.h: Indent nested #ifdef.
62736
62737 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62738
62739         Sync from coreutils.
62740         Use "file name" when talking about file names, instead of "filename"
62741         or "path", as per the GNU coding standards.
62742         * lib/mkdir-p.c: Renamed from makepath.c.
62743         (make_dir_parents): Renamed from make_path.  All callers changed.
62744         * lib/mkdir-p.h: Likewise.  All includers changed.
62745         * lib/filenamecat.c: Renamed from path-concat.c.
62746         (file_name_concat): Renamed from path_concat.  All callers changed.
62747         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
62748         * lib/filenamecat.h: Likewise.  All includers changed.
62749         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
62750         in comments or local variable names.
62751         * lib/basename.c: Likewise.
62752         * lib/canonicalize.c, canonicalize.h: Likewise.
62753         * lib/dirname.c, dirname.h: Likewise.
62754         * lib/euidaccess.c: Likewise.
62755         * lib/exclude.c: Likewise
62756         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
62757         * lib/fsusage.c, fsuage.h: Likewise.
62758         * lib/fts.c, fts_.h: Likewise.
62759         * lib/getcwd.c: Likewise.
62760         * lib/getloadavg.c: Likewise.
62761         * lib/mkstemp.c: Likewise.
62762         * lib/mountlist.c, mountlist.h: Likewise.
62763         * lib/openat.c, openat.h: Likewise.
62764         * lib/readlink-stub.c: Likewise.
62765         * lib/readutmp.c, readutmp.h: Likewise.
62766         * lib/rename.c: Likewise.
62767         * lib/rmdir.c: Likewise.
62768         * lib/same.c: Likewise.
62769         * lib/savedir.c: Likewise.
62770         * lib/stripslash.c: Likewise.
62771         * lib/tempname.c: Likewise.
62772         * lib/xreadlink.c: Likewise.
62773         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
62774         All uses changed.
62775         * lib/exclude.h: Likewise.
62776
62777         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
62778         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62779         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
62780         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62781         * lib/pathmax.h: Include <limits.h> unconditionally, since other
62782         files have been getting away with it for years (MORE/BSD 4.3
62783         is extinct now).
62784         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
62785         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
62786
62787         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
62788         Define to 256, not 255, as per modern POSIX.
62789
62790 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62791
62792         Sync from coreutils.
62793         Use "file name" when talking about file names, instead of "filename"
62794         or "path", as per the GNU coding standards.
62795         * MODULES.html.sh: mkdir-p renamed from makepath.
62796         filenamecat renamed from path-concat.
62797         * modules/filenamecat: Renamed from modules/path-concat.
62798         (Files): filenamecat.h and filenamecat.c renamed from
62799         path-concat.h and path-concat.c.
62800         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
62801         (Include): filenamecat.h, not path-concat.h.
62802         * modules/mkdir-p: Renamed from modules/makepath.
62803         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
62804         makepath.c.
62805         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
62806         (Include): mkdir-p.h, not makepath.h.
62807
62808 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
62809
62810         Sync from coreutils.
62811         * m4/mkdir-p.m4: Renamed from makepath.m4.
62812         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
62813         Rename files from makepath.c to mkdir-p.c, and from
62814         makepath.h to mkdir-p.h.
62815         * m4/filenamecat.m4: Renamed from path-concat.m4.
62816         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
62817         Rename files from path-concat.c to filenamecat.c,
62818         and from path-concat.h to filenamecat.h.
62819         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
62820         "file name" in local variables or comments.
62821         * m4/rename.m4: Likewise.
62822
62823 2005-06-01  Bruno Haible  <bruno@clisp.org>
62824
62825         * modules/csharpexec: New file.
62826         * MODULES.html.sh (C#): New section.
62827
62828 2005-06-01  Bruno Haible  <bruno@clisp.org>
62829
62830         * m4/csharp.m4: New file, from GNU gettext.
62831         * m4/csharpexec.m4: New file, from GNU gettext.
62832
62833 2005-06-01  Bruno Haible  <bruno@clisp.org>
62834
62835         * lib/csharpexec.h: New file, from GNU gettext.
62836         * lib/csharpexec.c: New file, from GNU gettext.
62837         * lib/csharpexec.sh.in: New file, from GNU gettext.
62838
62839 2005-05-31  Derek Price  <derek@ximbiot.com>
62840             Paul Eggert  <eggert@cs.ucla.edu>
62841
62842         Sync from cvs.
62843         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
62844
62845 2005-05-31  Derek Price  <derek@ximbiot.com>
62846             Paul Eggert  <eggert@cs.ucla.edu>
62847
62848         Sync from cvs.
62849         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
62850
62851 2005-05-29  Derek Price  <derek@ximbiot.com>
62852
62853         * config/srclist.txt (glob_.h, glob.c): Add these files.
62854
62855 2005-05-29  Derek Price  <derek@ximbiot.com>
62856
62857         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
62858         * modules/glob: New file.
62859         * modules/getlogin_r: Add link to POSIX spec in description.
62860
62861 2005-05-29  Derek Price  <derek@ximbiot.com>
62862             Paul Eggert  <eggert@cs.ucla.edu>
62863
62864         * m4/glob.m4: New file.
62865
62866 2005-05-29  Derek Price  <derek@ximbiot.com>
62867             Paul Eggert  <eggert@cs.ucla.edu>
62868
62869         * lib/glob_.h, lib/glob.c: New files.
62870
62871 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62872
62873         * modules/fts (Files): Remove m4/inttypes-pri.m4.
62874         * modules/fts-lgpl (Depends-on): Remove gettext.
62875
62876 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62877
62878         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
62879         and don't require gt_INTTYPES_PRI.
62880
62881 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
62882
62883         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
62884
62885         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
62886         the configuration hassle isn't worth it.
62887         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
62888         (LONGEST_MODIFIER, PRIuMAX): Remove.
62889
62890 2005-05-27  Bruno Haible  <bruno@clisp.org>
62891
62892         * lib/getlogin_r.h: Remove second include of <stddef.h>.
62893
62894 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
62895
62896         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
62897         _POSIX_PTHREAD_SEMANTICS for Solaris.
62898
62899 2005-05-25  Derek Price  <derek@ximbiot.com>
62900
62901         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
62902
62903 2005-05-25  Derek Price  <derek@ximbiot.com>
62904             Paul Eggert  <eggert@cs.ucla.edu>
62905
62906         * modules/getlogin_r, m4/getlogin_r.m4: New files.
62907         * lib/getlogin_r.c, getlogin_r.h: New files.
62908
62909 2005-05-25  Bruno Haible  <bruno@clisp.org>
62910             Derek Price  <derek@ximbiot.com>
62911
62912         * lib/getlogin_r.h: Simplify API documentation.
62913
62914 2005-05-23  Derek Price  <derek@ximbiot.com>
62915
62916         * modules/minmax (Files): Add m4/minmax.m4.
62917         (configure.ac): Add gl_MINMAX.
62918
62919 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62920
62921         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
62922         so that unistd-safer.h (GPL'ed code) need not be included.
62923
62924 2005-05-22  Bruno Haible  <bruno@clisp.org>
62925
62926         * m4/minmax.m4: New file.
62927         Based on a patch by Derek Price <derek@ximbiot.com>.
62928
62929 2005-05-22  Bruno Haible  <bruno@clisp.org>
62930
62931         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
62932         (INT64_MIN): Fix definition.
62933         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
62934
62935         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
62936         NEED_SIGNED_INT_TYPES.
62937
62938         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
62939         HAVE_SYSTEM_INTTYPES.
62940
62941 2005-05-22  Bruno Haible  <bruno@clisp.org>
62942
62943         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
62944         Also include <sys/param.h> if it defines MIN, MAX.
62945         Based on a patch by Derek Price <derek@ximbiot.com>.
62946
62947 2005-05-21  Jim Meyering  <jim@meyering.net>
62948
62949         * modules/fts (Files): Add m4/inttypes-pri.m4.
62950         (Depends-on): Add lstat and remove gettext.  Alphabetize.
62951
62952 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62953
62954         New fts module.
62955         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
62956         (setup_dir, free_dir): New functions.
62957         (enter_dir, leave_dir): Define trivial
62958         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
62959         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
62960         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
62961         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
62962         Move to fts-cycle.c.
62963         (fts_open): Use setup_dir.
62964         (fts_close): Use free_dir.
62965         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
62966         This adds a label and some gotos, but the alternatives were messier.
62967         Check for memory allocation failure when entering a dir.
62968         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
62969         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
62970         (FTS): New member fts_cycle, that is a union that contains the
62971         old active_dir_ht and cycle_state.  All uses changed to mention
62972         fts_cycle.ht and fts_cycle.state.
62973         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
62974         fts.c, with the following changes:
62975         (setup_dir, free_dir): New functions.
62976         (enter_dir): Now returns bool.  Return true if successful, false
62977         if memory exhausted.  All callers changed.
62978         Do not bother partly cleaning up on
62979         memory allocation failure; that is free_dir's job.
62980         However, free ad if hash_insert fails, to avoid memory leak.
62981         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
62982         fts->fts_options to see which union member to use.
62983
62984 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62985
62986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
62987         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
62988
62989 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62990
62991         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
62992
62993 2005-05-20  Jim Meyering  <jim@meyering.net>
62994
62995         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
62996         Now a macro, to pacify GCC.
62997
62998 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
62999
63000         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
63001         of -1.
63002
63003 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
63004
63005         * lib/chown.c (rpl_chown): Return -1 on failure.
63006
63007 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
63008
63009         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
63010         Don't check for stddef.h.
63011         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
63012         don't use its results.
63013         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
63014         since we include them unconditionally.  Don't require
63015         AM_STDBOOL_H, since stdbool is a prerequisite.
63016         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
63017         since we assume C89 or better.
63018         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
63019         as we don't use their results.
63020         Don't check for fchdir, memmove, memset, strrchr, as we use
63021         them unconditionally.
63022         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
63023         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
63024
63025 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
63026
63027         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
63028         Include <stddef.h> unconditionally, since we assume C89 now.
63029         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
63030         * lib/fts.c: Include fts_.h first, to check interface.
63031         Do not include intprops.h; no longer needed.
63032         Include cycle-check.h and hash.h, since fts_.h no longer does.
63033         Remove unnecessary casts of closedir to void.
63034         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
63035         decide whether to decrement nlinks.
63036         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
63037         (FTS): Use struct hash_table * instead of Hash_table, so that
63038         we no longer need to include hash.h here.
63039
63040 2005-05-18  Jim Meyering  <jim@meyering.net>
63041
63042         * modules/dirfd (License): Change to LGPL.  Most of the code
63043         is already in the public domain.
63044
63045 2005-05-18  Jim Meyering  <jim@meyering.net>
63046
63047         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
63048         Reported by Yoann Vandoorselaere.
63049
63050 2005-05-17  Jim Meyering  <jim@meyering.net>
63051
63052         * m4/fts.m4: New file, from coreutils.
63053
63054 2005-05-17  Jim Meyering  <jim@meyering.net>
63055
63056         * lib/fts.c, lib/fts_.h: New files, from coreutils.
63057
63058 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63059
63060         Sync from coreutils.
63061         * m4/unlinkdir.m4: New file.
63062
63063 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63064
63065         Sync from coreutils.
63066         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
63067         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
63068         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
63069         White space changes only.
63070         * lib/makepath.c (make_path): Port to hosts where leading "//" is
63071         special.
63072         * lib/yesno.c: Include getline.h, not ctype.h.
63073         (yesno): Don't remove leading white space; POSIX doesn't allow it.
63074         Use getline to remove arbitrary restriction on response length.
63075
63076 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63077
63078         * config/srclist-update: Spell out "Street" in FSF postal
63079         mail address; this is the style the FSF seems to prefer.
63080
63081         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
63082         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
63083         this updates FSF postal mail address.
63084
63085         Sync from coreutils.
63086         * modules/unlinkdir: New file.
63087         * modules/yesno (Depends-on): Add getline.
63088         * MODULES.html.sh (File system functions): Add unlinkdir.
63089
63090 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63091
63092         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
63093         lib/strsep.h:
63094         Change the initial comment to refer to GPL, not LGPL.
63095         gnulib-tool will change it to LGPL as needed.
63096
63097         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
63098         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
63099         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
63100         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
63101         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
63102         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
63103         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
63104         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
63105         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
63106         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
63107         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
63108         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
63109         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
63110         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
63111         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
63112         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
63113         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
63114         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
63115         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
63116         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
63117         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
63118         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
63119         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
63120         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
63121         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
63122         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
63123         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
63124         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
63125         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
63126         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
63127         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
63128         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
63129         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
63130         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
63131         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
63132         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
63133         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
63134         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
63135         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
63136         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
63137         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
63138         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
63139         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
63140         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
63141         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
63142         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
63143         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
63144         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
63145         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
63146         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
63147         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
63148         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
63149         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
63150         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
63151         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
63152         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
63153         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
63154         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
63155         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
63156         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
63157         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
63158         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
63159         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
63160         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
63161         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
63162         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
63163         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
63164         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
63165         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
63166         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
63167         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
63168         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
63169         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
63170         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
63171         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
63172         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
63173         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
63174         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
63175         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
63176         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
63177         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
63178         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
63179         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
63180         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
63181         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
63182         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
63183         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
63184         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
63185         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
63186         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
63187         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
63188         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
63189         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
63190         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
63191         lib/yesno.c, lib/yesno.h:
63192         Update FSF postal mail address.
63193
63194 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63195
63196         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
63197         tests/test-memmem.c, tests/test-stpncpy.c:
63198         Update FSF postal mail address.
63199
63200 2005-05-13  Bruno Haible  <bruno@clisp.org>
63201
63202         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
63203         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
63204         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
63205         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
63206         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
63207         Add support for 64-bit integers in the MSVC compiler.
63208
63209 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
63210
63211         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
63212
63213 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
63214
63215         * gnulib-tool (func_import): Sort and uniquify recommended includes.
63216
63217 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
63218
63219         * doc/getdate.texi (General date syntax): Don't say that date
63220         date --iso-8601=ns generates acceptable dates; it doesn't yet.
63221         Problem reported by Nic Ferrier.
63222
63223 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63224
63225         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
63226         specified in ai_socktype. Fix invalid ai_protocol
63227         check. ai_protocol is usually set to 0 or depending on
63228         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
63229         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
63230         ai_socktype / ai_protocol in the returned addrinfo structure.
63231
63232 2005-05-10  Simon Josefsson  <jas@extundo.com>
63233
63234         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
63235         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63236
63237 2005-05-10  Karl Berry  <karl@gnu.org>
63238
63239         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
63240         (from http://www.gnu.org/licenses).
63241         * doc/COPYING.LIB: also rename to COPYING.LESSER.
63242         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
63243         fdl.texi suffices.
63244
63245 2005-05-10  Karl Berry  <karl@gnu.org>
63246
63247         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
63248         (COPYING.DOC): remove.
63249
63250         * config/srclist-update: new FSF address.
63251
63252 2005-05-10  Derek Price  <derek@ximbiot.com>
63253
63254         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
63255         possible.
63256
63257 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63258             Bruno Haible  <bruno@clisp.org>
63259
63260         * modules/inet_ntop: New file.
63261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63262         inet_ntop.
63263
63264 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63265             Bruno Haible  <bruno@clisp.org>
63266
63267         * m4/inet_ntop.m4: New file.
63268
63269 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63270             Bruno Haible  <bruno@clisp.org>
63271
63272         * lib/inet_ntop.h: New file.
63273         * lib/inet_ntop.c: New file, from glibc with modifications.
63274
63275 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
63276
63277         * modules/time_r (License): Change to LGPL.
63278         * modules/extensions (License): Change to LGPL.  Actually,
63279         the license is more permissive than that, but currently gnulib-tool
63280         doesn't know how to handle more-permissive licenses.
63281
63282         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
63283         Problem reported by Dave Love.
63284
63285 2005-05-08  Jim Meyering  <jim@meyering.net>
63286
63287         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
63288         blank.
63289
63290 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63291
63292         * modules/argmatch (Depends-on): Add stdbool.
63293         * modules/backupfile (Depends-on): Likewise.
63294         * modules/chdir-long (Depends-on): Likewise.
63295         * modules/closeout (Depends-on): Likewise.
63296         * modules/cycle-check (Depends-on): Likewise.
63297         * modules/dirname (Depends-on): Likewise.
63298         * modules/fnmatch (Depends-on): Likewise.
63299         * modules/fsusage (Depends-on): Likewise.
63300         * modules/fwriteerror (Depends-on): Likewise.
63301         * modules/getcwd (Depends-on): Likewise.
63302         * modules/getloadavg (Depends-on): Likewise.
63303         * modules/hard-locale (Depends-on): Likewise.
63304         * modules/makepath (Depends-on): Likewise.
63305         * modules/mountlist (Depends-on): Likewise.
63306         * modules/nanosleep (Depends-on): Likewise.
63307         * modules/posixtm (Depends-on): Likewise.
63308         * modules/quotearg (Depends-on): Likewise.
63309         * modules/readtokens (Depends-on): Likewise.
63310         * modules/readtokens0 (Depends-on): Likewise.
63311         * modules/readutmp (Depends-on): Likewise.
63312         * modules/save-cwd (Depends-on): Likewise.
63313         * modules/strftime (Depends-on): Likewise.
63314         * modules/userspec (Depends-on): Likewise.
63315         * modules/utimecmp (Depends-on): Likewise.
63316         * modules/xgetcwd (Depends-on): Likewise.
63317         * modules/xnanosleep (Depends-on): Likewise.
63318         * modules/xstrtod (Depends-on): Likewise.
63319         * modules/yesno (Depends-on): Likewise.
63320
63321 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
63322
63323         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
63324         needless checks.
63325
63326 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63327
63328         Merge from coreutils.  Among other things,
63329         add bulletproofing for cases where stdin, stdout, or stderr are closed.
63330         * lib/fd-safer.c: New file.
63331         * lib/fcntl-safer.h, open-safer.c: Remove.
63332         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
63333         * lib/dup-safer.c: Include unistd-safer.h first.
63334         Don't include errno.h.
63335         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
63336         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
63337         * lib/file-type.c: Rely on file-type.h change.
63338         * lib/getloadavg.c: Include unistd-safer.h.
63339         (getloadavg): Use safer open.
63340         * lib/getusershell.c: Include "stdio-safer.h".
63341         (getusershell): Use safer fopen.
63342         * lib/long-options.c (long_options): Use NULL rather than 0.
63343         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
63344         'free'.
63345         * lib/modechange.c: Likewise.
63346         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
63347         (MODE_DONE): New constant.
63348         (struct mode_change): Remove 'next' member.
63349         (make_node_op_equals): New function; like the old one of the
63350         same name, except it allocates an array.
63351         (mode_compile, mode_create_from_ref): Use it.
63352         (mode_compile): Allocate result as an array, not a linked list.
63353         Parse octal string ourself, so that we catch mistakes like "+0".
63354         (mode_adjust): Arg is an array, not a linked list.
63355         * lib/modechange.c: Include stat-macros.h, xalloc.h.
63356         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
63357         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
63358         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
63359         Remove.  This is now stat-macros.h's job.
63360         (talloc): Remove.  All callers replaced by xalloc, so that
63361         our invokers don't have to worry about reporting memory failures.
63362         (make_node_op_equals): Remove.
63363         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
63364         New constants.
63365         (struct mode_change): Moved here from modechange.h.
63366         (mode_append_entry): Remove.
63367         (mode_compile): Remove MASKED_OPS arg, since it encouraged
63368         apps to have incorrect behavior.  Use simpler algorithm for head
63369         and tail.  Don't futz with umask; that's now the job of mode_adjust.
63370         Detect more invalid usages rather than having somewhat-random behavior.
63371         Don't insert an "a=" action, as that leads to incorrect behavior.
63372         (mode_compile, mode_create_from_ref): Return NULL on error instead
63373         of an enum, since now there's only one way to have an error.  All
63374         callers changed.
63375         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
63376         at the correct time.  Simplify calculation of "+u" and its ilk.
63377         Don't mishandle "+X".
63378         (mode_free): Remove "register" and localize decls.
63379         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
63380         (struct mode_change): Move to modechange.c; callers don't
63381         need to see this stuff.
63382         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
63383         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
63384         (mode_change, mode_adjust): Reflect the new signatures noted above.
63385         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
63386         that might redefine system include files.
63387         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
63388         (my_usleep): Use NULL rather than (void *) 0.
63389         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
63390         Use siginterrupt to specify that system calls should be interrupted.
63391         (rpl_nanosleep): Move initialization of suspended closer to call of
63392         my_usleep.
63393         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
63394         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
63395         (desirable_utmp_entry): New function.
63396         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
63397         using x2nrealloc, to simplify logic.
63398         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
63399         size calculation.  Do not assume utmp file is a regular file.
63400         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
63401         (READ_UTMP_CHECK_PIDS): New constant.
63402         * lib/save-cwd.c: Include unistd-safer.h.
63403         (save_cwd): Use fd_safer.
63404         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
63405         [!_LIBC] Include "stat-macros.h" instead.
63406         * lib/unistd-safer.h (fd_safer): New decl.
63407
63408 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63409
63410         * modules/getloadavg (Depends-on): Add unistd-safer.
63411         * modules/getusershell (Depends-on): Add stdio-safer.
63412         * modules/lstat (Depends-on): Remove xalloc.
63413         * modules/mkstemp (Depends-on): Add stat-macros.
63414         * modules/modechange (Depends-on): Remove xstrtol.
63415         Add stat-macros, xalloc.
63416         * modules/save-cwd (Depends-on): Add unistd-safer.
63417         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
63418         * modules/unistd-safer (Files): Add lib/fd-safer.c
63419         (Makefile.am): Remove lib_SOURCES.
63420
63421         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
63422         Remove fcntl-safer; unistd-safer supersedes it.
63423
63424 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63425
63426         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
63427         AC_HEADER_STAT.
63428         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
63429         (gl_PREREQ_CHOWN): Remove.
63430         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
63431         it.  Don't require AC_HEADER_STAT.
63432         (gl_PREREQ_LSTAT): Remove.
63433         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
63434         Don't require AC_HEADER_STAT.
63435         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
63436         (gl_PREREQ_RMDIR): Remove.
63437         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
63438         mention stat-macros.h or AC_HEADER_STAT, since we'll make
63439         the stat-macros module a prerequisite.
63440         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
63441         * m4/filemode.m4 (gl_FILEMODE): Likewise.
63442         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
63443         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
63444         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
63445         variable names.
63446         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
63447         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
63448         variable prefixes.
63449         * m4/fcntl-safer.m4: Remove.
63450         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
63451         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
63452         Invoke gl_PREREQ_FD_SAFER.
63453         (gl_PREREQ_FD_SAFER): New macro.
63454         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
63455         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
63456         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
63457         Remove duplicate call to AC_LIBOBJ(readutmp).
63458         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
63459
63460         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
63461         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
63462
63463 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
63464
63465         * MODULES.html.sh (Misc): Add byteswap.
63466
63467 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63468
63469         * modules/getcwd (Depends-on): Add extensions.
63470         * modules/openat (Depends-on): Likewise.
63471
63472 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63473
63474         * modules/byteswap: New file.
63475
63476 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63477
63478         * m4/byteswap.m4: New file.
63479
63480 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
63481
63482         * lib/byteswap_.h: New file.
63483
63484 2005-04-25  Karl Berry  <karl@gnu.org>
63485
63486         * m4/gettext.m4: Update from GNU gettext 0.14.4.
63487
63488 2005-04-25  Albert Chin  <china@thewrittenword.com>
63489
63490         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
63491         Toolkit C bug.
63492
63493 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
63494
63495         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
63496         (func_ln_if_changed) Remove forcibly for no error message
63497         in case file does not exist.
63498
63499 2005-04-19  Simon Josefsson  <jas@extundo.com>
63500
63501         * gnulib-tool (Options): Make --symlink mean --symbolic.
63502
63503 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
63504
63505         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
63506
63507 2005-04-16  Simon Josefsson  <jas@extundo.com>
63508
63509         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
63510
63511 2005-04-15  Simon Josefsson  <jas@extundo.com>
63512
63513         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
63514
63515 2005-04-15  Simon Josefsson  <jas@extundo.com>
63516
63517         * gnulib-tool: Rename --symlink to --symbolic.
63518
63519 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
63520
63521         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
63522         symbolic links to files instead of copying/moving.  Add --aux-dir,
63523         specifying directory relative --dir where auxiliary build tools
63524         are placed.
63525
63526 2005-04-14  Bruno Haible  <bruno@clisp.org>
63527
63528         * modules/allocsa (License): Change to LGPL.
63529         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
63530
63531 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
63534         that "UTC +1 second" continues to work.  Problem reported
63535         by Dmitry V. Levin.
63536         (relunit_snumber): New rule.
63537         (relunit): Use it.
63538
63539 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63540
63541         * lib/getdate.y (universal_time_zone_table): New constant.
63542         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
63543         universal_time_zone_table.
63544         (lookup_zone): Prefer universal_time_zone_table to
63545         local_time_zone_table, so that "GMT" time stamps are allowed in
63546         London during the summer.  Problem reported by Ian Abbott.
63547
63548 2005-04-12  Jim Meyering  <jim@meyering.net>
63549
63550         * lib/human.c (humblock): Set *options even when returning due to
63551         xstrtoumax conversion failure.  Thanks to a used-uninitialized
63552         warning from gcc-4.
63553
63554 2005-04-09  Jim Meyering  <jim@meyering.net>
63555
63556         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
63557         -Wuninitialized: initialize tm0.tm_year.
63558
63559 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63560
63561         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
63562         count, since there's no maximum.  All uses changed.
63563         Add member dsts_seen.
63564         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
63565         not being INT_MAX.
63566         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
63567         Use pc_rels_seen to decide whther a date is absolute.
63568
63569         * lib/getdate.y (number): Don't overwrite year.
63570         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
63571         check.
63572
63573 2005-04-02  Simon Josefsson  <jas@extundo.com>
63574
63575         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
63576         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
63577
63578 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
63579
63580         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
63581         where no absolute path name can be longer than PATH_MAX.
63582
63583 2005-03-27  Jim Meyering  <jim@meyering.net>
63584
63585         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
63586
63587 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
63588
63589         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
63590         "one's complement" -> "ones' complement" in comment, as per Knuth.
63591         "value of type" -> "type or expression" in comment.
63592         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
63593
63594 2005-03-26  Jim Meyering  <jim@meyering.net>
63595
63596         Comment nits.
63597         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
63598         Correct typos: s/or/of/.
63599
63600 2005-03-26  Jim Meyering  <jim@meyering.net>
63601
63602         * modules/check-include-files: Move to ../ and rename to...
63603         * check-module: ...this.
63604
63605 2005-03-25  Jim Meyering  <jim@meyering.net>
63606
63607         * modules/xvasprintf (Files): Add xalloc.h.
63608
63609 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63610
63611         * modules/gettext (Files): config/config.rpath ->
63612         build-aux/config.rpath
63613         * modules/iconv (Files): Likewise.
63614         Problem reported by Oskar Liljeblad.
63615
63616 2005-03-23  Jim Meyering  <jim@meyering.net>
63617
63618         * modules/check-include-files: New script to check for
63619         missing dependencies, multiple includes, etc.
63620
63621         * modules/c-strtold (Depends-on): Add xalloc.
63622         * modules/c-strtod (Depends-on): Add xalloc.
63623         * modules/hash (Depends-on): Add xalloc.
63624         (Files): Remove lib/xalloc.h.
63625
63626         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
63627         * modules/userspec (Files): Add lib/inttostr.h.
63628
63629 2005-03-23  Jim Meyering  <jim@meyering.net>
63630
63631         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
63632
63633 2005-03-22  Jim Meyering  <jim@meyering.net>
63634
63635         * modules/stat-macros: New module.
63636         * modules/canonicalize, modules/euidaccess, modules/file-type,
63637         * modules/filemode, modules/lchown, modules/makepath,
63638         * modules/rmdir, modules/stat: Depend on new stat-macros module
63639         rather than listing lib/stat-macros.h manually.
63640         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
63641
63642 2005-03-22  Jim Meyering  <jim@meyering.net>
63643
63644         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
63645
63646 2005-03-22  Bruno Haible  <bruno@clisp.org>
63647
63648         * config/srclist.txt: Replace target directory 'config' with
63649         'build-aux'.
63650         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
63651         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
63652         ../build-aux/.
63653
63654 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
63655
63656         * modules/chdir-long (Depends-on): Add mempcpy.
63657
63658         * modules/acl, modules/backupfile, modules/c-strtod,
63659         modules/c-strtold, modules/canon-host, modules/canonicalize,
63660         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
63661         modules/exclude, modules/exitfail, modules/file-type,
63662         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
63663         modules/getdate, modules/getline, modules/getpagesize,
63664         modules/getpass, modules/getugroups, modules/group-member,
63665         modules/hard-locale, modules/hash, modules/human, modules/idcache,
63666         modules/inttostr, modules/long-options, modules/makepath,
63667         modules/md5, modules/memcasecmp, modules/memcoll,
63668         modules/modechange, modules/mountlist, modules/path-concat,
63669         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
63670         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
63671         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
63672         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
63673         modules/strftime, modules/strndup, modules/strverscmp,
63674         modules/timespec, modules/unlocked-io, modules/userspec,
63675         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
63676         modules/yesno:
63677         Remove lib_SOURCES line from Makefile.am section, as this is now
63678         done automatically by the corresponding Autoconf macro.
63679
63680 2005-03-21  Jim Meyering  <jim@meyering.net>
63681
63682         Changes imported from coreutils.
63683
63684         * lib/cycle-check.c: Don't include xalloc.h.
63685
63686         * lib/path-concat.c: Don't include assert.h.
63687         (path_concat): Remove assertion that would have triggered
63688         for ABASE starting with more than one slash.
63689         Reported by Andreas Schwab.
63690
63691         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
63692         properly when ABASE is an absolute file name.
63693         Correct the description of this function.
63694         Include <assert.h>.
63695         Add an assertion and a test driver.
63696         This fixes a bug introduced on 2004-07-02.
63697         Andreas Schwab reported the resulting failure of cp --parents:
63698         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
63699
63700 2005-03-21  Jim Meyering  <jim@meyering.net>
63701
63702         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
63703         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
63704
63705 2005-03-21  Jim Meyering  <jim@meyering.net>
63706         and  Paul Eggert  <eggert@cs.ucla.edu>
63707
63708         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
63709         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
63710         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
63711         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
63712         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
63713         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
63714         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
63715         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
63716         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
63717         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
63718         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
63719         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
63720         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
63721         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
63722         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
63723         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
63724         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
63725         for these modules.
63726
63727 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
63728
63729         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
63730         (which shouldn't happen), generate nothing instead of returning 0
63731         immediately, so that nstrftime (NULL, ...) doesn't return 0.
63732
63733 2005-03-16  Bruno Haible  <bruno@clisp.org>
63734
63735         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
63736         HAVE_LONGLONG_64BIT.
63737
63738 2005-03-16  Bruno Haible  <bruno@clisp.org>
63739
63740         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
63741         HAVE_LONGLONG_64BIT.
63742
63743 2005-03-16  Bruno Haible  <bruno@clisp.org>
63744
63745         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
63746         HAVE_LONGLONG_64BIT.
63747
63748 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63749
63750         * lib/strftime.c (my_strftime): Prepend space to format so that we can
63751         reliably distinguish strftime failure from empty output on POSIX
63752         hosts.
63753
63754 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
63755
63756         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
63757         (iconv_string): Don't guess a size-zero buffer, as that might cause
63758         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
63759         result would be 'too large', where 'too large' is (heuristically)
63760         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
63761         overflow concerns.  This will prevent some unwanted malloc failures
63762         when the inputs are very large.
63763
63764 2005-03-15  Karl Berry  <karl@gnu.org>
63765
63766         * config/srclist.txt (config.rpath): from gettext.
63767         * config/config.rpath: update.
63768
63769 2005-03-15  Bruno Haible  <bruno@clisp.org>
63770
63771         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
63772         to 'negate'.
63773
63774         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
63775         variable.
63776
63777         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
63778         results.
63779
63780 2005-03-14  Simon Josefsson  <jas@extundo.com>
63781
63782         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
63783         <fx@gnu.org>.
63784
63785 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
63786
63787         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
63788         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
63789         intprops.h.
63790         * lib/strtol.c: Likewise.
63791
63792 2005-03-14  Jim Meyering  <jim@meyering.net>
63793
63794         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
63795         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
63796         to be nonzero so that we (and caller) can detect the difference
63797         between a valid zero-length expansion and an error return, even
63798         when the underlying strftime fails before writing anything into
63799         that location.
63800
63801 2005-03-14  Bruno Haible  <bruno@clisp.org>
63802
63803         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
63804         Update from GNU gettext 0.14.3.
63805
63806 2005-03-10  Jim Meyering  <jim@meyering.net>
63807
63808         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
63809
63810 2005-03-10  Jim Meyering  <jim@meyering.net>
63811
63812         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
63813         so that this module works on systems without fchdir.
63814
63815 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
63816
63817         Factor int-properties macros into a single file, except for
63818         glibc-related files.
63819         * lib/intprops.h: New file.
63820         * lib/getloadavg.c: Include it instead of limits.h.
63821         (INT_STRLEN_BOUND): Remove.
63822         * lib/human.c: Include intprops.h.
63823         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
63824         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
63825         302/1000.
63826         * lib/inttostr.h: Include intprops.h instead of limits.h.
63827         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
63828         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
63829         for consistency with intprops.h.
63830         (time_t_is_integer, twos_complement_arithmetic): Use them.
63831         * lib/sig2str.h: Include <signal.h>, intprops.h.
63832         (INT_STRLEN_BOUND): Remove.
63833         * lib/strftime.c (TYPE_SIGNED): Remove.
63834         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
63835         * lib/strtol.c: Adjust comments to match intprops.h.
63836         * lib/userspec.c: Include intprops.h.
63837         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
63838         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
63839         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
63840         instead of rolling our own expressions.
63841         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
63842
63843         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
63844         instead of int.
63845         (my_strftime): Do not mishandle years close to INT_MAX, by doing
63846         the right thing even if adding 1900 would overflow.  Similarly
63847         for tm_mon + 1 and tm_yday + 1.
63848         Make %Y always equivalent to %C%y, and similarly for %G and %g.
63849         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
63850         (DO_SIGNED_NUMBER): New macro.
63851         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
63852
63853 2005-03-07  Bruno Haible  <bruno@clisp.org>
63854
63855         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
63856
63857 2005-03-07  Bruno Haible  <bruno@clisp.org>
63858
63859         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
63860
63861 2005-03-04  Derek R. Price  <derek@ximbiot.com>
63862
63863         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
63864         (func_import): Only replace files via --import when they have actually
63865         changed.
63866
63867 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63868
63869         * m4/mmap-anon.m4: New file.
63870         * m4/pagealign_alloc.m4: New file.
63871
63872 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63873             Bruno Haible  <bruno@clisp.org>
63874
63875         * modules/pagealign_alloc: New file.
63876         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
63877
63878 2005-03-03  Derek R. Price  <derek@ximbiot.com>
63879             Bruno Haible  <bruno@clisp.org>
63880
63881         * lib/pagealign_alloc.h: New file.
63882         * lib/pagealign_alloc.c: New file.
63883
63884 2005-03-03  Bruno Haible  <bruno@clisp.org>
63885
63886         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
63887         Use an all-permissive copyright notice, recommended by RMS.
63888
63889 2005-03-02  Bruno Haible  <bruno@clisp.org>
63890
63891         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
63892         of AIX, the replacement has to be done only after <string.h> is
63893         included, therefore not in config.h. stpncpy.h does the replacement,
63894         and stpncpy.c uses it.
63895
63896 2005-03-02  Bruno Haible  <bruno@clisp.org>
63897
63898         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
63899         stpncpy.c uses it.
63900
63901 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63902
63903         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
63904         The workaround isn't strictly needed for POSIX conformance, and
63905         it's too much of a pain to configure and maintain.  We'll ask
63906         people to fix their kernels instead.
63907         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
63908         (NANOSLEEP_BUG_WORKAROUND): Remove.
63909         (xnanosleep): Remove the workaround.
63910
63911 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63912
63913         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
63914         Reported by Derek Price.
63915         (Include): Add "timespec.h".
63916
63917         * modules/xnanosleep (Depends-on): Remove gethrxtime.
63918
63919 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63920
63921         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
63922         to detect nanosleep bug.
63923
63924 2005-03-01  Bruno Haible  <bruno@clisp.org>
63925
63926         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
63927
63928 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63929
63930         * modules/gethrxtime: New file.
63931         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
63932         (Depends-on): Add gethrxtime.
63933         (configure.ac): Add gl_XNANOSLEEP.
63934         (Makefile.am): Remove lib_SOURCES line.
63935
63936 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63937
63938         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
63939         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
63940
63941 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63942
63943         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
63944         * lib/timespec.h (gettime): Return void, since it always
63945         succeeds now.  All uses changed.
63946         * lib/gettime.c (gettime) Likewise.
63947         [HAVE_NANOTIME]: Prefer nanotime.
63948         Assume gettimeofday succeeds, as POSIX requires.
63949         Assime time () succeeds, since other code already does.
63950         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
63951         (timespec_subtract): Remove.
63952         (NANOSLEEP_BUG_WORKAROUND): New constant.
63953         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
63954         things considerably.  Use it only on GNU/Linux hosts, since the
63955         workaround shouldn't be needed elsewhere.
63956
63957 2005-02-24  Bruno Haible  <bruno@clisp.org>
63958
63959         * modules/gettext (Files): Add m4/glibc2.m4.
63960
63961 2005-02-24  Bruno Haible  <bruno@clisp.org>
63962
63963         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
63964         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
63965         * m4/progtest.m4:
63966         Update from GNU gettext 0.14.2.
63967         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
63968
63969 2005-02-24  Bruno Haible  <bruno@clisp.org>
63970
63971         * lib/localcharset.c: Update from GNU gettext 0.14.2.
63972         * lib/config.charset: Update from GNU gettext 0.14.2.
63973
63974 2005-02-24  Bruno Haible  <bruno@clisp.org>
63975
63976         * lib/gettext.h: Update from GNU gettext 0.14.2.
63977
63978 2005-02-23  Simon Josefsson  <jas@extundo.com>
63979
63980         * m4/iconvme.m4: New file.
63981
63982 2005-02-23  Jim Meyering  <jim@meyering.net>
63983
63984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
63985         change.
63986         Thanks to Bruno Haible for catching it.
63987
63988 2005-02-22  Simon Josefsson  <jas@extundo.com>
63989
63990         * modules/iconvme: New file.
63991
63992         * MODULES.html.sh: Add iconvme.
63993
63994 2005-02-22  Simon Josefsson  <jas@extundo.com>
63995
63996         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
63997
63998 2005-02-22  Simon Josefsson  <jas@extundo.com>
63999
64000         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
64001
64002 2005-02-22  Jim Meyering  <jim@meyering.net>
64003
64004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
64005         s/ifndef/ifdef/.
64006
64007 2005-02-20  Neil Conway  <neilc@samurai.com>
64008
64009         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
64010         returned by OSX/Darwin if the specified buffer is not large
64011         enough for the hostname.
64012
64013 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64014
64015         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
64016         pass it to _help, otherwise the latter coredumps trying to
64017         dereference state.root_argp.
64018
64019 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64020
64021         * modules/chdir-long (Depends-on): Add memrchr.
64022         * modules/memrchr (Files): Add lib/memrchr.h.
64023         (Include): "memrchr.h".
64024
64025 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64026
64027         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
64028
64029 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64030
64031         * lib/memrchr.h: New file.
64032         * lib/chdir-long.c: Include it.
64033         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
64034         Don't bother including stddef.h.
64035
64036 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64037
64038         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
64039         inclusion.
64040         Include <sys/types.h>, for dev_t.
64041         (ME_DUMMY, ME_REMOTE): Move from here....
64042         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
64043         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
64044         Dmitry V. Levin.
64045         Include mountlist.h first, to test the interface.
64046
64047 2005-01-29  Bruno Haible  <bruno@clisp.org>
64048
64049         * lib/progname.c (program_name): Initialize.
64050         Needed when linking statically on MacOS X.
64051
64052 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64053
64054         Sync from coreutils.
64055         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
64056         (Depends-on): Add c-strtod.
64057         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
64058
64059 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64060
64061         Sync from coreutils.
64062         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
64063
64064         Remove files that are specific to coreutils.
64065         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
64066
64067 2005-01-28  Bruno Haible  <bruno@clisp.org>
64068
64069         * modules/javacomp: New file.
64070         * MODULES.html.sh (Java): Add javacomp.
64071
64072 2005-01-28  Bruno Haible  <bruno@clisp.org>
64073
64074         * m4/javacomp.m4: New file, from GNU gettext.
64075
64076 2005-01-28  Bruno Haible  <bruno@clisp.org>
64077
64078         * lib/javacomp.sh.in: New file, from GNU gettext.
64079         * lib/javacomp.h: New file, from GNU gettext.
64080         * lib/javacomp.c: New file, from GNU gettext.
64081
64082 2005-01-26  Simon Josefsson  <jas@extundo.com>
64083
64084         * lib/gai_strerror.c: Use GPL in header.
64085
64086 2005-01-26  Bruno Haible  <bruno@clisp.org>
64087
64088         * modules/javaexec: New file.
64089         * MODULES.html.sh (Java): Add javaexec.
64090
64091 2005-01-26  Bruno Haible  <bruno@clisp.org>
64092
64093         * m4/javaexec.m4: New file, from GNU gettext.
64094
64095 2005-01-26  Bruno Haible  <bruno@clisp.org>
64096
64097         * lib/javaexec.sh.in: New file, from GNU gettext.
64098         * lib/javaexec.h: New file, from GNU gettext.
64099         * lib/javaexec.c: New file, from GNU gettext.
64100
64101 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64102
64103         * modules/lchown (Depends-on): Remove lchown.h
64104
64105 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64106
64107         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
64108         must be defined if the header file was not found, in order
64109         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
64110
64111 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64112
64113         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
64114         initializers for struct pentry_state.
64115         (__argp_error): Check return value of __asprintf
64116         (__argp_failure): Translate error message
64117
64118         * lib/argp-parse.c: Removed braces around the expansion of N_()
64119
64120 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64121
64122         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
64123         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
64124         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
64125         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
64126         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
64127         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
64128         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
64129         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
64130         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
64131         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
64132         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
64133         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
64134         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
64135         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
64136         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
64137         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
64138         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
64139         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
64140         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
64141         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
64142         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
64143         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
64144         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
64145         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
64146         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
64147         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
64148         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
64149         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
64150         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
64151         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
64152         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
64153         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
64154         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
64155         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
64156         xstrtol.m4, xstrtoumax.m4, yesno.m4:
64157         Use an all-permissive copyright notice, recommended by RMS.
64158
64159 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
64160
64161         * modules/chdir-long (Depends-on): Remove mempcpy.
64162
64163 2005-01-21  Jim Meyering  <jim@meyering.net>
64164
64165         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
64166         same value as for Solaris 9.
64167
64168         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
64169         component length.  This included changing the parameter to be
64170         of type `char *' rather than `char const *'.
64171         * lib/chdir-long.h (chdir_long): Update prototype.
64172
64173         * lib/openat.c (fdopendir, fstatat): New functions.
64174         * lib/openat.h: Include headers required for use of DIR and struct
64175         stat.
64176         [AT_SYMLINK_NOFOLLOW]: Define.
64177         (fdopendir, fstatat): Add prototypes.
64178
64179 2005-01-21  Bruno Haible  <bruno@clisp.org>
64180
64181         * modules/classpath: New file.
64182         * MODULES.html.sh (Java): Add classpath.
64183
64184 2005-01-21  Bruno Haible  <bruno@clisp.org>
64185
64186         * lib/classpath.h: New file, from GNU gettext.
64187         * lib/classpath.c: New file, from GNU gettext.
64188
64189 2005-01-20  Simon Josefsson  <jas@extundo.com>
64190
64191         * modules/version-etc-fsf: New file.
64192
64193 2005-01-20  Simon Josefsson  <jas@extundo.com>
64194
64195         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
64196         * lib/version-etc.c: Remove version_etc_copyright.
64197         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
64198         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
64199
64200 2005-01-20  Simon Josefsson  <jas@extundo.com>
64201
64202         * lib/base64.h (isbase64): Add.
64203
64204         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
64205         using a unsigned prototype, don't inline.
64206         (base64_decode): Use it.
64207
64208 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64209
64210         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
64211         it.
64212
64213 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64214
64215         * lib/save-cwd.c (save_cwd): Remove code to support the case
64216         where fchdir is missing or flaky.
64217
64218 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64219
64220         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
64221
64222 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64223
64224         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
64225         AC_LIBSOURCES now does this.
64226         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
64227         with new ullong_max module.
64228
64229 2005-01-19  Bruno Haible  <bruno@clisp.org>
64230
64231         * modules/sh-quote: New file.
64232         * MODULES.html.sh (Executing programs): Add sh-quote.
64233
64234 2005-01-19  Bruno Haible  <bruno@clisp.org>
64235
64236         * lib/sh-quote.h: New file, from GNU gettext.
64237         * lib/sh-quote.c: New file, from GNU gettext.
64238
64239 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
64240
64241         Merge from coreutils.
64242         * m4/ullong_max.m4: New file.
64243         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
64244         (gl_MACROS): Assume localeconv exists.
64245
64246 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
64247
64248         Merge changes from coreutils, as described below in several
64249         changelogs dated today.
64250
64251         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
64252         (O_DIRECTORY): Remove; not needed here, since "." must be
64253         a directory.  All uses removed.
64254         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
64255         universal on Suns, and we also need to test for IRIX.
64256         Revamp code to use 'if' rather than '#if'.
64257         Avoid unnecessary comparison of cwd->desc to 0.
64258
64259         * lib/utimens.c (futimens): Robustify the previous patch, by checking
64260         for known valid error numbers rather than observed invalid ones.
64261
64262 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
64263
64264         * modules/ullong_max: New file.
64265
64266         * modules/chdir-long, modules/openat: New files.
64267         * modules/save-cwd (Depends-on): Depend on chdir-long.
64268         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
64269
64270 2005-01-18  Jim Meyering  <jim@meyering.net>
64271
64272         Merge from coreutils.
64273         * m4/chdir-long.m4, m4/openat.m4: New files.
64274         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
64275         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
64276         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
64277         is sane and DOES follow symlinks.  Besides, testing 20 different
64278         systems found no broken chown implementations.
64279         Prompted by a change in rsync's copy of this macro.
64280         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
64281
64282         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
64283
64284         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
64285         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
64286         NULL-means-set-to-current-time semantics.
64287         Remove temporary file immediately, rather than waiting
64288         for configure's at-exit trap code to do it.
64289
64290 2005-01-18  Jim Meyering  <jim@meyering.net>
64291
64292         * lib/version-etc.c (version_etc_copyright): Update copyright date.
64293
64294         * lib/utimens.c (futimens): Account for the fact that futimes
64295         can also fail with errno == ENOSYS or errno == ENOENT.
64296         Patch from Dmitry V. Levin.
64297
64298         Change the name of the robust chdir function from chdir to chdir_long.
64299         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
64300         (restore_cwd): Use chdir_long, not chdir.
64301         * lib/chdir-long.c: Renamed from chdir.c.
64302         * lib/chdir-long.h: Renamed from chdir.h.
64303         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
64304         Hurd.
64305
64306 2005-01-18  Bruno Haible  <bruno@clisp.org>
64307
64308         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
64309         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
64310         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
64311         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
64312         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
64313         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
64314         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
64315         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
64316         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
64317         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
64318         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
64319         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
64320         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
64321         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
64322         Use an all-permissive copyright notice, recommended by RMS.
64323
64324 2005-01-18  Bob Proulx  <bob@proulx.com>
64325
64326         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
64327         simplify offsetof() macro construct to avoid compile failure with
64328         native HP-UX 11.0 ANSI C compiler.
64329
64330 2005-01-17  Bruno Haible  <bruno@clisp.org>
64331
64332         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
64333         redundant because stpncpy.m4 takes care of it.
64334
64335 2005-01-17  Bruno Haible  <bruno@clisp.org>
64336
64337         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
64338
64339 2005-01-17  Bruno Haible  <bruno@clisp.org>
64340
64341         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
64342         used.
64343
64344 2005-01-17  Bruno Haible  <bruno@clisp.org>
64345
64346         * lib/fwriteerror.h (fwriteerror): Change specification to include
64347         fclose.
64348         * lib/fwriteerror.c: Include <stdbool.h>.
64349         (fwriteerror): At the end, close the file stream. Record whether
64350         stdout was already closed.
64351
64352 2005-01-17  Bruno Haible  <bruno@clisp.org>
64353
64354         * lib/execute.c (environ): Declare if needed.
64355         * lib/pipe.c (environ): Likewise.
64356         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
64357
64358 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64359
64360         * modules/argp: Depend on vsnprintf
64361
64362 2005-01-10  Jim Meyering  <jim@meyering.net>
64363
64364         * modules/closeout (Depends-on): Add atexit.
64365
64366 2005-01-06  Bruno Haible  <bruno@clisp.org>
64367
64368         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
64369
64370 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64371
64372         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
64373         definitions to be after all include files, to avoid collisions.
64374         Problem reported by Bob Proulx.
64375
64376 2005-01-04  Jim Meyering  <jim@meyering.net>
64377
64378         Changes imported from coreutils.
64379         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
64380         as the mkstemp template, use a temporary directory and an
64381         8.3-friendly template to avoid trouble on systems like DJGPP.
64382         Reported by Juan M. Guerrero via Stepan Kasal.
64383         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
64384         close. Remove the temporary directory right away, rather than waiting
64385         for configure's at-exit trap code to do it.
64386         Suggestion from Stepan Kasal.
64387
64388 2005-01-01  Simon Josefsson  <jas@extundo.com>
64389
64390         * gnulib-tool: Print #include directives when --import'ing.
64391
64392 2004-12-28  Simon Josefsson  <jas@extundo.com>
64393
64394         * tests/test-base64.c: Include required header files.  Remove
64395         unused variables.
64396
64397 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64398
64399         * modules/error (Depends-on): Remove gettext.
64400
64401 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64402
64403         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
64404         not needed.  This removes a dependency on the gettext module.
64405         [defined _LIBC]: Do not include <libintl.h>; not needed.
64406
64407 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
64408
64409         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
64410         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
64411
64412 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
64413
64414         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
64415         HAVE_DECL_STRTOLD.
64416
64417 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64418
64419         * modules/getdate (Depends-on): Remove alloca-opt.
64420
64421 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64422
64423         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
64424
64425 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64426
64427         * lib/argp-parse.c: Include <stddef.h>.
64428         (alignof, alignto): New macros.
64429         (parser_init): Don't assume that void * is aligned sufficiently
64430         for struct option.
64431
64432         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
64433         need to extend the stack.
64434         (YYINITDEPTH): New macro, so that the initial stack isn't overly
64435         large.
64436
64437 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64438
64439         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
64440
64441 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
64442
64443         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
64444         (2004-10-24) change.  Apparently this was a false alarm.
64445
64446         * modules/getdate: Depend on alloca-opt, not alloca.
64447
64448 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
64449
64450         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
64451         Remove now-obsolete comment about AIX.
64452         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
64453         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
64454         (YYMAXDEPTH): New macro.
64455
64456 2004-12-18  Simon Josefsson  <jas@extundo.com>
64457
64458         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
64459
64460 2004-12-18  Bruno Haible  <bruno@clisp.org>
64461
64462         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
64463
64464 2004-12-18  Bruno Haible  <bruno@clisp.org>
64465
64466         * lib/fatal-signal.c (fatal_signals): Make non-const.
64467         (init_fatal_signals): New function.
64468         (uninstall_handlers, install_handlers): Ignore signals that were set to
64469         SIG_IGN.
64470         (at_fatal_signal): Call init_fatal_signals.
64471         (init_fatal_signal_set): Likewise. Ignore signals that were set to
64472         SIG_IGN.
64473         Reported by Paul Eggert.
64474
64475 2004-12-18  Bruno Haible  <bruno@clisp.org>
64476
64477         * doc/alloca.texi: New file.
64478         * doc/alloca-opt.texi: New file.
64479
64480 2004-12-17  Jim Meyering  <jim@meyering.net>
64481
64482         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
64483         Otherwise, install-sh could exit with improper exit status when
64484         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
64485
64486 2004-12-16  Simon Josefsson  <jas@extundo.com>
64487
64488         * tests/test-base64.c: Add license.
64489
64490 2004-12-15  Stepan Kasal  <address@hidden>
64491
64492         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
64493
64494 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
64495
64496         * modules/getcwd (Files): Add m4/d-ino.m4.
64497         Suggested by Mark D. Baushke.
64498
64499 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
64500
64501         * lib/getdate.y (textint): New member "negative".
64502         (time_zone_hhmm): New function.
64503         Expect 14 shift-reduce conflicts, not 13.
64504         (o_colon_minutes): New rule.
64505         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
64506         (yylex): Set the "negative" member of signed numbers.
64507
64508 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
64509
64510         * doc/getdate.texi (Time of day items, Time zone items):
64511         Describe new formats +00:00, UTC+00:00.
64512
64513 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64514
64515         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
64516         spurious "-l"s.  Problem reported by Stepan Kasal.
64517
64518 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
64519
64520         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
64521         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
64522
64523 2004-12-04  Simon Josefsson  <jas@extundo.com>
64524
64525         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
64526         Vandoorselaere <yoann@prelude-ids.org>.
64527
64528 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64529
64530         Changes imported from coreutils.
64531         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
64532         exist.
64533         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
64534
64535 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64536
64537         Changes imported from coreutils.
64538         * lib/hard-locale.c: Assume <locale.h> exists.
64539         Include "strdup.h".
64540         (GLIBC_VERSION): New macro.
64541         (hard_locale): Assume setlocale exists.
64542         Rewrite to avoid #ifdef.
64543         Use strdup rather than malloc + strcpy.
64544         * lib/human.c: Assume <locale.h> exists.
64545         (human_readable): Assume localeconv exists.
64546
64547 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
64548
64549         * modules/hard-locale (Depends-on): Add strdup.
64550
64551 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64552
64553         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
64554         convert T2, not T.  (Imported from libc.)
64555
64556 2004-11-30  Simon Josefsson  <jas@extundo.com>
64557
64558         * modules/restrict (License): Change to LGPL.
64559
64560 2004-11-30  Simon Josefsson  <jas@extundo.com>
64561
64562         * m4/restrict.m4: Add copyright and copying conditions.
64563
64564 2004-11-30  Simon Josefsson  <jas@extundo.com>
64565
64566         * m4/base64.m4: New file.
64567
64568 2004-11-30  Simon Josefsson  <jas@extundo.com>
64569
64570         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
64571         base64.
64572
64573         * tests/test-base64.c: New file.
64574
64575         * modules/base64: New file.
64576
64577 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64578
64579         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
64580         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
64581
64582         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
64583
64584 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
64585
64586         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
64587         (__getcwd.c): Don't restore errno; glibc doesn't.
64588         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
64589         first, falling back to our code only if its results look suspicious.
64590         Ensure that the resulting buffer is only as large as necessary.
64591
64592         * lib/readutmp.c: Include readutmp.h first.
64593         Include <errno.h>, since readutmp.h no longer does that.
64594         * lib/readutmp.h: Don't include <errno.h>,
64595         <sys/param.h>, <time.h>; not needed to establish interface.
64596         (errno): Remove decl.
64597         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
64598         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
64599         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
64600
64601 2004-11-28  Simon Josefsson  <jas@extundo.com>
64602
64603         * lib/base64.h, base64.c: New file.
64604
64605 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64606
64607         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
64608
64609 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64610
64611         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
64612         (Depends-on): Remove pathmax, same.  Add mempcpy.
64613         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
64614         (Makefile.am): Append getcwd.h to lib_SOURCES.
64615         (Include): Add getcwd.h.
64616         (Maintainer): Change from Jim Meyering to "all, glibc",
64617         since getdate now uses intended-for-glibc code.
64618         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
64619         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
64620
64621 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64622
64623         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
64624         HP's ANSI C compiler.
64625         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
64626         Declaring int functions causes warnings on some modern systems and
64627         shouldn't be needed to compile on ancient ones.
64628         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
64629         defined.
64630
64631         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
64632         with the following changes.
64633         (__set_errno): Parenthesize properly.
64634         Include <stdbool.h>.
64635         (MIN, MAX, MATCHING_INO): New macros.
64636         (__getcwd): Define with prototype, not K&R form.
64637         Use heuristics to allocate default buffer on stack if possible.
64638         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
64639         behavior, and to avoid the PATH_MAX limit when computing
64640         ../../../../...
64641         Use MATCHING_INO to compare inode number to file.
64642         Check for arithmetic overflow in size calculations.
64643         Fix bug in reallocation of dot array that caused getcwd to fail
64644         on directories nested deeper than 75.
64645         Be more careful about saving errno on error.
64646         Do not use realloc; use only free+malloc, as this is a bit
64647         more flexible and avoids a needless copy operation.
64648         Do not inspect st_dev and st_ino for symbolic links; POSIX
64649         doesn't specify the latter.
64650         Check for closedir errors.
64651         Avoid needless casts.
64652         Use "#ifdef weak_alias" around weak_alias, to be like other
64653         glibc code.
64654         The following changes to getcwd.c have effect only when used in
64655         gnulib; they have no effect inside glibc proper.
64656         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
64657         as alloca isn't used.
64658         (alloca, __alloca): Likewise.
64659         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
64660         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
64661         unconditionally, as gnulib assumes C89 or better.
64662         Do not include <sys/param.h>.
64663         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
64664         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
64665         better.
64666         (NULL) [!defined NULL]: Remove; we assume C89 or better.
64667         Include <dirent.h> in a way that is compatible with modern Autoconf.
64668         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
64669         New macros, if not already defined.
64670         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
64671         Use "_LIBC", not "defined _LIBC", for consistency.
64672         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
64673         a mempcpy module.
64674         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
64675         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
64676         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
64677         credit only to Jim Meyering and adjust the copyright dates.
64678         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
64679         <stdlib.h>, <unistd.h>, "pathmax.h".
64680         Instead, include "xgetcwd.h" (first) and "getcwd.h".
64681         (INITIAL_BUFFER_SIZE): Remove.
64682         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
64683
64684 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64685
64686         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
64687         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
64688         Use the _ONCE methods, for efficiency.
64689         Check for fcntl.h.  In test program, include <errno.h>
64690         and <fcntl.h> if available.  Remove old K&R cruft from
64691         test program.  Check for common errors in GNU/Linux,
64692         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
64693         don't do AC_LIBOBJ, as that's getcwd.m4's job.
64694         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
64695         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
64696         name accordingly.
64697         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
64698         accommodate new getcwd.c.
64699         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
64700         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
64701         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
64702         that's all we need now.
64703
64704 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64705
64706         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
64707         argp-parse.c depends on getopt internals, that means we should
64708         always use our getopt, to be on the safe side.
64709         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
64710         order not to spoil the result of an eventual previous invocation
64711         of gl_GETOPT_SUBSTITUTE.
64712
64713 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
64714
64715         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
64716         redefinition warnings. To avoid them, include the defines
64717         in `#if !defined __need_getopt ... #endif'. The only place
64718         where __getopt_argv_const is used is in definitions
64719         of getopt_long and getopt_long_only below, which are as well
64720         protected by `#ifndef __need_getopt'.
64721         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
64722         __need_getopt after including <stdio.h> and <unistd.h> These
64723         headers might have defined it.
64724
64725 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64726
64727         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
64728
64729 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
64730
64731         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
64732         (futimens): New function, which uses futimes if available.
64733         (futimens, utimens): Support timespec==NULL, with same semantics
64734         as utime and utimens.
64735         * lib/utimens.h (futimens): New decl.
64736
64737 2004-11-23  Jim Meyering  <jim@meyering.net>
64738
64739         * lib/getopt_.h: Remove trailing blanks.
64740
64741 2004-11-23  Jim Meyering  <jim@meyering.net>
64742
64743         * lib/__fpending.c: Add comment.
64744
64745 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
64746
64747         * modules/canonicalize (Depends-on): Add xreadlink.
64748         Problem reported by James Youngman.
64749
64750 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64751
64752         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
64753         New macros.
64754         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
64755         optopt): Use them instead of invoking ## directly; otherwise, the
64756         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
64757
64758 2004-11-19  Bruno Haible  <bruno@clisp.org>
64759
64760         * lib/strtok_r.c: Move comments from here...
64761         * lib/strtok_r.h: ... to here.
64762
64763 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64764
64765         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
64766         implementations that mishandle size_t overflow.
64767
64768 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64769
64770         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
64771         might fail.  Problem reported by Yoann Vandoorselaere.
64772         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
64773         implementations that mishandle size_t overflow.
64774
64775 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64776
64777         * modules/canon-host (Depends-on): Add strdup.
64778
64779 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64780
64781         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
64782
64783 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64784
64785         * lib/canon-host.c: Include "strdup.h".
64786         (canon_host): Use getaddrinfo if available, so that IPv6 works.
64787         Use strdup instead of malloc/strcpy to duplicate strings.
64788
64789         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
64790         (human_space_before_unit): New constant.
64791         * lib/human.c (human_readable): Support it.
64792
64793         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
64794         (xgetcwd): Set errno correctly when failing.
64795         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
64796         the failure is actually due to a PATH_MAX problem.
64797
64798         Further getopt changes to make it more likely that glibc will
64799         buy the changes back.
64800         * lib/getopt.c (POSIXLY_CORRECT): New constant.
64801         (getopt): Use it, so to preserve glibc semantic
64802         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
64803         when compiling for libc.
64804         * lib/getopt_.h (__getopt_argv_const): Bring it back.
64805         (getopt_long, getopt_long_only): Use it.
64806
64807         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
64808         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
64809         (getopt): Argv is now char * const *, as per standard.
64810         (_getopt_internal_r, _getopt_internal): Argv is now char **,
64811         not char *__getopt_argv_const *.
64812         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
64813         _getopt_long_only_r): Likewise.
64814         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
64815         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
64816         _getopt_long_r, _getopt_long_only_r): Likewise.
64817         * lib/getopt_.h (__getopt_argv_const): Remove.
64818         (getopt): Argv is now char * const *, as per standard.
64819
64820         * lib/getdate.y (tORDINAL): New token.
64821         (day, relunit): Allow it for relative times.
64822         (relative_time_table): Use tORDINAL for ordinals.
64823
64824 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64825
64826         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
64827         Document that "second" isn't allowed as an ordinal number.
64828
64829 2004-11-16  Jim Meyering  <jim@meyering.net>
64830
64831         * modules/closeout (Depends-on): Add fpending.
64832
64833 2004-11-15  Jim Meyering  <jim@meyering.net>
64834
64835         * lib/closeout.c: Include "__fpending.h" once again.
64836         Include <stdbool.h>.
64837         (close_stdout): Don't fail just because stdout was closed initially,
64838         since some programs don't write to stdout in the normal course of
64839         operation (other than --version and --help), and we don't want this
64840         function to make e.g. `touch file >&-' fail.
64841         But do fail if it was closed and someone has tried to write to it.
64842         E.g., `printf foo >&-' must fail.
64843
64844 2004-11-13  Jim Meyering  <jim@meyering.net>
64845
64846         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
64847
64848 2004-11-12  Simon Josefsson  <jas@extundo.com>
64849
64850         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
64851         small doc fix is still pending.
64852
64853 2004-11-11  Simon Josefsson  <jas@extundo.com>
64854
64855         * modules/strtok_r: New file.
64856
64857         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64858         strtok_r.
64859
64860 2004-11-11  Simon Josefsson  <jas@extundo.com>
64861
64862         * m4/strtok_r.m4: New file.
64863
64864         * m4/getopt.m4: Replace opterr.
64865
64866 2004-11-11  Simon Josefsson  <jas@extundo.com>
64867
64868         * lib/strtok_r.h, strtok_r.c: New file.
64869
64870 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64871
64872         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
64873         of replacing opterr, getopt, etc.  This should handle the
64874         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
64875
64876 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64877
64878         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
64879         we can stop lying to compilers about the constness of argv when we
64880         are compiled outside glibc.
64881         (getopt, getopt_long, getopt_long_only): Use it.
64882         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
64883         _getopt_internal, getopt): Likewise.
64884         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
64885         _getopt_long_only_r): Likewise.
64886         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
64887         _getopt_long_r, _getopt_long_only_r): Likewise.
64888
64889         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
64890         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
64891         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
64892         the other external symbols.
64893         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
64894         declaration, since the above renaming now works around collisions.
64895
64896 2004-11-11  Jim Meyering  <jim@meyering.net>
64897
64898         * lib/linebreak.c: Remove trailing blanks.
64899         * lib/alloca_.h: Likewise.
64900         * lib/acosl.c: Likewise.
64901         * lib/euidaccess.c: Likewise.
64902         * lib/allocsa.h: Likewise.
64903
64904 2004-11-10  Simon Josefsson  <jas@extundo.com>
64905
64906         * m4/getaddrinfo.m4: New file.
64907
64908 2004-11-10  Simon Josefsson  <jas@extundo.com>
64909
64910         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
64911
64912 2004-11-10  Simon Josefsson  <jas@extundo.com>
64913
64914         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64915         getaddrinfo.
64916
64917         * modules/getaddrinfo: New file.
64918
64919 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
64922
64923 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64924
64925         * lib/mktime.c (SHR): New macro, which is a portable
64926         substitute for >> that should work even on Crays.
64927         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
64928         Problem reported by Mark D. Baushke in
64929         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
64930         * lib/getdate.y (SHR): Likewise.
64931         (tm_diff): Use it.
64932         * lib/strftime.c (SHR): Likewise.
64933         (tm_diff): Use it.
64934         * lib/quotearg.c (struct quoting_options): Use unsigned int for
64935         quote_these_too, so that right shifts are well defined.  All uses
64936         changed.
64937
64938 2004-11-10  Jim Meyering  <jim@meyering.net>
64939
64940         Ensure that no close failure goes unreported.
64941         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
64942         return early when it seems there's nothing to flush.
64943         Don't include __fpending.h.
64944
64945 2004-11-10  Jim Meyering  <jim@meyering.net>
64946
64947         * modules/closeout (Depends-on): Remove fpending.
64948
64949 2004-11-10  Jim Meyering  <jim@meyering.net>
64950
64951         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
64952
64953 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64954
64955         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
64956         gl_FUNC_STRFTIME.
64957         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
64958         and AC_REQUIRE when possible, to avoid duplicate checks.
64959         Check for <wchar.h>.
64960
64961 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64962
64963         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
64964
64965 2004-11-09  Bruno Haible  <bruno@clisp.org>
64966
64967         * m4/sockpfaf.m4: New file.
64968
64969 2004-11-05  Bruno Haible  <bruno@clisp.org>
64970
64971         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
64972         Reported by Mark D. Baushke <mdb@cvshome.org>.
64973
64974 2004-11-04  Bruno Haible  <bruno@clisp.org>
64975
64976         2004-09-11  Bruno Haible  <bruno@clisp.org>
64977                 * allocsa.valgrind: New file.
64978         2004-02-06  Bruno Haible  <bruno@clisp.org>
64979                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
64980                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
64981                 Reported by Christopher Seip <chris.seip@hp.com>.
64982
64983 2004-11-04  Bruno Haible  <bruno@clisp.org>
64984
64985         * modules/allocsa (Files): Add lib/allocsa.valgrind.
64986         (Makefile.am): Distribute it.
64987
64988 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64989
64990         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
64991         with errno == ERANGE if the buffer is too small.
64992         Problem reported by Mark D. Baushke.
64993
64994 2004-11-03  Albert Chin  <china@thewrittenword.com>
64995             Paul Eggert  <eggert@cs.ucla.edu>
64996
64997         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
64998         equivalent, substitute $ac_type for equivalent type rather than
64999         blindly using uint32_t *always* which won't work if uint32_t is not
65000         available.  Define _UINT32_T to work around typedef of uint32_t if
65001         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
65002         2.5.1.
65003
65004 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65005
65006         * m4/jm-macros.m4: Sync from coreutils.
65007         (gl_MACROS): Check for mbrlen, for pathchk.
65008         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
65009
65010 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65011
65012         * lib/xreadlink.c (MAXSIZE): New macro.
65013         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
65014         size does not exceed MAXSIZE.  Avoid cast.
65015         As suggested by Mark D. Baushke in
65016         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
65017         if readlink fails with buffer size just under MAXSIZE, try again
65018         with MAXSIZE.
65019
65020 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
65021
65022         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
65023
65024 2004-11-02  Derek R. Price  <derek@ximbiot.com>
65025         and  Paul Eggert  <eggert@cs.ucla.edu>
65026
65027         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
65028         (get_date): Overparenthesize to avoid GCC warning.
65029
65030 2004-11-02  Bruno Haible  <bruno@clisp.org>
65031
65032         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
65033         returns void.
65034
65035 2004-11-02  Bruno Haible  <bruno@clisp.org>
65036
65037         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
65038         function returns void.
65039
65040 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65041
65042         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
65043         fflush_unlocked, flockfile, funlockfile, funlockfile,
65044         fputs_unlocked, putc_unlocked.
65045
65046 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65047
65048         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
65049         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
65050         already declared.
65051
65052 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65053
65054         * modules/getdate (Files): Add doc/getdate.texi.
65055         (Depends-on): Add setenv, xalloc.
65056
65057 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65058
65059         * lib/getdate.y: Add support for TZ="foo" within a date string.
65060         Fix some bugs near time_t boundaries.  Reject dates with
65061         out-of-range components, e.g., "Sept 31".
65062         Include <stdlib.h>, "setenv.h", "xalloc.h".
65063         (ISDIGIT_LOCALE): Remove; unused.
65064         Note that the TZ and time functions used here are not reentrant.
65065         (mktime_ok, get_tz): New functions.
65066         (TZBUFSIZE): New constant.
65067         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
65068         This requires that we sometimes generate our own TZ="XXX..." setting.
65069
65070 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65071
65072         * doc/getdate.texi: New file, from coreutils with modifications for
65073         the new TZ parsing.
65074
65075 2004-10-27  Derek R. Price  <derek@ximbiot.com>
65076
65077         * lib/mktime.c (not_equal_tm): Remove redundant check.
65078
65079 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65080
65081         * modules/regex (lib_SOURCES): Add regex.c.
65082         Reported by James Youngman in
65083         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
65084
65085 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65086
65087         * lib/getdate.y: Use Bison 1.875 features, and some minor
65088         code cleanups.  This change does not affect semantics.
65089         Don't include <stdlib.h>; no longer needed.
65090         Don't include unlocked-io.h; only the "#if TEST" code uses
65091         stdio, and performance isn't crucial there.
65092         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
65093         Bison 1.875 features as described below.
65094         All uses of "PC." replaced by "pc->".
65095         (YYSTYPE): Add a forward declaration.
65096         (yylex, yyerror): Use full prototypes in forward decls.
65097         Use "%pure-parser" rather than obsolescent "%pure_parser".
65098         Use %parse-param and %lex-param instead of obsolescent
65099         YYPARSE_PARAM and YYLEX_PARAM.
65100         (meridian_table, month_and_day_table, time_units_table,
65101         relative_time_table, time_zone_table, military_table,
65102         lookup_zone, lookup_word, get_date):
65103         Use NULL instead of 0 where appropriate.
65104         (to_hour): Avoid abort (), to avoid a dependency on
65105         stdlib.h.
65106         (yyerror, yylex): Now accepts parser_control * arg.
65107         (main) [TEST]: Use '\0' rather than 0 for char.
65108
65109 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65110
65111         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
65112
65113 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65114
65115         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
65116         It's now the caller's responsibility to handle the case where
65117         !HAVE_GETPAGESIZE && !defined getpagesize.
65118
65119         * lib/mktime.c (leapyear): Arg is long int, not int.
65120
65121 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
65122
65123         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
65124
65125 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65126
65127         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
65128         missing.  Problem reported by James Youngman.
65129
65130 2004-10-16  Simon Josefsson  <jas@extundo.com>
65131
65132         * gnulib-tool: Fix comments.  Fix parse problem.
65133         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
65134
65135 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
65136
65137         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
65138         implementation of getopt_long.  Problem reported by Alexander Taler in:
65139         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
65140
65141 2004-10-15  Bruno Haible  <bruno@clisp.org>
65142
65143         * gnulib-tool: Untabify. Initialize supplied_libname.
65144         (func_usage): More homogenous output.
65145         (func_modules_transitive_closure, func_modules_to_filelist,
65146         func_emit_lib_Makefile_am): New functions.
65147         (func_import): New function, extracted from big case statement. Use
65148         func_get_license, func_modules_transitive_closure,
65149         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
65150         opt_lgpl. Don't use test -a, as it's not portable.
65151         (func_create_testdir): Use func_modules_transitive_closure,
65152         func_modules_to_filelist, func_emit_lib_Makefile_am.
65153
65154 2004-10-15  Bruno Haible  <bruno@clisp.org>
65155
65156         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
65157
65158 2004-10-15  Bruno Haible  <bruno@clisp.org>
65159
65160         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
65161         the portions belonging to each module.
65162         Suggested by Derek Robert Price <derek@ximbiot.com>.
65163
65164 2004-10-12  Simon Josefsson  <jas@extundo.com>
65165
65166         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
65167         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
65168         to real functions.
65169
65170 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65171
65172         * modules/vsnprintf: New file.
65173
65174 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65175
65176         * m4/vsnprintf.m4: New file.
65177
65178 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65179
65180         * lib/vsnprintf.h: New file.
65181         * lib/vsnprintf.c: New file.
65182
65183 2004-10-11  Bruno Haible  <bruno@clisp.org>
65184
65185         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
65186         vsnprintf.
65187
65188 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
65191
65192 2004-10-07  Bruno Haible  <bruno@clisp.org>
65193
65194         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
65195         fits into the provided buffer.
65196
65197 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65198
65199         * lib/diacrit.c, diacrit.h: Add GPL notice.
65200
65201         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
65202         notice.
65203         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
65204         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
65205         This avoids a potential constant-folding bug.
65206
65207 2004-10-05  Bruno Haible  <bruno@clisp.org>
65208
65209         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
65210         for the declaration of strsep.
65211
65212 2004-10-05  Bruno Haible  <bruno@clisp.org>
65213
65214         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
65215
65216 2004-10-04  Simon Josefsson  <jas@extundo.com>
65217
65218         * modules/memmem: New file.
65219         * tests/test-memmem.c: New file.
65220         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
65221
65222 2004-10-04  Simon Josefsson  <jas@extundo.com>
65223
65224         * m4/memmem.m4: New file.
65225
65226 2004-10-04  Simon Josefsson  <jas@extundo.com>
65227
65228         * lib/memmem.h: New file.
65229         * lib/memmem.c: New file, taken from glibc.
65230
65231 2004-10-04  Simon Josefsson  <jas@extundo.com>
65232
65233         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
65234         '#ifdef USE_UNLOCKED_IO'.
65235
65236 2004-10-04  Simon Josefsson  <jas@extundo.com>
65237
65238         * config/srclist.txt: Add memmem from glibc.
65239
65240 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65241
65242         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
65243
65244         * modules/argmatch, modules/argp, modules/closeout, modules/error,
65245         modules/exclude, modules/getdate, modules/getline,
65246         modules/getndelim2, modules/getpass, modules/getpass-gnu,
65247         modules/getusershell, modules/linebuffer, modules/md5,
65248         modules/mountlist, modules/posixtm, modules/readtokens,
65249         modules/readutmp, modules/regex, modules/sha1,
65250         modules/version-etc, modules/yesno:
65251         Remove dependency on unlocked-io.
65252
65253 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65254
65255         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
65256
65257         * m4/unlocked-io.m4: Add copyright notice.
65258         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
65259
65260 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65261
65262         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
65263         * lib/xmalloc.c (xmemdup): Likewise.
65264         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
65265         XFREE): Remove these long-obsolescent macros.
65266         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
65267         * lib/xstrdup.c: Remove.
65268
65269         * lib/regex.c (re_comp): Cast gettext return value to char *,
65270         Problem reported by Martin Neitzel via Mark D. Baushke.
65271
65272 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
65273
65274         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
65275         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
65276         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
65277         regex.c, sha1.c, version-etc.c, yesno.c:
65278         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
65279         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
65280         the includer's responsibility.
65281
65282         Sync from coreutils.
65283
65284         * lib/modechange.c (mode_compile): Don't decrement a pointer that
65285         points to the start of a string, as the C Standard says the
65286         resulting behavior is undefined.
65287
65288         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
65289         simple -> simple_backups, numbered_existing ->
65290         numbered_existing_backups, numbered -> numbered_backups
65291         to avoid shadowing problems.  All uses changed.
65292         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
65293         * lib/backupfile.c (check_extension, numbered_backup):
65294         Rename locals to avoid shadowing 'basename'.
65295         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
65296         once.
65297
65298         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
65299         * lib/.cvsignore: Add getopt.h.
65300
65301 2004-10-04  Bruno Haible  <bruno@clisp.org>
65302
65303         * modules/README: New file.
65304         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
65305         not a module.
65306
65307 2004-10-02  Jim Meyering  <jim@meyering.net>
65308
65309         * lib/dirfd.h, getpagesize.h: Add copyright notice.
65310
65311 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65312
65313         * modules/strsep: New file.
65314
65315 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65316
65317         * m4/strsep.m4: New file.
65318
65319 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65320
65321         * lib/strsep.h: New file.
65322         * lib/strsep.c: New file.
65323
65324 2004-10-01  Simon Josefsson  <jas@extundo.com>
65325
65326         * lib/snprintf.c (snprintf): Handle size==0.
65327
65328 2004-10-01  Simon Josefsson  <jas@extundo.com>
65329             Bruno Haible  <bruno@clisp.org>
65330
65331         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
65332         (snprintf): Declare 'args'.
65333
65334 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
65335
65336         * lib/snprintf.c: Remove comments as to why each header is needed.
65337
65338 2004-10-01  Bruno Haible  <bruno@clisp.org>
65339
65340         * MODULES.html.sh: Add strsep.
65341
65342 2004-09-30  Simon Josefsson  <jas@extundo.com>
65343
65344         * modules/snprintf: New file.
65345
65346 2004-09-30  Simon Josefsson  <jas@extundo.com>
65347
65348         * m4/snprintf.m4: New file.
65349
65350 2004-09-30  Simon Josefsson  <jas@extundo.com>
65351
65352         * lib/snprintf.h, lib/snprintf.c: New files.
65353
65354 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65355
65356         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
65357         (hol_entry_help): Never translate an empty string.
65358         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
65359         * lib/argp.h (OPTION_NO_TRANS): New option.
65360
65361 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65362
65363         * modules/argp (Maintainer): Replace Simon Josefsson
65364         by Sergey Poznyakoff.
65365
65366 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65367
65368         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
65369         changes merged back into glibc.
65370
65371 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
65372
65373         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
65374
65375 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65376
65377         * lib/xvasprintf.c: Include xalloc.h.
65378         (xvasprintf): Use xalloc_die, not xmalloc_die.
65379
65380 2004-09-29  Bruno Haible  <bruno@clisp.org>
65381
65382         * modules/alloca-opt: New file, derived from modules/alloca.
65383         * modules/allocsa: Depend on alloca-opt instead of alloca.
65384         * modules/setenv: Likewise.
65385         * modules/vasnprintf: Likewise.
65386         * MODULES.html.sh: Add alloca-opt.
65387
65388 2004-09-28  Simon Josefsson  <jas@extundo.com>
65389
65390         * gnulib-tool: New parameter --lgpl, to asseert that modules are
65391         LGPL, and to replace license template from GPL to LGPL.
65392
65393 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
65394
65395         * modules/dummy: Change license to LGPL.
65396
65397 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
65398
65399         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
65400
65401 2004-09-24  Simon Josefsson  <jas@extundo.com>
65402
65403         * modules/minmax (License): Change from GPL to LGPL.
65404
65405 2004-09-23  Simon Josefsson  <jas@extundo.com>
65406
65407         * gnulib-tool (--import): Typo.
65408
65409 2004-09-23  Simon Josefsson  <jas@extundo.com>
65410
65411         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
65412
65413 2004-09-22  Bruno Haible  <bruno@clisp.org>
65414
65415         * modules/*: Add 'License' field.
65416         * gnulib-tool: Accept --extract-license option.
65417         (func_get_license): New function.
65418
65419 2004-09-21  Bruno Haible  <bruno@clisp.org>
65420
65421         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
65422         Reported by Simon Josefsson.
65423
65424 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65425
65426         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
65427         gl_AC_TYPE_LONG_LONG.
65428
65429 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65430
65431         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
65432
65433 2004-09-18  Simon Josefsson  <jas@extundo.com>
65434         and  Paul Eggert  <eggert@cs.ucla.edu>
65435
65436         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
65437         calls with autoreconf.  Define GL_LIB.
65438
65439 2004-09-14  Karl Berry  <karl@gnu.org>
65440
65441         * config/srclist.txt: unsync setenv.c, sigh.
65442
65443 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65444
65445         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
65446         Problem reported by Bruno Haible in:
65447         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
65448
65449 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65450
65451         * config/srclist.txt: Comment out argp-pvh.c.
65452
65453 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
65454
65455         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
65456         in case some system header has #define'd it.  Problem reported by
65457         Soeren D. Schulze in
65458         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
65459
65460 2004-09-09  Karl Berry  <karl@gnu.org>
65461
65462         * regex.[ch]: delete from the root.  These were supposed to be
65463                 synced with emacs cvs, but this has not happened for about
65464                 a year, and anyway nothing else uses emacs regex.[ch].
65465                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
65466                 lib/regex[.ch] is untouched.
65467
65468 2004-09-09  Bruno Haible  <bruno@clisp.org>
65469
65470         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
65471
65472 2004-09-09  Bruno Haible  <bruno@clisp.org>
65473
65474         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
65475         modifications.
65476         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
65477
65478 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
65479
65480         * modules/xvasprintf: New file.
65481         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
65482
65483 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
65484
65485         * lib/xvasprintf.h: New file.
65486         * lib/xvasprintf.c: New file.
65487         * lib/xasprintf.c: New file.
65488
65489 2004-09-08  Bruno Haible  <bruno@clisp.org>
65490
65491         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
65492
65493 2004-09-08  Bruno Haible  <bruno@clisp.org>
65494
65495         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
65496         length is > INT_MAX.
65497         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
65498         more.
65499
65500 2004-09-08  Bruno Haible  <bruno@clisp.org>
65501
65502         * lib/stdint_.h: New file, taken from GNU clisp.
65503
65504 2004-09-08  Bruno Haible  <bruno@clisp.org>
65505             Oskar Liljeblad  <oskar@osk.mine.nu>
65506
65507         * modules/stdint: New file.
65508         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
65509
65510 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65511
65512         Import from coreutils.
65513         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
65514         strings on unbounded length.  alloca's performance benefits aren't
65515         that important here.
65516         (V_STRDUP): Remove.
65517         (parse_with_separator): New function, with most of the internals
65518         of the old parse_user_spec.  Allow user to omit both user and group,
65519         for compatibility with FreeBSD.
65520         Clone only the user name, not the entire spec.
65521         Do not set *uid, *gid unless entirely successful.
65522         Avoid memory leak in some failing cases.
65523         Fix regression for USER.GROUP reported by Dmitry V. Levin in
65524         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
65525         (parse_user_spec): Rewrite to use parse_with_separator.
65526
65527 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65528
65529         * modules/userspec: Don't depend on alloca.
65530
65531 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65532
65533         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
65534
65535 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65536
65537         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
65538         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
65539         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
65540
65541 2004-08-16  Simon Josefsson  <jas@extundo.com>
65542
65543         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
65544         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
65545         Add --dry-run for --import.
65546         Let user provided command line parameters override configure.ac
65547         settings.
65548
65549 2004-08-12  Simon Josefsson  <jas@extundo.com>
65550
65551         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
65552         as discussed with Paul Eggert in threads rooted at
65553         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
65554         and
65555         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
65556         Before, the test was empty, and relied on ELIDE_CODE in source
65557         code.)
65558         (gl_PREREQ_GETOPT): New macro.
65559         (gl_GETOPT): Use them.
65560
65561 2004-08-12  Simon Josefsson  <jas@extundo.com>
65562
65563         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
65564         * lib/getopt_.h: Renamed from getopt.h.
65565
65566 2004-08-12  Simon Josefsson  <jas@extundo.com>
65567
65568         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
65569         Change default library name from libfoo to libgnu.
65570         Now, if you have a configure.ac that says:
65571                 gl_SOURCE_BASE(gl)
65572                 gl_M4_BASE(gl/m4)
65573                 gl_MODULES(error getopt etcetera)
65574                 gl_INIT
65575         you can import all you need by running:
65576                 ../gnulib/gnulib-tool --import
65577
65578         * modules/getopt (Files): Rename getopt.h to getopt_.h.
65579         (Makefile.am): Rewrite, use logic from argz.
65580         (Include): Use <getopt.h> instead of "getopt.h".
65581
65582 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65583
65584         * modules/argp (Files): Add m4/unlocked-io.m4.
65585         (Depends-on): Add extensions.
65586
65587 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65588
65589         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
65590         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
65591         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
65592         Check for program_invocation_name, program_invocation_short_name,
65593         flockfile, funlockfile, features.h, _getopt_long_only_r.
65594
65595 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65596
65597         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
65598         its complicated substitute.
65599         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
65600         and program_invocation_name.
65601         (__argp_basename) [!_LIBC]: Remove; the only use was
65602         replaced by its body.
65603         (__argp_short_program_name): Change condition from
65604         !defined __argp_short_program_name to
65605         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
65606         to match argp-namefrob.h.
65607         (__argp_failure): Don't assume strerror_r returns char *.
65608         * lib/argp-parse.c (N_): Define unconditionally.
65609         (argp_default_options): Fill out initializers with 0 to avoid
65610         gcc warnings.
65611
65612 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
65613
65614         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
65615         getopt1.c.
65616
65617 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65618
65619         Merge from coreutils.
65620
65621         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
65622
65623         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
65624         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
65625
65626 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65627
65628         Merge from coreutils.
65629
65630         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
65631         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
65632         for Reliant Unix 5.43.
65633
65634         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
65635         (union fooround): Use uintmax_t, not long int.
65636         The rest is a merge from libc:
65637         [defined _LIBC]: Include <shlib-compat.h>.
65638         (_obstack) [defined _LIBC]: Remove after 2.3.4.
65639
65640         * lib/settime.c (settime): Recode to avoid warning with
65641         Sun Forte C 6U2.
65642
65643         * lib/strverscmp.c: Convert to UTF-8.
65644
65645 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65646
65647         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65648         m4/uintmax_t.m4.
65649
65650 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65651
65652         * modules/xalloc-die: New file.
65653         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
65654
65655         * modules/md5 (Files): Add m4/uint32_t.m4.
65656         * modules/sha1: Renamed from modules/sha.
65657         (Files):
65658         Rename lib/sha.h to lib/sha1.h.
65659         Rename lib/sha.c to lib/sha1.c.
65660         Rename m4/sha.m4 to m4/sha1.m4.
65661         (lib_SOURCES): Likewise.
65662         (configure.ac): Rename gl_SHA to gl_SHA1.
65663         (Include): sha.h -> sha1.h.
65664
65665 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65666
65667         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
65668         * m4/sha1.m4: Renamed from sha.m4.
65669         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
65670
65671 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65672
65673         * lib/obstack.h (obstack_empty_p):
65674         Don't assume that chunk->contents is suitably aligned.
65675         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
65676         Likewise. Problem reported by Benno in
65677         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
65678
65679         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
65680         readable.  This could be improved further but it'd take some work.
65681
65682 2004-08-08  Simon Josefsson  <jas@extundo.com>
65683
65684         * modules/xgethostname (Depends-on): Remove exit and error (not
65685         used).
65686
65687         * modules/getpass-gnu: Add getpass.h.
65688         (Depends-on): Add stdbool.
65689         * modules/getpass: Add getpass.h.
65690
65691 2004-08-08  Simon Josefsson  <jas@extundo.com>
65692
65693         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
65694         Check getpass declaration.
65695
65696 2004-08-08  Simon Josefsson  <jas@extundo.com>
65697
65698         * lib/xgethostname.c: Don't include error.h (not used).
65699
65700         * lib/getpass.h: Add.
65701         * lib/getpass.c: Include getpass.h first.
65702
65703 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
65704
65705         * lib/xalloc-die.c: New file.
65706         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
65707         All uses removed.
65708         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
65709         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
65710         xalloc-die.c.
65711         (_, N_, xalloc_die): Move to xalloc-die.c.
65712         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
65713         so that we needn't mess with xalloc_msg_memory_exhausted.
65714
65715         * lib/sha1.h: Renamed from sha.h.
65716         (SHA1_H): Renamed from _SHA_H.
65717         (sha1_ctx): Renamed from sha_ctx.
65718         (sha1_init_ctx): Renamed from sha_init_ctx.
65719         (sha1_process_block): Renamed from sha_process_block.
65720         (sha1_process_bytes): Renamed from sha_process_bytes.
65721         (sha1_finish_ctx): Renamed from sha_finish_ctx.
65722         (sha1_read_ctx): Renamed from sha_read_ctx.
65723         (sha1_stream): Renamed from sha_stream.
65724         (sha1_buffer): Renamed from sha_buffer.
65725         * lib/sha1.c: Likewise; renamed from sha.c.
65726         Do not include <sys/types.h>.
65727         Include <stddef.h> rather than <stdlib.h>.
65728
65729 2004-08-08  Bruno Haible  <bruno@clisp.org>
65730
65731         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
65732         FILESYSTEM_PREFIX_LEN.
65733         * lib/progreloc.c: Likewise.
65734         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
65735
65736 2004-08-06  Simon Josefsson  <jas@extundo.com>
65737
65738         * modules/progname (Depends-on): Don't depend on stdbool.
65739
65740 2004-08-06  Simon Josefsson  <jas@extundo.com>
65741
65742         * modules/getsubopt: New file.
65743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65744         getsubopt.
65745
65746 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65747
65748         More merge from coreutils.
65749
65750         * m4/utimens.m4, m4/utimecmp.m4: New files.
65751         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
65752         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
65753         prereq.m4, sha.m4: Import changes from coreutils.
65754
65755 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65756
65757         More merge from coreutils.
65758         * modules/raise, modules/readtokens0, modules/utimens:
65759         * modules/utimecmp, module/xnanosleep: New files.
65760         * modules/strftime: Add lib/strftime.h.
65761         Change include from <time.h> to "strftime.h".
65762         * modules/yesno: Add lib/yesno.h.
65763         * modules/backupfile: Remove lib/addext.c.
65764         * modules/euidaccess: Add stat-macros.h.
65765         * modules/canonicalize, modules/euidaccess,
65766         modules/filemode, modules/lchown, modules/makepath,
65767         modules/rmdir, modules/stat: Likewise.
65768
65769 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65770
65771         Merge from tar.
65772         * lib/argp-help.c (make_hol, hol_append): Don't assume that
65773         SIZE_MAX is a valid preprocessor constant.
65774         (__argp_basename): Change from "#ifndef _LIBC"
65775         to "#ifndef __argp_short_program_name", so that
65776         we don't compile these functions for tar.
65777
65778         More merges from coreutils.
65779         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
65780         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
65781         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
65782         * lib/addext.c: Remove; no longer needed.
65783         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
65784         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
65785         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
65786         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
65787         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
65788         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
65789         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
65790         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
65791         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
65792         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65793         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
65794         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
65795         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
65796         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
65797         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
65798         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
65799         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
65800         Import changes from coreutils.
65801
65802 2004-08-05  Simon Josefsson  <jas@extundo.com>
65803
65804         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
65805
65806 2004-08-05  Simon Josefsson  <jas@extundo.com>
65807
65808         * m4/getsubopt.m4: New file.
65809
65810 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65811
65812         Merge from coreutils.
65813
65814         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
65815         * m4/getcwd-path-max.m4: New files.
65816
65817         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
65818         FILESYSTEM_PREFIX_LEN ->
65819         FILE_SYSTEM_PREFIX_LEN.
65820         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
65821         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
65822         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
65823         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
65824
65825         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
65826         prerequisite modules now handle the DOS stuff.
65827         Don't check for unistd.h.
65828
65829 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65830
65831         Merge from coreutils.
65832
65833         * lib/.gdb-history: Remove; this doesn't belong here.
65834
65835         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
65836         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
65837         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
65838         * lib/getcwd.c: New files.
65839
65840         * lib/dirname.h: Include <stdbool.h>.
65841         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
65842         for consistency with POSIX terminology.  All uses changed.
65843         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
65844         (strip_trailing_slashes): Use bool for booleans.
65845         * lib/stripslash.c (strip_trailing_slashes): Likewise.
65846
65847         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
65848         sometimes returns a positive errno value even when it succeeds.
65849         (print_errno_message) [!LIBC]: Fall back on strerror if
65850         __strerror_r fails.
65851
65852         * lib/path-concat.c (mempcpy): Don't define if a system header defines
65853         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
65854         (longest_relative_suffix): New function.
65855         (path_concat): Use it.  Assume first argument is not NULL.
65856         Port to DOS.  Omit redundant separators.
65857         Report an error instead of returning NULL.
65858         Use mempcpy instead of memcpy.
65859         (xpath_concat): Remove: not declared or used.
65860
65861         * lib/same.h: Include <stdbool.h>
65862         (same_name): Return bool, not int.
65863         * lib/same.c (same_name): Likewise.
65864         (errno): Don't declare; we assume C89 or better now.
65865
65866         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
65867         if not already defined.
65868
65869         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
65870         * lib/dup-safer.c (errno): Likewise.
65871
65872 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
65873
65874         Merge from coreutils.
65875         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
65876         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
65877         * modules/path-concat: Don't depend on strdup.
65878
65879 2004-08-03  Simon Josefsson  <jas@extundo.com>
65880
65881         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
65882         * lib/progname.h: Don't include stdbool.h.
65883
65884 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65885
65886         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
65887         * MODULES.html.sh (func_all_modules): Remove fatal.
65888
65889 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65890
65891         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
65892
65893 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
65894
65895         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
65896         working.
65897
65898 2004-08-02  Simon Josefsson  <jas@extundo.com>
65899
65900         * lib/getsubopt.h: New file, with comments from Bruno Haible.
65901         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
65902         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
65903
65904 2004-08-01  Simon Josefsson  <jas@extundo.com>
65905
65906         * lib/xgetdomainname.c: Include stdlib.h, for free().
65907
65908 2004-07-19  Bruno Haible  <bruno@clisp.org>
65909
65910         * MODULES.html.sh (func_all_modules): Add dummy.
65911
65912 2004-07-16  Simon Josefsson  <jas@extundo.com>
65913
65914         * modules/dummy: New file.
65915
65916 2004-07-16  Simon Josefsson  <jas@extundo.com>
65917
65918         * lib/dummy.c: New file.
65919
65920 2004-07-16  Bruno Haible  <bruno@clisp.org>
65921
65922         * lib/backupfile.h: Add extern "C" for C++.
65923         * lib/closeout.h: Likewise.
65924         * lib/copy-file.h: Likewise.
65925         * lib/findprog.h: Likewise.
65926         * lib/full-write.h: Likewise.
65927         * lib/pathname.h: Likewise.
65928         * lib/progname.h: Likewise.
65929         * lib/stpcpy.h: Likewise.
65930         * lib/stpncpy.h: Likewise.
65931         * lib/strcase.h: Likewise.
65932         * lib/strstr.h: Likewise.
65933         * lib/xalloc.h: Likewise.
65934
65935         * lib/mbswidth.h: Add extern "C" for C++.
65936         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
65937
65938 2004-07-13  Robert Millan  <robertmh@gnu.org>
65939
65940         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
65941
65942 2004-07-09  Simon Josefsson  <jas@extundo.com>
65943
65944         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
65945         failed without this.)
65946
65947 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65948
65949         * modules/chown (Files): Add lib/fchown-stub.c, since
65950         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
65951
65952 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
65953
65954         * lib/fchown-stub.c: New file.
65955
65956 2004-06-24  Jim Meyering  <jim@meyering.net>
65957
65958         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
65959
65960 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65961
65962         * modules/argz: Omit "#include".
65963
65964         * MODULES.html.sh (func_all_modules): Add calloc, to match
65965         2004-06-01 addition of calloc module.
65966
65967 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65968
65969         * m4/argz.m4: New file, which is autoupdated from libtool.
65970
65971 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65972
65973         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
65974         libtool.
65975
65976 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65977
65978         * config/srclist-update: Don't insist on "USA." before the
65979         close-comment, as libtool omits the period and puts the */ on a
65980         separate line.
65981         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
65982         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
65983
65984 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
65985
65986         * modules/argz: New file.
65987         * MODULES.html.sh (func_all_modules): Add argz.
65988
65989 2004-06-12  Jim Meyering  <jim@meyering.net>
65990         and  Paul Eggert  <eggert@cs.ucla.edu>
65991
65992         * modules/hash (Files): Add lib/xalloc.h.
65993         * modules/pipe (Depends-on): Add wait-process.
65994         * modules/stat (Depends-on): Add xalloc.
65995         * modules/userspec (Files): Add lib/userspec.h.
65996         * modules/xstrto
65997
65998         Upgrade from gettext-0.13.
65999         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
66000         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
66001         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
66002
66003 2004-06-10  Jim Meyering  <jim@meyering.net>
66004
66005         * lib/calloc.c: New file.
66006
66007 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66008
66009         * lib/getdate.y (yylex): Allow space between sign and number.
66010         Problem reported by Dan Jacobson.
66011
66012 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
66013
66014         Merge from coreutils CVS.
66015
66016         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
66017         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
66018         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
66019         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
66020         xstrtol.m4: Fix copyright date and/or serial number.
66021
66022         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
66023         See if we need an fchown replacement.
66024         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
66025         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
66026         and use the replacement function if we detect either defect.
66027
66028         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
66029         gl_UTIMECMP.
66030
66031 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
66032         and  Jim Meyering  <jim@meyering.net>
66033
66034         Merge from coreutils CVS.
66035
66036         * lib/stat-macros.h: New file, with contents from file-type.h
66037         and coreutils' system.h.
66038         * lib/file-type.c: Include "stat-macros.h".
66039         * lib/file-type.h (file_type): Move all macro definitions to new file,
66040         stat-macros.h.
66041
66042         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
66043         Wrap old code with this conditional.
66044         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
66045         function that does not dereference symlinks.
66046         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
66047
66048         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
66049         dependency problems.
66050         (xreadlink): Accept new arg SIZE, for efficiency.
66051         All decls and uses changed.
66052         * lib/xreadlink.h: Include <stddef.h>, for size_t.
66053
66054         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
66055         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
66056
66057         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
66058         sysexits.h.
66059
66060 2004-06-01  Jim Meyering  <jim@meyering.net>
66061
66062         * m4/calloc.m4: New file.
66063
66064 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
66065
66066         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
66067         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
66068         Also, fix a typo in a diagnostic.
66069
66070 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
66071
66072         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
66073         or AC_FUNC_REALLOC.
66074
66075 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
66076
66077         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
66078         macros to be defined.
66079         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
66080         the allocator returns NULL because the requested size is zero.
66081
66082 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66083
66084         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
66085         var.  Add comment explaining why libc still defines it.  This
66086         merges the following patch from glibc:
66087         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
66088
66089 2004-05-20  Andreas Schwab  <schwab@suse.de>
66090
66091         * m4/free.m4: Replace free if it not known to work, not the other
66092         way round.
66093
66094 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
66095
66096         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
66097         present in glibc since revision 1.1 of this file.
66098         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
66099         obstack_alignment_mask, obstack_alloc, obstack_base,
66100         obstack_blank, obstack_blank_fast, obstack_chunk_size,
66101         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
66102         obstack_grow0, obstack_init, obstack_int_grow,
66103         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
66104         obstack_next_free, obstack_object_size, obstack_ptr_grow,
66105         obstack_ptr_grow_fast, obstack_room): Remove declarations of
66106         nonexistent functions.
66107
66108 2004-05-18  Karl Berry  <karl@gnu.org>
66109
66110         * config/srclist.txt: break link for vasnprintf.c.
66111
66112 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66113
66114         Port obstack to the AS/400, where pointers are 16 bytes wide and
66115         you cannot cast an integer to a valid pointer.  This patch is
66116         currently waiting to be integrated into glibc; see
66117         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
66118
66119         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
66120         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
66121         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
66122         (struct obstack): temp member is now a union of a pointer and
66123         an integer, instead of an integer.  All integer uses changed.
66124         This does not affect the physical layout of struct obstack,
66125         except on hosts (like the AS/400) where the size or alignment of
66126         void * is greater than that of ptrdiff_t.
66127         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
66128         __STDC__)]: Store temporary in pointer member of union, not
66129         integer member.
66130         * lib/obstack.c: Include <stddef.h>, for offsetof.
66131         (struct fooalign): Remove; it doesn't need a name.
66132         (union fooround): Change double to long double, and add void *.
66133         (DEFAULT_ALIGNMENT): Use offsetof to compute.
66134         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
66135         not a macro.  Hence the values are always int; so remove all
66136         casts-to-int in uses.
66137
66138 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66139
66140         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
66141         we can get this patch merged into glibc.
66142
66143 2004-05-17  Derek R. Price  <derek@ximbiot.com>
66144             Paul Eggert  <eggert@cs.ucla.edu>
66145
66146         * m4/argp: Depend on alloca.
66147
66148 2004-05-17  Derek R. Price  <derek@ximbiot.com>
66149             Paul Eggert  <eggert@cs.ucla.edu>
66150
66151         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
66152         freecoding.
66153
66154 2004-05-17  Bruno Haible  <bruno@clisp.org>
66155
66156         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
66157         precision that consists of a '.' followed by an empty digit string.
66158         Patch by Tor Lillqvist <tml@iki.fi>.
66159
66160 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66161
66162         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
66163         for backward compatibility with older code.  We need our own
66164         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
66165         it under some other name, and our alloca.h will define it.
66166
66167 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66168             Derek Price  <derek@ximbiot.com>
66169
66170         * lib/alloca.c: Include <alloca.h>, to get our interface.
66171         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
66172         include <alloca.h> first.  Use C89 prototype for alloca; this
66173         requires including <stddef.h> for size_t.  Use extern "C" if C++.
66174         Use #elif for simplicity, since we can assume C89 now.
66175         Don't try to source the system alloca.h since it will not be found
66176         and to prevent recursively including its replacement.
66177         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
66178         * lib/regex.c: Likewise.
66179
66180 2004-05-16  Derek Price  <derek@ximbiot.com>
66181             Paul Eggert  <eggert@cs.ucla.edu>
66182
66183         getline cleanup.  This changes the getndelim2 API: both order of
66184         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
66185         no delimiter).
66186
66187         * lib/getline.c: Don't include stddef.h or stdio.h, since our
66188         interface does that.
66189         (getline): Always use getdelim, so that we don't have two
66190         copies of this code.
66191         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
66192         if available.
66193         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
66194         (GETNDELIM2_MAXIMUM): New macro.
66195         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
66196         instead of the old practice of delim2==0.  All callers changed.
66197         Return -1 on overflow, instead of returning junk.
66198         Do not set *linesize unless allocation succeeds.
66199         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
66200         that we include sys/types.h.
66201         * lib/getnline.h: Likewise.
66202         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
66203         (getndelim2): Reorder arguments.
66204         * lib/getnline.c (getnline, getndelim):
66205         Don't discard the NMAX argument.
66206         (getnline): Invoke getndelim, to avoid code duplication.
66207         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
66208         of (size_t) -1 by callers of the getnline family.
66209
66210 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66211
66212         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
66213         Check for gettimeofday.
66214         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
66215         Check for settimeofday, stime.
66216
66217 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66218
66219         * lib/nanosleep.c (suspended): Change its type from int to
66220         sig_atomic_t volatile.
66221         (first_call): Make it private to rpl_nanosleep, and have it
66222         be zero initially as that's a bit faster.
66223         (my_usleep): Round up fractional times instead of truncating them,
66224         as this is the usual meaning for 'sleep'.
66225
66226         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
66227         doesn't work.
66228         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
66229         (ENOSYS): Define if not defined.
66230         (settime): Fall back on stime if it exists and settimeofday fails.
66231         But don't bother with fallbacks if a method fails with errno == EPERM.
66232
66233 2004-05-11  Jim Meyering  <jim@meyering.net>
66234
66235         Prior to this change, the save_cwd caller required read access to the
66236         current directory on most systems (ones with the fchdir function).
66237
66238         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
66239         fails, try write-only, and finally, resort to using xgetcwd.
66240
66241 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
66242
66243         * lib/obstack.c, obstack.h: Import changes from libc.
66244
66245 2004-04-28  Bruno Haible  <bruno@clisp.org>
66246
66247         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
66248         also implicitly appends .exe to executables.
66249         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
66250         accepts Windows pathnames.
66251         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
66252         Treat Cygwin like Windows, since it now accepts Windows pathnames.
66253         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
66254         Treat Cygwin like Windows, since it now accepts Windows pathnames.
66255         Reported by Derek Robert Price <derek@ximbiot.com>.
66256
66257 2004-04-21  Karl Berry  <karl@gnu.org>
66258
66259         * config/srclist.txt (localcharset.c): break sync.
66260
66261 2004-04-20  Paul Eggert  <eggert@twinsun.com>
66262
66263         * m4/host-os.m4: Add a copyright notice.
66264
66265 2004-04-20  Jim Meyering  <jim@meyering.net>
66266
66267         Change UTILS_ to gl_ in AC_DEFINE'd names.
66268         Change utils_- and jm_-prefixed variables, too.
66269         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
66270         UTILS_FUNC_MKDIR_TRAILING_SLASH.
66271         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
66272
66273         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
66274         Don't emit trailing blanks.
66275         Also rename jm_-prefixed variables to have gl_ prefix.
66276
66277         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
66278         Also rename jm_-prefixed variables to have gl_ prefix.
66279
66280         * m4/jm-macros.m4: Reflect the renamings.
66281         * m4/prereq.m4: Likewise.
66282
66283 2004-04-20  Jim Meyering  <jim@meyering.net>
66284
66285         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
66286         memory.
66287
66288 2004-04-20  Jim Meyering  <jim@meyering.net>
66289             Bruno Haible  <bruno@clisp.org>
66290
66291         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
66292         memory when realloc fails.
66293
66294 2004-04-19  Jim Meyering  <jim@meyering.net>
66295
66296         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
66297         now that readutmp.c may call `free (0)'.
66298
66299 2004-04-19  Bruno Haible  <bruno@clisp.org>
66300
66301         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
66302         * m4/inttypes_h.m4: Likewise.
66303         * m4/stdint_h.m4: Likewise.
66304         * m4/intmax_t.m4: Likewise.
66305         * m4/uintmax_t.m4: Likewise.
66306
66307 2004-04-18  Jim Meyering  <jim@meyering.net>
66308
66309         * m4/prereq.m4: Don't forbid jm_ prefix.
66310
66311         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
66312         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
66313         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
66314         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
66315         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
66316         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
66317         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
66318         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
66319         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
66320         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
66321         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
66322         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
66323         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
66324         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
66325         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
66326         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
66327         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
66328         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
66329         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
66330
66331 2004-04-18  Jim Meyering  <jim@meyering.net>
66332
66333         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
66334         failure, don't leak memory and do call END_UTMP_ENT.
66335
66336 2004-04-16  Jim Meyering  <jim@meyering.net>
66337
66338         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
66339         coreutils' stat program.
66340         (gl_PREREQ): Don't require jm_PREREQ_STAT.
66341
66342 2004-04-11  Paul Eggert  <eggert@twinsun.com>
66343
66344         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
66345         C89.
66346         (CHAR_BIT): Remove, since we assume C89.
66347         Include <stdint.h> if available, as per current Autoconf CVS advice.
66348
66349 2004-03-31  Jim Meyering  <jim@meyering.net>
66350
66351         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
66352         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
66353         * m4/xalloc.m4: Likewise.
66354
66355 2004-03-30  Paul Eggert  <eggert@twinsun.com>
66356
66357         Merge from coreutils.
66358
66359         * m4/inttostr.m4: New file.
66360         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
66361         Require AM_STDBOOL_H and gl_TIMESPEC instead.
66362         Require gl_CLOCK_TIME.
66363         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
66364
66365 2004-03-30  Paul Eggert  <eggert@twinsun.com>
66366
66367         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
66368         not bool, to be more consistent with Unix conventions.
66369         Suggested by Bruno Haible.
66370
66371         Merge from coreutils.
66372
66373         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
66374         * lib/umaxtostr.c: New files.
66375
66376         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
66377         the usual <time.h> dance.
66378         (get_date): Change signature to support fractional time stamps.
66379         All callers changed.
66380         * lib/getdate.y: Include "getdate.h" first, as we can now
66381         assume C89 and don't need to worry about 'const'.
66382         Similarly, include "unlocked-io.h" near start, not in middle.
66383         Include <limits.h>.
66384         (textint.value): Use long int rather than int.
66385         (textint.digits): Use size_t rather than int.
66386         (BILLION, LOG10_BILLION): New constants.
66387         (parser_control): New member rel_ns.  Members day_ordinal,
66388         time_zone, month, day, hour, minutes, rel_year, rel_month,
66389         rel_day, rel_hour, rel_minutes, rel_seconds
66390         are now long int, not int.  Member seconds is now struct timespec,
66391         not int.  New member timespec_seen.  Members dates_seen, days_seen,
66392         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
66393         not int.
66394         (%union.intval): Now long int, not int.
66395         New member timespec.
66396         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
66397         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
66398         (spec): Now is a timespec or an item list.
66399         (timespec, items): New nonterminals.
66400         (time, rel, relunit, number, get_date):
66401         Add support for fractional seconds.
66402         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
66403         (gmtime, localtime, mktime): Remove decls; not needed with C89.
66404         (to_hour): First arg is now long int, not int.
66405         (to_year): Returns long int, not int.
66406         Don't treat year -70 like 70.
66407         (tm_diff): Returns long int, not int.
66408         (lookup_word): Use bool instead of int when appropriate.
66409         (yylex): Use size_t for count, not int.
66410         Detect overflow when parsing large integer constants.
66411         Add support for fractions.
66412         (get_date): Make pointers 'const' if possible.
66413         Use more-portable code to detect integer overflow.
66414         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
66415         Don't use ctime; it's not reliable if the year has >4 digits.
66416
66417         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
66418         This is for compatibility with BSD.
66419
66420         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
66421         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
66422         From coreutils' system.h.
66423
66424         * lib/userspec.c: Don't include "posixver.h".
66425         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
66426         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
66427         compatible extension.  Simplify code by removing a boolean int
66428         that was always nonzero if a string was nonnull.
66429
66430 2004-03-30  Jim Meyering  <jim@meyering.net>
66431
66432         Merge from coreutils.
66433
66434         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
66435         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
66436         on some systems one must include <grp.h> before it.
66437         Reported by Christian Krackowizer.
66438
66439 2004-03-30  Jim Meyering  <jim@meyering.net>
66440
66441         Merge from coreutils.
66442
66443         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
66444
66445         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
66446         an empty input stream.
66447
66448         * lib/readtokens.c: Include <stdbool.h>.
66449         (readtoken): Use `size_t' rather than int/long.
66450         All callers adjusted.
66451         Use `bool' rather than `int' where appropriate.
66452         Use memset rather than an explicit loop.
66453         Use x2nrealloc rather than xrealloc.
66454         Allow the use of `\0' as a delimiter.
66455         (readtokens): Likewise.
66456         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
66457
66458 2004-03-30  Jim Meyering  <jim@meyering.net>
66459
66460         * m4/realloc.m4: Remove file, since now it does no more than
66461         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
66462         the `configure.ac' section of module/realloc.
66463         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
66464
66465 2004-03-30  Bruno Haible  <bruno@clisp.org>
66466
66467         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
66468         nonnull.
66469
66470 2004-03-29  Paul Eggert  <eggert@twinsun.com>
66471
66472         Merge changes to getloadavg.c from coreutils and Emacs.
66473
66474         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
66475         Define to an expression, not to the empty string.
66476         Include cloexec.h and xalloc.h.
66477         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
66478         Use set_cloexec_flag rather than rolling our own.
66479         * lib/cloexec.c, lib/cloexec.h: New files.
66480
66481 2004-03-29  Paul Eggert  <eggert@twinsun.com>
66482
66483         * m4/cloexec.m4: New file.
66484
66485 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66486
66487         * lib/getopt.h: Sync with libc CVS.
66488
66489 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66490             Bruno Haible  <bruno@clisp.org>
66491
66492         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
66493         mbswidth.
66494
66495 2004-03-18  Paul Eggert  <eggert@twinsun.com>
66496             Bruno Haible  <bruno@clisp.org>
66497
66498         * lib/mbswidth.h: Include <wchar.h> only if
66499         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
66500         <wchar.h>.
66501         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
66502
66503 2004-03-09  Paul Eggert  <eggert@twinsun.com>
66504
66505         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
66506         Sync with libc CVS.
66507         * lib/getopt_int.h: New file, also synced from libc.
66508
66509 2004-03-09  Paul Eggert  <eggert@twinsun.com>
66510
66511         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
66512         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
66513         Bring back getopt.c, getopt.h, getopt1.c.
66514
66515 2004-03-07  Paul Eggert  <eggert@twinsun.com>
66516
66517         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
66518         All uses changed.  Check for sa_sigaction member; this fixes
66519         a bug first reported by Jason Andrade in
66520         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
66521
66522 2004-03-07  Paul Eggert  <eggert@twinsun.com>
66523
66524         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
66525         '#if' expressions.  Unlike the code it replaces, it does not
66526         depend on (defined _SC_PAGESIZE).  However, it does depend on
66527         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
66528         first reported by Jason Andrade in
66529         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
66530
66531 2004-02-25  Simon Josefsson  <jas@extundo.com>
66532
66533         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
66534
66535 2004-02-25  Simon Josefsson  <jas@extundo.com>
66536
66537         * lib/strdup.h: New file.
66538         * lib/strdup.c: Include it.
66539         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
66540         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
66541
66542 2004-02-23  Karl Berry  <karl@gnu.org>
66543
66544         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
66545         (from fencepost.gnu.org:/gd/gnuorg).
66546
66547 2004-02-23  Karl Berry  <karl@gnu.org>
66548
66549         * config/srclistvars.sh (GNUORG) [karl]: redefine.
66550         * config/srclist.txt: add maintain/standards documents.
66551
66552 2004-02-18  Bruno Haible  <bruno@clisp.org>
66553
66554         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
66555         Reported by Derek Robert Price <derek@ximbiot.com>.
66556
66557 2004-02-16  Karl Berry  <karl@gnu.org>
66558
66559         * config/mkinstalldirs, install-sh: update from automake.
66560
66561 2004-02-06  Karl Berry  <karl@gnu.org>
66562
66563         * m4/po.m4: update from gettext 0.14.1.
66564
66565 2004-02-06  Karl Berry  <karl@gnu.org>
66566
66567         * lib/config.charset: update from gettext 0.14.1.
66568
66569 2004-02-05  Paul Eggert  <eggert@twinsun.com>
66570
66571         Add comments and code, prompted by suggestions from Bruno Haible
66572         for sh-quote.
66573         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
66574         describing the enum quoting_style values.
66575         * lib/quotearg.c (quotearg_alloc): New function.
66576         (quotearg_buffer_restyled): Treat lone { and } as special.
66577         Treat = as special.  Work around bug with older shells
66578         that "see" a '\' that is really the 2nd byte of a multibyte char.
66579         Quote empty string with shell_quoting_style.
66580
66581 2004-02-03  Bruno Haible  <bruno@clisp.org>
66582
66583         * m4/pipe.m4: New file, from GNU gettext.
66584
66585 2004-02-03  Bruno Haible  <bruno@clisp.org>
66586
66587         * lib/pipe.h: New file, from GNU gettext.
66588         * lib/pipe.c: New file, from GNU gettext.
66589
66590 2004-01-27  Bruno Haible  <bruno@clisp.org>
66591
66592         * m4/execute.m4: New file, from GNU gettext.
66593
66594 2004-01-27  Bruno Haible  <bruno@clisp.org>
66595
66596         * lib/execute.h: New file, from GNU gettext.
66597         * lib/execute.c: New file, from GNU gettext.
66598         * lib/w32spawn.h: New file, from GNU gettext.
66599
66600 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66601
66602         Merge from diffutils.
66603
66604         * lib/file-type.c (file_type): Add typed memory objects.
66605         * lib/file-type.h (S_TYPEISTMO): New macro.
66606
66607         * lib/c-stack.h (c_stack_action): Remove argv argument.
66608         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
66609         (die): Don't calculate message unless segv_action returns.
66610         (get_stack_location, min_address_from_argv, max_address_from_argv,
66611         volatile stack_base, volatile_stack_size): Remove.
66612         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
66613         that every segmentation violation is a stack overflow.  (Ouch!)
66614         See Debian bug 136249 (still outstanding) for more info about why
66615         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
66616
66617 2004-01-24  Paul Eggert  <eggert@twinsun.com>
66618
66619         Exit-status fix from coreutils.
66620
66621         Use exit_failure consistently in place of EXIT_FAILURE,
66622         so that program exit statuses are consistent on failure.
66623
66624         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
66625         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
66626         * lib/argmatch.h: Comment fix to match the above.
66627         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
66628         Now a macro referring to exit_failure, instead of a separate
66629         variable.  Include "exitfail.h" to get it.
66630         * lib/xstrtol.h: Include "exitfail.h".
66631         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
66632
66633         * lib/long-options.c (parse_long_options): Use prototype
66634         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
66635         for clarity.
66636
66637 2004-01-21  Jim Meyering  <jim@meyering.net>
66638
66639         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
66640         so as not to conflict with a different-sized __mktime_internal
66641         function in GNU libc.
66642         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
66643         Problem building statically-linked `ls' reported by Michael Brunnbauer.
66644
66645 2004-01-20  Karl Berry  <karl@gnu.org>
66646
66647         * config/config.guess: update from config.
66648
66649         * config/srclistvars.sh: GNUWWWLICENSES for karl.
66650
66651 2004-01-20  Bruno Haible  <bruno@clisp.org>
66652
66653         Safer stack allocation.
66654         * lib/setenv.c: Include allocsa.h.
66655         (alloca): Remove fallback definition.
66656         (freea): Remove macro.
66657         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
66658         instead of freea.
66659
66660 2004-01-20  Bruno Haible  <bruno@clisp.org>
66661
66662         * m4/eealloc.m4: New file, from GNU gettext.
66663
66664 2004-01-20  Bruno Haible  <bruno@clisp.org>
66665
66666         * m4/allocsa.m4: New file, from GNU gettext.
66667
66668 2004-01-20  Bruno Haible  <bruno@clisp.org>
66669
66670         * lib/xallocsa.h: New file, from GNU gettext.
66671         * lib/xallocsa.c: New file, from GNU gettext.
66672
66673 2004-01-20  Bruno Haible  <bruno@clisp.org>
66674
66675         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
66676
66677 2004-01-20  Bruno Haible  <bruno@clisp.org>
66678
66679         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
66680         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
66681         specially.
66682
66683 2004-01-20  Bruno Haible  <bruno@clisp.org>
66684
66685         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
66686         patch.
66687
66688 2004-01-20  Bruno Haible  <bruno@clisp.org>
66689
66690         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
66691
66692 2004-01-20  Bruno Haible  <bruno@clisp.org>
66693
66694         * lib/eealloc.h: New file.
66695
66696 2004-01-20  Bruno Haible  <bruno@clisp.org>
66697
66698         * lib/binary-io.h: Avoid warnings on Cygwin.
66699
66700 2004-01-20  Bruno Haible  <bruno@clisp.org>
66701
66702         * lib/allocsa.h: New file, from GNU gettext.
66703         * lib/allocsa.c: New file, from GNU gettext.
66704
66705 2004-01-18  Karl Berry  <karl@gnu.org>
66706
66707         * doc/gpl.texi, doc/lgpl.texi: new files.
66708
66709 2004-01-18  Karl Berry  <karl@gnu.org>
66710
66711         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
66712         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
66713
66714 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66715
66716         Merge from coreutils.
66717
66718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
66719         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
66720         (gl_DEFAULT_POSIX2_VERSION): Move
66721         the documentation from 'configure' into 'config.hin',
66722         so that 'configure --help' isn't burdened by it and
66723         we don't have to worry about its formatting there.
66724         Reword the documentation so that it's more succinct
66725         and can be run together into a single paragraph.
66726         * m4/same.m4 (gl_SAME): Check for pathconf.
66727
66728 2004-01-15  Paul Eggert  <eggert@twinsun.com>
66729
66730         Merge from coreutils.
66731
66732         * lib/posixver.c: Include posixver.h.
66733
66734         * lib/same.c: Include <stdbool.h>, <limits.h>.
66735         (_POSIX_NAME_MAX): Define if not defined.
66736         (MIN): New macro.
66737         (same_name): If file names are silently truncated, report
66738         that the file names are the same if they are the same after
66739         the silent truncation.
66740
66741         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
66742         conversion function.
66743         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
66744         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
66745         longer needed.
66746
66747 2004-01-15  Jim Meyering  <jim@meyering.net>
66748
66749         Merge from coreutils.
66750
66751         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
66752         if no library is required.
66753         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
66754         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
66755         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
66756         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
66757         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
66758         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
66759         value, $ac_cv_search_crypt, if it's "none required".
66760         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
66761         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
66762         not gl_FUNC_GETLOADAVG.
66763         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
66764         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
66765
66766 2004-01-15  Jim Meyering  <jim@meyering.net>
66767
66768         Merge from coreutils.
66769
66770         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
66771         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
66772         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
66773
66774         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
66775         optional configure-time default.
66776
66777         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66778
66779         * lib/xreadlink.c (xreadlink): Correct outdated comment.
66780
66781 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
66782
66783         Merge from coreutils.
66784
66785         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
66786         value, $ac_cv_search_nanosleep, if it's "none required".
66787
66788 2004-01-14  Paul Eggert  <eggert@twinsun.com>
66789
66790         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
66791         with like-named macro in fnmatch.c.
66792         (EXT): Use an internal constant instead.
66793
66794         Merge fnmatch patches from glibc.
66795         * lib/fnmatch.c (mbsinit): Remove define.
66796         Add libc_hidden_ver (__fnmatch, fnmatch).
66797         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
66798         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
66799
66800 2004-01-14  Karl Berry  <karl@gnu.org>
66801
66802         * config/install-sh: update from automake.
66803
66804 2004-01-13  Karl Berry  <karl@gnu.org>
66805
66806         * config/install-sh: update from automake.
66807
66808 2004-01-09  Karl Berry  <karl@gnu.org>
66809
66810         * config/install-sh: update from automake.
66811
66812 2004-01-05  Karl Berry  <karl@gnu.org>
66813
66814         * config/config.{sub,guess}: update from config.
66815
66816 2003-12-31  Karl Berry  <karl@gnu.org>
66817
66818         * config/depcomp: update from automake.
66819
66820 2003-12-14  Karl Berry  <karl@gnu.org>
66821
66822         * lib/config.charset: update from gettext-runtime.
66823
66824 2003-12-03  Paul Eggert  <eggert@twinsun.com>
66825
66826         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
66827         Bug reported by Alfred M. Szmidt.
66828
66829 2003-12-03  Bruno Haible  <bruno@clisp.org>
66830
66831         * m4/gettext.m4: Upgrade from gettext-0.13.
66832         * m4/po.m4: Upgrade from gettext-0.13.
66833         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
66834         * m4/intmax.m4: New file, from gettext-0.13.
66835         * m4/printf-posix.m4: New file, from gettext-0.13.
66836
66837 2003-11-29  Karl Berry  <karl@gnu.org>
66838
66839         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
66840
66841 2003-11-25  Paul Eggert  <eggert@twinsun.com>
66842             Bruno Haible  <bruno@clisp.org>
66843
66844         * lib/printf-parse.h: Don't include sys/types.h.
66845         (ARG_NONE): New macro.
66846         (char_directive): Change type of *arg_index fields to size_t.
66847         * lib/printf-parse.c: Don't include sys/types.h.
66848         (SSIZE_MAX): Remove macro.
66849         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
66850         Remove unnecessary overflow check.
66851         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
66852         fields.
66853
66854 2003-11-25  Bruno Haible  <bruno@clisp.org>
66855
66856         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
66857
66858 2003-11-25  Bruno Haible  <bruno@clisp.org>
66859
66860         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
66861         gt_TYPE_SSIZE_T.
66862
66863 2003-11-24  Paul Eggert  <eggert@twinsun.com>
66864
66865         * modules/alloca: Remove dependency on xalloc.
66866
66867 2003-11-24  Paul Eggert  <eggert@twinsun.com>
66868
66869         * lib/alloca.c: Remove dependency on xalloc module.
66870         (xalloc_die): Remove.
66871         (memory_full) [!defined emacs]: New macro.
66872         [!defined emacs]: Don't include xalloc.h.
66873         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
66874         address arithmetic overflows.  Change datatypes a bit to avoid
66875         unnecessary casts.
66876
66877 2003-11-22  Jim Meyering  <jim@meyering.net>
66878
66879         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
66880         s/size/size_t/.
66881
66882 2003-11-21  Karl Berry  <karl@gnu.org>
66883
66884         * config/config.{sub,guess}: update from config.
66885
66886 2003-11-18  Karl Berry  <karl@gnu.org>
66887
66888         * config/config.{sub,guess}: update from config.
66889
66890         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
66891
66892 2003-11-17  Paul Eggert  <eggert@twinsun.com>
66893
66894         * README: Mention that S+T cannot overflow if S is the size of
66895         an existing object and T is sufficiently small.
66896
66897 2003-11-17  Jim Meyering  <jim@meyering.net>
66898
66899         On systems without utime and without a utimes function capable of
66900         dealing with a NULL struct utimbuf* argument, this utime replacement
66901         could -- in unusual circumstances -- leak a file descriptor.
66902         * lib/utime.c: Include <unistd.h> and <errno.h>.
66903         (utime_null): Be sure to close `fd' and to preserve errno.
66904         Reported by Geoff Collyer via Arnold Robbins.
66905
66906 2003-11-17  Bruno Haible  <bruno@clisp.org>
66907
66908         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
66909         (Depends-on): Add xsize.
66910
66911 2003-11-17  Bruno Haible  <bruno@clisp.org>
66912
66913         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
66914
66915 2003-11-17  Bruno Haible  <bruno@clisp.org>
66916
66917         * lib/vasnprintf.c (alloca): Remove fallback definition.
66918         (freea): Remove definition.
66919         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
66920         Reported by Paul Eggert.
66921
66922 2003-11-16  Paul Eggert  <eggert@twinsun.com>
66923             Bruno Haible  <bruno@clisp.org>
66924
66925         Protect against address arithmetic overflow.
66926         * lib/printf-args.h: Include stddef.h.
66927         (arguments): Change type of field 'count' to size_t.
66928         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
66929         'unsigned int' where appropriate.
66930         * lib/printf-parse.h: Include sys/types.h.
66931         (char_directive): Change type of *arg_index fields to ssize_t.
66932         (char_directives): Change type of fields 'count', max_*_length to
66933         size_t.
66934         * lib/printf-parse.c: Include sys/types.h and xsize.h.
66935         (SSIZE_MAX): Define fallback value.
66936         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
66937         instead of 'int' where appropriate. Check a_allocated, d_allocated
66938         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
66939         * lib/vasnprintf.c: Include xsize.h.
66940         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
66941         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
66942         overflow. Avoid wraparound when converting a width or precision from
66943         decimal to binary.
66944
66945 2003-11-16  Bruno Haible  <bruno@clisp.org>
66946
66947         Update from GNU gettext.
66948         * lib/printf-parse.c: Generalize to it can be compiled for wide
66949         strings.
66950         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
66951         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
66952         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
66953         SNPRINTF): New macros.
66954         Don't include <alloca.h> if the file is used inside libintl.
66955         (local_wcslen): New function, for Solaris 2.5.1.
66956         (VASNPRINTF): Use it instead of wcslen.
66957
66958 2003-11-16  Bruno Haible  <bruno@clisp.org>
66959
66960         * lib/xsize.h (xmax): New function.
66961         (xsum, xsum3, xsum4): Declare as "pure" functions.
66962
66963 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66964
66965         * modules/xalloc (Files): Undo latest change, since xalloc.h
66966         no longer needs SIZE_MAX or PTRDIFF_MAX.
66967
66968 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66969
66970         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
66971         gl_PTRDIFF_MAX.
66972
66973 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66974
66975         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
66976         "return", to pacify some unknown compiler.  Problem reported
66977         by Joerg Schilling.
66978
66979 2003-11-12  Paul Eggert  <eggert@twinsun.com>
66980
66981         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
66982         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
66983         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
66984         heuristic is just as accurate as far as we know, and it removes a
66985         dependency on size_max.m4 and ptrdiff_max.m4.
66986
66987 2003-11-11  Bruno Haible  <bruno@clisp.org>
66988
66989         * modules/xsize (Files): Add m4/size_max.m4.
66990         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
66991
66992 2003-11-11  Bruno Haible  <bruno@clisp.org>
66993
66994         * m4/size_max.m4: New file.
66995         * m4/ptrdiff_max.m4: New file.
66996         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
66997         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
66998         (gl_XALLOC): Invoke it.
66999
67000 2003-11-11  Bruno Haible  <bruno@clisp.org>
67001
67002         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
67003         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
67004         defined.
67005
67006 2003-11-10  Paul Eggert  <eggert@twinsun.com>
67007
67008         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
67009         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
67010         rejected some allocations of exactly SIZE_MAX - 2 bytes.
67011         From Bruno Haible.
67012         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
67013         not (size_t) -1, since it's defined here.
67014
67015 2003-11-09  Karl Berry  <karl@gnu.org>
67016
67017         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
67018
67019 2003-11-06  Paul Eggert  <eggert@twinsun.com>
67020
67021         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
67022         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
67023         Reject sizes of exactly SIZE_MAX bytes.
67024         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
67025         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
67026
67027 2003-11-05  Bruno Haible  <bruno@clisp.org>
67028
67029         * lib/xsize.h: Include limits.h, to avoid a possible collision with
67030         SIZE_MAX defined in <limits.h> on Solaris.
67031
67032 2003-11-04  Jim Meyering  <jim@meyering.net>
67033
67034         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
67035         variable names, rather than @VAR@.
67036         * modules/poll: Likewise.
67037
67038 2003-11-04  Bruno Haible  <bruno@clisp.org>
67039
67040         * modules/xsize: New file.
67041         * modules/linebreak: Depend on xsize.
67042         * MODULES.html.sh (func_all_modules): Add xsize.
67043
67044 2003-11-04  Bruno Haible  <bruno@clisp.org>
67045
67046         * m4/xsize.m4: New file.
67047
67048 2003-11-04  Bruno Haible  <bruno@clisp.org>
67049
67050         * lib/xsize.h: New file.
67051         * lib/linebreak.c: Include xsize.h.
67052         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
67053         argument for overflow.
67054         Suggested by Paul Eggert.
67055
67056 2003-11-03  Karl Berry  <karl@gnu.org>
67057
67058         * config/config.{guess,sub}: update from config.
67059
67060 2003-11-03  Jim Meyering  <jim@meyering.net>
67061
67062         * modules/userspec (lib_SOURCES): Add userspec.h.
67063         (Include): Add "userspec.h".
67064         Improve description.
67065
67066 2003-11-03  Jim Meyering  <jim@meyering.net>
67067
67068         * lib/userspec.c: Include "userspec.h".
67069         * lib/userspec.h: New file.
67070
67071 2003-11-03  Bruno Haible  <bruno@clisp.org>
67072
67073         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
67074
67075 2003-11-03  Bruno Haible  <bruno@clisp.org>
67076
67077         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
67078         available, to avoid (extremely rare) race condition.
67079         Suggested by Paul Eggert.
67080
67081 2003-11-02  Karl Berry  <karl@gnu.org>
67082
67083         * config/srclist.txt (vasprintf.c): sync broken, sigh.
67084
67085 2003-10-31  Paul Eggert  <eggert@twinsun.com>
67086
67087         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
67088         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
67089         (read_filesystem_list): Set and use me_type_malloced.
67090         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
67091         whatever the type happens to be), for brevity and consistency.
67092         Check for size calculation overflow on Alphas running OSF/1.
67093
67094 2003-10-31  Jim Meyering  <jim@meyering.net>
67095
67096         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
67097
67098         * lib/linebuffer.c: Include <string.h> for declaration of memset.
67099
67100 2003-10-30  Paul Eggert  <eggert@twinsun.com>
67101             Bruno Haible  <bruno@clisp.org>
67102
67103         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
67104         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
67105
67106 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67107
67108         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
67109         netbsd*-gnu*.  Suggested by Robert Millan.
67110
67111 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67112
67113         * modules/group-member: Depend on stdbool.
67114
67115 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67116
67117         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
67118
67119 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67120
67121         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
67122         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
67123         after the 'gnu' in these cases.  This fixes some bugs in the
67124         previous change, and is based on suggestions by Robert Millan.
67125
67126 2003-10-29  Paul Eggert  <eggert@twinsun.com>
67127
67128         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
67129         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
67130         no longer needed.
67131         * lib/quotearg.c (quotearg_n_options): Use it.
67132         * lib/group-member.c: Include <stdbool.h>.
67133         (free_group_info): Arg is now const *; don't free arg.
67134         (get_group_info): Now returns bool and accepts struct group_info *,
67135         rather than returning a malloc'ed struct group_info *.
67136         All uses changed.  Check for overflow in internal size calculation.
67137
67138         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
67139         rather than xmalloc/xrealloc.
67140         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
67141         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
67142         conformance bug: the old code used a pointer after freeing the
67143         storage that it addressed.
67144         * lib/hash.c (hash_initialize): Simplify the code by using
67145         xalloc_oversized rather than doing it by hand.
67146         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
67147         the buffer preserved.  Use free and xmalloc instead.
67148         * lib/quotearg.c (quotearg_n_options): Likewise.
67149         Use a simpler test for size overflow.  Don't use xalloc_oversized
67150         because unsigned int might be wider than size_t (!); this suggests
67151         that we should switch from unsigned int to size_t for slot numbers.
67152
67153 2003-10-28  Paul Eggert  <eggert@twinsun.com>
67154
67155         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
67156         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
67157         NetBSD kernels.  Requested by Richard Stallman.
67158
67159 2003-10-27  Paul Eggert  <eggert@twinsun.com>
67160
67161         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
67162         to allocate the returned structure.  Do not allocate a subarray,
67163         as x2nrealloc will do that.
67164         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
67165         instead of xnrealloc.
67166         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
67167
67168 2003-10-27  Bruno Haible  <bruno@clisp.org>
67169
67170         * lib/stdbool_.h: Better support for BeOS.
67171
67172 2003-10-26  Paul Eggert  <eggert@twinsun.com>
67173
67174         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
67175         now uses inline.
67176
67177 2003-10-26  Paul Eggert  <eggert@twinsun.com>
67178
67179         * lib/xalloc.h (xalloc_oversized): New static inline function, for
67180         callers that want to do their own size-overflow checking.  Include
67181         <stdbool.h>, since xalloc_oversized returns bool.
67182         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
67183         to use xalloc_oversized.
67184
67185         Add two functions x2realloc, x2nrealloc, for programs that grow
67186         arrays dynamically by doubling their sizes.
67187         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
67188         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
67189         New functions.
67190
67191         Port to C99 semantics for 'inline' of external functions.
67192         Bug reported by Bruno Haible.
67193         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
67194         with the old contents of xnmalloc.
67195         (xnmalloc, xmalloc): Use it.
67196         (xnrealloc_inline): New static inline function,
67197         with the old contents of xnrealloc.
67198         (xnrealloc, xrealloc): Use it.
67199
67200         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
67201         that.
67202
67203 2003-10-26  Karl Berry  <karl@gnu.org>
67204
67205         * config/srclist.txt (COPYING.DOC): no longer available from
67206         /gd/gnuorg; don't know where the ultimate source is.
67207
67208 2003-10-25  Paul Eggert  <eggert@twinsun.com>
67209
67210         Fix several address-calculation bugs in the hash modules,
67211         plus some minor code cleanup.
67212
67213         * lib/hash.h: Include <stdbool.h>, for bool.
67214         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
67215         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
67216         hash_get_n_entries, hash_get_max_bucket_length,
67217         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
67218         hash_rehash): Use size_t rather than unsigned.
67219         * lib/hash.c (struct hash_table, hash_get_n_buckets,
67220         hash_get_n_buckets_used, hash_get_n_entries,
67221         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
67222         hash_get_entries, hash_do_for_each, hash_string, is_prime,
67223         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
67224         Likewise.
67225         (SIZE_MAX): Define if not defined.
67226         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
67227         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
67228         hash_print):
67229         Use const * when possible.
67230         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
67231         (check_tuning): Fix bug: if tuning parameters were very close to
67232         0 or 1, rounding errors could have caused subscript violations.
67233         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
67234         (hash_initialize): Add 'fail:' label
67235         to free table and return NULL, and use it to simplify code.
67236         Use calloc rather than clearing the storage ourself.
67237         (hash_initialize, hash_rehash): Check for arithmetic overflow in
67238         buffer size calculations.
67239         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
67240         Include <stddef.h>, for size_t.
67241         * lib/hash-pjw.c (hash_pjw): Likewise.
67242         Switch to method described by Bruno Haible.
67243         Include <limits.h>, for CHAR_BIT.
67244         (SIZE_BITS): New macro.
67245
67246 2003-10-23  Paul Eggert  <eggert@twinsun.com>
67247
67248         * m4/getline.m4 (AM_FUNC_GETLINE):
67249         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
67250         hosts.  Problem reported by Derek Robert Price in
67251         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
67252         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
67253         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
67254
67255 2003-10-21  Paul Eggert  <eggert@twinsun.com>
67256
67257         * lib/getndelim2.c (getndelim2): When size calculation overflows,
67258         ceiling the allocation at NMAX bytes rather than silently
67259         discarding input bytes before NMAX is reached.  This makes
67260         a difference only if NMAX exceeds SIZE_MAX / 2.
67261
67262         * lib/obstack.c: Merge from glibc.
67263         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
67264         Add libc_hidden_def (_obstack_newchunk).
67265         (_obstack_free) [! defined _LIBC]: Remove.
67266         [defined _LIBC]: Make a strong alias from obstack_free, rather than
67267         a clone of the function body.
67268         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
67269         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
67270
67271         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
67272         glibc.
67273         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
67274         arg to memcpy.
67275
67276         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
67277         (obstack_ptr_grow_fast, obstack_int_grow_fast):
67278         Don't use lvalue casts, as GCC plans to remove support for them
67279         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
67280         was also present in the non-GCC version, indicating that this
67281         code had always been buggy and had never been widely used.
67282         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
67283         Use the fast variant of each macro, rather than copying the
67284         definiens of the fast variant; that way, we'll be more likely to
67285         catch future bugs in the fast variants.
67286
67287 2003-10-20  Bruno Haible  <bruno@clisp.org>
67288
67289         * modules/wait-process: New file.
67290         * MODULES.html.sh (func_all_modules): Add wait-process.
67291
67292 2003-10-20  Bruno Haible  <bruno@clisp.org>
67293
67294         * m4/wait-process.m4: New file.
67295
67296 2003-10-20  Bruno Haible  <bruno@clisp.org>
67297
67298         * lib/wait-process.h: New file, from GNU gettext.
67299         * lib/wait-process.c: New file, from GNU gettext.
67300
67301 2003-10-19  Jim Meyering  <jim@meyering.net>
67302
67303         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
67304         HPUX 10.20.
67305
67306 2003-10-18  Karl Berry  <karl@gnu.org>
67307
67308         * config/config.guess: update from config.
67309
67310 2003-10-16  Paul Eggert  <eggert@twinsun.com>
67311
67312         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
67313         (getgroups): First arg is int, not size_t.
67314         Don't let 'free' mangle errno.
67315
67316 2003-10-16  Paul Eggert  <eggert@twinsun.com>
67317
67318         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
67319
67320 2003-10-16  Karl Berry  <karl@gnu.org>
67321
67322         * config/config.{guess,sub}: update from config.
67323
67324 2003-10-16  Jim Meyering  <jim@meyering.net>
67325
67326         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
67327         memcpy.
67328
67329 2003-10-15  Paul Eggert  <eggert@twinsun.com>
67330
67331         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
67332         (SIZE_MAX): Remove.
67333         (new_exclude, add_exclude_file): Initial size no longer needs to
67334         be a power of 2.
67335         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
67336         our own address arithmetic overflow checking.
67337
67338         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
67339         (fnmatch): Do not alloca more than 2000 wide characters;
67340         instead, use malloc for large buffers.
67341         Check for address arithmetic overflow, and return -1
67342         with errno set to ENOMEM in that case.
67343         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
67344         (NEW_PATTERN): Do not alloca more than 8000 bytes;
67345         instead, return -1.  Check for address arithmetic overflow.
67346
67347 2003-10-14  Paul Eggert  <eggert@twinsun.com>
67348
67349         Handle invalid suffixes and overflow independently, so that
67350         callers can treat them independently as needed.  Fix some bugs in
67351         suffix handling, e.g., "100k@" was not diagnosed as an invalid
67352         suffix for a human-readable blocksize.  The major caller-visible
67353         change is the addition of a new
67354         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
67355         that both overflow and suffix chars were found.
67356
67357         * lib/human.c (humblock): Don't check separately for invalid suffix
67358         char; that is xstrtoumax's job (now that its bug is fixed).
67359         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
67360         INTMAX_MAX]: New macros.
67361         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
67362         TYPE_MAXIMUM): New macros.
67363         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
67364         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
67365         if overflow occurs, as it's what __strtol does and it's more useful
67366         in practice.
67367         (__xstrtol): If __strtol reports some error other than ERANGE,
67368         reflect it to the caller as LONGINT_INVALID.  If it reports
67369         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
67370         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
67371         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
67372         value.
67373         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
67374         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
67375         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
67376         [defined UINTMAX_MAX]: New macros.
67377
67378 2003-10-14  Bruno Haible  <bruno@clisp.org>
67379
67380         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
67381
67382 2003-10-14  Bruno Haible  <bruno@clisp.org>
67383
67384         * m4/sig_atomic_t: New file, from GNU gettext.
67385         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
67386
67387 2003-10-14  Bruno Haible  <bruno@clisp.org>
67388
67389         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
67390         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
67391         Also use volatile where needed.
67392
67393 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67394
67395         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
67396         Change maintainer from Bruno Haible to 'all'.
67397
67398 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67399
67400         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
67401
67402 2003-10-12  Paul Eggert  <eggert@twinsun.com>
67403
67404         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
67405         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
67406         and define in terms of the other primitives.
67407         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
67408         (SIZE_MAX): Define if not already defined.
67409         (array_size_overflow): New function.
67410         (xalloc_die): Abort instead of exiting if 'error' returns.
67411         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
67412         (xmalloc, xrealloc): Use them.
67413         (xcalloc): Check for address arithmetic overflow.
67414         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
67415         a bit faster than strcpy.
67416
67417 2003-10-10  Simon Josefsson  <jas@extundo.com>
67418
67419         * modules/argp (Depends-on): Add restrict and strcase.
67420
67421 2003-10-10  Simon Josefsson  <jas@extundo.com>
67422
67423         * m4/argp.m4: Add AC_C_INLINE.
67424
67425 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67426
67427         Merge getpass from libc, plus a few fixes.
67428
67429         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
67430         Include <stdbool.h>.
67431         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
67432         __fsetlocking to empty.
67433         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
67434         do include <bits/libc-lock.h>.
67435         Do not include <fcntl.h>; not needed.
67436         [_LIBC]: Include <wchar.h>.
67437         (NOTCANCEL_MODE): New macro.
67438         (flockfile, funlockfile) [_LIBC]: New macros.
67439         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
67440         [!_LIBC]: New macros.
67441         (call_fclose): New function.
67442         (getpass): Use it.  Save tty stream separately; this simplifies the
67443         code and makes it more reliable if stdin happens to equal stdout.
67444         Invoke __fsetlocking on tty.
67445         Handle thread cancellation if needed.
67446         Namespace cleanup (use __tcgetattr, __getline).
67447         Use bool for Booleans.
67448         [USE_IN_LIBIO]: Handle wide streams.
67449         [!_LIBC]: Unconditionally do the fseek, since we don't know what
67450         stream might go where.
67451
67452         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
67453         doesn't have to include <stdio.h> before us.
67454         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
67455         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
67456         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
67457         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
67458         if not declared, so that we can use getpass.c code from libc without
67459         rewriting it.
67460         (flockfile, ftrylockfile, funlockfile): New macros.
67461
67462 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67463
67464         * modules/getpass: Depend on stdbool.
67465
67466 2003-10-08  Paul Eggert  <eggert@twinsun.com>
67467
67468         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
67469
67470 2003-10-07  Karl Berry  <karl@gnu.org>
67471
67472         * config/config.{guess,sub}: update from config.
67473
67474 2003-10-06  Jim Meyering  <jim@meyering.net>
67475             Bruno Haible  <bruno@clisp.org>
67476
67477         This lets translators provide better translations for the
67478         "Written by ..." part of --version output.
67479         * lib/version-etc.h: Include stdarg.h.
67480         (version_etc_copyright): Declare as readonly.
67481         (version_etc): Make this function variadic with a NULL-terminated list
67482         of author name strings.
67483         (version_etc_va): New declaration.
67484         * lib/version-etc.c: Include stdarg.h, stdlib.h.
67485         (version_etc_copyright): Declare as readonly.
67486         (version_etc_va): New function. Provide a different translatable string
67487         for each possible number of authors < 10. Abbreviate when there are 10
67488         authors or more.
67489         (version_etc): Make this function variadic. Call version_etc_va.
67490         Suggestion from Gary V. Vaughan.
67491
67492         * lib/long-options.h (parse_long_options): Change prototype: the
67493         authors string is moved to the end and becomes variadic.
67494         * lib/long-options.c: Include stdarg.h.
67495         (parse_long_options): Make this function variadic, too.
67496         Call version_etc_va, not version_etc.
67497
67498 2003-10-06  Bruno Haible  <bruno@clisp.org>
67499
67500         * modules/version-etc-2: Remove file.
67501         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
67502
67503 2003-10-06  Bruno Haible  <bruno@clisp.org>
67504
67505         * modules/fatal-signal: New file.
67506         * MODULES.html.sh (func_all_modules): Add fatal-signal.
67507
67508 2003-10-06  Bruno Haible  <bruno@clisp.org>
67509
67510         * m4/fatal-signal.m4: New file.
67511         * m4/signalblocking.m4: New file, from GNU gettext.
67512
67513 2003-10-06  Bruno Haible  <bruno@clisp.org>
67514
67515         * lib/version-etc-2.h: Remove file.
67516         * lib/version-etc-2.c: Remove file.
67517
67518 2003-10-06  Bruno Haible  <bruno@clisp.org>
67519
67520         * lib/fatal-signal.h: New file, from GNU gettext.
67521         * lib/fatal-signal.c: New file, from GNU gettext.
67522
67523 2003-10-05  Paul Eggert  <eggert@twinsun.com>
67524
67525         * README: Rework advice for preventing empty .o files.
67526         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
67527         not <sys/types.h>.
67528
67529 2003-10-04  Karl Berry  <karl@gnu.org>
67530
67531         * lib/argp*: update from libc.
67532
67533 2003-10-04  Karl Berry  <karl@gnu.org>
67534
67535         * config/config.{guess,sub}: update from config.
67536
67537 2003-10-02  Bruno Haible  <bruno@clisp.org>
67538
67539         * modules/lchown (Include): Add lchown.h.
67540         * modules/time_r (Include): Use "..." syntax.
67541         * modules/xgetdomainname (Include): Add xgetdomainname.h.
67542
67543 2003-10-01  Simon Josefsson  <jas@extundo.com>
67544
67545         * MODULES.html.sh (func_all_modules): Move gethostname from section
67546         'based on' to section 'lacking' POSIX:2001.
67547
67548 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
67549
67550         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
67551         to output mode on the same stream.
67552
67553 2003-09-29  Paul Eggert  <eggert@twinsun.com>
67554
67555         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
67556         Fix arg typo in previous patch.
67557
67558 2003-09-28  Jim Meyering  <jim@meyering.net>
67559
67560         * lib/error.c: Correct cpp indentation.
67561
67562 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67563
67564         * modules/free: New file.
67565
67566 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67567
67568         * m4/free.m4: New file.
67569
67570 2003-09-27  Paul Eggert  <eggert@twinsun.com>
67571
67572         * lib/minmax.h (MIN, MAX)
67573         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
67574         Omit the special code that used __typeof__, since we worry that
67575         it could be more trouble than it's worth.  See:
67576         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
67577         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
67578
67579         * lib/free.c: New file.
67580
67581 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
67582
67583         Trivial fixes to Makefile.am parts of module listings.
67584         * modules/strstr: Append strstr.h to lib_SOURCES.
67585         * modules/strcase: Likewise, for strcase.h.
67586
67587 2003-09-27  Karl Berry  <karl@gnu.org>
67588
67589         * config/mkinstalldirs: update from automake.
67590
67591 2003-09-26  Paul Eggert  <eggert@twinsun.com>
67592
67593         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
67594         (error_tail): Do not loop, reallocating temporary buffer, since
67595         the output cannot contain more wide characters than the input
67596         contains bytes, the size must be big enough already.  This avoids
67597         one potential size overflow calculation.  Check for size overflow
67598         when calculating temporary buffer size.  Free temporary buffer
67599         when done, if it was allocated with malloc; this plugs a memory
67600         leak.  Remove casts from void * to pointers, that are no longer
67601         needed now that we're assuming C89 or better.
67602
67603         Merge error changes from glibc.
67604
67605         * lib/error.c, error.h: Update copyright notice header to match glibc.
67606         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
67607         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
67608         Disable cancellation while printing error.
67609         * lib/error.h: Prepend __ to parameter names.
67610
67611 2003-09-26  Jim Meyering  <jim@meyering.net>
67612
67613         * lib/error.c (error_tail): Move some declarations
67614         into inner scope where the local variables are used.
67615
67616 2003-09-26  Bruno Haible  <bruno@clisp.org>
67617
67618         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
67619         stpncpy().
67620         Don't define stpncpy through config.h; it's now done through stpncpy.h.
67621
67622 2003-09-26  Bruno Haible  <bruno@clisp.org>
67623
67624         * lib/stpncpy.h (gnu_stpncpy): New declaration.
67625         (stpncpy): Define as alias for gnu_stpncpy.
67626         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
67627
67628 2003-09-25  Simon Josefsson  <jas@extundo.com>
67629
67630         * lib/xgetdomainname.h: New file.
67631         * lib/xgetdomainname.c: New file.
67632
67633 2003-09-25  Simon Josefsson  <jas@extundo.com>
67634             Bruno Haible  <bruno@clisp.org>
67635
67636         * modules/getdomainname: New file.
67637         * modules/xgetdomainname: New file.
67638         * MODULES.html.sh (func_all_modules): Add getdomainname,
67639         xgetdomainname.
67640
67641 2003-09-25  Simon Josefsson  <jas@extundo.com>
67642             Bruno Haible  <bruno@clisp.org>
67643
67644         * m4/getdomainname.m4: New file.
67645
67646 2003-09-25  Simon Josefsson  <jas@extundo.com>
67647             Bruno Haible  <bruno@clisp.org>
67648
67649         * lib/getdomainname.h: New file.
67650         * lib/getdomainname.c: New file.
67651
67652 2003-09-25  Karl Berry  <karl@gnu.org>
67653
67654         * lib/argp-fmtstream.c, argp-help.c: update from libc.
67655
67656 2003-09-25  Karl Berry  <karl@gnu.org>
67657
67658         * config/install-sh: update from automake.
67659
67660 2003-09-25  Bruno Haible  <bruno@clisp.org>
67661
67662         * modules/version-etc-2: New file, from modules/version-etc with
67663         modifications.
67664         * MODULES.html.sh (func_all_modules): Add version-etc-2.
67665
67666 2003-09-25  Bruno Haible  <bruno@clisp.org>
67667
67668         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
67669         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
67670
67671 2003-09-24  Simon Josefsson  <jas@extundo.com>
67672
67673         * modules/xgethostname: Add xgethostname.h.
67674
67675 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67676
67677         * lib/linebuffer.c (freebuffer): Don't free the argument, just
67678         the buffer associated with the argument.  Bug reported by
67679         Simon Josefsson.
67680
67681 2003-09-24  Paul Eggert  <eggert@twinsun.com>
67682
67683         * README: Document assumptions that 'int' is at least 32 bits
67684         wide, that integer arithmetic is 2's complement without overflow,
67685         that there are no holes in integer values, that adding sizes of
67686         two nonoverlapping objects can't overflow, and that all-bits-zero
67687         yields scalar zero.  Fix spelling and capitalization typos.
67688
67689 2003-09-19  Karl Berry  <karl@gnu.org>
67690
67691         * lib/argp.h: update from libc.
67692
67693 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67694
67695         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
67696         to avoid spurious warnings like "AC_RUN_IFELSE was called before
67697         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
67698
67699 2003-09-17  Paul Eggert  <eggert@twinsun.com>
67700
67701         * gnulib-tool: Use "test -h", not "test -L", for portability
67702         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
67703         (tags_regexp): Remove, since \| doesn't conform to POSIX.
67704         (sed_extract_prog): Issue s commands one-by-one, rather than
67705         using \| in one s command.
67706
67707 2003-09-16  Paul Eggert  <eggert@twinsun.com>
67708
67709         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
67710         input error, instead of returning NULL the next time we are called
67711         (and therefore losing track of errno).
67712
67713 2003-09-16  Bruno Haible  <bruno@clisp.org>
67714
67715         * gnulib-tool (func_create_testdir): Warn about duplicated
67716         dependencies.
67717
67718 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67719
67720         * modules/argmatch, modules/fatal, modules/obstack,
67721         modules/xalloc, modules/xgethostname: Sort dependencies by
67722         importance, not alphabetically.
67723
67724 2003-09-15  Paul Eggert  <eggert@twinsun.com>
67725
67726         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
67727         fails, so that the caller gets the proper errno.
67728
67729         * lib/readutmp.c (read_utmp): Likewise.
67730         Check for fstat error.  Close stream and free storage
67731         when failing.
67732
67733 2003-09-14  Karl Berry  <karl@gnu.org>
67734
67735         * config/srclist.txt (strdup.c): disable for c89 changes.
67736
67737 2003-09-14  Jim Meyering  <jim@meyering.net>
67738
67739         * lib/getloadavg.c: Correct cpp indentation.
67740         * lib/strdup.c: Likewise.
67741         * lib/vasnprintf.c: Likewise.
67742
67743 2003-09-14  Bruno Haible  <bruno@clisp.org>
67744
67745         * modules/fwriteerror: New file.
67746         * MODULES.html.sh (func_all_modules): Add fwriteerror.
67747
67748 2003-09-14  Bruno Haible  <bruno@clisp.org>
67749
67750         * lib/fwriteerror.h: New file.
67751         * lib/fwriteerror.c: New file.
67752
67753 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67754
67755         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
67756         modules/xgethostname, modules/xalloc: Depend on exit.
67757
67758 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67759
67760         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
67761
67762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
67763         and AC_MINIX, too, so that their extensions are available.
67764
67765         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
67766         This macro has been superseded by gl_BACKUPFILE.
67767
67768         More patches to assume C89 or better.
67769
67770         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
67771
67772         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
67773         unconditionally.
67774         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
67775         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
67776         Include <string.h>, <stdlib.h> unconditionally.
67777         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
67778         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
67779         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
67780         headers or for string.h.
67781         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
67782         or strtoul.
67783
67784         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
67785         headers.
67786         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
67787         * m4/userspec.m4 (gl_USERSPEC): Likewise.
67788         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
67789         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
67790         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67791         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
67792         memcpy, memset.
67793         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
67794         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
67795         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
67796         strtol.
67797         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
67798         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
67799         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
67800         strtoul.
67801
67802 2003-09-12  Paul Eggert  <eggert@twinsun.com>
67803
67804         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
67805         * lib/obstack.c [!defined _LIBC]: Likewise.
67806         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
67807         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
67808         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
67809
67810         More changes to assume C89 or better.
67811
67812         * lib/error.c (error_tail): Assume vprintf.
67813
67814         * lib/argmatch.c (getenv): Remove decl.
67815         * lib/progreloc.c (get_full_program_name): Define via prototype.
67816         * lib/setenv.c (clearenv): Likewise.
67817         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
67818         needed.
67819         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
67820         (malloc, memcpy): Remove decls.
67821         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
67822         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
67823         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
67824         (memcpy): Remove macro.
67825         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
67826         (__P): Remove.  All uses removed.
67827         (PTR): Remove.  All uses changed to void *.
67828         (CHAR_BIT, NULL): Remove.
67829         (spaces, zeros, memset_space, memset_zero)
67830         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
67831         Remove.
67832         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
67833         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
67834         Define with prototype.
67835         Remove now-unnecessary prototype decl.
67836         (extra_args_spec): Assume ANSI C.  All uses changed.
67837         (extra_args_spec_iso): Remove.
67838         (my_strftime, emacs_strftimeu): Define via prototype.
67839         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
67840         unconditionally.
67841         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
67842         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
67843         (strtoul, strtol): Remove decls.
67844         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
67845         LONG_MAX): Remove.
67846         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
67847         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
67848         (LOCALE_PARAM_PROTO): New macro.
67849         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
67850         (INTERNAL (strtol), strtol): Define with a prototype.
67851         (PARAMS): Remove.  All uses removed.
67852         * lib/tempname.c: Include <string.h> unconditionally.
67853         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
67854         * lib/xgethostname.c (main): Define with a prototype.
67855         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
67856         Include <stdlib.h> unconditionally.
67857         (calloc, malloc, realloc, free): Remove decls.
67858         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
67859         Include <stdlib.h> unconditionally.  Sort include file names.
67860         (strtod): Remove.
67861         (xstrtod): Define with a prototype.
67862         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
67863         (strtol, strtoul): Remove decls.
67864
67865 2003-09-11  Paul Eggert  <eggert@twinsun.com>
67866
67867         More patches to assume C89 or better.
67868         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
67869         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
67870         string.h, memchr, STDC_HEADERS.
67871
67872 2003-09-11  Paul Eggert  <eggert@twinsun.com>
67873
67874         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
67875         Include <stdlib.h>, <string.h> unconditionally.
67876         Remove now-unnecessary cast to char *.
67877         * lib/strnlen.c: Include <string.h> unconditionally.
67878         * lib/yesno.c (yesno): Define with a prototype.
67879
67880 2003-09-11  Bruno Haible  <bruno@clisp.org>
67881
67882         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
67883
67884 2003-09-10  Jim Meyering  <jim@meyering.net>
67885
67886         * lib/error.c: Correct indentation of cpp directives.
67887
67888 2003-09-10  Bruno Haible  <bruno@clisp.org>
67889
67890         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
67891         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
67892         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
67893         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
67894         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
67895         <stdlib.h> and <string.h> checks.
67896         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
67897         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
67898
67899 2003-09-10  Bruno Haible  <bruno@clisp.org>
67900
67901         * lib/strcspn.c: Include <string.h> unconditionally.
67902         * lib/strpbrk.c: Include <string.h> unconditionally.
67903         * lib/strstr.c: Include <string.h> unconditionally.
67904         * lib/unicodeio.c: Include <string.h> unconditionally.
67905         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
67906         * lib/unsetenv.c: Likewise.
67907         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
67908         * lib/yesno.c: Include <stdlib.h> unconditionally.
67909         (rpmatch): Add prototype.
67910
67911 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67912
67913         More patches to assume C89 or better.
67914         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
67915         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
67916         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
67917         or for string.h.
67918         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
67919         stdlib.h.
67920         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
67921         C headers.
67922         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
67923         string.h.
67924         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
67925         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
67926         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
67927         or for string.h.
67928         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
67929         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
67930         C headers.
67931         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
67932         memcpy.
67933         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
67934         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
67935         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
67936         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
67937         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
67938         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
67939         string.h, free.
67940         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
67941         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
67942         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
67943         C headers, or for string.h.
67944         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
67945         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
67946         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
67947         headers, memory.h, stdlib.h, string.h, strings.h.
67948         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
67949         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
67950         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
67951         strchr.
67952         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
67953         headers, memory.h, string.h.
67954         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
67955         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
67956         free.
67957         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
67958         headers.
67959         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
67960         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
67961         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
67962         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
67963         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
67964
67965 2003-09-09  Paul Eggert  <eggert@twinsun.com>
67966
67967         More K&R removal.
67968
67969         * lib/acosl.c (main): Use a prototype.
67970         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
67971         tanl.c: Likewise.
67972
67973         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
67974
67975         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
67976         (getopt, etopt_long, getopt_long_only, _getopt_internal)
67977         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
67978         with a prototype.
67979         * lib/getopt.c (const): Remove macro.
67980         Include <string.h> unconditionally.
67981         (my_index): Remove; all uses changed to strchr.
67982         (strlen): Remove decl.
67983         (exchange): Remove forward decl; no longer needed.
67984         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
67985         Define with prototype.
67986         * lib/getopt1.c (const): Remove macro.
67987         (getopt_long, getopt_long_only, main): Define with prototype.
67988
67989         * lib/getugroups.c: Include <string.h> unconditionally.
67990
67991         * lib/getusershell.c: Include <stdlib.h> unconditionally.
67992         (getusershell, setusershell, endusershell, readname, main):
67993         Define with prototypes.
67994
67995         * lib/group-member.c: Include group-member.h first.
67996         Include <stdlib.h> unconditionally.
67997
67998         * lib/hard-locale.c: Include hard-locale.h first.
67999         Include <stdlib.h>, <string.h> unconditionally.
68000
68001         * lib/hash.c (free, malloc): Remove decls.
68002         Include <stdlib.h> unconditionally.
68003
68004         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
68005         (getenv): Do not declare.
68006
68007         * lib/idcache.c: Include <string.h> unconditionally.
68008
68009         * lib/long-options.c: Include long-options.h first, to test interface.
68010         Include <stdlib.h> unconditionally.
68011
68012         * lib/makepath.c: Include makepath.h first, to test interface.
68013         Include <stdlib.h> and <string.h> unconditionally.
68014
68015         * lib/linebuffer.c: Include <stdlib.h>.
68016         (free): Remove decl.
68017
68018         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
68019         stddef.h. rpl_malloc returns void *, not char *.
68020         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
68021         prototype.
68022
68023         * lib/md5.h: Include <limits.h> unconditionally.
68024         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
68025         (__P): Remove; all uses removed.
68026         * lib/md5.c: Include "md5.h" first.
68027         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
68028         md5_buffer, md5_process_bytes, md5_process_block):
68029         Define with prototypes.
68030         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
68031         * lib/sha.c: Include "sha.h" first.
68032         Include <stdlib.h>, <string.h> unconditionally.
68033
68034         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
68035         * lib/memcmp.c (__ptr_t): Likewise.
68036         * lib/memrchr.c (__ptr_t): Likewise.
68037         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
68038         Include <string.h> unconditionally.
68039         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
68040         * lib/memchr.c: Include <stdlib.h> unconditionally.
68041         * lib/memchr.c (LONG_MAX): Remove.
68042         * lib/memrchr.c (LONG_MAX): Likewise.
68043         * lib/memchr.c (__memchr): Define via a prototype.
68044         * lib/memrchr.c (__memrchr): Likewise.
68045         * lib/memcmp.c (__P): Remove, and remove all uses.
68046         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
68047         Remove forward decls; no longer needed.
68048         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
68049         Use types required by C89 in prototype.
68050
68051         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
68052         * lib/savedir.c: Likewise.
68053         * lib/mkdir.c (free): Remove decl.
68054         * lib/rmdir.c (rmdir): Define with a prototype.
68055         * lib/savedir.c: Include savedir.h first, to test interface.
68056
68057         * lib/mktime.c (STDC_HEADERS): Remove.
68058         Include <stdlib.h>, <string.h> unconditionally.
68059
68060         * lib/modechange.c: Include <stdlib.h> unconditionally.
68061         (malloc): Remove decl.
68062
68063         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
68064         (free): Remove decl.
68065
68066         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
68067         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
68068         (This type really should be intptr_t, but that's a C99ism.)
68069         (_obstack_memcpy): Remove: all uses changed to memcpy.
68070         Include <string.h> unconditionally.
68071         (struct obstack): Assume __STDC__ for types of members
68072         chunkfun, freefun, extra_arg.
68073         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
68074         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
68075         obstack_begin, obstack_specify_allocation,
68076         obstack_specify_allocation_with_arg, obstack_chunkfun,
68077         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
68078         Remove unprototyped decls and the macros that use them.
68079         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
68080         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
68081         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
68082         (defined __STDC__ && __STDC__)]:
68083         Remove nonprototyped code.
68084         Include <stdlib.h> unconditionally.
68085         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
68086         _obstack_allocated_p, _obstack_free, obstack_free,
68087         _obstack_memory_used, print_and_abort):
68088         Define using prototypes.
68089         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
68090         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
68091         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
68092         obstack_next_free, obstack_object_size, obstack_room) [0]:
68093         Remove unused, unprototyped code.
68094
68095         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
68096
68097         * lib/physmem.c (physmem_total, physmem_available, main): Define
68098         with prototypes.
68099
68100         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
68101         (main): Define with a prototype.
68102
68103         * lib/posixver.c (getenv): Remove decl.
68104
68105         * lib/putenv.c (malloc): Returns void *, not char *.
68106         Include <string.h> unconditionally.
68107         (strchr, memcpy, NULL): Do not define.
68108
68109         * lib/readtokens.c: Include readtokens.h first, to test interface.
68110         Include <stdlib.h>, <string.h> unconditionally.
68111         (init_tokenbuffer): Define with a prototype.
68112
68113         * lib/regex.c (PARAMS): Remove.  All uses removed.
68114         All uses of _RE_ARGS removed, too.
68115         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68116         unconditionally.
68117         (bzero): Assume memset exists.
68118         (memcmp, memcpy, NULL): Remove.
68119         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
68120         char, or assignments to local vars of type signed char.
68121         (init_syntax_once, PREFIX(extract_number_and_incr),
68122         PREFIX(print_partial_compiled_pattern),
68123         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
68124         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
68125         PREFIX(regex_grow_registers), PREFIX(regex_compile),
68126         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
68127         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
68128         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
68129         wcs_compile_range, byte_compile_range, truncate_wchar,
68130         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
68131         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
68132         count_mbs_length, wcs_re_match_2_internal,
68133         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
68134         PREFIX(alt_match_null_string_p),
68135         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
68136         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
68137         regfree, PREFIX(extract_number)): Define with prototype.  Remove
68138         now-unnecessary declaration, if any.
68139         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
68140         regcomp, regexec):
68141         Remove now-unnecessary casts among pointer types.
68142         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
68143
68144         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
68145         (free): Remove decl.
68146
68147         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
68148
68149         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
68150         (free): Remove decl.
68151
68152         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
68153         * lib/xgetcwd.c: Likewise.
68154
68155         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
68156         (free): Remove decl.
68157
68158         * lib/strchrnul.c (strchrnul): Define with a prototype.
68159         Fix bug: c_in was not converted to char before searching.
68160
68161         The following changes are not K&R related:
68162
68163         * lib/group-member.h: Include <sys/types.h>, so that this file is
68164         self-contained.
68165         * lib/makepath.h: Likewise.
68166
68167         * lib/getusershell.c (readname, default_index, line_size, readname):
68168         Use size_t, not int, for sizes.
68169         (readname): If the size overflows, report an error instead of
68170         looping forever.
68171
68172 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68173
68174         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
68175         libc.
68176
68177 2003-09-09  Paul Eggert  <eggert@twinsun.com>
68178
68179         * README: New section: portability guidelines.
68180
68181 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
68182
68183         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
68184         C89 spec.
68185
68186 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
68187
68188         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
68189
68190 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68191
68192         Assume C89 or better; remove K&R cruft.
68193         A few of these changes were first proposed by Derek Robert Price
68194         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
68195
68196         * lib/addext.c: Include <string.h> unconditionally.
68197         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
68198         Don't declare getenv or malloc.
68199
68200         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
68201         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
68202         (NULL): Remove.
68203         (find_stack_direction, alloca): Use prototypes.
68204
68205         * lib/atexit.c (atexit): Define using a prototype.
68206
68207         * lib/basename.c, dirname.c, stripslash.c:
68208         Include <string.h> unconditionally.
68209
68210         * lib/bcopy.c: Include <stddef.h>.
68211         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
68212
68213         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
68214
68215         * lib/error.h (error, error_at_line, error_print_progname)
68216         [! (defined (__STDC__) && __STDC__)]: Remove decls.
68217         * lib/error.c: Include error.h first, to check interface.
68218         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
68219         (VA_START): Remove; all uses changeed to va_start.
68220         (exit, strerror): Remove decls.
68221         (error_print_progname): Prototype uncondionally.
68222         Don't include <errno.h>; no longer needed.
68223         (private_strerror): Remove.
68224         (error_tail): Always define.
68225         (error, error_at_line): Assume C89 or better; always use prototypes.
68226         * lib/fatal.c: Include "fatal.h" first, to test interface.
68227         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
68228         (VA_START): Remove; all uses changed to va_start.
68229         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
68230         this case.
68231         (exit): Remove decl.
68232         (fatal): Prototype unconditionally.  Assume va_start works.
68233         Abort at end, to pacify gcc.
68234
68235         * lib/euidaccess.c (main): Define with a prototype.
68236
68237         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
68238
68239         * lib/exitfail.c: Include <stdlib.h> unconditionally.
68240
68241         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
68242         prototypes.
68243         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
68244         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
68245         (getenv): Remove decl.
68246         (fnmatch): Define using a prototype.
68247         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
68248         (FCT): Define using a prototype.
68249
68250         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
68251
68252         * lib/gethostname.c: Include <stddef.h>.
68253         (gethostname): Define with prototype.  Length is size_t, not int.
68254
68255 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68256
68257         Assume C89 or better; remove K&R cruft.
68258         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
68259         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
68260         string.h, getenv, malloc.
68261         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
68262         headers.
68263         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
68264         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
68265         do not check for strerror.
68266         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
68267         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
68268         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
68269         do not check for doprnt or vprintf.
68270         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
68271         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
68272
68273 2003-09-08  Paul Eggert  <eggert@twinsun.com>
68274
68275         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
68276         getversion.c should have been removed then, but was accidentally
68277         preserved.
68278
68279         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
68280         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
68281
68282 2003-09-08  Karl Berry  <karl@gnu.org>
68283
68284         * config/config.sub, config.guess, srclistvars.sh: update from savannah
68285                 config, forget about prep.
68286
68287         * config/depcomp, missing: update from automake.
68288
68289 2003-09-07  Paul Eggert  <eggert@twinsun.com>
68290
68291         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
68292         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
68293
68294 2003-09-07  Paul Eggert  <eggert@twinsun.com>
68295
68296         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
68297         copy_tm_result.  Bug reported by Simon Josefsson in
68298         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
68299
68300 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68301
68302         * m4/time_r.m4: New file.
68303         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
68304         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
68305         is. Check for timegm declaration.
68306         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
68307         Do not check for gmtime_r.
68308         Replace mktime if __mktime_internal does not exist and if mktime
68309         hasn't been replaced already.
68310
68311 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68312
68313         * lib/time_r.c, lib/time_r.h: New files.
68314
68315         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
68316         __localtime_r.
68317         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
68318         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
68319
68320         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
68321         __gmtime_r.
68322         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
68323         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
68324         Include <time_r.h>.
68325
68326         * lib/timegm.c: Switch to glibc implementation, with the following
68327         changes:
68328         [defined HAVE_CONFIG_H]: Include <config.h>.
68329         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
68330         (__mktime_internal) [!defined _LIBC]: New decl.
68331         (__gmtime_r) [!defined _LIBC]: New macro and function.
68332         (timegm): Use a prototype, since gnulib assumes C89.
68333         Do not bother declaring tmp to be const, as it's not really usefu.
68334         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
68335         (timegm): Declare only if HAVE_DECL_TIMEGM.
68336
68337 2003-09-06  Paul Eggert  <eggert@twinsun.com>
68338
68339         * MODULES.html.sh (func_all_modules): Add time_r.
68340         * modules/time_r: New file.
68341         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
68342         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
68343
68344 2003-09-03  Paul Eggert  <eggert@twinsun.com>
68345
68346         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
68347         Bug reported by Lute Kamstra in
68348         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
68349
68350         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
68351         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
68352         course with correspondingly smaller numbers for tomorrow and
68353         yesterday.  From Tadayoshi Funaba.  Originally installed into
68354         sh-utils on 1999-08-07, but the patch got lost (I guess during the
68355         coreutils merge?).
68356
68357 2003-08-31  Simon Josefsson  <jas@extundo.com>
68358
68359         * modules/timegm: New file.
68360         * MODULES.html.sh (func_all_modules): Add timegm.
68361
68362 2003-08-31  Simon Josefsson  <jas@extundo.com>
68363
68364         * m4/timegm.m4: New file.
68365
68366 2003-08-31  Simon Josefsson  <jas@extundo.com>
68367
68368         * lib/timegm.h: New file.
68369         * lib/timegm.c: New file.  Based on
68370         wget-1.8.2/src/http.c:mktime_from_utc.
68371
68372 2003-08-31  Karl Berry  <karl@gnu.org>
68373
68374         * lib/argp.h: update from libc.
68375
68376 2003-08-28  Bruno Haible  <bruno@clisp.org>
68377
68378         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
68379         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
68380         followed by '#define fnmatch fnmatch_posix' gives an error.
68381
68382 2003-08-28  Bruno Haible  <bruno@clisp.org>
68383
68384         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
68385         warning on QNX, which defines O_BINARY to 000000.
68386
68387 2003-08-27  Jim Meyering  <jim@meyering.net>
68388
68389         * m4/mkstemp.m4: Require that the system mkstemp be able to create
68390         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
68391         would fail after 32.  Reported by Danny Levinson.  Details here:
68392         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
68393
68394 2003-08-24  Bruno Haible  <bruno@clisp.org>
68395
68396         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
68397         MSVC7 <stdio.h> is included later.
68398
68399 2003-08-22  Simon Josefsson  <jas@extundo.com>
68400
68401         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
68402
68403 2003-08-20  Karl Berry  <karl@gnu.org>
68404
68405         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
68406
68407 2003-08-20  Bruno Haible  <bruno@clisp.org>
68408
68409         * modules/progname: New file.
68410         * MODULES.html.sh (func_all_modules): Add progname.
68411
68412 2003-08-20  Bruno Haible  <bruno@clisp.org>
68413
68414         * lib/progname.h: New file, from GNU gettext.
68415         * lib/progname.c: New file, from GNU gettext.
68416         * lib/progreloc.c: New file, from GNU gettext.
68417
68418 2003-08-19  Jim Meyering  <jim@meyering.net>
68419
68420         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
68421         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
68422
68423 2003-08-19  Bruno Haible  <bruno@clisp.org>
68424
68425         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
68426         more.
68427
68428 2003-08-19  Bruno Haible  <bruno@clisp.org>
68429
68430         * lib/xstrdup.c: Assume <string.h> exists.
68431
68432 2003-08-18  Paul Eggert  <eggert@twinsun.com>
68433
68434         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
68435         in makefile rules.
68436
68437 2003-08-18  Jim Meyering  <jim@meyering.net>
68438
68439         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
68440         * m4/lib-ld.m4: Likewise.
68441
68442 2003-08-18  Jim Meyering  <jim@meyering.net>
68443
68444         * lib/setenv.h: Indent nested cpp directive.
68445         * lib/vasnprintf.c: Remove trailing blanks.
68446
68447 2003-08-17  Simon Josefsson  <jas@extundo.com>
68448
68449         * modules/xstrndup: New file.
68450         * MODULES.html.sh (func_all_modules): Add xstrndup.
68451
68452 2003-08-17  Simon Josefsson  <jas@extundo.com>
68453
68454         * modules/argp: Fix autoconf macro name. Add more dependencies.
68455
68456 2003-08-17  Simon Josefsson  <jas@extundo.com>
68457
68458         * m4/xstrndup.m4: New file.
68459
68460 2003-08-17  Simon Josefsson  <jas@extundo.com>
68461
68462         * m4/argp.m4: New file.
68463
68464 2003-08-17  Simon Josefsson  <jas@extundo.com>
68465             Bruno Haible  <bruno@clisp.org>
68466
68467         * lib/xstrndup.h: New file.
68468         * lib/xstrndup.c: New file.
68469
68470 2003-08-17  Bruno Haible  <bruno@clisp.org>
68471
68472         * modules/strndup (Files, Include): Add lib/strndup.h.
68473
68474 2003-08-17  Bruno Haible  <bruno@clisp.org>
68475
68476         * modules/euidaccess (Files): Add lib/euidaccess.h.
68477
68478 2003-08-17  Bruno Haible  <bruno@clisp.org>
68479
68480         * lib/strndup.h: New file.
68481
68482 2003-08-17  Bruno Haible  <bruno@clisp.org>
68483
68484         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
68485         like AC_GNU_SOURCE.
68486         * modules/extensions (configure.ac): Comment out the invocation of
68487         gl_USE_SYSTEM_EXTENSIONS.
68488
68489 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68490
68491         Merges from coreutils, etc.
68492         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
68493         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
68494         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
68495         fixing a typo.
68496         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
68497         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
68498
68499 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68500
68501         Document merge from coreutils.
68502         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
68503         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
68504         * modules/utime: Add m4/utimes-null.m4.
68505
68506 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68507
68508         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
68509         space, undoing this 2003-08-12 change:
68510         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
68511
68512 2003-08-16  Paul Eggert  <eggert@twinsun.com>
68513
68514         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
68515         strtoul.c from libc, undoing this 2003-08-12 change:
68516         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
68517
68518 2003-08-16  Jim Meyering  <jim@meyering.net>
68519
68520         Merges from coreutils.
68521         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
68522         prefix.  Adjust cache variables similarly.  Create 500 rather than
68523         just 300 files, to exercise bug on Darwin6.5, too.
68524         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
68525         $missing_dir.
68526         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
68527         AM_SYS_POSIX_TERMIOS.
68528         Reported by mkc@mathdogs.com.
68529         Also change use of $am_cv_sys_posix_termios
68530         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
68531         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
68532         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
68533         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
68534         in /proc/mounts until it finds one with matching device number.  This
68535         is unnecessary when the FILE argument *is* a mount point.  No stat call
68536         is necessary in that case.  So, disable the statvfs-testing code on
68537         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
68538         as RedHat bug# 84846.
68539         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68540         to 1MB, so as not to render systems with no stack size limit (e.g.,
68541         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68542         Include <unistd.h>.  On some systems,
68543         it is required for the definition of _SC_PAGESIZE.
68544
68545 2003-08-16  Jim Meyering  <jim@meyering.net>
68546
68547         Merge from coreutils.
68548         * lib/xstrtoimax.c: #else #if -> #elif.
68549         * lib/xstrtoumax.c: Likewise.
68550
68551 2003-08-16  Jim Meyering  <jim@meyering.net>
68552
68553         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
68554         * m4/utimes.m4: Removed.
68555         * m4/utimes-null.m4: Renamed from utimes.m4.
68556
68557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
68558         to 1MB, so as not to render systems with no stack size limit (e.g.,
68559         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
68560         Include <unistd.h>.  On some systems,
68561         it is required for the definition of _SC_PAGESIZE.
68562
68563 2003-08-16  Jim Meyering  <jim@meyering.net>
68564         and Paul Eggert  <eggert@cs.ucla.edu>
68565
68566         Merges from coreutils, etc.
68567
68568         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
68569         using the latest version from cvs.  This avoids problems with #line
68570         directives using a vendor (Sun) compiler.
68571         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
68572         Don't set GETGROUPS_LIB here; now it's
68573         done via getgroups.m4's wrapper function.
68574         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
68575         rather than just in sh-util/configure.in, so that the
68576         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
68577         same.
68578         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
68579         AC_FUNC_GETLOADAVG where to find getloadavg.c.
68580         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
68581         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
68582         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
68583         Remove code that is now done by the newly-required macros.
68584         Append $(EXEEXT) to DF_PROG.
68585         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
68586         Do not invoke or require the following here,
68587         since prereq.m4 or some gnulib .m4 now does this for us:
68588         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
68589         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
68590         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
68591         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
68592         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
68593         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
68594         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
68595         AC_FUNC_OBSTACK.
68596         Do not replace the following functions, as this is now the job
68597         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
68598         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
68599         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
68600         atexit getpass, strdup, getpagesize.
68601         Replace 'raise'.
68602         Do not check for the following functions, as this is now the job
68603         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
68604         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
68605         setregid.
68606         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
68607         Check for sys/sysctl.h.
68608         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
68609         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
68610         of checking for ssize_t ourselves.
68611
68612         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
68613         Require every macro that gnulib/modules/* suggests for us.
68614         (jm_PREREQ_ADDEXT): New macro.
68615         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
68616         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
68617
68618         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
68619         (gl_PHYSMEM): Use it.
68620         Also check for `table' function.
68621         Check for new headers and functions.
68622         Add check for sys/sysmp.h.
68623         With suggestions from Kaveh Ghazi.
68624         Ignore headers that are present but cannot be compiled.  This
68625         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
68626         C 5.4.
68627
68628 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68629
68630         Document merge from coreutils.
68631         * modules/userspec: Depend on posixver.
68632         * modules/strftime: Depend on tzset.
68633
68634 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68635
68636         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
68637         rather than tab, after '#' in shell-script copyright notices.
68638         Suggested by Bruno Haible.
68639
68640 2003-08-15  Paul Eggert  <eggert@twinsun.com>
68641
68642         * config/srclist-update: Use three spaces, rather than tab, after '#'
68643         in shell-script copyright notices.  Suggested by Bruno Haible.
68644         Remove unnecessary parenthesization in regular expression.
68645
68646 2003-08-15  Jim Meyering  <jim@meyering.net>
68647
68648         Merge from coreutils.
68649         * lib/xgethostname.c: Include <stdlib.h>.
68650         (xghostname): Don't exit for anything other than memory-related
68651         failure; just return NULL.
68652         * lib/userspec.c: Include "posixver.h".
68653         (parse_user_spec): Accept `.' as a separator only
68654         in pre-POSIX-200112 mode.
68655         * lib/strtoimax.c: Use #elif rather than #else #if.
68656         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
68657         Remove function, now that we can rely on a working tzset function.
68658         [!_LIBC]: Ensure that the required autoconf test has been run.
68659         [!defined _NL_CURRENT && HAVE_STRFTIME]:
68660         Use underlying_strftime for %r.
68661         * lib/sha.c: Merge in some clean-up and optimization changes from
68662         glibc.
68663         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
68664         Ensure that it is a multiple of 64.
68665         Rearrange loop exit tests so as to avoid performing an
68666         additional fread after encountering an error or EOF.
68667         * lib/realloc.c: Update copyright date.
68668
68669 2003-08-15  Jim Meyering  <jim@meyering.net>
68670         and Paul Eggert  <eggert@twinsun.com>
68671
68672         Merge from coreutils.
68673         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
68674         member but strut utmpx does not.  Needed for AIX 4.3.3.
68675         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
68676
68677 2003-08-15  Jim Meyering  <jim@meyering.net>
68678         and Paul Eggert  <eggert@cs.ucla.edu>
68679
68680         Merges from coreutils, etc.
68681         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
68682         Require gl_FUNC_TZSET_CLOBBER.
68683         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
68684         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
68685         members.
68686
68687 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68688
68689         Help the merge from coreutils.
68690         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
68691         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
68692         * m4/tzset.m4: Use it too.
68693
68694 2003-08-14  Paul Eggert  <eggert@twinsun.com>
68695
68696         * modules/tzset: New file.
68697
68698 2003-08-14  Jim Meyering  <jim@meyering.net>
68699
68700         Merges from coreutils.
68701         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
68702         variable names, rather than @FNMATCH_H@.
68703         * modules/alloca: Likewise for $(ALLOCA_H).
68704
68705         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
68706         the three copies of the literal target, `fnmatch.h'.
68707         * modules/alloca (alloca.h): Likewise.
68708
68709 2003-08-14  Jim Meyering  <jim@meyering.net>
68710
68711         Merge from coreutils.
68712         * m4/tzset.m4: New file.
68713         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
68714         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
68715         otherwise, AIX 5.1 systems would end up using the latter.
68716         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
68717         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
68718         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
68719         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
68720
68721 2003-08-14  Jim Meyering  <jim@meyering.net>
68722
68723         Merge from coreutils.
68724         * lib/obstack.h: Whitespace changes.
68725         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
68726         and xcalloc return values.
68727         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
68728         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
68729         hang on OSF/1 5.1 for DIR on both local and remote file systems.
68730         Reported by (and fix confirmed by) Nelson H. F. Beebe.
68731         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
68732         error from mntctl.
68733         Use mntctl's return value to drive the entry-processing loop, since
68734         we can't rely on the value of the vmt_length member in the last
68735         entry.  On some systems doing so could result in exhausting
68736         virtual memory.  Based in part on a patch from Mike Jetzer.
68737
68738 2003-08-14  Jim Meyering  <jim@meyering.net>
68739         and Paul Eggert  <eggert@twinsun.com>
68740
68741         Merges from coreutils, plus other fixes.
68742         * lib/physmem.c: Merge in portability changes from gcc/libiberty
68743         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
68744         for credits and details.  Thanks to Kaveh Ghazi for helping
68745         to keep these files in sync.
68746         (ARRAY_SIZE): Define it.
68747         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
68748         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
68749         (memcasecmp): Don't assume size_t fits in unsigned int.
68750         Remove casts and duplicate code.
68751         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
68752         (memcpy): Remove definition.
68753         Merge in some clean-up and optimization changes from glibc.
68754         [BLOCKSIZE]: Move definition to top of file.
68755         Ensure that it is a multiple of 64.
68756         Rearrange loop exit tests so as to avoid performing an
68757         additional fread after encountering an error or EOF.
68758         * lib/md5.h (md5_uintptr): Define.
68759         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
68760         return to the initial working directory.  Preserve errno
68761         for caller.
68762         * lib/idcache.c: Include "xalloc.h".
68763         (xmalloc, xrealloc): Remove decls.
68764         (getuser): Remove casts no longer required in C89.
68765         * lib/human.c: Include stdio.h, for sprintf.
68766         * lib/group-member.c: Include "xalloc.h".
68767         (xmalloc, xrealloc): Remove decls.
68768         (get_group_info): Remove casts no longer required in C89.
68769         * lib/getusershell.c (readname): Remove casts no longer required in
68770         C89.
68771         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
68772         * lib/getline.c: Whitespace fix, from coreutils.
68773
68774 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68775
68776         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
68777         Check for isascii.
68778
68779         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
68780         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
68781         Undo previous (whitespace-only) change.
68782
68783 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68784
68785         * lib/exclude.c: Include <ctype.h>
68786         (IN_CTYPE_DOMAIN): New macro.
68787         (is_space): New fn.
68788         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
68789         and empty lines.
68790
68791         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
68792         Undo previous (whitespace-only) change.
68793
68794 2003-08-13  Paul Eggert  <eggert@twinsun.com>
68795
68796         * config/srclist-update: Change update back to the old behavior,
68797         leaving whitespace alone.  Use one 'sed' command rather than a
68798         pipeline.
68799         (fixlicense): Now a variable, not a function.
68800         (remove_trailing_blanks): Remove.
68801         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
68802         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
68803         Undo previous (whitespace-only) change.
68804
68805 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68806
68807         Merge from coreutils.
68808         * modules/euidaccess: Add lib_SOURCES, include for new
68809         file euidaccess.h
68810
68811 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68812
68813         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
68814         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
68815         Normalize leading white space and remove trailing white space.
68816
68817         Merge from coreutils
68818         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
68819
68820         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
68821         0.12.1.  These files are now being upgraded automatically by
68822         ../config/srclist-update.
68823
68824 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68825
68826         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
68827         Normalize leading white space and remove trailing white space.
68828         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
68829         notice, as per ../config/srclist-update.
68830
68831         Merge from coreutils.
68832         * lib/euidaccess.h: New file.
68833         * lib/euidaccess.c: Include it.
68834         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
68835         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
68836         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
68837
68838 2003-08-12  Paul Eggert  <eggert@twinsun.com>
68839
68840         * config/srclist-update: Add copyright notice.
68841         (remove_id_lines, remove_trailing_blanks): New constants.
68842         (fixfile): Use them to normalize spacing a bit in copied files.
68843         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
68844         Normalize leading white space and remove trailing white space.
68845
68846         * config/texinfo.tex: Sync with texinfo.
68847
68848         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
68849         strtoul.c from libc, to merge coreutils whitespace changes.
68850
68851         * config/srclist.txt: Get the following m4 files from gettext:
68852         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
68853         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
68854         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
68855         wint_t.m4.
68856
68857 2003-08-12  Karl Berry  <karl@gnu.org>
68858
68859         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
68860         been made.
68861
68862 2003-08-11  Paul Eggert  <eggert@twinsun.com>
68863
68864         * modules/gnu-source, m4/gnu-source.m4:
68865         Remove; we're assuming Autoconf 2.54 or later now.
68866         Suggested by Bruno Haible.
68867         * MODULES.html.sh (func_all_modules): Remove gnu-source.
68868
68869 2003-08-11  Bruno Haible  <bruno@clisp.org>
68870
68871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
68872
68873 2003-08-11  Bruno Haible  <bruno@clisp.org>
68874
68875         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
68876         (vasnprintf): Use it instead of wcslen.
68877
68878 2003-08-11  Bruno Haible  <bruno@clisp.org>
68879
68880         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
68881         value to ensure that _Bool promotes to int. Use #define for _Bool when
68882         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
68883
68884 2003-08-10  Karl Berry  <karl@gnu.org>
68885
68886         * lib/regex.h: update from libc (whitespace fix).
68887
68888 2003-08-09  Paul Eggert  <eggert@twinsun.com>
68889
68890         Merge some files from coreutils.  These changes were
68891         originally made by Jim Meyering.
68892         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
68893         many older Unixes require this.
68894         * lib/alloca.c (alloca): Remove cast to argument of free;
68895         no longer needed in C89.
68896         * lib/alloca_.h, regex.h: Fix white space to match
68897         what GNU indent does.
68898
68899 2003-08-09  Paul Eggert  <eggert@twinsun.com>
68900
68901         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
68902         apparently Emacs's Unicode mode got confused before my 2003-08-05
68903         checkin.
68904
68905 2003-08-08  Paul Eggert  <eggert@twinsun.com>
68906
68907         * m4/extensions.m4: New file.
68908         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
68909         Require gl_USE_SYSTEM_EXTENSIONS.
68910         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
68911         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
68912
68913 2003-08-08  Paul Eggert  <eggert@twinsun.com>
68914
68915         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
68916         * modules/extensions, modules/gnu-source: New files.
68917         * modules/timespec, modules/unlocked-io: Depend on extensions.
68918
68919 2003-08-07  Paul Eggert  <eggert@twinsun.com>
68920
68921         * modules/restrict: New file.
68922         * MODULES.html.sh (func_all_modules): Add restrict.
68923         * modules/regex: Depend on restrict.
68924
68925 2003-08-07  Paul Eggert  <eggert@twinsun.com>
68926
68927         * m4/restrict.m4: New file.
68928         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
68929
68930 2003-08-07  Bruno Haible  <bruno@clisp.org>
68931
68932         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
68933         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
68934
68935 2003-08-07  Bruno Haible  <bruno@clisp.org>
68936
68937         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
68938         makes the module 'getndelim2' compatible with the module 'getline'.
68939
68940 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68941
68942         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
68943         byte with "\201" to avoid glitches when editing that source file
68944         with multi-gnome-terminal.
68945
68946 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68947
68948         * lib/bumpalloc.h: Remove.
68949
68950 2003-08-05  Paul Eggert  <eggert@twinsun.com>
68951
68952         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
68953         * modules/bumpalloc: Remove.
68954
68955 2003-08-04  Paul Eggert  <eggert@twinsun.com>
68956
68957         * lib/getloadavg.c: Change copyright notice and spacing to conform to
68958         GNU coding style.
68959
68960         Merge from coreutils.
68961         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
68962         1. From glibc.
68963         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
68964         from Karl Berry, implemented by Jim Meyering.
68965         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
68966         from Dmitry V. Levin.
68967         Remove anachronistic cast of xrealloc.
68968         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
68969         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
68970         type. Otherwise, it wouldn't compile with at least /bin/cc on
68971         ymp-cray-unicos9.0.2.X.
68972         Combine two mostly-identical uses of alloca into one.
68973         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
68974
68975 2003-08-04  Dave Love  <d.love@dl.ac.uk>
68976
68977         [From Emacs.]
68978
68979         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
68980         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
68981         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
68982         obsolete NLIST_NAME_UNION.
68983         [__GNU__]: Undef BSD and FSCALE.
68984         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
68985
68986 2003-08-03  Paul Eggert  <eggert@twinsun.com>
68987
68988         * lib/stdbool_.h (_Bool): Make it signed char, instead of
68989         an enum type, so that it's guaranteed to promote to int.  See:
68990         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
68991
68992 2003-08-03  Karl Berry  <karl@gnu.org>
68993
68994         * config/depcomp: update from automake.
68995
68996 2003-07-31  Paul Eggert  <eggert@twinsun.com>
68997
68998         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
68999         (strerror): Don't assume that a printable int fits in 14 bytes.
69000
69001 2003-07-31  Bruno Haible  <bruno@clisp.org>
69002
69003         * modules/getpass-gnu: New file.
69004         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
69005
69006 2003-07-31  Bruno Haible  <bruno@clisp.org>
69007
69008         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
69009
69010 2003-07-24  Karl Berry  <karl@gnu.org>
69011
69012         * config/missing: update from automake.
69013
69014 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
69015             Bruno Haible  <bruno@clisp.org>
69016
69017         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
69018         * lib/getline.c (getline, getdelim): Likewise.
69019         Remove _GNU_SOURCE define; now it's defined in config.h through
69020         m4/getline.m4.
69021
69022 2003-07-23  Karl Berry  <karl@gnu.org>
69023
69024         * config/config.sub: update from prep.
69025
69026 2003-07-22  Paul Eggert  <eggert@twinsun.com>
69027
69028         * modules/xalloc (Depends-on): Add exitfail.
69029         * modules/xmemcoll: Likewise.
69030
69031 2003-07-22  Paul Eggert  <eggert@twinsun.com>
69032
69033         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
69034         over-parenthesization in macros.
69035
69036         Sync with coreutils.
69037
69038         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
69039         required by C99.
69040
69041         Use `exit_failure' for xalloc and xmemcoll instead of their own
69042         private exit-failure variables.
69043         * lib/xalloc.h (xalloc_exit_failure): Remove.
69044         * lib/xmalloc.c: Likewise.  Include exitfail.h.
69045         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
69046         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
69047         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
69048         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
69049
69050 2003-07-20  Jim Meyering  <jim@meyering.net>
69051
69052         * modules/closeout (Depends-on): Add exitfail.
69053         Suggestion from Bruno Haible.
69054
69055 2003-07-19  Karl Berry  <karl@gnu.org>
69056
69057         * config/config.sub: update from prep.
69058
69059 2003-07-18  Paul Eggert  <eggert@twinsun.com>
69060
69061         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
69062         Remove.
69063         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
69064         to test that it can stand by itself.  Include "exitfail.h".
69065         Clients should set exit_failure instead.
69066         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
69067
69068 2003-07-18  Bruno Haible  <bruno@clisp.org>
69069
69070         * modules/getndelim2: New file.
69071         * modules/getline: Share files with module getndelim2.
69072         * modules/getnline: Depend on getndelim2 instead of sharing files with
69073         it. Add getnline.c to lib_SOURCES.
69074         * MODULES.html.sh (func_all_modules): Add getndelim2.
69075
69076 2003-07-18  Bruno Haible  <bruno@clisp.org>
69077
69078         * m4/getndelim2.m4: New file.
69079         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
69080         invoke gl_PREREQ_GETNDELIM2.
69081         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
69082         gl_PREREQ_GETNDELIM2.
69083         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
69084         gl_GETNDELIM2.
69085
69086 2003-07-18  Bruno Haible  <bruno@clisp.org>
69087
69088         * lib/getndelim2.h: New file.
69089         * lib/getndelim2.c: Make into a module of its own. Include config.h,
69090         getndelim2.h.
69091         (getndelim2): Make non-static. Change return type to ssize_t.
69092         * lib/getline.h: Change argument names.
69093         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
69094         * lib/getnline.c: Include getndelim2.h.
69095
69096 2003-07-18  Andreas Schwab  <schwab@suse.de>
69097
69098         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
69099
69100 2003-07-17  Karl Berry  <karl@gnu.org>
69101
69102         * config/config.sub: update from prep.
69103
69104 2003-07-17  Bruno Haible  <bruno@clisp.org>
69105
69106         * modules/getnline: New file.
69107         * modules/getline: Add lib/getndelim2.c to source file list.
69108         * MODULES.html.sh (func_all_modules): Add getnline.
69109
69110 2003-07-17  Bruno Haible  <bruno@clisp.org>
69111
69112         * m4/getnline.m4: New file.
69113
69114 2003-07-17  Bruno Haible  <bruno@clisp.org>
69115
69116         * m4/Makefile.am.in: Remove file.
69117         * m4/Makefile.am: Remove file.
69118         * m4/Makefile.in: Remove file.
69119
69120 2003-07-17  Bruno Haible  <bruno@clisp.org>
69121
69122         * lib/getnline.h: New file.
69123         * lib/getnline.c: New file.
69124         * lib/getndelim2.c: New file, extracted from getline.c.
69125         (getndelim2): Renamed from getdelim2, with added nmax argument.
69126         * lib/getline.c: Include getndelim2.c.
69127         (getdelim2): Moved out to getndelim2.c.
69128         (getline, getdelim): Update.
69129
69130 2003-07-17  Bruno Haible  <bruno@clisp.org>
69131
69132         * lib/Makefile.am: Remove file.
69133         * lib/Makefile.in: Remove file.
69134
69135 2003-07-17  Bruno Haible  <bruno@clisp.org>
69136
69137         * configure.in: Remove file.
69138         * Makefile.in: Remove file.
69139
69140 2003-07-17  Bruno Haible  <bruno@clisp.org>
69141
69142         * MODULES.html.sh: Put the </BODY> right before </HTML>.
69143
69144 2003-07-16  Karl Berry  <karl@gnu.org>
69145
69146         * config/srclist-update: was running fixlicense twice, which caused
69147                 texinfo.tex to be nullified for some reason.  Simplify,
69148                 $gplsrc is no longer needed as far as I can see?
69149
69150 2003-07-16  Jim Meyering  <jim@meyering.net>
69151
69152         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
69153
69154 2003-07-15  Paul Eggert  <eggert@twinsun.com>
69155
69156         * config/srclist.txt: Get the following files from gettext-runtime/intl
69157         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
69158         ref-del.sin.  From Bruno Haible.
69159         * config/srclist-update (fixfile): Change grep pattern again, since the
69160         previous fix didn't work (there was another trailing $).  Use
69161         '[$]' to escape the $s.
69162
69163 2003-07-15  Karl Berry  <karl@gnu.org>
69164
69165         * lib/vasnprintf.c: update from gettext.
69166
69167 2003-07-15  Karl Berry  <karl@gnu.org>
69168
69169         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
69170         gets expanded when surrounded by '$'.
69171
69172 2003-07-15  Jim Meyering  <jim@meyering.net>
69173
69174         * modules/save-cwd: Don't depend on error.  From Derek Price.
69175
69176 2003-07-15  Jim Meyering  <jim@meyering.net>
69177
69178         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
69179
69180 2003-07-14  Simon Josefsson  <jas@extundo.com>
69181
69182         * modules/mempcpy: New file.
69183         * MODULES.html.sh (func_all_modules): Add mempcpy.
69184
69185 2003-07-14  Simon Josefsson  <jas@extundo.com>
69186
69187         * m4/mempcpy.m4: New file.
69188
69189 2003-07-14  Simon Josefsson  <jas@extundo.com>
69190
69191         * lib/mempcpy.h: New file.
69192         * lib/mempcpy.c: New file.
69193
69194 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69195
69196         * modules/getdate, modules/posixtm: Depend on mktime.
69197
69198 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69199
69200         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
69201         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
69202         unicodeio.c, unicodeio.h, unlocked-io.h:
69203         Switch from LGPL to GPL.
69204
69205 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69206
69207         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
69208         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
69209         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
69210         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
69211         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
69212         updated automatically by ../config/srclist-update.  This changes
69213         their license from LPGL to GPL.
69214
69215 2003-07-14  Paul Eggert  <eggert@twinsun.com>
69216
69217         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
69218         assumed to refer to the root of the most recent stable gettext version.
69219         * config/srclistvars.sh: Add defaults for eggert.
69220         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
69221         Match "This program" as well as "The program".  This is needed
69222         for gettext.
69223
69224 2003-07-14  Jim Meyering  <jim@meyering.net>
69225
69226         Don't emit diagnostics.  Let callers do that.
69227         * lib/save-cwd.c: Don't include "error.h".
69228         (save_cwd): Don't call error.  Ensure that errno is valid
69229         when returning nonzero.
69230
69231         * lib/save-cwd.h (restore_cwd): Update prototype.
69232         * lib/save-cwd.c (restore_cwd): Remove two parameters.
69233         Simplify.  Don't call error upon failure.  Let callers do that.
69234         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
69235         when auditing is enabled.  But don't bother updating the #if.
69236
69237 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
69238
69239         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
69240         it breaks C++ compilation.
69241         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
69242
69243 2003-07-10  Simon Josefsson  <jas@extundo.com>
69244
69245         * modules/strchrnul (Makefile.am): Add strchrnul.h.
69246
69247 2003-07-10  Jim Meyering  <jim@meyering.net>
69248
69249         * m4/clock_time.m4: Remove trailing blank.
69250         * m4/intmax_t.m4: Likewise.
69251
69252 2003-07-10  Jim Meyering  <jim@meyering.net>
69253
69254         * lib/vasnprintf.c: Remove trailing blanks.
69255         Make cpp indentation consistent.
69256
69257 2003-07-09  Paul Eggert  <eggert@twinsun.com>
69258
69259         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
69260         posixver.c, strftime.c, strnlen.c, strverscmp.c:
69261         Switch from LGPL to GPL.
69262
69263 2003-07-09  Paul Eggert  <eggert@twinsun.com>
69264
69265         * config/srclist.txt: Sort sublists.  Add
69266         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
69267         that differ from gnulib for one reason or another; we'd like this list
69268         to be smaller but for now let's document what we have.
69269
69270 2003-07-08  Paul Eggert  <eggert@twinsun.com>
69271
69272         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
69273         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
69274         and sweeter "eval x=$x".
69275         * config/srclist.txt: Get lib/argp* from glibc.
69276
69277 2003-07-07  Paul Eggert  <eggert@twinsun.com>
69278
69279         * lib/mktime.c: Fix some boundary cases and remove need for floating
69280         point.
69281
69282         Issue a compile-time diagnostic if time_t is floating point, or if
69283         two's complement arithmetic is not in effect, or if arithmetic
69284         right shift does not propagate the sign.  These assumptions were
69285         all in the original code but they weren't checked.
69286
69287         (TIME_T_MIDPOINT, verify): New macros.
69288         (__isleap): Remove; it has integer overflow problems.
69289         (leapyear): New function, without those problems.
69290         (ydhms_tm_diff): Remove; splitting into two parts.
69291         (ydhms_diff): New function, containing the arithmetic part of
69292         the old ydhms_tm_diff function.  Issue a compile-time
69293         diagnostic if we are not using C99 integer division.
69294         Avoid casts when possible.
69295         (guess_time_tm): New function, containing the checking part of
69296         the old ydhms_tm_diff function.  Return the new value, rather than
69297         the difference between it and the old.  Accept a new argument T
69298         so that *T specifies the old value.  Check for overflow in the result.
69299
69300         (__mktime_internal): Use a time_t offset, not a long int offset.
69301         This undoes the 2003-06-04 change, which is no longer needed now
69302         that we have better overflow checking.
69303         (localtime_offset): Likewise.
69304
69305         (__mktime_internal): Avoid harmful overflow on hosts where time_t
69306         and long are 64-bit but int is only 32-bit.
69307         (ydhms_diff): Use long int to store year1 and yday1.
69308         Issue a compile-time diagnostic if long int is not wide enough.
69309
69310         (__mktime_internal): Use long int to store adjusted year and yday.
69311         Use plain C rather than preprocessor commands, if that doesn't
69312         affect efficiency.
69313         Check for overflow (and try to repair) after each probe
69314         rather than checking only at the very end.  This avoids some bugs
69315         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
69316         does not equal GMT offset at maximum time).
69317         Use integer to check for overflow rather than floating point; this
69318         is more portable to non-IEEE hosts, and is a tad faster.
69319         When we detect that we are oscillating between two values,
69320         don't check whether tm_isdst has the requested value, since
69321         we already know the answer.  When tm_isdst has the wrong value,
69322         use a different heuristic to find the right one, based on the
69323         extreme values actually observed in practice in tz2003a,
69324         rather than the (overly optimistic) "previous 3 calendar quarters".
69325
69326         (not_equal_tm, print_tm, check_result): Use "const T" rather than
69327         "T const" to accommodate glibc style.
69328         (check_result): Use less-confusing report format.  "long" -> "long int.
69329         (main): Likewise.
69330         Don't loop if the iteration overflows time_t.
69331         Allow a negative step in the iteration.
69332
69333 2003-07-06  Karl Berry  <karl@gnu.org>
69334
69335         * config/depcomp: update from automake.
69336         * config/config.sub: update from prep.
69337
69338 2003-07-03  Karl Berry  <karl@gnu.org>
69339
69340         * config/config.guess: update from prep.
69341
69342 2003-07-01  Paul Eggert  <eggert@twinsun.com>
69343
69344         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
69345         xreadlink.c now includes it unconditionally.
69346
69347 2003-07-01  Paul Eggert  <eggert@twinsun.com>
69348
69349         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
69350         having it depend on HAVE_SYS_TYPES_H.
69351
69352 2003-07-01  Bruno Haible  <bruno@clisp.org>
69353
69354         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
69355         <sys/types.h> should be sufficient.
69356         Reported by Paul Eggert.
69357
69358 2003-06-26  Karl Berry  <karl@gnu.org>
69359
69360         * config/depcomp: update from automake.
69361
69362 2003-06-26  Bruno Haible  <bruno@clisp.org>
69363
69364         * modules/human: Depend on module stdbool.
69365
69366 2003-06-25  Bruno Haible  <bruno@clisp.org>
69367
69368         * modules/readlink: New file.
69369         * modules/xreadlink: Depend on it.
69370         * MODULES.html.sh (func_all_modules): Add readlink.
69371
69372 2003-06-25  Bruno Haible  <bruno@clisp.org>
69373
69374         * m4/readlink.m4: New file.
69375
69376 2003-06-25  Bruno Haible  <bruno@clisp.org>
69377
69378         * lib/readlink.c: New file.
69379
69380 2003-06-22  Karl Berry  <karl@gnu.org>
69381
69382         * config/srclist.txt: update mkinstalldirs from automake.
69383         * config/mkinstalldirs: update.
69384
69385 2003-06-22  Bruno Haible  <bruno@clisp.org>
69386
69387         Portability to mingw32.
69388         * m4/ssize_t.m4: New file, from GNU gettext.
69389         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
69390         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
69391
69392 2003-06-22  Bruno Haible  <bruno@clisp.org>
69393
69394         * modules/safe-read: Add m4/ssize_t.m4.
69395         * modules/xreadlink: Add m4/ssize_t.m4.
69396
69397 2003-06-20  Bruno Haible  <bruno@clisp.org>
69398
69399         Assume C89, so PARAMS isn't needed.
69400         * lib/unicodeio.h (PARAMS): Remove.
69401         * lib/unicodeio.c: Don't use PARAMS.
69402
69403 2003-06-18  Karl Berry  <karl@gnu.org>
69404
69405         * config/config.{guess,sub}: update from prep.
69406
69407 2003-06-18  Jim Meyering  <jim@meyering.net>
69408
69409         Merge changes from coreutils.
69410         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
69411         Remove explicit declarations of xmalloc and realloc.
69412         Include xalloc.h.
69413         (read_utmp): Remove anachronistic cast of xmalloc.
69414
69415 2003-06-17  Paul Eggert  <eggert@twinsun.com>
69416
69417         Assume C89, so PARAMS isn't needed.
69418         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
69419         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
69420         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
69421         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
69422         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
69423         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
69424         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
69425         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
69426         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
69427         lib/xstrtod.h, lib/xstrtol.h: Likewise.
69428         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
69429         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
69430         no longer needed. Anyway, config.h should always be included before any
69431         other file.
69432
69433 2003-06-11  Simon Josefsson  <jas@extundo.com>
69434
69435         * modules/sysexits: New file.
69436         * MODULES.html.sh (func_all_modules): Add sysexits.
69437
69438 2003-06-11  Simon Josefsson  <jas@extundo.com>
69439
69440         * lib/sysexit_.h: New file.
69441
69442 2003-06-11  Derek Price  <derek@ximbiot.com>
69443
69444         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
69445         necessary.
69446
69447 2003-06-11  Bruno Haible  <bruno@clisp.org>
69448
69449         * m4/sysexits.m4: New file.
69450
69451 2003-06-10  Simon Josefsson  <jas@extundo.com>
69452
69453         * lib/argp.h: New file, from glibc.
69454         * lib/argp-ba.c: New file, from glibc.
69455         * lib/argp-eexst.c: New file, from glibc.
69456         * lib/argp-fmtstream.c: New file, from glibc.
69457         * lib/argp-fmtstream.h: New file, from glibc.
69458         * lib/argp-fs-xinl.c: New file, from glibc.
69459         * lib/argp-help.c: New file, from glibc.
69460         * lib/argp-namefrob.h: New file, from glibc.
69461         * lib/argp-parse.c: New file, from glibc.
69462         * lib/argp-pv.c: New file, from glibc.
69463         * lib/argp-pvh.c: New file, from glibc.
69464         * lib/argp-xinl.c: New file, from glibc.
69465
69466 2003-06-10  Simon Josefsson  <jas@extundo.com>
69467
69468         * modules/strchrnul: New file.
69469
69470 2003-06-10  Simon Josefsson  <jas@extundo.com>
69471
69472         * modules/argp: New file.
69473
69474 2003-06-10  Simon Josefsson  <jas@extundo.com>
69475
69476         * m4/strchrnul.m4: New file.
69477
69478 2003-06-10  Simon Josefsson  <jas@extundo.com>
69479
69480         * lib/strchrnul.h: New file.
69481         * lib/strchrnul.c: New file.
69482
69483 2003-06-10  Bruno Haible  <bruno@clisp.org>
69484
69485         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
69486
69487 2003-06-07  Karl Berry  <karl@gnu.org>
69488
69489         * config/config.{guess,sub}: update from prep.
69490
69491 2003-06-07  Jim Meyering  <jim@meyering.net>
69492
69493         * modules/strtod: Use $(...) notation, not @...@ for
69494         AC_REPLACE'd variables.
69495         * modules/localcharset: Likewise.
69496
69497 2003-06-07  Jim Meyering  <jim@meyering.net>
69498
69499         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
69500         in place of my name in the copyright comment.
69501         Remove definition and uses of __P.
69502
69503         From coreutils.
69504         * lib/stat.c: Don't declare xmalloc explicitly.
69505         Instead, include "xalloc.h".
69506         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
69507         xrealloc, and xcalloc return values.
69508         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
69509         Improve comment.
69510         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
69511
69512 2003-06-07  Bruno Haible  <bruno@clisp.org>
69513
69514         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
69515         avoid AC_CONFIG_LINKS.
69516         * modules/fnmatch (Makefile.am): Use explicit creation rule for
69517         fnmatch.h, to avoid AC_CONFIG_LINKS.
69518         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
69519
69520 2003-06-07  Bruno Haible  <bruno@clisp.org>
69521
69522         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
69523         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
69524         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
69525         directory.
69526         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
69527         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
69528         directory.
69529
69530 2003-06-06  Jim Meyering  <jim@meyering.net>
69531
69532         Merge from coreutils.
69533         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
69534         Consolidate declarations and initializations of *_base* locals.
69535
69536         Merge from coreutils.
69537         This avoids a core dump on systems without GNU putenv,
69538         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
69539         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
69540         (unsetenv): New static function, from GNU libc.
69541         (rpl_putenv): Use it.
69542
69543         * lib/modechange.c: Remove trailing blanks.
69544
69545         Merge from coreutils.
69546         * lib/fsusage.c: Remove declaration of statfs.
69547         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
69548
69549         * lib/posixtm.c: Include <stdbool.h> unconditionally.
69550
69551 2003-06-06  Jim Meyering  <jim@meyering.net>
69552
69553         * lib/stdbool_.h: Renamed from stdbool.h.in.
69554
69555 2003-06-06  Jim Meyering  <jim@meyering.net>
69556             Bruno Haible  <bruno@clisp.org>
69557
69558         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
69559         Adjust Makefile.am snippet not to redirect directly to target.
69560         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
69561
69562 2003-06-05  Paul Eggert  <eggert@twinsun.com>
69563
69564         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
69565         mismatch, look in future quarters as well as past.  This fixes a
69566         bug when processing fall-backwards gaps immediately after a long
69567         period of daylight-saving time.
69568
69569         * lib/mktime.c: Assume freestanding C89 or better.
69570         (HAVE_LIMITS_H): Remove.  Assume it's 1.
69571         (__P): Remove; not used.
69572         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
69573         (mktime, not_equal_tm, print_tm, check_result,
69574         main): Use prototypes.  Use const * where appropriate.
69575         (main): Fix typo in testing code that uncovered by above changes.
69576         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
69577
69578 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69579
69580         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
69581         locale.h, localeconv.  This merges changes from coreutils.
69582
69583         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
69584         It can be removed after the next Autoconf is released.
69585         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
69586         needed.
69587
69588 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69589
69590         * lib/mktime.c: Fix Debian bug 177940
69591         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
69592         (localtime_offset): Now long int, not time_t, because we want it
69593         to be guaranteed to be signed.  All uses changed.
69594         (__mktime_internal): If overflow would occur when adding offset,
69595         don't add it.
69596
69597         Merge 'human' changes from coreutils.  Rewrite to support
69598         locale-specific notations like thousands separators.
69599         * lib/human.c: Simplify authorship notice.
69600         Include human.h immediately after config.h.
69601         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
69602         <limits.h>: Do not include, since human.h does.
69603         (SIZE_MAX, UINTMAX_MAX): New macros.
69604         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
69605         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
69606         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
69607         (power_letter): Renamed from suffixes.
69608         (generate_suffix_backwards): Remove.
69609         (adjust_value): Now takes int style (because of human.h changes)
69610         and long double value (for greater precision on some platforms).
69611         (group_number): New function.
69612         (human_readable): Use it.  Use integer options, not enum.
69613         Put the options before the sizes in the arg list.
69614         Support all the new options.
69615         The old human_readable function has been removed;
69616         use inttostr.h instead.
69617         (human_readable, default_block_size, humblock):
69618         Use uintmax_t, not int, for block sizes.
69619         (human_readable_inexact, block_size_types): Remove.
69620         (block_size_opts): New constant.
69621         (human_options): Renamed from human_block_size, with new signature
69622         that allows block sizes up to UINTMAX_MAX.  All callers changed.
69623         * lib/human.h: Add copyright and authorship notice.
69624         Include <limits.h> and <stdbool.h> unconditionally.
69625         (PARAMS): Remove.  All uses removed.
69626         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
69627         (enum human_inexact_style): Remove tag; now a nameless enum.
69628         (human_floor, human_ceiling, human_round_to_even): Now have
69629         values 2, 0, 1 rather than -1, 1, 0.
69630         (human_group_digits, human_suppress_point_zero, human_autoscale,
69631         human_base_1024, human_SI, human_B): New constants.
69632         (human_readable_inexact, human_block_size): Remove.
69633         (human_readable): Size args are now uintmax_t, not int.
69634         (human_options): New decl.
69635
69636         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
69637         unnecessary now that we assume C89 or better.  This change
69638         imported from coreutils.
69639
69640         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69641         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
69642         in the 2003-05-30 sync from glibc.
69643
69644         .h files should stand alone, but we shouldn't include <sys/types.h>
69645         if we can get away with just <stddef.h>.
69646
69647         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
69648         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
69649         rather than <sys/types.h>, as we merely need size_t.
69650         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
69651         to get size_t.
69652         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
69653         Include <stdio.h>, to get FILE.
69654         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
69655         memcasecmp.h has included <stddef.h> and all we need is size_t.
69656         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
69657         our interface, instead of including <sys/types.h>
69658
69659 2003-06-04  Paul Eggert  <eggert@twinsun.com>
69660
69661         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
69662         now, as glibc mktime is buggy on non-glibc systems.
69663
69664 2003-06-03  Karl Berry  <karl@gnu.org>
69665
69666         * config/config.sub: update from prep.
69667
69668 2003-06-02  Paul Eggert  <eggert@twinsun.com>
69669
69670         [from coreutils]
69671         Fix some minor time-related bugs with POSIX time arguments.
69672         Some valid time stamps were being rejected (notably -1, and
69673         time stamps before 1900 on 64-bit hosts).  And some invalid
69674         time stamps were being accepted, e.g. September 31.
69675
69676         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
69677         that we can return (time_t) -1 successfully.
69678         * lib/posixtm.c: Likewise.
69679         [HAVE_STDBOOL_H]: Include <stdbool.h>.
69680         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
69681         (t): Remove static var.
69682         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
69683         of static var.  All uses changed.
69684         (year): Do not reject years before 1900; they can occur with
69685         64-bit time_t.
69686         (posix_time_parse): Do not check for out-of-range components;
69687         that is now the caller's responsibility, since our checks were
69688         only approximations.
69689         (posixtime): Use mktime to check for out-of-range components,
69690         since it knows them exactly.
69691         If mktime returns (time_t) -1, check whether an error actually occurred
69692         by invoking localtime on -1.
69693         (main) [TEST_POSIXTIME]: Check for input data errors, and report
69694         posixtime failures better.
69695         Improve the test data (in comments only).
69696
69697 2003-06-02  Karl Berry  <karl@gnu.org>
69698
69699         * config/mkinstalldirs (version): new variable.
69700         (--version): new option.
69701         (usage): improve message.
69702
69703 2003-05-30  Karl Berry  <karl@gnu.org>
69704
69705         * lib/mktime.c: update from libc.
69706
69707 2003-05-30  Bruno Haible  <bruno@clisp.org>
69708
69709         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
69710         * config/config.rpath: Upgrade to gettext-0.12.1.
69711
69712 2003-05-30  Bruno Haible  <bruno@clisp.org>
69713
69714         * m4/gettext.m4: Upgrade to gettext-0.12.1.
69715         * m4/nls.m4: New file, from gettext-0.12.1.
69716         * m4/po.m4: New file, from gettext-0.12.1.
69717         * m4/progtest.m4: Upgrade to gettext-0.12.1.
69718
69719 2003-05-30  Bruno Haible  <bruno@clisp.org>
69720
69721         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
69722         * lib/localcharset.h: Likewise.
69723         * lib/localcharset.c: Likewise.
69724
69725 2003-05-29  Karl Berry  <karl@gnu.org>
69726
69727         * config/config.rpath: update from gettext.
69728
69729 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69730
69731         Assume the headers required for C89 freestanding compilers.
69732         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
69733         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
69734         * m4/human.m4 (gl_HUMAN): Likewise.
69735         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
69736         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
69737         * m4/userspec.m4 (gl_USERSPEC): Likewise.
69738         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
69739         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69740         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
69741
69742 2003-05-28  Paul Eggert  <eggert@twinsun.com>
69743
69744         Assume the headers required for C89 freestanding compilers.
69745         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
69746         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
69747         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
69748         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
69749         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
69750         define, since <limits.h> is guaranteed to do that.
69751         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
69752         * lib/exclude.c: Include <stdbool.h> unconditionally.
69753         * lib/tempname.c: Include <stddef.h> unconditionally.
69754         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
69755         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
69756         <stddef.h> does that.
69757         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
69758         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
69759         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
69760         needed.
69761         * lib/xstrtol.c: Likewise.
69762         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
69763         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
69764
69765         * lib/addext.c (addext): Use assignment rather than cast, to avoid
69766         warnings on some platforms.
69767
69768         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
69769         arbitrarily.
69770
69771 2003-05-26  Jim Meyering  <jim@meyering.net>
69772
69773         Merge in a change from coreutils:
69774         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
69775         that is guaranteed to be `no'.  Use `no_such_member' to indicate
69776         that condition, rather than `-1' which is slightly misleading.
69777         Change the name of the cache variable to have the gl_ prefix.
69778         Prompted by a patch from Richard Dawe for DJGPP.
69779
69780 2003-05-24  Karl Berry  <karl@gnu.org>
69781
69782         * config/config.guess: update from prep.
69783
69784 2003-05-22  Karl Berry  <karl@gnu.org>
69785
69786         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
69787
69788 2003-05-20  Karl Berry  <karl@gnu.org>
69789
69790         * config/config.guess: update from prep.
69791
69792 2003-05-18  Karl Berry  <karl@gnu.org>
69793
69794         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
69795         might actually be set by the user.
69796
69797         * config/depcomp, install-sh, mdate-sh: update from automake.
69798
69799 2003-05-17  Bruno Haible  <bruno@clisp.org>
69800
69801         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
69802         invalid expansion for AC_EGREP_CPP.
69803         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
69804         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
69805         Suggested by Akim Demaille <akim@epita.fr> in
69806         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
69807
69808 2003-05-12  Jim Meyering  <jim@meyering.net>
69809
69810         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
69811         the space-padded-by-default conversion specifiers, %e, %k, %l.
69812
69813 2003-05-12  Bruno Haible  <bruno@clisp.org>
69814
69815         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
69816         the string is longer than 4 KB.
69817
69818 2003-05-11  Karl Berry  <karl@gnu.org>
69819
69820         * config/config.{guess,sub}: update from prep.
69821
69822 2003-05-09  Bruno Haible  <bruno@clisp.org>
69823
69824         * modules/error: Add m4/strerror_r.m4 to file list.
69825
69826 2003-05-03  Bruno Haible  <bruno@clisp.org>
69827
69828         Upgrade to Unicode-4.0.
69829         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
69830         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
69831         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
69832         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
69833         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
69834         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
69835         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
69836         Change width of U+E0100..U+E01EF from 1 to 0.
69837
69838 2003-04-25  Jim Meyering  <jim@meyering.net>
69839
69840         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
69841         of type size_t, not int.
69842
69843 2003-04-25  Bruno Haible  <bruno@clisp.org>
69844
69845         * lib/copy-file.c: Include <stddef.h>, for size_t.
69846
69847 2003-04-21  Paul Eggert  <eggert@twinsun.com>
69848
69849         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
69850         code which expansion is under static control.  Patch imported from
69851         Akim Demaille's patch to Bison; see
69852         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
69853
69854 2003-04-14  Bruno Haible  <bruno@clisp.org>
69855
69856         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
69857
69858 2003-04-11  Jim Meyering  <jim@meyering.net>
69859
69860         Merge changes from Coreutils.
69861
69862         2003-03-22  Jim Meyering  <jim@meyering.net>
69863
69864         * lib/strftime.c (widen): Cast alloca return value to proper type.
69865
69866         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
69867
69868         From GNU libc.
69869         * lib/strftime.c (my_strftime): Handle very large width
69870         specifications for numeric values correctly.  Improve checks for
69871         overflow.
69872
69873         2003-01-19  Jim Meyering  <jim@meyering.net>
69874
69875         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
69876         definitions.
69877         (nl_get_alt_digit) [! defined my_strftime]: Define.
69878         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
69879         _nl_get_alt_digit and _nl_get_walt_digit.
69880
69881         * lib/strftime.c (my_strftime): Merge in locale-related changes from
69882         libc. These changes have no effect outside of _LIBC.
69883
69884 2003-04-10  Bruno Haible  <bruno@clisp.org>
69885
69886         * modules/findprog: New file.
69887         * MODULES.html.sh (func_all_modules): Add it.
69888
69889 2003-04-10  Bruno Haible  <bruno@clisp.org>
69890
69891         * m4/findprog.m4: New file.
69892         * m4/eaccess.m4: New file.
69893
69894 2003-04-10  Bruno Haible  <bruno@clisp.org>
69895
69896         * lib/findprog.h: New file, from GNU gettext.
69897         * lib/findprog.c: New file, from GNU gettext.
69898
69899 2003-04-05  Jim Meyering  <jim@meyering.net>
69900
69901         Merge changes from Coreutils.
69902
69903         * lib/exclude.h (PARAMS): Remove definition and uses.
69904         * lib/exclude.c: Remove uses of `PARAMS'.
69905
69906         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
69907         Add test-cases for DOS filenames. Declare program_name.
69908         (main): Set up program_name.  Patch by Rich Dawe.
69909
69910         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
69911         error from mntctl.
69912         Use mntctl's return value to drive the entry-processing loop, since
69913         we can't rely on the value of the vmt_length member in the last
69914         entry.  On some systems doing so could result in exhausting
69915         virtual memory.  Based in part on a patch from Mike Jetzer.
69916
69917 2003-04-04  Bruno Haible  <bruno@clisp.org>
69918
69919         * modules/linebreak: New file.
69920         * MODULES.html.sh (func_all_modules): Add it.
69921
69922 2003-04-04  Bruno Haible  <bruno@clisp.org>
69923
69924         * m4/linebreak.m4: New file.
69925
69926 2003-04-04  Bruno Haible  <bruno@clisp.org>
69927
69928         * lib/linebreak.h: New file, from GNU gettext.
69929         * lib/linebreak.c: New file, from GNU gettext with slight
69930         modifications.
69931         * lib/lbrkprop.h: New file, from GNU gettext.
69932
69933 2003-04-03  Bruno Haible  <bruno@clisp.org>
69934
69935         * modules/utf8-ucs4: New file.
69936         * modules/utf16-ucs4: New file.
69937         * modules/ucs4-utf8: New file.
69938         * modules/ucs4-utf16: New file.
69939         * MODULES.html.sh (func_all_modules): Add them.
69940
69941 2003-04-03  Bruno Haible  <bruno@clisp.org>
69942
69943         * m4/utf-ucs4.m4: New file.
69944         * m4/ucs4-utf.m4: New file.
69945
69946 2003-04-03  Bruno Haible  <bruno@clisp.org>
69947
69948         * lib/utf8-ucs4.h: New file, from GNU gettext.
69949         * lib/utf16-ucs4.h: New file, from GNU gettext.
69950         * lib/ucs4-utf8.h: New file, from GNU gettext.
69951         * lib/ucs4-utf16.h: New file, from GNU gettext.
69952
69953 2003-04-02  Bruno Haible  <bruno@clisp.org>
69954
69955         * modules/binary-io: New file.
69956         * MODULES.html.sh (func_all_modules): Add it.
69957
69958 2003-04-02  Bruno Haible  <bruno@clisp.org>
69959
69960         * lib/binary-io.h: New file, from GNU gettext.
69961
69962 2003-04-01  Bruno Haible  <bruno@clisp.org>
69963
69964         * modules/pathname: New file.
69965         * MODULES.html.sh (func_all_modules): Add it.
69966
69967 2003-04-01  Bruno Haible  <bruno@clisp.org>
69968
69969         * lib/pathname.h: New file, from GNU gettext.
69970         * lib/concatpath.c: New file, from GNU gettext.
69971
69972 2003-03-30  Bruno Haible  <bruno@clisp.org>
69973
69974         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
69975
69976 2003-03-30  Bruno Haible  <bruno@clisp.org>
69977
69978         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
69979         function chown() doesn't exist.
69980
69981 2003-03-28  Bruno Haible  <bruno@clisp.org>
69982
69983         * modules/copy-file: New file.
69984         * MODULES.html.sh (func_all_modules): Add it.
69985
69986 2003-03-28  Bruno Haible  <bruno@clisp.org>
69987
69988         * m4/copy-file.m4: New file.
69989
69990 2003-03-28  Bruno Haible  <bruno@clisp.org>
69991
69992         * lib/copy-file.h: New file, from GNU gettext.
69993         * lib/copy-file.c: New file, from GNU gettext.
69994
69995 2003-03-18  Jim Meyering  <jim@meyering.net>
69996
69997         * lib/quote.c (quote_n): Fix typo in comment.
69998
69999 2003-03-18  Bruno Haible  <bruno@clisp.org>
70000
70001         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
70002         checking.
70003         * m4/onceonly_2_57.m4: Likewise.
70004
70005 2003-03-17  Bruno Haible  <bruno@clisp.org>
70006
70007         * m4/onceonly.m4: Require autoconf 2.54 or newer.
70008         (m4_quote): Remove macro.
70009         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
70010
70011 2003-03-14  Jim Meyering  <jim@meyering.net>
70012
70013         Merge changes from Coreutils.
70014         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
70015         to be const, in order to avoid warnings.
70016         (obstack_room): Likewise.
70017         (obstack_empty_p): Likewise.
70018
70019 2003-03-14  Bruno Haible  <bruno@clisp.org>
70020
70021         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
70022         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
70023
70024 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70025
70026         Merge changes from Bison.
70027         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
70028         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
70029         when compiling Bison 1.875's `bitset bset = obstack_alloc
70030         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
70031         * lib/hash.c: Include <stdbool.h> unconditionally.
70032
70033 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70034
70035         * m4/onceonly.m4 (m4_quote): New macro.
70036         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
70037         Quote AC_FOREACH variable-expansions properly.
70038
70039 2003-03-13  Paul Eggert  <eggert@twinsun.com>
70040
70041         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
70042
70043 2003-03-09  Paul Eggert  <eggert@twinsun.com>
70044
70045         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
70046         Reported by Bruce Becker; see:
70047         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
70048
70049 2003-03-03  Paul Eggert  <eggert@twinsun.com>
70050             Bruno Haible  <bruno@clisp.org>
70051
70052         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
70053         Reported by John Hughes, see
70054         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
70055
70056 2003-02-20  Bruno Haible  <bruno@clisp.org>
70057
70058         * MODULES.html.sh (func_all_modules): Add poll.
70059
70060 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70061
70062         * modules/poll: New file.
70063
70064 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70065
70066         * lib/poll_.h: New file.
70067         * lib/poll.c: New file.
70068
70069 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
70070
70071         * m4/poll.m4: New file.
70072
70073 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70074
70075         * modules/mathl: New file.
70076
70077 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70078
70079         * lib/mathl.h: New file.
70080         * lib/acosl.c: New file.
70081         * lib/asinl.c: New file.
70082         * lib/atanl.c: New file.
70083         * lib/ceill.c: New file.
70084         * lib/cosl.c: New file.
70085         * lib/expl.c: New file.
70086         * lib/floorl.c: New file.
70087         * lib/frexpl.c: New file.
70088         * lib/ldexpl.c: New file.
70089         * lib/logl.c: New file.
70090         * lib/sincosl.c: New file.
70091         * lib/sinl.c: New file.
70092         * lib/sqrtl.c: New file.
70093         * lib/tanl.c: New file.
70094         * lib/trigl.c: New file.
70095         * lib/trigl.h: New file.
70096
70097 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
70098
70099         * m4/mathl.m4: New file.
70100
70101 2003-02-18  Bruno Haible  <bruno@clisp.org>
70102
70103         * MODULES.html.sh (func_all_modules): Add mathl.
70104
70105 2003-02-17  Bruno Haible  <bruno@clisp.org>
70106
70107         * modules/mkdtemp: New module.
70108         * MODULES.html.sh (func_all_modules): Add it.
70109
70110 2003-02-17  Bruno Haible  <bruno@clisp.org>
70111
70112         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
70113
70114 2003-02-17  Bruno Haible  <bruno@clisp.org>
70115
70116         * lib/mkdtemp.h: New file, from GNU gettext.
70117         * lib/mkdtemp.c: New file, from GNU gettext.
70118
70119 2003-02-02  Jim Meyering  <jim@meyering.net>
70120
70121         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
70122         e.g. glibc-2.2.93.
70123
70124 2003-01-31  Bruno Haible  <bruno@clisp.org>
70125
70126         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
70127         'rpl_rename'.
70128         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
70129         'rpl_strnlen'.
70130         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
70131         'rpl_strtod'.
70132         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
70133         'rpl_utime'.
70134
70135 2003-01-31  Bruno Haible  <bruno@clisp.org>
70136
70137         * lib/rename.c: #undef rename before defining rpl_rename.
70138         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
70139
70140 2003-01-30  Bruno Haible  <bruno@clisp.org>
70141
70142         * modules/vasnprintf, modules/vasprintf: New modules.
70143         * MODULES.html.sh (func_all_modules): Add them.
70144
70145 2003-01-30  Bruno Haible  <bruno@clisp.org>
70146
70147         * m4/signed.m4: New file, from GNU gettext.
70148         * m4/longdouble.m4: New file, from GNU gettext.
70149         * m4/wchar_t.m4: New file, from GNU gettext.
70150         * m4/wint_t.m4: New file, from GNU gettext.
70151         * m4/vasnprintf.m4: New file.
70152         * m4/vasprintf.m4: New file.
70153
70154 2003-01-30  Bruno Haible  <bruno@clisp.org>
70155
70156         * lib/printf-args.h: New file, from GNU gettext.
70157         * lib/printf-args.c: New file, from GNU gettext.
70158         * lib/printf-parse.h: New file, from GNU gettext.
70159         * lib/printf-parse.c: New file, from GNU gettext.
70160         * lib/vasnprintf.h: New file, from GNU gettext.
70161         * lib/vasnprintf.c: New file, from GNU gettext.
70162         * lib/asnprintf.c: New file, from GNU gettext.
70163         * lib/vasprintf.h: New file, from GNU gettext with modifications.
70164         * lib/vasprintf.c: New file, from GNU gettext.
70165         * lib/asprintf.c: New file, from GNU gettext.
70166
70167 2003-01-29  Bruno Haible  <bruno@clisp.org>
70168
70169         * modules/stpncpy: New module.
70170         * MODULES.html.sh (func_all_modules): Add it.
70171
70172 2003-01-29  Bruno Haible  <bruno@clisp.org>
70173
70174         * m4/stpncpy.m4: New file.
70175
70176 2003-01-29  Bruno Haible  <bruno@clisp.org>
70177
70178         * lib/stpncpy.h: New file, from GNU gettext with modifications.
70179         * lib/stpncpy.c: New file, from GNU gettext with modifications.
70180
70181 2003-01-28  Bruno Haible  <bruno@clisp.org>
70182
70183         * modules/c-ctype: New module.
70184         * MODULES.html.sh (func_all_modules): Add it.
70185
70186 2003-01-28  Bruno Haible  <bruno@clisp.org>
70187
70188         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
70189         Paul Eggert.
70190         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
70191         Paul Eggert.
70192
70193 2003-01-27  Bruno Haible  <bruno@clisp.org>
70194
70195         * modules/xsetenv: New module.
70196         * MODULES.html.sh (func_all_modules): Add it.
70197
70198 2003-01-27  Bruno Haible  <bruno@clisp.org>
70199
70200         * lib/xsetenv.h: New file, from GNU gettext.
70201         * lib/xsetenv.c: New file, from GNU gettext.
70202
70203 2003-01-23  Jim Meyering  <jim@meyering.net>
70204
70205         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
70206         from working on systems without dirfd (at least Irix and OSF1/Tru64).
70207
70208 2003-01-23  Bruno Haible  <bruno@clisp.org>
70209
70210         * modules/minmax: New module.
70211         * MODULES.html.sh (func_all_modules): Add it.
70212
70213 2003-01-23  Bruno Haible  <bruno@clisp.org>
70214
70215         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
70216         Eggert.
70217
70218 2003-01-22  Bruno Haible  <bruno@clisp.org>
70219
70220         * modules/exit: New module.
70221         * MODULES.html.sh (func_all_modules): Add it.
70222
70223 2003-01-22  Bruno Haible  <bruno@clisp.org>
70224
70225         * lib/exit.h: New file, from GNU gettext.
70226
70227 2003-01-19  Bruno Haible  <bruno@clisp.org>
70228
70229         * gnulib-tool: Recognize option --extract-maintainer.
70230         (func_get_maintainer): New function.
70231         * modules/*: Add Maintainer entry.
70232
70233 2003-01-16  Jim Meyering  <jim@meyering.net>
70234
70235         * m4/regex.m4: The `regex' struct is both input and output.
70236         Initialize it before each use.  Patch by Tim Waugh.
70237
70238 2003-01-16  Bruno Haible  <bruno@clisp.org>
70239
70240         * MODULES.html.sh: Add a table of contents. Add the module name as
70241         leftmost column. Add hyperlinks.
70242
70243 2003-01-15  Bruno Haible  <bruno@clisp.org>
70244
70245         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
70246
70247 2003-01-15  Bruno Haible  <bruno@clisp.org>
70248
70249         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
70250         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
70251         suffix.
70252
70253 2003-01-15  Bruno Haible  <bruno@clisp.org>
70254
70255         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
70256
70257 2003-01-15  Bruno Haible  <bruno@clisp.org>
70258
70259         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
70260         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
70261
70262 2003-01-14  Jim Meyering  <jim@meyering.net>
70263
70264         * lib/same.c (same_name): Tweak a comment.
70265
70266 2003-01-14  Bruno Haible  <bruno@clisp.org>
70267
70268         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
70269         when a string comparison is sufficient.
70270
70271 2003-01-14  Bruno Haible  <bruno@clisp.org>
70272
70273         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
70274         'unsigned int'.
70275
70276 2003-01-14  Bruno Haible  <bruno@clisp.org>
70277
70278         * lib/hash-pjw.c: Add comment about low quality of this function.
70279
70280 2003-01-13  Bruno Haible  <bruno@clisp.org>
70281
70282         * modules/stpcpy: Distribute lib/stpcpy.h.
70283         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
70284
70285 2003-01-13  Bruno Haible  <bruno@clisp.org>
70286
70287         * modules/*: Add a description.
70288         * modules/strpbrk: Fix Makefile.am snippet.
70289         * modules/strtoimax: Fix dependencies.
70290         * modules/strtoumax: Likewise.
70291
70292 2003-01-13  Bruno Haible  <bruno@clisp.org>
70293
70294         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
70295         * modules/alloca (Makefile.am): All object files depend on alloca.h.
70296         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
70297
70298 2003-01-13  Bruno Haible  <bruno@clisp.org>
70299
70300         * gnulib-tool (func_create_testdir): Store config/* files in the main
70301         directory.
70302         * config.rpath: Move to ...
70303         * config/config.rpath: ... here.
70304         * modules/gettext: Contains config/config.rpath, not config.rpath.
70305         * modules/iconv: Likewise.
70306
70307 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70308
70309         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70310         to avoid collisions with libcurses and libreadline.
70311
70312         * m4/getstr.m4: Remove.
70313         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
70314
70315 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70316
70317         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70318         to avoid collisions with libcurses and libreadline.
70319
70320         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
70321         * lib/getstr.h, getstr.c: Remove.
70322         * lib/getline.c: Include "getline.h", to check interface.
70323         Move body of old getstr.c here: this defines MIN_CHUNK and
70324         declares getdelim2, which is renamed from getstr.
70325         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
70326
70327         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
70328         All uses changed.
70329         * lib/linebuffer.h: Likewise.
70330         (readline): Remove backward-compatibility macro.
70331
70332 2003-01-12  Paul Eggert  <eggert@twinsun.com>
70333
70334         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
70335         to avoid collisions with libcurses and libreadline.
70336         * getstr: Remove.
70337         * MODULES.html.sh: Remove getstr.
70338         * modules/getline: Depend on unlocked-io, not getstr.
70339
70340 2003-01-12  Jim Meyering  <jim@meyering.net>
70341
70342         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
70343
70344 2003-01-10  Bruno Haible  <bruno@clisp.org>
70345
70346         * modules/alloca: Change Makefile.am requirements. Simplify Include
70347         requirements. Add lib/alloca_.h to file list.
70348
70349 2003-01-10  Bruno Haible  <bruno@clisp.org>
70350
70351         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
70352
70353 2003-01-10  Bruno Haible  <bruno@clisp.org>
70354
70355         * lib/alloca_.h: New file.
70356         * lib/getdate.y: Unconditionally include alloca.h.
70357         * lib/makepath.c: Likewise.
70358         * lib/setenv.c: Likewise.
70359         * lib/userspec.c: Likewise.
70360
70361 2003-01-09  Karl Berry  <karl@gnu.org>
70362
70363         * MODULES.html.sh: include `dirname $0` in PATH, to find
70364         gnulib-tool.
70365
70366 2003-01-09  Bruno Haible  <bruno@clisp.org>
70367
70368         * modules/stdbool: Change configure.ac, Makefile.am requirements.
70369         Simplify Include requirements. Add lib/stdbool.h.in to file list.
70370
70371 2003-01-09  Bruno Haible  <bruno@clisp.org>
70372
70373         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
70374
70375 2003-01-09  Bruno Haible  <bruno@clisp.org>
70376
70377         * lib/stdbool.h.in: New file.
70378
70379 2003-01-09  Bruno Haible  <bruno@clisp.org>
70380
70381         * gnulib-tool (func_all_modules): Ignore files ending in ~.
70382         * MODULES.html.sh: Likewise.
70383
70384 2003-01-08  Jim Meyering  <jim@meyering.net>
70385
70386         * lib/full-write.c: Undefine and define-away `const' after inclusion
70387         of errno.h, not before.  Suggestion from Bruno Haible.
70388
70389 2003-01-08  Bruno Haible  <bruno@clisp.org>
70390
70391         * modules/full-read: Depend on full-write.
70392
70393 2003-01-08  Bruno Haible  <bruno@clisp.org>
70394
70395         * lib/safe-read.c: Include specification header first, to ensure its
70396         selfcontainedness.
70397         * lib/full-write.c: Likewise.
70398
70399 2003-01-07  Jim Meyering  <jim@meyering.net>
70400
70401         * lib/full-write.c: Rework so that it may serve to define full_read,
70402         too.
70403         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
70404
70405 2003-01-07  Bruno Haible  <bruno@clisp.org>
70406
70407         * lib/strtoimax.c: Include <stdint.h> as an alternative to
70408         <inttypes.h>.
70409         * lib/xstrtol.h: Likewise.
70410         * lib/xstrtoimax.c: Likewise.
70411         * lib/xstrtoumax.c: Likewise.
70412         * lib/human.h: Likewise.
70413
70414         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
70415         on systems that have <inttypes.h> but not <stdint.h>.
70416
70417 2003-01-07  Bruno Haible  <bruno@clisp.org>
70418
70419         * MODULES.html.sh: Add copyright notice.
70420         (missed_files): Omit CVS directory entries.
70421         (func_module): Make it work with sed-3.02.
70422         * MODULES.txt: Remove file.
70423
70424 2003-01-06  Jim Meyering  <jim@meyering.net>
70425
70426         * lib/version-etc.c: Update year in translatable copyright string.
70427
70428 2003-01-03  Karl Berry  <karl@gnu.org>
70429
70430         * config/config.{guess,sub}: update from prep.
70431
70432 2003-01-02  Karl Berry  <karl@gnu.org>
70433
70434         * doc/COPYING.DOC: belatedly updated to 1.2.
70435
70436 2003-01-01  Karl Berry  <karl@gnu.org>
70437
70438         * gnulib-tool (func_verify_module): report module name $module in
70439         error message, not $1.
70440         * gnulib-tool (create-testdir): don't complain if destdir couldn't
70441         be created, only if it doesn't exist.
70442         * gnulib-tool (last_checkin_date): don't expand the $Date here.
70443
70444 2002-12-31  Paul Eggert  <eggert@twinsun.com>
70445
70446         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
70447
70448 2002-12-31  Paul Eggert  <eggert@twinsun.com>
70449
70450         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
70451         memcmp if strcoll doesn't work.
70452
70453 2002-12-31  Bruno Haible  <bruno@clisp.org>
70454
70455         * lib/utime.c (utime_null): No need to call ftruncate if the file was
70456         nonempty.
70457
70458 2002-12-31  Bruno Haible  <bruno@clisp.org>
70459
70460         * lib/memcoll.c (STRCOLL): New macro.
70461         (memcoll): Use it.
70462
70463 2002-12-31  Bruno Haible  <bruno@clisp.org>
70464
70465         * lib/localcharset.h: New file.
70466         * lib/localcharset.c: Include it.
70467         * lib/unicodeio.c: Likewise.
70468
70469 2002-12-31  Bruno Haible  <bruno@clisp.org>
70470
70471         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
70472         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
70473
70474 2002-12-31  Bruno Haible  <bruno@clisp.org>
70475
70476         * lib/getline.h: Include <stddef.h>, for size_t.
70477
70478         * lib/unicodeio.h: Include <stddef.h>, for size_t.
70479         * lib/unicodeio.c: Don't include <stddef.h>.
70480
70481 2002-12-31  Bruno Haible  <bruno@clisp.org>
70482
70483         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
70484         HAVE_TM_ZONE.
70485
70486 2002-12-24  Karl Berry  <karl@gnu.org>
70487
70488         * config/config.guess: update from prep.
70489
70490 2002-12-24  Bruno Haible  <bruno@clisp.org>
70491
70492         General infrasructure.
70493         * m4/README: Rewritten.
70494         * m4/onceonly.m4: New file.
70495         * m4/onceonly_2_57.m4: New file.
70496
70497         Module atexit.
70498         * m4/atexit.m4: New file.
70499
70500         Module strtod.
70501         * m4/strtod.m4: New file.
70502
70503         Module strtol.
70504         * m4/strtol.m4: New file.
70505
70506         Module strtoul.
70507         * m4/strtoul.m4: New file.
70508
70509         Module memchr.
70510         * m4/memchr.m4: New file.
70511
70512         Module memcmp.
70513         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
70514         (jm_FUNC_MEMCMP): Invoke it.
70515
70516         Module memcpy.
70517         * m4/memcpy.m4: New file.
70518
70519         Module memmove.
70520         * m4/memmove.m4: New file.
70521
70522         Module memset.
70523         * m4/memset.m4: New file.
70524
70525         Module strcspn.
70526         * m4/strcspn.m4: New file.
70527
70528         Module strpbrk.
70529         * m4/strpbrk.m4: New file.
70530
70531         Module strstr.
70532         * m4/strstr.m4: New file.
70533
70534         Module strerror.
70535         * m4/strerror.m4: New file.
70536
70537         Module mktime.
70538         * m4/mktime.m4: Renamed from jm-mktime.m4.
70539         (gl_PREREQ_MKTIME): New macro.
70540         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
70541
70542         Module malloc.
70543         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
70544         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
70545         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
70546
70547         Module realloc.
70548         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
70549         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
70550         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
70551
70552         Module strftime.
70553         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
70554         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
70555         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
70556         gl_TM_GMTOFF.
70557         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
70558
70559         Module xalloc.
70560         * m4/xalloc.m4: New file.
70561
70562         Module alloca.
70563         * m4/alloca.m4: New file.
70564
70565         Module putenv.
70566         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
70567         (jm_FUNC_PUTENV): Invoke it.
70568
70569         Module setenv.
70570         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
70571         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
70572         when invoked twice.
70573         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
70574         gt_FUNC_SETENV.
70575
70576         Module memrchr.
70577         * m4/memrchr.m4: New file.
70578
70579         Module stpcpy.
70580         * m4/stpcpy.m4: New file.
70581
70582         Module strcase.
70583         * m4/strcase.m4: New file.
70584
70585         Module strdup.
70586         * m4/strdup.m4: New file.
70587
70588         Module strnlen.
70589         * m4/strnlen.m4: New file.
70590
70591         Module strndup.
70592         * m4/strndup.m4: New file.
70593
70594         Module xstrtod.
70595         * m4/xstrtod.m4: New file.
70596
70597         Module xstrtol.
70598         * m4/xstrtol.m4: New file.
70599
70600         Module getdate.
70601         * m4/getdate.m4: New file.
70602
70603         Module unlocked-io.
70604         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
70605         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
70606         * m4/jm-glibc-io.m4n: Remove file.
70607
70608         Module long-options.
70609         * m4/long-options.m4: New file.
70610
70611         Module md5.
70612         * m4/md5.m4: New file.
70613
70614         Module sha.
70615         * m4/sha.m4: New file.
70616
70617         Module getstr.
70618         * m4/getstr.m4: New file.
70619
70620         Module getline.
70621         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
70622         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
70623         <sys/types.h>, for size_t. Use the function name gnu_getline, not
70624         simply getline. Infoke gl_PREREQ_GETLINE.
70625
70626         Module obstack.
70627         * m4/obstack.m4: New file.
70628
70629         Module hash.
70630         * m4/hash.m4: New file.
70631
70632         Module readtokens.
70633         * m4/readtokens.m4: New file.
70634
70635         Module strverscmp.
70636         * m4/strverscmp.m4: New file.
70637
70638         Module stdbool.
70639         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
70640         OSF/1.
70641
70642         Module strtoll.
70643         * m4/strtoll.m4: New file.
70644
70645         Module strtoull.
70646         * m4/strtoull.m4: New file.
70647
70648         Module strtoimax.
70649         * m4/strtoimax.m4: New file.
70650
70651         Module strtoumax.
70652         * m4/strtoumax.m4: New file.
70653
70654         Module xstrtoimax.
70655         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
70656         jm_AC_PREREQ_XSTRTOIMAX.
70657         Moved the strtol prerequisites to strtol.m4.
70658         Moved the strtoll prerequisites to strtoll.m4.
70659         Moved the strtoimax prerequisites to strtoimax.m4.
70660
70661         Module xstrtoumax.
70662         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
70663         jm_AC_PREREQ_XSTRTOUMAX.
70664         Moved the strtoul prerequisites to strtoul.m4.
70665         Moved the strtoull prerequisites to strtoull.m4.
70666         Moved the strtoumax prerequisites to strtoumax.m4.
70667
70668         Module chown.
70669         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
70670         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
70671
70672         Module dup2.
70673         * m4/dup2.m4: New file.
70674
70675         Module ftruncate.
70676         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
70677         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
70678
70679         Module getgroups.
70680         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
70681         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
70682
70683         Module gettimeofday.
70684         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
70685         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
70686         gl_PREREQ_GETTIMEOFDAY.
70687
70688         Module mkdir.
70689         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
70690         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
70691
70692         Module mkstemp.
70693         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
70694         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
70695         jm_AC_TYPE_UINTMAX_T.
70696         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
70697
70698         Module stat.
70699         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
70700         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
70701
70702         Module lstat.
70703         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
70704         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
70705
70706         Module timespec.
70707         * m4/timespec.m4 (gl_TIMESPEC): New macro.
70708         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
70709         * m4/st_mtim.m4: Indentation.
70710
70711         Module nanosleep.
70712         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
70713         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
70714         gl_PREREQ_NANOSLEEP.
70715
70716         Module regex.
70717         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
70718         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
70719         (gl_REGEX): New macro.
70720
70721         Module rename.
70722         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
70723         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
70724
70725         Module rmdir.
70726         * m4/rmdir.m4: New file.
70727
70728         Module utime.
70729         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
70730         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
70731         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
70732
70733         Module dirname.
70734         * m4/dirname.m4: New file.
70735
70736         Module getopt.
70737         * m4/getopt.m4: New file.
70738
70739         Module unistd-safer.
70740         * m4/unistd-safer.m4: New file.
70741
70742         Module fnmatch.
70743         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
70744         declaration.
70745         (gl_PREREQ_FNMATCH_EXTRA): New macro.
70746         (gl_FUNC_FNMATCH_POSIX): New macro.
70747         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
70748         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
70749         simply fnmatch.
70750
70751         Module exclude.
70752         * m4/exclude.m4: New file.
70753
70754         Module human.
70755         * m4/human.m4: New file.
70756
70757         Module acl.
70758         * m4/acl.m4: Nop.
70759
70760         Module backupfile.
70761         * m4/backupfile.m4: New file.
70762         * m4/d-ino.m4: Indentation.
70763
70764         Module fsusage.
70765         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
70766         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
70767         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
70768
70769         Module dirfd.
70770         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
70771         requirements.
70772
70773         Module euidaccess.
70774         * m4/euidaccess.m4: New file.
70775
70776         Module file-type.
70777         * m4/file-type.m4: New file.
70778
70779         Module fileblocks.
70780         * m4/fileblocks.m4: New file.
70781
70782         Module filemode.
70783         * m4/filemode.m4: New file.
70784
70785         Module isdir.
70786         * m4/isdir.m4: New file.
70787
70788         Module lchown.
70789         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
70790         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
70791
70792         Module makepath.
70793         * m4/makepath.m4: New file.
70794
70795         Module modechange.
70796         * m4/modechange.m4: New file.
70797
70798         Module mountlist.
70799         * m4/mountlist.m4: New file.
70800         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
70801         Indentation.
70802
70803         Module path-concat.
70804         * m4/path-concat.m4: New file.
70805
70806         Module pathmax.
70807         * m4/pathmax.m4: New file.
70808
70809         Module same.
70810         * m4/same.m4: New file.
70811
70812         Module save-cwd.
70813         * m4/save-cwd.m4: New file.
70814
70815         Module savedir.
70816         * m4/savedir.m4: New file.
70817
70818         Module xgetcwd.
70819         * m4/xgetcwd.m4: New file.
70820         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
70821
70822         Module xreadlink.
70823         * m4/xreadlink.m4: New file.
70824
70825         Module safe-read.
70826         * m4/safe-read.m4: New file.
70827
70828         Module safe-write.
70829         * m4/safe-write.m4: New file.
70830
70831         Module closeout.
70832         * m4/closeout.m4: New file.
70833
70834         Module stdio-safer.
70835         * m4/stdio-safer.m4: New file.
70836
70837         Module getpass.
70838         * m4/getpass.m4: New file.
70839
70840         Module getugroups.
70841         * m4/getugroups.m4: New file.
70842
70843         Module group-member.
70844         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
70845         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
70846
70847         Module idcache.
70848         * m4/idcache.m4: New file.
70849
70850         Module userspec.
70851         * m4/userspec.m4: New file.
70852
70853         Module gettime.
70854         * m4/clock_time.m4: New file.
70855         * m4/gettime.m4: New file.
70856
70857         Module settime.
70858         * m4/settime.m4: New file.
70859
70860         Module posixtm.
70861         * m4/posixtm.m4: New file.
70862
70863         Module gethostname.
70864         * m4/gethostname.m4: New file.
70865
70866         Module canon-host.
70867         * m4/canon-host.m4: New file.
70868
70869         Module gettext.
70870         * m4/codeset.m4: New file, from gettext-0.11.5.
70871         * m4/gettext.m4: New file, from gettext-0.11.5.
70872         * m4/glibc21.m4: New file, from gettext-0.11.5.
70873         * m4/iconv.m4: New file, from gettext-0.11.5.
70874         * m4/intdiv0.m4: New file, from gettext-0.11.5.
70875         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
70876         * m4/inttypes.m4: New file, from gettext-0.11.5.
70877         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
70878         * m4/isc-posix.m4: New file, from gettext-0.11.5.
70879         * m4/lcmessage.m4: New file, from gettext-0.11.5.
70880         * m4/lib-ld.m4: New file, from gettext-0.11.5.
70881         * m4/lib-link.m4: New file, from gettext-0.11.5.
70882         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
70883         * m4/progtest.m4: New file, from gettext-0.11.5.
70884         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
70885         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
70886         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
70887
70888         Module localcharset.
70889         * m4/localcharset.m4: New file.
70890
70891         Module hard-locale.
70892         * m4/hard-locale.m4: New file.
70893
70894         Module mbswidth.
70895         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
70896         onceonly macros.
70897         * m4/mbrtowc.m4: Add comment.
70898
70899         Module memcasecmp.
70900         * m4/memcasecmp.m4: New file.
70901
70902         Module memcoll.
70903         * m4/memcoll.m4: New file.
70904
70905         Module unicodeio.
70906         * m4/unicodeio.m4: New file.
70907
70908         Module rpmatch.
70909         * m4/rpmatch.m4: New file.
70910
70911         Module yesno.
70912         * m4/yesno.m4: New file.
70913
70914         Module exitfail.
70915         * m4/exitfail.m4: New file.
70916
70917         Module c-stack.
70918         * m4/c-stack.m4 (gl_C_STACK): New macro.
70919         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
70920
70921         Module error.
70922         * m4/error.m4 (gl_ERROR): New macro.
70923         (jm_PREREQ_ERROR): Use onceonly macros.
70924
70925         Module fatal.
70926         * m4/fatal.m4: New file.
70927
70928         Module getloadavg.
70929         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
70930         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
70931
70932         Module getpagesize.
70933         * m4/getpagesize.m4: New file.
70934
70935         Module getusershell.
70936         * m4/getusershell.m4: New file.
70937
70938         Module physmem.
70939         * m4/physmem.m4: New file.
70940
70941         Module posixver.
70942         * m4/posixver.m4: New file.
70943
70944         Module quotearg.
70945         * m4/quotearg.m4: New file.
70946
70947         Module quote.
70948         * m4/quote.m4: New file.
70949
70950         Module readutmp.
70951         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
70952
70953         Module sig2str.
70954         * m4/sig2str.m4: New file.
70955
70956         Other.
70957         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
70958         ulonglong.m4.
70959         * m4/intmax_t.m4: New file.
70960         * m4/d-type.m4: Indentation.
70961         * m4/jm-macros.m4: Update.
70962         * m4/prereq.m4 (jm_PREREQ): Update.
70963         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
70964         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
70965         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
70966         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
70967         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
70968         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
70969         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
70970         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
70971         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
70972         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
70973         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
70974         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
70975         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
70976         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
70977         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
70978         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
70979         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
70980         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
70981         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
70982
70983 2002-12-24  Bruno Haible  <bruno@clisp.org>
70984
70985         * MODULES.txt: Update according to m4/ changes.
70986
70987         Module gettext.
70988         * config.rpath: New file, from gettext-0.11.5.
70989
70990         * modules/*: New module descriptions.
70991         * gnulib-tool: New file.
70992         * MODULES.html.sh: New file.
70993
70994 2002-12-21  Karl Berry  <karl@gnu.org>
70995
70996         * doc/fdl.texi: update to version 1.2.
70997
70998 2002-12-19  Karl Berry  <karl@gnu.org>
70999
71000         * config/config.guess: update from prep.
71001
71002 2002-12-18  Bruno Haible  <bruno@clisp.org>
71003
71004         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
71005         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
71006
71007 2002-12-17  Bruno Haible  <bruno@clisp.org>
71008
71009         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
71010         stdlib.h, string.h.
71011
71012 2002-12-17  Bruno Haible  <bruno@clisp.org>
71013
71014         * lib/canon-host.c (strdup): Remove unused declaration.
71015
71016         * lib/fsusage.c: Include full_read.h.
71017         (get_fs_usage): Use full_read instead of safe_read.
71018
71019         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
71020
71021 2002-12-12  Karl Berry  <karl@gnu.org>
71022
71023         * config/config.guess: update from prep.
71024
71025 2002-12-11  Bruno Haible  <bruno@clisp.org>
71026
71027         * m4/setenv.m4: New file, from gettext-0.11.5.
71028
71029 2002-12-11  Bruno Haible  <bruno@clisp.org>
71030
71031         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
71032         not unsetenv().
71033         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
71034         modifications:
71035
71036         2002-12-11  Bruno Haible  <bruno@clisp.org>
71037
71038                 * setenv.c (alloca): Fall back to malloc.
71039                 (freea): New macro.
71040                 (setenv): Use freea() to free memory allocated with alloca().
71041
71042         2002-11-13  Bruno Haible  <bruno@clisp.org>
71043
71044                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
71045                 function declarations.
71046                 * unsetenv.c (unsetenv): Likewise.
71047
71048         2002-03-04  Bruno Haible  <bruno@clisp.org>
71049
71050                 Portability to AIX 4.3.3.
71051                 * unsetenv.c: New file, extracted from setenv.c.
71052                 * setenv.c: Move the unsetenv() function to unsetenv.c.
71053
71054         2001-12-20  Bruno Haible  <bruno@clisp.org>
71055
71056                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
71057                 use malloc instead. For SunOS 4.
71058
71059         2001-12-11  Bruno Haible  <bruno@clisp.org>
71060
71061                 * setenv.c: Declare alloca.
71062                 (compar_fn_t): New typedef.
71063                 (KNOWN_VALUE, STORE_VALUE): Use it.
71064
71065         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
71066         setenv.h.
71067
71068 2002-12-10  Paul Eggert  <eggert@twinsun.com>
71069
71070         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
71071         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
71072         Choose values that are less likely to collide with system fnmatch
71073         options.
71074         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
71075         defined (e.g., a pure POSIX system).
71076         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
71077         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
71078
71079 2002-12-06  Paul Eggert  <eggert@twinsun.com>
71080
71081         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
71082         a pain in practice to deal with generated m4 files.  This change
71083         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
71084
71085         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
71086         and jm-glibc-io.m4, as they are no longer a special case.
71087         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
71088         kludge and the auto-generation stuff.  Check only whether the
71089         functions are declared, not whether they exist, since older hosts
71090         that don't declare the functions can't use the optimization anyway.
71091
71092 2002-12-06  Jim Meyering  <jim@meyering.net>
71093
71094         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
71095
71096         Merge in changes from libc's misc/error.c, in preparation
71097         for the merge of gnulib's changes back into libc.
71098
71099         * lib/error.c (_): Define only if not already defined.
71100         Move definition to follow all #include directives.
71101         Include unlocked-io.h only if !_LIBC.
71102         [_LIBC]: Include <libio/libioP.h>.
71103         [USE_IN_LIBIO]: Include <libio/iolibio.h>
71104         (fflush): Tweak definition to use INTUSE.
71105         (putc): Define.
71106
71107 2002-12-05  Paul Eggert  <eggert@twinsun.com>
71108
71109         * lib/alloca.c [defined emacs]: Include "lisp.h".
71110         (xalloc_die) [defined emacs]: New macro.
71111         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
71112         [! defined emacs]: Include <xalloc.h>.
71113         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
71114         (pointer): Typedef to POINTER_TYPE *.
71115         (malloc): Remove decl; we now always use xmalloc.
71116         (alloca): Use old-style definition, since Emacs needs this.
71117         Check for arithmetic overflow when computing combined size.
71118
71119 2002-12-04  Paul Eggert  <eggert@twinsun.com>
71120
71121         Do not generate unlocked-io.h automatically, since it's easier to
71122         maintain it by hand.
71123
71124         * lib/unlocked-io.h: New file, from GNU diffutils,
71125         but with proper copyright notice and attribution.
71126         * lib/gen-uio: Remove.
71127         * lib/Makefile.am: Add copyright notice.
71128         (libfetish_a_SOURCES): Add unlocked-io.h.
71129         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
71130         (DISTCLEANFILES, io_functions): Remove macros.
71131         (EXTRA_DIST): Remove gen_uio.
71132         (unlocked-io.h): Remove rule.
71133
71134 2002-12-04  Jim Meyering  <jim@meyering.net>
71135
71136         Reflect the fact that stat.c and lstat.c are no longer generated.
71137         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
71138         (DISTCLEANFILES): Likewise.
71139         (EXTRA_DIST): Likewise.
71140         (all_local): Don't depend on stat.c or lstat.c.
71141         (stat.c, lstat.c): Remove rules.
71142         (EXTRA_DIST): Remove xstat.in.
71143
71144         * lib/xstat.in: Remove file.  Contents moved into stat.c.
71145         * lib/stat.c: New file.  Contents mostly from xstat.in.
71146         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
71147         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
71148
71149         * lib/safe-read.c: Rework so that it may serve to define safe_write,
71150         too.
71151         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
71152
71153 2002-12-03  Jim Meyering  <jim@meyering.net>
71154
71155         * lib/safe-read.c, safe-write.c: Change variable names and comments,
71156         but not semantics, to minimize the differences between these two files.
71157         (safe_read): Change comment to mention SAFE_READ_ERROR.
71158
71159         * lib/safe-read.c (IS_EINTR): Define.
71160         (safe_read): Use IS_EINTR in place of in-function cpp directives.
71161
71162 2002-12-02  Jim Meyering  <jim@meyering.net>
71163
71164         * lib/safe-read.c (EINTR): Define.
71165         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
71166         (INT_MAX): Provide fallback.
71167         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
71168
71169         * lib/safe-read.h (SAFE_READ_ERROR): Define.
71170
71171 2002-12-02  Bruno Haible  <bruno@clisp.org>
71172
71173         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
71174         Define, taken from safe-read.c.
71175         (INT_MAX): Provide fallback.
71176         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
71177         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
71178
71179         * lib/safe-read.c (EINTR): Remove definition.
71180         (safe_read): Don't use EINTR if it is absent.
71181
71182 2002-12-01  Jim Meyering  <jim@meyering.net>
71183
71184         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
71185         zero.
71186         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
71187
71188 2002-11-27  Paul Eggert  <eggert@twinsun.com>
71189
71190         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
71191         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
71192         with `if (! (value < limit)) abort ();', for readability.
71193
71194 2002-11-26  Karl Berry  <karl@gnu.org>
71195
71196         * lib/strdup.c: copy from libc again, with jim's ok.
71197         * lib/.cppi-disable: re-add strdup.c
71198
71199 2002-11-25  Karl Berry  <karl@gnu.org>
71200
71201         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
71202         instead of "strtol.c".
71203
71204 2002-11-25  Karl Berry  <karl@gnu.org>
71205
71206         * config/install-sh: update from automake for variable quoting, $0 in
71207         error msgs, etc.
71208
71209         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
71210         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
71211         entry.
71212
71213 2002-11-25  Jim Meyering  <jim@meyering.net>
71214
71215         * lib/mktime.c: Sync from libc, now that it has the latest fix.
71216
71217 2002-11-24  Karl Berry  <karl@gnu.org>
71218
71219         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
71220         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
71221
71222 2002-11-24  Jim Meyering  <jim@meyering.net>
71223
71224         Update from coreutils:
71225
71226         * lib/mktime.c: Merge in changes from libc.
71227
71228         Avoid a link-time failure on some Linux systems.
71229         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
71230         (otherwise).
71231         (__mon_yday): Declare with the STATIC attribute.
71232         (__mktime_internal): Likewise.
71233         Based on a report from Greg Schafer.
71234
71235 2002-11-23  Jim Meyering  <jim@meyering.net>
71236
71237         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
71238         Use `unsigned', not `int', as type of index.
71239
71240         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
71241
71242         * lib/fsusage.c: Remove unneeded parentheses around operands of
71243         `defined'.
71244
71245 2002-11-22  Paul Eggert  <eggert@twinsun.com>
71246
71247         * lib/quotearg.h: Allow multiple inclusion by surrounding with
71248         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
71249         so that we can be included first.
71250         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
71251         * lib/quotearg.c: Include quotearg.h immediately after config.h.
71252         No need to include stddef.h or sys/types.h any more.
71253         Surround local include files with "", not "<>".
71254         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
71255         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
71256         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
71257         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
71258         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
71259         (ISPRINT): Remove; no longer needed now that we assume C89.
71260
71261         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
71262         Preserve errno.
71263
71264         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
71265         quotearg_char): Use SIZE_MAX rather than
71266         (size_t) -1 when we are talking about "infinity".
71267
71268         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
71269
71270 2002-11-22  Paul Eggert  <eggert@twinsun.com>
71271
71272         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
71273         hint that one should use `if (! x) abort ();' rather than `assert
71274         (x);', and anyway it's one less thing to worry about configuring.
71275         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
71276         hash_rehash, hash_insert): Use abort rather than assert.
71277
71278 2002-11-22  Bruno Haible  <bruno@clisp.org>
71279
71280         * lib/safe-read.h: Assume C89. Add comments.
71281         (safe_read): Change return type to size_t.
71282         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
71283         byte counts > SSIZE_MAX correctly.
71284         * lib/safe-write.h: New file.
71285         * lib/safe-write.c: New file.
71286         * lib/full-read.h: New file.
71287         * lib/full-read.c: New file.
71288         * lib/full-write.h: Assume C89. Add comments.
71289         * lib/full-write.c: Include safe-write.h.
71290         (full_write): Rewritten to use safe_write.
71291         Suggested by Jim Meyering and Paul Eggert.
71292
71293 2002-11-21  Jim Meyering  <jim@meyering.net>
71294
71295         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
71296
71297         Merge in changes from the coreutils.
71298
71299         2002-09-25  Paul Eggert  <eggert@twinsun.com>
71300         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
71301         <stdint.h>.
71302         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
71303         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
71304         int.  Work more efficiently if X is the same width as uintmax_t.
71305         Do not compare X to -1, to avoid bogus compiler warning.
71306         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
71307         Don't assume that f_frsize and f_bsize are the same type.
71308
71309         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
71310         warning on FreeBSD.
71311
71312         * lib/makepath.c (make_path): Restore umask *before* creating the final
71313         component.
71314         (make_path): Minor reformatting.
71315
71316         * lib/xmalloc.c: Adjust to work with new autoconf macros,
71317         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
71318         HAVE_MALLOC/HAVE_REALLOC.
71319
71320         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
71321         dummy ones.  At least on GNU/Linux systems, `auto' means something
71322         else.
71323         From Michael Stone.
71324
71325 2002-11-21  Bruno Haible  <bruno@clisp.org>
71326
71327         Remove case insensitive option matching.
71328         * lib/argmatch.h (argcasematch): Remove declaration.
71329         (ARGCASEMATCH): Remove macro.
71330         (__xargmatch_internal): Remove case_sensitive argument.
71331         (XARGMATCH): Update.
71332         (XARGCASEMATCH): Remove macro.
71333         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
71334         case_sensitive argument.
71335         (argcasematch): Remove function.
71336         (__xargmatch_internal): Remove case_sensitive argument.
71337         (main): Use XARGMATCH instead of XARGCASEMATCH.
71338
71339         * lib/xmalloc.c: Change compile-time error message. Add comment about
71340         required autoconf version.
71341
71342 2002-11-20  Paul Eggert  <eggert@twinsun.com>
71343
71344         Merge argmatch cleanups from Bison.  Assume C89.
71345
71346         * lib/argmatch.c: Include config.h here, not in argmatch.h.
71347         Include stdlib.h, for EXIT_FAILURE.
71348         Always include <string.h>, since we assume C89.
71349         (EXIT_FAILURE): Remove pre-C89 bug workaround.
71350         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
71351         Include <stddef.h> instead, since it's all we need for size_t.
71352         (PARAMS): Remove.  All uses removed.
71353         (ARRAY_CARDINALITY): Do not bother to #undef.
71354         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
71355         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
71356         Remove unnecessary parentheses.
71357         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
71358         Insert necessary parentheses.
71359         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
71360         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
71361
71362 2002-11-19  Bruno Haible  <bruno@clisp.org>
71363
71364         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
71365         * lib/mbswidth.h: Include <stddef.h>, for size_t.
71366
71367         * lib/mbswidth.h (PARAMS): Remove macro.
71368         (mbswidth, mbsnwidth): Use ANSI C function declarations.
71369         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
71370
71371         * lib/gcd.h (PARAMS): Remove macro.
71372         (gcd): Use ANSI C function declarations.
71373         * lib/gcd.c (gcd): Likewise.
71374
71375 2002-11-15  Bruno Haible  <bruno@clisp.org>
71376
71377         * lib/strcspn.c: Include <stddef.h>.
71378         (strcspn): Use ANSI C function declaration. Change return type to
71379         size_t. Use NULL.
71380         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
71381         (strpbrk): Use NULL.
71382         * lib/strpbrk.h (PARAMS): Remove macro.
71383         (strpbrk): Use ANSI C function declaration.
71384         * lib/strstr.c: Don't include <sys/types.h>.
71385         * lib/strstr.h (PARAMS): Remove macro.
71386         (strstr): Use ANSI C function declarations.
71387
71388 2002-11-14  Karl Berry  <karl@gnu.org>
71389
71390         * config/mkinstalldirs: `do' on separate line, instead of
71391         `for var; do'.
71392
71393 2002-11-06  Bruno Haible  <bruno@clisp.org>
71394
71395         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
71396         * lib/gcd.c (gcd): Likewise.
71397
71398 2002-11-05  Bruno Haible  <bruno@clisp.org>
71399
71400         * lib/gcd.h: New file, from gettext-0.11.5.
71401         * lib/gcd.c: New file, from gettext-0.11.5.
71402
71403 2002-11-05  Bruno Haible  <bruno@clisp.org>
71404
71405         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71406         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71407         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71408         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
71409
71410         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
71411         <libintl.h>.
71412         * lib/makepath.c: Include gettext.h instead of <locale.h> and
71413         <libintl.h>.
71414
71415         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
71416         * lib/human.c: Include gettext.h instead of <libintl.h>.
71417         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
71418         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
71419         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
71420         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
71421         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
71422         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
71423         (textdomain): Remove definition.
71424         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
71425
71426         * lib/long-options.c: Remove include of <libintl.h> and definition of
71427         _.
71428         * lib/same.c: Remove include of <libintl.h> and definition of _.
71429
71430 2002-11-04  Owen Taylor  <otaylor@redhat.com>
71431
71432         * lib/config.charset: A few additions for Solaris.
71433
71434 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
71435
71436         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
71437         * lib/localcharset.c (locale_charset): Declare as extern "C".
71438
71439 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
71440
71441         * lib/config.charset: msdos in uk_UA uses CP1125.
71442
71443 2002-11-04  Bruno Haible  <bruno@clisp.org>
71444
71445         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
71446         * lib/strcase.h: New file, from GNU gettext-0.11.5.
71447         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
71448         * lib/strstr.h: New file, from GNU gettext-0.11.5.
71449         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
71450
71451 2002-11-04  Bruno Haible  <bruno@clisp.org>
71452
71453         * lib/localcharset.c (locale_charset): Don't return an empty string.
71454
71455 2002-11-04  Bruno Haible  <bruno@clisp.org>
71456
71457         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
71458         aliases.
71459
71460 2002-11-04  Bruno Haible  <bruno@clisp.org>
71461
71462         * lib/config.charset: Update for newest glibc. Add canonical names
71463         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
71464
71465 2002-11-04  Bruno Haible  <bruno@clisp.org>
71466
71467         * lib/config.charset: Add support for NetBSD.
71468
71469 2002-11-04  Bruno Haible  <bruno@clisp.org>
71470
71471         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
71472
71473 2002-11-01  Bruno Haible  <bruno@clisp.org>
71474
71475         * configure.in: Add AC_CONFIG_AUX_DIR call.
71476         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
71477         test/Makefile.
71478         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
71479
71480 2002-09-28  Karl Berry  <karl@gnu.org>
71481
71482         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
71483         installed automake until the next release, since changes have been
71484         made.
71485
71486 2002-09-25  Karl Berry  <karl@gnu.org>
71487
71488         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
71489         * lib/getopt*: copy from libc/posix.
71490         * lib/gettext.h: copy from gettext.
71491         * lib/.cppi-disable: add strdup.c, gettext.h.
71492
71493 2002-09-25  Karl Berry  <karl@gnu.org>
71494
71495         * config/srclist.txt: enable gettext.h check.
71496         * config/config.{guess,sub}: update from prep.
71497         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
71498                 from automake 1.6.3.
71499         See srclist*.
71500
71501 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
71502
71503         * regex.c (PATFETCH): Remove the translating fetch.
71504         (PATFETCH_RAW): Rename to PATFETCH.
71505         (set_image_of_range): New fun.
71506         (SET_RANGE_TABLE_WORK_AREA): Use it.
71507         (regex_compile): Don't translate the pattern chars so eagerly.
71508         Only do it when inserting an `exactn' bytecode or when handling
71509         a char-range.
71510         (mutually_exclusive_p): Avoid empty statement.
71511
71512 2002-07-06  Jim Meyering  <meyering@lucent.com>
71513
71514         * m4/README: Don't mention Makefile.am.in.
71515         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
71516
71517 2002-07-01  Jim Meyering  <meyering@lucent.com>
71518
71519         * lib/c-stack.c: Include sys/time.h.
71520         From Volker Borchert.
71521
71522 2002-06-26  Paul Eggert  <eggert@twinsun.com>
71523
71524         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
71525
71526 2002-06-26  Paul Eggert  <eggert@twinsun.com>
71527
71528         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
71529         New macro.  Use it uniformly instead of
71530         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
71531         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
71532         reported by Vin Shelton.
71533
71534 2002-06-22  Paul Eggert  <eggert@twinsun.com>
71535
71536         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
71537         Do not assume SA_SIGINFO behavior.
71538         Bug reported by Jim Meyering on NetBSD 1.5.2.
71539
71540 2002-06-22  Jim Meyering  <meyering@lucent.com>
71541
71542         * m4/c-stack.m4: New file, from diffutils-2.8.2.
71543         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
71544
71545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
71546         now that configure.ac uses AC_GNU_SOURCE.
71547         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
71548         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
71549
71550         Update to latest tools.  Suggestions from Paul Eggert.
71551         * m4/stdbool.m4: New file, from diffutils-2.8.2.
71552         * m4/gnu-source.m4: Update from diffutils-2.8.2.
71553         * m4/fnmatch.m4: Likewise.
71554         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
71555         to AC_HEADER_STDBOOL
71556
71557 2002-06-22  Jim Meyering  <meyering@lucent.com>
71558
71559         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
71560         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
71561
71562 2002-06-22  Jim Meyering  <meyering@lucent.com>
71563
71564         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
71565
71566         * lib/exitfail.c, exitfail.h: Likewise.
71567         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
71568
71569         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
71570         of fnmatch.h.
71571         (EXTRA_DIST): Add fnmatch_loop.c.
71572         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
71573
71574         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
71575         * lib/fnmatch.c: Update from diffutils-2.8.2.
71576         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
71577         * lib/fnmatch.h: Remove file.
71578
71579 2002-06-21  Jim Meyering  <meyering@lucent.com>
71580
71581         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
71582         * m4/mbrtowc.m4: Likewise.
71583
71584         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
71585         * m4/mbswidth.m4: Reflect name change:
71586         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
71587         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
71588
71589         * m4/lib-link.m4: Update from gettext-0.11.2.
71590         * m4/gettext.m4: Likewise.
71591
71592         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
71593         From Alfred M. Szmidt.
71594
71595 2002-06-18  Paul Eggert  <eggert@twinsun.com>
71596
71597         * lib/file-type.h: Report an error if neither S_ISREG nor
71598         S_IFREG is defined, instead of using a test specific to glibc
71599         2.2.  This should be safe, since POSIX requires S_ISREG and
71600         Unix Version 7 had S_IFREG.  We don't need to check for
71601         <sys/types.h> since we don't use any symbols that it defines.
71602
71603 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
71604
71605         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
71606         $@-t, so that each temporary file name is unique and valid in the first
71607         8 characters, for operation under DOS.
71608
71609 2002-06-15  Paul Eggert  <eggert@twinsun.com>
71610
71611         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
71612
71613 2002-06-15  Jim Meyering  <meyering@lucent.com>
71614
71615         Work even with DJGPP 2.03, which lacks support for symlinks.
71616         From Richard Dawe.
71617         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
71618         is defined.
71619         * lib/lchown.c (S_ISLNK): Likewise.
71620
71621 2002-06-15  Jim Meyering  <meyering@lucent.com>
71622
71623         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
71624         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
71625         have been included before this file.
71626
71627 2002-06-14  Jim Meyering  <meyering@lucent.com>
71628
71629         * lib/file-type.h: Use the version from diffutils-2.8.2.
71630         * lib/file-type.c: Likewise.
71631
71632 2002-06-07  Jim Meyering  <meyering@lucent.com>
71633
71634         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
71635         They're needed at least for NetBSD 1.5.2.
71636         ($statxfs_includes): Include those same headers.
71637         ($statxfs_includes): Include sys/vfs.h if available.
71638         ($statxfs_includes): Likewise for sys/statvfs.h.
71639         Check for the following members in both structs statfs and statvfs:
71640         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
71641
71642 2002-06-01  Jim Meyering  <meyering@lucent.com>
71643
71644         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
71645         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
71646
71647 2002-05-28  Jim Meyering  <meyering@lucent.com>
71648
71649         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
71650         Reported by Volker Borchert.
71651
71652 2002-05-27  Jim Meyering  <meyering@lucent.com>
71653
71654         Fix a problem seen only on nonconforming systems whereby ls.c's
71655         use of localtime, and then of gettimeofday would cause trouble:
71656         the localtime call used to initialize rpl_gettimeofday's save
71657         mechanism would clobber ls's current local time information so
71658         that in any long listing the first file would always be listed
71659         with date 1970-01-01.  Analysis by Volker Borchert.
71660
71661         * lib/gettimeofday.c (localtime): Undefine.
71662         (rpl_localtime): New function.
71663
71664 2002-05-27  Jim Meyering  <meyering@lucent.com>
71665
71666         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
71667         localtime.
71668
71669         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
71670         use the replacement function; it wouldn't resolve at link time.
71671         Reported by Volker Borchert.
71672
71673 2002-05-22  Jim Meyering  <meyering@lucent.com>
71674
71675         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
71676         file-type.h.
71677         * lib/file-type.h: New file.
71678         * lib/file-type.c (file_type): New file/function.  Extracted from
71679         diffutils.
71680
71681 2002-04-30  Jim Meyering  <meyering@lucent.com>
71682
71683         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
71684
71685 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71686
71687         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
71688
71689 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71690
71691         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
71692         Do not check for alloca.h (no longer used) or stdbool.h (was never
71693         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
71694
71695 2002-04-29  Paul Eggert  <eggert@twinsun.com>
71696
71697         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
71698
71699 2002-04-29  Jim Meyering  <meyering@lucent.com>
71700
71701         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
71702         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
71703         Use AC_FUNC_STRNLEN here instead.
71704
71705         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
71706         With autoconf-2.53a, it's part of AC_PROG_CC.
71707
71708 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71709
71710         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
71711         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
71712
71713 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71714
71715         * lib/sig2str.h, lib/sig2str.c: New files.
71716         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
71717
71718 2002-04-28  Paul Eggert  <eggert@twinsun.com>
71719
71720         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
71721         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
71722         of 127, since 64 is the largest conceivable number for ancient
71723         nonstandard hosts.
71724         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
71725
71726 2002-04-28  Jim Meyering  <meyering@lucent.com>
71727
71728         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
71729
71730 2002-04-24  Jim Meyering  <meyering@lucent.com>
71731
71732         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
71733         (jm_PREREQ): Use it.
71734
71735         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
71736         mach/mach.h fcntl.h.
71737         Check for this function: setlocale.
71738
71739 2002-04-24  Jim Meyering  <meyering@lucent.com>
71740
71741         * lib/gettext.h: New file, from Gettext.
71742         * lib/Makefile.am (INCLUDES): Remove -I../intl.
71743         (libfetish_a_SOURCES): Add gettext.h.
71744
71745 2002-04-16  Jim Meyering  <meyering@lucent.com>
71746
71747         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
71748         ut_pid, ut_id, ut_exit.
71749
71750 2002-04-16  Jim Meyering  <meyering@lucent.com>
71751
71752         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
71753         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
71754         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
71755
71756 2002-04-12  Jim Meyering  <meyering@lucent.com>
71757
71758         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
71759         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
71760         existence of the getmntinfo function.  Needed for Darwin 5.3.
71761
71762         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
71763         This is necessary at least on Darwin 5.3.
71764
71765         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
71766         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
71767         strnlen.o in the library, and that makes some versions of ranlib
71768         object.
71769
71770 2002-04-12  Jim Meyering  <meyering@lucent.com>
71771
71772         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
71773
71774 2002-04-09  Jim Meyering  <meyering@lucent.com>
71775
71776         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
71777         to be more precise.  Rather than saying we're checking whether the
71778         function `works', say what we're testing.
71779         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
71780         Reported by Bruno Haible.
71781
71782 2002-03-10  Jim Meyering  <meyering@lucent.com>
71783
71784         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
71785         Suggestion from Santiago Vila.
71786
71787 2002-03-08  Jim Meyering  <meyering@lucent.com>
71788
71789         * lib/rename.c: Mention that this wrapper is needed also on
71790         mips-dec-ultrix4.4 systems.
71791
71792 2002-03-02  Jim Meyering  <meyering@lucent.com>
71793
71794         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
71795         not HAVE_CLOCK_SETTIME.
71796
71797 2002-02-27  Paul Eggert  <eggert@twinsun.com>
71798
71799         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
71800         Check for clock_settime.
71801
71802 2002-02-27  Paul Eggert  <eggert@twinsun.com>
71803
71804         * lib/nanosleep.h: Rename to....
71805         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
71806
71807         * lib/gettime.c: New file.
71808         * lib/settime.c: New file.
71809         * lib/stime.c: Remove.
71810
71811         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
71812         timespec.h.  Remove nanosleep.h.
71813
71814 2002-02-25  Paul Eggert  <eggert@twinsun.com>
71815
71816         * m4/acl.m4: New file.
71817         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
71818         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
71819
71820 2002-02-25  Paul Eggert  <eggert@twinsun.com>
71821
71822         * lib/acl.c, lib/acl.h: New files.
71823         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
71824
71825 2002-02-24  Jim Meyering  <meyering@lucent.com>
71826
71827         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
71828         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
71829         cause trouble.  Reported by Nelson Beebe.
71830
71831 2002-02-23  Paul Eggert  <eggert@twinsun.com>
71832
71833         * lib/path-concat.c (xpath_concat): Reorder code to pacify
71834         compilers that don't know that xalloc_die never returns.
71835
71836 2002-02-20  Jim Meyering  <meyering@lucent.com>
71837
71838         * lib/getdate.c: Regenerate using bison-1.33.
71839
71840 2002-02-17  Jim Meyering  <meyering@lucent.com>
71841
71842         * config/config.guess (main): Don't use `head -1'; it's no longer
71843         portable. Use `sed 1q' instead.
71844
71845 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
71846
71847         * m4/codeset.m4: Upgrade to gettext-0.11.
71848         * m4/gettext.m4: Upgrade to gettext-0.11.
71849         * m4/glibc21.m4: Upgrade to gettext-0.11.
71850         * m4/iconv.m4: Upgrade to gettext-0.11.
71851         * m4/isc-posix.m4: Upgrade to gettext-0.11.
71852         * m4/lcmessage.m4: Upgrade to gettext-0.11.
71853         * m4/lib-ld.m4: New file, from gettext-0.11.
71854         * m4/lib-link.m4: New file, from gettext-0.11.
71855         * m4/lib-prefix.m4: New file, from gettext-0.11.
71856         * m4/progtest.m4: Upgrade to gettext-0.11.
71857
71858 2002-02-15  Paul Eggert  <eggert@twinsun.com>
71859
71860         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
71861         (jm_PREREQ): Use it.
71862
71863 2002-02-15  Paul Eggert  <eggert@twinsun.com>
71864
71865         * lib/posixver.c, lib/posixver.h: New files.
71866         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
71867
71868 2002-02-02  Paul Eggert  <eggert@twinsun.com>
71869             Bruno Haible  <bruno@clisp.org>
71870
71871         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
71872         (fwrite_success_callback): New declaration.
71873         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
71874         print_unicode_char. Call failure callback instead of error.
71875         (fwrite_success_callback): New function.
71876         (exit_failure_callback): New function.
71877         (fallback_failure_callback): New function.
71878         (print_unicode_char): Call unicode_to_mb.
71879
71880 2002-01-26  Jim Meyering  <meyering@lucent.com>
71881
71882         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
71883         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
71884
71885 2002-01-26  Jim Meyering  <meyering@lucent.com>
71886
71887         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
71888
71889 2002-01-22  Paul Eggert  <eggert@twinsun.com>
71890
71891         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
71892
71893 2002-01-22  Jim Meyering  <meyering@lucent.com>
71894
71895         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
71896         Otherwise, some versions of automake would omit the rule that makes
71897         Makefile from Makefile.in.
71898
71899 2002-01-21  Paul Eggert  <eggert@twinsun.com>
71900
71901         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
71902         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
71903         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
71904         (memcoll): Set errno to zero if there is no error.
71905
71906         * lib/quotearg.c (quotearg_buffer_restyled):
71907         Fix bug with quoting buffers containing NUL when backslashing escapes.
71908         This bug was exposed by the other changes in this patch.
71909         (quotearg_n_options): New arg ARGSIZE.
71910         All callers changed.
71911         (quoting_options_from_style): New function.
71912         (quotearg_n_style): Use it.
71913         (quotearg_n_style_mem): New function.
71914
71915         * lib/quotearg.h (quotearg_n_style_mem): New function.
71916
71917 2002-01-19  Jim Meyering  <meyering@lucent.com>
71918
71919         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
71920         Remove useless quotes: DF_PROG="df".
71921         * m4/strnlen.m4: New file.
71922
71923 2002-01-16  Paul Eggert  <eggert@twinsun.com>
71924
71925         * lib/backupfile.c (ISDIGIT): Comment fix.
71926         * lib/getdate.y (ISDIGIT): Likewise.
71927         * lib/posixtm.c (ISDIGIT, year): Likewise.
71928         * lib/strverscmp.c (ISDIGIT): Likewise.
71929         * lib/userspec.c (ISDIGIT): Likewise.
71930
71931 2002-01-16  Jim Meyering  <meyering@lucent.com>
71932
71933         * lib/getdate.y: Add three semicolons, each just before a closing
71934         brace. Bison (as of version 1.31) no longer papers over that mistake.
71935
71936 2002-01-05  Jim Meyering  <meyering@lucent.com>
71937
71938         * lib/version-etc.c (version_etc_copyright): Update copyright year.
71939
71940 2001-12-19  Paul Eggert  <eggert@twinsun.com>
71941
71942         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
71943         not silently exit merely because the output buffer happens to
71944         have nothing pending.
71945
71946 2001-12-18  Paul Eggert  <eggert@twinsun.com>
71947
71948         See the big note in ../ChangeLog.
71949         * lib/human.c (suffixes): Prefer K to k for 1024.
71950         (generate_suffix_backwards): New function.
71951         (human_readable_inexact): Use it.
71952         * lib/xstrtol.c (__xstrtol): If there is no number but there
71953         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
71954         Accept 'K' as well as 'k'.
71955
71956 2001-12-15  Jim Meyering  <meyering@lucent.com>
71957
71958         * lib/regex.h (__restrict_arr): Update from libc.
71959
71960         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
71961         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
71962         (STREQ): Define.
71963
71964 2001-12-14  Jim Meyering  <meyering@lucent.com>
71965
71966         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
71967         Suggestion from Bruno Haible.
71968
71969 2001-12-10  Jim Meyering  <meyering@lucent.com>
71970
71971         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
71972         xrealloc, Instead, include "xalloc.h".
71973         (initbuffer): Don't cast xmalloc return value to char*.
71974         (readline): Reword comment.
71975         Don't cast xrealloc return value to char*
71976         Return NULL, not 0.
71977
71978 2001-12-09  Jim Meyering  <meyering@lucent.com>
71979
71980         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
71981         about `signed and unsigned type in conditional expression'.
71982         * lib/posixtm.c (posix_time_parse): Likewise.
71983
71984         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
71985
71986         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
71987         to avoid a pedantic warning.
71988
71989         * lib/getstr.c: Don't include assert.h.
71990         (getstr): Remove warning-evoking assertions.
71991         Return -1 if offset parameter is out of bounds.
71992         Change the type of a local from int to size_t.
71993
71994         * lib/strftime.c (my_strftime_localtime_r): Include this function
71995         definition in the `#if ! HAVE_TM_GMTOFF' block.
71996
71997         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
71998         Include xalloc.h instead.
71999
72000 2001-12-02  Jim Meyering  <meyering@lucent.com>
72001
72002         * lib/tempname.c: Don't declare getenv, thus reverting the change of
72003         2001-11-18.  It's no longer necessary, now that stdlib.h is always
72004         included.
72005
72006         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
72007         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
72008
72009 2001-11-30  Akim Demaille  <akim@epita.fr>
72010
72011         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
72012         before being defined.
72013
72014 2001-11-27  Paul Eggert  <eggert@twinsun.com>
72015
72016         * lib/quotearg.h (quotearg_n, quotearg_n_style):
72017         First arg is int, not unsigned.
72018         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
72019         (SIZE_MAX, UINT_MAX): New macros.
72020         (quotearg_n_options): Abort if N is negative.
72021         Avoid overflow check on hosts where size_t is 64 bits and int
72022         is 32 bits, as overflow is impossible there.
72023         Fix off-by-one typo that caused unnecessary reallocation.
72024
72025 2001-11-27  Jim Meyering  <meyering@lucent.com>
72026
72027         * lib/tempname.c: Merge with version from libc.
72028         * lib/regex.c: Likewise.
72029
72030         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
72031         systems for which STDC_HEADERS is 0, it was not included, resulting in
72032         a warning about an integer-to-pointer conversion problem with getenv.
72033         Reported by Volker Borchert.
72034
72035 2001-11-26  Jim Meyering  <meyering@lucent.com>
72036
72037         * lib/gtod.h: Remove file.
72038         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
72039         * lib/gettimeofday.c: Don't include gtod.h.
72040         (GTOD_init): Remove function.
72041         (rpl_gettimeofday): Do its job here instead, rather than aborting.
72042         Suggestion from Volker Borchert.
72043
72044 2001-11-23  Jim Meyering  <meyering@lucent.com>
72045
72046         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
72047         it.
72048         * lib/hash.c (struct hash_table): Define it here instead.
72049
72050 2001-11-22  Jim Meyering  <meyering@lucent.com>
72051
72052         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
72053
72054 2001-11-20  Jim Meyering  <meyering@lucent.com>
72055
72056         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
72057         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
72058
72059 2001-11-19  Jim Meyering  <meyering@lucent.com>
72060
72061         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
72062         directory.  Use "conftestXXXXXX" as the template.
72063         Suggestion from Paul Eggert.
72064
72065         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
72066         immediately, so the test doesn't mistakenly hit the max-open-files
72067         limit.
72068
72069 2001-11-18  Paul Eggert  <eggert@twinsun.com>
72070
72071         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
72072         (TEMPORARIES): New macro.
72073         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
72074         removes an artificial limitation (e.g. HP-UX 10.20, where
72075         TMP_MAX is 17576).
72076
72077 2001-11-18  Jim Meyering  <meyering@lucent.com>
72078
72079         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
72080
72081 2001-11-18  Jim Meyering  <meyering@lucent.com>
72082
72083         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
72084         on SunOS 4.
72085
72086         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
72087         files will be created before anything else.
72088
72089 2001-11-17  Paul Eggert  <eggert@twinsun.com>
72090
72091         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
72092         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
72093
72094 2001-11-17  Jim Meyering  <meyering@lucent.com>
72095
72096         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
72097         Prompted by a report from Bob Proulx.
72098
72099         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
72100         Instead, require UTILS_FUNC_MKSTEMP.
72101
72102 2001-11-17  Jim Meyering  <meyering@lucent.com>
72103
72104         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
72105         Now, that's done as part of AC_FUNC_STRTOD.
72106
72107 2001-11-17  Jim Meyering  <meyering@lucent.com>
72108
72109         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
72110         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
72111         rather than group writable.  Patch by Juan F. Codagnone.
72112
72113         * lib/readtokens.c: Remove explicit declarations of xmalloc and
72114         xrealloc, Instead, include "xalloc.h".
72115
72116         * lib/mountlist.c: Include unlocked-io.h after all system headers.
72117         Remove explicit declarations of xmalloc, xrealloc,
72118         and xstrdup.  Instead, include "xalloc.h".
72119
72120         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
72121         unlocked-io.h.
72122         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
72123         Likewise.
72124         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
72125
72126         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
72127         Reported by Padraig Brady.
72128
72129         * lib/mkstemp.c: #undef mkstemp.
72130         Include config.h.
72131         (rpl_mkstemp): Rename from mkstemp.
72132         Protoize.
72133
72134 2001-11-16  Jim Meyering  <meyering@lucent.com>
72135
72136         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
72137         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
72138         determine the amount of total physical memory, use pstat_getstatic.
72139         HPUX-11 doesn't define _SC_PHYS_PAGES.
72140         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
72141         If sysconf couldn't be used to determine the amount of available
72142         physical memory, use both pstat_getstatic and pstat_getdynamic.
72143         Based on a patch from Bob Proulx.
72144
72145 2001-11-10  Jim Meyering  <meyering@lucent.com>
72146
72147         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
72148         (jm_PREREQ): Use it.
72149
72150 2001-11-09  Jim Meyering  <meyering@lucent.com>
72151
72152         * m4/jm-macros.m4: Require autoconf-2.52f.
72153         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
72154         Use these AC_-prefixed names, not the AM_-prefixed ones.
72155
72156         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
72157
72158 2001-11-05  Jim Meyering  <meyering@lucent.com>
72159
72160         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
72161
72162 2001-11-04  Jim Meyering  <meyering@lucent.com>
72163
72164         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
72165         $DEFS.
72166
72167 2001-11-03  Jim Meyering  <meyering@lucent.com>
72168
72169         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
72170         of AC_DEFUN.
72171
72172         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
72173         know the name of the variable in the macro definition.
72174
72175 2001-11-03  Jim Meyering  <meyering@lucent.com>
72176
72177         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
72178         in argmatch_to_argument call.
72179
72180         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
72181         argument.
72182
72183         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
72184         e.g., a fault due to an attempt to free a NULL pointer.
72185
72186 2001-11-01  Jim Meyering  <meyering@lucent.com>
72187
72188         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
72189         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
72190
72191 2001-11-01  Jim Meyering  <meyering@lucent.com>
72192
72193         * lib/dirfd.c, lib/dirfd.h: New files.
72194         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
72195
72196         * lib/hash.c (hash_print) [TESTING]: Clean up.
72197
72198 2001-10-22  Paul Eggert  <eggert@twinsun.com>
72199
72200         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
72201         to avoid a warning if -Wall.
72202
72203 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
72204
72205         * README: New file
72206         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
72207         (per RMS's instructions, this is now the canonical source)
72208         * lgpl/, gpl/: New directories.
72209
72210 2001-10-21  Paul Eggert  <eggert@twinsun.com>
72211
72212         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
72213
72214 2001-10-21  Jim Meyering  <meyering@lucent.com>
72215
72216         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
72217         this code would end up calling gettext even in packages built
72218         with --disable-nls.
72219         * lib/getopt.c (_): Likewise.
72220         * lib/regex.c (_): Likewise.
72221
72222 2001-10-20  Paul Eggert  <eggert@twinsun.com>
72223
72224         * m4/error.m4 (jm_PREREQ_ERROR):
72225         Do not invoke AC_CHECK_FUNCS with strerror_r, as
72226         AC_FUNC_STRERROR_R does that.
72227         Check for strerror declaration.
72228
72229         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
72230         are supposed to have them these days.
72231         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
72232         Merge changes from latest Autoconf CVS.
72233         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
72234         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
72235         POSIX decided to standardize on the int flavor of strerror_r.
72236
72237 2001-10-20  Paul Eggert  <eggert@twinsun.com>
72238
72239         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
72240         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
72241         Use strerror_r that is only a macro, even if it is not a function.
72242         (strerror): Check for HAVE_DECL_STRERROR before declaring.
72243         (private_strerror): Use prototypes, not old-style function definition.
72244         (print_errno_message): New function.
72245         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
72246         char*-flavored one.
72247         (error_tail, error, error_at_line): Use it.
72248
72249 2001-10-11  Jim Meyering  <meyering@lucent.com>
72250
72251         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
72252         and quote_n (1, ... to avoid clobbering a buffer.
72253
72254 2001-10-05  Jim Meyering  <meyering@lucent.com>
72255
72256         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
72257         hash-pjw.h.
72258         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
72259         * lib/hash-pjw.h: New file.
72260
72261 2001-09-30  Jim Meyering  <meyering@lucent.com>
72262
72263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
72264         `struct fsstat' has the `f_fstypename' member.
72265         Use that to define FS_TYPE, which is now used to make
72266         the getfsstat link test tighter.
72267
72268 2001-09-30  Jim Meyering  <meyering@lucent.com>
72269
72270         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
72271         Include <sys/ucred.h>, for Apple Darwin.
72272         Include sys/mount.h and sys/fs_types.h only if available.
72273         (FS_TYPE): Define.
72274         (read_filesystem_list): Use FS_TYPE.
72275
72276 2001-09-29  Paul Eggert  <eggert@twinsun.com>
72277
72278         * lib/exclude.c (excluded_filename): 0 -> false, since it's
72279         a boolean context.
72280
72281 2001-09-29  Jim Meyering  <meyering@lucent.com>
72282
72283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
72284         [one-argument getmntent function]): Include stdio.h before mntent.h.
72285         SunOS 4.1.x needs it for the declaration of `FILE'.
72286         Patch by Volker Borchert.
72287
72288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
72289         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
72290         sys/fs_types.h, and make the link-test for getfsstat guard #include
72291         directives with appropriate #if HAVE_*_H tests so that we can
72292         detect getfsstat on Apple Darwin1.3.7 systems.
72293         Reported by Nelson Beebe.
72294         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
72295
72296 2001-09-28  Paul Eggert  <eggert@twinsun.com>
72297
72298         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
72299         #defines strtoimax.  Also treat the other strto* functions
72300         like strtoimax.
72301
72302         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
72303         Check for strtoul and strtoumax,
72304         as those declarations are made even in the signed case.
72305         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
72306         Likewise, for strtol and strtoimax.
72307
72308 2001-09-28  Paul Eggert  <eggert@twinsun.com>
72309
72310         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
72311         #defines strtoimax.  Also treat the other strto* functions
72312         like strtoimax.
72313
72314         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
72315         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
72316         (strtoimax, strtoumax): Do not declare if already defined as a macro.
72317
72318 2001-09-26  Jim Meyering  <meyering@lucent.com>
72319
72320         Most macros in unlocked-io.h had the wrong number of arguments.
72321         * lib/gen-uio: New script.
72322         (USE_UNLOCKED_IO): Define to 1 if not already defined.
72323         * lib/unlocked-io.hin: Remove file.
72324         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
72325         rather than trying to embed it here.
72326         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
72327         Reported by Padraig Brady.
72328
72329 2001-09-25  Volker Borchert  <bt@teknon.de>
72330
72331         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
72332         `result'.
72333
72334 2001-09-24  Jim Meyering  <meyering@lucent.com>
72335
72336         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
72337
72338 2001-09-23  Jim Meyering  <meyering@lucent.com>
72339
72340         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
72341         instead of the mere test for existence of mntent.h.  The latter
72342         would get a false-positive on AIX 3.4 systems.
72343         In the outer getmntent if-block, don't die if neither of the getmntent
72344         tests succeeds.  Instead, just fall through and continue with the
72345         remaining tests.
72346
72347 2001-09-23  Jim Meyering  <meyering@lucent.com>
72348
72349         * lib/mountlist.c: Remove useless parentheses in #if directives.
72350         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
72351         the deprecated MOUNTED symbol is no longer defined in mntent.h.
72352
72353 2001-09-22  Jim Meyering  <meyering@lucent.com>
72354
72355         * m4/gettext.m4: New file.  From gettext.
72356         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
72357         * m4/progtest.m4: Likewise
72358         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
72359         * m4/glibc21.m4: Likewise.
72360
72361         * m4/libintl.m4: Remove.  No longer used.
72362
72363 2001-09-22  Jim Meyering  <meyering@lucent.com>
72364
72365         * lib/localcharset.c: Update from latest gettext.
72366         * lib/config.charset: Likewise.
72367
72368 2001-09-20  Jim Meyering  <meyering@lucent.com>
72369
72370         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
72371         strtoimax.
72372         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
72373         strtoumax.
72374
72375 2001-09-20  Jim Meyering  <meyering@lucent.com>
72376
72377         * lib/xstrtol.c (strtoimax): Guard declaration with
72378         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
72379         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
72380         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
72381         (strtoumax): Likewise, for completeness (it wasn't necessary).
72382
72383 2001-09-17  Paul Eggert  <eggert@twinsun.com>
72384
72385         * lib/strtoimax.c (HAVE_LONG_LONG):
72386         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
72387         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
72388         to work around bug in IBM C compiler.
72389
72390 2001-09-17  Jim Meyering  <meyering@lucent.com>
72391
72392         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
72393         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
72394         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
72395         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
72396         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
72397         whenever the right hand side need not be expanded by the shell.
72398
72399 2001-09-16  Paul Eggert  <eggert@twinsun.com>
72400
72401         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
72402         library.  It's not correct, as some older glibcs are buggy.
72403         fnmatch wasn't fixed until glibc 2.2.
72404
72405         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
72406         special shell magic here.
72407
72408 2001-09-16  Jim Meyering  <meyering@lucent.com>
72409
72410         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
72411         * m4/jm-macros.m4: Require it.
72412
72413 2001-09-16  Jim Meyering  <meyering@lucent.com>
72414
72415         * lib/mkdir.c: New file.
72416
72417 2001-09-15  Jim Meyering  <meyering@lucent.com>
72418
72419         * m4/jm-macros.m4: Check for help2man.
72420
72421 2001-09-11  Jim Meyering  <meyering@lucent.com>
72422
72423         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
72424         The body, by Paul Eggert, was moved here from configure.in.
72425         * m4/jm-macros.m4: Require UTILS_HOST_OS.
72426
72427 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72428
72429         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
72430         (jm_PREREQ): Use it.
72431
72432 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72433
72434         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
72435         Use ssize_t, not int, to store result of readlink.
72436         Check for ssize_t overflow as well as size_t overflow,
72437         as POSIX says the result of readlink is implementation-defined
72438         when ssize_t overflows.
72439         Remove unnecessary cast to char*.
72440         Use free+malloc instead of realloc, as the storage doesn't need
72441         to be preserved and it's clearer and can be more efficient that way.
72442         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
72443         * lib/xreadlink.h (xreadlink): Update prototype.
72444
72445 2001-09-04  Paul Eggert  <eggert@twinsun.com>
72446
72447         * lib/xgetcwd.c: Revert some of the previous change; intead,
72448         fix the HAVE_GETCWD_NULL code to behave more like the
72449         !HAVE_GETCWD_NULL code used to.
72450
72451         Include "xalloc.h".
72452         (xgetcwd): Do not return NULL when memory is exhausted; instead,
72453         invoke xalloc_die.
72454
72455 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72456
72457         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
72458         sys/param.h, as pathmax.h includes them.
72459
72460 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72461
72462         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
72463         (jm_PREREQ_XGETCWD): New macro.
72464
72465         * m4/getcwd.m4: New file.
72466
72467 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72468
72469         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
72470         like the HAVE_GETCWD_NULL code.
72471         Include pathmax.h if not HAVE_GETCWD.
72472         Do not include xalloc.h.
72473         (INITIAL_BUFFER_SIZE): New symbol.
72474         Do not use xmalloc / xrealloc, since the caller is responsible for
72475         handling errors.  Preserve errno around `free' during failure.
72476         Do not overrun buffer when using getwd.
72477
72478 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72479
72480         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
72481         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
72482         getcwd (NULL, 0).
72483
72484 2001-09-03  Paul Eggert  <eggert@twinsun.com>
72485
72486         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
72487         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
72488         spotted by Jim Meyering.
72489
72490 2001-09-03  Jim Meyering  <meyering@lucent.com>
72491
72492         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
72493         failure.
72494
72495 2001-09-02  Jim Meyering  <meyering@lucent.com>
72496
72497         * lib/error.c: Update from GNU libc.
72498
72499 2001-09-01  Jim Meyering  <meyering@lucent.com>
72500
72501         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
72502         Used by df.
72503
72504 2001-09-01  Jim Meyering  <meyering@lucent.com>
72505
72506         * lib/xreadlink.c: New file.
72507         * lib/xreadlink.h: New file.
72508         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
72509         xreadlink.h.
72510
72511         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
72512         doesn't conflict with sparc Solaris 7's definition in
72513         /usr/include/sys/int_types.h.
72514
72515         * lib/exclude.c: Use `""', not `<>' to #include non-system header
72516         files.
72517         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
72518         and strncasecmp as r-values.  Unixware didn't have declarations.
72519
72520 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72521
72522         * lib/xstrtol.h: Add copyright notice.
72523         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
72524         LONGINT_INVALID_SUFFIX_CHAR.
72525
72526 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72527
72528         * lib/xstrtol.c (strtoimax): New decl.
72529
72530 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72531
72532         * lib/xgetcwd.c: Don't include pathmax.h.
72533         Include stdlib.h and unistd.h if available.
72534         Include xalloc.h.
72535         (xmalloc, xstrdup, free): Remove decls.
72536         (xgetcwd): Don't assume sizes fit in unsigned.
72537         Check for overflow when computing sizes.
72538         Simplify reallocation code.
72539
72540 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72541
72542         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
72543         a directory's st_size can have an arbitrary value, so the old
72544         usage could waste an arbitrary amount of memory.  All uses
72545         changed.
72546         * lib/savedir.h: Update prototype.
72547
72548 2001-08-31  Paul Eggert  <eggert@twinsun.com>
72549
72550         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
72551
72552         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
72553         old strtoimax.c.
72554
72555         Also, make the following further changes to make this file's
72556         configuration more similar to that of strtol.c:
72557         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
72558         (strtoumax, uintmax_t, strtoull, strtol): Remove.
72559         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
72560         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
72561         changed to signed values.
72562
72563         And make the following changes as well:
72564         Fix copyright notice, as 1999 was missing.
72565         (verify): New macro.
72566         (strtoimax): Check sizes at compile-time, not run-time.
72567         Prefer strtol to strtoll if both work.
72568         (main): Remove; it was not that useful and was a pain to maintain.
72569
72570         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
72571
72572 2001-08-31  Jim Meyering  <meyering@lucent.com>
72573
72574         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
72575         Use an initial, malloc'd, buffer of length 128 rather than
72576         a statically allocated one of length 1024.
72577
72578 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72579
72580         Simplify code, partly by assuming autoconf 2.52 semantics.
72581
72582         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
72583
72584         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
72585         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
72586         All uses removed.
72587         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
72588         Move AC_REQUIRE to next-to-top level, to avoid confusion.
72589         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
72590         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
72591         jm_AC_HEADER_INTTYPES_H.
72592         * m4/jm-macros.m4 (jm_MACROS): Likewise.
72593
72594         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
72595
72596         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
72597         Quote first arg of AC_DEFUN.
72598         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
72599         since they are needed to parse the include file even if we need
72600         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
72601         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
72602         but with opposite signedness.
72603
72604 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72605
72606         Merge 'exclude' changes from tar 1.13.22.
72607         This fixes one or two unlikely storage allocation overflow bugs,
72608         but doesn't change user-visible behavior otherwise.
72609
72610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72611
72612         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
72613         (jm_PREREQ_EXCLUDE): New macro.
72614
72615 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72616
72617         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
72618         tm to be declared.
72619
72620 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72621
72622         * lib/hash.c: Remove '2001' from copyright notice.
72623
72624 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72625
72626         * lib/full-write.h: New file.
72627         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
72628         * lib/full-write.c: Correct credits, as cccp.c no longer
72629         exists and anyway it was so heavily changed from the old cccp
72630         code as to be unrecognizable.  Include full-write.h.
72631         (full_write) Return size_t, with short writes meaning failure.
72632         All callers changed.  This fixes a bug with large buffers
72633         on 64-bit hosts.
72634         * lib/utime.c: Include full-write.h.
72635
72636 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72637
72638         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
72639         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
72640         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
72641         Include if available.
72642         (<xalloc.h>): Include
72643         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
72644         (verify): New macro.  Use it to verify that EXCLUDE macros do not
72645         collide with FNM macros.
72646         (struct patopts): New struct.
72647         (struct exclude): Use it, as exclude patterns now come with options.
72648         (new_exclude): Support above changes.
72649         (new_exclude, add_exclude_file):
72650         Initial size must now be a power of two to simplify overflow checking.
72651         (free_exclude, fnmatch_no_wildcards): New function.
72652         (excluded_filename): No longer requires options arg, as the options
72653         are determined by add_exclude.  Now returns bool, not int.
72654         (excluded_filename, add_exclude):
72655         Add support for the fancy new exclusion options.
72656         (add_exclude, add_exclude_file): Now takes int options arg.
72657         Check for arithmetic overflow when computing sizes.
72658         (add_exclude_file): xrealloc might modify errno, so don't
72659         realloc until after errno might be used.
72660
72661         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
72662         New macros.
72663         (free_exclude): New decl.
72664         (add_exclude, add_exclude_file): Now takes int options arg.
72665         (excluded_filename): No longer requires options arg, as the options
72666         are determined by add_exclude.  Now returns bool, not int.
72667
72668 2001-08-30  Paul Eggert  <eggert@twinsun.com>
72669
72670         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
72671
72672 2001-08-27  Jim Meyering  <meyering@lucent.com>
72673
72674         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
72675
72676         * lib/version-etc.c (N_): Remove definition.
72677         Revert most of last change.
72678         Instead, simply don't mark the `Copyright...' string for translation.
72679         Based on advice from Paul Eggert.
72680
72681         * lib/strtoxmax.c: Tweak comment.
72682
72683 2001-08-26  Jim Meyering  <meyering@lucent.com>
72684
72685         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
72686
72687         * m4/xstrtoimax.m4: New file.
72688         * m4/xstrtoumax.m4: Add comments explaining why we
72689         AC_REPLACE_FUNCS(strtol).
72690
72691 2001-08-26  Jim Meyering  <meyering@lucent.com>
72692
72693         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
72694         of copyright with `%s' so translators don't get an untranslated
72695         message in 2002.
72696         (COPYRIGHT_YEAR): Define.
72697         (version_etc): Use fprintf rather than fputs.
72698         Suggestion from Ulrich Drepper.
72699
72700         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
72701
72702         * lib/strtoll.c: New file, from GNU libc.
72703         * lib/xstrtoimax.c: New file.
72704
72705         * lib/xstrtol.h: Add xstrtoimax.
72706         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
72707         * lib/strtoimax.c: New file.  Likewise, but first define
72708         STRTOUXMAX_SIGNED.
72709
72710         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
72711         ...
72712         * lib/strtoxmax.c: ... then renamed to this.
72713
72714 2001-08-18  Paul Eggert  <eggert@twinsun.com>
72715
72716         * m4/inttypes.m4: Add AC_PREREQ(2.13).
72717         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
72718         (jm_AC_TYPE_INTMAX_T): New macro.
72719         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
72720
72721         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
72722
72723         * m4/longlong.m4: Renamed from ulonglong.m4.
72724         * m4/inttypes.m4: Renamed from inttypes_h.m4.
72725         * m4/uintmax_t.m4: Removed.
72726
72727 2001-08-13  Paul Eggert  <eggert@twinsun.com>
72728
72729         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
72730         Port to Solaris 8, where 'sed' requires a space after the 'r'
72731         command, and where sh dislikes "$/".  Clean up the spacing a bit.
72732         Redirect output to $tmp just once.
72733
72734 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
72735
72736         * lib/addext.c (<errno.h>): Include.
72737         (errno): Declare if not defined.
72738         (addext): Work correctly when pathconf returns -1 and leaves
72739         errno alone because there is no limit.  Also, work even if
72740         pathconf returns a value greater than SIZE_MAX.
72741
72742 2001-08-12  Jim Meyering  <meyering@lucent.com>
72743
72744         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
72745         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
72746         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
72747         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
72748         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
72749         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
72750         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
72751         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
72752         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
72753         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
72754         utime.m4, utimes.m4, xstrtoumax.m4:
72755         Quote the first argument in each use of AC_DEFUN.
72756
72757 2001-08-12  Jim Meyering  <meyering@lucent.com>
72758
72759         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
72760         Simply `return getcwd (NULL, 0);'.
72761         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
72762         Use 1300 as initial value for length, not PATH_MAX.
72763
72764         * lib/pathmax.h: Clean up cpp syntax.
72765
72766 2001-08-12  Jim Meyering  <meyering@lucent.com>
72767
72768         * lib/gettimeofday.c: New file.
72769         * lib/gtod.h: New file.
72770         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
72771
72772 2001-08-05  Jim Meyering  <meyering@lucent.com>
72773
72774         * m4/jm-macros.m4: Require autoconf-2.52.
72775
72776 2001-08-04  Jim Meyering  <meyering@lucent.com>
72777
72778         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
72779         stmt, to get in sync with glibc.
72780
72781 2001-08-03  Paul Eggert  <eggert@twinsun.com>
72782
72783         The following changes are from gettext 0.10.39 as maintained by
72784         Bruno Haible.
72785
72786         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
72787         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
72788         with inverted sense.  All uses changed.
72789
72790         * lib/mbswidth.c: Don't include <limits.h>.
72791         Include <stdlib.h> and <string.h> unconditionally.
72792         (iswcntrl, mbsinit, ISCNTRL): New macros.
72793         (mbsnwidth): Use K&R style function declarations.
72794         Don't bother checking for MB_LEN_MAX == 1, since the compiler
72795         can optimize it when MB_CUR_MAX == 1.
72796         The width of control characters is zero, not 1.
72797
72798 2001-08-03  Paul Eggert  <eggert@twinsun.com>
72799
72800         The following changes are from gettext 0.10.39 as maintained by
72801         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
72802
72803         * m4/codeset.m4: Upgrade to serial AM1.
72804         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
72805         all uses changed.  Quote first arg of AC_DEFUN.
72806         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
72807
72808         * m4/iconv.m4: Upgrade to serial AM2.
72809         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
72810         Add --with-libconv-prefix.
72811         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
72812         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
72813         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
72814         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
72815         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
72816
72817         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
72818         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
72819         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
72820         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
72821         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
72822         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
72823         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
72824         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
72825         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72826
72827         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
72828         string.h any more.
72829
72830         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
72831         not the default value.
72832
72833         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
72834         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
72835         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
72836         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
72837         Also check for iswcntrl, used for wcwidth fallback.
72838         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
72839         to Autoconf 2.13.
72840
72841 2001-08-03  Jim Meyering  <meyering@lucent.com>
72842
72843         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
72844         as it was in the original.  Reported by Paul Eggert.
72845
72846 2001-07-16  Jim Meyering  <meyering@lucent.com>
72847
72848         * m4/gettimeofday.m4: New file.
72849         Prompted by a report from Bernhard Baehr.
72850
72851 2001-07-15  Jim Meyering  <meyering@lucent.com>
72852
72853         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
72854         stuff. Now it's in ../Makefile.cfg.
72855
72856 2001-07-15  Jim Meyering  <meyering@lucent.com>
72857
72858         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
72859         (BUILT_SOURCES): Add unlocked-io.h.
72860         (io_functions): Define.
72861         (unlocked-io.h): New rule.
72862         (DISTCLEANFILES): Add unlocked-io.h.
72863         (all-local): Depend on unlocked-io.h, to ensure it is created.
72864
72865         * lib/unlocked-io.hin: New file
72866
72867         * lib/regex.c: Update from glibc.
72868
72869 2001-07-05  Jim Meyering  <meyering@lucent.com>
72870
72871         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
72872         recommendation.
72873         (libfetish_a_SOURCES): Put all .h files here instead.
72874         Remove a thus-exposed (better checks in automake) duplicate and
72875         two unnecessary .h files.
72876
72877 2001-07-04  Jim Meyering  <meyering@lucent.com>
72878
72879         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
72880         that generates jm-glibc-io.m4 so that it doesn't trigger any make
72881         distcheck failure.
72882
72883 2001-07-02  Jim Meyering  <meyering@lucent.com>
72884
72885         The following changes were prompted by suggestions from Bruno Haible.
72886
72887         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
72888         is now generated.
72889         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
72890         definition of EXTRA_DIST.
72891         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
72892         ensure that the generated file is created/updated whenever the list
72893         of $(unlocked_functions) is changed.
72894         (jm-glibc-io.m4): New rule.
72895         (unlocked-io.h): New rule -- currently unused.
72896
72897 2001-06-24  Jim Meyering  <meyering@lucent.com>
72898
72899         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
72900         unmatched right bracket, rather than kludging it with an extra,
72901         falsely-matching quote in a comment.  Patch by Akim Demaille.
72902
72903 2001-06-11  Jim Meyering  <meyering@lucent.com>
72904
72905         * lib/regex.c: Update from GNU libc.
72906
72907 2001-05-27  Jim Meyering  <meyering@lucent.com>
72908
72909         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
72910         Check for ut_type in struct utmp.
72911
72912 2001-05-27  Jim Meyering  <meyering@lucent.com>
72913
72914         * lib/readutmp.h (UT_TYPE): Define.
72915
72916 2001-05-24  Jim Meyering  <meyering@lucent.com>
72917
72918         * lib/argmatch.c: Include "quote.h".
72919         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
72920         quote function.  Reported by Göran Uddeborg.
72921
72922 2001-05-22  Jim Meyering  <meyering@lucent.com>
72923
72924         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
72925         now that we use the package-supplied version unconditionally.
72926         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
72927
72928 2001-05-21  Jim Meyering  <meyering@lucent.com>
72929
72930         * m4/regex.m4: Change a couple backticks to single quotes to avoid
72931         shell syntax errors.
72932
72933 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
72934
72935         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
72936
72937 2001-05-20  Paul Eggert  <eggert@twinsun.com>
72938
72939         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
72940         Don't bother to check library strftime, since
72941         we'll be using our own my_strftime function anyway.
72942         Define my_strftime instead of strftime.
72943
72944 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
72945
72946         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
72947         which is not yet declared.
72948
72949 2001-05-15  Jim Meyering  <meyering@lucent.com>
72950
72951         * m4/regex.m4: Use proper quoting so brackets appear in the test
72952         program.
72953         Reported by, and with help from, Bruno Haible.
72954
72955 2001-05-13  Jim Meyering  <meyering@lucent.com>
72956
72957         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
72958         undefined.
72959
72960 2001-05-11  Paul Eggert  <eggert@twinsun.com>
72961
72962         dirname code cleanup.  base_name now behaves more compatibly
72963         with POSIX basename when given file names that have trailing
72964         slashes, and similarly for dir_name.  Add new primitives
72965         base_len and dir_len.  Put the directory-name-related decls
72966         into dirname.h.
72967
72968         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
72969         * lib/backupfile.c (base_name): Likewise.
72970         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
72971         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
72972         * lib/makepath.c (strip_trailing_slashes): Likewise.
72973         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
72974         ISSLASH): Likewise.
72975         * lib/rename.c (strip_trailing_slashes): Likewise.
72976         * lib/same.c (base_name): Likewise.
72977         * lib/stripslash.c (ISSLASH): Likewise.
72978
72979         * lib/addext.c: Include <dirname.h> after size_t is defined.
72980         * lib/backupfile.c: Likewise.
72981
72982         * lib/addext.c (addext): Use base_len to trim redundant
72983         trailing slashes instead of doing it ourselves.
72984         But do not trim the last slash if it is not redundant.
72985
72986         * lib/backupfile.c (find_backup_file_name,
72987         max_backup_version): Use base_len instead of rolling it ourselves.
72988         Handle the case of "" and (on DOS) "C:" correctly.
72989
72990         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
72991         needed. Include <string.h>, <dirname.h>.
72992         (base_name): Allow file names ending in slashes, other than names
72993         that are all slashes.  In this case, return the basename followed
72994         by the slashes.  This is more general, and can be used in places
72995         where the original base_name purposely had an assertion failure.
72996         (base_len): New function.
72997
72998         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
72999         Do not include <assert.h>; no longer needed.
73000         Include xalloc.h.
73001         (memrchr): Remove decl.
73002         (dir_name_r): Remove.
73003         (dir_len): Renamed from dirlen.  All callers changed.
73004         Rewrite in terms of base_name, for simplicity and consistency.
73005         (dir_name): Never return NULL.  All callers changed.
73006         Do not include <stdlib.h> in test program; no longer needed.
73007         return 0; is fine for test program.
73008
73009         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
73010         New macros.
73011         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
73012
73013         * lib/path-concat.c (path_concat): Use base_len to compute
73014         base length, not strlen; this means we cannot rely on memcpy
73015         to null-terminate.
73016
73017         * lib/same.c (STREQ): Remove.
73018         (same_name): Handle the case where the basename ends in trailing '/'.
73019
73020         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
73021         a slash was stripped.  Do not strip the last slash after a
73022         file system prefix.
73023
73024 2001-05-11  Paul Eggert  <eggert@twinsun.com>
73025
73026         * lib/Makefile.am (libfetish_a_SOURCES):
73027         Add strftime.c, since we now compile it on all hosts.
73028
73029         * lib/strftime.c (my_strftime):
73030         Define to nstrftime if emacs, but only if my_strftime is not defined.
73031         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
73032         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
73033         Add one more extra argument: a nanoseconds value.
73034         All uses changed.
73035         (ns): New macro.
73036         (my_strftime function): Add %N format.
73037         (emacs_strftimeu): Renamed from emacs_strftime,
73038         with extra ut argument.
73039
73040 2001-05-09  Paul Eggert  <eggert@twinsun.com>
73041
73042         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
73043
73044 2001-04-21  Jim Meyering  <meyering@lucent.com>
73045
73046         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
73047         doesn't interfere.
73048
73049 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
73050
73051         * m4/ftruncate.m4: Check for chsize.
73052         Link with ftruncate.o unconditionally if ftruncate is missing.
73053         This was required when cross-compiling to i586-mingw32msvc.
73054
73055 2001-04-08  Jim Meyering  <meyering@lucent.com>
73056
73057         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
73058         recomputed; that's necessary when the offset spans a DST transition.
73059         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
73060
73061 2001-04-02  Jim Meyering  <meyering@lucent.com>
73062
73063         * lib/regex.h, regex.c: Update from GNU libc.
73064
73065 2001-03-24  Jim Meyering  <meyering@lucent.com>
73066
73067         * m4/jm-macros.m4: Require autoconf-2.49d.
73068
73069 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
73070
73071         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
73072
73073 2001-03-19  Paul Eggert  <eggert@twinsun.com>
73074
73075         * lib/version-etc.c (version_etc_copyright): Update to 2001.
73076
73077 2001-03-17  Jim Meyering  <meyering@lucent.com>
73078
73079         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
73080         now that the version in autoconf is equivalent.
73081         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
73082
73083         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
73084         Suggestion from Akim Demaille.
73085
73086         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
73087         (jm_PREREQ_TEMPNAME): New function.
73088
73089 2001-03-16  Paul Eggert  <eggert@twinsun.com>
73090
73091         * lib/tempname.c (uint64_t): Define to uintmax_t if
73092         not defined, and if UINT64_MAX is not defined.
73093         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
73094         Reported by John David Anglin.
73095
73096 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
73097
73098         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
73099         resolve alias if codeset is empty.
73100         * lib/config.charset (BeOS): Use wildcard syntax.
73101
73102 2001-03-13  Jim Meyering  <meyering@lucent.com>
73103
73104         * lib/path-concat.c (path_concat)
73105         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
73106         concatenating e.g., `C:' and `foo'.
73107         From Bruno Haible.
73108
73109 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
73110
73111         * lib/localcharset.c (locale_charset): Don't use
73112         setlocale(LC_CTYPE,NULL). Don't return NULL.
73113         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
73114
73115 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
73116
73117         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
73118         support for DOS/DJGPP.
73119
73120 2001-03-01  Paul Eggert  <eggert@twinsun.com>
73121
73122         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
73123         lacks mkstemp.  Compile our own tempname.c if we compile our own
73124         mkstemp.c, as mkstemp relies on tempname.
73125
73126 2001-03-01  Jim Meyering  <meyering@lucent.com>
73127
73128         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
73129         AH_VERBATIM really does output its argument verbatim.
73130
73131 2001-02-28  Paul Eggert  <eggert@twinsun.com>
73132
73133         * lib/Makefile.am (libfetish_a_SOURCES):
73134         Add dup-safer.c, fopen-safer.c.
73135         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
73136
73137         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
73138         * lib/unistd-safer.h: New files.
73139
73140 2001-02-25  Paul Eggert  <eggert@twinsun.com>
73141
73142         The mkstemp replacement is taken from glibc 2.2.2, with some
73143         portability fixes for use outside glibc, as follows:
73144
73145         * lib/tempname.c (struct_stat64): New macro.
73146         (direxists, __gen_tempname): Use it.
73147         This avoids a portability problem with Solaris 8.
73148
73149         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
73150         (<stddef.h>, <stdint.h>, <string.h>):
73151         Include only if STDC_HEADERS || _LIBC.
73152         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
73153         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
73154         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
73155         (__set_errno): Define this macro if <errno.h> doesn't.
73156         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
73157         Define these macros if <stdio.h> doesn't.
73158         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
73159         Define these macros if <sys/stat.h>
73160         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
73161         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
73162         __xstat64): Define if not _LIBC.
73163         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
73164         (__gen_tempname): Invoke gettimeofday only if
73165         HAVE_GETTIMEOFDAY || _LIBC;
73166         otherwise, fall back on plain "time".
73167         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
73168
73169         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
73170
73171         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
73172
73173 2001-02-18  Paul Eggert  <eggert@twinsun.com>
73174
73175         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
73176
73177 2001-02-17  Paul Eggert  <eggert@twinsun.com>
73178
73179         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
73180         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
73181         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
73182         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
73183
73184 2001-02-17  Paul Eggert  <eggert@twinsun.com>
73185
73186         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
73187         Remove workaround macros for hosts that have mbrtowc but not
73188         mbstate_t, as we now insist on proper declarations for both
73189         before using mbrtowc.
73190
73191 2001-02-17  Jim Meyering  <meyering@lucent.com>
73192
73193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
73194         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
73195         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
73196         UnixWare 7.1.1.
73197
73198         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
73199         rather than AC_CACHE_VAL.
73200
73201 2001-02-17  Jim Meyering  <meyering@lucent.com>
73202
73203         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
73204         around included file name.
73205
73206         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
73207
73208         * lib/strftime.c: Update from GNU libc (the only changes were to
73209         comments).
73210
73211 2001-02-17  Jim Meyering  <meyering@lucent.com>
73212
73213         * lib/regex.c: Update from libc.
73214
73215 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
73216
73217         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
73218         clash.
73219
73220 2001-02-16  Paul Eggert  <eggert@twinsun.com>
73221
73222         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
73223         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
73224         Reported by Mark Hounschell via Paul Eggert.
73225
73226 2001-02-07  Jim Meyering  <meyering@lucent.com>
73227
73228         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
73229
73230 2001-02-05  Jim Meyering  <meyering@lucent.com>
73231
73232         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
73233         it includes the patch required for `large file' support with at least
73234         HP-UX's 10.20 /bin/cc.
73235
73236 2001-02-03  Jim Meyering  <meyering@lucent.com>
73237
73238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
73239         AS_IF, now that it works once again (mysteriously).
73240         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
73241
73242 2001-01-30  Jim Meyering  <meyering@lucent.com>
73243
73244         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
73245         * m4/chown.m4: Rename conftestchown to conftest.chown.
73246         * m4/rename.m4: s/conftestdir/conftest.d1/ and
73247         s/conftestdir2/conftest.d2/.
73248         * m4/utimes.m4: s/conftestdata/conftest.data/
73249         Inspired by Pavel Roskin's change in autoconf.
73250
73251 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
73252
73253         * lib/config.charset: Update for FreeBSD 4.2.
73254
73255 2001-01-27  Jim Meyering  <meyering@lucent.com>
73256
73257         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
73258         a use of AS_IF.
73259         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
73260
73261 2001-01-26  Jim Meyering  <meyering@lucent.com>
73262
73263         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
73264         quotearg.c includes it.
73265
73266 2001-01-26  Jim Meyering  <meyering@lucent.com>
73267
73268         * lib/quotearg.c: Include stddef.h.
73269         * lib/quote.c: Include stddef.h.
73270         Reported by Axel Kittenberger.
73271
73272         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
73273         line in double quotes so that it evokes a better diagnostic.
73274         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
73275         Reported by Axel Kittenberger.
73276
73277 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
73278
73279         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
73280         as if it was a `charset'.
73281
73282 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
73283
73284         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
73285         has const.
73286
73287 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
73288
73289         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
73290         to avoid a warning.  Add back 'const' to inptr.
73291
73292 2001-01-20  Jim Meyering  <meyering@lucent.com>
73293
73294         Be sure that headers are checked before used in code compiled
73295         for the type checks.
73296         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
73297         In place of that, invoke jm_CHECK_ALL_TYPES.
73298         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
73299         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
73300         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
73301         The check for ssize_t was mistakenly run before the test for unistd.h.
73302
73303         The configure-time check for stdbool.h was missing.
73304         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
73305         (jm_PREREQ_HASH): New function.
73306
73307 2001-01-17  Jim Meyering  <meyering@lucent.com>
73308
73309         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
73310         for autoconf-2.49c.
73311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
73312
73313 2001-01-16  Jim Meyering  <meyering@lucent.com>
73314
73315         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
73316         From Bruno Haible.
73317
73318 2001-01-14  Jim Meyering  <meyering@lucent.com>
73319
73320         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
73321         foo and bar.  Create conftestdir/ in the script, not in the C code.
73322         Remove directories in the script, not in the C code.
73323         Remove conftestdir{,2} before trying to create the directory.
73324         Make the entire configure script fail if the mkdir fails.
73325
73326 2001-01-14  Jim Meyering  <meyering@lucent.com>
73327
73328         * lib/rename.c: New file.  From Volker Borchert.
73329         Include stdlib.h, string.h or strings.h, and xalloc.h.
73330         Use strip_trailing_slashes rather than open-coding it.
73331
73332 2001-01-03  Paul Eggert  <eggert@twinsun.com>
73333
73334         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
73335
73336 2001-01-03  Jim Meyering  <meyering@lucent.com>
73337
73338         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
73339         of local `inptr' to avoid warning with some system declarations of
73340         iconv.
73341
73342 2001-01-02  Volker Borchert  <bt@teknon.de>
73343
73344         * m4/rename.m4: New file.
73345         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
73346
73347 2001-01-01  Jim Meyering  <meyering@lucent.com>
73348
73349         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
73350         even on systems with utmpx.h.  It's necessary for the declaration of
73351         utmp's ut_user member.  Reported by Andreas Jaeger.
73352
73353         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
73354         available. They are required for the declarations of getgrgid and
73355         getpwuid resp.
73356         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
73357         Reported by Andreas Jaeger.
73358
73359 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
73360
73361         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
73362         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
73363         so `make install' also works in VPATH builds.
73364
73365 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
73366
73367         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
73368         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
73369         can be used in subdirectories.
73370
73371 2000-12-29  Paul Eggert  <eggert@twinsun.com>
73372
73373         * lib/modechange.c: Do not assume that mode_t uses the
73374         traditional octal encoding.  E.g. "chmod 1 FOO" should set
73375         the other-execute bit of FOO even if S_IXOTH != 1.
73376
73377         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
73378         WOTH, XOTH, ALLM): New macros.
73379         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
73380          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
73381         Use them.
73382         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
73383         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
73384         (mode_compile):
73385         No need to use uintmax_t; unsigned long is long enough.
73386         Don't bother to get suffix since we don't use it.
73387
73388 2000-12-26  Jim Meyering  <meyering@lucent.com>
73389
73390         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
73391         better with autoheader.
73392
73393 2000-12-24  Jim Meyering  <meyering@lucent.com>
73394
73395         * lib/hash.c (is_prime): Return explicit boolean values.
73396         (hash_get_first): Return NULL to appease Irix5.6's 89.
73397         Reported by Nelson Beebe.
73398
73399 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
73400
73401         * lib/localcharset.c (locale_charset): Add support for Win32.
73402
73403 2000-12-18  Paul Eggert  <eggert@twinsun.com>
73404
73405         * lib/physmem.h, lib/physmem.c: New files.
73406
73407         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
73408         (noinst_HEADERS): Add physmem.h.
73409
73410         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
73411         't' for compatibility with Solaris 8 sort.
73412
73413 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
73414
73415         * lib/config.charset: Add support for BeOS.
73416
73417 2000-12-17  Jim Meyering  <meyering@lucent.com>
73418
73419         * m4/dos.m4 (jm_AC_DOS): New file and macro.
73420         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
73421
73422 2000-12-16  Jim Meyering  <meyering@lucent.com>
73423
73424         This bug had a serious impact on chown: `chown N:M FILE' (for integer
73425         N and M) would have treated it like `chown N:N FILE'.
73426
73427         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
73428
73429 2000-12-16  Jim Meyering  <meyering@lucent.com>
73430
73431         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
73432         SHELLS_FILE to a file name that's useful on djgpp systems.
73433         Include stdlib.h.
73434         (ADDITIONAL_DEFAULT_SHELLS): Define.
73435         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
73436         Based mostly on a patch from Prashant TR.
73437
73438 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
73439
73440         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
73441         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
73442         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
73443
73444 2000-12-08  Andreas Schwab  <schwab@suse.de>
73445
73446         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
73447         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
73448
73449 2000-12-07  Jim Meyering  <meyering@lucent.com>
73450
73451         * lib/stripslash.c (ISSLASH): Define.
73452         (strip_trailing_slashes): Use ISSLASH rather than comparing against
73453         `/'.
73454         From Prashant TR.
73455
73456         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
73457         (dir_name_r): Declare this function as static.
73458         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
73459         manifest itself on a name containing a mix of slashes and
73460         backslashes.
73461         Make this function work with names starting with a DOS-style
73462         drive letter and colon prefix.
73463         (dir_name): Append `.' if necessary.
73464         Based mostly on patches from Prashant TR and Eli Zaretskii.
73465
73466         * lib/dirname.h (dir_name_r): Remove prototype.
73467
73468 2000-12-06  Paul Eggert  <eggert@twinsun.com>
73469
73470         * m4/off_t-format.m4: Remove this file.
73471         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
73472
73473 2000-12-06  Jim Meyering  <meyering@lucent.com>
73474
73475         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
73476         replacement strtoull, we may well need the replacement strtoul, too.
73477         Check for declarations of strtoul and strtoull.
73478         Check for strtol.  Mainly as a cue to cause automake to include
73479         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
73480         Check for limits.h -- strtol.c needs it.
73481
73482 2000-12-05  Jim Meyering  <meyering@lucent.com>
73483
73484         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
73485
73486 2000-12-04  Jim Meyering  <meyering@lucent.com>
73487
73488         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
73489         Also include memory.h, stdlib.h, unistd.h if appropriate.
73490         Reported by Andreas Jaeger (conflicting declaration of malloc).
73491
73492 2000-12-02  Jim Meyering  <meyering@lucent.com>
73493
73494         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
73495         * m4/jm-macros.m4 (jm_MACROS): require it.
73496
73497 2000-12-02  Jim Meyering  <meyering@lucent.com>
73498
73499         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
73500
73501 2000-12-01  Paul Eggert  <eggert@twinsun.com>
73502
73503         * lib/memrchr.c: Include <config.h> before any system include file.
73504
73505 2000-11-30  Jim Meyering  <meyering@lucent.com>
73506
73507         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
73508
73509 2000-11-30  Jim Meyering  <meyering@lucent.com>
73510
73511         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
73512
73513 2000-11-29  Paul Eggert  <eggert@twinsun.com>
73514
73515         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
73516
73517 2000-11-26  Jim Meyering  <meyering@lucent.com>
73518
73519         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
73520
73521 2000-11-22  Paul Eggert  <eggert@twinsun.com>
73522
73523         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
73524         size of (size_t) -1; it's not portable.
73525
73526 2000-11-17  Jim Meyering  <meyering@lucent.com>
73527
73528         * lib/strstr.c: Update from GNU libc.
73529
73530 2000-11-17  Akim Demaille  <akim@epita.fr>
73531
73532         * lib/obstack.h: Formatting changes.
73533         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
73534         prevent type checking.
73535         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
73536         cast the value to (void *): assigning a `foo *' to a `void *'
73537         variable is valid.
73538         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
73539
73540 2000-11-16  Jim Meyering  <meyering@lucent.com>
73541
73542         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
73543
73544 2000-11-11  Jim Meyering  <meyering@lucent.com>
73545
73546         * lib/error.c: Add a couple #includes, merging from GNU libc version.
73547
73548 2000-11-10  Jim Meyering  <meyering@lucent.com>
73549
73550         * lib/obstack.h: Update from GNU libc.
73551         * lib/obstack.c: Likewise.
73552
73553 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
73554
73555         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
73556
73557 2000-11-06  Paul Eggert  <eggert@twinsun.com>
73558
73559         * lib/getusershell.c (setusershell): Use rewind rather than
73560         fseek/fseeko, to avoid configuration hassles with fseeko.
73561         Don't bother opening SHELLS_FILE if shellstream is NULL;
73562         it's not necessary.
73563
73564 2000-11-05  Jim Meyering  <meyering@lucent.com>
73565
73566         * lib/makepath.h (make_dir): Declare.
73567         * lib/makepath.c (make_dir): Remove `static' attribute.
73568         Tweak a comment.
73569
73570 2000-11-04  Jim Meyering  <meyering@lucent.com>
73571
73572         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
73573
73574 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
73575
73576         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
73577         last one in a bucket, advance to the next bucket.
73578
73579 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
73580
73581         * lib/fnmatch.c: Do not comment out all the code if we are using
73582         the GNU C library, because in some cases we are replacing buggy
73583         code in the GNU C library itself.
73584
73585 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
73586
73587         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
73588         (regex_compile): Catch bogus \(\1\).
73589
73590 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73591
73592         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
73593         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
73594         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
73595
73596 2000-10-30  Paul Eggert  <eggert@twinsun.com>
73597
73598         * lib/error.h, getline.h, modechange.h:
73599         Remove "2000" from Copyright line, as the file hasn't been
73600         changed this year other than in the copyright notice.
73601
73602         * lib/xalloc.h: Add "2000" to Copyright line, as this file
73603         was changed this year.
73604
73605 2000-10-29  Jim Meyering  <meyering@lucent.com>
73606
73607         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
73608         renaming.
73609         * m4/ls-mntd-fs.m4: Likewise
73610
73611 2000-10-29  Jim Meyering  <meyering@lucent.com>
73612
73613         * lib/xstat.in: Fix grammar in comment.
73614
73615 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
73616
73617         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
73618         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
73619         doesn't define __restrict_arr.
73620
73621 2000-10-28  Jim Meyering  <meyering@lucent.com>
73622
73623         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
73624         (jm_PREREQ_MEMCHR): New function.
73625
73626 2000-10-28  Jim Meyering  <meyering@lucent.com>
73627
73628         * lib/memchr.c: Update from libc.
73629         Adjust for portability:
73630         [HAVE_STDLIB_H]: Include stdlib.h.
73631         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
73632         Undef __memchr, too.
73633         [!weak_alias]: Define __memchr to memchr.
73634
73635         * lib/regex.c: Update from libc.
73636         * lib/regex.h: Likewise.
73637         * lib/getopt1.c: Likewise.
73638         * lib/memcmp.c: Likewise.
73639
73640         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
73641         Avoid using fseek, when possible -- it's broken by design.
73642         Patch by Ulrich Drepper.
73643
73644 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
73645
73646         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
73647         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
73648         Giving in to popular pressure to shut up the compiler with casts.
73649
73650 2000-10-26  Jim Meyering  <meyering@lucent.com>
73651
73652         * lib/strftime.c: Update from libc.
73653
73654 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
73655
73656         * regex.c: More `unsigned char' -> `re_char' changes.
73657         Also change several `int' into `re_wchar_t'.
73658         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
73659         (PUSH_FAILURE_POINTER): Don't cast any more.
73660         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
73661         We want GCC to complain, since this piece of code makes
73662         re_match non-reentrant, which *should* be fixed.
73663         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
73664         (EXTEND_BUFFER): Use RETALLOC.
73665         (SET_LIST_BIT): Don't cast.
73666         (re_wchar_t): New type.
73667         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
73668         that those two functions will always properly return.
73669         (IMMEDIATE_QUIT_CHECK): Cast to void.
73670         (analyse_first): Use recursion rather than an explicit stack.
73671         (re_compile_fastmap): Can't fail anymore.
73672         (re_search_2): Don't check re_compile_fastmap for failure.
73673         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
73674         Now also sets the new value (passed in a new argument).
73675         (re_match_2_internal): Use it.
73676         Also, use a new var `reg' of type size_t when looping through regs
73677         rather than reuse the inappropriate `mcnt'.
73678
73679 2000-10-25  Jim Meyering  <meyering@lucent.com>
73680
73681         * lib/obstack.c: Update from libc.
73682
73683 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
73684
73685         * regex.c (regex_compile): Change the way of handling a range from
73686         a char less than 256 to a char not less than 256.
73687
73688 2000-10-24  Andrew Innes  <andrewi@gnu.org>
73689
73690         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
73691         NT-Emacs only.
73692         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
73693         so that re_search functions only quit when callers expect them to.
73694
73695 2000-10-23  Jim Meyering  <meyering@lucent.com>
73696
73697         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
73698         wrong.  That set_locale call must not have any side effects.
73699         From Paul Eggert.
73700
73701 2000-10-22  Jim Meyering  <meyering@lucent.com>
73702
73703         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
73704         [CYCLIC]: Remove now-unused definition.
73705
73706         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
73707         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
73708         Suggestion from Ulrich Drepper.
73709
73710 2000-10-21  Jim Meyering  <meyering@lucent.com>
73711
73712         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
73713         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
73714         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
73715
73716 2000-10-21  Jim Meyering  <meyering@lucent.com>
73717
73718         * lib/dirname.c (memrchr): Declare if necessary.
73719         (dir_name): Remove the restriction that there be no
73720         trailing slashes.  Now, this code skips past them, effectively
73721         ignoring them.
73722         [TEST_DIRNAME] (main): New unit tests.
73723
73724         * lib/memrchr.c: New file from GNU libc.
73725         Undef __memrchr, too.
73726         [!weak_alias]: Define __memrchr to memrchr.
73727         Guard weak_alias use with `#ifdef weak_alias'.
73728
73729 2000-10-21  Jim Meyering  <meyering@lucent.com>
73730
73731         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
73732         (dir_name): Use dir_name_r.
73733         * lib/dirname.h (dir_name_r): Declare it.
73734
73735 2000-10-17  Jim Meyering  <meyering@lucent.com>
73736
73737         * lib/quote.h (PARAMS): Define and use.
73738         Reported by Akim Demaille.
73739
73740         * lib/getopt.c: Update from libc.
73741
73742 2000-10-16  Jim Meyering  <meyering@lucent.com>
73743
73744         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
73745         setlocale.
73746         From Jan Fedak.
73747
73748 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
73749
73750         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
73751
73752 2000-09-25  Jim Meyering  <meyering@lucent.com>
73753
73754         * lib/md5.h (rol): Define (from GnuPG).
73755
73756         * lib/sha.c: Give credit (GnuPG) where due.
73757         (M): Use rol rather than open-coding it.
73758         Add a FIXME comment.
73759
73760 2000-09-21  Jim Meyering  <meyering@lucent.com>
73761
73762         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
73763         Reported by Michael Stone.
73764
73765 2000-09-20  Jim Meyering  <meyering@lucent.com>
73766
73767         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
73768         (noinst_HEADERS): Add sha.h.
73769         Based on code from Scott G. Miller and from GnuPG.
73770
73771 2000-09-18  Jim Meyering  <meyering@lucent.com>
73772
73773         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
73774         LIBS. Otherwise, everyone ends up linking with -lelf for some
73775         configurations.
73776         Reported by Mike Stone.
73777
73778 2000-09-15  Jim Meyering  <meyering@lucent.com>
73779
73780         * lib/regex.c: Update from libc.
73781
73782 2000-09-10  Jim Meyering  <meyering@lucent.com>
73783
73784         * lib/getopt.c (_getopt_internal): Update from glibc.
73785
73786 2000-09-09  Jim Meyering  <meyering@lucent.com>
73787
73788         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
73789         think it should be used as a general replacement for isascii.
73790         * lib/fnmatch.c: Likewise.
73791         * lib/mbswidth.c: Likewise
73792         * lib/regex.c: Likewise.
73793
73794         Don't use atoi.
73795         * lib/userspec.c: Include sys/param.h and limits.h.
73796         Include xstrtol.h.
73797         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73798         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
73799         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
73800         UID, GID.  Check range.
73801
73802 2000-09-06  Jim Meyering  <meyering@lucent.com>
73803
73804         * lib/getopt.c (_getopt_internal): Update from glibc.
73805
73806 2000-08-30  Jim Meyering  <meyering@lucent.com>
73807
73808         * lib/strftime.c: Merge in changes from GNU libc.
73809
73810 2000-08-26  Jim Meyering  <meyering@lucent.com>
73811
73812         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
73813         * m4/fpending.m4: New file.
73814
73815 2000-08-26  Jim Meyering  <meyering@lucent.com>
73816
73817         * lib/closeout.c: Include "__fpending.h".
73818         (close_stdout_status): Return right away if there's nothing to flush.
73819
73820         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
73821         * lib/__fpending.c: New file.
73822         * lib/__fpending.h: New file.
73823
73824 2000-08-20  Jim Meyering  <meyering@lucent.com>
73825
73826         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
73827         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
73828         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
73829
73830 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
73831
73832         Improve fileutils installation on systems where running
73833         programs (like install) can't be unlinked.
73834         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
73835         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
73836
73837 2000-08-07  Paul Eggert  <eggert@twinsun.com>
73838
73839         Standardize on "memory exhausted" instead of "Memory exhausted"
73840         or "virtual memory exhausted".
73841         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
73842         "virtual memory exhausted".
73843         * lib/same.c (same_name): Invoke xalloc_die instead of printing
73844         our own message.
73845         * lib/userspec.c (parse_user_spec): Likewise.
73846         * lib/bumpalloc.h: comment fix
73847         * lib/same.c, userspec.c: Include xalloc.h.
73848
73849         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
73850         not char *const and pointing to a constant array.
73851         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
73852         (xrealloc): Comment fix.
73853
73854         * lib/userspec.c (parse_user_spec):
73855         Don't translate a message until just before returning,
73856         to avoid unnecessary translation.
73857
73858 2000-08-07  Jim Meyering  <meyering@lucent.com>
73859
73860         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
73861         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
73862         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
73863         getgroups.c, gethostname.c, getopt.h, group-member.c,
73864         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
73865         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
73866         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
73867         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
73868         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
73869         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
73870         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
73871         yesno.c: Back out Copyright date changes for each file with no change
73872         this year.  This eases coordination with other programs using the same
73873         source code modules.  From Paul Eggert.
73874
73875 2000-08-06  Paul Eggert  <eggert@twinsun.com>
73876
73877         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
73878         not char, for compatibility with glibc 2.1.3 strftime.c.
73879
73880 2000-08-03  Greg McGary  <greg@mcgary.org>
73881
73882         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
73883         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
73884         (EXTEND_BUFFER): Use them.
73885
73886 2000-08-01  Jim Meyering  <meyering@lucent.com>
73887
73888         * lib/dirname.c (ISSLASH): Define.
73889         (BACKSLASH_IS_PATH_SEPARATOR): Define.
73890         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
73891         both `\' and `/' may be use as path separators.
73892         Based on a patch from Prashant TR.
73893
73894 2000-07-31  Paul Eggert  <eggert@twinsun.com>
73895
73896         * lib/quotearg.c (quotearg_n_options): Don't make the initial
73897         slot vector a constant, since it might get modified.
73898
73899 2000-07-31  Jim Meyering  <meyering@lucent.com>
73900
73901         * lib/xmalloc.c: Use `virtual memory exhausted', not
73902         `Memory exhausted'.
73903         * lib/obstack.c (print_and_abort): Likewise.
73904
73905 2000-07-30  Paul Eggert  <eggert@twinsun.com>
73906
73907         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
73908         buffer, so that the caller can always quote one small
73909         component of a "memory exhausted" message in slot 0.
73910         From a suggestion by Jim Meyering.
73911
73912 2000-07-30  Jim Meyering  <meyering@lucent.com>
73913
73914         * lib/makepath.c (make_path): Quote the other instance, too.
73915
73916         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
73917         (STATIC_BUF_SIZE): Define.
73918         (quotearg_n_options): Use only statically allocated storage when
73919         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
73920         than STATIC_BUF_SIZE.
73921
73922 2000-07-29  Jim Meyering  <meyering@lucent.com>
73923
73924         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
73925         * lib/dirname.c (dir_name): Likewise.
73926
73927         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
73928         `/'.
73929
73930         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
73931         (dir_name): Assert that there are no trailing slashes.
73932
73933 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
73934
73935         * lib/mbswidth.h (mbswidth): Add a flags argument.
73936         (mbswidth): New declaration.
73937         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
73938         * lib/mbswidth.c (mbswidth): Add a flags argument.
73939         (mbsnwidth): New function.
73940
73941 2000-07-24  Jim Meyering  <meyering@lucent.com>
73942
73943         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
73944
73945 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73946
73947         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
73948
73949 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73950
73951         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
73952         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
73953         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
73954         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
73955         invoke multibyte primitives.
73956
73957 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73958
73959         * lib/quotearg.c:
73960         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
73961         so that mbstate_t is always defined.
73962
73963         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
73964         be 1 in at least one GCC installation, and this configuration
73965         error is likely to be common.  Ignoring MB_LEN_MAX hurts
73966         performance on hosts that have mbrtowc but have only unibyte
73967         locales, but I assume these hosts are rare.
73968
73969 2000-07-23  Paul Eggert  <eggert@twinsun.com>
73970
73971         * lib/mbswidth.c (_XOPEN_SOURCE):
73972         Don't define; this causes problems on Solaris 7.
73973         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
73974
73975 2000-07-23  Jim Meyering  <meyering@lucent.com>
73976
73977         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
73978         too: getgrgid, getpwuid, getuid.
73979
73980 2000-07-23  Jim Meyering  <meyering@lucent.com>
73981
73982         * lib/basename.c (base_name): Add an assertion.
73983
73984 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
73985
73986         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
73987         shadow its mbsinit function.
73988
73989 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73990
73991         * lib/mbswidth.h: New file.
73992         * lib/mbswidth.c: New file.
73993         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
73994         (noinst_HEADERS): Add mbswidth.h.
73995
73996 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
73997
73998         * lib/config.charset: Add support for FreeBSD. Improve support for
73999         HP-UX and IRIX 6.
74000
74001 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
74002
74003         * m4/mbswidth.m4: New file.
74004         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
74005
74006 2000-07-15  Jim Meyering  <meyering@lucent.com>
74007
74008         * lib/makepath.c: Include quote.h.
74009         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
74010         corresponding argument in a `quote (...)' call.
74011         Give better diagnostics.
74012
74013         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
74014         (noinst_HEADERS): Add quote.h.
74015
74016         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
74017         from tar's src/misc.c.
74018         * lib/quote.h: New file.  Prototypes for same.
74019
74020 2000-07-14  Paul Eggert  <eggert@twinsun.com>
74021
74022         From a suggestion by Bruno Haible.
74023         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
74024         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
74025         to decide whether to define the BeOS workaround macro;
74026         this adjusts to the change to AC_MBSTATE_T.
74027
74028 2000-07-14  Jim Meyering  <meyering@lucent.com>
74029
74030         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
74031         jm_AC_TYPE_UINTMAX_T.
74032
74033 2000-07-13  Paul Eggert  <eggert@twinsun.com>
74034
74035         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
74036
74037         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
74038         quotearg_buffer_restyled): Add support for
74039         clocale_quoting_style.  Undo previous change to
74040         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
74041         and "{RIGHT QUOTATION MARK}" msgids.
74042
74043 2000-07-10  Paul Eggert  <eggert@twinsun.com>
74044
74045         From a suggestion by Bruno Haible.
74046         * m4/mbstate_t.m4 (AC_MBSTATE_T):
74047         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
74048         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
74049         and mbstate_t, to a single-part test that simply defines mbstate_t.
74050         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
74051         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
74052
74053 2000-07-10  Jim Meyering  <meyering@lucent.com>
74054
74055         * m4/strerror_r.m4: Mirror the correction made in autoconf.
74056
74057         * m4/gnu-source.m4: Output to confdefs.h directly.
74058         Suggestion from Akim Demaille.
74059
74060 2000-07-09  Paul Eggert  <eggert@twinsun.com>
74061
74062         The old behavior of quoting `like this' doesn't look good with
74063         newer, ISO-style fonts.  See:
74064         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
74065
74066         Instead, quote "like this" by default.  Let the translator
74067         tailor the locale-specific quoting behavior by providing
74068         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
74069
74070         * lib/quotearg.c (N_): New macro.
74071         (gettext_default): New function.
74072         (quotearg_buffer_restyled): Use
74073         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
74074         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
74075
74076 2000-07-09  Jim Meyering  <meyering@lucent.com>
74077
74078         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
74079         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
74080
74081         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
74082         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
74083
74084 2000-07-09  Jim Meyering  <meyering@lucent.com>
74085
74086         * lib/Most files: Update copyright dates to include 2000.
74087
74088 2000-07-08  Jim Meyering  <meyering@lucent.com>
74089
74090         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
74091         if not defined.
74092         (xgethostname): Remove now-unnecessary #ifdef.
74093         Move declaration of `err' into loop where it's used.
74094
74095 2000-07-05  Paul Eggert  <eggert@twinsun.com>
74096         and Bruno Haible  <haible@clisp.cons.org>
74097
74098         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
74099         only if the test for an object-type mbstate_t fails.  This
74100         prevents us from mistakenly reporting that mbstate_t is a
74101         system object type after we "#define mbstate_t int" to work
74102         around its lack.
74103
74104 2000-07-05  Paul Eggert  <eggert@twinsun.com>
74105         and Bruno Haible  <haible@clisp.cons.org>
74106
74107         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
74108
74109 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74110
74111         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
74112         to strerror_r.
74113         Include <ctype.h> for use of isalpha.
74114
74115 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74116
74117         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
74118         by allocating a larger buffer. Test the gethostname return value for
74119         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
74120         returns an error and ENAMETOOLONG isn't defined.
74121
74122 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
74123
74124         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
74125         dimension.
74126
74127 2000-07-04  Jim Meyering  <meyering@lucent.com>
74128
74129         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
74130         of the deprecated AC_CHECKING.
74131
74132 2000-07-04  Jim Meyering  <meyering@lucent.com>
74133
74134         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
74135         Reported by Bruno Haible.
74136
74137 2000-07-04  Jim Meyering  <meyering@lucent.com>
74138
74139         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
74140         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
74141         lacks mbrtowc.
74142
74143 2000-07-03  Paul Eggert  <eggert@twinsun.com>
74144
74145         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
74146         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
74147
74148 2000-07-03  Paul Eggert  <eggert@twinsun.com>
74149         and Bruno Haible  <haible@clisp.cons.org>
74150
74151         * lib/quotearg.c (mbrtowc):
74152         Assign to *pwc, and return 1 only if result is nonzero.
74153         (iswprint): Use ISPRINT when substituting our own mbrtowc.
74154
74155 2000-07-03  Jim Meyering  <meyering@lucent.com>
74156
74157         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
74158
74159 2000-07-03  Jim Meyering  <meyering@lucent.com>
74160
74161         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
74162         This is necessary to get a definition of e.g., UTMP_FILE on
74163         HP-UX 10.20.
74164         From Bob Proulx.
74165
74166 2000-07-02  Jim Meyering  <meyering@lucent.com>
74167
74168         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
74169
74170         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
74171         AC_LIBOBJ(function_name).
74172         * m4/chown.m4: Likewise.
74173         * m4/fnmatch.m4: Likewise.
74174         * m4/ftruncate.m4: Likewise.
74175         * m4/getgroups.m4: Likewise.
74176         * m4/getline.m4: Likewise.
74177         * m4/group-member.m4: Likewise.
74178         * m4/jm-macros.m4: Likewise.
74179         * m4/lstat.m4: Likewise.
74180         * m4/malloc.m4: Likewise.
74181         * m4/memcmp.m4: Likewise.
74182         * m4/nanosleep.m4: Likewise.
74183         * m4/putenv.m4: Likewise.
74184         * m4/realloc.m4: Likewise.
74185         * m4/regex.m4: Likewise.
74186         * m4/stat.m4: Likewise.
74187         * m4/strftime.m4: Likewise.
74188
74189 2000-07-02  Jim Meyering  <meyering@lucent.com>
74190
74191         * lib/quotearg.c (mbstate_t): Don't define here.
74192
74193 2000-07-02  Jim Meyering  <meyering@lucent.com>
74194
74195         * lib/nanosleep.c (SIGCONT): Define if not already defined.
74196
74197 2000-07-01  Jim Meyering  <meyering@lucent.com>
74198
74199         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
74200
74201 2000-07-01  Jim Meyering  <meyering@lucent.com>
74202
74203         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
74204         problem.
74205
74206 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
74207
74208         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
74209         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
74210
74211 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
74212
74213         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
74214         per change in ../m4/ls-mntd-fs.m4.
74215         (read_filesystem_list): Ignore symbolic links.
74216
74217 2000-06-29  Jim Meyering  <meyering@lucent.com>
74218
74219         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
74220         for declaration of strcmp.
74221
74222         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
74223
74224         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
74225         Avoid warning by casting result to `char *' to remove `const'.
74226
74227 2000-06-28  Jim Meyering  <meyering@lucent.com>
74228
74229         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
74230         included by quotearg.c, for which we perform this test.  From
74231         Bruno Haible.
74232
74233 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
74234
74235         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
74236         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
74237         <utmpx.h> exists, put readutmp.o into LIBOBJS.
74238
74239 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
74240
74241         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
74242
74243 2000-06-26  Paul Eggert  <eggert@twinsun.com>
74244
74245         savedir now sets errno on failure and invokes xmalloc to get memory.
74246         Fix a couple of other minor bugs while we're at it.
74247
74248         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
74249         (NAMLEN): Remove macro.
74250         (malloc, realloc): Remove decls.
74251         (stpcpy): Likewise.
74252         ("xalloc.h"): Include.
74253         (NAME_SIZE_DEFAULT): New macro.
74254         (savedir): Use xmalloc / xrealloc to allocate memory.
74255         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
74256         Skip "" directory entries.
74257         Use strlen to calculate directory entry length, since the old method
74258         is rarely used these days and isn't worth supporting.
74259         Don't use a pointer after freeing it.
74260         Check for integer overflow when calculating allocation size.
74261         Use memcpy to copy entries, instead of stpcpy.
74262         Set errno properly when returning NULL.
74263         Check for readdir error.
74264
74265 2000-06-26  Jim Meyering  <meyering@lucent.com>
74266
74267         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
74268
74269 2000-06-25  Jim Meyering  <meyering@lucent.com>
74270
74271         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
74272         Linux header bug when _XOPEN_SOURCE is defined to 500.
74273
74274 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
74275
74276         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
74277         deficiency.
74278
74279 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
74280
74281         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
74282         Include xalloc.h.
74283         Don't include <stdlib.h>.  Don't declare malloc, realloc.
74284
74285 2000-06-24  Jim Meyering  <meyering@lucent.com>
74286
74287         * m4/strerror_r.m4: Revive this file -- to try out an experimental
74288         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
74289         for which strerror does return char*, but which lacks a conveniently
74290         accessible declaration of the function.  If the compile-test says
74291         strerror_r doesn't work, then resort to a `run'-test that works on
74292         BeOS and segfaults on DEC Unix.
74293
74294 2000-06-24  Jim Meyering  <meyering@lucent.com>
74295
74296         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
74297
74298 2000-06-23  Paul Eggert  <eggert@twinsun.com>
74299
74300         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
74301         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
74302
74303 2000-06-23  Paul Eggert  <eggert@twinsun.com>
74304
74305         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
74306         (mbrtowc, mbstate_t): Define substitutes if
74307         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
74308         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
74309         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
74310
74311 2000-06-23  Jim Meyering  <meyering@lucent.com>
74312
74313         * m4/afs.m4: Add missing AC_MSG_RESULT.
74314         Reported by Bruno Haible.
74315
74316         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
74317         Suggestion from Bruno Haible.
74318
74319 2000-06-23  Jim Meyering  <meyering@lucent.com>
74320
74321         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
74322
74323 2000-06-21  Jim Meyering  <meyering@lucent.com>
74324
74325         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
74326
74327 2000-06-21  Jim Meyering  <meyering@lucent.com>
74328
74329         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
74330         (noinst_HEADERS): Add getstr.h.
74331
74332         * lib/getline.c (getstr): Move into a separate file.
74333         * lib/getstr.c (getstr): New file, extracted from getline.c, with
74334         the following changes: new parameter, delim2; both delim[12]
74335         parameters have type `int', not `char'.  The latter would lose
74336         with 8-bit delimiters.
74337         * lib/getstr.h: New file.
74338
74339 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74340
74341         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
74342         than 1024, return a memory chunk of least possible size, instead
74343         of size PATH_MAX + 2. In the loop, increment the size proportionally.
74344         Use free/xmalloc instead of xrealloc to avoid copying for very long
74345         paths.
74346
74347 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74348
74349         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
74350         the empty string.
74351
74352 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
74353
74354         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
74355         address, not strdup.  Include <stdlib.h> and don't declare free().
74356
74357 2000-06-19  Jim Meyering  <meyering@lucent.com>
74358
74359         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
74360
74361 2000-06-18  Jim Meyering  <meyering@lucent.com>
74362
74363         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
74364
74365         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
74366         `checking whether...' message to be consistent with that of the
74367         lstat test.
74368
74369 2000-06-18  Jim Meyering  <meyering@lucent.com>
74370
74371         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
74372         Besides, these days every porting target provides a mkdir function.
74373
74374         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
74375         needed. (this snippet comes from src/system.h).
74376
74377 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
74378
74379         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
74380
74381 2000-06-15  Paul Eggert  <eggert@twinsun.com>
74382
74383         * lib/human.c (adjust_value): New function.
74384         (human_readable_inexact): Apply rounding style even when
74385         printing approximate values.
74386
74387 2000-06-14  Paul Eggert  <eggert@twinsun.com>
74388
74389         * lib/human.c (human_readable_inexact): Allow an input block
74390         size that is not a multiple of the output block size, and vice versa.
74391         Reported by Piergiorgio Sartor.
74392
74393 2000-06-14  Paul Eggert  <eggert@twinsun.com>
74394
74395         * lib/getdate.y (get_date): Apply relative times after time
74396         zone indicator, not before.  Reported by Todd A. Jacobs.
74397
74398 2000-06-13  Jim Meyering  <meyering@lucent.com>
74399
74400         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
74401
74402         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
74403
74404 2000-06-12  Paul Eggert  <eggert@twinsun.com>
74405
74406         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
74407
74408 2000-06-12  Jim Meyering  <meyering@lucent.com>
74409
74410         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
74411         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
74412         optional argument.
74413         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
74414         the optional argument, `lib'.
74415
74416 2000-06-08  Jim Meyering  <meyering@lucent.com>
74417
74418         * m4/largefile.m4: Remove file (now that it's part of autoconf).
74419
74420 2000-06-04  Paul Eggert  <eggert@twinsun.com>
74421
74422         Rewrite largefile configuration so that we don't need to run
74423         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
74424         AC_CANONICAL_HOST in configure.in -- jmm]
74425
74426         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
74427         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
74428         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
74429         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
74430         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
74431         All uses changed.
74432         Instead of inspecting the output of getconf, try to compile the
74433         test program without and with the macro definition.
74434         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
74435         for getconf.  Instead, check for the needed flags by compiling
74436         test programs.
74437
74438 2000-06-04  Paul Eggert  <eggert@twinsun.com>
74439
74440         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
74441
74442 2000-06-04  Jim Meyering  <meyering@lucent.com>
74443
74444         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
74445         SunOS 4.1.4 for which gid_t is an unsigned type.
74446
74447 2000-06-03  Jim Meyering  <meyering@lucent.com>
74448
74449         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
74450         now that autoconf requires that.
74451
74452         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
74453         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
74454         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
74455
74456 2000-06-03  Jim Meyering  <meyering@lucent.com>
74457
74458         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
74459
74460 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
74461
74462         * m4/glibc21.m4: New file.
74463         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
74464
74465 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
74466
74467         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
74468         newer, don't install charset.alias.
74469         * lib/config.charset: Change the Linux/glibc rules so they become empty
74470         on glibc-2.1 or newer.
74471
74472 2000-06-02  Jim Meyering  <meyering@lucent.com>
74473
74474         * lib/mountlist.c: Back out last change.  Instead, do this...
74475         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
74476         me_dummy member using the same `ignore'-testing code.
74477         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
74478         fs_type strings.
74479         From Mark D. Roth.
74480
74481 2000-05-29  Jim Meyering  <meyering@lucent.com>
74482
74483         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
74484         mounts with the `ignore' attribute.  Based on a patch from
74485         Mark D. Roth.
74486
74487 2000-05-28  Jim Meyering  <meyering@lucent.com>
74488
74489         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
74490         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74491         * m4/stat.m4: Likewise.
74492         * m4/lstat.m4: Likewise.
74493         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
74494
74495         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
74496         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
74497
74498 2000-05-26  Jim Meyering  <meyering@lucent.com>
74499
74500         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
74501
74502 2000-05-24  Jim Meyering  <meyering@lucent.com>
74503
74504         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
74505         autoconf requires that.
74506         * m4/lib-check.m4: Likewise.
74507         * m4/jm-macros.m4: Likewise.
74508         * m4/strftime.m4: Likewise.
74509
74510         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
74511         AC_CHECK_DECLS, now that autoconf requires that.
74512
74513 2000-05-22  Jim Meyering  <meyering@lucent.com>
74514
74515         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74516         * m4/lstat.m4: Likewise.
74517
74518 2000-05-22  Jim Meyering  <meyering@lucent.com>
74519
74520         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
74521
74522 2000-05-20  Jim Meyering  <meyering@lucent.com>
74523
74524         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
74525         (jm_PREREQ): Use it.
74526
74527 2000-05-18  Jim Meyering  <meyering@lucent.com>
74528
74529         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
74530         back, too, since it may have been modified by allocate_entry.
74531         (hash_delete): Rewrite to use neither the assignment operator
74532         nor the comma operator in an if-expression.
74533
74534 2000-05-15  Paul Eggert  <eggert@twinsun.com>
74535
74536         * lib/closeout.c:
74537         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
74538         Remove; no longer needed.
74539         "quotearg.h": Add include.
74540         (file_name): Do not bother to explicitly initialize to NULL; it's less
74541         efficient on some hosts.
74542         (close_stdout_status): Remove test as to whether stdout was already
74543         closed; it breaks for the case "echo x | sort >&-".
74544         Quote file name colons.
74545         Do not assume that _("write error") lacks format strings.
74546
74547 2000-05-15  Jim Meyering  <meyering@lucent.com>
74548
74549         * lib/version-etc.c (version_etc_copyright): Update the copyright
74550         string used in all --version output.
74551
74552 2000-05-14  Jim Meyering  <meyering@lucent.com>
74553
74554         * lib/closeout.c (close_stdout_set_file_name): New function.
74555         (close_stdout_status): Use new file-scoped global.
74556         Return right away if fstat says the stdout file descriptor is invalid.
74557         * lib/closeout.h (close_stdout_set_file_name): Declare.
74558
74559 2000-05-10  Jim Meyering  <meyering@lucent.com>
74560
74561         * lib/closeout.c [default_exit_status]: New file-scoped variable.
74562         (close_stdout_set_status): New function.
74563         * lib/closeout.h (close_stdout_set_status): Declare.
74564
74565 2000-05-09  Jim Meyering  <meyering@lucent.com>
74566
74567         * m4/gettext.m4: Rename this...
74568         * m4/libintl.m4: ...to this.
74569
74570 2000-05-08  Jim Meyering  <meyering@lucent.com>
74571
74572         * lib/long-options.c: Don't include closeout.h.
74573         (parse_long_options): Don't call close_stdout for --version.
74574
74575 2000-05-06  Paul Eggert  <eggert@twinsun.com>
74576
74577         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
74578         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
74579         2.1.3 bug.  This avoids a clash when files like regex.c define
74580         _GNU_SOURCE.
74581
74582 2000-05-06  Jim Meyering  <meyering@lucent.com>
74583
74584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
74585         (AC_REPLACE_FUNCS): Add strnlen.
74586
74587         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
74588         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
74589
74590         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
74591         AC_SEARCH_LIBS call for nanosleep.
74592         (LIB_NANOSLEEP): Set and AC_SUBST.
74593
74594 2000-05-06  Jim Meyering  <meyering@lucent.com>
74595
74596         * lib/strnlen.c: Undefine __strnlen and strnlen.
74597         [!weak_alias]: Define __strnlen to strnlen.
74598
74599         * lib/atexit.c: New file, from libiberty.
74600
74601 2000-05-06  Jim Meyering  <meyering@lucent.com>
74602
74603         * lib/closeout.c (close_stdout_status): Also check for errors on the
74604         stderr stream.
74605
74606 2000-05-05  Jim Meyering  <meyering@lucent.com>
74607
74608         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
74609         AC_SEARCH_LIBS call for clock_gettime.
74610         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
74611
74612         * m4/search-libs.m4: Update from autoconf.
74613
74614         su doesn't work on Solaris 2.6.
74615         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
74616         <shadow.h>.  Reported by Dragos Harabor.
74617
74618 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
74619
74620         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
74621         memcpy instead of xmalloc, xrealloc, path_concat.
74622         (locale_charset): Treat empty environment variables as absent.
74623         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
74624
74625 2000-05-04  Jim Meyering  <meyering@lucent.com>
74626
74627         * lib/getopt.c: Update from glibc.
74628         * lib/obstack.c: Likewise.
74629         * lib/obstack.h: Likewise.
74630         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
74631         file
74632
74633         * lib/regex.h: Likewise.
74634         * lib/strndup.c: Likewise.
74635         * lib/strnlen.c: New file, from glibc.
74636
74637 2000-05-03  Jim Meyering  <meyering@lucent.com>
74638
74639         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
74640
74641 2000-05-02  Paul Eggert  <eggert@twinsun.com>
74642
74643         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
74644         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
74645         compile-time test, rather than inspecting host and OS, to
74646         decide whether to define _LARGEFILE_SOURCE.
74647
74648 2000-05-01  Jim Meyering  <meyering@lucent.com>
74649
74650         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
74651
74652         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
74653         Based on a patch from Bruno Haible.
74654
74655 2000-05-01  Jim Meyering  <meyering@lucent.com>
74656
74657         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
74658
74659 2000-04-29  Jim Meyering  <meyering@lucent.com>
74660
74661         * lib/path-concat.c: Declare strdup only if it's not defined.
74662         * lib/canon-host.c: Likewise.
74663
74664 2000-04-28  Jim Meyering  <meyering@lucent.com>
74665
74666         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
74667         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
74668         is included first, then limits.h is included by locale.h by libintl.h.
74669         From John David Anglin.
74670
74671 2000-04-25  Jim Meyering  <meyering@lucent.com>
74672
74673         * lib/makepath.c (S_IRWXUGO): Define.
74674         (make_path): Always perform explicit chmod if MODE specifies any
74675         of the `special' permission bits.  Prompted by a bug report against
74676         install from Mate Wierdl and Joost van Baal.
74677
74678 2000-04-18  Jim Meyering  <meyering@lucent.com>
74679
74680         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
74681         (jm_PREREQ): Use it.
74682
74683 2000-04-18  Jim Meyering  <meyering@lucent.com>
74684
74685         * lib/README: New file.
74686
74687         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
74688         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
74689
74690 2000-04-17  Jim Meyering  <meyering@lucent.com>
74691
74692         Get it right :-)
74693         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
74694         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
74695         Suggestion from Akim Demaille.
74696
74697 2000-04-17  Jim Meyering  <meyering@lucent.com>
74698
74699         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
74700         the definition of it to rpl_strftime also defined-away the system's
74701         declaration.
74702
74703 2000-04-15  Jim Meyering  <meyering@lucent.com>
74704
74705         Use `C' to denote so-called `contiguous' files, the same way
74706         that tar does.
74707         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
74708         (ftypelet): Use S_ISCTG.
74709         From Michael Deutschmann.
74710
74711 2000-04-14  Jim Meyering  <meyering@lucent.com>
74712
74713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
74714         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
74715         clobbered.
74716
74717 2000-04-14  Jim Meyering  <meyering@lucent.com>
74718
74719         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
74720
74721 2000-04-13  Jim Meyering  <meyering@lucent.com>
74722
74723         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
74724         AH_VERBATIM to insert required #ifndef into config.h.in.
74725         Suggestion from Akim Demaille.
74726
74727 2000-04-12  Jim Meyering  <meyering@lucent.com>
74728
74729         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
74730         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
74731         Christian Krackowizer.
74732
74733         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
74734         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
74735         (AC_SYS_LARGEFILE): Require.
74736         (AM_C_PROTOTYPES): Require.
74737
74738 2000-04-08  Jim Meyering  <meyering@lucent.com>
74739
74740         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
74741         names don't conflict.  Reported by Eli Zaretskii.
74742
74743 2000-04-07  Jim Meyering  <meyering@lucent.com>
74744
74745         * lib/putenv.c: Move inclusion of errno.h so it follows that of
74746         sys/types.h, to work around system header problems on AIX 3.2.5.
74747         From Bruno Haible.
74748
74749 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
74750
74751         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
74752         bug.  Deal with the different error behavior of Irix iconv.
74753
74754 2000-04-05  Paul Eggert  <eggert@twinsun.com>
74755
74756         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
74757         IRIX if the installer said otherwise.
74758
74759 2000-04-05  Jim Meyering  <meyering@lucent.com>
74760
74761         Portability tweaks required for ultrix4.3.
74762         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
74763         (jm_CHECK_DECLS): Add getutent to the list of functions.
74764         (_jm_DECL_HEADERS): Add utmpx.h.
74765         From John David Anglin.
74766
74767         * m4/strftime.m4: Back out the 2000-04-02 change.
74768         Instead of that change, simply undefine putenv in the test program.
74769
74770 2000-04-05  Jim Meyering  <meyering@lucent.com>
74771
74772         Portability tweaks required for ultrix4.3.
74773         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
74774         getutent.
74775         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
74776         * lib/canon-host.c: Declare strdup.
74777         * lib/path-concat.c: Likewise.
74778         From John David Anglin.
74779
74780 2000-04-04  Jim Meyering  <meyering@lucent.com>
74781
74782         Be more DOS 8.3-friendly.
74783         * lib/ref-add.sin: Renamed from ref-add.sed.in.
74784         * lib/ref-del.sin: Renamed from ref-del.sed.in.
74785         * lib/Makefile.am: Reflect renaming.
74786         Reported by Eli Zaretskii.
74787
74788         Use a temporary file name that won't clash with `charset.alias'
74789         in the DOS 8.3 name space.
74790         * lib/Makefile.am (charset_tmp): Define.
74791         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
74792         (uninstall-local): Likewise.
74793         Reported by Eli Zaretskii.
74794
74795 2000-04-03  Jim Meyering  <meyering@lucent.com>
74796
74797         * m4/gettext.m4: Fix typo in comment.
74798
74799         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
74800         textutils/configure.in).  Suggestion from Paul Eggert.
74801         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
74802
74803 2000-04-02  Paul Eggert  <eggert@twinsun.com>
74804
74805         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
74806         variable in the shell rather than using putenv, which isn't
74807         portable.  This avoids the configure-time inter-test dependency
74808         on the potentially-renamed putenv function.
74809
74810 2000-03-30  Paul Eggert  <eggert@twinsun.com>
74811
74812         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
74813         before checking struct stat.st_blksize, so that
74814         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
74815
74816 2000-03-29  Paul Eggert  <eggert@twinsun.com>
74817
74818         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
74819         since strftime.c uses HAVE_STRFTIME to decide whether to use
74820         the underlying strftime.
74821
74822 2000-03-29  Paul Eggert  <eggert@twinsun.com>
74823
74824         * lib/time/strftime.c (my_strftime): Make sure we call the system
74825         strftime, not ourselves, when invoking the underlying strftime.
74826
74827 2000-03-24  Jim Meyering  <meyering@lucent.com>
74828
74829         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
74830         (charset_alias): Define.
74831         (install-exec-local): Factor out common code.
74832         (uninstall-local): Split lines longer than 80.
74833         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
74834         (SUFFIXES): Define.
74835         (.sed.in.sed): New rule.  Don't redirect directly to $@.
74836         (CLEANFILES): Add ref-add.sed and ref-del.sed.
74837
74838 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
74839
74840         * lib/config.charset: Output a line containing "Packages using this
74841         file".
74842         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
74843         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
74844         ref-del.sed): New rules.
74845
74846 2000-03-17  Jim Meyering  <meyering@lucent.com>
74847
74848         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
74849         Otherwise, include <strings.h>
74850
74851 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
74852
74853         * lib/unicodeio.c (utf8_wctomb): New function.
74854         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
74855         format instead of in UCS-4 with platform dependent endianness.
74856
74857 2000-03-10  Jim Meyering  <meyering@lucent.com>
74858
74859         * m4/lib-check.m4: Look for getspnam in -lgen, too.
74860         From Marco Franzen.
74861
74862 2000-03-07  Paul Eggert  <eggert@twinsun.com>
74863
74864         * lib/savedir.c (savedir): Work even if directory size is
74865         negative; this can happen with some screwy NFS configurations.
74866
74867 2000-03-06  Jim Meyering  <meyering@lucent.com>
74868
74869         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
74870         if it's NULL (because we ran out of memory).  From Bruno Haible.
74871
74872 2000-03-05  Jim Meyering  <meyering@lucent.com>
74873
74874         * lib/localcharset.c ("path-concat.h"): Include.
74875         (get_charset_aliases): Use path_concat instead of ANSI string
74876         concatenation.
74877
74878         * lib/unicodeio.h (PARAMS): Define.
74879         Use it to guard prototype.
74880
74881 2000-03-04  Jim Meyering  <meyering@lucent.com>
74882
74883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
74884         for lib/localcharset.c.
74885
74886 2000-03-04  Jim Meyering  <meyering@lucent.com>
74887
74888         * lib/Makefile.am (install-exec-local): Create $(libdir) before
74889         installing into it.
74890         (uninstall-local): Uncomment this rule so `make distcheck' works
74891         once again.
74892
74893         * lib/unicodeio.c (<errno.h>): Include it.
74894         (errno): Declare if not defined.
74895
74896         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
74897
74898         * lib/config.charset: New version, incorporating remarks from a linux
74899         i18n mailing list.  From Bruno Haible.
74900
74901 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
74902
74903         * m4/codeset.m4: New file.
74904         * m4/iconv.m4: New file.
74905         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
74906
74907 2000-03-03  Jim Meyering  <meyering@lucent.com>
74908
74909         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
74910
74911 2000-03-02  Jim Meyering  <meyering@lucent.com>
74912
74913         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
74914         the messages come out on separate lines.
74915
74916         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
74917         rather than jm_CHECK_DECLARATIONS.
74918         * m4/decl.m4: Remove now-unused file.
74919
74920         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
74921         geteuid.
74922
74923 2000-03-02  Jim Meyering  <meyering@lucent.com>
74924
74925         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
74926
74927 2000-03-01  Jim Meyering  <meyering@lucent.com>
74928
74929         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
74930         * lib/unicodeio.c: Likewise.
74931
74932 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
74933
74934         * lib/config.charset: New file.
74935         * lib/localcharset.c: New file.
74936         * lib/unicodeio.h, lib/unicodeio.c: New files.
74937         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
74938         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
74939         (noinst_HEADERS): Add unicodeio.h.
74940         (all-local, install-exec-local, charset.alias): New targets.
74941
74942 2000-02-28  Paul Eggert  <eggert@twinsun.com>
74943
74944         * lib/quotearg.c (ALERT_CHAR): New macro.
74945         (quotearg_buffer_restyled): Use it.
74946
74947 2000-02-27  Jim Meyering  <meyering@lucent.com>
74948
74949         * m4/check-decl.m4: Add getenv to the list.
74950
74951 2000-02-27  Jim Meyering  <meyering@lucent.com>
74952
74953         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
74954         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
74955
74956         * lib/backupfile.c: Guard inclusion of stdlib.h with
74957         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
74958         Declare malloc if needed.
74959
74960         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
74961         `#ifndef HAVE_DECL..'
74962         now that autoconf always defines the HAVE_DECL_ symbols.
74963         * lib/human.c: Likewise.
74964         * lib/same.c: Likewise.
74965         * lib/strtoumax.c: Likewise.
74966
74967         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
74968         declaration check was not run.
74969         * lib/hash.c: Likewise.
74970         * lib/human.c: Likewise.
74971         * lib/same.c: Likewise.
74972         * lib/strtoumax.c: Likewise.
74973
74974         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
74975         `.', then first look up the entire `.'-containing string as a login
74976         name.
74977
74978 2000-02-23  Jim Meyering  <meyering@lucent.com>
74979
74980         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
74981         in place of my hack.
74982
74983 2000-02-18  Paul Eggert  <eggert@twinsun.com>
74984
74985         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
74986         (textint): New typedef.
74987         (parser_control): Member year changed from int to textint.
74988         All uses changed.
74989         (YYSTYPE): Removed; replaced by %union with int and textint members.
74990         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
74991         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
74992         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
74993         (tSNUMBER, tUNUMBER): Now of type <textintval>.
74994         (date, number, to_year): Use width of number in digits, not its value,
74995         to determine whether it's a 2-digit year, or a 2-digit time.
74996         (yylex): Store number of digits of numeric tokens.
74997         Reported by John Kendall.
74998
74999         (parser_control): Changed from struct parser_control to typedef (for
75000         consistency).  All uses changed.
75001
75002         (tID): Removed; not used.
75003         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
75004
75005 2000-02-14  Paul Eggert  <eggert@twinsun.com>
75006
75007         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
75008         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
75009
75010 2000-02-12  Jim Meyering  <meyering@lucent.com>
75011
75012         * lib/userspec.c (ISDIGIT): Define it.
75013         (isdigit): Remove definition.
75014         (is_number): Use ISDIGIT, not isdigit.
75015         <libintl.h>: Include.
75016         (_ and N_): Define.
75017         (parse_user_spec): Mark translatable strings.
75018
75019 2000-02-10  Jim Meyering  <meyering@lucent.com>
75020
75021         With these changes, nanosleep.[ch] are finally enough like the other
75022         lib/* replacement files to compile on a few more losing systems.
75023
75024         * lib/nanosleep.h: Don't include config.h.
75025         Remove prototype from declaration of nanosleep.
75026         (PARAMS): Remove now-unneeded definition.
75027         * lib/nanosleep.c: #undef nanosleep.
75028         (rpl_nanosleep): Rename from nanosleep.
75029
75030 2000-02-10  Jim Meyering  <meyering@lucent.com>
75031
75032         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
75033         gnu_nanosleep to rpl_nanosleep.
75034
75035 2000-02-09  Jim Meyering  <meyering@lucent.com>
75036
75037         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
75038         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
75039
75040 2000-02-08  Akim Demaille  <akim@epita.fr>
75041
75042         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
75043         `[' and `]' and remove uses of `changequote'.
75044         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
75045         (AC_SYS_LARGEFILE): Likewise.
75046         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
75047         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
75048         of changequote.
75049         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
75050         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
75051         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
75052         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
75053
75054 2000-02-05  Jim Meyering  <meyering@lucent.com>
75055
75056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
75057         Remove explicit use of AC_HEADER_TIME.  It is required by
75058         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
75059         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
75060         in autoconf whereby the expansion of the latter ended up preceding
75061         the expansion of its prerequisite, AC_HEADER_TIME.
75062         Reported by Volker Borchert.
75063
75064 2000-02-03  Jim Meyering  <meyering@lucent.com>
75065
75066         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
75067
75068 2000-02-03  Jim Meyering  <meyering@lucent.com>
75069
75070         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
75071         rather than with `#if HAVE_UTMPNAME'.
75072
75073 2000-02-02  Jim Meyering  <meyering@lucent.com>
75074
75075         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
75076         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
75077         Reported by Eli Zaretskii.
75078
75079 2000-02-01  Jim Meyering  <meyering@lucent.com>
75080
75081         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
75082
75083 2000-01-31  Jim Meyering  <meyering@lucent.com>
75084
75085         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
75086         functions.  Add the time.h and sys/time.h headers along with the
75087         AC_REQUIRE'ment of AC_HEADER_TIME.
75088
75089 2000-01-31  Jim Meyering  <meyering@lucent.com>
75090
75091         * lib/nanosleep.h (nanosleep): Guard declaration with
75092         `#if ! HAVE_DECL_NANOSLEEP'.
75093         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
75094         the declaration in that vendor's sys/timers.h.
75095         Reported by Christian Krackowizer.
75096
75097         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
75098         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
75099         (ISPRINT): Likewise.
75100         Reported by Tom Tromey.
75101
75102 2000-01-30  Jim Meyering  <meyering@lucent.com>
75103
75104         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
75105
75106         * m4/prereq.m4 (utmp_includes): Define.
75107         Check for ut_user and ut_name members in both struct utmpx
75108         and struct utmp.
75109
75110 2000-01-30  Jim Meyering  <meyering@lucent.com>
75111
75112         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
75113         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
75114         header files where only utmpx.ut_user is declared.
75115
75116         * lib/readutmp.h (UT_USER): Define.
75117
75118 2000-01-29  Jim Meyering  <meyering@lucent.com>
75119
75120         * m4/lib-check.m4: New file containing library-related checks from
75121         fileutils and sh-utils (textutils had none).
75122
75123 2000-01-28  Jim Meyering  <meyering@lucent.com>
75124
75125         * m4/perl.m4: Change format of warning message to look more like that
75126         from the missing script.  Suggestion from François Pinard.
75127
75128 2000-01-25  Jim Meyering  <meyering@lucent.com>
75129
75130         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
75131         well as time.h in the compile check.
75132         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
75133         Fix typo in cross-compiling case: s/yes/no/.
75134
75135 2000-01-23  Jim Meyering  <meyering@lucent.com>
75136
75137         * m4/jm-macros.m4: Move df-related tests here from
75138         fileutils/configure.in
75139
75140         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
75141         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
75142
75143         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
75144         s/space/ac_fsusage_space/.
75145         (jm_FILE_SYSTEM_USAGE): Take two parameters.
75146
75147         * m4/ftruncate.m4: New file (derived from part of
75148         fileutils/configure.in).
75149         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
75150         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
75151
75152         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
75153         AC_SUBST these here, rather than just in sh-util/configure.in, so
75154         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
75155         all the same.
75156         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
75157         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
75158         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
75159         (AC_SUBST(POW_LIBM)): Likewise.
75160         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
75161
75162 2000-01-23  Jim Meyering  <meyering@lucent.com>
75163
75164         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
75165         obstack.c.
75166
75167 2000-01-22  Jim Meyering  <meyering@lucent.com>
75168
75169         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
75170
75171         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
75172
75173         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
75174         configure.in
75175         (AC_CHECK_HEADERS): Likewise for sh-utils.
75176         (AC_CHECK_HEADERS): Likewise for textutils.
75177         Merge the three lists of headers.
75178
75179         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
75180         from fileutils' configure.in.
75181
75182         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
75183         code. Moved tests into their own function (_jm_DECL_HEADERS) in
75184         check-decl.m4.
75185
75186         * m4/check-decl.m4: Use #if rather than #ifdef.
75187         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
75188         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
75189         (_jm_DECL_HEADERS): Define new function.
75190         (jm_CHECK_DECLARATIONS): Require it.
75191
75192 2000-01-22  Jim Meyering  <meyering@lucent.com>
75193
75194         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
75195         [! HAVE_DECL_STRTOULL]: Declare strtoull.
75196         Required for some AIX systems.  Reported by Christian Krackowizer.
75197         [TESTING] (main): New function.
75198
75199         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
75200         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
75201         letters.
75202
75203         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
75204         iswprint.
75205
75206         * lib/strverscmp.c (ISDIGIT): Define.
75207         (strverscmp): Use ISDIGIT, not isdigit.
75208
75209 2000-01-19  Jim Meyering  <meyering@lucent.com>
75210
75211         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
75212         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
75213         defines `struct timespec' in <sys/time.h>
75214
75215         * m4/c-bs-a.m4: Remove uses of changequote altogether.
75216         Thanks to Akim for explaining.
75217
75218 2000-01-17  Paul Eggert  <eggert@twinsun.com>
75219
75220         * lib/nanosleep.c (nanosleep):
75221         Don't use SA_INTERRUPT to decide whether to call sigaction, as
75222         POSIX.1 doesn't require SA_INTERRUPT and some systems
75223         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
75224         it's been part of POSIX.1 since day 1 (in 1988).
75225
75226 2000-01-17  Jim Meyering  <meyering@lucent.com>
75227
75228         * lib/interlock: Remove unused file.  Reported by François Pinard.
75229
75230 2000-01-16  Paul Eggert  <eggert@twinsun.com>
75231
75232         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
75233         alert, backslash, formfeed, and vertical tab unnecessarily in
75234         shell quoting style.
75235
75236 2000-01-16  Jim Meyering  <meyering@lucent.com>
75237
75238         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
75239         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
75240         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
75241         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
75242
75243 2000-01-16  Jim Meyering  <meyering@lucent.com>
75244
75245         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
75246         because the latter didn't work.
75247
75248 2000-01-15  Jim Meyering  <meyering@lucent.com>
75249
75250         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
75251         (AC_REPLACE_FUNCS): Add memcpy and memset.
75252         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
75253         Add strpbrk.
75254         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
75255
75256 2000-01-12  Jim Meyering  <meyering@lucent.com>
75257
75258         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
75259         (jm_PREREQ): Use it.
75260         (jm_PREREQ_READUTMP): New macro.
75261         (jm_PREREQ): Use it.
75262
75263 2000-01-11  Paul Eggert  <eggert@twinsun.com>
75264
75265         Quote multibyte characters correctly.
75266         * m4/c-bs-a.m4: New file.
75267         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
75268         (jm_PREREQ): Use it.
75269
75270 2000-01-11  Paul Eggert  <eggert@twinsun.com>
75271
75272         * m4/uintmax_t.m4: Port to autoconf 2.13.
75273
75274 2000-01-08  Jim Meyering  <meyering@ascend.com>
75275
75276         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
75277         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
75278
75279 2000-01-04  Jim Meyering  <meyering@ascend.com>
75280
75281         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
75282         jm_STRUCT_DIRENT_D_TYPE.
75283         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
75284         jm_STRUCT_DIRENT_D_INO.
75285         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
75286         jm_STRUCT_UTIMBUF.
75287         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
75288         renamings.
75289         * m4/utime.m4: Likewise.
75290
75291         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
75292         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
75293
75294 2000-01-03  Paul Eggert  <eggert@twinsun.com>
75295
75296         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
75297         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
75298
75299 2000-01-02  Jim Meyering  <meyering@ascend.com>
75300
75301         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
75302         remember if this is necessary.
75303
75304 1999-12-26  Jim Meyering  <meyering@ascend.com>
75305
75306         * m4/jm-macros.m4: Use it here.
75307         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
75308
75309 1999-12-23  Jim Meyering  <meyering@ascend.com>
75310
75311         * m4/jm-macros.m4: Check for clock_gettime (moved from
75312         fileutils/configure.in)
75313         Check for gettimeofday.
75314
75315 1999-12-20  Jim Meyering  <meyering@ascend.com>
75316
75317         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
75318         autoconf-2.14a-1999-12-20.
75319
75320 1999-12-19  Jim Meyering  <meyering@ascend.com>
75321
75322         * m4/lstat-slash.m4: New file.
75323         * m4/jm-macros.m4: Use the new macro:
75324         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75325
75326 1999-12-07  Jim Meyering  <meyering@ascend.com>
75327
75328         * m4/perl.m4: Require that File::Compare be available, too.
75329         Too many systems seem to lack it.
75330
75331         * m4/strftime.m4: Add checks for most of the cpp macros tested in
75332         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
75333
75334 1999-11-18  Paul Eggert  <eggert@twinsun.com>
75335
75336         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
75337         problem with the QNX 4.25 shell, which doesn't propagate exit
75338         status of failed commands inside shell assignments.
75339
75340 1999-11-17  Jim Meyering  <meyering@ascend.com>
75341
75342         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
75343
75344 1999-11-07  Jim Meyering  <meyering@ascend.com>
75345
75346         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
75347
75348 1999-11-06  Jim Meyering  <meyering@ascend.com>
75349
75350         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
75351         * m4/jm-macros.m4 (jm_MACROS): Use it here.
75352
75353 1999-11-05  Jim Meyering  <meyering@ascend.com>
75354
75355         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
75356         configure.in of textutils, fileutils, and sh-utils into this one
75357         (shared between those packages) file.
75358         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
75359         AC_STRUCT_ST_BLKSIZE.
75360
75361 1999-11-03  Jim Meyering  <meyering@ascend.com>
75362
75363         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
75364         of AC_CHECK_TYPE checks includes unistd.h.
75365         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
75366         Suggestion from Akim Demaille.
75367
75368 1999-10-30  Jim Meyering  <meyering@ascend.com>
75369
75370         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
75371         m4-quoted string.
75372         * m4/ls-mntd-fs.m4: Likewise.
75373         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
75374         * m4/jm-winsz1.m4: Likewise.
75375
75376         * m4/const.m4: Remove file, since the fix made it into the experimental
75377         version of autoconf.
75378         * m4/mktime.m4: Likewise.
75379
75380         * m4/check-type.m4: Remove file, now that the latest version of
75381         AC_CHECK_TYPE takes a third arg to specify additional #includes.
75382
75383         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
75384         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
75385         AC_CHECK_TYPE.
75386
75387 1999-10-04  Jim Meyering  <meyering@ascend.com>
75388
75389         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
75390
75391 1999-09-22  Paul Eggert  <eggert@twinsun.com>
75392
75393         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
75394         2.95.1 bug with HP-UX 10.20.
75395
75396 1999-09-17  Jim Meyering  <meyering@ascend.com>
75397
75398         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
75399         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
75400         due to missing strdup (against sh-utils-2.0).
75401
75402 1999-08-29  Jim Meyering  <meyering@ascend.com>
75403
75404         * m4/jm-macros.m4: Require jm_BISON.
75405         * m4/bison.m4: New file.
75406
75407 1999-08-17  Paul Eggert  <eggert@twinsun.com>
75408
75409         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
75410         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
75411
75412 1999-08-05  Jim Meyering  <meyering@ascend.com>
75413
75414         * m4/getline.m4: Rename test file from conftestdata to conftest.data
75415         to avoid conflicts with `conftest' on 8+3 filesystems.
75416         Suggestion from Eli Zaretskii.
75417
75418 1999-08-04  Jim Meyering  <meyering@ascend.com>
75419
75420         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
75421         fileutils and sh-utils (textutils's getline test was inadequate).
75422         (AM_FUNC_GETLINE): Run this test.
75423         (AC_CHECK_FUNCS): Check for getdelim.
75424         Reported by Bob Proulx.
75425
75426 1999-08-02  Jim Meyering  <meyering@ascend.com>
75427
75428         * m4/jm-macros.m4: Add a comment.
75429
75430 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75431
75432         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
75433         <inttypes.h> defines strtoumax as a macro (and not as a
75434         function).
75435
75436 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75437
75438         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
75439         that we can shift, multiply and divide unsigned long long
75440         values; Ultrix cc can't do it.
75441
75442 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75443
75444         * m4/mktime.m4: New file, which is a preview of what should appear
75445         in the next public autoconf release.
75446
75447 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75448
75449         * m4/lfs.m4: Remove this file.
75450         * m4/largefile.m4: New file.  It contains the old contents of
75451         lfs.m4, except that all names with prefix AC_LFS have been
75452         changed to use the prefix AC_SYS_LARGEFILE instead, to be
75453         compatible with future autoconf versions.  Also, some minor m4
75454         quoting problems have been fixed.
75455
75456 1999-08-01  Paul Eggert  <eggert@twinsun.com>
75457
75458         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
75459         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
75460         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
75461         and simplify the shell code.
75462
75463 1999-08-01  Jim Meyering  <meyering@ascend.com>
75464
75465         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
75466         m4.
75467
75468 1999-07-20  Jim Meyering  <meyering@ascend.com>
75469
75470         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
75471
75472 1999-07-15  Jim Meyering  <meyering@ascend.com>
75473
75474         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
75475
75476 1999-05-22  Jim Meyering  <meyering@ascend.com>
75477
75478         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
75479
75480 1999-05-20  Jim Meyering  <meyering@ascend.com>
75481
75482         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
75483         Add a colon after each `then' in case $4 is empty.
75484
75485 1999-05-16  Jim Meyering  <meyering@ascend.com>
75486
75487         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
75488
75489 1999-05-10  Jim Meyering  <meyering@ascend.com>
75490
75491         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
75492
75493         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
75494         AC_FUNC_MKTIME.
75495
75496 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
75497
75498         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
75499
75500 1999-05-04  Paul Eggert  <eggert@twinsun.com>
75501
75502         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
75503         not CPPFLAGS, so that linking works correctly in IRIX.
75504
75505 1999-04-30  Paul Eggert  <eggert@twinsun.com>
75506
75507         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
75508
75509 1999-04-20  Paul Eggert  <eggert@twinsun.com>
75510
75511         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
75512         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
75513         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
75514         jm_AC_TYPE_UNSIGNED_LONG_LONG.
75515         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
75516
75517         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
75518
75519 1999-04-20  Jim Meyering  <meyering@ascend.com>
75520
75521         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
75522         AC_REPLACE xstroull if necessary.  From Paul Eggert.
75523         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
75524
75525 1999-04-18  Jim Meyering  <meyering@ascend.com>
75526
75527         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
75528         * m4/jm-macros.m4: Use it.
75529
75530 1999-04-06  Jim Meyering  <meyering@ascend.com>
75531
75532         * m4/strftime.m4: Remove test for %f.
75533
75534 1999-03-29  Jim Meyering  <meyering@ascend.com>
75535
75536         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
75537         superset of the AC_TYPE_* checks in the textutils, fileutils,
75538         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
75539         AC_TYPE_PID_T.
75540
75541 1999-03-28  Jim Meyering  <meyering@ascend.com>
75542
75543         * m4/jm-macros.m4: Define GNU_PACKAGE here.
75544         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
75545         replaced e.g., in the *.sh files of the sh-utils.
75546
75547 1999-03-20  Jim Meyering  <meyering@ascend.com>
75548
75549         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
75550         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
75551         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
75552
75553 1999-03-19  Jim Meyering  <meyering@ascend.com>
75554
75555         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
75556
75557 1999-03-12  Jim Meyering  <meyering@ascend.com>
75558
75559         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
75560
75561 1999-03-07  Jim Meyering  <meyering@ascend.com>
75562
75563         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
75564         declared.
75565
75566 1999-02-17  Jim Meyering  <meyering@ascend.com>
75567
75568         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
75569         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
75570
75571 1999-02-07  Jim Meyering  <meyering@ascend.com>
75572
75573         * m4/group-member.m4: New file -- extracted from sh-utils'
75574         configure.in.
75575
75576         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
75577         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
75578
75579 1999-02-06  Jim Meyering  <meyering@ascend.com>
75580
75581         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
75582         * m4/fnmatch.m4: Likewise.
75583         * m4/getgroups.m4: Likewise.
75584         * m4/lstat.m4: Likewise.
75585         * m4/malloc.m4: Likewise.
75586         * m4/putenv.m4: Likewise.
75587         * m4/realloc.m4: Likewise.
75588         * m4/regex.m4: Likewise.
75589         * m4/stat.m4: Likewise.
75590         * m4/strftime.m4: Likewise.
75591         Suggestion from Alain Magloire.
75592
75593         * m4/chown.m4: Use `.$ac_objext', not `.o'.
75594         * m4/fnmatch.m4: Likewise.
75595         * m4/getgroups.m4: Likewise.
75596         * m4/getline.m4: Likewise.
75597         * m4/lstat.m4: Likewise.
75598         * m4/malloc.m4: Likewise.
75599         * m4/memcmp.m4: Likewise.
75600         * m4/putenv.m4: Likewise.
75601         * m4/realloc.m4: Likewise.
75602         * m4/regex.m4: Likewise.
75603         * m4/stat.m4: Likewise.
75604         * m4/strftime.m4: Likewise.
75605         Suggestion from Alain Magloire.
75606
75607         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
75608         an argument.
75609
75610         * m4/regex.m4: Add a run-time Test for proper operation of
75611         re_compile_pattern.
75612
75613 1999-01-31  Jim Meyering  <meyering@ascend.com>
75614
75615         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
75616
75617 1999-01-30  Jim Meyering  <meyering@ascend.com>
75618
75619         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
75620
75621         * m4/jm-mktime.m4: Make this a wrapper around the official
75622         AM_FUNC_MKTIME rather than my private copy, now that the official one
75623         is up to date.
75624         * m4/mktime.m4: Remove file.
75625
75626         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
75627         * m4/uptime.m4: Likewise.
75628         * m4/uintmax_t.m4: Likewise.
75629
75630 1999-01-28  Jim Meyering  <meyering@ascend.com>
75631
75632         * m4/jm-macros.m4: Use jm_AFS.
75633         * m4/afs.m4: New file (from fileutils' configure.in).
75634
75635         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
75636         * m4/chown.m4: Likewise.
75637         * m4/d-ino.m4: Likewise.
75638         * m4/d-type.m4: Likewise.
75639         * m4/fnmatch.m4: Likewise.
75640         * m4/getgroups.m4: Likewise.
75641         * m4/gettext.m4: Likewise.
75642         * m4/jm-mktime.m4: Likewise.
75643         * m4/jm-winsz2.m4: Likewise.
75644         * m4/lcmessage.m4: Likewise.
75645         * m4/ls-mntd-fs.m4: Likewise.
75646         * m4/malloc.m4: Likewise.
75647         * m4/memcmp.m4: Likewise.
75648         * m4/putenv.m4: Likewise.
75649         * m4/realloc.m4: Likewise.
75650         * m4/st_mtim.m4: Likewise.
75651         * m4/strftime.m4: Likewise.
75652
75653 1999-01-16  Jim Meyering  <meyering@ascend.com>
75654
75655         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
75656         (ARGMATCH_DIE_DECL): Define.
75657
75658 1999-01-12  Jim Meyering  <meyering@ascend.com>
75659
75660         * m4/Makefile.am.in: Rewrite to avoid using fmt.
75661         Reported by Lars Hecking.
75662
75663 1999-01-10  Jim Meyering  <meyering@ascend.com>
75664
75665         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
75666         gross kludge.
75667         * m4/inttypes_h.m4: Likewise.
75668         * m4/lstat.m4: Likewise.
75669         * m4/malloc.m4: Likewise.
75670         * m4/readdir.m4: Likewise.
75671         * m4/realloc.m4: Likewise.
75672         * m4/st_dm_mode.m4: Likewise.
75673         * m4/stat.m4: Likewise.
75674         * m4/utimbuf.m4: Likewise.
75675         * m4/utimes.m4: Likewise.
75676
75677         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
75678         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
75679         comments in config.h.in are meaningful.
75680
75681         * m4/jm-macros.m4: Require autoconf-2.13 here.
75682
75683         * m4/regex.m4: By default, don't use the included regex.c on systems
75684         with glibc 2.  Suggestion from Uli Drepper.
75685
75686 1999-01-02  Jim Meyering  <meyering@ascend.com>
75687
75688         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
75689
75690 1998-12-18  Jim Meyering  <meyering@ascend.com>
75691
75692         * m4/Makefile.am.in (Makefile.am): Simplify rule.
75693         Based on a suggestion from Lars Hecking.
75694
75695 1998-11-16  Paul Eggert  <eggert@twinsun.com>
75696
75697         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
75698
75699 1998-11-16  Jim Meyering  <meyering@ascend.com>
75700
75701         * m4/lfs.m4: Double-quote the `uname...` expression.
75702
75703 1998-11-14  Jim Meyering  <meyering@ascend.com>
75704
75705         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
75706         * m4/stat.m4: Likewise.
75707
75708 1998-11-03  Jim Meyering  <meyering@ascend.com>
75709
75710         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
75711         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
75712
75713 1998-10-18  Jim Meyering  <meyering@ascend.com>
75714
75715         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
75716
75717 1998-10-17  Jim Meyering  <meyering@ascend.com>
75718
75719         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
75720         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
75721         calls for those previously hard-coded headers.  Instead, take a new
75722         parameter.
75723         (jm_CHECK_DECLARATIONS): Reflect interface change.
75724         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
75725         (jm_CHECK_DECL_LOCALTIME_R): New macro.
75726
75727         * m4/mktime.m4: Test for spring-forward gap before long-running test.
75728
75729 1998-10-14  Jim Meyering  <meyering@ascend.com>
75730
75731         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
75732         instead of "TZ=America/Vancouver".  From Paul Eggert.
75733
75734 1998-10-11  Jim Meyering  <meyering@ascend.com>
75735
75736         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
75737         This adds a test for a recently added compatibility fix for mktime.c.
75738         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
75739
75740 1998-09-27  Jim Meyering  <meyering@ascend.com>
75741
75742         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
75743
75744         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
75745         ../configure.in, including a change from Gordon Matzigkeit to allow
75746         cross-compiling for the Hurd.
75747
75748         * m4/glibc.m4: New file/macro to test for the GNU C Library
75749         versions 1 and 2.  From Gordon Matzigkeit.
75750         Indent.
75751
75752 1998-09-21  Jim Meyering  <meyering@ascend.com>
75753
75754         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
75755
75756 1998-08-18  Paul Eggert  <eggert@twinsun.com>
75757
75758         Port nanosecond-resolution times to UnixWare 2.1.2 and
75759         pedantic Solaris 2.6.
75760
75761         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
75762         AC_STRUCT_ST_MTIM.
75763         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
75764         Generate name of ns member, instead of just 1 or undef.
75765         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
75766
75767 1998-08-15  Jim Meyering  <meyering@ascend.com>
75768
75769         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
75770         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
75771         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
75772         instead of jm_TYPE_SSIZE_T.
75773
75774 1998-08-12  Jim Meyering  <meyering@ascend.com>
75775
75776         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
75777
75778 1998-08-02  Jim Meyering  <meyering@ascend.com>
75779
75780         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
75781         in acconfig.h manually.
75782
75783 1998-07-31  Paul Eggert  <eggert@twinsun.com>
75784
75785         * m4/st_mtim.m4: New file.
75786
75787 1998-07-28  Jim Meyering  <meyering@ascend.com>
75788
75789         * m4/utimes.m4: Undef stat.
75790
75791 1998-07-25  Jim Meyering  <meyering@ascend.com>
75792
75793         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
75794         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
75795
75796 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
75797
75798         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
75799         uid and gid actually remain unchanged.
75800
75801 1998-07-07  Jim Meyering  <meyering@ascend.com>
75802
75803         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
75804
75805 1998-07-04  Jim Meyering  <meyering@ascend.com>
75806
75807         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
75808         to prove that this macro can be used in packages without regex.c.
75809
75810 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
75811
75812         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
75813         is to be used.
75814
75815 1998-07-03  Jim Meyering  <meyering@ascend.com>
75816
75817         * m4/gettext.m4: Add -lintl if it's found to be necessary.
75818
75819         * m4/gettext.m4: New file -- from gettext-0.10.35.
75820         * m4/lcmessage.m4: Likewise.
75821         * m4/progtest.m4: Likewise.
75822
75823         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
75824         * m4/jm-macros.m4: Require the new macro.
75825
75826 1998-06-29  Jim Meyering  <meyering@ascend.com>
75827
75828         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
75829         for the definition of NGROUPS (used in a system header included
75830         by sys/mount.h).
75831
75832 1998-06-28  Jim Meyering  <meyering@ascend.com>
75833
75834         * m4/ls-mntd-fs.m4: New file.
75835         * m4/fstypename.m4: New file.
75836
75837         * m4/jm-macros.m4: Require the new macro.
75838         * m4/jm-glibc-io.m4: New file.
75839
75840 1998-05-19  Jim Meyering  <meyering@ascend.com>
75841
75842         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
75843         * m4/lchown.m4: New file.
75844
75845         * m4/Makefile.am.in: New file.
75846         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
75847
75848 1998-05-14  Jim Meyering  <meyering@ascend.com>
75849
75850         * m4/Makefile.am (EXTRA_DIST): Add them.
75851         * m4/jm-macros.m4: New file.
75852         * m4/utimbuf.m4: New file.
75853
75854 1998-05-12  Jim Meyering  <meyering@ascend.com>
75855
75856         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
75857
75858 1998-05-11  Jim Meyering  <meyering@ascend.com>
75859
75860         * m4/isc-posix.m4: New file.
75861
75862 1998-05-10  Jim Meyering  <meyering@ascend.com>
75863
75864         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
75865
75866 1998-05-09  Jim Meyering  <meyering@ascend.com>
75867
75868         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
75869         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
75870         with automake.
75871
75872         * m4/ssize_t.m4: New file.
75873         * m4/mktime.m4: Remove file -- the new automake has this now.
75874
75875 1998-04-26  Jim Meyering  <meyering@ascend.com>
75876
75877         * m4/assert.m4: New file.
75878         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
75879
75880 1998-04-05  Jim Meyering  <meyering@ascend.com>
75881
75882         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
75883         (jm_PREREQ): Use it here.
75884
75885 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
75886
75887         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
75888         in acconfig.h.
75889
75890 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
75891
75892         * m4/prereq.m4: New file.
75893         * m4/error.m4: New file.
75894         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
75895
75896 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
75897
75898         * m4/getline.m4: Don't set am_cv_func_working_getline before the
75899         cache-check for the same variable -- that defeated the purpose of
75900         the test; the test program was never run.  This was a problem only
75901         on systems with losing getline functions -- HP-UX 10.20 is one.
75902         Reported by Bjorn Helgaas.
75903
75904 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
75905
75906         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
75907
75908 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
75909
75910         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
75911
75912         * m4/const.m4: New file.  Use an initializer in this declaration
75913         typedef int charset[2]; const charset x;
75914         Reported by Bob Glickstein.
75915
75916 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
75917
75918         * m4/chown.m4: Fix reversed types on -1 args to chown.
75919         From Kaveh Ghazi.
75920
75921 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
75922
75923         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
75924         Add lseek and memchr.
75925
75926         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
75927         T.E.Dickey <dickey@clark.net> said that some older preprocessors
75928         have a 20-character limit on names.
75929
75930 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
75931
75932         * m4/inttypes_h.m4: New file.
75933         * m4/uintmax_t.m4: New file.
75934         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
75935
75936
75937         -----
75938
75939         Local Variables:
75940         coding: utf-8
75941         End:
75942
75943         Copyright (C) 1997-2011 Free Software Foundation, Inc.
75944
75945         Copying and distribution of this file, with or without
75946         modification, are permitted provided the copyright notice
75947         and this notice are preserved.