370d22f5e0495bb766a4127a64f58404108d4350
[gnulib.git] / ChangeLog
1 2011-01-02  Bruno Haible  <bruno@clisp.org>
2
3         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
4         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
5         C linkage.
6         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7
8 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9
10         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
11         for consistency, since the "cluster" term is not used elsewhere.
12         * lib/unigbrk.in.h: Update name.
13         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
14         * lib/unigbrk/u16-grapheme-next.c: Update name.
15         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17         * lib/unigbrk/u32-grapheme-next.c: Update name.
18         * lib/unigbrk/u32-grapheme-prev.c: Update name.
19         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
20         * lib/unigbrk/u8-grapheme-next.c: Update name.
21         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
24         Suggested by Bruno Haible.
25
26 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27
28         Remove module 'u8-grapheme-len' as too redundant with
29         'u8-grapheme-next'.
30         * modules/unigbrk/u8-grapheme-len: Delete file.
31         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
32         * lib/unigbrk.in.h: Remove prototype for deleted function.
33         * lib/unigbrk/u8-grapheme-len.c: Delete file.
34         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
35
36         Remove module 'u16-grapheme-len' as too redundant with
37         'u16-grapheme-next'.
38         * modules/unigbrk/u16-grapheme-len: Delete file.
39         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
40         * lib/unigbrk.in.h: Remove prototype for deleted function.
41         * lib/unigbrk/u16-grapheme-len.c: Delete file.
42         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
43
44         Remove module 'u32-grapheme-len' as too redundant with
45         'u32-grapheme-next'.
46         * modules/unigbrk/u32-grapheme-len: Delete file.
47         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
48         * lib/unigbrk.in.h: Remove prototype for deleted function.
49         * lib/unigbrk/u32-grapheme-len.c: Delete file.
50         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
51
52         Suggested by Bruno Haible.
53
54 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
55
56         * unigbrk.in.h: Fix typo: "ben" => "been".
57         Reported by Bruno Haible.
58
59 2011-01-01  Jim Meyering  <meyering@redhat.com>
60
61         maint: update almost all copyright ranges to include 2011
62         Run the new "make update-copyright" rule.
63
64 2011-01-01  Jim Meyering  <meyering@redhat.com>
65
66         maint: update-copyright: exempt doc/INSTALL*
67         * Makefile (update-copyright): Also exclude doc/INSTALL*,
68         since they are generated.  Suggested by Bruno Haible.
69
70 2011-01-01  Jim Meyering  <meyering@redhat.com>
71
72         maint: refine the update-copyright rule
73         * Makefile (update-copyright): Also exclude any file that includes
74         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
75         code that merely generates the comment.
76
77 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
78
79         New module 'u8-grapheme-len'.
80         * modules/unigbrk/u8-grapheme-len: New file.
81         * modules/unigbrk/u8-grapheme-len-tests: New file.
82         * lib/unigbrk.in.h: Add prototype for new function.
83         * lib/unigbrk/u8-grapheme-len.c: New file.
84         * tests/unigbrk/test-u8-grapheme-len.c: New file.
85
86         New module 'u16-grapheme-len'.
87         * modules/unigbrk/u16-grapheme-len: New file.
88         * modules/unigbrk/u16-grapheme-len-tests: New file.
89         * lib/unigbrk.in.h: Add prototype for new function.
90         * lib/unigbrk/u16-grapheme-len.c: New file.
91         * tests/unigbrk/test-u16-grapheme-len.c: New file.
92
93         New module 'u32-grapheme-len'.
94         * modules/unigbrk/u32-grapheme-len: New file.
95         * modules/unigbrk/u32-grapheme-len-tests: New file.
96         * lib/unigbrk.in.h: Add prototype for new function.
97         * lib/unigbrk/u32-grapheme-len.c: New file.
98         * tests/unigbrk/test-u32-grapheme-len.c: New file.
99
100         New module 'u8-grapheme-next'.
101         * modules/unigbrk/u8-grapheme-next: New file.
102         * modules/unigbrk/u8-grapheme-next-tests: New file.
103         * lib/unigbrk.in.h: Add prototype for new function.
104         * lib/unigbrk/u8-grapheme-next.c: New file.
105         * tests/unigbrk/test-u8-grapheme-next.c: New file.
106
107         New module 'u16-grapheme-next'.
108         * modules/unigbrk/u16-grapheme-next: New file.
109         * modules/unigbrk/u16-grapheme-next-tests: New file.
110         * lib/unigbrk.in.h: Add prototype for new function.
111         * lib/unigbrk/u16-grapheme-next.c: New file.
112         * tests/unigbrk/test-u16-grapheme-next.c: New file.
113
114         New module 'u32-grapheme-next'.
115         * modules/unigbrk/u32-grapheme-next: New file.
116         * modules/unigbrk/u32-grapheme-next-tests: New file.
117         * lib/unigbrk.in.h: Add prototype for new function.
118         * lib/unigbrk/u32-grapheme-next.c: New file.
119         * tests/unigbrk/test-u32-grapheme-next.c: New file.
120
121         New module 'u8-grapheme-prev'.
122         * modules/unigbrk/u8-grapheme-prev: New file.
123         * modules/unigbrk/u8-grapheme-prev-tests: New file.
124         * lib/unigbrk.in.h: Add prototype for new function.
125         * lib/unigbrk/u8-grapheme-prev.c: New file.
126         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
127
128         New module 'u16-grapheme-prev'.
129         * modules/unigbrk/u16-grapheme-prev: New file.
130         * modules/unigbrk/u16-grapheme-prev-tests: New file.
131         * lib/unigbrk.in.h: Add prototype for new function.
132         * lib/unigbrk/u16-grapheme-prev.c: New file.
133         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
134
135         New module 'u32-grapheme-prev'.
136         * modules/unigbrk/u32-grapheme-prev: New file.
137         * modules/unigbrk/u32-grapheme-prev-tests: New file.
138         * lib/unigbrk.in.h: Add prototype for new function.
139         * lib/unigbrk/u32-grapheme-prev.c: New file.
140         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
141
142         New module 'u8-grapheme-breaks'.
143         * modules/unigbrk/u8-grapheme-breaks: New file.
144         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
145         * lib/unigbrk.in.h: Add prototype for new function.
146         * lib/unigbrk/u8-grapheme-breaks.c: New file.
147         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
148
149         New module 'u16-grapheme-breaks'.
150         * modules/unigbrk/u16-grapheme-breaks: New file.
151         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
152         * lib/unigbrk.in.h: Add prototype for new function.
153         * lib/unigbrk/u16-grapheme-breaks.c: New file.
154         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
155
156         New module 'u32-grapheme-breaks'.
157         * modules/unigbrk/u32-grapheme-breaks: New file.
158         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
159         * lib/unigbrk.in.h: Add prototype for new function.
160         * lib/unigbrk/u32-grapheme-breaks.c: New file.
161         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
162
163         New module 'ulc-grapheme-breaks'.
164         * modules/unigbrk/ulc-grapheme-breaks: New file.
165         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
166         * m4/locale-ar.m4: New file.
167         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
168         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
169         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
170
171 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
172
173         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
174         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
175         modified how this file was generated before I initially submitted
176         the module, but failed to regenerate it.  This meant that several
177         of the level2 entries were wrong.
178         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
179         Remove the division-by-2 that is folded into the table now that
180         gbrkprop.h has been regenerated properly.  Now -1 entries are
181         handled correctly.
182
183         New module 'unigbrk/uc-gbrk-prop-tests'.
184         * modules/unigbrk/uc-gbrk-prop-tests: New file.
185         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
186         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
187         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
188
189 2011-01-01  Bruno Haible  <bruno@clisp.org>
190
191         Avoid use of hexadecimal escapes.
192         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
193         instead of hexadecimal escapes.
194
195 2011-01-01  Jim Meyering  <meyering@redhat.com>
196
197         maint: new rule to update copyright year ranges
198         * Makefile (update-copyright): New rule.
199
200         maint: indent with TABs in Makefile
201         * Makefile: Expand leading sequences of spaces to TABs
202
203         version-etc: update the copyright year it reports
204         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
205
206 2010-12-31  Bruno Haible  <bruno@clisp.org>
207
208         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
209         * lib/isfinite.c (zerof, zerod, zerol): New variables.
210         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
211         zero.
212
213 2010-12-31  Bruno Haible  <bruno@clisp.org>
214
215         pwrite: Work around HP-UX 11.11 bug.
216         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
217         works and set REPLACE_PWRITE if not.
218         * lib/pwrite.c (pwrite): Add an implementation that uses the system
219         function.
220         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
221
222 2010-12-31  Bruno Haible  <bruno@clisp.org>
223
224         pread: Work around HP-UX 11 bugs.
225         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
226         and set REPLACE_PREAD if not.
227         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
228
229 2010-12-31  Eric Blake  <eblake@redhat.com>
230
231         nl_langinfo: fix YESEXPR on Irix 6.5
232         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
233         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
234         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
235         it.
236
237 2010-12-31  Bruno Haible  <bruno@clisp.org>
238
239         iconv: Document HP-UX 11 bug.
240         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
241
242 2010-12-31  Bruno Haible  <bruno@clisp.org>
243
244         ldexpl: Fix link error on HP-UX 11.
245         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
246         LDEXPL_LIBM, using $ISNANL_LIBM.
247
248 2010-12-31  Eric Blake  <eblake@redhat.com>
249
250         ftello: avoid compilation failure with SunStudio c89
251         * lib/ftello.c (ftello): Use lseek, not llseek.
252
253         tests: avoid failing coreutils tests on cygwin
254         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
255         (create_exe_shims_): Return 0 when skipping.
256
257 2010-12-31  Bruno Haible  <bruno@clisp.org>
258
259         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
260         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
261
262 2010-12-31  Bruno Haible  <bruno@clisp.org>
263
264         waitpid: Fix link error in C++ mode.
265         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
266
267 2010-12-31  Bruno Haible  <bruno@clisp.org>
268
269         isnan: Use GCC built-ins when possible.
270         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
271         __builtin_isnan.
272         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
273         (isnan): Define using GCC built-ins for GCC >= 4.0.
274
275 2010-12-31  Bruno Haible  <bruno@clisp.org>
276
277         isnand: Fix mistake.
278         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
279         __builtin_isnand.
280
281 2010-12-31  Bruno Haible  <bruno@clisp.org>
282
283         open: Avoid C++ error on HP-UX 11.
284         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
285
286 2010-12-31  Bruno Haible  <bruno@clisp.org>
287
288         time_r: Add missing declarations on HP-UX 11.
289         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
290         instead of HAVE_LOCALTIME_R.
291         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
292         HAVE_LOCALTIME_R always.
293         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
294         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
295         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
296         HAVE_LOCALTIME_R.
297         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
298         * doc/posix-functions/localtime_r.texi: Likewise.
299
300 2010-12-29  Eric Blake  <eblake@redhat.com>
301
302         mountlist: tweak previous commit
303         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
304         Reported by Paul Eggert.
305
306         mountlist: fix local drive detection on cygwin
307         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
308         that works for cygwin.
309
310 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
311
312         ftoastr, snprintf: ftoastr + snprintf module
313         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
314         since the snprintf module now should be good enough here.
315         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
316         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
317         and gl_MODULE_INDICATOR([snprintf]), but the former enables
318         GNULIB_SNPRINTF only for the test directory, and the latter
319         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
320         seems to suffice by itself.
321
322 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
323
324         alloca: one step towards thread-safety
325         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
326         need for a static variable.  All callers changed.  This does not
327         make the alloca replacement thread-safe, but it's one step.
328
329         tests: minor indenting change
330         * tests/init.sh: Sync from coreutils housekeeping patch
331         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
332         to keep lines within 80 columns.
333
334 2010-12-28  Jim Meyering  <meyering@redhat.com>
335
336         regex: don't infloop on persistent failing calloc
337         * lib/regexec.c (build_trtable): Return failure indication upon
338         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
339         In glibc, this was fixed for version 2.13:
340         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
341
342 2010-12-28  Bruno Haible  <bruno@clisp.org>
343             Paul Eggert <eggert@cs.ucla.edu>
344
345         linkat: Make implementation robust against system behaviour variations.
346         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
347         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
348         way, and to -2 if it needs a generic runtime test.
349         * lib/linkat.c (solaris_optimized_link_immediate,
350         solaris_optimized_link_follow): New functions.
351         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
352         (check_same_link): Use it.
353
354 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
355
356         New module 'unigbrk/base'.
357         * modules/unigbrk/base: New file.
358         * lib/unigbrk.in.h: New file.
359
360         New module 'unigbrk/uc-gbrk-prop'.
361         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
362         * modules/unigbrk/uc-gbrk-prop: New file.
363         * lib/unigbrk/gbrkprop.h: New file.
364         * lib/unigbrk/uc-gbrk-prop.c: New file.
365
366         New module 'unigbrk/uc-is-grapheme-break'.
367         * modules/unigbrk/uc-is-grapheme-break: New file.
368         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
369         * lib/unigbrk/uc-is-grapheme-break.c: New file.
370         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
371         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
372         * tests/unigbrk/GraphemeBreakTest.txt: New file.
373
374         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
375
376 2010-12-27  Bruno Haible  <bruno@clisp.org>
377
378         linkat test: Avoid failure on Solaris 11 2010-11.
379         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
380
381 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
382
383         utimens: work around glibc rounding bug on more platforms
384         * lib/utimens.c (fdutimens): Work around rounding bug even if
385         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
386         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
387
388 2010-12-27  Bruno Haible  <bruno@clisp.org>
389
390         select tests: Improve comments.
391         * tests/test-select.c (do_select): Add comments.
392
393 2010-12-27  Bruno Haible  <bruno@clisp.org>
394
395         select tests: Safer way of handling timeout.
396         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
397         at every invocation.
398
399 2010-12-27  Bruno Haible  <bruno@clisp.org>
400
401         select tests: Use 'bool' where appropriate.
402         * tests/test-select.c (connect_to_socket): Change argument type to
403         'bool'.
404
405 2010-12-27  Bruno Haible  <bruno@clisp.org>
406
407         select tests: Use existing modules.
408         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
409         (configure.ac): Don't test for unistd.h.
410         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
411         declared in <unistd.h>.
412
413 2010-12-27  Bruno Haible  <bruno@clisp.org>
414
415         mbrtowc: Work around a Solaris 7 bug.
416         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
417         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
418         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
419         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
420         MBRTOWC_NULL_ARG1_BUG.
421         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
422         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
423         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
424         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
425
426 2010-12-27  Jim Meyering  <meyering@redhat.com>
427
428         read-file.c: tweak syntax
429         * lib/read-file.c (fread_file): Remove space after "*" in function
430         definitions.
431
432 2010-12-27  Bruno Haible  <bruno@clisp.org>
433
434         times test: Avoid gcc warnings on OSF/1.
435         * tests/test-times.c (main): Cast printf arguments from clock_t to
436         'long int'.
437
438 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
439
440         utimens: work around glibc rounding bug on older Linux kernels
441         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
442         on Linux with a glibc whose utimes might not work, then work
443         around a longstanding glibc bug involving rounding rather than
444         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
445         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
446
447 2010-12-26  Bruno Haible  <bruno@clisp.org>
448
449         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
450         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
451         _GL_CXXALIAS_SYS.
452         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
453
454 2010-12-26  Bruno Haible  <bruno@clisp.org>
455
456         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
457         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
458         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
459         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
460         looking for the declaration.
461         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
462         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
463         problem.
464         * doc/posix-functions/inet_pton.texi: Likewise.
465
466 2010-12-26  Bruno Haible  <bruno@clisp.org>
467
468         arpa_inet: Use the common idioms with C++ support.
469         * lib/arpa_inet.in.h: Include c++defs.h.
470         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
471         support.
472         * modules/arpa_inet (Depends-on): Add c++defs.
473         (Makefile.am): Substitute the contents of c++defs.h.
474         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
475         * modules/arpa_inet-c++-tests: New file.
476         * tests/test-arpa_inet-c++.cc: New file.
477
478 2010-12-25  Bruno Haible  <bruno@clisp.org>
479
480         Fix more C++ link errors on Solaris 8.
481         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
482         $(LIB_EACCESS).
483         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
484         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
485         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
486         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
487         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
488
489 2010-12-25  Bruno Haible  <bruno@clisp.org>
490
491         printf-posix: Fix link error when a non-GCC compiler is used.
492         * lib/stdio.in.h (printf): When not using GCC, override printf
493         correctly.
494         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
495
496 2010-12-25  Bruno Haible  <bruno@clisp.org>
497
498         strerror_r-posix: Update doc.
499         * doc/posix-functions/strerror_r.texi: Update doc about the return
500         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
501
502 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
503
504         utimens: simplify the logic of the previous change
505         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
506         This should not affect whether the test succeeds or fails.
507
508         utimens: configure better on hosts with NFS clock skew
509         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
510         uses the clock of the local host.  It might use the clock of the
511         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
512         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
513
514 2010-12-25  Bruno Haible  <bruno@clisp.org>
515
516         ptsname test: Avoid failure on Solaris.
517         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
518         open a pseudo-terminal; don't use BSD-style ptys.
519         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
520
521 2010-12-25  Bruno Haible  <bruno@clisp.org>
522
523         ptsname: Avoid ERANGE failure on some systems.
524         * lib/ptsname.c (buffer): Increase size.
525
526 2010-12-25  Bruno Haible  <bruno@clisp.org>
527
528         rename, renameat: Avoid test failures at NFS mounted locations.
529         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
530         so that subsequent mkdir calls succeed.
531
532 2010-12-25  Bruno Haible  <bruno@clisp.org>
533
534         iswblank: Fix C++ link error on Solaris 8.
535         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
536         _GL_FUNCDECL_SYS.
537
538 2010-12-25  Bruno Haible  <bruno@clisp.org>
539
540         unistd: Fix C++ link error on Solaris 8.
541         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
542
543 2010-12-25  Bruno Haible  <bruno@clisp.org>
544
545         readlink doc: Mention an old glibc bug.
546         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
547
548 2010-12-25  Bruno Haible  <bruno@clisp.org>
549
550         fcntl-h: Fix for use of C++ on glibc systems.
551         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
552         also on glibc systems in C++ mode.
553         Reported by Gary V. Vaughan <gary@gnu.org>.
554
555 2010-12-25  Bruno Haible  <bruno@clisp.org>
556
557         roundl-ieee: Make it work on OSF/1 5.1 with cc.
558         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
559
560 2010-12-25  Bruno Haible  <bruno@clisp.org>
561
562         truncl-ieee: Make it work on OSF/1 5.1 with cc.
563         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
564         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
565         test whether truncl works according to ISO C 99 with IEC 60559.
566         * m4/truncl-ieee.m4: New file.
567         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
568         m4/signbit.m4.
569         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
570
571 2010-12-25  Bruno Haible  <bruno@clisp.org>
572
573         ceill-ieee: Make it work on OSF/1 5.1 with cc.
574         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
575         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
576         test whether ceill works according to ISO C 99 with IEC 60559.
577         * m4/ceill-ieee.m4: New file.
578         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
579         m4/signbit.m4.
580         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
581
582 2010-12-25  Bruno Haible  <bruno@clisp.org>
583
584         Ensure all prerequisites of <wchar.h> are included.
585         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
586         before <wchar.h>.
587         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
588         gl_MBRLEN_NUL_RETVAL): Likewise.
589         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
590         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
591         AC_FUNC_MBRTOWC): Likewise.
592         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
593         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
594         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
595         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
596         Likewise.
597         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
598         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
599         (gl_WCHAR_H): Improve comments.
600         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
601
602 2010-12-25  Bruno Haible  <bruno@clisp.org>
603
604         strtok_r: Fix C syntax error in autoconf macro.
605         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
606         characters in test program.
607
608 2010-12-24  Bruno Haible  <bruno@clisp.org>
609
610         ceil, trunc, round: Fix gcc warnings.
611         * lib/ceil.c (MIN): Undefine before redefining.
612         * lib/trunc.c (MIN): Likewise.
613         * lib/round.c (MIN): Likewise.
614         Include <math.h> first.
615
616 2010-12-24  Bruno Haible  <bruno@clisp.org>
617
618         select tests: Avoid failures on OSF/1 5.1.
619         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
620         failure of closing the last socket; it may fail with ECONNRESET.
621
622 2010-12-24  Eric Blake  <eblake@redhat.com>
623
624         stdint: avoid HP-UX 10.20 preprocessor bug
625         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
626         than #if.
627         * tests/test-floor2.c (main): Likewise.
628         Reported by Peter O'Gorman.
629
630         pipe: make obsoletion transition easier
631         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
632         * modules/pipe (Files): Include revived file.
633         (Include): Drop reference, to mirror getdate's behavior.
634
635 2010-12-24  Bruno Haible  <bruno@clisp.org>
636
637         sys_socket: Hide mismatch of declarations on NonStop Kernel.
638         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
639         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
640         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
641
642 2010-12-24  Bruno Haible  <bruno@clisp.org>
643
644         gethostname: Ensure declaration on NonStop Kernel.
645         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
646         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
647
648 2010-12-24  Bruno Haible  <bruno@clisp.org>
649
650         sys_select: Ensure all necessary types on NonStop Kernel.
651         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
652         include <sys/time.h>.
653         * doc/posix-headers/sys_select.texi: Mention that it's missing on
654         NonStop Kernel.
655         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
656
657 2010-12-24  Bruno Haible  <bruno@clisp.org>
658
659         sys_select: Remove unneeded include.
660         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
661         have <sys/select.h>.
662
663 2010-12-24  Bruno Haible  <bruno@clisp.org>
664
665         gethostname: Provide a fallback for HOST_NAME_MAX.
666         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
667         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
668         instead.
669         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
670
671 2010-12-24  Bruno Haible  <bruno@clisp.org>
672
673         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
674         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
675         (SA_RESTART): Likewise.
676         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
677
678 2010-12-24  Bruno Haible  <bruno@clisp.org>
679
680         signal: Define NSIG.
681         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
682         * tests/test-signal.c (nsig): New variable.
683         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
684
685 2010-12-24  Bruno Haible  <bruno@clisp.org>
686
687         rename, renameat: Avoid test failures on OSF/1 5.1.
688         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
689         alternative error codes.
690         * tests/test-renameat.c (main): Likewise.
691
692 2010-12-24  Bruno Haible  <bruno@clisp.org>
693
694         *printf: Detect large precisions bug on Solaris 10/SPARC.
695         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
696         by Paul Eggert.
697         * tests/test-snprintf-posix.h (test_function): Add this test code here
698         too.
699         * tests/test-sprintf-posix.h (test_function): Likewise.
700         * tests/test-vasnprintf-posix.c (test_function): Likewise.
701         * tests/test-vasprintf-posix.c (test_function): Likewise.
702         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
703         around by gnulib.
704         * doc/posix-functions/printf.texi: Likewise.
705         * doc/posix-functions/snprintf.texi: Likewise.
706         * doc/posix-functions/sprintf.texi: Likewise.
707         * doc/posix-functions/vfprintf.texi: Likewise.
708         * doc/posix-functions/vprintf.texi: Likewise.
709         * doc/posix-functions/vsnprintf.texi: Likewise.
710         * doc/posix-functions/vsprintf.texi: Likewise.
711         * doc/posix-functions/dprintf.texi: Undo last commit.
712         * doc/posix-functions/vdprintf.texi: Likewise.
713
714 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
715
716         tests: port test-fdutimensat.c to Solaris 8
717         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
718         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
719         On Solaris 8, it fails with errno == ENOSYS, because there is no
720         futimens (so it can't use the fd), and there is no lutimens (so it
721         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
722
723         vsnprintf: make more consistent with snprintf; doc fixes
724
725         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
726         the byte count return problem was promoted from the snprintf-posix
727         to the snprintf module.
728         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
729         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
730         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
731         * tests/test-snprintf.c (main): Check the byte count returned.
732         * tests/test-vsnprintf.c (main): Likewise.
733
734 2010-12-23  Eric Blake  <eblake@redhat.com>
735
736         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
737         * modules/sigpipe (License): Relax license.
738
739 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
740
741         doc: document Solaris printf bug with large float precisions
742         * doc/posix-functions/dprintf.texi (dprintf):
743         * doc/posix-functions/fprintf.texi (fprintf):
744         * doc/posix-functions/printf.texi (printf):
745         * doc/posix-functions/snprintf.texi (snprintf):
746         * doc/posix-functions/sprintf.texi (sprintf):
747         * doc/posix-functions/vdprintf.texi (vdprintf):
748         * doc/posix-functions/vfprintf.texi (vfprintf):
749         * doc/posix-functions/vprintf.texi (vprintf):
750         * doc/posix-functions/vsnprintf.texi (vsnprintf):
751         * doc/posix-functions/vsprintf.texi (vsprintf):
752         Mention that these functions mishandle large floating point
753         precisions on Solaris 10.  The same bug is also present in Solaris
754         8, and I assume earlier.  This causes "cd gnulib-tests; make
755         check" to fail on Solaris 8 (and I assume, later) when building
756         the latest coreutils, in test-vasprintf-posix's call to
757         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
758         the wide flavors (e.g., wprintf) so this patch just updates the
759         documentation for the narrow ones.
760
761         test-posixtm.c: add two tests
762         * tests/test-posixtm.c: Add two tests, to highlight the
763         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
764         around this bug; this is merely to document it.
765
766 2010-12-22  Bruno Haible  <bruno@clisp.org>
767
768         getlogin_r: Work around portability problem on OSF/1.
769         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
770         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
771         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
772         test for a truncated result.
773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
774         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
775         * modules/getlogin_r (Depends-on): Add memchr.
776         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
777
778 2010-12-22  Bruno Haible  <bruno@clisp.org>
779
780         ptsname: Avoid test failure on OSF/1 5.1.
781         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
782         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
783         (same_slave): New function.
784         (main): Use it to compare ptsname's result with the expected file name.
785
786 2010-12-22  Bruno Haible  <bruno@clisp.org>
787
788         Port extended stdio modules to HP NonStop Kernel.
789         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
790         macros.
791         * lib/fbufmode.c: Update comments.
792         * lib/fflush.c: Likewise.
793         * lib/fpurge.c: Likewise.
794         * lib/freadable.c: Likewise.
795         * lib/freadahead.c: Likewise.
796         * lib/freading.c: Likewise.
797         * lib/freadptr.c: Likewise.
798         * lib/freadseek.c: Likewise.
799         * lib/fseeko.c: Likewise.
800         * lib/fseterr.c: Likewise.
801         * lib/fwritable.c: Likewise.
802         * lib/fwriting.c: Likewise.
803         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
804
805 2010-12-22  Bruno Haible  <bruno@clisp.org>
806
807         ttyname_r: Work around bug on OSF/1 5.1.
808         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
809         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
810         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
811         present.
812         * lib/ttyname_r.c (ttyname_r): Update comments.
813
814 2010-12-22  Bruno Haible  <bruno@clisp.org>
815
816         round: Implement result sign according to IEEE 754.
817         * lib/round.c (MIN, MINUS_ZERO): New macros.
818         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
819         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
820         * tests/test-round-ieee.c (main): Likewise.
821         * tests/test-roundl-ieee.c (main): Likewise.
822
823         trunc: Implement result sign according to IEEE 754.
824         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
825         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
826         * tests/test-trunc2.c: Include minus-zero.h.
827         (MINUS_ZERO): New macro.
828         (trunc_reference): Keep in sync with lib/trunc.c.
829         * tests/test-truncf2.c: Include minus-zero.h.
830         (MINUS_ZERO): New macro.
831         (truncf_reference): Keep in sync with lib/trunc.c.
832         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
833         * tests/test-trunc-ieee.c (main): Likewise.
834         * tests/test-truncl-ieee.c (main): Likewise.
835
836         ceil: Implement result sign according to IEEE 754.
837         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
838         (FUNC): Return -0.0 for -1 < x < 0.
839         * tests/test-ceil2.c: Include minus-zero.h.
840         (MINUS_ZERO): New macro.
841         (ceil_reference): Keep in sync with lib/ceil.c.
842         * tests/test-ceilf2.c: Include minus-zero.h.
843         (MINUS_ZERO): New macro.
844         (ceilf_reference): Keep in sync with lib/ceil.c.
845         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
846         * tests/test-ceil-ieee.c (main): Likewise.
847         * tests/test-ceill-ieee.c (main): Likewise.
848
849         floor: Implement result sign according to IEEE 754.
850         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
851         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
852         * tests/test-floorf2.c (floorf_reference): Likewise.
853         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
854         * tests/test-floor-ieee.c (main): Likewise.
855         * tests/test-floorl-ieee.c (main): Likewise.
856
857 2010-12-22  Bruno Haible  <bruno@clisp.org>
858
859         getaddrinfo: Update doc.
860         * doc/posix-functions/gai_strerror.texi: Return type is also different
861         on AIX and HP-UX.
862
863 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
864
865         getaddrinfo, inet_ntop: Update doc for Solaris.
866         * doc/posix-functions/gai_strerror.texi: Return type is also an
867         issue on Solaris 9 and earlier.
868         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
869         on Solaris 10 and earlier.
870
871 2010-12-21  Bruno Haible  <bruno@clisp.org>
872
873         New module 'roundl-ieee'.
874         * modules/roundl-ieee: New file.
875         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
876         test whether roundl works according to ISO C 99 with IEC 60559.
877         * m4/roundl-ieee.m4: New file.
878         * modules/roundl-ieee-tests: New file.
879         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
880         * tests/test-roundl.c (main): Remove signbit tests.
881         * modules/roundl-tests (Depends-on): Remove signbit.
882         * doc/posix-functions/roundl.texi: Mention the new module.
883
884 2010-12-21  Bruno Haible  <bruno@clisp.org>
885
886         New module 'truncl-ieee'.
887         * modules/truncl-ieee: New file.
888         * modules/truncl-ieee-tests: New file.
889         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
890         * tests/test-truncl.c (main): Remove signbit tests.
891         * modules/truncl-tests (Depends-on): Remove signbit.
892         * doc/posix-functions/truncl.texi: Mention the new module.
893
894 2010-12-21  Bruno Haible  <bruno@clisp.org>
895
896         New module 'ceill-ieee'.
897         * modules/ceill-ieee: New file.
898         * modules/ceill-ieee-tests: New file.
899         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
900         * tests/test-ceill.c (main): Remove signbit tests.
901         * modules/ceill-tests (Depends-on): Remove signbit.
902         * doc/posix-functions/ceill.texi: Mention the new module.
903
904 2010-12-21  Bruno Haible  <bruno@clisp.org>
905
906         New module 'floorl-ieee'.
907         * modules/floorl-ieee: New file.
908         * modules/floorl-ieee-tests: New file.
909         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
910         * tests/test-floorl.c (main): Remove signbit tests.
911         * modules/floorl-tests (Depends-on): Remove signbit.
912         * doc/posix-functions/floorl.texi: Mention the new module.
913
914 2010-12-21  Bruno Haible  <bruno@clisp.org>
915
916         New module 'round-ieee'.
917         * modules/round-ieee: New file.
918         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
919         whether round works according to ISO C 99 with IEC 60559.
920         * m4/round-ieee.m4: New file.
921         * modules/round-ieee-tests: New file.
922         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
923         * tests/test-round1.c (main): Remove signbit tests.
924         * modules/round-tests (Depends-on): Remove 'signbit'.
925         * doc/posix-functions/round.texi: Mention the new module.
926
927 2010-12-21  Bruno Haible  <bruno@clisp.org>
928
929         New module 'trunc-ieee'.
930         * modules/trunc-ieee: New file.
931         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
932         whether trunc works according to ISO C 99 with IEC 60559.
933         * m4/trunc-ieee.m4: New file.
934         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
936         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
937         * modules/trunc-ieee-tests: New file.
938         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
939         * tests/test-trunc1.c (main): Remove signbit tests.
940         * modules/trunc-tests (Depends-on): Remove 'signbit'.
941         * doc/posix-functions/trunc.texi: Mention the new module.
942
943 2010-12-21  Bruno Haible  <bruno@clisp.org>
944
945         New module 'ceil-ieee'.
946         * modules/ceil-ieee: New file.
947         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
948         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
949         ISO C 99 with IEC 60559.
950         * m4/ceil-ieee.m4: New file.
951         * modules/ceil (Files): Add lib/ceil.c.
952         (Depends-on): Add 'float'.
953         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
954         * lib/math.in.h (ceil): New declaration.
955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
956         REPLACE_CEIL.
957         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
958         * modules/ceil-ieee-tests: New file.
959         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
960         * tests/test-math-c++.cc: Check the signature of 'ceil'.
961         * doc/posix-functions/ceil.texi: Mention the new module.
962
963 2010-12-21  Bruno Haible  <bruno@clisp.org>
964
965         New module 'floor-ieee'.
966         * modules/floor-ieee: New file.
967         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
968         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
969         ISO C 99 with IEC 60559.
970         * m4/floor-ieee.m4: New file.
971         * modules/floor (Files): Add lib/floor.c.
972         (Depends-on): Add 'float'.
973         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
974         * lib/math.in.h (floor): New declaration.
975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
976         REPLACE_FLOOR.
977         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
978         * modules/floor-ieee-tests: New file.
979         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
980         * tests/test-math-c++.cc: Check the signature of 'floor'.
981         * doc/posix-functions/floor.texi: Mention the new module.
982
983 2010-12-21  Bruno Haible  <bruno@clisp.org>
984
985         New module 'roundf-ieee'.
986         * modules/roundf-ieee: New file.
987         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
988         test whether roundf works according to ISO C 99 with IEC 60559.
989         * m4/roundf-ieee.m4: New file.
990         * modules/roundf-ieee-tests: New file.
991         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
992         * tests/test-roundf1.c (main): Remove signbit tests.
993         * modules/roundf-tests (Depends-on): Remove 'signbit'.
994         * doc/posix-functions/roundf.texi: Mention the new module.
995
996 2010-12-21  Bruno Haible  <bruno@clisp.org>
997
998         New module 'truncf-ieee'.
999         * modules/truncf-ieee: New file.
1000         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
1001         test whether truncf works according to ISO C 99 with IEC 60559.
1002         * m4/truncf-ieee.m4: New file.
1003         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
1004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
1005         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
1006         * modules/truncf-ieee-tests: New file.
1007         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
1008         * tests/test-truncf1.c (main): Remove signbit tests.
1009         * modules/truncf-tests (Depends-on): Remove 'signbit'.
1010         * doc/posix-functions/truncf.texi: Mention the new module.
1011
1012 2010-12-21  Bruno Haible  <bruno@clisp.org>
1013
1014         New module 'ceilf-ieee'.
1015         * modules/ceilf-ieee: New file.
1016         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
1017         test whether ceilf works according to ISO C 99 with IEC 60559.
1018         * m4/ceilf-ieee.m4: New file.
1019         * modules/ceilf-ieee-tests: New file.
1020         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
1021         * tests/test-ceilf1.c (main): Remove signbit tests.
1022         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
1023         * doc/posix-functions/ceilf.texi: Mention the new module.
1024
1025 2010-12-21  Bruno Haible  <bruno@clisp.org>
1026
1027         New module 'floorf-ieee'.
1028         * modules/floorf-ieee: New file.
1029         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
1030         test whether floorf works according to ISO C 99 with IEC 60559.
1031         * m4/floorf-ieee.m4: New file.
1032         * modules/floorf-ieee-tests: New file.
1033         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
1034         * tests/test-floorf1.c (main): Remove signbit tests.
1035         * modules/floorf-tests (Depends-on): Remove 'signbit'.
1036         * doc/posix-functions/floorf.texi: Mention the new module.
1037
1038 2010-12-21  Bruno Haible  <bruno@clisp.org>
1039
1040         Support for minus zero in autoconf macros.
1041         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
1042         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
1043         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
1044         * tests/minus-zero.h: Update comments.
1045
1046 2010-12-21  Bruno Haible  <bruno@clisp.org>
1047
1048         Tests for module 'ceil'.
1049         * modules/ceil-tests: New file.
1050         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
1051         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
1052
1053 2010-12-21  Bruno Haible  <bruno@clisp.org>
1054
1055         Tests for module 'floor'.
1056         * modules/floor-tests: New file.
1057         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
1058         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
1059
1060 2010-12-21  Bruno Haible  <bruno@clisp.org>
1061
1062         math: Fix indentation.
1063         * lib/math.in.h (floorf): Fix indentation.
1064
1065 2010-12-21  Bruno Haible  <bruno@clisp.org>
1066
1067         Fix cross-compilation guesses on Solaris.
1068         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
1069         not match "solaris2.10".
1070         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
1071         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
1072         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
1073
1074 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1075
1076         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
1077         This fixes a problem observed with the latest coreutils snapshot
1078         that caused a test to fail on Solaris 8.  src/csplit.c's call
1079         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
1080         earlier, instead of returning the number of bytes that would have
1081         been generated; this causes csplit to incorrectly report memory
1082         exhaustion.
1083         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
1084         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
1085         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
1086         comments to match.
1087         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
1088         Fix typo in matching older versions of Solaris: "solaris2.10"
1089         is matched by the shell pattern "solaris2.[0-9]*".  This matters
1090         only for guessing while cross-compiling.
1091         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
1092
1093 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1094
1095         ftoastr: fix comment again
1096         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
1097         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
1098         Also, simplify example a bit by using flags = 0.
1099
1100 2010-12-20  Bruno Haible  <bruno@clisp.org>
1101
1102         round*, trunc*: Update documentation regarding glibc.
1103         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
1104         * doc/posix-functions/round.texi: Likewise.
1105         * doc/posix-functions/roundl.texi: Likewise.
1106         * doc/posix-functions/truncf.texi: Likewise.
1107         * doc/posix-functions/trunc.texi: Likewise.
1108         * doc/posix-functions/truncl.texi: Likewise.
1109
1110 2010-12-20  Bruno Haible  <bruno@clisp.org>
1111
1112         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
1113         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
1114         * doc/posix-functions/round.texi: Likewise.
1115         * doc/posix-functions/roundl.texi: Likewise.
1116
1117 2010-12-20  Bruno Haible  <bruno@clisp.org>
1118
1119         ttyname_r: Add missing declaration on HP-UX 11.
1120         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
1121         HAVE_TTYNAME_R.
1122         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
1123         declared. Set HAVE_TTYNAME_R always.
1124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1125         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
1126         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
1127         HAVE_TTYNAME_R.
1128         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
1129
1130 2010-12-20  Bruno Haible  <bruno@clisp.org>
1131
1132         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
1133         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
1134         * doc/posix-functions/getlogin_r.texi: Likewise.
1135         * tests/test-getlogin.c: Include <errno.h>.
1136         (main): Avoid test failure on HP-UX 11.11.
1137         * tests/test-getlogin_r.c (main): Likewise.
1138
1139 2010-12-20  Bruno Haible  <bruno@clisp.org>
1140
1141         getlogin_r: Add missing declaration on HP-UX 11.
1142         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
1143         declared also when it exists as a function.
1144         * doc/posix-functions/getlogin_r.texi: Document this workaround.
1145
1146 2010-12-20  Bruno Haible  <bruno@clisp.org>
1147
1148         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
1149         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
1150         through wcrtomb.
1151
1152 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1153
1154         ftoastr: fix comment
1155         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
1156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
1157
1158 2010-12-19  Bruno Haible  <bruno@clisp.org>
1159
1160         isnan: Ensure it is a macro.
1161         * lib/math.in.h (isnan): Define as a macro if not already a macro.
1162         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
1163         Solaris.
1164
1165 2010-12-19  Bruno Haible  <bruno@clisp.org>
1166
1167         ldexpl test: Fix link error on OSF/1 5.1.
1168         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
1169
1170 2010-12-19  Bruno Haible  <bruno@clisp.org>
1171
1172         wctype: Make it work in C++ mode on OSF/1 5.1.
1173         * lib/wctype.in.h (iswblank): Declare but not define here.
1174         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
1175         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
1176         * modules/wctype (Files): Add lib/iswblank.c.
1177
1178 2010-12-19  Bruno Haible  <bruno@clisp.org>
1179
1180         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
1181         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
1182         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
1183
1184 2010-12-19  Bruno Haible  <bruno@clisp.org>
1185
1186         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
1187         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
1188         _POSIX_PII_SOCKET.
1189         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
1190         * doc/posix-functions/recvfrom.texi: Likewise.
1191         * doc/posix-functions/send.texi: Likewise.
1192         * doc/posix-functions/sendto.texi: Likewise.
1193
1194 2010-12-19  Bruno Haible  <bruno@clisp.org>
1195
1196         tcgetsid: Add missing declaration on OSF/1 5.1.
1197         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
1198         HAVE_TCGETSID.
1199         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
1200         Don't set HAVE_TCGETSID.
1201         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
1202         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
1203         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
1204         HAVE_TCGETSID.
1205         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
1206
1207 2010-12-19  Bruno Haible  <bruno@clisp.org>
1208
1209         stdio: Fix problem with popen() declaration on OSF/1 5.1.
1210         * lib/stdio.in.h: During the include_next statement, let recursive
1211         includes of this file include only the system header file.
1212
1213 2010-12-19  Bruno Haible  <bruno@clisp.org>
1214
1215         iconv_open: Fix regression from 2010-12-04.
1216         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
1217         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
1218
1219 2010-12-19  Bruno Haible  <bruno@clisp.org>
1220
1221         stdbool test: Avoid a gcc warning.
1222         * tests/test-stdbool.c (main): Fail if e1 is false.
1223         Reported by Jim Meyering.
1224
1225 2010-12-19  Jim Meyering  <meyering@redhat.com>
1226
1227         setenv: restore to working order
1228         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
1229         mistakenly removed.
1230         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
1231         HAVE_SETENV.
1232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
1233         HAVE_SETENV.
1234
1235 2010-12-19  Bruno Haible  <bruno@clisp.org>
1236
1237         Document some different function declarations on OSF/1 5.1.
1238         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
1239         * doc/posix-functions/inet_ntop.texi: Likewise.
1240         * doc/posix-functions/gethostname.texi: Likewise.
1241         * lib/unistd.in.h (gethostname): Update comment.
1242
1243 2010-12-19  Bruno Haible  <bruno@clisp.org>
1244
1245         doc: Mention vasprintf-posix module.
1246         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
1247         the 'vasprintf-posix' module.
1248         * doc/glibc-functions/vasprintf.texi: Likewise.
1249
1250 2010-12-19  Bruno Haible  <bruno@clisp.org>
1251
1252         unsetenv: Add missing declaration on OSF/1 5.1.
1253         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
1254         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
1255         Don't set HAVE_UNSETENV. In the test program, set _BSD.
1256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
1257         not HAVE_UNSETENV.
1258         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
1259         HAVE_UNSETENV.
1260         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
1261
1262 2010-12-19  Bruno Haible  <bruno@clisp.org>
1263
1264         setenv: Add missing declaration on OSF/1 5.1.
1265         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
1266         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
1267         declared. Don't set HAVE_SETENV.
1268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
1269         not HAVE_SETENV.
1270         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
1271         HAVE_SETENV.
1272         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
1273
1274 2010-12-19  Bruno Haible  <bruno@clisp.org>
1275
1276         nl_langinfo tests: Avoid gcc warning.
1277         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
1278
1279 2010-12-19  Bruno Haible  <bruno@clisp.org>
1280
1281         mknod: Avoid error in C++ mode on OSF/1 with GCC.
1282         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
1283         _GL_CXXALIAS_SYS.
1284
1285 2010-12-19  Bruno Haible  <bruno@clisp.org>
1286
1287         stdbool: Relax test.
1288         * tests/test-stdbool.c (e): Don't require that casts from a variable's
1289         address to 'bool' work in static initializer, for compilers other than
1290         GCC.
1291
1292 2010-12-19  Bruno Haible  <bruno@clisp.org>
1293
1294         ftello: Add missing declaration on OSF/1 5.1.
1295         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
1296         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
1297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
1298         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
1299         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
1300
1301 2010-12-19  Bruno Haible  <bruno@clisp.org>
1302
1303         fseeko: Add missing declaration on OSF/1 5.1.
1304         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
1305         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
1306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
1307         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
1308         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
1309
1310 2010-12-19  Bruno Haible  <bruno@clisp.org>
1311
1312         fchdir: Add missing declaration on OSF/1 5.1.
1313         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
1314         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
1315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
1316         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
1317         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
1318
1319 2010-12-19  Bruno Haible  <bruno@clisp.org>
1320
1321         relocatable-prog-wrapper: Separate from relocatable-prog.
1322         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
1323         uninstall-relocwrapper rule here.
1324         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
1325         Reported by Ian Beckwith <ianb@erislabs.net>.
1326
1327 2010-12-19  Bruno Haible  <bruno@clisp.org>
1328
1329         unistr/u8-mbsnlen: Add missing dependency.
1330         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
1331         Reported by Ian Beckwith <ianb@erislabs.net>.
1332
1333 2010-12-19  Bruno Haible  <bruno@clisp.org>
1334
1335         iconv: Make it possible again to use this module without 'iconv-h'.
1336         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
1337         if it is not defined.
1338         Reported by Ian Beckwith <ianb@erislabs.net>.
1339
1340 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1341
1342         acl: port to Solaris 8 when copying from tmpfs to ufs
1343         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
1344         error number.  Problem observed on Solaris 8 with latest
1345         coreutils, with "mv A B", where A is on a tmpfs file system and B
1346         is on a ufs file system.  This caused coreutils' mv/part-symlink
1347         test to fail.
1348
1349         tests: set fail=0 at start
1350         * tests/init.sh (setup_): Move fail=0 initialization here ...
1351         (mktempd_): ... from here, so that tests can rely on fail being
1352         set to 0 initially.  This fixes a problem in coreutils; see:
1353         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
1354
1355 2010-12-18  Bruno Haible  <bruno@clisp.org>
1356
1357         memmem-simple: Stylistic changes.
1358         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
1359         Fix preprocessor directive indentation.
1360
1361 2010-12-15  Pádraig Brady <P@draigBrady.com>
1362
1363         memmem, memmem-simple: reorganize and expand empty needle check
1364         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
1365         functional checks to memmem-simple so that one has a fully functional
1366         memmem by using just this module.
1367         Restrict the performance only check to the memmem module.
1368         Also expand the empty needle check to ensure the correct
1369         pointer is returned, not just a non NULL pointer.
1370         * doc/glibc-functions/memmem.texi: Rearrange the portability
1371         documentation to correlate with the rearranged checks.
1372         Clarify exactly how the memmem and memmem-simple modules
1373         relate to each other.
1374
1375 2010-12-15  Pádraig Brady <P@draigBrady.com>
1376             Bruno Haible  <bruno@clisp.org>
1377
1378         Improve cross-compilation guesses for uClibc.
1379         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
1380         that uClibc does not have the glibc bug.
1381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
1382         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
1383
1384 2010-12-14  Eric Blake  <eblake@redhat.com>
1385
1386         configmake: provide fallbacks for oldest supported autotools
1387         * m4/configmake.m4: New file.
1388         * modules/configmake (Files): Ship it.
1389         (configure.ac): Use it to guarantee fallbacks.
1390
1391 2010-12-13  Pádraig Brady <P@draigBrady.com>
1392
1393         read-file: Improve handling of large files
1394         * lib/read-file.c (fread_file): Minimize realloc()s
1395         for regular files, and better manage sizes around SIZE_MAX.
1396
1397 2010-12-13  Eric Blake  <eblake@redhat.com>
1398
1399         cloexec, fcntl: relax license
1400         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
1401         consent from all contributors.
1402         * modules/fcntl (License): Likewise.
1403
1404 2010-12-10  Bruno Haible  <bruno@clisp.org>
1405
1406         Tests for module 'pipe-posix'.
1407         * modules/pipe-posix-tests: New file.
1408         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
1409
1410 2010-12-10  Bruno Haible  <bruno@clisp.org>
1411
1412         pipe-posix: Make it work in C++ mode.
1413         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
1414         (pipe): Use common idiom, not a macro definition.
1415         * lib/pipe.c: New file.
1416         * m4/pipe.m4: New file.
1417         * modules/pipe-posix (Description): Enhance.
1418         (Files): Add lib/pipe.c, m4/pipe.m4.
1419         (configure.ac): Invoke gl_FUNC_PIPE.
1420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
1421         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
1422         * tests/test-unistd-c++.cc: Check the signature of pipe.
1423
1424 2010-12-10  Bruno Haible  <bruno@clisp.org>
1425
1426         Rename module 'pipe' to 'spawn-pipe'.
1427         * modules/spawn-pipe: New file, renamed from modules/pipe.
1428         (Files, configure.ac, Makefile.am): Update.
1429         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
1430         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
1431         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
1432         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
1433         "spawn-pipe.h" instead of "pipe.h".
1434         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
1435         to gl_SPAWN_PIPE.
1436         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
1437         (Files, Makefile.am): Update.
1438         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
1439         Update.
1440         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
1441         Include "spawn-pipe.h" instead of "pipe.h".
1442         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
1443         * lib/javacomp.c: Likewise.
1444         * lib/javaversion.c: Likewise.
1445         * lib/pipe-filter-gi.c: Likewise.
1446         * lib/pipe-filter-ii.c: Likewise.
1447         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
1448         * modules/javacomp (Depends-on): Likewise.
1449         * modules/javaversion (Depends-on): Likewise.
1450         * modules/pipe-filter-gi (Depends-on): Likewise.
1451         * modules/pipe-filter-ii (Depends-on): Likewise.
1452         * MODULES.html.sh (Executing programs): Update.
1453         * NEWS: Mention the change.
1454
1455 2010-12-10  Eric Blake  <eblake@redhat.com>
1456
1457         pipe-posix: new module
1458         * modules/pipe-posix: New file.
1459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
1460         (gl_UNISTD_H): Check for declaration.
1461         * modules/unistd (Makefile.am): Substitute it.
1462         * lib/unistd.in.h (pipe): Provide it for mingw.
1463         * doc/posix-functions/pipe.texi (pipe): Update documentation.
1464         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
1465
1466 2010-12-07  Bruno Haible  <bruno@clisp.org>
1467
1468         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
1469         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
1470         u8_strcmp_gnu.
1471         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
1472
1473 2010-12-06  Bruno Haible  <bruno@clisp.org>
1474
1475         Update internal documentation.
1476         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
1477
1478 2010-12-04  Bruno Haible  <bruno@clisp.org>
1479
1480         Put more information about failed tests into the test return codes.
1481         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
1482         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
1483         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
1484         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1485         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
1486         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1487         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1488         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
1489         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
1490         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1491         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
1492         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1493         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1494         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1495         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
1496         returns a bit mask.
1497         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
1498         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
1499         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
1500         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
1501         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1502         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
1503         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
1504         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1505         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1506         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
1507         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
1508         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
1509         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
1510         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
1511         * m4/link.m4 (gl_FUNC_LINK): Likewise.
1512         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1513         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
1514         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
1515         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1516         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
1517         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1518         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
1519         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
1520         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1521         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
1522         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1523         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
1524         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
1525         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
1526         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
1527         gl_PRINTF_PRECISION): Likewise.
1528         * m4/regex.m4 (gl_REGEX): Likewise.
1529         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1530         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1531         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
1532         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1533         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1534         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1535         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1536         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
1537         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1538         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1539         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
1540         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
1541         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1542         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1543         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1544         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1545         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
1546         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1547         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1548         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
1549         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
1550         enumerated value.
1551         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
1552
1553 2010-12-04  Bruno Haible  <bruno@clisp.org>
1554
1555         Update for Solaris 11 2010-11.
1556         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
1557         Express, released in November 2010.
1558
1559 2010-12-04  Bruno Haible  <bruno@clisp.org>
1560
1561         nproc: Relax license.
1562         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
1563         and Paul Eggert.
1564         Requested by Ludovic Courtès <ludo@gnu.org>.
1565
1566 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
1567
1568         utimecmp: fine-grained src to nearby coarse-grained dest
1569
1570         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
1571         and the source is on a file system with higher-resolution time
1572         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
1573         not work, and the time stamps are close together, the algorithm to
1574         determine the exact resolution from the read-back mtime was buggy:
1575         it had a "!=" where it should have had an "==".  This bug has been
1576         in the code ever since it was introduced to gnulib.
1577         Problem reported by Dan Jacobson in
1578         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
1579
1580 2010-11-30  Bruno Haible  <bruno@clisp.org>
1581
1582         strerror_r-posix: Fix autoconf test.
1583         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
1584
1585 2010-11-28  Bruno Haible  <bruno@clisp.org>
1586             Paul Eggert  <eggert@cs.ucla.edu>
1587
1588         Tests for module 'getdomainname'.
1589         * modules/getdomainname-tests: New file.
1590         * tests/test-getdomainname.c: New file, based on
1591         tests/test-gethostname.c.
1592
1593 2010-11-28  Bruno Haible  <bruno@clisp.org>
1594             Paul Eggert  <eggert@cs.ucla.edu>
1595
1596         getdomainname: Use the system function when possible.
1597         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
1598         (getdomainname): Replace if needed. Provide the declaration if it is
1599         missing. Don't use _GL_CXXALIAS_SYS_CAST.
1600         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
1601         (getdomainname): When the system has getdomainname, call the system
1602         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
1603         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
1604         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
1605         found in libnsl. Look for the declaration also in <netdb.h>. Replace
1606         the function if its second argument is of type 'int' or if it is found
1607         in libnsl.
1608         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
1609         <sys/systeminfo.h> and sysinfo().
1610         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
1611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1612         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
1613         HAVE_GETDOMAINNAME.
1614         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
1615         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
1616         * doc/glibc-functions/getdomainname.texi: Document the problems with
1617         the getdomainname declaration.
1618
1619 2010-11-28  Bruno Haible  <bruno@clisp.org>
1620
1621         sys_socket: Ensure ss_family field on AIX.
1622         * lib/sys_socket.in.h (ss_family): New macro definition.
1623         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
1624         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
1625         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1626         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1627         * modules/sys_socket (Makefile.am): Substitute
1628         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1629         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
1630
1631 2010-11-27  Bruno Haible  <bruno@clisp.org>
1632
1633         readline: Improve configure output.
1634         * m4/readline.m4 (gl_FUNC_READLINE): Make the
1635         "checking for readline..." result understandable.
1636
1637 2010-11-27  Bruno Haible  <bruno@clisp.org>
1638
1639         *printf-posix: Detect a bug on Solaris 10/x86.
1640         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
1641         for floating-point output.
1642         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
1643         directive.
1644         * tests/test-snprintf-posix.h (test_function): Likewise.
1645         * tests/test-sprintf-posix.h (test_function): Likewise.
1646         * tests/test-vasprintf-posix.c (test_function): Likewise.
1647         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
1648         * doc/posix-functions/printf.texi: Likewise.
1649         * doc/posix-functions/snprintf.texi: Likewise.
1650         * doc/posix-functions/sprintf.texi: Likewise.
1651         * doc/posix-functions/vfprintf.texi: Likewise.
1652         * doc/posix-functions/vprintf.texi: Likewise.
1653         * doc/posix-functions/vsnprintf.texi: Likewise.
1654         * doc/posix-functions/vsprintf.texi: Likewise.
1655         * doc/glibc-functions/obstack_printf.texi: Likewise.
1656         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1657
1658 2010-11-27  Bruno Haible  <bruno@clisp.org>
1659
1660         Fix link error when module libunistring-optional is in use.
1661         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
1662         * modules/striconveha-tests (Makefile.am): Likewise.
1663
1664 2010-11-27  Bruno Haible  <bruno@clisp.org>
1665
1666         regex: Mention link dependencies.
1667         * modules/regex (Link): New section.
1668         * modules/rpmatch (Link): Likewise.
1669         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
1670
1671 2010-11-27  Bruno Haible  <bruno@clisp.org>
1672
1673         ftoastr: Fix compilation error on Solaris.
1674         * lib/ftoastr.c: Include <config.h>.
1675
1676 2010-11-27  Bruno Haible  <bruno@clisp.org>
1677
1678         getloadavg: Update documentation.
1679         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
1680
1681 2010-11-27  Bruno Haible  <bruno@clisp.org>
1682
1683         sys_socket: Fix test whether the functions are declared.
1684         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
1685         not <sys/select.h>.
1686
1687 2010-11-27  Bruno Haible  <bruno@clisp.org>
1688
1689         getpass: Make sure to get system declaration on some platforms.
1690         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
1691         gl_USE_SYSTEM_EXTENSIONS.
1692         * modules/getpass (Depends-on): Add extensions.
1693
1694 2010-11-26  Bruno Haible  <bruno@clisp.org>
1695
1696         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
1697         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
1698         'iconv' module is present.
1699         (ICONV_CONST): New macro.
1700         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
1701         ICONV_CONST.
1702         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
1703         set ICONV_CONST.
1704         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
1705         here.
1706         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
1707         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
1708         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
1709         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
1710         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
1711         present.
1712
1713 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
1714
1715         ftoastr: comment fix
1716         * lib/ftoastr.c: "little" -> "little or no" in comment
1717
1718 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
1719
1720         stdint: port to GCC 4.3 + OSX + Octave
1721         On this platform, stdint.h is buggy and defines int64_t to long
1722         long int.  The replacement defined it to long int, causing
1723         problems with C++ style name mangling.  Instead, trust the system
1724         definition if INT64_MAX is defined, and likewise for the unsigned
1725         variant.   Problem reported by Jarno Rajahalme in
1726         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
1727         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
1728         and don't mess with int64_t and INT64_MAX in this case.
1729         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
1730
1731 2010-11-24  Bruno Haible  <bruno@clisp.org>
1732
1733         doc: Corrections regarding MacOS X 10.4 and 10.5.
1734         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
1735         MacOS X.
1736         Reported by Simon Josefsson.
1737
1738 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
1739
1740         Uninstall ".bin" files installed by relocwrapper.
1741         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
1742         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
1743         unless it is already there.
1744
1745 2010-11-21  Bruno Haible  <bruno@clisp.org>
1746
1747         Update for NetBSD 5.0.
1748         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1749         NetBSD; the test fails on NetBSD 5.0.
1750         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1751         about NetBSD.
1752
1753 2010-11-21  Bruno Haible  <bruno@clisp.org>
1754
1755         Update for HP-UX 11.23 and HP-UX 11.31.
1756         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
1757         HP-UX.
1758
1759 2010-11-21  Bruno Haible  <bruno@clisp.org>
1760
1761         Update for MacOS X 10.5.
1762         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1763         MacOS X; the test fails on MacOS X 10.5.8.
1764         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1765         about MacOS X.
1766
1767 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
1768
1769         bootstrap: add bootstrap_sync option.
1770         See discussion at
1771         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
1772         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
1773         * build-aux/bootstrap: Accept --bootstrap-sync to update
1774         bootstrap if it is not identical to the local gnulib's
1775         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
1776         enable this by default.  Accept --no-bootstrap-sync to disable
1777         it.
1778
1779 2010-11-20  Bruno Haible  <bruno@clisp.org>
1780
1781         Ensure that <features.h> is included before __GLIBC__ is tested.
1782         * lib/printf-parse.h: Include <features.h>.
1783         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
1784         Reported by Mike Frysinger <vapier@gentoo.org>.
1785
1786         Ensure that <features.h> is included before __GLIBC__ is tested.
1787         * lib/wchar.in.h: Include <features.h>.
1788         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
1789         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
1790         Reported by Mike Frysinger <vapier@gentoo.org>.
1791
1792         Ensure that <features.h> is included before __GLIBC__ is tested.
1793         * lib/arpa_inet.in.h: Include <features.h>.
1794         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
1795         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
1796         Reported by Mike Frysinger <vapier@gentoo.org>.
1797
1798         Ensure that <features.h> is included before __GLIBC__ is tested.
1799         * build-aux/link-warning.h: Include <features.h>.
1800         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
1801         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
1802         Reported by Mike Frysinger <vapier@gentoo.org>.
1803
1804         Ensure that <features.h> is included before __GLIBC__ is tested.
1805         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
1806         Reported by Mike Frysinger <vapier@gentoo.org>.
1807
1808 2010-11-20  Bruno Haible  <bruno@clisp.org>
1809
1810         memmem: Fix autoconf test.
1811         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
1812
1813 2010-11-20  Bruno Haible  <bruno@clisp.org>
1814
1815         Port to uClibc.
1816         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
1817         * lib/fcntl.in.h: Likewise.
1818         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
1819         * lib/mbrtowc.c (mbrtowc): Likewise.
1820         * lib/relocatable.c (find_shared_library_fullname): Likewise.
1821         * lib/strerror_r.c: Likewise.
1822         * lib/unistr/u8-strnlen.c: Likewise.
1823         * lib/vasnprintf.c (decimal_point_char): Likewise.
1824         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1825         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1826         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
1827         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
1828         * tests/test-sigaction.c (handler, main): Likewise.
1829         * lib/freading.h: Treat uClibc like a non-glibc platform.
1830         * lib/freading.c: Likewise.
1831         * lib/gettext.h: Likewise.
1832         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
1833         Likewise.
1834         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
1835         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1836         * lib/propername.c (proper_name_utf8): Likewise.
1837         * lib/spawn.in.h: Likewise.
1838         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
1839         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
1840         mem_cd_iconveh_internal): Likewise.
1841         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
1842         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1843         strstr, strcasestr): Likewise.
1844         * lib/unicodeio.c (unicode_to_mb): Likewise.
1845         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
1846         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
1847         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
1848         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
1849         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
1850         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
1851         * lib/unistr/u8-stpncpy.c: Likewise.
1852         * lib/vasnprintf.c (VASNPRINTF): Likewise.
1853         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
1854         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1855         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1856         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
1857         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
1858         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
1859         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
1860         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1861         Likewise.
1862         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1863         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1864         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1865         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1866         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1867         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1868         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1869         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1870         * tests/test-getopt.h (OPTIND_MIN): Likewise.
1871         * tests/test-striconveha.c (main): Likewise.
1872         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1873         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
1874         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
1875         * doc/posix-functions/getline.texi: Likewise.
1876         Reported by Mike Frysinger <vapier@gentoo.org>.
1877
1878 2010-11-20  Bruno Haible  <bruno@clisp.org>
1879
1880         nproc: Fix condition.
1881         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
1882         HAVE_PTHREAD_AFFINITY_NP.
1883
1884 2010-11-20  Bruno Haible  <bruno@clisp.org>
1885
1886         Fix a comment.
1887         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
1888
1889 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
1890
1891         ftoastr: don't assume snprintf
1892         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
1893         Implement a subset of snprintf here, by using sprintf safely.
1894         * modules/ftoastr (Depends-on): Remove snprintf.
1895
1896 2010-11-19  Jim Meyering  <meyering@redhat.com>
1897
1898         test-rename.h: fix compilation failure
1899         * tests/test-rename.h (test_rename): Add omitted "}".
1900
1901 2010-11-17  Jim Meyering  <meyering@redhat.com>
1902
1903         maint.mk: add a URL discussing the no-@acronym policy
1904         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
1905
1906 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1907
1908         ftoastr: depend on snprintf, improve comments
1909         * lib/ftoastr.c: Also mention Loitsch's draft.
1910         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
1911         needed in the current implementation, but it might simplify
1912         speeding up the code later.
1913         * modules/ftoastr: Depend on snprintf; this improves portability.
1914         Suggested by Bruno Haible in the same email.
1915
1916         ftoastr: port to hosts lacking strtof and strtold
1917         Problem reported by Bruno Haible in
1918         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
1919         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
1920         environment and strtold (and presumably strtof) are not available.
1921         * modules/ftoastr (Files): Add m4/c-strtod.m4.
1922         (configure.ac): Require gl_C99_STRTOLD.
1923
1924 2010-11-18  Bruno Haible  <bruno@clisp.org>
1925
1926         c-strtold: Avoid link error on AIX 7.
1927         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
1928         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
1929         (gl_C_STRTOLD): Test whether strtold_l exists.
1930         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1931
1932 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1933
1934         intprops: new macro INT_BITS_STRLEN_BOUND
1935         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
1936         ftoastr.h.  This exposes an internal of intprops.h that was formerly
1937         not exposed.  Also, it uses a slightly tighter bound than before;
1938         though this makes no practical difference, we might as well be as
1939         tight as we easily can.
1940
1941         ftoastr: new module, for lossless conversion of floats to short strings
1942         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
1943         * modules/ftoastr: New files.
1944
1945 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1946
1947         bootstrap: port to Solaris sed
1948         * build-aux/bootstrap (get_version): Port to Solaris sed.
1949         See Ralf Wildenhues's note in
1950         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
1951
1952 2010-11-14  Jim Meyering  <meyering@redhat.com>
1953
1954         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
1955         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
1956         and move definition closer to sole use.
1957
1958 2010-11-13  Jim Meyering  <meyering@redhat.com>
1959
1960         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
1961         Now we require at least autoconf-2.59, which means the work-around
1962         is no longer needed.
1963         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
1964         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1965         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1966         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
1967         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1968
1969 2010-11-13  Bruno Haible  <bruno@clisp.org>
1970
1971         rename, renameat: Avoid test failures at NFS mounted locations.
1972         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
1973         functions.
1974         (test_rename): Use assert_nonexistent.
1975         * tests/test-rename.c: Include <dirent.h>.
1976         * tests/test-renameat.c: Likewise.
1977         Reported by Gary V. Vaughan <gary@gnu.org>.
1978
1979         rename, renameat: Document Linux bug with NFS
1980         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
1981         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
1982         * doc/posix-functions/renameat.texi: Likewise.
1983         Suggested by Eric Blake.
1984
1985 2010-11-13  Bruno Haible  <bruno@clisp.org>
1986
1987         rename test: Add comments.
1988         * tests/test-rename.h (test_rename): Add structure and comments.
1989
1990 2010-11-13  Eric Blake  <eblake@redhat.com>
1991
1992         maintainer-makefile: cover a few more files
1993         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
1994         scripts generated within C files, for libvirt.
1995
1996 2010-11-13  Bruno Haible  <bruno@clisp.org>
1997
1998         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
1999         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
2000         character, return the number of bytes that belong together, not always
2001         1.
2002         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
2003         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
2004         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
2005         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
2006         number of bytes of an invalid character.
2007         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
2008         (main): Invoke it.
2009         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
2010         results.
2011         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
2012         malformed byte sequences.
2013         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
2014         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
2015         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
2016         Reported by Ben Pfaff and Paolo Bonzini.
2017
2018 2010-11-13  Bruno Haible  <bruno@clisp.org>
2019
2020         openat: Work around glibc bug with fchownat() and empty file names.
2021         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
2022         (gl_FUNC_FCHOWNAT): Invoke it.
2023         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
2024         * doc/posix-functions/fchownat.texi: Document the glibc bug.
2025         Reported by Gary V. Vaughan <gary@gnu.org>.
2026
2027 2010-11-13  Bruno Haible  <bruno@clisp.org>
2028
2029         openat: Ensure autoconf macro ordering.
2030         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
2031         gl_USE_SYSTEM_EXTENSIONS.
2032         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
2033
2034 2010-11-13  Bruno Haible  <bruno@clisp.org>
2035
2036         Update comments.
2037         * lib/unistr/u8-check.c: Update file name in comments.
2038         * lib/unistr/u8-mblen.c: Likewise.
2039         * lib/unistr/u8-prev.c: Likewise.
2040         * lib/unistr/u8-strmblen.c: Likewise.
2041         * lib/unistr/u8-strmbtouc.c: Likewise.
2042
2043 2010-11-13  Jim Meyering  <meyering@redhat.com>
2044
2045         tests: avoid test failure on Solaris 10 due to lack of PATH export
2046         * tests/test-update-copyright.sh: Don't forget to export PATH.
2047
2048         init.sh: ensure that IFS is defined, just in case...
2049         * tests/init.sh (setup_): Ensure that IFS is defined,
2050         so that saving and restoring it works as expected.  This
2051         appears to be useful at least for an old version of dash
2052         from a long time ago (RH 6).  See here for details:
2053         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
2054
2055         maint.mk: tighten "test a == b" check
2056         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
2057         test to files that contain something like #!/bin/sh.
2058         Without this, coreutils would get two false positives in
2059         the comments of C source files.
2060
2061 2010-11-12  Eric Blake  <eblake@redhat.com>
2062
2063         bootstrap: fix typo in previous attempt
2064         * build-aux/bootstrap (buildreq): Correct the grouping.
2065         Reported by Paul Eggert.
2066
2067         maintainer-makefile: prohibit test x == x
2068         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
2069         Based on a report by Matthias Bolte.
2070
2071         bootstrap: allow FreeBSD gzip
2072         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
2073         which has no '.' and goes to stderr.
2074         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
2075         Reported by Matthias Bolte.
2076
2077         maintainer-makefile: check for i18n setup
2078         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
2079         will likely work.
2080
2081 2010-11-12  Bruno Haible  <bruno@clisp.org>
2082
2083         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
2084         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
2085         * lib/nanosleep.c (nanosleep): Likewise.
2086
2087 2010-11-11  Bruno Haible  <bruno@clisp.org>
2088
2089         fcntl-h: Fix for use of C++ on glibc systems.
2090         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
2091         also on glibc systems in C++ mode.
2092         Reported by Gary V. Vaughan <gary@gnu.org>.
2093
2094 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2095
2096         mknod: avoid false failure with dash
2097         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
2098
2099 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2100
2101         unlink: Fix "is it should" typo in diagnostic.
2102         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
2103         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
2104
2105 2010-11-11  Bruno Haible  <bruno@clisp.org>
2106
2107         Tests for module 'strerror_r-posix'.
2108         * modules/strerror_r-posix-tests: New file.
2109         * tests/test-strerror_r.c: New file.
2110         * tests/test-string-c++.cc: Check the signature of strerror_r.
2111
2112         New module 'strerror_r-posix'.
2113         * lib/string.in.h (strerror_r): New declaration.
2114         * lib/strerror_r.c: New file.
2115         * m4/strerror_r.m4: New file.
2116         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
2117         of strerror_r.
2118         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
2119         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
2120         * modules/strerror_r-posix: New file.
2121         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
2122         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
2123         * doc/posix-functions/strerror_r.texi: Mention the new module and the
2124         portability problems.
2125
2126 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
2127
2128         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
2129         line is also considered for output. Quoted function name in shell
2130         command, so temporary files for functions like MyClass::operator()
2131         are removed correctly without errors.
2132
2133 2010-11-09  Bruno Haible  <bruno@clisp.org>
2134
2135         * doc/posix-functions/strerror.texi: List more failing platforms.
2136
2137         * doc/posix-functions/strerror.texi: Add a comment.
2138
2139 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2140
2141         fdopendir: fix bug on MacOS X when low on file descriptors
2142
2143         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
2144         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
2145         All callers changed.
2146         (fdopendir): Invoke save_cwd at the top level, not after using
2147         multiple dup() calls to use up file descriptors.  Then retry
2148         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
2149         less than the maximum number of open file descriptors, because
2150         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
2151         on Mac OS X 10.6.4 for tar 1.24
2152         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
2153         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
2154         and for tar 1.25
2155         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
2156
2157 2010-11-07  Bruno Haible  <bruno@clisp.org>
2158
2159         vasnprintf: Support I flag on glibc systems.
2160         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
2161         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
2162         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
2163         snprintf function.
2164         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
2165         glibc systems.
2166         * tests/test-vasnprintf-posix3.c: New file.
2167         * modules/vasnprintf-posix-tests (Files): Add it.
2168         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
2169
2170 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2171
2172         [html] Fix copy/paste bug: Use unique name for compiler warnings.
2173         * MODULES.html.sh: For compiler warnings, use name
2174         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
2175
2176 2010-11-05  Eric Blake  <eblake@redhat.com>
2177
2178         ceil, floor: avoid spurious failure with icc
2179         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
2180         [denormals-as-zero] when optimizing without -mieee-fp option.
2181         * tests/test-floorf2.c (floorf_reference): Likewise.
2182         * tests/test-ceilf1.c (dummy): New function.
2183         (main): Use it to outsmart icc's optimization.
2184         * tests/test-floorf1.c (dummy, main): Likewise.
2185
2186         tests: require working signbit
2187         * modules/ceilf-tests (Depends-on): Add signbit.
2188         * modules/ceill-tests (Depends-on): Likewise.
2189         * modules/floorf-tests (Depends-on): Likewise.
2190         * modules/floorl-tests (Depends-on): Likewise.
2191         * modules/round-tests (Depends-on): Likewise.
2192         * modules/roundf-tests (Depends-on): Likewise.
2193         * modules/roundl-tests (Depends-on): Likewise.
2194         * modules/trunc-tests (Depends-on): Likewise.
2195         * modules/truncf-tests (Depends-on): Likewise.
2196         * modules/truncl-tests (Depends-on): Likewise.
2197
2198         strtod: work around icc bug
2199         * lib/strtod.c (minus_zero): Define to working value.
2200         (strtod): Use it to avoid icc bug.
2201
2202         copysign: enhance tests
2203         * modules/copysign-tests (Files): Add minus-zero.h.
2204         * tests/test-copysign.c (main): Also test zeros.
2205
2206 2010-11-04  Eric Blake  <eblake@redhat.com>
2207
2208         ceil, floor, round, trunc: enhance tests of -0
2209         * tests/test-ceilf1.c (main): Ensure correct sign of result.
2210         * tests/test-ceill.c (main): Likewise.
2211         * tests/test-floorf1.c (main): Likewise.
2212         * tests/test-floorl.c (main): Likewise.
2213         * tests/test-round1.c (main): Likewise.
2214         * tests/test-roundf1.c (main): Likewise.
2215         * tests/test-roundl.c (main): Likewise.
2216         * tests/test-trunc1.c (main): Likewise.
2217         * tests/test-truncf1.c (main): Likewise.
2218         * tests/test-truncl.c (main): Likewise.
2219
2220 2010-11-04  Eric Blake  <eblake@redhat.com>
2221
2222         frexp, tests: work around ICC bug with -zero
2223         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
2224         works with more compilers.
2225         * tests/minus-zero.h: New file.
2226         * modules/ceilf-tests (Files): Include it.
2227         * modules/ceill-tests (Files): Likewise.
2228         * modules/floorf-tests (Files): Likewise.
2229         * modules/floorl-tests (Files): Likewise.
2230         * modules/frexp-nolibm-tests (Files): Likewise.
2231         * modules/frexp-tests (Files): Likewise.
2232         * modules/frexpl-nolibm-tests (Files): Likewise.
2233         * modules/frexpl-tests (Files): Likewise.
2234         * modules/isnan-tests (Files): Likewise.
2235         * modules/isnand-nolibm-tests (Files): Likewise.
2236         * modules/isnand-tests (Files): Likewise.
2237         * modules/isnanf-nolibm-tests (Files): Likewise.
2238         * modules/isnanf-tests (Files): Likewise.
2239         * modules/isnanl-nolibm-tests (Files): Likewise.
2240         * modules/isnanl-tests (Files): Likewise.
2241         * modules/round-tests (Files): Likewise.
2242         * modules/roundf-tests (Files): Likewise.
2243         * modules/roundl-tests (Files): Likewise.
2244         * modules/ldexpl-tests (Files): Likewise.
2245         * modules/signbit-tests (Files): Likewise.
2246         * modules/snprintf-posix-tests (Files): Likewise.
2247         * modules/sprintf-posix-tests (Files): Likewise.
2248         * modules/strtod-tests (Files): Likewise.
2249         * modules/trunc-tests (Files): Likewise.
2250         * modules/truncf-tests (Files): Likewise.
2251         * modules/truncl-tests (Files): Likewise.
2252         * modules/vsnprintf-posix-tests (Files): Likewise.
2253         * modules/vsprintf-posix-tests (Files): Likewise.
2254         * modules/vasnprintf-posix-tests (Files): Likewise.
2255         * modules/vasprintf-posix-tests (Files): Likewise.
2256         * tests/test-ceilf1.c (main): Use it.
2257         * tests/test-ceill.c (main): Likewise.
2258         * tests/test-floorf1.c (main): Likewise.
2259         * tests/test-floorl.c (main): Likewise.
2260         * tests/test-frexp.c (main): Likewise.
2261         * tests/test-frexpl.c (main): Likewise.
2262         * tests/test-isnan.c (main): Likewise.
2263         * tests/test-isnand.h (main): Likewise.
2264         * tests/test-isnanf.h (main): Likewise.
2265         * tests/test-isnanl.h (main): Likewise.
2266         * tests/test-ldexpl.c (main): Likewise.
2267         * tests/test-round.c (main): Likewise.
2268         * tests/test-roundf.c (main): Likewise.
2269         * tests/test-roundl.c (main): Likewise.
2270         * tests/test-signbit.c (test_signbitf, test_signbitd)
2271         (test_signbitl): Likewise.
2272         * tests/test-snprintf-posix.h (test_function): Likewise.
2273         * tests/test-sprintf-posix.h (test_function): Likewise.
2274         * tests/test-strtod.c (main): Likewise.
2275         * tests/test-trunc1.c (main): Likewise.
2276         * tests/test-truncf1.c (main): Likewise.
2277         * tests/test-truncl.c (main): Likewise.
2278
2279         isnanl: work around icc bug
2280         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
2281
2282 2010-11-03  Eric Blake  <eblake@redhat.com>
2283
2284         tests: fix compiler warnings
2285         * tests/test-getopt.h (test_getopt): Fix condition.
2286         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2287         * tests/test-pipe2.c (main): Likewise.
2288         * tests/test-quotearg-simple.c (main): Avoid icc warning.
2289
2290         utimens: fix broken m4 test
2291         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
2292
2293 2010-10-28  Bruno Haible  <bruno@clisp.org>
2294
2295         posix_spawn*, getdtablesize: Relax license.
2296         * modules/posix_spawn (License): Change to LGPLv2+.
2297         * modules/posix_spawnp (License): Likewise.
2298         * modules/posix_spawn-internal (License): Likewise.
2299         * modules/posix_spawnattr_init (License): Likewise.
2300         * modules/posix_spawnattr_getflags (License): Likewise.
2301         * modules/posix_spawnattr_setflags (License): Likewise.
2302         * modules/posix_spawnattr_getpgroup (License): Likewise.
2303         * modules/posix_spawnattr_setpgroup (License): Likewise.
2304         * modules/posix_spawnattr_getschedparam (License): Likewise.
2305         * modules/posix_spawnattr_setschedparam (License): Likewise.
2306         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
2307         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
2308         * modules/posix_spawnattr_getsigdefault (License): Likewise.
2309         * modules/posix_spawnattr_setsigdefault (License): Likewise.
2310         * modules/posix_spawnattr_getsigmask (License): Likewise.
2311         * modules/posix_spawnattr_setsigmask (License): Likewise.
2312         * modules/posix_spawnattr_destroy (License): Likewise.
2313         * modules/posix_spawn_file_actions_init (License): Likewise.
2314         * modules/posix_spawn_file_actions_addclose (License): Likewise.
2315         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
2316         * modules/posix_spawn_file_actions_addopen (License): Likewise.
2317         * modules/posix_spawn_file_actions_destroy (License): Likewise.
2318         * modules/getdtablesize (License): Likewise.
2319         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
2320
2321 2010-10-26  Bruno Haible  <bruno@clisp.org>
2322
2323         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
2324         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
2325         Cygwin and mingw.
2326         Suggested by Eric Blake.
2327
2328 2010-10-26  Bruno Haible  <bruno@clisp.org>
2329
2330         stdio: Work around compilation error due to renameat() on Solaris 10.
2331         * lib/stdio.in.h: Include <unistd.h> on Solaris.
2332         * lib/renameat.c: Don't include <unistd.h> here.
2333         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
2334         Reported by Paul Eggert and Eric Blake.
2335
2336 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2337
2338         renameat: port to Solaris 10, which declares renameat in unistd.h
2339
2340         * lib/renameat.c: Include unistd.h before stdio.h, because
2341         Solaris 10 declares renameat in unistd.h.  Problem encountered
2342         when building GNU tar 1.24 on Solaris 10.
2343
2344 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2345
2346         fdopendir: fix C89 compilation
2347         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
2348         compilers.
2349
2350 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
2351
2352         inttostr: simplify by removing unnecessary redundancy
2353         * lib/anytostr.c: Don't include verify.h.
2354         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
2355         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
2356         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
2357         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
2358         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
2359         Likewise.
2360         * modules/inttostr (Depends-on): Remove 'verify'.
2361
2362 2010-10-23  Bruno Haible  <bruno@clisp.org>
2363
2364         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
2365         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
2366         Reported by Eric Blake.
2367
2368 2010-10-23  Bruno Haible  <bruno@clisp.org>
2369
2370         Tests: Fix LOCALE_JA on MirBSD 10.
2371         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
2372         to an UTF-8 locale.
2373         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
2374         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2375         Reported by Eric Blake.
2376
2377 2010-10-21  Bruno Haible  <bruno@clisp.org>
2378
2379         nl_langinfo test: Avoid test failure on NetBSD 5.
2380         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
2381         Reported by Eric Blake.
2382
2383 2010-10-21  Eric Blake  <eblake@redhat.com>
2384
2385         c-stack: work around libsigsegv 2.8 bug
2386         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
2387         overflow on at least PowerPC64.
2388
2389 2010-10-17  Bruno Haible  <bruno@clisp.org>
2390
2391         userspec: Drop redundant file.
2392         * modules/userspec (Files): Remove lib/inttostr.h.
2393
2394 2010-10-17  Bruno Haible  <bruno@clisp.org>
2395
2396         nl_langinfo tests: Silence some warnings.
2397         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
2398         Reported by Jim Meyering.
2399
2400 2010-10-17  Bruno Haible  <bruno@clisp.org>
2401
2402         Make use of GCC's attribute __alloc_size__.
2403         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
2404         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
2405         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
2406         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
2407         __alloc_size__.
2408         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2409         Suggested by Jim Meyering.
2410
2411 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
2412
2413         bootstrap: anchor .gitignore entries.
2414         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
2415         with...
2416         (insert_vc_ignore): ... this new function, which prepends `/' to
2417         all .gitignore entries before passing them to
2418         insert_sorted_if_absent.
2419
2420 2010-10-16  Bruno Haible  <bruno@clisp.org>
2421
2422         nextafter: Fix configure check.
2423         * modules/nextafter (configure.ac): Correct expected prototype.
2424
2425 2010-10-16  Bruno Haible  <bruno@clisp.org>
2426
2427         termios: Update documentation.
2428         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
2429
2430 2010-10-16  Bruno Haible  <bruno@clisp.org>
2431
2432         tests: Make them compile with TinyCC.
2433         * tests/test-strstr.c (main): Remove parentheses around array
2434         initializer.
2435
2436 2010-10-15  Eric Blake  <eblake@redhat.com>
2437
2438         ignore-value: make header idempotent
2439         * lib/ignore-value.h: Add double-inclusion guards.
2440         Reported by Stefan Berger.
2441
2442 2010-10-15  Jim Meyering  <meyering@redhat.com>
2443
2444         GNUmakefile: handle "stable" target, not "major"
2445         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
2446         lists in maint.mk and announce-gen.  Without this, "make stable"
2447         would fail to ensure that $(VERSION) is up to date.
2448
2449 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
2450
2451         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
2452         & co.
2453
2454 2010-10-14  Bruno Haible  <bruno@clisp.org>
2455
2456         vasnprintf: Don't set errno to 0.
2457         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
2458         block that sets it to 0.
2459         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2460
2461 2010-10-14  Bruno Haible  <bruno@clisp.org>
2462
2463         socketlib: Fix.
2464         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
2465         gl_PREREQ_SYS_H_WINSOCK2.
2466         Reported by Ian Beckwith <ianb@erislabs.net>.
2467
2468 2010-10-13  Jim Meyering  <meyering@redhat.com>
2469
2470         test-select-stdin.c: avoid warn_unused_result warnings
2471         * tests/test-select-stdin.c: Include "macros.h".
2472         ASSERT that read and fflush succeed.
2473
2474 2010-10-13  Jim Meyering  <meyering@redhat.com>
2475
2476         git-version-gen: do require git-VC'd files in cwd
2477         * build-aux/git-version-gen: Reject a git version string
2478         if there are no commits associated with the current directory.
2479         This avoids an unlikely false-positive (unrelated dir whose parent
2480         repository also contains a tag matching v*), as pointed out
2481         by Giuseppe Scrivano in
2482         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
2483
2484 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
2485
2486         argv-iter: omit nonconforming declaration
2487         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
2488         enum arg_iter_err declaration, which doesn't conform to C99.
2489         Solaris 10 cc warns about this.
2490
2491 2010-10-13  Eric Blake  <eblake@redhat.com>
2492
2493         termios: fix compilation on mingw
2494         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
2495         (gl_TERMIOS_H): Adjust it on mingw.
2496         * modules/termios (Makefile.am): Substitute new key.
2497         * lib/termios.in.h (includes): Make include_next conditional.
2498         * doc/posix-headers/termios.texi (termios.h): Update
2499         documentation.
2500         Reported by Daniel P. Berrange.
2501
2502 2010-10-13  Jim Meyering  <meyering@redhat.com>
2503
2504         git-version-gen: don't require that .git/ be in the current dir
2505         * build-aux/git-version-gen: Adjust this script so that it works
2506         when run from any working directory beneath the top-level .git/-
2507         containing directory.  Inspired by a patch from Giuseppe Scrivano,
2508         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
2509
2510         test-select: avoid warn_unused_result warnings
2511         * tests/test-select.c: Include "macros.h".
2512         ASSERT that each call to read, write, and pipe succeeds.
2513         While not technically required, also check each "close".
2514         * modules/select-tests (Files): Add tests/macros.h.
2515
2516         test-symlinkat: remove declaration of unused local
2517         * tests/test-symlinkat.c (main): Remove unused local, "buf".
2518
2519         test-inttostr: avoid shadowing warnings
2520         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
2521         and use malloc rather than the stack for the same reason as
2522         mentioned in the comment justifying the other allocation.
2523
2524 2010-10-11  Bruno Haible  <bruno@clisp.org>
2525
2526         stdlib: Allow multiple gnulib generated replacements to coexist.
2527         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
2528         Reported by Sam Steingold <sds@gnu.org>.
2529
2530 2010-10-11  Jim Meyering  <meyering@redhat.com>
2531
2532         fix a documentation typo
2533         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
2534
2535 2010-10-11  Eric Blake  <eblake@redhat.com>
2536
2537         futimens: work around Solaris 11 bug
2538         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
2539         * tests/test-futimens.h (test_futimens): Enhance, rather than
2540         weaken test.
2541         * doc/posix-functions/futimens.texi (futimens): Document the bug.
2542
2543 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2544
2545         Indentation.
2546         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
2547         higher-level operators more to the left.
2548
2549 2010-10-11  Jim Meyering  <meyering@redhat.com>
2550
2551         test-futimens: avoid unwarranted test failure on Solaris 5.11
2552         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
2553         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
2554         because it tries to dereference the NULL name argument.
2555
2556 2010-10-11  Bruno Haible  <bruno@clisp.org>
2557
2558         Indentation.
2559         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
2560         indentation.
2561
2562 2010-10-11  Jim Meyering  <meyering@redhat.com>
2563
2564         spawn.in.h: make indentation consistent with parentheses
2565         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
2566         Make indentation consistent with parentheses.
2567
2568 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
2569
2570         Fix mismatched parens in previous commit
2571         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
2572         parens.
2573
2574 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2575
2576         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
2577
2578         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
2579         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
2580         * lib/malloca.c: Include "verify.h".
2581         (verify1): Remove, replacing with a verify call.
2582         * lib/relocwrapper.c (verify1): Likewise.
2583         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
2584         Likewise.
2585         * modules/malloca (Depends-on): Add 'verify'.
2586         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
2587         * modules/vasnprintf (Depends-on): Add 'verify'.
2588         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2589         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2590         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2591         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2592         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2593         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2594         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2595
2596         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
2597
2598         Formerly the style was sometimes 2*X - 1, because the C standard
2599         was wrongly thought to disallow ?: in integral constant expressions.
2600         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
2601         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
2602         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2603         * lib/stdint.in.h (_verify_intmax_size): Likewise.
2604         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
2605         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
2606         verify that time_t cannot be floating.
2607
2608 2010-10-08  Eric Blake  <eblake@redhat.com>
2609
2610         time: enforce recent POSIX ruling that time_t is integral
2611         * lib/time.in.h (__time_t_must_be_integral): Detect any
2612         problematic systems, allowing the rest of gnulib to assume POSIX.
2613
2614 2010-10-08  Jim Meyering  <meyering@redhat.com>
2615
2616         fdopendir: fix a bug on systems lacking openat and /proc support
2617         OpenBSD 4.7 is one such system.  The most noticeable effect was
2618         failure of any application making nontrivial use of fts: rm, du,
2619         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
2620           ./rm: traversal failed: `a': Bad file descriptor
2621         Debugging that, you see that even though FD 6 was closed just
2622         prior to the opendir call in fd_clone_opendir, its resulting
2623         dir->dd_fd was 8, rather than the expected value of 6:
2624
2625         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
2626         93                close (fd);
2627         (gdb) n
2628         94                dir = fd_clone_opendir (dupfd);
2629         (gdb) n
2630         95                saved_errno = errno;
2631         (gdb) p dir->dd_fd
2632         $11 = 8
2633
2634         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
2635         The problem is that on OpenBSD, fd_clone_opendir has to resort
2636         to using the old-style save/restore CWD mechanism, due to its
2637         lack of openat/proc support, and *that* would steal the FD (6)
2638         that opendir was supposed to use.
2639
2640         The fix is to squirrel away the desired FD so that save_cwd uses a
2641         different one, and then free the dest FD right before calling opendir.
2642         That guarantees opendir will use the required file descriptor.
2643
2644         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
2645
2646 2010-10-08  Bruno Haible  <bruno@clisp.org>
2647
2648         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
2649         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
2650
2651 2010-10-08  Bruno Haible  <bruno@clisp.org>
2652
2653         nanosleep: Make replacement POSIX compliant.
2654         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
2655         is out of range.
2656         Reported by Jim Meyering.
2657
2658 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2659
2660         bootstrap: add hook for altering gnulib.mk, for Bison
2661         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
2662         the Bison bootstrapping process can rewrite file names and variables
2663         in this file before later parts of 'bootstrap' use the file.
2664         Bison wants to include lib/gnulib.mk from the top-level makefile,
2665         so it needs the file names in this file to be relative to the top
2666         level, not relative to lib; plus it needs variable names to be
2667         rewritten.
2668         (slurp): Use the new function.
2669
2670         bootstrap: reformat for readability
2671         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
2672
2673 2010-10-08  Eric Blake  <eblake@redhat.com>
2674
2675         docs: update cygwin progress
2676         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
2677         1.7.7.
2678         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
2679         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
2680         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
2681         * doc/posix-functions/carg.texi (carg): Likewise.
2682         * doc/posix-functions/cargf.texi (cargf): Likewise.
2683         * doc/posix-functions/casin.texi (casin): Likewise.
2684         * doc/posix-functions/casinf.texi (casinf): Likewise.
2685         * doc/posix-functions/casinh.texi (casinh): Likewise.
2686         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
2687         * doc/posix-functions/catan.texi (catan): Likewise.
2688         * doc/posix-functions/catanf.texi (catanf): Likewise.
2689         * doc/posix-functions/catanh.texi (catanh): Likewise.
2690         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
2691         * doc/posix-functions/ccos.texi (ccos): Likewise.
2692         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
2693         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
2694         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
2695         * doc/posix-functions/cexp.texi (cexp): Likewise.
2696         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
2697         * doc/posix-functions/cimag.texi (cimag): Likewise.
2698         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
2699         * doc/posix-functions/clog.texi (clog): Likewise.
2700         * doc/posix-functions/clogf.texi (clogf): Likewise.
2701         * doc/posix-functions/conj.texi (conj): Likewise.
2702         * doc/posix-functions/conjf.texi (conjf): Likewise.
2703         * doc/posix-functions/cpow.texi (cpow): Likewise.
2704         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
2705         * doc/posix-functions/cproj.texi (cproj): Likewise.
2706         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
2707         * doc/posix-functions/creal.texi (creal): Likewise.
2708         * doc/posix-functions/crealf.texi (crealf): Likewise.
2709         * doc/posix-functions/csin.texi (csin): Likewise.
2710         * doc/posix-functions/csinf.texi (csinf): Likewise.
2711         * doc/posix-functions/csinh.texi (csinh): Likewise.
2712         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
2713         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
2714         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
2715         * doc/posix-functions/ctan.texi (ctan): Likewise.
2716         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
2717         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
2718         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
2719         * doc/posix-headers/complex.texi (complex.h): Likewise.
2720
2721 2010-10-07  Jim Meyering  <meyering@redhat.com>
2722
2723         parse-datetime: avoid compilation failure on OpenBSD 4.7
2724         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
2725         This works around a compilation failure on OpenBSD 4.7:
2726         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
2727
2728 2010-10-07  Eric Blake  <eblake@redhat.com>
2729
2730         docs: update cygwin progress
2731         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
2732         1.7.6.
2733         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2734         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
2735         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
2736         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
2737         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
2738         Likewise.
2739         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
2740         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
2741         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
2742         Likewise.
2743         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
2744         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
2745         Likewise.
2746         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
2747         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
2748         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
2749         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
2750         Likewise.
2751         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
2752         Likewise.
2753         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
2754
2755         docs: update parse-datetime history
2756         * doc/parse-datetime.texi (Authors of parse_datetime): Better
2757         documentation of this function's history and alternatives.
2758
2759         cygwin: use more robust version check
2760         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
2761         exclude an eventual cygwin 1.9.1.
2762         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2763         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2764         (gl_FUNC_STRCASESTR): Likewise.
2765         Reported by Bruno Haible.
2766
2767 2010-10-06  Bruno Haible  <bruno@clisp.org>
2768
2769         string, sys_select: Avoid #including large headers unless necessary.
2770         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
2771         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
2772         OSF/1, BeOS, Haiku.
2773         Reported by Jim Meyering.
2774
2775 2010-10-05  Eric Blake  <eblake@redhat.com>
2776
2777         memmem, strstr, strcasestr: fix bug with long periodic needle
2778         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
2779         periodic needle having false positive.
2780         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
2781         and cygwin 1.7.7.
2782         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
2783         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2784         (gl_FUNC_STRCASESTR): Likewise.
2785         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2786         * tests/test-memmem.c (main): Expose the bug.
2787         * tests/test-strcasestr.c (main): Likewise.
2788         * tests/test-strstr.c (main): Likewise.
2789         * tests/test-c-strcasestr.c (main): Likewise.
2790         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
2791         * doc/posix-functions/strstr.texi (strstr): Likewise.
2792         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2793         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
2794
2795 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2796
2797         parse-datetime: do some more renaming
2798         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
2799         parse_datetime, not get_date.  Mention the renaming.
2800         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
2801         in comments.
2802         * m4/bison.m4: Likewise.
2803
2804 2010-10-05  Eric Blake  <eblake@redhat.com>
2805
2806         parse-datetime: better name than get_date
2807         * NEWS: Reword the deprecation notice.
2808         * modules/get_date: Rename to modules/parse-datetime.
2809         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
2810         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
2811         * lib/get_date.y: Rename to lib/parse-datetime.y.
2812         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
2813         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
2814         * doc/getdate.texi: Provide fallback wrapper.
2815         * lib/getdate.h: Move guts, and wrap...
2816         * lib/parse-datetime.h: ...new file.
2817         * lib/parse-datetime.y (get_date): Rename...
2818         (parse_datetime): ...to this.
2819         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
2820         (gl_PARSE_DATETIME): ...to this.
2821         * doc/posix-functions/getdate.texi (get_date): Provide fallback
2822         documentation.
2823         * modules/getdate (Files): Provide fallback docs and header.
2824         (Notice, Depends-on): Update references.
2825         * tests/test-parse-datetime.c: Likewise.
2826         * DEPENDENCIES: Likewise.
2827         * MODULES.html.sh (Date and time <time.h>): Likewise.
2828         * doc/parse-datetime.texi (Date input formats)
2829         (Authors of parse_datetime): Likewise.
2830         * modules/parse-datetime (Files, configure.ac, Makefile.am)
2831         (Include): Likewise.
2832         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
2833         * gnulib-tool: Likewise.
2834         * m4/bison.m4 (gl_BISON): Likewise.
2835         Suggested by Bruno Haible.
2836
2837 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2838
2839         more ports to Solaris tr, which needs [] around ranges
2840         * gnulib-tool: Solaris tr needs [] around ranges.
2841         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2842         * tests/test-pipe-filter-gi1.c (main): Likewise.
2843         * tests/test-pipe-filter-ii1.c (main): Likewise.
2844
2845 2010-10-05  Eric Blake  <eblake@redhat.com>
2846
2847         bootstrap: fix Solaris regression
2848         * build-aux/bootstrap (check_versions): Solaris tr still needs []
2849         around ranges.
2850         Reported by Pádraig Brady.
2851
2852         bootstrap: work with pkg-config
2853         * build-aux/bootstrap (check_versions): Also transliterate - in
2854         prerequisite name.
2855         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
2856         prerequisites that were already found, to avoid confusion.
2857         Reported by Justin Clift.
2858
2859         faccessat: remove unused wrappers
2860         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
2861         presence of these wrappers dragged in -lgen on Solaris.
2862         Reported by Clemens Brogi; fix suggested by Paul Eggert.
2863
2864 2010-10-05  Jim Meyering  <meyering@redhat.com>
2865
2866         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
2867         * Makefile (sc_pragma_columns): New syntax-check rule.
2868
2869 2010-10-04  Bruno Haible  <bruno@clisp.org>
2870
2871         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
2872         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
2873         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
2874         Reported by Bruce Korb and Eric Blake.
2875
2876 2010-10-04  Bruno Haible  <bruno@clisp.org>
2877
2878         threadlib: Make option --with-libpth-prefix work.
2879         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
2880         use $LIBPTH, not just -lpth.
2881
2882 2010-10-04  Bruno Haible  <bruno@clisp.org>
2883
2884         Avoid line length limitation from HP NonStop system header files.
2885         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
2886         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
2887         * lib/ctype.in.h: Likewise.
2888         * lib/dirent.in.h: Likewise.
2889         * lib/errno.in.h: Likewise.
2890         * lib/fcntl.in.h: Likewise.
2891         * lib/float.in.h: Likewise.
2892         * lib/getopt.in.h: Likewise.
2893         * lib/iconv.in.h: Likewise.
2894         * lib/inttypes.in.h: Likewise.
2895         * lib/langinfo.in.h: Likewise.
2896         * lib/locale.in.h: Likewise.
2897         * lib/math.in.h: Likewise.
2898         * lib/netdb.in.h: Likewise.
2899         * lib/netinet_in.in.h: Likewise.
2900         * lib/poll.in.h: Likewise.
2901         * lib/pthread.in.h: Likewise.
2902         * lib/pty.in.h: Likewise.
2903         * lib/sched.in.h: Likewise.
2904         * lib/se-selinux.in.h: Likewise.
2905         * lib/search.in.h: Likewise.
2906         * lib/signal.in.h: Likewise.
2907         * lib/spawn.in.h: Likewise.
2908         * lib/stdarg.in.h: Likewise.
2909         * lib/stddef.in.h: Likewise.
2910         * lib/stdint.in.h: Likewise.
2911         * lib/stdio.in.h: Likewise.
2912         * lib/stdlib.in.h: Likewise.
2913         * lib/string.in.h: Likewise.
2914         * lib/strings.in.h: Likewise.
2915         * lib/sys_file.in.h: Likewise.
2916         * lib/sys_ioctl.in.h: Likewise.
2917         * lib/sys_select.in.h: Likewise.
2918         * lib/sys_socket.in.h: Likewise.
2919         * lib/sys_stat.in.h: Likewise.
2920         * lib/sys_time.in.h: Likewise.
2921         * lib/sys_times.in.h: Likewise.
2922         * lib/sys_utsname.in.h: Likewise.
2923         * lib/sys_wait.in.h: Likewise.
2924         * lib/sysexits.in.h: Likewise.
2925         * lib/termios.in.h: Likewise.
2926         * lib/time.in.h: Likewise.
2927         * lib/unistd.in.h: Likewise.
2928         * lib/wchar.in.h: Likewise.
2929         * lib/wctype.in.h: Likewise.
2930         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
2931         * modules/ctype (Makefile.am): Likewise.
2932         * modules/dirent (Makefile.am): Likewise.
2933         * modules/errno (Makefile.am): Likewise.
2934         * modules/fcntl-h (Makefile.am): Likewise.
2935         * modules/float (Makefile.am): Likewise.
2936         * modules/getopt-posix (Makefile.am): Likewise.
2937         * modules/iconv-h (Makefile.am): Likewise.
2938         * modules/inttypes (Makefile.am): Likewise.
2939         * modules/langinfo (Makefile.am): Likewise.
2940         * modules/locale (Makefile.am): Likewise.
2941         * modules/math (Makefile.am): Likewise.
2942         * modules/netdb (Makefile.am): Likewise.
2943         * modules/netinet_in (Makefile.am): Likewise.
2944         * modules/poll-h (Makefile.am): Likewise.
2945         * modules/pthread (Makefile.am): Likewise.
2946         * modules/pty (Makefile.am): Likewise.
2947         * modules/sched (Makefile.am): Likewise.
2948         * modules/search (Makefile.am): Likewise.
2949         * modules/selinux-h (Makefile.am): Likewise.
2950         * modules/signal (Makefile.am): Likewise.
2951         * modules/spawn (Makefile.am): Likewise.
2952         * modules/stdarg (Makefile.am): Likewise.
2953         * modules/stddef (Makefile.am): Likewise.
2954         * modules/stdint (Makefile.am): Likewise.
2955         * modules/stdio (Makefile.am): Likewise.
2956         * modules/stdlib (Makefile.am): Likewise.
2957         * modules/string (Makefile.am): Likewise.
2958         * modules/strings (Makefile.am): Likewise.
2959         * modules/sys_file (Makefile.am): Likewise.
2960         * modules/sys_ioctl (Makefile.am): Likewise.
2961         * modules/sys_select (Makefile.am): Likewise.
2962         * modules/sys_socket (Makefile.am): Likewise.
2963         * modules/sys_stat (Makefile.am): Likewise.
2964         * modules/sys_time (Makefile.am): Likewise.
2965         * modules/sys_times (Makefile.am): Likewise.
2966         * modules/sys_utsname (Makefile.am): Likewise.
2967         * modules/sys_wait (Makefile.am): Likewise.
2968         * modules/sysexits (Makefile.am): Likewise.
2969         * modules/termios (Makefile.am): Likewise.
2970         * modules/time (Makefile.am): Likewise.
2971         * modules/unistd (Makefile.am): Likewise.
2972         * modules/wchar (Makefile.am): Likewise.
2973         * modules/wctype (Makefile.am): Likewise.
2974
2975 2010-10-04  Bruno Haible  <bruno@clisp.org>
2976
2977         read-file tests: Avoid a test failure on NonStop Kernel.
2978         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
2979         a regular file.
2980         Reported by Joachim Schmitz <schmitz@hp.com>.
2981
2982 2010-10-03  Bruno Haible  <bruno@clisp.org>
2983
2984         gnulib-tool: Fixes for --create-testdir with --libtool.
2985         * gnulib-tool (func_get_automake_snippet): Don't augment
2986         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
2987         an executable.
2988         (func_create_testdir): Handle module 'alloca' like func_import.
2989         Reported by Bruce Korb <bruce.korb@gmail.com>.
2990
2991 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2992
2993         Avoid some lines longer than 80 characters.
2994         * lib/stdint.in.h: Break long comment lines.
2995         * lib/math.in.h: Likewise.
2996         (_GL_NUM_UINT_WORDS): New macro, for readability.
2997         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
2998         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
2999         * lib/stdlib.in.h: Likewise.
3000         * lib/spawn.in.h: Likewise.
3001         * lib/sys_socket.in.h: Update an URL.
3002         * lib/sys_stat.in.h: Break long line.
3003
3004 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
3005
3006         Improve pmccabe2html.
3007         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
3008         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
3009         when the sources change. Remove the line in the HTML about "Used
3010         ranges" (which implied that there might be other unused ranges),
3011         rename "Resume" to "Summary" (easier to understand for more users).
3012         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
3013         styles, and some unnecessary blank lines.
3014
3015 2010-10-03  Bruno Haible  <bruno@clisp.org>
3016             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3017
3018         acl: Add support for ACLs on NonStop Kernel.
3019         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
3020         Check whether the function aclsort() exists.
3021         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
3022         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
3023         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3024         (acl_nontrivial [HAVE_ACLSORT]: New function.
3025         (file_has_acl): Implement for NonStop Kernel.
3026         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3027         (qset_acl): Implement for NonStop Kernel.
3028         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
3029         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
3030         (main): Implement for NonStop Kernel.
3031         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
3032         Kernel. Handle this flavor.
3033         * tests/test-set-mode-acl.sh: Likewise.
3034         * tests/test-copy-acl.sh: Likewise.
3035         * tests/test-copy-file.sh: Likewise.
3036
3037 2010-10-03  Bruno Haible  <bruno@clisp.org>
3038
3039         Info about ACLs on NonStop Kernel.
3040         * doc/acl-resources.txt: Add info about NonStop Kernel.
3041         References by Joachim Schmitz <schmitz@hp.com>.
3042
3043 2010-10-02  Bruno Haible  <bruno@clisp.org>
3044
3045         Define missing EDQUOT on NonStop Kernel.
3046         * lib/errno.in.h (EDQUOT): Assign a value if missing.
3047         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
3048         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
3049         missing.
3050         * doc/posix-headers/errno.texi: Mention the NSK bug.
3051         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
3052         Reported by Joachim Schmitz <schmitz@hp.com>.
3053
3054 2010-10-02  Bruno Haible  <bruno@clisp.org>
3055
3056         Update doc for POSIX:2008.
3057         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
3058         Update URL of POSIX specification.
3059
3060 2010-10-02  Bruno Haible  <bruno@clisp.org>
3061
3062         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
3063         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
3064         from gnulib, not from Automake.
3065
3066 2010-10-02  Bruno Haible  <bruno@clisp.org>
3067
3068         New module 'system-posix'.
3069         * modules/system-posix: New file.
3070         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
3071         module is present.
3072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
3073         GNULIB_SYSTEM_POSIX.
3074         * modules/stdlib (Depends-on): Remove sys_wait.
3075         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
3076         * doc/posix-functions/system.texi: Mention the new module.
3077         * doc/posix-headers/stdlib.texi: Likewise.
3078         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
3079         define test_sys_wait_macros to a no-op.
3080         Reported by Sam Steingold <sds@gnu.org>.
3081
3082 2010-09-30  Bruno Haible  <bruno@clisp.org>
3083
3084         More renaming from 'getdate' to 'get_date'.
3085         * doc/get_date.texi: Renamed from doc/getdate.texi.
3086         * modules/get_date (Files): Update.
3087         * MODULES.html.sh (Date and time <time.h>): Update.
3088         * DEPENDENCIES: Update.
3089         * gnulib-tool: Update comment.
3090         * m4/bison.m4 (gl_BISON): Likewise.
3091         * m4/get_date.m4 (gl_GET_DATE): Likewise.
3092
3093 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
3094
3095         bootstrap: support ACLOCAL_FLAGS during aclocal
3096         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
3097         can add additional -I dir for third-party .m4 files.
3098
3099 2010-09-30  Eric Blake  <eblake@redhat.com>
3100
3101         bootstrap: use glibtoolize on MacOS
3102         * build-aux/bootstrap (check_versions): Convert libtool into
3103         libtoolize.
3104         (tool search): Move libtool check earlier, and look for
3105         glibtoolize for MacOS.
3106         (gnulib_tool_options): Auto-add --libtool when appropriate.
3107         Reported by Justin Clift.
3108
3109         poll: fix typo that broke test on MacOS
3110         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
3111         Reported by Justin Clift.
3112
3113         getdate: rename to get_date
3114         Note: getdate.h is not renamed, to minimize client impact.
3115         * modules/getdate: Mark obsolete.  Move old contents...
3116         * modules/get_date: ...to new module name.
3117         * modules/getdate-tests: Move...
3118         * modules/get_date-tests: ...here.
3119         * m4/getdate.m4: Move...
3120         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
3121         * lib/getdate.y: Move...
3122         * lib/get_date.y: ...here.
3123         * tests/test-getdate.c: Move...
3124         * tests/test-get_date.c: ...here.
3125         * doc/posix-functions/getdate.texi (getdate): Update name.
3126         * NEWS: Mention the change.
3127
3128 2010-09-29  Bruno Haible  <bruno@clisp.org>
3129
3130         Separate the module 'waitpid' from the module 'sys_wait'.
3131         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
3132         present.
3133         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
3134         gl_MODULE_INDICATOR_FOR_TESTS.
3135         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
3136         * modules/sys_wait (Depends-on): Remove waitpid.
3137         (Makefile.am): Substitute GNULIB_WAITPID.
3138         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
3139         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
3140         signature only if the 'waitpid' module is present.
3141         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
3142         * NEWS: Mention the change.
3143         * modules/grantpt (Depends-on): Add waitpid.
3144         * modules/wait-process (Depends-on): Likewise.
3145
3146 2010-09-29  Bruno Haible  <bruno@clisp.org>
3147
3148         More tests for module 'sys_wait'.
3149         * modules/sys_wait-c++-tests: New file.
3150         * tests/test-sys_wait-c++.cc: New file.
3151         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
3152         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3153
3154 2010-09-29  Bruno Haible  <bruno@clisp.org>
3155
3156         New module 'waitpid'.
3157         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
3158         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
3159         Don't include <process.h>.
3160         (waitpid): Declare only, using modern idiom.
3161         * m4/waitpid.m4: New file.
3162         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
3163         * modules/waitpid: New file.
3164         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
3165         (Makefile.am): Update.
3166         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3167
3168 2010-09-28  Bruno Haible  <bruno@clisp.org>
3169
3170         poll: Assume ANSI C.
3171         * lib/poll.c (poll): Use an ANSI C declaration.
3172
3173 2010-09-28  Bruno Haible  <bruno@clisp.org>
3174
3175         poll-h: Create poll.h on all platforms.
3176         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
3177         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
3178         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
3179         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
3180         (gl_REPLACE_POLL_H): Don't set POLL_H.
3181         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
3182         * modules/poll-h (Depends-on): Add include_next.
3183         (Makefile.am): Create poll.h unconditionally. Substitute also
3184         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
3185
3186 2010-09-28  Bruno Haible  <bruno@clisp.org>
3187
3188         Tests for module 'poll-h'.
3189         * modules/poll-h-c++-tests: New file.
3190         * tests/test-poll-h-c++.cc: New file.
3191
3192         Tests for module 'poll-h'.
3193         * modules/poll-h-tests: New file.
3194         * tests/test-poll-h.c: New file.
3195
3196 2010-09-28  Bruno Haible  <bruno@clisp.org>
3197
3198         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
3199         * modules/poll-h (Depends-on): Add 'extensions'.
3200
3201 2010-09-28  Bruno Haible  <bruno@clisp.org>
3202
3203         New module 'poll-h'.
3204         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
3205         (poll): Use modern idiom.
3206         * modules/poll-h: New file.
3207         * modules/poll (Files): Remove lib/poll.in.h.
3208         (Depends-on): Add poll-h.
3209         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
3210         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
3211         * m4/poll_h.m4: New file.
3212         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
3213         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
3214         and invoke gl_REPLACE_POLL_H.
3215         * lib/poll.c: Use common idiom.
3216         * tests/test-poll.c: Likewise.
3217         * doc/posix-headers/poll.texi: Mention the poll-h module.
3218         Suggested by Eric Blake.
3219
3220 2010-09-26  Bruno Haible  <bruno@clisp.org>
3221
3222         sys_wait: Implement WSTOPSIG.
3223         * lib/sys_wait.in.h (WSTOPSIG): New macro.
3224         Reported by Simon Josefsson.
3225
3226 2010-09-26  Simon Josefsson  <simon@josefsson.org>
3227
3228         stdlib, sys_wait: Avoid compilation error on mingw.
3229         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
3230
3231 2010-09-26  Bruno Haible  <bruno@clisp.org>
3232
3233         stdlib tests: Avoid code duplication.
3234         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
3235         * modules/sys_wait-tests (Files): Likewise.
3236         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
3237         * tests/test-stdlib.c: Include test-sys_wait.h.
3238         (main): Invoke test_sys_wait_macros.
3239         * tests/test-sys_wait.c: Include test-sys_wait.h.
3240         (main): Invoke test_sys_wait_macros.
3241
3242 2010-09-25  Simon Josefsson  <simon@josefsson.org>
3243
3244         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
3245         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
3246         sure Windows sockets are working before calling getaddrinfo.
3247         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
3248         * doc/gnulib.texi (Windows sockets): Fix typo.
3249
3250 2010-09-25  Bruno Haible  <bruno@clisp.org>
3251
3252         Tests for module 'regex-quote'.
3253         * modules/regex-quote-tests: New file.
3254         * tests/test-regex-quote.c: New file.
3255
3256         New module 'regex-quote'.
3257         * lib/regex-quote.h: New file.
3258         * lib/regex-quote.c: New file.
3259         * modules/regex-quote: New file.
3260         Suggested by Reuben Thomas <rrt@sc3d.org>.
3261
3262 2010-09-24  Bruno Haible  <bruno@clisp.org>
3263
3264         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
3265         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
3266
3267 2010-09-23  Bruno Haible  <bruno@clisp.org>
3268
3269         setenv: Relax license.
3270         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
3271         Blake.
3272         Requested by Eric Blake.
3273
3274 2010-09-22  Bruno Haible  <bruno@clisp.org>
3275
3276         termios: Relax license.
3277         * modules/termios (License): Change to LGPLv2+.
3278         Requested by Eric Blake.
3279
3280 2010-09-22  Bruno Haible  <bruno@clisp.org>
3281
3282         threadlib: Allow the package to change the default to 'no'.
3283         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
3284         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
3285         Reported by Paul Eggert.
3286
3287 2010-09-22  Pádraig Brady  <P@draigbrady.com>
3288             Bruno Haible  <bruno@clisp.org>
3289
3290         Fix endless loop in mbmemcasecoll.
3291         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
3292         byte.
3293         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
3294
3295 2010-09-22  Bruno Haible  <bruno@clisp.org>
3296
3297         Tests for module 'memcoll'.
3298         * modules/memcoll-tests: New file.
3299         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
3300
3301         memcoll, xmemcoll: Clarify size vs. length.
3302         * modules/memcoll.c (memcoll0): Clarify specification.
3303         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
3304         passed to collate_error.
3305
3306 2010-09-22  Bruno Haible  <bruno@clisp.org>
3307
3308         Tests for module 'memcasecmp'.
3309         * modules/memcasecmp-tests: New file.
3310         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
3311
3312 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3313
3314         * lib/pthread.in.h: Add split double-inclusion guard, and include
3315         system <pthread.h> if there is one.  Use @@-style as in other
3316         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
3317         pthread.h doesn't.
3318         (pthread_mutexattr_destroy, pthread_mutexattr_init):
3319         (pthread_mutexattr_settype, pthread_mutex_trylock):
3320         New static inline functions, if there's no system <pthread.h>.
3321         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
3322         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
3323         Approximate with mutexes if the system lacks spinlocks, as in
3324         MacOS.
3325         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
3326         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
3327         @@-style.  Check for spinlocks separately.
3328         (gl_PTHREAD_DEFAULTS): New macro.
3329         * modules/pthread: Redo to use a more typical style for in.h files.
3330
3331 2010-09-21  Eric Blake  <eblake@redhat.com>
3332
3333         net_if: enhance tests
3334         * tests/test-net_if.c (main): Move signature checks earlier.
3335         Print failures to stderr.
3336         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
3337         Document the bug that we do not yet fix.
3338
3339 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
3340
3341         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
3342         about gnulib, not GSS.
3343
3344 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
3345
3346         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
3347         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
3348         for Emacs.
3349         * build-aux/pmccabe2html: Make Makefile.am example code more
3350         cut-and-paste friendly.
3351
3352 2010-09-21  Simon Josefsson  <simon@josefsson.org>
3353
3354         * tests/test-net_if.c: New file.
3355         * modules/net_if-tests: New file.
3356
3357 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3358
3359         pthread: add pthread_spin_destroy
3360         * lib/pthread.in.h (pthread_spin_destroy): New function.
3361
3362 2010-09-19  Bruno Haible  <bruno@clisp.org>
3363
3364         gnulib-tool: Fix --help output.
3365         * gnulib-tool (func_usage): Fix help message.
3366         Reported by Reuben Thomas <rrt@sc3d.org>.
3367
3368 2010-09-18  Jim Meyering  <meyering@redhat.com>
3369
3370         maint.mk: avoid unexpanded \n in two diagnostics
3371         * top/maint.mk (sc_prohibit_always_true_header_tests):
3372         Don't use a literal \n in a halt=... assignment.  It would not be
3373         expanded, and the two \n bytes would appear in the diagnostic output
3374         rather than the desired newline.  Use halt=$$(printf ... instead.
3375         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3376
3377 2010-09-18  Bruno Haible  <bruno@clisp.org>
3378
3379         netinet_in: Doc tweak.
3380         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
3381         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3382
3383 2010-09-18  Jim Meyering  <meyering@redhat.com>
3384
3385         init.sh: correct an outdated comment
3386         * tests/init.sh (create_exe_shims_):  s/function/alias/
3387
3388         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
3389         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
3390         a file named "*.exe" is removed between the glob expansion and the
3391         processing of that oddly named file.
3392
3393 2010-09-17  Eric Blake  <eblake@redhat.com>
3394
3395         mirbsd: add some more support
3396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
3397         in BSD family.
3398         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
3399         devices as OpenBSD.
3400         * m4/host-os.m4 (mirbsd): Add MirBSD.
3401
3402         tests: fix unportable assumption on sys/wait.h
3403         * tests/test-sys_wait.c (main): Relax test.
3404         * tests/test-stdlib.c (main): Likewise.
3405
3406         init.sh: accomodate directory with no .exes
3407         * tests/init.sh: Accomodate directory containing only scripts.
3408
3409         tests: avoid compiler warning
3410         * tests/test-stdlib.c (main): Use the variable.
3411
3412         fdutimens, fdutimensat: update signature, again
3413         * lib/utimens.h (gl_futimens): Delete, and move signature...
3414         (fdutimens): ...here.
3415         (fdutimensat): Rearrange signature.
3416         (lutimensat): Rename variable for clarity.
3417         * lib/fdutimensat.c (fdutimensat): Update signature.
3418         * lib/utimens.c (fdutimens): Likewise.
3419         (gl_futimens): Delete.
3420         (utimens, lutimens): Update callers.
3421         * lib/futimens.c (futimens): Likewise.
3422         * tests/test-fdutimensat.c: Likewise.
3423         * tests/test-utimens.c: Likewise.
3424         * tests/test-futimens.h: Update comment.
3425         * NEWS: Mention this.
3426         Suggested by Paul Eggert.
3427
3428 2010-09-17  Bruno Haible  <bruno@clisp.org>
3429
3430         Take over the maintenance of some older macros from Autoconf.
3431         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
3432         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
3433         GNU Autoconf.
3434         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
3435         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
3436
3437 2010-09-17  Eric Blake  <eblake@redhat.com>
3438
3439         fdutimensat: drop atflag validation
3440         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
3441         with valid fd, to close a race scenario where futimens is
3442         unsupported and FILE was replaced by a symlink.
3443         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
3444         accordingly.
3445         Suggested by Paul Eggert.
3446
3447 2010-09-16  Bruno Haible  <bruno@clisp.org>
3448
3449         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
3450         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
3451
3452 2010-09-16  Bruno Haible  <bruno@clisp.org>
3453
3454         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
3455         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
3456         login_tty exists.
3457         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3458
3459 2010-09-16  Bruno Haible  <bruno@clisp.org>
3460
3461         login_tty: Make the replacement code work on BSD systems.
3462         * lib/login_tty.c: Include <sys/ioctl.h>.
3463         (login_tty): Use ioctl TIOCSCTTY when available.
3464         * modules/login_tty (Depends-on): Add sys_ioctl.
3465         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3466
3467 2010-09-16  Bruno Haible  <bruno@clisp.org>
3468
3469         login_tty: Stricter unit test.
3470         * modules/login_tty-tests (Depends-on): Add tcgetsid.
3471         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
3472         and tcgetsid() after login_tty.
3473         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3474
3475 2010-09-16  Bruno Haible  <bruno@clisp.org>
3476
3477         New module 'tcgetsid'.
3478         * lib/tcgetsid.c: New file.
3479         * m4/tcgetsid.m4: New file.
3480         * modules/tcgetsid: New file.
3481         * modules/termios (Depends-on): Add c++defs, warn-on-use.
3482         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
3483         GNULIB_TCGETSID, HAVE_TCGETSID.
3484         * lib/termios.in.h: Include <sys/types.h>.
3485         (tcgetsid): New declaration.
3486         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
3487         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
3488         * doc/posix-functions/tcgetsid.texi: Mention the new module.
3489         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
3490
3491 2010-09-16  Bruno Haible  <bruno@clisp.org>
3492
3493         Tests for module 'termios'.
3494         * modules/termios-c++-tests: New file.
3495         * modules/termios-tests: New file.
3496         * tests/test-termios-c++.cc: New file.
3497         * tests/test-termios.c: New file.
3498
3499         New module 'termios'.
3500         * modules/termios: New file.
3501         * lib/termios.in.h: New file.
3502         * m4/termios_h.m4: New file.
3503         * doc/posix-headers/termios.texi: Mention the new module.
3504
3505 2010-09-16  Eric Blake  <eblake@redhat.com>
3506
3507         fdutimensat: add an atflag parameter
3508         * lib/fdutimensat.c (fdutimensat): Add new parameter.
3509         * lib/utimens.h (fdutimensat): Update prototype.
3510         * tests/test-fdutimensat.c: Adjust test to match.
3511         * NEWS: Document the change.
3512         Suggested by Paul Eggert.
3513
3514 2010-09-16  Bruno Haible  <bruno@clisp.org>
3515
3516         Fix typos in comments.
3517         * lib/striconveh.h: Fix typo in comment.
3518         * lib/login_tty.c (login_tty): Likewise.
3519
3520 2010-09-15  Bruno Haible  <bruno@clisp.org>
3521
3522         stdlib: clarify MirBSD WEXITSTATUS bug
3523         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
3524         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
3525
3526 2010-09-15  Eric Blake  <eblake@redhat.com>
3527
3528         stdlib: work around MirBSD WEXITSTATUS bug
3529         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
3530         * modules/stdlib (Depends-on): Add sys_wait.
3531         * tests/test-sys_wait.c (main): Enhance test.
3532         * tests/test-stdlib.c (main): Likewise.
3533         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
3534
3535         docs: mention MacOS issue with WEXITSTATUS(constant)
3536         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
3537         issue.
3538         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
3539
3540         strnlen: add tests
3541         * modules/strnlen-tests: New file.
3542         * tests/test-strnlen.c: Likewise.
3543
3544 2010-09-14  Bruno Haible  <bruno@clisp.org>
3545
3546         unistr/base: Avoid link errors when module 'libunistring' is also used.
3547         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
3548         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
3549         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
3550         Declare also when HAVE_LIBUNISTRING is set.
3551         Reported by Pádraig Brady <P@draigbrady.com>.
3552
3553 2010-09-14  Eric Blake  <eblake@redhat.com>
3554
3555         test-rawmemchr: make more robust
3556         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
3557         (Depends-on, configure.ac): Add needed prerequisites to use it.
3558         * modules/memchr-tests (Files, Depends-on, configure.ac):
3559         Likewise, to avoid implicit reliance on memchr module prereqs.
3560         * tests/test-memchr.c (main): Ensure proper masking.
3561         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
3562         reads.
3563
3564         memchr: detect glibc Alpha bug
3565         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
3566         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
3567         Alpha.
3568         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
3569         * tests/test-memchr.c (main): Enhance test.
3570         Reported by Nelson H. F. Beebe.
3571
3572 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3573
3574         fts, getcwd, glob: audit for dirfd returning -1
3575         * lib/fts.c (opendir): Remove #define; no longer used.
3576         (opendirat): New arg PDIR_FD.  All callers changed.
3577         (fts_build, _opendir2): Use new opendirat to avoid the need for
3578         dirfd, or for checking whether dirfd returns a negative value.
3579         Don't use opendir; always use openat followed by fdopendir.
3580         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
3581         it.
3582         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
3583         returns -1 here.
3584         * modules/fts (Depends-on): Remove dirfd.
3585         * modules/getcwd (Depends-on): Likewise.
3586
3587 2010-09-13  Eric Blake  <eblake@redhat.com>
3588
3589         float: fix broken MirBSD header
3590         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
3591         * doc/posix-headers/float.texi (float.h): Document it.
3592
3593 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3594
3595         fts: use O_NOFOLLOW to avoid race condition when opening a directory
3596         * lib/fts.c (opendirat): New arg extra_flags.
3597         (__opendir2): Use it to avoid following symlinks when opening
3598         a directory, if symlinks are not supposed to be followed.  See
3599         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
3600
3601         fdopendir: preserve argument fd before returning
3602         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
3603         (fdopendir_with_dup, fd_clone_opendir): New static functions.
3604         (fdopendir): Use them, arranging for FD to be open to the same
3605         directory that it was when it started.  (It might be temporarily
3606         closed while fdopendir is running, so this not thread- or
3607         signal-safe.)  Be careful to do the right thing even when file
3608         descriptors are scarce and dup fails with errno == EMFILE.  See
3609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
3610
3611 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
3612
3613         regex: Pass the system regex if its only problem is 32-bit regoff_t.
3614         * NEWS: Document change.
3615         * m4/regex.m4: Disable test for regoff_t size.
3616
3617 2010-09-13  Jim Meyering  <meyering@redhat.com>
3618
3619         fts: don't operate on an invalid file descriptor after failed dup
3620         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
3621         negative file descriptor.
3622
3623 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3624
3625         savedir: add streamsavedir, deprecate fdsavedir
3626         * NEWS: Mention deprecation of fdsavedir.
3627         * lib/savedir.c (streamsavedir): New extern function, whose name
3628         ends in "savedir" to be consistent with the others.  This differs
3629         from savedirstream in that it doesn't close its argument.  The
3630         next version of GNU tar will use this instead of fdsavedir, to
3631         avoid some race conditions and conserve file descriptors.
3632         (savedirstream): Reimplement as a wrapper around streamsavedir.
3633         (fdsavedir): Add a comment deprecating this function.  As far as
3634         I know, only GNU tar used it, and GNU tar doesn't need it any more.
3635         * lib/savedir.h (streamsavedir): New decl.
3636         (fdsavedir): Add a comment deprecating this.
3637
3638 2010-09-10  Bruno Haible  <bruno@clisp.org>
3639
3640         langinfo: Fix last commit.
3641         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
3642         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
3643         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3644
3645 2010-09-10  Bruno Haible  <bruno@clisp.org>
3646
3647         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
3648         * lib/progreloc.c (O_EXEC): Define fallback.
3649
3650 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3651
3652         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
3653         * NEWS: Document recent changes to fcntl-h.
3654         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
3655         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
3656         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
3657         Similarly for O_SEARCH; this last was already true, but not documented.
3658         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
3659         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
3660         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
3661         Likewise.
3662         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
3663         is zero, not whether it is defined.
3664         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
3665         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
3666         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
3667
3668 2010-09-10  Bruno Haible  <bruno@clisp.org>
3669
3670         langinfo, nl_langinfo: Fix for IRIX 5.3.
3671         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
3672         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
3673         HAVE_LANGINFO_YESEXPR.
3674         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
3675         HAVE_LANGINFO_YESEXPR.
3676         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
3677         HAVE_LANGINFO_T_FMT_AMPM is 0.
3678         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
3679         HAVE_LANGINFO_YESEXPR is 0.
3680         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
3681         NOEXPR.
3682         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
3683         * doc/posix-functions/nl_langinfo.texi: Likewise.
3684         Reported by Eric Blake.
3685
3686 2010-09-10  Bruno Haible  <bruno@clisp.org>
3687
3688         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
3689         * doc/glibc-functions/login_tty.texi: Mention the include file problem
3690         on FreeBSD 8.0 and OpenBSD 4.6.
3691         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
3692         * m4/pty_h.m4 (gl_PTY_H): Likewise.
3693         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
3694         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
3695         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
3696         ac_includes_default.
3697         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3698
3699 2010-09-09  Eric Blake  <eblake@redhat.com>
3700
3701         strsignal: work around NetBSD bug
3702         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
3703         * lib/string.in.h (includes): Likewise.
3704         * doc/posix-functions/strsignal.texi (strsignal): Document the
3705         bug.
3706         Reported by Nelson H. F. Beebe.
3707
3708         gnulib-tool: work with NetBSD /bin/sh
3709         * gnulib-tool (func_cache_var, func_cache_lookup_module)
3710         (func_get_description, func_get_comment, func_get_status)
3711         (func_get_notice, func_get_applicability, func_get_filelist)
3712         (func_get_dependencies, func_get_autoconf_early_snippet)
3713         (func_get_autoconf_snippet, func_get_automake_snippet)
3714         (func_get_include_directive, func_get_link_directive)
3715         (func_get_license, func_get_maintainer, func_import): Avoid
3716         shell syntax errors from parsing syntax extensions.
3717
3718 2010-09-09  Bruno Haible  <bruno@clisp.org>
3719
3720         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3721         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
3722         a reliable way to determine whether the 'alias' command works.
3723
3724 2010-09-08  Jim Meyering  <meyering@redhat.com>
3725
3726         init.sh: penalize a set-x-impaired shell; don't disqualify it
3727         * tests/init.sh: Too many shells corrupt application stderr when
3728         you set -x, so we can't afford to disqualify them, since at least
3729         on Irix-6.5, that would disqualify all bourne shells.
3730         Instead, use a two-pass approach.
3731         On the first pass, try to find a shell that meets the stricter
3732         condition that set -x does not corrupt stderr.
3733         If no shell meets the stricter condition, retest each candidate
3734         shell, but without that extra condition.  Finally, when
3735         VERBOSE=yes is requested and set -x might cause trouble, simply
3736         issue a warning and refrain from enabling debug output.
3737
3738 2010-09-08  Eric Blake  <eblake@redhat.com>
3739
3740         unsetenv: fix OpenBSD bug
3741         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
3742         * doc/posix-functions/unsetenv.texi (unsetenv): Update
3743         documentation.
3744         Reported by Jim Meyering.
3745
3746         strtod: work around IRIX 6.5 bug
3747         * lib/strtod.c (strtod): Reparse number on shorter string if
3748         exponent parse was invalid.
3749         * tests/test-strtod.c (main): Add check for "0x1p 2".
3750         Reported by Tom G. Christensen.
3751
3752         getopt: optimize previous patch
3753         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
3754         empty variable.  Speed up awk script.
3755         Reported by Paolo Bonzini.
3756
3757 2010-09-08  Jim Meyering  <meyering@redhat.com>
3758
3759         test.sh: disqualify shells for which set -x corrupts stderr
3760         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
3761         and OpenBSD 4.7.  They make it so with "set -x", environment settings
3762         appear in stderr output.  For example, this command:
3763             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
3764         prints "P=1" on those two systems:
3765
3766 2010-09-08  Bruno Haible  <bruno@clisp.org>
3767
3768         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3769         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
3770         commands, because some shells ignore redirections when there is an
3771         error in the command lookup.
3772         Reported by Eric Blake.
3773
3774 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
3775
3776         * lib/regex.h: Fix a mention of `regex_compile' (should be
3777         `re_compile_pattern').
3778         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
3779         (re_set_registers): Correct name of parameter in comment.
3780
3781         * doc/regex.texi: Add documentation for missing syntax flags.
3782         Remove commented-out documentation of defunct syntax option
3783         RE_NO_EMPTY_ALTS.
3784         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
3785         Add documentation of re_set_registers.
3786         Document trick to re-use a pattern buffer by setting fastmap manually.
3787         Update documentation of struct re_pattern_buffer per public members.
3788         Uncomment documentation of equivalence class operators and
3789         collating symbol operators, since they are now implemented,
3790         Explain leftmost-longest matching in relation to alternatives.
3791         Tidy documentation of substring matching.
3792         Remove POSIX documentation, which is done better in
3793         glibc, and refer the reader there. Keep BSD API documentation, as
3794         that is not readily available elsewhere.
3795
3796 2010-09-07  Eric Blake  <eblake@redhat.com>
3797
3798         getopt: handle POSIXLY_CORRECT set but not exported
3799         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
3800         export state of POSIXLY_CORRECT, due to bash set -o posix.
3801         Reported by Dustin J. Mitchell.
3802
3803 2010-09-05  Bruno Haible  <bruno@clisp.org>
3804
3805         gnulib-tool: Highlight the changed options.
3806         * gnulib-tool (func_usage): Display the --import, --add-import,
3807         --remove-import explanations in bold font.
3808
3809 2010-09-06  Karl Berry  <karl@gnu.org>
3810
3811         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
3812
3813 2010-09-05  Bruno Haible  <bruno@clisp.org>
3814
3815         uniwidth/width: Update comment.
3816         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
3817         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
3818
3819 2010-09-05  Bruno Haible  <bruno@clisp.org>
3820
3821         isinf, isnan: Relax license.
3822         * modules/isinf (License): Change from GPL to LGPL, with consent from
3823         Ben Pfaff.
3824         * modules/isnan (License): Likewise.
3825         Requested by Ludovic Courtès.
3826
3827 2010-09-04  Bruno Haible  <bruno@clisp.org>
3828
3829         gnulib-tool: Help migration from --import to --add-import or --update.
3830         * gnulib-tool: Emit a verbose error message when --import is used
3831         without any module name.
3832
3833 2010-09-04  Bruno Haible  <bruno@clisp.org>
3834
3835         Update doc about gnulib-tool.
3836         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
3837         'gnulib-tool --update' in more detail.
3838         Reported by Eric Blake.
3839
3840 2010-09-04  Bruno Haible  <bruno@clisp.org>
3841
3842         gnulib-tool: Change --import. New options --add/remove-import.
3843         * gnulib-tool: New options --add-import, --remove-import.
3844         (func_usage): Document them.
3845         (have_associative): Define always.
3846         (func_import): In import mode, don't merge the specified settings with
3847         the cached settings. Implement remove-import mode.
3848         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
3849         Explain when to use them versus --import.
3850         (Simple update): Use --add-import instead of --import.
3851         * NEWS: Mention the change.
3852
3853 2010-09-04  Bruno Haible  <bruno@clisp.org>
3854
3855         * doc/gnulib-tool.texi (Initial import): Update paragraph about
3856         separate gnulib.mk.
3857
3858 2010-09-04  Bruno Haible  <bruno@clisp.org>
3859
3860         gnulib-tool: Don't talk about CVS any more.
3861         * gnulib-tool (func_usage, func_import): Write "version control"
3862         instead of CVS.
3863
3864 2010-09-04  Jim Meyering  <meyering@redhat.com>
3865
3866         maint.mk: avoid obscure sc_copyright_check failure in coreutils
3867         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
3868         false positives (whose names may be ill-chosen) when searching
3869         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
3870         would cause a false-positive.
3871
3872         avoid coreutils "make distcheck" failure
3873         Coreutils tests with an absolute build directory name that contains
3874         a space.  Not quoting this directory name caused a failure.
3875         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
3876         * tests/test-vc-list-files-cvs.sh: Likewise.
3877
3878 2010-09-04  Bruno Haible  <bruno@clisp.org>
3879
3880         gnulib-tool: Avoid error when run in a package without Makefile.am.
3881         * gnulib-tool: When collecting the m4dirs in a package that does not
3882         have a Makefile.am, eliminate those directories that contain no
3883         gnulib-cache.m4. Fix expression that counts these directories.
3884
3885 2010-09-04  Bruno Haible  <bruno@clisp.org>
3886
3887         update-copyright test: Improve output when perl is missing or too old.
3888         * tests/test-update-copyright.sh: Move test of Perl version down after
3889         the test whether Perl exists. Provide an explanation relating Perl's
3890         error message to Automake's SKIP: message.
3891
3892 2010-09-04  Bruno Haible  <bruno@clisp.org>
3893
3894         Don't augment PATH in TESTS_ENVIRONMENT.
3895         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
3896         set abs_aux_dir instead of augmenting PATH.
3897         * modules/vc-list-files-tests (Makefile.am): Likewise.
3898         * tests/test-update-copyright.sh: Augment PATH here.
3899         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
3900         path_prepend_.
3901         * tests/test-vc-list-files-git.sh: Likewise.
3902
3903 2010-09-04  Jim Meyering  <meyering@redhat.com>
3904
3905         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
3906         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
3907
3908 2010-09-04  Bruno Haible  <bruno@clisp.org>
3909
3910         strdup: Fix compilation error in C++ mode.
3911         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
3912         the macro.
3913
3914 2010-09-04  Bruno Haible  <bruno@clisp.org>
3915
3916         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
3917         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
3918         macro into a function.
3919         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3920
3921 2010-09-04  Bruno Haible  <bruno@clisp.org>
3922
3923         Set PATH_SEPARATOR the same way autoconf does.
3924         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
3925         the value of PATH_SEPARATOR the same way autoconf-generated configure
3926         scripts do.
3927         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
3928         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3929
3930 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3931
3932         Set PATH_SEPARATOR the same way autoconf does.
3933         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
3934         the same way autoconf-generated configure scripts do.
3935         * posix-modules: Likewise.
3936
3937 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3938
3939         hash: fix safe_hasher const typo
3940         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
3941         const; otherwise, there is a type error later.
3942
3943 2010-09-02  Jim Meyering  <meyering@redhat.com>
3944
3945         test-update-copyright.sh: require perl 5.8.0
3946         * tests/test-update-copyright.sh: Require 5.8.0,
3947         which Tom G. Christensen has confirmed is adequate,
3948         while 5.6.1 is not.
3949
3950 2010-09-02  Eric Blake  <eblake@redhat.com>
3951
3952         tests: init.sh improvements for re-exec'ing with zsh
3953         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
3954         -vx through shell re-exec.
3955         Reported by Tom G. Christensen.
3956
3957         wctype: fix typo in previous commit
3958         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
3959         Reported by Ludovic Courtès.
3960
3961 2010-09-02  Jim Meyering  <meyering@redhat.com>
3962
3963         test-update-copyright.sh: skip test if Perl is too old
3964         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
3965         Reported by Tom G. Christensen.
3966
3967 2010-09-02  Bruno Haible  <bruno@clisp.org>
3968
3969         wctype: Avoid compilation error on IRIX 6.5.30.
3970         * lib/wctype.in.h (iswblank): Declare with a replacement if
3971         REPLACE_ISWBLANK is set.
3972         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
3973         declared. Set REPLACE_ISWBLANK.
3974         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
3975         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
3976         * doc/posix-headers/wctype.texi: Likewise.
3977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3978
3979 2010-09-01  Bruno Haible  <bruno@clisp.org>
3980
3981         New module 'socketlib'.
3982         * modules/socketlib: New file.
3983         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
3984         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
3985         * modules/sockets (Depends-on): Add socketlib.
3986         Suggested by Sam Steingold <sds@gnu.org>.
3987
3988 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3989
3990         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
3991
3992         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
3993         when one needs search access to a directory but not read access.
3994         On systems where it is available, it works in some cases where
3995         O_RDONLY does not, namely on directories that are searchable but
3996         not readable, and which need only to be searchable.  If O_SEARCH
3997         is not available, fall back to the traditional method of using
3998         O_RDONLY.
3999
4000         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
4001         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
4002         when opening a directory that needs only to be searchable.
4003         * lib/chdir-safer.c (chdir_no_follow): Likewise.
4004         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
4005         * lib/openat-proc.c (openat_proc_name): Likewise.
4006         * lib/openat.c (openat_needs_fchdir): Likewise.
4007         * lib/save-cwd.c (save_cwd): Likewise.
4008         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
4009
4010 2010-08-28  Bruno Haible  <bruno@clisp.org>
4011
4012         New module 'host-cpu-c-abi'.
4013         * modules/host-cpu-c-abi: New file.
4014         * m4/host-cpu-c-abi.m4: New file, based on part of
4015         clisp/src/m4/general.m4.
4016         Requested by Sam Steingold <sds@gnu.org>.
4017
4018 2010-08-31  Eric Blake  <eblake@redhat.com>
4019         and Jim Meyering  <meyering@redhat.com>
4020
4021         hash: factor, and guard against misbehaving hasher function
4022         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
4023         of table->hasher's return value.  Also protect against a hash value
4024         so large that adding it to table->bucket results in a NULL pointer.
4025         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
4026         Use it in place of open-coded check-and-abort.
4027
4028 2010-08-30  Bruno Haible  <bruno@clisp.org>
4029
4030         hash: silence spurious clang warning
4031         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
4032         Reported by Eric Blake.
4033
4034 2010-08-30  Eric Blake  <eblake@redhat.com>
4035
4036         strstr, memmem, strcasestr: avoid leaked shell message
4037         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
4038         FreeBSD.
4039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4040         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4041
4042         tests: silence clang warning
4043         * tests/test-malloca.c (do_allocation): Avoid dead store.
4044
4045 2010-08-29  Bruno Haible  <bruno@clisp.org>
4046
4047         gettext: Fix recent mistake.
4048         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
4049
4050 2010-08-29  Bruno Haible  <bruno@clisp.org>
4051
4052         selinux-h: Offer a --without-selinux option.
4053         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
4054         --without-selinux was specified, skip all tests and define
4055         HAVE_SELINUX_SELINUX_H to 0.
4056         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
4057         set LIB_SELINUX to empty.
4058         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
4059         gl_LIBSELINUX. If --without-selinux was specified, replace
4060         selinux/context.h.
4061         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
4062
4063 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4064             Bruno Haible  <bruno@clisp.org>
4065
4066         Make the module 'realloc-gnu' work again on AIX and OSF/1.
4067         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
4068         of HAVE_REALLOC.
4069         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
4070         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
4071         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
4072         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
4073
4074 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4075             Bruno Haible  <bruno@clisp.org>
4076
4077         Make the module 'calloc-gnu' work again on AIX and OSF/1.
4078         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
4079         HAVE_CALLOC.
4080         * lib/xmalloc.c: Update accordingly.
4081         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
4082         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
4083         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
4084
4085 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4086             Bruno Haible  <bruno@clisp.org>
4087
4088         Make the module 'malloc-gnu' work again on AIX and OSF/1.
4089         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
4090         HAVE_MALLOC.
4091         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
4092         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
4093         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
4094
4095 2010-08-29  Bruno Haible  <bruno@clisp.org>
4096
4097         Update modules list.
4098         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
4099         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
4100         (String handling <string.h>): Add astrxfrm.
4101         (File system functions): Add readlinkat.
4102
4103 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4104
4105         Tests for module 'realloc-gnu'.
4106         * modules/realloc-gnu-tests: New file.
4107         * tests/test-realloc-gnu.c: New file.
4108
4109         Tests for module 'calloc-gnu'.
4110         * modules/calloc-gnu-tests: New file.
4111         * tests/test-calloc-gnu.c: New file.
4112
4113         Tests for module 'malloc-gnu'.
4114         * modules/malloc-gnu-tests: New file.
4115         * tests/test-malloc-gnu.c: New file.
4116
4117 2010-08-28  Bruno Haible  <bruno@clisp.org>
4118
4119         Rename module 'realloc' -> 'realloc-gnu'.
4120         * modules/realloc-gnu: New file, copied from modules/realloc.
4121         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
4122         obsolete.
4123         * modules/mgetgroups (Depends-on): Update.
4124         * doc/posix-functions/realloc.texi: Update.
4125         * NEWS: Mention the change.
4126
4127         Rename module 'calloc' -> 'calloc-gnu'.
4128         * modules/calloc-gnu: New file, copied from modules/calloc.
4129         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
4130         obsolete.
4131         * doc/posix-functions/calloc.texi: Update.
4132         * NEWS: Mention the change.
4133
4134         Rename module 'malloc' -> 'malloc-gnu'.
4135         * modules/malloc-gnu: New file, copied from modules/malloc.
4136         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
4137         obsolete.
4138         * modules/argp (Depends-on): Update.
4139         * modules/regex (Depends-on): Update.
4140         * doc/posix-functions/malloc.texi: Update.
4141         * NEWS: Mention the change.
4142
4143 2010-08-28  Eric Blake  <eblake@redhat.com>
4144
4145         pread, pwrite: add missing dependency
4146         * modules/pread (Depends-on): Add extensions.
4147         * modules/pwrite (Depends-on): Likewise.
4148
4149 2010-08-28  Bruno Haible  <bruno@clisp.org>
4150
4151         unistr/u*-strchr: Fix tests dependencies.
4152         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
4153         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
4154         Reported by Ian Beckwith <ianb@erislabs.net>.
4155
4156 2010-08-28  Bruno Haible  <bruno@clisp.org>
4157
4158         read-file: Don't occupy too much unused memory.
4159         * lib/read-file.c (fread_file): Shrink the buffer at the end.
4160
4161 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
4162             Eric Blake  <eblake@redhat.com>
4163             Bruno Haible  <bruno@clisp.org>
4164
4165         read-file: Avoid memory reallocations with regular files.
4166         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
4167         (fread_file): With regular files, use the remaining length as the
4168         initial buffer size.  Check against overflow.
4169         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
4170         sys_stat.
4171
4172 2010-08-28  Bruno Haible  <bruno@clisp.org>
4173
4174         ftello: Relax license.
4175         * modules/ftello (License): Relax to LGPLv2+.
4176         Reported by Eric Blake.
4177
4178 2010-08-28  Bruno Haible  <bruno@clisp.org>
4179
4180         Avoid relocwrapper link errors due to gnulib replacement functions.
4181         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
4182         function.
4183         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4184
4185 2010-08-28  Bruno Haible  <bruno@clisp.org>
4186
4187         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
4188         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
4189         defined.
4190         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
4191         Suggested by Eric Blake.
4192
4193 2010-08-28  Bruno Haible  <bruno@clisp.org>
4194
4195         sys_socket, netdb: Ensure socklen_t gets defined.
4196         * modules/sys_socket (Depends-on): Add socklen.
4197         * modules/netdb (Depends-on): Likewise.
4198         * modules/getaddrinfo (Depends-on): Remove socklen.
4199         * modules/getsockopt (Depends-on): Likewise.
4200         * modules/setsockopt (Depends-on): Likewise.
4201         * tests/test-sys_socket.c: Check that socklen_t is defined.
4202         * tests/test-netdb.c: Likewise.
4203         * m4/socklen.m4: Update comments.
4204         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4205
4206 2010-08-27  Eric Blake  <eblake@redhat.com>
4207
4208         login_tty: add missing dependency
4209         * modules/login_tty (Depends-on): Add pty.
4210
4211 2010-08-26  Eric Blake  <eblake@redhat.com>
4212
4213         lib-symbol-versions: fix m4 quoting
4214         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
4215         format for AC_LINK_IFELSE.
4216
4217         glob: fix compile test
4218         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
4219
4220         btowc: fix missing file
4221         * modules/btowc (Files): Also ship locale-fr.m4.
4222
4223         lseek: fix link test
4224         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
4225         AC_LINK_IFELSE.
4226
4227         include_next: silence autoconf 2.68 warning
4228         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
4229         AC_COMPILE_IFELSE as special.
4230         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
4231         autoconf < 2.68.
4232
4233         acl: fix compilation test
4234         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
4235         AC_COMPILE_IFELSE.
4236
4237 2010-08-26  Bruno Haible  <bruno@clisp.org>
4238
4239         Modernize AC_TRY_RUN invocations.
4240         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
4241         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
4242         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
4243         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
4244         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
4245         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
4246         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
4247         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
4248         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4249         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
4250         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
4251         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
4252         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
4253         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4254         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
4255         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
4256         gl_MBRLEN_NUL_RETVAL): Likewise.
4257         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
4258         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
4259         Likewise.
4260         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4261         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
4262         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
4263         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
4264         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
4265         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
4266         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
4267         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4268         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
4269         Likewise.
4270         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
4271         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
4272         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4273         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
4274         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4275         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4276         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4277         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
4278         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4280
4281 2010-08-26  Bruno Haible  <bruno@clisp.org>
4282
4283         Modernize AC_TRY_LINK invocations.
4284         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
4285         AC_TRY_LINK.
4286         * m4/argp.m4 (gl_ARGP): Likewise.
4287         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4288         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4289         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
4290         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
4291         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
4292         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
4293         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4294         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4295         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
4296         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
4297         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
4298         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
4299         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
4300         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4301         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
4302         * m4/hostent.m4 (gl_HOSTENT): Likewise.
4303         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
4304         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
4305         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
4306         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
4307         Likewise.
4308         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
4309         Likewise.
4310         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
4311         Likewise.
4312         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
4313         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
4314         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
4315         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4316         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4317         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
4318         * m4/servent.m4 (gl_SERVENT): Likewise.
4319         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4320         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4321         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4322         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4323         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
4324         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4325         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4326         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4327         * modules/tsearch-tests (configure.ac): Likewise.
4328
4329 2010-08-26  Bruno Haible  <bruno@clisp.org>
4330
4331         Modernize AC_TRY_COMPILE invocations.
4332         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
4333         AC_TRY_COMPILE.
4334         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
4335         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
4336         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
4337         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
4338         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
4339         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
4340         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
4341         * m4/lock.m4 (gl_LOCK): Likewise.
4342         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
4343         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4344         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
4345         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4346         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
4347         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
4348         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
4349         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
4350         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
4351         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
4352         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
4353         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
4354         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
4355         extraneous semicolon.
4356
4357 2010-08-26  Jim Meyering  <meyering@redhat.com>
4358
4359         stat-time: relax license LGPL
4360         * modules/stat-time (License): Change from GPL to LGPL,
4361         with consent from all contributors, for use in libguile.
4362         Requested by Ludovic Courtès.
4363
4364 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
4365
4366         poll: return immediately on POLLHUP.
4367         * lib/poll.c (poll): Always set timeout before wait_timeout is
4368         computed.
4369
4370 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4371
4372         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
4373         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
4374         rmdir ("dir/.//"), unlinkat.
4375
4376 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4377
4378         stdbool: avoid spurious failure with modern xlc
4379         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
4380
4381 2010-08-24  Bruno Haible  <bruno@clisp.org>
4382
4383         getloadavg: simplify code
4384         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
4385         gl_have_func. Update comments.
4386
4387 2010-08-24  Eric Blake  <eblake@redhat.com>
4388
4389         getloadavg: don't define SVR4 on cygwin
4390         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
4391         only define SVR4 when -lkvm is required.
4392         Reported by Yaakov Selkowitz.
4393
4394 2010-08-24  Bruno Haible  <bruno@clisp.org>
4395
4396         priv-set: fix comment
4397         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
4398
4399 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4400
4401         priv-set: fix comments
4402         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
4403         to match code, as suggested by David Bartley in:
4404         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
4405
4406 2010-08-23  Eric Blake  <eblake@redhat.com>
4407
4408         stdbool: avoid rejecting clang
4409         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
4410         * tests/test-stdbool.c: Enable more tests if using the system
4411         <stdbool.h> instead of the gnulib replacement.
4412         (main): Move xlc bug test to a runtime test for all compilers.
4413         Reported by Anders Kaseorg.
4414
4415         argz: fix shell quoting issue
4416         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
4417         Reported by Charles Wilson.
4418
4419 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
4420             Erik Faye-Lund <kusmabite@gmail.com>
4421
4422         poll, select: handle ERROR_BROKEN_PIPE.
4423         * lib/poll.c (win32_compute_revents): Return POLLHUP when
4424         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
4425         * lib/select.c (win32_compute_revents): Do not mark a pipe
4426         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
4427
4428 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
4429
4430         fts: allow compilation with C++
4431         * lib/fts_.h: Specify extern "C" linkage with C++.
4432
4433 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4434
4435         Fix gnulib-tool sed script de-commentation for AIX sed.
4436         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
4437         sed.
4438
4439 2010-08-17  Eric Blake  <eblake@redhat.com>
4440
4441         test-stddef: test for (some) offsetof bugs
4442         * tests/test-stddef.c: Enhance test to ensure correct type of
4443         offsetof.
4444         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
4445         that we are not fixing at this time.
4446
4447 2010-08-15  Bruno Haible  <bruno@clisp.org>
4448
4449         stpncpy: Allow stpncpy to be defined as a macro.
4450         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
4451         if it's already correctly declared.
4452         * lib/string.in.h (stpncpy): Undefine before redefining.
4453         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
4454
4455 2010-08-14  Bruno Haible  <bruno@clisp.org>
4456
4457         Rename module 'memxfrm' to 'amemxfrm'.
4458         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
4459         (amemxfrm): Renamed from memxfrm.
4460         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
4461         (amemxfrm): Renamed from memxfrm.
4462         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
4463         * NEWS: Mention the change.
4464         * MODULES.html.sh (String handling <string.h>): Update.
4465         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
4466         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
4467         * lib/unicase/u16-casexfrm.c: Likewise.
4468         * lib/unicase/u32-casexfrm.c: Likewise.
4469         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
4470         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
4471         * lib/uninorm/u16-normxfrm.c: Likewise.
4472         * lib/uninorm/u32-normxfrm.c: Likewise.
4473         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
4474         memxfrm.
4475         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
4476         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
4477         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
4478         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
4479         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
4480         Suggested by Paul Eggert.
4481
4482 2010-08-14  Bruno Haible  <bruno@clisp.org>
4483
4484         Tests for module 'astrxfrm'.
4485         * modules/astrxfrm-tests: New file.
4486         * tests/test-astrxfrm.c: New file.
4487
4488         New module 'astrxfrm'.
4489         * lib/astrxfrm.h: New file.
4490         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
4491         * modules/astrxfrm: New file.
4492
4493 2010-08-14  Reuben Thomas <rrt@sc3d.org>
4494
4495         regex: Tweak doc.
4496         * doc/regex.texi (Overview): Don't mention regex.c.
4497         (GNU Regular Expression Compiling): Likewise.
4498         (Match-end-of-line Operator): Mention 'not_eol'.
4499
4500 2010-08-14  Brian Gough  <bjg@gnu.org>
4501             Bruno Haible  <bruno@clisp.org>
4502
4503         git-merge-changelog: add doc relating to use with bzr and hg.
4504         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
4505
4506 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
4507
4508         pthread: fix pthread.h creation for srcdir != builddir
4509         * modules/pthread (Makefile.am): Fix the rule to work also in a
4510         non-srcdir build.
4511
4512 2010-08-13  Karl Berry  <karl@gnu.org>
4513
4514         * doc/regex.texi (Predefined Syntaxes): @smallexample.
4515         * doc/posix-*/*: force line break before @url of POSIX
4516         specifications.
4517         Suggested by Werner Lemberg.
4518
4519 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4520
4521         strtod: fix const diagnostic
4522         * lib/strtod.c (strtod): Don't assign const char * to char *,
4523         as this elicits a warning from GCC when warnings are enabled.
4524
4525 2010-08-10  Pádraig Brady <P@draigbrady.com>
4526         and Eric Blake  <eblake@redhat.com>
4527
4528         copy-acl: ignore ENOTSUP on HP-UX
4529         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
4530         so that it is available for HP-UX.
4531         * lib/copy-acl.c (qcopy_acl): Use it.
4532         Reported by Patrick M. Callahan.
4533
4534 2010-08-10  Eric Blake  <eblake@redhat.com>
4535
4536         open, chown: relax license
4537         * modules/open (License): Change to LGPLv2+, with consent by all
4538         authors, for use in augeas.
4539         * modules/chown (License): Likewise.
4540         * modules/lchown (Likewise): Likewise.
4541         Requested by Adam Stokes.
4542
4543 2010-08-09  Karl Berry  <karl@gnu.org>
4544
4545         * build-aux/ar-lib: new file, import from Automake.
4546         * config/srclist.txt: autocheck for updates.
4547
4548 2010-08-09  Eric Blake  <eblake@redhat.com>
4549
4550         readlinkat: adjust client modules
4551         * modules/areadlinkat (Depends-on): Use readlinkat, not
4552         symlinkat.
4553         * modules/areadlinkat-with-size (Depends-on): Likewise.
4554
4555         mknod: be more vocal about danger of running tests as root
4556         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
4557         root, since that is just asking for problems.
4558         Suggested by Bruno Haible, based on a report by Rainer Tammer.
4559
4560         readlinkat: split into its own module
4561         * modules/symlinkat: Split readlinkat...
4562         * modules/readlinkat: ...into separate module.
4563         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
4564         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
4565         * lib/symlinkat.c (readlinkat): Move...
4566         * lib/readlinkat.c: ...into new file.
4567         * modules/symlinkat-tests: Split readlinkat test...
4568         * modules/readlinkat-tests: ...into separate module.
4569         * tests/test-symlinkat.c: Split...
4570         * tests/test-readlinkat.c: ...into new file.
4571         * NEWS: Document the split.
4572         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4573         * lib/unistd.in.h (readlinkat): Likewise.
4574         Suggested by Bruno Haible.
4575
4576 2010-08-08  Bruno Haible  <bruno@clisp.org>
4577
4578         memxfrm: Speed up.
4579         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
4580         that usually only one call to strxfrm is necessary for each string
4581         part.
4582         Reported by Paul Eggert <eggert@cs.ucla.edu>.
4583
4584 2010-08-07  Karl Berry  <karl@gnu.org>
4585
4586         * doc/posix-headers/limits.texi,
4587         * doc/posix-functions/malloc.texi,
4588         * doc/posix-functions/strsignal.texi: missing @item.
4589         * doc/ld-version-script.texi: spurious leading i.
4590         * doc/regex.texi (Interval Operators): no commas inside @var.
4591
4592 2010-08-01  Bruno Haible  <bruno@clisp.org>
4593
4594         Integrate the regex documentation.
4595         * doc/gnulib.texi: Define 'cn' index.
4596         (Regular expressions): New a chapter that includes regex.texi and
4597         regexprops-generic.texi.
4598         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
4599         syntax.
4600
4601         Whitespace cleanup.
4602         * doc/regex.texi: Remove trailing spaces.
4603
4604         Add regex documentation.
4605         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
4606         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
4607         Written by Kathy A. Hargreaves and Karl Berry.
4608
4609 2010-08-01  Bruno Haible  <bruno@clisp.org>
4610
4611         link: Update documentation.
4612         * doc/posix-functions/link.texi: Update regarding Solaris.
4613
4614 2010-07-31  Bruno Haible  <bruno@clisp.org>
4615
4616         Update modules list.
4617         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
4618         (String handling <string.h>): Add memcmp2, memxfrm.
4619         (Container data structures): Add xlist, xsublist, xoset.
4620         (Core language properties): Add alignof, unused-parameter.
4621         (Process control, Numeric conversion functions <stdlib.h>): Renamed
4622         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
4623         (Unibyte characters <ctype.h>): New section.
4624         (String handling <string.h>): New section.
4625         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
4626         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
4627         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
4628         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
4629         tan, tanh, tanl, y0, y1, yn.
4630         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
4631         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
4632         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
4633         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
4634         unlockpt, vdprintf, vdprintf-posix.
4635         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
4636         (File system functions): Add concat-filename, sys_file, sys_ioctl,
4637         xconcat-filename.
4638         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
4639         getdtablesize, pipe2, pipe2-safer.
4640         (Security): New section.
4641         (Networking functions): Add accept4.
4642         (Signal handling): Add sigpipe.
4643         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
4644         mbmemcasecoll.
4645         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
4646         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
4647         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
4648         pipe-filter-ii.
4649         (Misc): Add argp-version-etc, login_tty, parse-duration.
4650
4651 2010-07-31  Bruno Haible  <bruno@clisp.org>
4652
4653         Improve doc in MODULES.html.
4654         * modules/linkat (Description): Add the word "function".
4655         * modules/mkfifo (Description): Likewise.
4656         * modules/mknod (Description): Likewise.
4657         * modules/remove (Description): Likewise.
4658         * modules/renameat (Description): Likewise.
4659         * modules/stat (Description): Likewise.
4660         * modules/symlink (Description): Likewise.
4661         * modules/unlink (Description): Likewise.
4662
4663 2010-07-31  Bruno Haible  <bruno@clisp.org>
4664
4665         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
4666         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
4667         option --enable/disable-c++ instead of --enable/disable-cxx.
4668         * NEWS: Mention the change.
4669
4670 2010-07-31  Bruno Haible  <bruno@clisp.org>
4671
4672         readlink, areadlink: Relax test a bit.
4673         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
4674         alternative to ENOTDIR.
4675         * tests/test-areadlink.h (test_areadlink): Likewise.
4676         Reported by Rainer Tammer.
4677
4678 2010-07-31  Bruno Haible  <bruno@clisp.org>
4679
4680         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
4681         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
4682         character, perform the search using U_STRCHR.
4683         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
4684         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
4685         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
4686         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
4687         Suggested by Paolo Bonzini.
4688
4689 2010-07-31  Bruno Haible  <bruno@clisp.org>
4690
4691         unistr/u*-strstr: Fix dependencies.
4692         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
4693         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
4694         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
4695
4696 2010-07-31  Bruno Haible  <bruno@clisp.org>
4697
4698         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
4699         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
4700         the beginning of the loop.
4701         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
4702         cases in 'switch' statement.
4703
4704         unistr/u8-strchr: Fix several bugs.
4705         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
4706         the string. When not found, return NULL, not a pointer near the end.
4707
4708         More tests for unistr/u8-strchr.
4709         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
4710         that the function does not read past the first occurrence of the byte
4711         being searched.
4712         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
4713         * tests/unistr/test-u16-strchr.c (main): New function.
4714         * tests/unistr/test-u32-strchr.c (main): New function.
4715
4716 2010-07-31  Bruno Haible  <bruno@clisp.org>
4717
4718         posix-modules: Ignore backup files of documentation files.
4719         * posix-modules: grep only through files named *.texi.
4720
4721 2010-07-31  Bruno Haible  <bruno@clisp.org>
4722
4723         symlinkat: Fix documentation.
4724         * doc/posix-functions/readlinkat.texi: Fix module name.
4725
4726 2010-07-31  Bruno Haible  <bruno@clisp.org>
4727
4728         fchownat: Replace also when chown has the trailing slash bug.
4729         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
4730         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
4731         introduced on 2010-04-10.
4732         Reported by Rainer Tammer.
4733
4734 2010-07-31  Bruno Haible  <bruno@clisp.org>
4735
4736         linkat: Work around AIX 7.1 bug.
4737         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
4738         whether linkat handles trailing slash correctly. If not, replace linkat
4739         and define LINKAT_TRAILING_SLASH_BUG.
4740         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
4741         check whether (fd1,file1) points to a directory if file1 or file2 ends
4742         in a slash. Code taken from lib/link.c.
4743         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
4744         Reported by Rainer Tammer.
4745
4746 2010-07-31  Bruno Haible  <bruno@clisp.org>
4747
4748         Correctly determine whether pow is available in libc on AIX 7 with xlc.
4749         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
4750         This disables an xlc optimization that was causing wrong test results.
4751         Reported by Rainer Tammer.
4752
4753 2010-07-31  Bruno Haible  <bruno@clisp.org>
4754
4755         iconv: Work around AIX 6.1..7.1 bug.
4756         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
4757         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
4758         cross-compiling, guess no on all versions of AIX.
4759         Reported by Rainer Tammer.
4760
4761 2010-07-31  Bruno Haible  <bruno@clisp.org>
4762
4763         readlink: Relax test a bit.
4764         * tests/test-readlink.h (test_readlink): Allow different errno value
4765         when readlink is called with a file name that ends in / and refers to
4766         a file.
4767         Suggested by Eric Blake.
4768         Reported by Rainer Tammer.
4769
4770 2010-07-31  Bruno Haible  <bruno@clisp.org>
4771
4772         copysign: Does not require -lm on glibc systems.
4773         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
4774         gl_COMMON_DOUBLE_MATHFUNC.
4775         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
4776
4777 2010-07-31  Bruno Haible  <bruno@clisp.org>
4778
4779         duplocale: Work around AIX 7.1 bug.
4780         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
4781         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
4782         * lib/duplocale.c (rpl_duplocale): Update comment.
4783         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
4784         Reported by Rainer Tammer.
4785
4786 2010-07-30  Bruno Haible  <bruno@clisp.org>
4787
4788         dirfd: Avoid link error on AIX 7.1.
4789         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
4790         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
4791         exist, set REPLACE_DIRFD.
4792         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
4793         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
4794         * doc/posix-functions/dirfd.texi: Update.
4795         Reported by Rainer Tammer.
4796
4797 2010-07-30  Eric Blake  <eblake@redhat.com>
4798
4799         strtod: next round of AIX fixes
4800         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
4801         exponent.
4802         * tests/test-strtod.c (main): Enhance tests.
4803         * doc/posix-functions/strtod.texi (strtod): Document next bug.
4804         Reported by Rainer Tammer.
4805
4806         futimens: fix configure check
4807         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
4808         Reported by Bruno Haible.
4809
4810 2010-07-30  Bruno Haible  <bruno@clisp.org>
4811
4812         getline: Update regarding AIX.
4813         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
4814         Reported by Rainer Tammer.
4815
4816 2010-07-30  Bruno Haible  <bruno@clisp.org>
4817
4818         wcwidth: Drop replacement on AIX 7.
4819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
4820         AIX 7.
4821         Reported by Rainer Tammer.
4822
4823 2010-07-30  Bruno Haible  <bruno@clisp.org>
4824
4825         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
4826         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
4827         a 'char *'.
4828         Reported by Rainer Tammer.
4829
4830 2010-07-30  Bruno Haible  <bruno@clisp.org>
4831
4832         unlink: Update regarding AIX.
4833         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
4834         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
4835         Reported by Rainer Tammer.
4836
4837 2010-07-30  Bruno Haible  <bruno@clisp.org>
4838
4839         symlink: Update regarding AIX.
4840         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
4841         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
4842         Reported by Rainer Tammer.
4843
4844 2010-07-30  Bruno Haible  <bruno@clisp.org>
4845
4846         strndup: Update regarding AIX.
4847         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
4848         AIX 7.
4849         Reported by Rainer Tammer.
4850
4851 2010-07-30  Bruno Haible  <bruno@clisp.org>
4852
4853         stat: Update regarding AIX.
4854         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
4855         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
4856         Reported by Rainer Tammer.
4857
4858 2010-07-30  Bruno Haible  <bruno@clisp.org>
4859
4860         truncl: Fix autoconf test.
4861         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
4862         whether truncl works.
4863         Reported by Rainer Tammer.
4864
4865 2010-07-30  Bruno Haible  <bruno@clisp.org>
4866
4867         round: Update regarding AIX.
4868         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
4869         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
4870         Reported by Rainer Tammer.
4871
4872 2010-07-30  Bruno Haible  <bruno@clisp.org>
4873
4874         rename: Update regarding AIX.
4875         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
4876         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
4877         Reported by Rainer Tammer.
4878
4879 2010-07-30  Bruno Haible  <bruno@clisp.org>
4880
4881         printf.m4: Update regarding AIX.
4882         * m4/printf.m4: Update comments regarding AIX.
4883         Reported by Rainer Tammer.
4884
4885 2010-07-30  Bruno Haible  <bruno@clisp.org>
4886
4887         iconv: Update regarding AIX.
4888         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
4889         AIX 7.
4890         Reported by Rainer Tammer.
4891
4892 2010-07-30  Bruno Haible  <bruno@clisp.org>
4893
4894         getopt: Update regarding AIX.
4895         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
4896         no on AIX.
4897         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
4898         Reported by Rainer Tammer.
4899
4900 2010-07-30  Bruno Haible  <bruno@clisp.org>
4901
4902         ldexpl; Update regarding AIX.
4903         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
4904         on AIX 7.
4905         Reported by Rainer Tammer.
4906
4907 2010-07-30  Bruno Haible  <bruno@clisp.org>
4908
4909         frexpl: Update regarding AIX.
4910         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
4911         on AIX 7.
4912         Reported by Rainer Tammer.
4913
4914 2010-07-30  Bruno Haible  <bruno@clisp.org>
4915
4916         open, fopen: Update regarding AIX.
4917         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
4918         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
4919         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
4920         * doc/posix-functions/fopen.texi: Likewise.
4921         Reported by Rainer Tammer.
4922
4923 2010-07-30  Bruno Haible  <bruno@clisp.org>
4924
4925         chown: Update doc regarding AIX.
4926         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
4927         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
4928         Reported by Rainer Tammer.
4929
4930 2010-07-30  Eric Blake  <eblake@redhat.com>
4931
4932         strtod: fix bug in replacement function on AIX
4933         * lib/strtod.c (strtod): Special case broken "0x" parse in
4934         underlying strtod.
4935         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
4936         * doc/posix-functions/strtod.texi (strtod): Likewise.
4937         Reported by Rainer Tammer.
4938
4939 2010-07-30  Bruno Haible  <bruno@clisp.org>
4940
4941         mbrlen: Fix cross-compilation guess for AIX.
4942         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
4943         guess. Leftover from 2008-12-22.
4944
4945 2010-07-30  Bruno Haible  <bruno@clisp.org>
4946
4947         mbrtowc: Fix cross-compilation guess for AIX.
4948         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
4949         guess. Leftover from 2008-12-21.
4950
4951 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
4952
4953         init.sh: work around trap limitation of some shells
4954         * tests/init.sh (setup_): Move exit trap outside of shell function.
4955
4956 2010-07-29  Eric Blake  <eblake@redhat.com>
4957
4958         strtod: aid debugging
4959         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
4960         understanding why strtod is rejected.
4961
4962 2010-07-28  Bruno Haible  <bruno@clisp.org>
4963
4964         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
4965         * lib/unistr/u8-chr.c: Include <string.h>.
4966         * tests/unistr/test-u8-chr.c: Likewise.
4967         * tests/unistr/test-u16-chr.c: Likewise.
4968         * tests/unistr/test-u32-chr.c: Likewise.
4969         * tests/unistr/test-u8-strchr.c: Likewise.
4970         * tests/unistr/test-u16-strchr.c: Likewise.
4971         * tests/unistr/test-u32-strchr.c: Likewise.
4972         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
4973         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
4974         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
4975         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
4976
4977 2010-07-28  Bruno Haible  <bruno@clisp.org>
4978
4979         Use spaces for indentation, not tabs.
4980         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
4981
4982 2010-07-27  Bruno Haible  <bruno@clisp.org>
4983
4984         mbspcasecmp: Fix function specification.
4985         * lib/string.in.h (mbspcasecmp): Fix specification comment.
4986         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
4987         Reported by Eric Blake <eblake@redhat.com>.
4988
4989 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
4990
4991         timespec: use cast and not conditional, as truncation isn't possible
4992         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
4993         instead of a conditional.  Comment about the situation in more detail.
4994         This undoes most of the 2009-10-29 patch.
4995
4996 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
4997
4998         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
4999         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
5000         * lib/unistr/u8-strchr.c: Likewise.
5001         * modules/unistr/u8-chr: Depend on memchr.
5002
5003         unistr/u*-strchr: add tests
5004         * modules/unistr/u8-strchr-tests: New file.
5005         * modules/unistr/u16-strchr-tests: New file.
5006         * modules/unistr/u32-strchr-tests: New file.
5007         * tests/unistr/test-strchr.h: New file.
5008         * tests/unistr/test-u8-strchr.c: New file.
5009         * tests/unistr/test-u16-strchr.c: New file.
5010         * tests/unistr/test-u32-strchr.c: New file.
5011
5012         unistr/u*-chr: test multibyte sequences more
5013         * tests/unistr/test-chr.h: Do complete testing of the characters in the
5014         test vector.
5015         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
5016         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
5017         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
5018
5019         unistr/u*-chr: test multibyte sequences
5020         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
5021
5022         unistr/u*-chr: prepare for multibyte tests
5023         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
5024         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
5025         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
5026         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
5027         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
5028         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
5029
5030 2010-07-18  Bruno Haible  <bruno@clisp.org>
5031
5032         unistr/u8-strchr: Optimize non-ASCII argument case.
5033         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
5034         because the first byte often matches anyway.
5035         Reported by Pádraig Brady <P@draigbrady.com>.
5036
5037 2010-07-15  Karl Berry  <karl@gnu.org>
5038
5039         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
5040
5041 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
5042
5043         getcwd: on Solaris, work better if ancestors are inaccessible
5044         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
5045         buffer and size, try again with a large buffer.  This works better
5046         on Solaris, since its getcwd succeeds even if the path to the root
5047         is inaccessible, and this is helpful in common cases such as .zfs
5048         hidden directories.  Problem reported by J Chapman Flack in
5049         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
5050         Use system getcwd if it's declared, not merely if it's partly
5051         working; use the partly-working test only to avoid needless effort
5052         if the system getcwd fails.
5053         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
5054         comment that was already obsolete and is now even more obsolete.
5055         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
5056         now might call strdup.
5057
5058 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
5059
5060         pthread: Add enough so that coreutils/src/sort.c compiles.
5061         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
5062         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
5063         gnulib. Include <sched.h> and <time.h>, as per POSIX.
5064         Include <sys/types.h>, in case it defines pthread_t.
5065         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
5066         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
5067         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
5068         (pthread_rwlockattr_t, pthread_spinlock_t):
5069         New typedefs, if HAVE_PTHREAD_T is not defined.
5070         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
5071         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
5072         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
5073         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
5074         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
5075         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
5076         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
5077         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
5078         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
5079         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
5080         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
5081         New macros.
5082         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
5083         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
5084         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
5085         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
5086         (pthread_spin_unlock): New dummy functions.
5087         (pthread_create): Return EAGAIN; don't set errno.
5088         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
5089         require AC_C_INLINE.
5090         * modules/pthread (Depends-on): Add sched, time.
5091         (pthread.h): Use AM_V_GEN.
5092
5093 2010-07-13  Bruno Haible  <bruno@clisp.org>
5094
5095         striconveh: Don't malloc memory if the result buffer is sufficient.
5096         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
5097         buffer if its size is sufficient.
5098         Reported by Ludovic Courtès <ludo@gnu.org>.
5099
5100 2010-07-13  Bruno Haible  <bruno@clisp.org>
5101
5102         strtod: Add safety check.
5103         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
5104
5105 2010-07-12  Bruno Haible  <bruno@clisp.org>
5106
5107         Unify tests that set gl_cv_func_ldexpl_no_libm.
5108         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
5109         gl_FUNC_LDEXPL.
5110         (gl_FUNC_LDEXPL): Invoke it.
5111         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5112
5113 2010-07-12  Bruno Haible  <bruno@clisp.org>
5114
5115         Unify tests that set gl_cv_func_ldexp_no_libm.
5116         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
5117         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
5118         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
5119         (configure.ac): Simply invoke gl_FUNC_LDEXP.
5120         * modules/strtod (Files): Add m4/ldexp.m4.
5121
5122 2010-07-12  Bruno Haible  <bruno@clisp.org>
5123
5124         Unify tests that set gl_cv_func_frexpl_no_libm.
5125         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
5126         gl_FUNC_FREXPL_NO_LIBM.
5127         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
5128         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5129
5130 2010-07-12  Bruno Haible  <bruno@clisp.org>
5131
5132         Unify tests that set gl_cv_func_frexp_no_libm.
5133         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
5134         gl_FUNC_FREXP_NO_LIBM.
5135         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
5136         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
5137
5138 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
5139
5140         memcoll: clarify sizes versus lengths, document better, and tweak perf
5141         * lib/memcoll.c (strcoll_loop, memcoll0):
5142         Improve quality of descriptive comments.  Name variables
5143         consistently as to whether they are lengths (which do not include
5144         terminating null) versus sizes (which do).
5145         * lib/xmemcoll.c (xmemcoll0): Likewise.
5146         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
5147         returned when s1size == 0; this is easier to compile and saves
5148         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
5149
5150 2010-07-12  Bruno Haible  <bruno@clisp.org>
5151
5152         Tests for module '_Exit'.
5153         * modules/_Exit-tests: New file.
5154         * tests/test-_Exit.sh: New file.
5155         * tests/test-_Exit.c: New file.
5156
5157         New module '_Exit'.
5158         * lib/stdlib.in.h (__attribute__): New macro.
5159         (_Exit): New declaration.
5160         * lib/_Exit.c: New file.
5161         * m4/_Exit.m4: New file.
5162         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
5163         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
5164         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
5165         * modules/_Exit: New file.
5166         * tests/test-stdlib-c++.cc (_Exit): Check signature.
5167         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
5168
5169 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
5170
5171         strtod: make it more-accurate typically, and don't require libm
5172         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
5173         Include limits.h.  Don't include string.h.
5174         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
5175         (locale_isspace): New function, so that no casts are needed to
5176         check whether *s is a space.
5177         (ldexp): Provide an unused dummy if not available.
5178         (scale_radix_exp, parse_number, underlying_strtod): New functions.
5179         (strtod): Use them.  This implementation prefers to use the
5180         underlying strtod if available, falling back on our own code
5181         only to fix known bugs.  This is more likely to produce an
5182         accurate result.  Also, it avoids the use of libm functions.
5183         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
5184         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
5185         was absent, but it caused a test failure with coreutils.
5186         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
5187         with libm.
5188         * modules/strtod (Makefile.am, Link): libm is no longer needed.
5189         * modules/strtod-tests (Makefile.am): Likewise.
5190
5191 2010-07-11  Pádraig Brady  <P@draigBrady.com>
5192             Bruno Haible  <bruno@clisp.org>
5193
5194         unistr/u8-strchr: Optimize ASCII argument case.
5195         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
5196
5197 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5198
5199         (x)memcoll: minor tweaks
5200         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
5201         is after the type that it qualifies.
5202         (memcoll0): Likewise.
5203         * lib/memcoll.h (memcoll0): Likewise.
5204         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
5205         * lib/xmemcoll.h (xmemcoll0): Likewise.
5206         * lib/memcoll.c (memcoll0): Correct the comment.  This function
5207         differs from memcoll in that the NUL byte is part of the argument.
5208         Omit the abort-checks, as performance is a real issue here.  Plus,
5209         the checks were wrong anyway (an off-by-one error).  Omit local
5210         variable 'diff', as it's a bit clearer that way.
5211         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
5212         no longer needed.
5213
5214 2010-07-08  Chen Guo <chenguo4@yahoo.com>
5215
5216         (x)memcoll: speedup when input is known to be NUL delimited
5217         * lib/memcoll.c: Include stdlib.
5218         (memcoll0) New function.
5219         (strcoll_loop) New function, refactored for use in both memcoll
5220         and memcoll0.
5221         * lib/memcoll.h: Add prototype for memcoll0.
5222         * lib/xmemcoll.c: (xmemcoll0) New function.
5223         (collate_error) New function, refactored for use in both xmemcoll
5224         and xmemcoll0.
5225         * lib/xmemcoll.h: Add prototype for xmemcoll0.
5226         * m4/memcoll.m4: add inline invocation.
5227
5228 2010-07-06  Pádraig Brady  <P@draigBrady.com>
5229
5230         * build-aux/bootstrap: Remove any local translations
5231         from the translation project synchronization directory,
5232         so that local only translations are not distributed.
5233
5234 2010-07-04  Bruno Haible  <bruno@clisp.org>
5235
5236         fsusage: Clarify which code applies to which platforms.
5237         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
5238         platform.
5239         * lib/fsusage.c (get_fs_usage): Likewise.
5240
5241 2010-07-04  Bruno Haible  <bruno@clisp.org>
5242
5243         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
5244         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
5245         Reported by Martin Lambers <marlam@marlam.de>.
5246
5247 2010-07-04  Jim Meyering  <meyering@redhat.com>
5248
5249         hash: once again explicitly disallow insertion of NULL
5250         * lib/hash.c (hash_insert0): Reinstate just-removed test:
5251         inserting a NULL pointer cannot work with these functions.
5252         Add a comment with details.
5253         This reverts part of the 2010-07-01 commit, 5bef1a35
5254         "hash: extend module to deal with non-pointer keys".
5255
5256 2010-07-01  Bruno Haible  <bruno@clisp.org>
5257
5258         stdbool: Update doc.
5259         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
5260         Info from Christian Weisgerber <naddy@mips.inka.de>.
5261
5262 2010-07-01  Jim Meyering  <meyering@redhat.com>
5263
5264         hash: extend module to deal with non-pointer keys
5265         * lib/hash.c (hash_insert0): New interface, much like hash_insert
5266         but that allows insertion of non-pointer entries.
5267         Do not disallow an ENTRY value of NULL.
5268         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
5269         * lib/hash.h (hash_insert0): Declare.
5270
5271 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
5272
5273         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
5274         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
5275         not present (i.e. with autoconf 2.59 and when using gettextize, not
5276         gnulib), require AC_GNU_SOURCE instead.
5277
5278 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
5279
5280         idpriv-drop: Fix tests.
5281         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
5282         not to the test-idpriv-droptemp program.
5283
5284 2010-06-29  Bruno Haible  <bruno@clisp.org>
5285
5286         string: Fix syntax error with g++ 2.96.
5287         * lib/string.in.h (__pure__): Remove definition.
5288         (_GL_ATTRIBUTE_PURE): New macro.
5289         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
5290         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
5291         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5292
5293 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
5294
5295         unitypes: Fix bug introduced on 2010-05-18.
5296         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
5297
5298 2010-06-22  Eric Blake  <eblake@redhat.com>
5299
5300         memmem: slight optimization
5301         * lib/str-two-way.h (critical_factorization): Update comments.
5302         Reduce work during factorization phase.
5303         Reported by Carlos Bueno <carlos@bueno.org>.
5304
5305 2010-06-21  Bruno Haible  <bruno@clisp.org>
5306
5307         Fix HAVE_CALLOC_POSIX misnomer.
5308         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
5309         !HAVE_CALLOC_POSIX.
5310         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
5311         HAVE_CALLOC_POSIX.
5312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
5313         instead of HAVE_CALLOC_POSIX.
5314         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
5315         HAVE_CALLOC_POSIX.
5316
5317         Use modern idiom for calloc() replacement.
5318         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
5319         AC_FUNC_CALLOC.
5320         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
5321         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
5322         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
5323         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
5324         (gl_REPLACE_CALLOC): New macro.
5325
5326 2010-06-21  Bruno Haible  <bruno@clisp.org>
5327
5328         Fix HAVE_REALLOC_POSIX misnomer.
5329         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
5330         !HAVE_REALLOC_POSIX.
5331         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
5332         HAVE_REALLOC_POSIX.
5333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
5334         instead of HAVE_REALLOC_POSIX.
5335         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
5336         HAVE_REALLOC_POSIX.
5337
5338         Use modern idiom for realloc() replacement.
5339         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
5340         AC_FUNC_REALLOC.
5341         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
5342         Autoconf's AC_FUNC_REALLOC.
5343         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
5344         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
5345         (gl_REPLACE_REALLOC): New macro.
5346         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
5347
5348 2010-06-21  Bruno Haible  <bruno@clisp.org>
5349
5350         Fix HAVE_MALLOC_POSIX misnomer.
5351         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
5352         !HAVE_MALLOC_POSIX.
5353         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
5354         HAVE_MALLOC_POSIX.
5355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
5356         instead of HAVE_MALLOC_POSIX.
5357         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
5358         HAVE_MALLOC_POSIX.
5359
5360         Use modern idiom for malloc() replacement.
5361         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
5362         AC_FUNC_MALLOC.
5363         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
5364         Autoconf's AC_FUNC_MALLOC.
5365         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
5366         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
5367         (gl_REPLACE_MALLOC): New macro.
5368         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
5369
5370 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
5371
5372         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
5373         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
5374         This macro takes 3 arguments, not 4.
5375
5376 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
5377
5378         ipv6: fix detection under mingw
5379         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
5380         in6_addr.
5381
5382 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
5383
5384         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
5385         that strtod() works when cross-compiling to a glibc version known
5386         to work.
5387
5388 2010-06-15  Bruno Haible  <bruno@clisp.org>
5389
5390         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
5391
5392 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
5393
5394         select: Correct timeout.
5395         * lib/select.c (rpl_select): Compute wait_timeout correctly.
5396
5397 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5398
5399         git-version-gen: init shell var to avoid env var influence
5400         * build-aux/git-version-gen (v): Init shell var to empty.
5401
5402 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
5403
5404         priv-set: Don't assume that priv.h exists merely because getppriv does.
5405         See Jan Andersen's bug report about AIX 5L in
5406         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
5407         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
5408         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
5409         * lib/priv-set.h: Likewise.
5410         * tests/test-priv-set.c: Likewise.
5411
5412 2010-06-13  Bruno Haible  <bruno@clisp.org>
5413
5414         relocatable: Make it easier to test whether to install wrappers.
5415         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
5416         RELOCATABLE_VIA_WRAPPER.
5417
5418 2010-06-13  Bruno Haible  <bruno@clisp.org>
5419
5420         gnulib-tool: Display specified modules and dependencies differently.
5421         * gnulib-tool (func_show_module_list): New function.
5422         (func_import, func_create_testdir): Invoke it.
5423         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
5424
5425 2010-06-13  Bruno Haible  <bruno@clisp.org>
5426
5427         gnulib-tool: Align code of func_import and func_create_testdir.
5428         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
5429         specified_modules.
5430
5431 2010-06-12  Jim Meyering  <meyering@redhat.com>
5432
5433         test-inttostr: avoid spurious failure on Solaris 9
5434         * tests/test-inttostr.c (main): Skip the test when snprintf fails
5435         to accept "%ju".  Reported by Bruno Haible.
5436
5437 2010-06-11  Jim Meyering  <meyering@redhat.com>
5438
5439         test-sys_socket: mark variables as used more readably
5440         * tests/test-sys_socket.c (main): Mark otherwise unused variables
5441         as "used" explicitly via (void) statement casts.  This is more
5442         readable than using them in an artificial return expression.
5443         Suggestion from Bruno Haible.
5444
5445 2010-06-11  Bruno Haible  <bruno@clisp.org>
5446
5447         Avoid some more warnings from "gcc -Wwrite-strings".
5448         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
5449         to 'const char *'.
5450         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
5451         * tests/test-c-strcasestr.c (main): Likewise.
5452         * tests/test-mbscasestr1.c (main): Likewise.
5453         * tests/test-mbscasestr2.c (main): Likewise.
5454         * tests/test-memmem.c (main): Likewise.
5455         * tests/test-strstr.c (main): Likewise.
5456         * tests/test-strcasestr.c (main): Likewise.
5457
5458 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5459
5460         init.sh: change framework_failure_ to fail with status 99, not 1
5461         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
5462         automake's parallel-tests rule that this is an unexpected failure,
5463         even if the test is listed in XFAIL_TESTS.
5464
5465 2010-06-11  Jim Meyering  <meyering@redhat.com>
5466
5467         test-inttostr: avoid warnings about 4-6KB literal strings
5468         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
5469         Include "macros.h", for its definition of ASSERT.
5470         (CK): s/assert/ASSERT/
5471         * modules/inttostr-tests (Files): Add macros.h.
5472
5473         init.sh: don't use $ME_ or skip_ before they are defined
5474         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
5475         their first uses.  Also hoist their companions: warn_, fail_,
5476         framework_failure_, $stderr_fileno.  Prompted by a patch from
5477         Stefano Lattarini.
5478
5479         test-sys_socket: avoid set-but-not-used warnings from gcc
5480         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
5481         avoid warning about set-but-not-used variables.
5482
5483         test-xvasprintf: avoid 'const' discard warnings
5484         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
5485         "const" when assigning from literal strings.
5486         (test_xasprintf): Add "void" in function argument list to placate
5487         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
5488
5489         tests: avoid compilation warnings in argmatch and exclude tests...
5490         in packages that define ARGMATCH_DIE_DECL, like coreutils.
5491         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
5492         Since it always exits, declare with the "noreturn" attribute.
5493         * tests/test-argmatch.c: Likewise.
5494
5495         tests: avoid 'const' discard warnings in mbsstr tests
5496         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
5497         * tests/test-mbsstr2.c (main): Likewise.
5498
5499         test-verify: avoid warning from gcc's -Wmissing-declarations
5500         * tests/test-verify.c (function): Declare to be static.
5501
5502         test-inttostr.c: include <string.h> for use of strcmp
5503         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
5504
5505         test-linkat: avoid failed assertion on "other" architectures
5506         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
5507         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
5508         sparc: https://bugs.launchpad.net/bugs/591968
5509
5510 2010-06-11  Jim Meyering  <meyering@redhat.com>
5511
5512         printf.m4: avoid autoconf's "Expanded Before Required" warning
5513         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
5514         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
5515         autoconf warning.
5516
5517 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
5518
5519         Replacement header templates are now named with ".in", not "_".
5520         * doc/gnulib-intro.texi: Correct.
5521
5522 2010-06-10  Jim Meyering  <meyering@redhat.com>
5523
5524         inttostr-tests: depend on snprintf, not snprintf-posix
5525         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
5526         snprintf-posix, to avoid this aclocal failure:
5527           missing file gnulib-tests/vasnprintf.c
5528           configure.ac:45: error: expected source file, required through \
5529           AC_LIBSOURCES, not found
5530
5531 2010-06-10  Jim Meyering  <meyering@redhat.com>
5532
5533         inttostr: add a new function, inttostr, and tests
5534         The namesake function was not available.  The existence of the
5535         template file, inttostr.c makes its addition nontrivial.
5536         * lib/anytostr.c: Rename from inttostr.c.
5537         (anytostr): Rename from inttostr.
5538         * lib/inttostr.c: New file.
5539         * modules/inttostr (Files): Add anytostr.c.
5540         (Makefile.am): Set lib_SOURCES instead of ...
5541         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
5542         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
5543         * lib/offtostr.c: Likewise.
5544         * lib/uinttostr.c: Likewise.
5545         * lib/umaxtostr.c: Likewise.
5546         * modules/inttostr-tests: New file.
5547         * tests/test-inttostr.c: New file.  Test these functions.
5548
5549 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
5550             Bruno Haible  <bruno@clisp.org>
5551
5552         Add "Extending Gnulib" chapter to manual.
5553         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
5554         chapter.
5555         (Extending Gnulib): New chapter.
5556         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
5557         chapter.
5558
5559 2010-06-09  Bruno Haible  <bruno@clisp.org>
5560
5561         Avoid relocwrapper link errors due to gnulib replacement functions.
5562         * lib/areadlink.c: Use the system's malloc, realloc functions.
5563         (areadlink): Set errno to ENOMEM explicitly.
5564         * modules/areadlink (Depends-on): Remove malloc-posix.
5565         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5566
5567 2010-06-09  Bruno Haible  <bruno@clisp.org>
5568
5569         Avoid relocwrapper link errors due to gnulib replacement functions.
5570         * lib/canonicalize-lgpl.c: Use the system's malloc function.
5571         * lib/malloca.c: Likewise.
5572         * lib/relocatable.c: Likewise.
5573         * lib/progreloc.c: Use the system's malloc, sprintf functions.
5574         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
5575         * lib/setenv.c: Use the system's malloc, realloc functions.
5576         * lib/strerror.c: Use the system's sprintf function.
5577         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5578
5579 2010-06-04  Bruno Haible  <bruno@clisp.org>
5580
5581         Prefer documented low-level autoconf macro names.
5582         * m4/lib-link.m4: Use m4_translit instead of translit.
5583         * m4/environ.m4: Likewise.
5584         * m4/mathfunc.m4: Likewise.
5585         * m4/onceonly.m4: Likewise.
5586         * m4/stdint.m4: Likewise.
5587         Suggested by Eric Blake.
5588
5589 2010-06-04  Martin Lambers  <marlam@marlam.de>
5590             Bruno Haible  <bruno@clisp.org>
5591
5592         havelib: Allow library names with '+' characters.
5593         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5594         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
5595
5596 2010-06-09  Bruno Haible  <bruno@clisp.org>
5597
5598         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
5599         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
5600         realloc failed.
5601
5602 2010-06-08  Peter Simons  <simons@cryp.to>
5603
5604         maint.mk: make the news-check rule more configurable
5605         * top/maint.mk (news-check-lines-spec) New variable.
5606         (news-check): Use "sed -n 1,10p" in place of "head".
5607
5608 2010-06-07  Jim Meyering  <meyering@redhat.com>
5609
5610         do-release-commit-and-tag: fix typo in --help
5611         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
5612
5613         regex: avoid new dead-code warning with gcc-4.6.0
5614         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
5615         if-block containing a while-loop.  It's been unused for at least
5616         5 years.
5617
5618 2010-06-05  Bruno Haible  <bruno@clisp.org>
5619
5620         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
5621         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
5622
5623 2010-06-04  Bruno Haible  <bruno@clisp.org>
5624
5625         Update to GNU gettext 0.18.1.
5626         * modules/gettext (configure.ac): Require gettext infrastructure from
5627         version 0.18.1.
5628
5629 2010-06-03  Bruno Haible  <bruno@clisp.org>
5630
5631         Don't use AC_LIBOBJ with file names in subdirectories.
5632         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
5633         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
5634         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
5635         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
5636         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
5637         gl_LIBUNISTRING_LIBSOURCE.
5638         (Makefile.am): Augment lib_SOURCES here, conditionally.
5639         * NEWS: Drop requirement for Automake option 'subdir-objects'.
5640
5641 2010-06-03  Bruno Haible  <bruno@clisp.org>
5642
5643         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
5644         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
5645         expansion does not end with a newline.
5646         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
5647         unnecessary newline.
5648
5649 2010-06-03  Bruno Haible  <bruno@clisp.org>
5650
5651         Reduce dependencies.
5652         * tests/test-quotearg.h: New file, extracted from
5653         tests/test-quotearg.c.
5654         * tests/test-quotearg-simple.c: New file, extracted from
5655         tests/test-quotearg.c.
5656         * tests/test-quotearg.c: Don't include <ctype.h>.
5657         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
5658         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
5659         use_quote_double_quotes, use_quotearg_colon): Moved to
5660         tests/test-quotearg.h.
5661         (results_g, flag_results, custom_quotes, custom_results): Moved
5662         to tests/test-quotearg-simple.c.
5663         (main): Moved the part that does not depend on gettext to
5664         tests/test-quotearg-simple.c. Return 77 if the test cannot be
5665         performed.
5666         * modules/quotearg-simple: New file.
5667         * modules/quotearg-simple-tests: New file.
5668         * modules/quotearg (Depends-on): Add quotearg-simple.
5669         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
5670         (Files): Add tests/test-quotearg.h.
5671         Reported by Paolo Bonzini.
5672
5673 2010-06-03  Bruno Haible  <bruno@clisp.org>
5674
5675         Reduce dependencies.
5676         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
5677
5678 2010-06-03  Bruno Haible  <bruno@clisp.org>
5679
5680         time: Undefine more broken macros.
5681         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
5682         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
5683         Reported by Eric Blake.
5684
5685 2010-06-03  Bruno Haible  <bruno@clisp.org>
5686
5687         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
5688         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
5689         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
5690         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
5691         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
5692         Reported by Ludovic Courtès <ludo@gnu.org>.
5693
5694 2010-06-02  Eric Blake  <eblake@redhat.com>
5695
5696         time: work with mingw + pthreads-win32 library
5697         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
5698         if timespec is defined only in pthread.h.
5699         * modules/time (Makefile.am): Substitute it.
5700         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
5701         <pthread.h>, when needed.
5702         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
5703         from the library.
5704
5705 2010-05-31  Bruno Haible  <bruno@clisp.org>
5706
5707         Avoid expanding two macros in the wrong order.
5708         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
5709         gl_LIBUNISTRING if it is defined.
5710         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
5711         autoconf >= 2.64.
5712         Reported by Ludovic Courtès <ludo@gnu.org>.
5713
5714 2010-05-27  Jim Meyering  <meyering@redhat.com>
5715
5716         maint.mk: also prohibit "#undef" of always-defined symbols
5717         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
5718         Allow more than one space before the symbol name.
5719         (sc_prohibit_always-defined_macros): Use grep's -E, now that
5720         the regexp uses alternation.
5721
5722 2010-05-26  Eric Blake  <eblake@redhat.com>
5723
5724         maint.mk: avoid echo -e
5725         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
5726         Convert all uses of echo -* to printf.
5727         Reported by Matthias Bolte.
5728
5729 2010-05-25  Bruno Haible  <bruno@clisp.org>
5730
5731         Update to GNU gettext 0.18, part 2.
5732         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
5733         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
5734
5735 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5736
5737         Add missing include in test-pwrite.c.
5738         * tests/test-pwrite.c: Include string.h, for strcmp.
5739
5740 2010-05-24  Bruno Haible  <bruno@clisp.org>
5741
5742         * NEWS: Mention requirement for Automake option 'subdir-objects'.
5743
5744 2010-05-24  Bruno Haible  <bruno@clisp.org>
5745
5746         Don't use conversion with transliteration in u{8,16,32}_strcoll.
5747         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
5748         iconveh_error argument.
5749         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
5750         U_STRCONV_TO_LOCALE.
5751         * lib/unistr/u16-strcoll.c: Likewise.
5752         * lib/unistr/u32-strcoll.c: Likewise.
5753         * modules/unistr/u8-strcoll (Depends-on): Add
5754         uniconv/u8-strconv-to-enc, localcharset. Remove
5755         uniconv/u8-strconv-to-locale.
5756         (configure.ac): Bump version number.
5757         * modules/unistr/u16-strcoll (Depends-on): Add
5758         uniconv/u16-strconv-to-enc, localcharset. Remove
5759         uniconv/u16-strconv-to-locale.
5760         (configure.ac): Bump version number.
5761         * modules/unistr/u32-strcoll (Depends-on): Add
5762         uniconv/u32-strconv-to-enc, localcharset. Remove
5763         uniconv/u32-strconv-to-locale.
5764         (configure.ac): Bump version number.
5765
5766 2010-05-24  Bruno Haible  <bruno@clisp.org>
5767
5768         Avoid a test failure on NetBSD 5.0.
5769         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
5770         an iconv() bug.
5771
5772 2010-05-24  Bruno Haible  <bruno@clisp.org>
5773
5774         Adjust #include directive style.
5775         * modules/regex (Includes): Recommend to write <regex.h>.
5776
5777 2010-05-24  Bruno Haible  <bruno@clisp.org>
5778
5779         regex: Don't require alloca.
5780         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
5781         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
5782         only inside if (0).
5783
5784 2010-05-23  Jim Meyering  <meyering@redhat.com>
5785
5786         test-renameat.c: include <sys/stat.h>
5787         * tests/test-renameat.c: Include <sys/stat.h>; required for
5788         definition of S_IS* macros.
5789
5790 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
5791
5792         Update maintainer documentation for 'relocatable-prog' module.
5793         * doc/relocatable-maint.texi: Update.
5794         Comments by Bruno Haible.
5795
5796 2010-05-23  Bruno Haible  <bruno@clisp.org>
5797
5798         git-merge-changelog: Enable --split-merged-entry by default.
5799         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
5800         (usage): Don't mention this option any more.
5801         Reported by Ralf Wildenhues.
5802
5803 2010-05-23  Jim Meyering  <meyering@redhat.com>
5804
5805         test-pwrite: do not leave behind a test file named "out"
5806         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
5807         The trivial-looking use of init.sh is really necessary.
5808         It ensures that the temporary file, "out", is created in
5809         a temporary directory, and removed upon termination.
5810         * tests/test-pwrite.sh: Re-add file.
5811         * modules/pwrite-tests: Reference it.
5812
5813 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5814
5815         Fix output redirection buglet in init.sh.
5816         * tests/init.sh: Fix redirection of stderr.
5817
5818 2010-05-20  Simon Josefsson  <simon@josefsson.org>
5819
5820         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
5821
5822 2010-05-17  Simon Josefsson  <simon@josefsson.org>
5823
5824         * modules/valgrind-tests: New file.
5825         * m4/valgrind-tests.m4: New file.
5826         * doc/valgrind-tests.texi: New file.
5827         * doc/gnulib.texi (Running self-tests under valgrind): New
5828         section.
5829
5830 2010-05-19  Bruno Haible  <bruno@clisp.org>
5831
5832         Clean up dead code in recent commit.
5833         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
5834         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
5835         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
5836         Suggested by Paolo Bonzini.
5837
5838 2010-05-19  Bruno Haible  <bruno@clisp.org>
5839
5840         Avoid valgrind error reports from libunistring.
5841         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
5842         * modules/libunistring (Files): Add it.
5843         * modules/libunistring-optional (Files): Likewise.
5844
5845 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
5846             Bruno Haible  <bruno@clisp.org>
5847
5848         New module 'libunistring-optional'.
5849         * modules/libunistring-optional: New file.
5850         * m4/libunistring-base.m4: New file.
5851         * m4/libunistring-optional.m4: New file.
5852         * lib/unicase.in.h: Renamed from lib/unicase.h.
5853         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
5854         * lib/unictype.in.h: Renamed from lib/unictype.h.
5855         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
5856         * lib/uniname.in.h: Renamed from lib/uniname.h.
5857         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
5858         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
5859         * lib/unistr.in.h: Renamed from lib/unistr.h.
5860         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
5861         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
5862         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
5863         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
5864         gl_LIBUNISTRING. If the library was found, determine the installed
5865         version and set LIBUNISTRING_VERSION.
5866         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
5867         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
5868         handle a configuration option --with-included-libunistring.
5869         * modules/libunistring (Files): Add m4/absolute-header.m4.
5870         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
5871         Add m4/libunistring-base.m4.
5872         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5873         (Makefile.am): Build unicase.h from unicase.in.h.
5874         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
5875         Add m4/libunistring-base.m4.
5876         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5877         (Makefile.am): Build uniconv.h from uniconv.in.h.
5878         * modules/unictype/base (Files): Use unictype.in.h instead of
5879         unictype.h. Add m4/libunistring-base.m4.
5880         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5881         (Makefile.am): Build unictype.h from unictype.in.h.
5882         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
5883         Add m4/libunistring-base.m4.
5884         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5885         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
5886         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
5887         Add m4/libunistring-base.m4.
5888         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5889         (Makefile.am): Build uniname.h from uniname.in.h.
5890         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
5891         Add m4/libunistring-base.m4.
5892         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5893         (Makefile.am): Build uninorm.h from uninorm.in.h.
5894         * modules/unistdio/base (Files): Use unistdio.in.h instead of
5895         unistdio.h. Add m4/libunistring-base.m4.
5896         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5897         (Makefile.am): Build unistdio.h from unistdio.in.h.
5898         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
5899         Add m4/libunistring-base.m4.
5900         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5901         (Makefile.am): Build unistr.h from unistr.in.h.
5902         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
5903         Add m4/libunistring-base.m4.
5904         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5905         (Makefile.am): Build unitypes.h from unitypes.in.h.
5906         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
5907         Add m4/libunistring-base.m4.
5908         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5909         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
5910         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
5911         uniwidth.h. Add m4/libunistring-base.m4.
5912         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5913         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
5914         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
5915         instead of augmenting lib_SOURCES.
5916         * modules/unicase/empty-suffix-context: Likewise.
5917         * modules/unicase/locale-language: Likewise.
5918         * modules/unicase/tolower: Likewise.
5919         * modules/unicase/totitle: Likewise.
5920         * modules/unicase/toupper: Likewise.
5921         * modules/unicase/u8-casecmp: Likewise.
5922         * modules/unicase/u8-casecoll: Likewise.
5923         * modules/unicase/u8-casefold: Likewise.
5924         * modules/unicase/u8-casexfrm: Likewise.
5925         * modules/unicase/u8-ct-casefold: Likewise.
5926         * modules/unicase/u8-ct-tolower: Likewise.
5927         * modules/unicase/u8-ct-totitle: Likewise.
5928         * modules/unicase/u8-ct-toupper: Likewise.
5929         * modules/unicase/u8-is-cased: Likewise.
5930         * modules/unicase/u8-is-casefolded: Likewise.
5931         * modules/unicase/u8-is-lowercase: Likewise.
5932         * modules/unicase/u8-is-titlecase: Likewise.
5933         * modules/unicase/u8-is-uppercase: Likewise.
5934         * modules/unicase/u8-prefix-context: Likewise.
5935         * modules/unicase/u8-suffix-context: Likewise.
5936         * modules/unicase/u8-tolower: Likewise.
5937         * modules/unicase/u8-totitle: Likewise.
5938         * modules/unicase/u8-toupper: Likewise.
5939         * modules/unicase/u16-casecmp: Likewise.
5940         * modules/unicase/u16-casecoll: Likewise.
5941         * modules/unicase/u16-casefold: Likewise.
5942         * modules/unicase/u16-casexfrm: Likewise.
5943         * modules/unicase/u16-ct-casefold: Likewise.
5944         * modules/unicase/u16-ct-tolower: Likewise.
5945         * modules/unicase/u16-ct-totitle: Likewise.
5946         * modules/unicase/u16-ct-toupper: Likewise.
5947         * modules/unicase/u16-is-cased: Likewise.
5948         * modules/unicase/u16-is-casefolded: Likewise.
5949         * modules/unicase/u16-is-lowercase: Likewise.
5950         * modules/unicase/u16-is-titlecase: Likewise.
5951         * modules/unicase/u16-is-uppercase: Likewise.
5952         * modules/unicase/u16-prefix-context: Likewise.
5953         * modules/unicase/u16-suffix-context: Likewise.
5954         * modules/unicase/u16-tolower: Likewise.
5955         * modules/unicase/u16-totitle: Likewise.
5956         * modules/unicase/u16-toupper: Likewise.
5957         * modules/unicase/u32-casecmp: Likewise.
5958         * modules/unicase/u32-casecoll: Likewise.
5959         * modules/unicase/u32-casefold: Likewise.
5960         * modules/unicase/u32-casexfrm: Likewise.
5961         * modules/unicase/u32-ct-casefold: Likewise.
5962         * modules/unicase/u32-ct-tolower: Likewise.
5963         * modules/unicase/u32-ct-totitle: Likewise.
5964         * modules/unicase/u32-ct-toupper: Likewise.
5965         * modules/unicase/u32-is-cased: Likewise.
5966         * modules/unicase/u32-is-casefolded: Likewise.
5967         * modules/unicase/u32-is-lowercase: Likewise.
5968         * modules/unicase/u32-is-titlecase: Likewise.
5969         * modules/unicase/u32-is-uppercase: Likewise.
5970         * modules/unicase/u32-prefix-context: Likewise.
5971         * modules/unicase/u32-suffix-context: Likewise.
5972         * modules/unicase/u32-tolower: Likewise.
5973         * modules/unicase/u32-totitle: Likewise.
5974         * modules/unicase/u32-toupper: Likewise.
5975         * modules/unicase/ulc-casecmp: Likewise.
5976         * modules/unicase/ulc-casecoll: Likewise.
5977         * modules/unicase/ulc-casexfrm: Likewise.
5978         * modules/uniconv/u8-conv-from-enc: Likewise.
5979         * modules/uniconv/u8-conv-to-enc: Likewise.
5980         * modules/uniconv/u8-strconv-from-enc: Likewise.
5981         * modules/uniconv/u8-strconv-from-locale: Likewise.
5982         * modules/uniconv/u8-strconv-to-enc: Likewise.
5983         * modules/uniconv/u8-strconv-to-locale: Likewise.
5984         * modules/uniconv/u16-conv-from-enc: Likewise.
5985         * modules/uniconv/u16-conv-to-enc: Likewise.
5986         * modules/uniconv/u16-strconv-from-enc: Likewise.
5987         * modules/uniconv/u16-strconv-from-locale: Likewise.
5988         * modules/uniconv/u16-strconv-to-enc: Likewise.
5989         * modules/uniconv/u16-strconv-to-locale: Likewise.
5990         * modules/uniconv/u32-conv-from-enc: Likewise.
5991         * modules/uniconv/u32-conv-to-enc: Likewise.
5992         * modules/uniconv/u32-strconv-from-enc: Likewise.
5993         * modules/uniconv/u32-strconv-from-locale: Likewise.
5994         * modules/uniconv/u32-strconv-to-enc: Likewise.
5995         * modules/uniconv/u32-strconv-to-locale: Likewise.
5996         * modules/unictype/bidicategory-byname: Likewise.
5997         * modules/unictype/bidicategory-name: Likewise.
5998         * modules/unictype/bidicategory-of: Likewise.
5999         * modules/unictype/bidicategory-test: Likewise.
6000         * modules/unictype/block-list: Likewise.
6001         * modules/unictype/block-test: Likewise.
6002         * modules/unictype/category-C: Likewise.
6003         * modules/unictype/category-Cc: Likewise.
6004         * modules/unictype/category-Cf: Likewise.
6005         * modules/unictype/category-Cn: Likewise.
6006         * modules/unictype/category-Co: Likewise.
6007         * modules/unictype/category-Cs: Likewise.
6008         * modules/unictype/category-L: Likewise.
6009         * modules/unictype/category-Ll: Likewise.
6010         * modules/unictype/category-Lm: Likewise.
6011         * modules/unictype/category-Lo: Likewise.
6012         * modules/unictype/category-Lt: Likewise.
6013         * modules/unictype/category-Lu: Likewise.
6014         * modules/unictype/category-M: Likewise.
6015         * modules/unictype/category-Mc: Likewise.
6016         * modules/unictype/category-Me: Likewise.
6017         * modules/unictype/category-Mn: Likewise.
6018         * modules/unictype/category-N: Likewise.
6019         * modules/unictype/category-Nd: Likewise.
6020         * modules/unictype/category-Nl: Likewise.
6021         * modules/unictype/category-No: Likewise.
6022         * modules/unictype/category-P: Likewise.
6023         * modules/unictype/category-Pc: Likewise.
6024         * modules/unictype/category-Pd: Likewise.
6025         * modules/unictype/category-Pe: Likewise.
6026         * modules/unictype/category-Pf: Likewise.
6027         * modules/unictype/category-Pi: Likewise.
6028         * modules/unictype/category-Po: Likewise.
6029         * modules/unictype/category-Ps: Likewise.
6030         * modules/unictype/category-S: Likewise.
6031         * modules/unictype/category-Sc: Likewise.
6032         * modules/unictype/category-Sk: Likewise.
6033         * modules/unictype/category-Sm: Likewise.
6034         * modules/unictype/category-So: Likewise.
6035         * modules/unictype/category-Z: Likewise.
6036         * modules/unictype/category-Zl: Likewise.
6037         * modules/unictype/category-Zp: Likewise.
6038         * modules/unictype/category-Zs: Likewise.
6039         * modules/unictype/category-and: Likewise.
6040         * modules/unictype/category-and-not: Likewise.
6041         * modules/unictype/category-byname: Likewise.
6042         * modules/unictype/category-name: Likewise.
6043         * modules/unictype/category-none: Likewise.
6044         * modules/unictype/category-of: Likewise.
6045         * modules/unictype/category-or: Likewise.
6046         * modules/unictype/category-test: Likewise.
6047         * modules/unictype/combining-class: Likewise.
6048         * modules/unictype/ctype-alnum: Likewise.
6049         * modules/unictype/ctype-alpha: Likewise.
6050         * modules/unictype/ctype-blank: Likewise.
6051         * modules/unictype/ctype-cntrl: Likewise.
6052         * modules/unictype/ctype-digit: Likewise.
6053         * modules/unictype/ctype-graph: Likewise.
6054         * modules/unictype/ctype-lower: Likewise.
6055         * modules/unictype/ctype-print: Likewise.
6056         * modules/unictype/ctype-punct: Likewise.
6057         * modules/unictype/ctype-space: Likewise.
6058         * modules/unictype/ctype-upper: Likewise.
6059         * modules/unictype/ctype-xdigit: Likewise.
6060         * modules/unictype/decimal-digit: Likewise.
6061         * modules/unictype/digit: Likewise.
6062         * modules/unictype/mirror: Likewise.
6063         * modules/unictype/numeric: Likewise.
6064         * modules/unictype/property-alphabetic: Likewise.
6065         * modules/unictype/property-ascii-hex-digit: Likewise.
6066         * modules/unictype/property-bidi-arabic-digit: Likewise.
6067         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
6068         * modules/unictype/property-bidi-block-separator: Likewise.
6069         * modules/unictype/property-bidi-boundary-neutral: Likewise.
6070         * modules/unictype/property-bidi-common-separator: Likewise.
6071         * modules/unictype/property-bidi-control: Likewise.
6072         * modules/unictype/property-bidi-embedding-or-override: Likewise.
6073         * modules/unictype/property-bidi-eur-num-separator: Likewise.
6074         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
6075         * modules/unictype/property-bidi-european-digit: Likewise.
6076         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
6077         * modules/unictype/property-bidi-left-to-right: Likewise.
6078         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
6079         * modules/unictype/property-bidi-other-neutral: Likewise.
6080         * modules/unictype/property-bidi-pdf: Likewise.
6081         * modules/unictype/property-bidi-segment-separator: Likewise.
6082         * modules/unictype/property-bidi-whitespace: Likewise.
6083         * modules/unictype/property-byname: Likewise.
6084         * modules/unictype/property-combining: Likewise.
6085         * modules/unictype/property-composite: Likewise.
6086         * modules/unictype/property-currency-symbol: Likewise.
6087         * modules/unictype/property-dash: Likewise.
6088         * modules/unictype/property-decimal-digit: Likewise.
6089         * modules/unictype/property-default-ignorable-code-point: Likewise.
6090         * modules/unictype/property-deprecated: Likewise.
6091         * modules/unictype/property-diacritic: Likewise.
6092         * modules/unictype/property-extender: Likewise.
6093         * modules/unictype/property-format-control: Likewise.
6094         * modules/unictype/property-grapheme-base: Likewise.
6095         * modules/unictype/property-grapheme-extend: Likewise.
6096         * modules/unictype/property-grapheme-link: Likewise.
6097         * modules/unictype/property-hex-digit: Likewise.
6098         * modules/unictype/property-hyphen: Likewise.
6099         * modules/unictype/property-id-continue: Likewise.
6100         * modules/unictype/property-id-start: Likewise.
6101         * modules/unictype/property-ideographic: Likewise.
6102         * modules/unictype/property-ids-binary-operator: Likewise.
6103         * modules/unictype/property-ids-trinary-operator: Likewise.
6104         * modules/unictype/property-ignorable-control: Likewise.
6105         * modules/unictype/property-iso-control: Likewise.
6106         * modules/unictype/property-join-control: Likewise.
6107         * modules/unictype/property-left-of-pair: Likewise.
6108         * modules/unictype/property-line-separator: Likewise.
6109         * modules/unictype/property-logical-order-exception: Likewise.
6110         * modules/unictype/property-lowercase: Likewise.
6111         * modules/unictype/property-math: Likewise.
6112         * modules/unictype/property-non-break: Likewise.
6113         * modules/unictype/property-not-a-character: Likewise.
6114         * modules/unictype/property-numeric: Likewise.
6115         * modules/unictype/property-other-alphabetic: Likewise.
6116         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
6117         * modules/unictype/property-other-grapheme-extend: Likewise.
6118         * modules/unictype/property-other-id-continue: Likewise.
6119         * modules/unictype/property-other-id-start: Likewise.
6120         * modules/unictype/property-other-lowercase: Likewise.
6121         * modules/unictype/property-other-math: Likewise.
6122         * modules/unictype/property-other-uppercase: Likewise.
6123         * modules/unictype/property-paired-punctuation: Likewise.
6124         * modules/unictype/property-paragraph-separator: Likewise.
6125         * modules/unictype/property-pattern-syntax: Likewise.
6126         * modules/unictype/property-pattern-white-space: Likewise.
6127         * modules/unictype/property-private-use: Likewise.
6128         * modules/unictype/property-punctuation: Likewise.
6129         * modules/unictype/property-quotation-mark: Likewise.
6130         * modules/unictype/property-radical: Likewise.
6131         * modules/unictype/property-sentence-terminal: Likewise.
6132         * modules/unictype/property-soft-dotted: Likewise.
6133         * modules/unictype/property-space: Likewise.
6134         * modules/unictype/property-terminal-punctuation: Likewise.
6135         * modules/unictype/property-test: Likewise.
6136         * modules/unictype/property-titlecase: Likewise.
6137         * modules/unictype/property-unassigned-code-value: Likewise.
6138         * modules/unictype/property-unified-ideograph: Likewise.
6139         * modules/unictype/property-uppercase: Likewise.
6140         * modules/unictype/property-variation-selector: Likewise.
6141         * modules/unictype/property-white-space: Likewise.
6142         * modules/unictype/property-xid-continue: Likewise.
6143         * modules/unictype/property-xid-start: Likewise.
6144         * modules/unictype/property-zero-width: Likewise.
6145         * modules/unictype/scripts: Likewise.
6146         * modules/unictype/syntax-c-ident: Likewise.
6147         * modules/unictype/syntax-c-whitespace: Likewise.
6148         * modules/unictype/syntax-java-ident: Likewise.
6149         * modules/unictype/syntax-java-whitespace: Likewise.
6150         * modules/unilbrk/u8-possible-linebreaks: Likewise.
6151         * modules/unilbrk/u8-width-linebreaks: Likewise.
6152         * modules/unilbrk/u16-possible-linebreaks: Likewise.
6153         * modules/unilbrk/u16-width-linebreaks: Likewise.
6154         * modules/unilbrk/u32-possible-linebreaks: Likewise.
6155         * modules/unilbrk/u32-width-linebreaks: Likewise.
6156         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
6157         * modules/unilbrk/ulc-width-linebreaks: Likewise.
6158         * modules/uniname/uniname: Likewise.
6159         * modules/uninorm/canonical-decomposition: Likewise.
6160         * modules/uninorm/composition: Likewise.
6161         * modules/uninorm/decomposing-form: Likewise.
6162         * modules/uninorm/decomposition: Likewise.
6163         * modules/uninorm/filter: Likewise.
6164         * modules/uninorm/nfc: Likewise.
6165         * modules/uninorm/nfd: Likewise.
6166         * modules/uninorm/nfkc: Likewise.
6167         * modules/uninorm/nfkd: Likewise.
6168         * modules/uninorm/u8-normalize: Likewise.
6169         * modules/uninorm/u8-normcmp: Likewise.
6170         * modules/uninorm/u8-normcoll: Likewise.
6171         * modules/uninorm/u8-normxfrm: Likewise.
6172         * modules/uninorm/u16-normalize: Likewise.
6173         * modules/uninorm/u16-normcmp: Likewise.
6174         * modules/uninorm/u16-normcoll: Likewise.
6175         * modules/uninorm/u16-normxfrm: Likewise.
6176         * modules/uninorm/u32-normalize: Likewise.
6177         * modules/uninorm/u32-normcmp: Likewise.
6178         * modules/uninorm/u32-normcoll: Likewise.
6179         * modules/uninorm/u32-normxfrm: Likewise.
6180         * modules/unistdio/u8-asnprintf: Likewise.
6181         * modules/unistdio/u8-asprintf: Likewise.
6182         * modules/unistdio/u8-snprintf: Likewise.
6183         * modules/unistdio/u8-sprintf: Likewise.
6184         * modules/unistdio/u8-u8-asnprintf: Likewise.
6185         * modules/unistdio/u8-u8-asprintf: Likewise.
6186         * modules/unistdio/u8-u8-snprintf: Likewise.
6187         * modules/unistdio/u8-u8-sprintf: Likewise.
6188         * modules/unistdio/u8-u8-vasnprintf: Likewise.
6189         * modules/unistdio/u8-u8-vasprintf: Likewise.
6190         * modules/unistdio/u8-u8-vsnprintf: Likewise.
6191         * modules/unistdio/u8-u8-vsprintf: Likewise.
6192         * modules/unistdio/u8-vasnprintf: Likewise.
6193         * modules/unistdio/u8-vasprintf: Likewise.
6194         * modules/unistdio/u8-vsnprintf: Likewise.
6195         * modules/unistdio/u8-vsprintf: Likewise.
6196         * modules/unistdio/u16-asnprintf: Likewise.
6197         * modules/unistdio/u16-asprintf: Likewise.
6198         * modules/unistdio/u16-snprintf: Likewise.
6199         * modules/unistdio/u16-sprintf: Likewise.
6200         * modules/unistdio/u16-u16-asnprintf: Likewise.
6201         * modules/unistdio/u16-u16-asprintf: Likewise.
6202         * modules/unistdio/u16-u16-snprintf: Likewise.
6203         * modules/unistdio/u16-u16-sprintf: Likewise.
6204         * modules/unistdio/u16-u16-vasnprintf: Likewise.
6205         * modules/unistdio/u16-u16-vasprintf: Likewise.
6206         * modules/unistdio/u16-u16-vsnprintf: Likewise.
6207         * modules/unistdio/u16-u16-vsprintf: Likewise.
6208         * modules/unistdio/u16-vasnprintf: Likewise.
6209         * modules/unistdio/u16-vasprintf: Likewise.
6210         * modules/unistdio/u16-vsnprintf: Likewise.
6211         * modules/unistdio/u16-vsprintf: Likewise.
6212         * modules/unistdio/u32-asnprintf: Likewise.
6213         * modules/unistdio/u32-asprintf: Likewise.
6214         * modules/unistdio/u32-snprintf: Likewise.
6215         * modules/unistdio/u32-sprintf: Likewise.
6216         * modules/unistdio/u32-u32-asnprintf: Likewise.
6217         * modules/unistdio/u32-u32-asprintf: Likewise.
6218         * modules/unistdio/u32-u32-snprintf: Likewise.
6219         * modules/unistdio/u32-u32-sprintf: Likewise.
6220         * modules/unistdio/u32-u32-vasnprintf: Likewise.
6221         * modules/unistdio/u32-u32-vasprintf: Likewise.
6222         * modules/unistdio/u32-u32-vsnprintf: Likewise.
6223         * modules/unistdio/u32-u32-vsprintf: Likewise.
6224         * modules/unistdio/u32-vasnprintf: Likewise.
6225         * modules/unistdio/u32-vasprintf: Likewise.
6226         * modules/unistdio/u32-vsnprintf: Likewise.
6227         * modules/unistdio/u32-vsprintf: Likewise.
6228         * modules/unistdio/ulc-asnprintf: Likewise.
6229         * modules/unistdio/ulc-asprintf: Likewise.
6230         * modules/unistdio/ulc-fprintf: Likewise.
6231         * modules/unistdio/ulc-snprintf: Likewise.
6232         * modules/unistdio/ulc-sprintf: Likewise.
6233         * modules/unistdio/ulc-vasnprintf: Likewise.
6234         * modules/unistdio/ulc-vasprintf: Likewise.
6235         * modules/unistdio/ulc-vfprintf: Likewise.
6236         * modules/unistdio/ulc-vsnprintf: Likewise.
6237         * modules/unistdio/ulc-vsprintf: Likewise.
6238         * modules/unistr/u8-check: Likewise.
6239         * modules/unistr/u8-chr: Likewise.
6240         * modules/unistr/u8-cmp: Likewise.
6241         * modules/unistr/u8-cmp2: Likewise.
6242         * modules/unistr/u8-cpy: Likewise.
6243         * modules/unistr/u8-cpy-alloc: Likewise.
6244         * modules/unistr/u8-endswith: Likewise.
6245         * modules/unistr/u8-mblen: Likewise.
6246         * modules/unistr/u8-mbsnlen: Likewise.
6247         * modules/unistr/u8-mbtouc: Likewise.
6248         * modules/unistr/u8-mbtouc-unsafe: Likewise.
6249         * modules/unistr/u8-mbtoucr: Likewise.
6250         * modules/unistr/u8-move: Likewise.
6251         * modules/unistr/u8-next: Likewise.
6252         * modules/unistr/u8-prev: Likewise.
6253         * modules/unistr/u8-set: Likewise.
6254         * modules/unistr/u8-startswith: Likewise.
6255         * modules/unistr/u8-stpcpy: Likewise.
6256         * modules/unistr/u8-stpncpy: Likewise.
6257         * modules/unistr/u8-strcat: Likewise.
6258         * modules/unistr/u8-strchr: Likewise.
6259         * modules/unistr/u8-strcmp: Likewise.
6260         * modules/unistr/u8-strcoll: Likewise.
6261         * modules/unistr/u8-strcpy: Likewise.
6262         * modules/unistr/u8-strcspn: Likewise.
6263         * modules/unistr/u8-strdup: Likewise.
6264         * modules/unistr/u8-strlen: Likewise.
6265         * modules/unistr/u8-strmblen: Likewise.
6266         * modules/unistr/u8-strmbtouc: Likewise.
6267         * modules/unistr/u8-strncat: Likewise.
6268         * modules/unistr/u8-strncmp: Likewise.
6269         * modules/unistr/u8-strncpy: Likewise.
6270         * modules/unistr/u8-strnlen: Likewise.
6271         * modules/unistr/u8-strpbrk: Likewise.
6272         * modules/unistr/u8-strrchr: Likewise.
6273         * modules/unistr/u8-strspn: Likewise.
6274         * modules/unistr/u8-strstr: Likewise.
6275         * modules/unistr/u8-strtok: Likewise.
6276         * modules/unistr/u8-to-u16: Likewise.
6277         * modules/unistr/u8-to-u32: Likewise.
6278         * modules/unistr/u8-uctomb: Likewise.
6279         * modules/unistr/u16-check: Likewise.
6280         * modules/unistr/u16-chr: Likewise.
6281         * modules/unistr/u16-cmp: Likewise.
6282         * modules/unistr/u16-cmp2: Likewise.
6283         * modules/unistr/u16-cpy: Likewise.
6284         * modules/unistr/u16-cpy-alloc: Likewise.
6285         * modules/unistr/u16-endswith: Likewise.
6286         * modules/unistr/u16-mblen: Likewise.
6287         * modules/unistr/u16-mbsnlen: Likewise.
6288         * modules/unistr/u16-mbtouc: Likewise.
6289         * modules/unistr/u16-mbtouc-unsafe: Likewise.
6290         * modules/unistr/u16-mbtoucr: Likewise.
6291         * modules/unistr/u16-move: Likewise.
6292         * modules/unistr/u16-next: Likewise.
6293         * modules/unistr/u16-prev: Likewise.
6294         * modules/unistr/u16-set: Likewise.
6295         * modules/unistr/u16-startswith: Likewise.
6296         * modules/unistr/u16-stpcpy: Likewise.
6297         * modules/unistr/u16-stpncpy: Likewise.
6298         * modules/unistr/u16-strcat: Likewise.
6299         * modules/unistr/u16-strchr: Likewise.
6300         * modules/unistr/u16-strcmp: Likewise.
6301         * modules/unistr/u16-strcoll: Likewise.
6302         * modules/unistr/u16-strcpy: Likewise.
6303         * modules/unistr/u16-strcspn: Likewise.
6304         * modules/unistr/u16-strdup: Likewise.
6305         * modules/unistr/u16-strlen: Likewise.
6306         * modules/unistr/u16-strmblen: Likewise.
6307         * modules/unistr/u16-strmbtouc: Likewise.
6308         * modules/unistr/u16-strncat: Likewise.
6309         * modules/unistr/u16-strncmp: Likewise.
6310         * modules/unistr/u16-strncpy: Likewise.
6311         * modules/unistr/u16-strnlen: Likewise.
6312         * modules/unistr/u16-strpbrk: Likewise.
6313         * modules/unistr/u16-strrchr: Likewise.
6314         * modules/unistr/u16-strspn: Likewise.
6315         * modules/unistr/u16-strstr: Likewise.
6316         * modules/unistr/u16-strtok: Likewise.
6317         * modules/unistr/u16-to-u32: Likewise.
6318         * modules/unistr/u16-to-u8: Likewise.
6319         * modules/unistr/u16-uctomb: Likewise.
6320         * modules/unistr/u32-check: Likewise.
6321         * modules/unistr/u32-chr: Likewise.
6322         * modules/unistr/u32-cmp: Likewise.
6323         * modules/unistr/u32-cmp2: Likewise.
6324         * modules/unistr/u32-cpy: Likewise.
6325         * modules/unistr/u32-cpy-alloc: Likewise.
6326         * modules/unistr/u32-endswith: Likewise.
6327         * modules/unistr/u32-mblen: Likewise.
6328         * modules/unistr/u32-mbsnlen: Likewise.
6329         * modules/unistr/u32-mbtouc: Likewise.
6330         * modules/unistr/u32-mbtouc-unsafe: Likewise.
6331         * modules/unistr/u32-mbtoucr: Likewise.
6332         * modules/unistr/u32-move: Likewise.
6333         * modules/unistr/u32-next: Likewise.
6334         * modules/unistr/u32-prev: Likewise.
6335         * modules/unistr/u32-set: Likewise.
6336         * modules/unistr/u32-startswith: Likewise.
6337         * modules/unistr/u32-stpcpy: Likewise.
6338         * modules/unistr/u32-stpncpy: Likewise.
6339         * modules/unistr/u32-strcat: Likewise.
6340         * modules/unistr/u32-strchr: Likewise.
6341         * modules/unistr/u32-strcmp: Likewise.
6342         * modules/unistr/u32-strcoll: Likewise.
6343         * modules/unistr/u32-strcpy: Likewise.
6344         * modules/unistr/u32-strcspn: Likewise.
6345         * modules/unistr/u32-strdup: Likewise.
6346         * modules/unistr/u32-strlen: Likewise.
6347         * modules/unistr/u32-strmblen: Likewise.
6348         * modules/unistr/u32-strmbtouc: Likewise.
6349         * modules/unistr/u32-strncat: Likewise.
6350         * modules/unistr/u32-strncmp: Likewise.
6351         * modules/unistr/u32-strncpy: Likewise.
6352         * modules/unistr/u32-strnlen: Likewise.
6353         * modules/unistr/u32-strpbrk: Likewise.
6354         * modules/unistr/u32-strrchr: Likewise.
6355         * modules/unistr/u32-strspn: Likewise.
6356         * modules/unistr/u32-strstr: Likewise.
6357         * modules/unistr/u32-strtok: Likewise.
6358         * modules/unistr/u32-to-u16: Likewise.
6359         * modules/unistr/u32-to-u8: Likewise.
6360         * modules/unistr/u32-uctomb: Likewise.
6361         * modules/uniwbrk/u8-wordbreaks: Likewise.
6362         * modules/uniwbrk/u16-wordbreaks: Likewise.
6363         * modules/uniwbrk/u32-wordbreaks: Likewise.
6364         * modules/uniwbrk/ulc-wordbreaks: Likewise.
6365         * modules/uniwbrk/wordbreak-property: Likewise.
6366         * modules/uniwidth/u8-strwidth: Likewise.
6367         * modules/uniwidth/u8-width: Likewise.
6368         * modules/uniwidth/u16-strwidth: Likewise.
6369         * modules/uniwidth/u16-width: Likewise.
6370         * modules/uniwidth/u32-strwidth: Likewise.
6371         * modules/uniwidth/u32-width: Likewise.
6372         * modules/uniwidth/width: Likewise.
6373         * modules/unicase/cased-tests (Makefile.am): Link all test programs
6374         with $(LIBUNISTRING).
6375         * modules/unicase/ignorable-tests: Likewise.
6376         * modules/unicase/locale-language-tests: Likewise.
6377         * modules/unicase/tolower-tests: Likewise.
6378         * modules/unicase/totitle-tests: Likewise.
6379         * modules/unicase/toupper-tests: Likewise.
6380         * modules/unicase/u8-casecmp-tests: Likewise.
6381         * modules/unicase/u8-casecoll-tests: Likewise.
6382         * modules/unicase/u8-casefold-tests: Likewise.
6383         * modules/unicase/u8-is-cased-tests: Likewise.
6384         * modules/unicase/u8-is-casefolded-tests: Likewise.
6385         * modules/unicase/u8-is-lowercase-tests: Likewise.
6386         * modules/unicase/u8-is-titlecase-tests: Likewise.
6387         * modules/unicase/u8-is-uppercase-tests: Likewise.
6388         * modules/unicase/u8-tolower-tests: Likewise.
6389         * modules/unicase/u8-totitle-tests: Likewise.
6390         * modules/unicase/u8-toupper-tests: Likewise.
6391         * modules/unicase/u16-casecmp-tests: Likewise.
6392         * modules/unicase/u16-casecoll-tests: Likewise.
6393         * modules/unicase/u16-casefold-tests: Likewise.
6394         * modules/unicase/u16-is-cased-tests: Likewise.
6395         * modules/unicase/u16-is-casefolded-tests: Likewise.
6396         * modules/unicase/u16-is-lowercase-tests: Likewise.
6397         * modules/unicase/u16-is-titlecase-tests: Likewise.
6398         * modules/unicase/u16-is-uppercase-tests: Likewise.
6399         * modules/unicase/u16-tolower-tests: Likewise.
6400         * modules/unicase/u16-totitle-tests: Likewise.
6401         * modules/unicase/u16-toupper-tests: Likewise.
6402         * modules/unicase/u32-casecmp-tests: Likewise.
6403         * modules/unicase/u32-casecoll-tests: Likewise.
6404         * modules/unicase/u32-casefold-tests: Likewise.
6405         * modules/unicase/u32-is-cased-tests: Likewise.
6406         * modules/unicase/u32-is-casefolded-tests: Likewise.
6407         * modules/unicase/u32-is-lowercase-tests: Likewise.
6408         * modules/unicase/u32-is-titlecase-tests: Likewise.
6409         * modules/unicase/u32-is-uppercase-tests: Likewise.
6410         * modules/unicase/u32-tolower-tests: Likewise.
6411         * modules/unicase/u32-totitle-tests: Likewise.
6412         * modules/unicase/u32-toupper-tests: Likewise.
6413         * modules/unicase/ulc-casecmp-tests: Likewise.
6414         * modules/unicase/ulc-casecoll-tests: Likewise.
6415         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
6416         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
6417         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
6418         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
6419         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
6420         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
6421         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
6422         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
6423         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
6424         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
6425         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
6426         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
6427         * modules/unictype/bidicategory-byname-tests: Likewise.
6428         * modules/unictype/bidicategory-name-tests: Likewise.
6429         * modules/unictype/bidicategory-of-tests: Likewise.
6430         * modules/unictype/bidicategory-test-tests: Likewise.
6431         * modules/unictype/block-list-tests: Likewise.
6432         * modules/unictype/block-of-tests: Likewise.
6433         * modules/unictype/block-test-tests: Likewise.
6434         * modules/unictype/category-C-tests: Likewise.
6435         * modules/unictype/category-Cc-tests: Likewise.
6436         * modules/unictype/category-Cf-tests: Likewise.
6437         * modules/unictype/category-Cn-tests: Likewise.
6438         * modules/unictype/category-Co-tests: Likewise.
6439         * modules/unictype/category-Cs-tests: Likewise.
6440         * modules/unictype/category-L-tests: Likewise.
6441         * modules/unictype/category-Ll-tests: Likewise.
6442         * modules/unictype/category-Lm-tests: Likewise.
6443         * modules/unictype/category-Lo-tests: Likewise.
6444         * modules/unictype/category-Lt-tests: Likewise.
6445         * modules/unictype/category-Lu-tests: Likewise.
6446         * modules/unictype/category-M-tests: Likewise.
6447         * modules/unictype/category-Mc-tests: Likewise.
6448         * modules/unictype/category-Me-tests: Likewise.
6449         * modules/unictype/category-Mn-tests: Likewise.
6450         * modules/unictype/category-N-tests: Likewise.
6451         * modules/unictype/category-Nd-tests: Likewise.
6452         * modules/unictype/category-Nl-tests: Likewise.
6453         * modules/unictype/category-No-tests: Likewise.
6454         * modules/unictype/category-P-tests: Likewise.
6455         * modules/unictype/category-Pc-tests: Likewise.
6456         * modules/unictype/category-Pd-tests: Likewise.
6457         * modules/unictype/category-Pe-tests: Likewise.
6458         * modules/unictype/category-Pf-tests: Likewise.
6459         * modules/unictype/category-Pi-tests: Likewise.
6460         * modules/unictype/category-Po-tests: Likewise.
6461         * modules/unictype/category-Ps-tests: Likewise.
6462         * modules/unictype/category-S-tests: Likewise.
6463         * modules/unictype/category-Sc-tests: Likewise.
6464         * modules/unictype/category-Sk-tests: Likewise.
6465         * modules/unictype/category-Sm-tests: Likewise.
6466         * modules/unictype/category-So-tests: Likewise.
6467         * modules/unictype/category-Z-tests: Likewise.
6468         * modules/unictype/category-Zl-tests: Likewise.
6469         * modules/unictype/category-Zp-tests: Likewise.
6470         * modules/unictype/category-Zs-tests: Likewise.
6471         * modules/unictype/category-and-not-tests: Likewise.
6472         * modules/unictype/category-and-tests: Likewise.
6473         * modules/unictype/category-byname-tests: Likewise.
6474         * modules/unictype/category-name-tests: Likewise.
6475         * modules/unictype/category-none-tests: Likewise.
6476         * modules/unictype/category-of-tests: Likewise.
6477         * modules/unictype/category-or-tests: Likewise.
6478         * modules/unictype/category-test-withtable-tests: Likewise.
6479         * modules/unictype/combining-class-tests: Likewise.
6480         * modules/unictype/ctype-alnum-tests: Likewise.
6481         * modules/unictype/ctype-alpha-tests: Likewise.
6482         * modules/unictype/ctype-blank-tests: Likewise.
6483         * modules/unictype/ctype-cntrl-tests: Likewise.
6484         * modules/unictype/ctype-digit-tests: Likewise.
6485         * modules/unictype/ctype-graph-tests: Likewise.
6486         * modules/unictype/ctype-lower-tests: Likewise.
6487         * modules/unictype/ctype-print-tests: Likewise.
6488         * modules/unictype/ctype-punct-tests: Likewise.
6489         * modules/unictype/ctype-space-tests: Likewise.
6490         * modules/unictype/ctype-upper-tests: Likewise.
6491         * modules/unictype/ctype-xdigit-tests: Likewise.
6492         * modules/unictype/decimal-digit-tests: Likewise.
6493         * modules/unictype/digit-tests: Likewise.
6494         * modules/unictype/mirror-tests: Likewise.
6495         * modules/unictype/numeric-tests: Likewise.
6496         * modules/unictype/property-alphabetic-tests: Likewise.
6497         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
6498         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
6499         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
6500         * modules/unictype/property-bidi-block-separator-tests: Likewise.
6501         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
6502         * modules/unictype/property-bidi-common-separator-tests: Likewise.
6503         * modules/unictype/property-bidi-control-tests: Likewise.
6504         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
6505         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
6506         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
6507         * modules/unictype/property-bidi-european-digit-tests: Likewise.
6508         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
6509         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
6510         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
6511         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
6512         * modules/unictype/property-bidi-pdf-tests: Likewise.
6513         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
6514         * modules/unictype/property-bidi-whitespace-tests: Likewise.
6515         * modules/unictype/property-byname-tests: Likewise.
6516         * modules/unictype/property-combining-tests: Likewise.
6517         * modules/unictype/property-composite-tests: Likewise.
6518         * modules/unictype/property-currency-symbol-tests: Likewise.
6519         * modules/unictype/property-dash-tests: Likewise.
6520         * modules/unictype/property-decimal-digit-tests: Likewise.
6521         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
6522         * modules/unictype/property-deprecated-tests: Likewise.
6523         * modules/unictype/property-diacritic-tests: Likewise.
6524         * modules/unictype/property-extender-tests: Likewise.
6525         * modules/unictype/property-format-control-tests: Likewise.
6526         * modules/unictype/property-grapheme-base-tests: Likewise.
6527         * modules/unictype/property-grapheme-extend-tests: Likewise.
6528         * modules/unictype/property-grapheme-link-tests: Likewise.
6529         * modules/unictype/property-hex-digit-tests: Likewise.
6530         * modules/unictype/property-hyphen-tests: Likewise.
6531         * modules/unictype/property-id-continue-tests: Likewise.
6532         * modules/unictype/property-id-start-tests: Likewise.
6533         * modules/unictype/property-ideographic-tests: Likewise.
6534         * modules/unictype/property-ids-binary-operator-tests: Likewise.
6535         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
6536         * modules/unictype/property-ignorable-control-tests: Likewise.
6537         * modules/unictype/property-iso-control-tests: Likewise.
6538         * modules/unictype/property-join-control-tests: Likewise.
6539         * modules/unictype/property-left-of-pair-tests: Likewise.
6540         * modules/unictype/property-line-separator-tests: Likewise.
6541         * modules/unictype/property-logical-order-exception-tests: Likewise.
6542         * modules/unictype/property-lowercase-tests: Likewise.
6543         * modules/unictype/property-math-tests: Likewise.
6544         * modules/unictype/property-non-break-tests: Likewise.
6545         * modules/unictype/property-not-a-character-tests: Likewise.
6546         * modules/unictype/property-numeric-tests: Likewise.
6547         * modules/unictype/property-other-alphabetic-tests: Likewise.
6548         * modules/unictype/property-other-default-ignorable-code-point-tests:
6549         Likewise.
6550         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
6551         * modules/unictype/property-other-id-continue-tests: Likewise.
6552         * modules/unictype/property-other-id-start-tests: Likewise.
6553         * modules/unictype/property-other-lowercase-tests: Likewise.
6554         * modules/unictype/property-other-math-tests: Likewise.
6555         * modules/unictype/property-other-uppercase-tests: Likewise.
6556         * modules/unictype/property-paired-punctuation-tests: Likewise.
6557         * modules/unictype/property-paragraph-separator-tests: Likewise.
6558         * modules/unictype/property-pattern-syntax-tests: Likewise.
6559         * modules/unictype/property-pattern-white-space-tests: Likewise.
6560         * modules/unictype/property-private-use-tests: Likewise.
6561         * modules/unictype/property-punctuation-tests: Likewise.
6562         * modules/unictype/property-quotation-mark-tests: Likewise.
6563         * modules/unictype/property-radical-tests: Likewise.
6564         * modules/unictype/property-sentence-terminal-tests: Likewise.
6565         * modules/unictype/property-soft-dotted-tests: Likewise.
6566         * modules/unictype/property-space-tests: Likewise.
6567         * modules/unictype/property-terminal-punctuation-tests: Likewise.
6568         * modules/unictype/property-test-tests: Likewise.
6569         * modules/unictype/property-titlecase-tests: Likewise.
6570         * modules/unictype/property-unassigned-code-value-tests: Likewise.
6571         * modules/unictype/property-unified-ideograph-tests: Likewise.
6572         * modules/unictype/property-uppercase-tests: Likewise.
6573         * modules/unictype/property-variation-selector-tests: Likewise.
6574         * modules/unictype/property-white-space-tests: Likewise.
6575         * modules/unictype/property-xid-continue-tests: Likewise.
6576         * modules/unictype/property-xid-start-tests: Likewise.
6577         * modules/unictype/property-zero-width-tests: Likewise.
6578         * modules/unictype/scripts-tests: Likewise.
6579         * modules/unictype/syntax-c-ident-tests: Likewise.
6580         * modules/unictype/syntax-c-whitespace-tests: Likewise.
6581         * modules/unictype/syntax-java-ident-tests: Likewise.
6582         * modules/unictype/syntax-java-whitespace-tests: Likewise.
6583         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
6584         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
6585         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
6586         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
6587         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
6588         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
6589         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
6590         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
6591         * modules/uniname/uniname-tests: Likewise.
6592         * modules/uninorm/canonical-decomposition-tests: Likewise.
6593         * modules/uninorm/compat-decomposition-tests: Likewise.
6594         * modules/uninorm/composition-tests: Likewise.
6595         * modules/uninorm/decomposing-form-tests: Likewise.
6596         * modules/uninorm/decomposition-tests: Likewise.
6597         * modules/uninorm/filter-tests: Likewise.
6598         * modules/uninorm/nfc-tests: Likewise.
6599         * modules/uninorm/nfd-tests: Likewise.
6600         * modules/uninorm/nfkc-tests: Likewise.
6601         * modules/uninorm/nfkd-tests: Likewise.
6602         * modules/uninorm/u8-normcmp-tests: Likewise.
6603         * modules/uninorm/u8-normcoll-tests: Likewise.
6604         * modules/uninorm/u16-normcmp-tests: Likewise.
6605         * modules/uninorm/u16-normcoll-tests: Likewise.
6606         * modules/uninorm/u32-normcmp-tests: Likewise.
6607         * modules/uninorm/u32-normcoll-tests: Likewise.
6608         * modules/unistdio/u8-asnprintf-tests: Likewise.
6609         * modules/unistdio/u8-vasnprintf-tests: Likewise.
6610         * modules/unistdio/u8-vasprintf-tests: Likewise.
6611         * modules/unistdio/u8-vsnprintf-tests: Likewise.
6612         * modules/unistdio/u8-vsprintf-tests: Likewise.
6613         * modules/unistdio/u16-asnprintf-tests: Likewise.
6614         * modules/unistdio/u16-vasnprintf-tests: Likewise.
6615         * modules/unistdio/u16-vasprintf-tests: Likewise.
6616         * modules/unistdio/u16-vsnprintf-tests: Likewise.
6617         * modules/unistdio/u16-vsprintf-tests: Likewise.
6618         * modules/unistdio/u32-asnprintf-tests: Likewise.
6619         * modules/unistdio/u32-vasnprintf-tests: Likewise.
6620         * modules/unistdio/u32-vasprintf-tests: Likewise.
6621         * modules/unistdio/u32-vsnprintf-tests: Likewise.
6622         * modules/unistdio/u32-vsprintf-tests: Likewise.
6623         * modules/unistdio/ulc-asnprintf-tests: Likewise.
6624         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
6625         * modules/unistdio/ulc-vasprintf-tests: Likewise.
6626         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
6627         * modules/unistdio/ulc-vsprintf-tests: Likewise.
6628         * modules/unistr/u8-check-tests: Likewise.
6629         * modules/unistr/u8-chr-tests: Likewise.
6630         * modules/unistr/u8-cmp-tests: Likewise.
6631         * modules/unistr/u8-cmp2-tests: Likewise.
6632         * modules/unistr/u8-cpy-alloc-tests: Likewise.
6633         * modules/unistr/u8-cpy-tests: Likewise.
6634         * modules/unistr/u8-mblen-tests: Likewise.
6635         * modules/unistr/u8-mbsnlen-tests: Likewise.
6636         * modules/unistr/u8-mbtouc-tests: Likewise.
6637         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
6638         * modules/unistr/u8-mbtoucr-tests: Likewise.
6639         * modules/unistr/u8-move-tests: Likewise.
6640         * modules/unistr/u8-next-tests: Likewise.
6641         * modules/unistr/u8-prev-tests: Likewise.
6642         * modules/unistr/u8-set-tests: Likewise.
6643         * modules/unistr/u8-stpcpy-tests: Likewise.
6644         * modules/unistr/u8-stpncpy-tests: Likewise.
6645         * modules/unistr/u8-strcat-tests: Likewise.
6646         * modules/unistr/u8-strcmp-tests: Likewise.
6647         * modules/unistr/u8-strcoll-tests: Likewise.
6648         * modules/unistr/u8-strcpy-tests: Likewise.
6649         * modules/unistr/u8-strdup-tests: Likewise.
6650         * modules/unistr/u8-strlen-tests: Likewise.
6651         * modules/unistr/u8-strmblen-tests: Likewise.
6652         * modules/unistr/u8-strmbtouc-tests: Likewise.
6653         * modules/unistr/u8-strncat-tests: Likewise.
6654         * modules/unistr/u8-strncmp-tests: Likewise.
6655         * modules/unistr/u8-strncpy-tests: Likewise.
6656         * modules/unistr/u8-strnlen-tests: Likewise.
6657         * modules/unistr/u8-to-u16-tests: Likewise.
6658         * modules/unistr/u8-to-u32-tests: Likewise.
6659         * modules/unistr/u8-uctomb-tests: Likewise.
6660         * modules/unistr/u16-check-tests: Likewise.
6661         * modules/unistr/u16-chr-tests: Likewise.
6662         * modules/unistr/u16-cmp-tests: Likewise.
6663         * modules/unistr/u16-cmp2-tests: Likewise.
6664         * modules/unistr/u16-cpy-alloc-tests: Likewise.
6665         * modules/unistr/u16-cpy-tests: Likewise.
6666         * modules/unistr/u16-mblen-tests: Likewise.
6667         * modules/unistr/u16-mbsnlen-tests: Likewise.
6668         * modules/unistr/u16-mbtouc-tests: Likewise.
6669         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
6670         * modules/unistr/u16-mbtoucr-tests: Likewise.
6671         * modules/unistr/u16-move-tests: Likewise.
6672         * modules/unistr/u16-next-tests: Likewise.
6673         * modules/unistr/u16-prev-tests: Likewise.
6674         * modules/unistr/u16-set-tests: Likewise.
6675         * modules/unistr/u16-stpcpy-tests: Likewise.
6676         * modules/unistr/u16-stpncpy-tests: Likewise.
6677         * modules/unistr/u16-strcat-tests: Likewise.
6678         * modules/unistr/u16-strcmp-tests: Likewise.
6679         * modules/unistr/u16-strcoll-tests: Likewise.
6680         * modules/unistr/u16-strcpy-tests: Likewise.
6681         * modules/unistr/u16-strdup-tests: Likewise.
6682         * modules/unistr/u16-strlen-tests: Likewise.
6683         * modules/unistr/u16-strmblen-tests: Likewise.
6684         * modules/unistr/u16-strmbtouc-tests: Likewise.
6685         * modules/unistr/u16-strncat-tests: Likewise.
6686         * modules/unistr/u16-strncmp-tests: Likewise.
6687         * modules/unistr/u16-strncpy-tests: Likewise.
6688         * modules/unistr/u16-strnlen-tests: Likewise.
6689         * modules/unistr/u16-to-u32-tests: Likewise.
6690         * modules/unistr/u16-to-u8-tests: Likewise.
6691         * modules/unistr/u16-uctomb-tests: Likewise.
6692         * modules/unistr/u32-check-tests: Likewise.
6693         * modules/unistr/u32-chr-tests: Likewise.
6694         * modules/unistr/u32-cmp-tests: Likewise.
6695         * modules/unistr/u32-cmp2-tests: Likewise.
6696         * modules/unistr/u32-cpy-alloc-tests: Likewise.
6697         * modules/unistr/u32-cpy-tests: Likewise.
6698         * modules/unistr/u32-mblen-tests: Likewise.
6699         * modules/unistr/u32-mbsnlen-tests: Likewise.
6700         * modules/unistr/u32-mbtouc-tests: Likewise.
6701         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
6702         * modules/unistr/u32-mbtoucr-tests: Likewise.
6703         * modules/unistr/u32-move-tests: Likewise.
6704         * modules/unistr/u32-next-tests: Likewise.
6705         * modules/unistr/u32-prev-tests: Likewise.
6706         * modules/unistr/u32-set-tests: Likewise.
6707         * modules/unistr/u32-stpcpy-tests: Likewise.
6708         * modules/unistr/u32-stpncpy-tests: Likewise.
6709         * modules/unistr/u32-strcat-tests: Likewise.
6710         * modules/unistr/u32-strcmp-tests: Likewise.
6711         * modules/unistr/u32-strcoll-tests: Likewise.
6712         * modules/unistr/u32-strcpy-tests: Likewise.
6713         * modules/unistr/u32-strdup-tests: Likewise.
6714         * modules/unistr/u32-strlen-tests: Likewise.
6715         * modules/unistr/u32-strmblen-tests: Likewise.
6716         * modules/unistr/u32-strmbtouc-tests: Likewise.
6717         * modules/unistr/u32-strncat-tests: Likewise.
6718         * modules/unistr/u32-strncmp-tests: Likewise.
6719         * modules/unistr/u32-strncpy-tests: Likewise.
6720         * modules/unistr/u32-strnlen-tests: Likewise.
6721         * modules/unistr/u32-to-u16-tests: Likewise.
6722         * modules/unistr/u32-to-u8-tests: Likewise.
6723         * modules/unistr/u32-uctomb-tests: Likewise.
6724         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
6725         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
6726         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
6727         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
6728         * modules/uniwidth/u8-strwidth-tests: Likewise.
6729         * modules/uniwidth/u8-width-tests: Likewise.
6730         * modules/uniwidth/u16-strwidth-tests: Likewise.
6731         * modules/uniwidth/u16-width-tests: Likewise.
6732         * modules/uniwidth/u32-strwidth-tests: Likewise.
6733         * modules/uniwidth/u32-width-tests: Likewise.
6734         * modules/uniwidth/width-tests: Likewise.
6735
6736 2010-05-18  Richard Jones  <rjones@redhat.com>
6737
6738         doc: users.txt: list hivex
6739         * users.txt: Add hivex.
6740
6741 2010-05-18  Richard Jones  <rjones@redhat.com>
6742
6743         doc: users.txt: list febootstrap
6744         * users.txt: Add febootstrap.
6745
6746 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
6747
6748         bootstrap: fix an error when gnulib is not used as a git submodule
6749         * build-aux/bootstrap (gnulib_path): If its length is zero then
6750         assign "gnulib" to it.
6751         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
6752
6753 2010-05-16  Bruno Haible  <bruno@clisp.org>
6754
6755         Avoid autoconf warnings about AM_ICONV.
6756         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
6757         2.64.
6758
6759 2010-05-16  Bruno Haible  <bruno@clisp.org>
6760
6761         absolute-header: Make the macro usable in more situations.
6762         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
6763         from gl_ABSOLUTE_HEADER.
6764         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
6765
6766 2010-05-16  James Youngman  <jay@gnu.org>
6767
6768         doc: update users.txt
6769         * users.txt: Add CSSC.
6770
6771 2010-05-16  Jim Meyering  <meyering@redhat.com>
6772
6773         init.sh: fix an error in the previous change; add more comments
6774         * tests/init.sh: Compare exit code in loop against 9, not 2.
6775         Patch by Bruno Haible.
6776         Make the two tests more similar by adding an empty "then" clause.
6777         Add comments.
6778
6779         init.sh: avoid unnecessary shell re-exec
6780         * tests/init.sh: Improve the re-exec-required check to first test the
6781         current shell.  If it passes the test, do not search for a shell that
6782         does pass, and do not re-exec.  This test is particularly contorted to
6783         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
6784         of $(...) evokes a syntax error and causes immediate shell exit with
6785         status 2.  Bruno Haible reported that the re-exec made it impossible
6786         to single-step through any init.sh-using script.
6787
6788 2010-05-16  Bruno Haible  <bruno@clisp.org>
6789
6790         Fix collision between gnulib's and libintl's printf replacements.
6791         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
6792         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
6793         (printf): When using GNU C, map the __printf__ function to rpl_printf
6794         via __asm__. When not using GNU C, define rpl_printf instead of
6795         __printf__.
6796         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
6797         commit.
6798         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
6799         commit.
6800         * m4/asm-underscore.m4: New file.
6801         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
6802         * modules/stdio (Files): Add m4/asm-underscore.m4.
6803         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
6804         Reported by Ben Pfaff.
6805
6806 2010-05-16  Bruno Haible  <bruno@clisp.org>
6807
6808         verify: Avoid skipping the test on openSUSE 11.0.
6809         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
6810
6811 2010-05-13  Bruno Haible  <bruno@clisp.org>
6812
6813         Avoid useless warnings from G++.
6814         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
6815         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
6816         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6817
6818 2010-05-11  Jim Meyering  <meyering@redhat.com>
6819
6820         maint.mk: tweak preceding change
6821         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
6822         regexps tighter by anchoring at EOL, and make the new group "shy"
6823         for slightly decreased overhead.
6824
6825 2010-05-11  Eric Blake  <eblake@redhat.com>
6826
6827         maint.mk: gnulib doesn't guarantee NSIG
6828         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
6829
6830 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6831
6832         test-pwrite.c: Remove unused variable declaration.
6833         * tests/test-pwrite.c (main): Remove read_buf declaration.
6834
6835         Remove useless test-pwrite.sh file.
6836         * tests/test-pwrite.sh: Delete file.
6837         * modules/pwrite-tests: Remove references.
6838         Reported by Bruno Haible.
6839
6840 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6841
6842         init.sh: fix a typo
6843         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
6844
6845 2010-05-10  Jim Meyering  <meyering@redhat.com>
6846
6847         maint.mk: avoid using a temporary file in the always-defined-macros check
6848         * top/maint.mk (.re-defmac): Remove rule.
6849         (gl_trap_): Remove definition.
6850         (sc_prohibit_always-defined_macros): Rewrite not to create and
6851         depend on a temporary file.  Instead, depend on GNU grep's ability
6852         to read a list of regular expressions from stdin when given "-f -".
6853
6854 2010-05-09  Bruno Haible  <bruno@clisp.org>
6855
6856         Update to GNU gettext 0.18, part 1.
6857         * m4/gettext.m4: Update to GNU gettext 0.18.
6858         * m4/intl.m4: Likewise.
6859         * m4/po.m4: Likewise.
6860         * modules/gettext (Files): Add m4/fcntl-o.m4.
6861         (configure.ac): Require gettext infrastructure from version 0.18.
6862
6863 2010-05-09  Jim Meyering  <meyering@redhat.com>
6864
6865         init.sh: enable MALLOC_PERTURB_
6866         * tests/init.sh: Enable glibc's malloc-perturbing option.
6867
6868         maint.mk: improve sc_cross_check_PATH_usage_in_tests
6869         With my recent change in init.sh from the two-line form:
6870             -#   : ${srcdir=.}
6871             -#   . "$srcdir/init.sh"; path_prepend_ .
6872             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
6873         I noticed that using the one-line form would cause this test
6874         to fail with a false-positive, or to stop working altogether,
6875         depending on whether help-version changed or all the tests did.
6876         * top/maint.mk (_hv_regex): Remove this definition.
6877         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
6878         (_hv_regex_strong): Use a stronger regex to check for conformance.
6879         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
6880         Give a separate diagnostic for lack of conforming use.
6881
6882         maint.mk: prohibit definition of symbols defined by gnulib
6883         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
6884         definition of symbols defined by gnulib.
6885
6886 2010-05-09  Bruno Haible  <bruno@clisp.org>
6887
6888         acl: Avoid test failure on Cygwin-hosted mingw.
6889         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
6890
6891 2010-05-09  Bruno Haible  <bruno@clisp.org>
6892
6893         error: Use system's fcntl function.
6894         * lib/error.c (fcntl): Undefine.
6895
6896 2010-05-09  Jim Meyering  <meyering@redhat.com>
6897
6898         verify: adjust formatting to be more consistent
6899         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
6900         argument-list '('s, and after one comma.
6901
6902 2010-05-09  Bruno Haible  <bruno@clisp.org>
6903
6904         error: More reliable output on mingw.
6905         * lib/error.c: Include <windows.h>.
6906         (is_open): New function.
6907         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
6908         defined.
6909
6910 2010-05-09  Bruno Haible  <bruno@clisp.org>
6911
6912         vasnprintf: Fix syntax errors in libintl build on mingw.
6913         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
6914         pad_ourselves and prec_ourselves after use.
6915
6916 2010-05-08  Bruno Haible  <bruno@clisp.org>
6917
6918         * lib/config.charset: Update comments for Cygwin 1.7.
6919         * lib/localcharset.c: Likewise.
6920
6921 2010-05-07  Jim Meyering  <meyering@redhat.com>
6922
6923         init.sh: improve comments
6924         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
6925         . "${srcdir=.}/init.sh"; path_prepend_ .
6926         Add a note about path_prepend_ and the alternative of using
6927         TESTS_ENVIRONMENT.
6928
6929 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
6930
6931         exclude: Unescape hashed patterns in wildcard mode.
6932         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
6933         to the hash list.
6934         * tests/test-exclude8.sh: New test case.
6935         * modules/exclude-tests: Add new test.
6936
6937 2010-05-05  Eric Blake  <eblake@redhat.com>
6938
6939         verify: automate tests
6940         * modules/verify-tests: New module.
6941         * tests/test-verify.sh: New file.
6942         * tests/test-verify.c: Guard each negative test with a unique id.
6943         Also avoid warning about unused left hand of comma expressions.
6944
6945 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6946
6947         Further improvements to verify.h, suggested by Eric Blake.
6948         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
6949         the GL_* versions, to avoid collision with OpenGL.
6950         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
6951         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
6952         than testing merely whether it's defined.
6953
6954         Modify verify.h to pacify gcc -Wredundant_decls.
6955         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
6956         These use the prefix "GL_" since they're likely to be useful elsewhere.
6957         We may need to break them out into a different .h file.
6958         (__COUNTER__): Define to 0 if the compiler doesn't support it.
6959         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
6960         of verify_function__.
6961
6962 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6963
6964         Tests for module pwrite.
6965         * modules/pwrite-tests: New file.
6966         * tests/test-pwrite.sh: New file.
6967         * tests/test-pwrite.c: New file.
6968
6969         New module pwrite.
6970         * lib/unistd.in.h (pwrite): New declaration.
6971         * lib/pwrite.c: New file, from glibc with modifications.
6972         * m4/pwrite.m4: New file.
6973         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
6974         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
6975         REPLACE_PWRITE.
6976         * modules/pwrite: New file.
6977         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
6978         REPLACE_PWRITE.
6979         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
6980         * doc/posix-functions/pwrite.texi: Mention the new module.
6981
6982 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6983
6984         pread: Update documentation.
6985         * doc/posix-functions/pread.texi: Mention the 'pread' module.
6986
6987 2010-05-04  Eric Blake  <eblake@redhat.com>
6988
6989         docs: update cygwin progress
6990         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
6991         this bug.
6992         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
6993         Added in cygwin 1.7.2.
6994         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
6995         Likewise.
6996         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
6997         Likewise.
6998         * doc/glibc-functions/dup3.texi (dup3): Likewise.
6999         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7000         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7001         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
7002         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
7003         Mention nproc module.
7004         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
7005         bug in cygwin 1.7.5 addition.
7006         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
7007         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
7008         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
7009         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
7010         1.7.5.
7011         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
7012         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
7013         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
7014         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
7015         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
7016         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
7017         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
7018         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
7019         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
7020         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
7021         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
7022         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
7023         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
7024         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
7025         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
7026         Likewise.
7027         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
7028         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
7029         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
7030         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
7031         Likewise.
7032         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
7033         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
7034         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
7035         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
7036         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
7037         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
7038         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
7039         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
7040         Likewise.
7041         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
7042         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
7043         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
7044         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
7045         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
7046         Likewise.
7047         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
7048         Likewise.
7049         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
7050         Likewise.
7051         * doc/glibc-functions/xdrrec_endofrecord.texi
7052         (xdrrec_endofrecord): Likewise.
7053         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
7054         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
7055         Likewise.
7056         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
7057         Likewise.
7058
7059 2010-05-04  Jim Meyering  <meyering@redhat.com>
7060
7061         gendocs.sh: make its "-s FILE" option more useful
7062         * build-aux/gendocs.sh: When honoring the -s FILE option, update
7063         $PACKAGE to reflect the probably-different basename of "FILE".
7064
7065 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
7066
7067         bootstrap: don't ignore download_po_files failure
7068         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
7069         failure.
7070
7071 2010-05-03  Jim Meyering  <meyering@redhat.com>
7072
7073         maint.mk: allow to pass options to gendocs.sh
7074         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
7075         (gendocs_options_): New overridable variable.
7076
7077         gnu-web-doc-update: don't ignore configure or build failure
7078         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
7079
7080         announce-gen: backslash-escape '@'s in --help output
7081         * build-aux/announce-gen: Fix syntax errors.
7082
7083         maint.mk, announce-gen: allow project-specific announcement mail headers
7084         * top/maint.mk (translation_project_): Define default.
7085         (announcement_Cc_, announcement_mail_headers_): Likewise.
7086         (announcement): Invoke announce-gen with new --mail-headers option.
7087         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
7088
7089         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
7090         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
7091         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
7092         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
7093         line in the "err2" output file when running "make check" in verbose
7094         mode (i.e., with set -x enabled).
7095
7096 2010-05-03  Bruno Haible  <bruno@clisp.org>
7097
7098         wctob: Fix for weird platforms.
7099         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
7100         argument value.
7101
7102 2010-05-03  Jim Meyering  <meyering@redhat.com>
7103
7104         maint.mk: prohibit unwarranted use of <strings.h>
7105         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
7106         strings.h in a file that does not also use strcasecmp, strncasecmp,
7107         ffs or ffsll.
7108
7109         maint.mk: remove obsolete comments
7110         * top/maint.mk: Remove stale, commented-out rules.
7111
7112 2010-05-02  Bruno Haible  <bruno@clisp.org>
7113
7114         wcwidth: Declare also when it's aliased.
7115         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
7116         macro.
7117
7118 2010-05-02  Bruno Haible  <bruno@clisp.org>
7119
7120         Fix regression from 2010-04-25.
7121         * gnulib-tool (func_modules_transitive_closure): Check the status of
7122         all modules, not only of the tests that are of the form foo-tests where
7123         foo is a module.
7124
7125 2010-05-02  Bruno Haible  <bruno@clisp.org>
7126
7127         wctob: Work around nasty Cygwin 1.7.2 bug.
7128         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
7129         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
7130
7131 2010-05-01  Bruno Haible  <bruno@clisp.org>
7132
7133         fpurge: Sharper test.
7134         * tests/test-fpurge.c (main): Add one more ftell check.
7135         * modules/fpurge-tests (Depends-on): Add ftell.
7136         Suggested by Eric Blake.
7137
7138 2010-05-01  Bruno Haible  <bruno@clisp.org>
7139
7140         ftello: Another test.
7141         * tests/test-ftello3.c: New file.
7142         * modules/ftello-tests (Files): Add it.
7143         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
7144         MOSTLYCLEANFILES.
7145
7146         ftell: Another test.
7147         * tests/test-ftell3.c: New file.
7148         * modules/ftell-tests (Files): Add it.
7149         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
7150         MOSTLYCLEANFILES.
7151
7152 2010-05-01  Bruno Haible  <bruno@clisp.org>
7153
7154         ftell, ftello: Work around Solaris bug.
7155         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
7156         * lib/ftello.c: Include stdio-impl.h.
7157         (ftello): On Solaris, when _IOWRT is set, compute the result without
7158         looking at _IOREAD.
7159         * modules/ftello (Files): Add lib/stdio-impl.h.
7160         * doc/posix-functions/ftell.texi: Mention Solaris bug.
7161         * doc/posix-functions/ftello.texi: Likewise.
7162         Reported by Eric Blake.
7163
7164 2010-05-01  Bruno Haible  <bruno@clisp.org>
7165
7166         freading: Adapt to special meaning of _IOREAD flag on Solaris.
7167         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
7168         the _IOWRT flag is also set.
7169
7170 2010-05-01  Bruno Haible  <bruno@clisp.org>
7171
7172         Fix doc about a HP-UX stdio bug.
7173         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
7174         * doc/posix-functions/ftello.texi: Likewise.
7175
7176 2010-05-01  Bruno Haible  <bruno@clisp.org>
7177
7178         lseek test: Fix failure on Solaris.
7179         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
7180         output.
7181
7182 2010-04-30  Jim Meyering  <meyering@redhat.com>
7183
7184         bootstrap: don't ignore failure to generate po*/Makevars
7185         * build-aux/bootstrap (with_gettext): Don't ignore failure
7186         to create po/Makevars or runtime-po/Makevars.
7187
7188 2010-04-29  Eric Blake  <eblake@redhat.com>
7189
7190         headers: relax license to LGPLv2+
7191         * modules/fcntl-h (License): Relax license.
7192         * modules/getopt-posix (License): Likewise.
7193         * modules/locale (License): Likewise.
7194         * modules/math (License): Likewise.
7195         * modules/pty (License): Likewise.
7196         * modules/sched (License): Likewise.
7197         * modules/search (License): Likewise.
7198         * modules/spawn (License): Likewise.
7199         * modules/stdarg (License): Likewise.
7200         * modules/sysexits (License): Likewise.
7201
7202 2010-04-29  Jim Meyering  <meyering@redhat.com>
7203
7204         inttypes: relax license to LGPLv2+
7205         * modules/inttypes (License): Relax license.
7206
7207 2010-04-29  Simon Josefsson  <simon@josefsson.org>
7208
7209         * top/maint.mk (indent): Run twice to produce idempotent results.
7210
7211 2010-04-28  Bruno Haible  <bruno@clisp.org>
7212
7213         getdate: Generate getdate.c in the source directory.
7214         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
7215         MOSTLYCLEANFILES.
7216         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
7217
7218 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
7219
7220         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
7221         is not declared as a const *; avoid warnings in that case.
7222
7223 2010-04-28  Eric Blake  <eblake@redhat.com>
7224
7225         canonicalize-lgpl: avoid compiler warning
7226         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
7227         declaration' / 'extraneous semicolon' warning with some compilers.
7228         Reported by Andreas Gruenbacher.
7229
7230 2010-04-28  Jim Meyering  <meyering@redhat.com>
7231
7232         init.sh: ensure a more reliable exit status when exiting via trap
7233         * tests/init.sh (setup_): Don't rely on $? in signal handler.
7234         Inspired by patches from Dmitry V. Levin.
7235         Also trap on signal 3 (SIGQUIT).
7236
7237 2010-04-27  Bruno Haible  <bruno@clisp.org>
7238
7239         Update doc about utimes().
7240         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
7241         'utimens' module.
7242         Reported by Andreas Gruenbacher <agruen@suse.de>.
7243
7244 2010-04-27  Eric Blake  <eblake@redhat.com>
7245
7246         full-read, full-write: relax license
7247         * modules/full-read (License): Drop to LGPLv2+.
7248         * modules/full-write (License): Likewise.
7249         * modules/safe-read (License): Likewise.
7250         * modules/safe-write (License): Likewise.
7251
7252         pthread: mention library for linking
7253         * modules/pthread (Link): Mention $(LIB_PTHREAD).
7254
7255 2010-04-27  Jim Meyering  <meyering@redhat.com>
7256
7257         maint.mk: fix a bug introduced in last change
7258         * top/maint.mk (gl_assured_headers_): Now that all names are on
7259         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
7260         is not anchored to end of word, it should be adequate.
7261
7262         maint.mk: avoid side-effect in latest syntax-check
7263         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
7264         to run commands via $(shell...), and hence to incur cost only when
7265         the new rule is actually run.
7266
7267         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
7268         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
7269         and use that to create a regexp used to detect all #if HAVE_..._H uses.
7270         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
7271         (gl_assured_headers_, az_, AZ_): Define.
7272         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
7273
7274 2010-04-26  Jim Meyering  <jim@meyering.net>
7275             Bruno Haible  <bruno@clisp.org>
7276
7277         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
7278         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
7279         Prompted by an exchange with Gilles Espinasse.
7280
7281 2010-04-26  Jim Meyering  <meyering@redhat.com>
7282
7283         git-version-gen: aesthetic tweak
7284         * build-aux/git-version-gen: Use "$nl" rather than a literal,
7285         so that the command remains on a single line.
7286
7287 2010-04-26  Eric Blake  <eblake@redhat.com>
7288
7289         git-version-gen: allow use on EBCDIC hosts
7290         * build-aux/git-version-gen (dirty): Use literal rather than tying
7291         ourselves to ascii.
7292         Reported by Steve Goetze.
7293
7294 2010-04-25  Bruno Haible  <bruno@clisp.org>
7295
7296         netdb: Add support for GNULIB_POSIXCHECK.
7297         * lib/netdb.in.h: Include warn-on-use.h.
7298         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
7299         functions are used when GNULIB_POSIXCHECK is defined and the
7300         getaddrinfo module is not in use.
7301         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
7302         freeaddrinfo, gai_strerror, getnameinfo are declared.
7303         * modules/netdb (Depends-on): Add warn-on-use.
7304         (Makefile.am): Include warn-on-use.h in netdb.h.
7305
7306 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
7307
7308         build: avoid "make check" failure without .git/ directory
7309         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
7310         there is no .git/ directory.
7311
7312 2010-04-25  Bruno Haible  <bruno@clisp.org>
7313
7314         ptsname: Fix misuse of ttyname_r.
7315         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
7316         of errno.
7317
7318 2010-04-25  Bruno Haible  <bruno@clisp.org>
7319
7320         ttyname_r: Make it work on Solaris 10.
7321         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
7322         if the system function has the POSIX declaration. Test whether the
7323         function fails if the buffer is less than 128 bytes large.
7324         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
7325         system's ttyname_r function. Provide a reasonably large buffer.
7326         * modules/ttyname_r (Depends-on): Add extensions.
7327         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
7328
7329 2010-04-25  Bruno Haible  <bruno@clisp.org>
7330
7331         Use the 'extensions' module for some more functions on Solaris.
7332         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
7333         module.
7334         * doc/posix-functions/ctime_r.texi: Likewise.
7335         * doc/posix-functions/getgrgid_r.texi: Likewise.
7336         * doc/posix-functions/getgrnam_r.texi: Likewise.
7337         * doc/posix-functions/getpwnam_r.texi: Likewise.
7338         * doc/posix-functions/getpwuid_r.texi: Likewise.
7339         * doc/posix-functions/readdir_r.texi: Likewise.
7340         * doc/posix-functions/sigwait.texi: Likewise.
7341         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
7342         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
7343
7344 2010-04-25  Bruno Haible  <bruno@clisp.org>
7345
7346         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
7347         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
7348         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
7349         * lib/ttyname_r.c: Include <limits.h>.
7350         (ttyname_r): Define using the system's ttyname_r function, if it exists
7351         and not on Solaris.
7352         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
7353         set.
7354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
7355         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
7356         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
7357         Reported by Simon Josefsson.
7358
7359 2010-04-25  Bruno Haible  <bruno@clisp.org>
7360
7361         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
7362         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
7363         * doc/posix-functions/ctime_r.texi: Likewise.
7364         * doc/posix-functions/getgrgid_r.texi: Likewise.
7365         * doc/posix-functions/getgrnam_r.texi: Likewise.
7366         * doc/posix-functions/getlogin_r.texi: Likewise.
7367         * doc/posix-functions/getpwnam_r.texi: Likewise.
7368         * doc/posix-functions/getpwuid_r.texi: Likewise.
7369         * doc/posix-functions/readdir_r.texi: Likewise.
7370         * doc/posix-functions/sigwait.texi: Likewise.
7371         * doc/posix-functions/ttyname_r.texi: Likewise.
7372         Reported by Simon Josefsson.
7373
7374 2010-04-25  Bruno Haible  <bruno@clisp.org>
7375
7376         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
7377         * gnulib-tool (func_usage): Document that --with-*-tests options apply
7378         also to --create-testdir.
7379         (func_acceptable): Don't consider the status of *-tests modules here.
7380         (func_modules_transitive_closure): Consider it here, before including a
7381         test module.
7382         (func_import, func_create_testdir): Set inc_all_direct_tests,
7383         inc_all_indirect_tests.
7384         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
7385         --create-testdir and --create-megatestdir.
7386
7387 2010-04-25  Bruno Haible  <bruno@clisp.org>
7388
7389         gnulib-tool: Add --without-*-tests options.
7390         * gnulib-tool (func_usage): Document the --without-*-tests options.
7391         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
7392         excl_unportable_tests): New variables.
7393         Fail if they are specified with --import or --update.
7394         (func_acceptable): Respect the excl_*_tests variables.
7395         (func_import): Set the excl_*_tests variables to empty.
7396
7397 2010-04-25  Simon Josefsson  <simon@josefsson.org>
7398             Bruno Haible  <bruno@clisp.org>
7399
7400         Work around a MacOS X 10.4 bug with openpty.
7401         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
7402         * tests/test-openpty.c (main): Close the master side explicitly.
7403
7404 2010-04-25  Bruno Haible  <bruno@clisp.org>
7405
7406         strnlen: Fix a C++ test error on MacOS X and Solaris.
7407         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
7408         the function is not declared.
7409         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
7410         Simon Josefsson.
7411
7412 2010-04-24  Bruno Haible  <bruno@clisp.org>
7413
7414         Avoid a gcc warning.
7415         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
7416         of correct type for %08lx directive.
7417         Reported by Eric Blake.
7418
7419 2010-04-24  Bruno Haible  <bruno@clisp.org>
7420
7421         vasnprintf: Correct errno value in case of out-of-memory.
7422         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
7423         or sprintf. Use the errno value from SNPRINTF or sprintf.
7424         Reported by Ian Beckwith <ianb@erislabs.net>.
7425
7426 2010-04-24  Bruno Haible  <bruno@clisp.org>
7427
7428         ansi-c++-opt: Find correct compiler when cross-compiling.
7429         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
7430         AC_CHECK_PROGS.
7431         Reported by Simon Josefsson.
7432
7433 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
7434
7435         vc-list-files: Add support for subversion
7436         * build-aux/vc-list-files: Use "svn list" to generate the list of
7437         files controlled by subversion.
7438
7439 2010-04-23  Jim Meyering  <meyering@redhat.com>
7440
7441         vc-list-files tests: convert to use init.sh
7442         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
7443         path_prepend_.
7444         Use Exit, not exit.
7445         Use skip_ rather than open coding it.
7446         Remove trap set-up and compare definitions.
7447         * tests/test-vc-list-files-git.sh: Likewise.
7448         * modules/vc-list-files-tests (Files): Add tests/init.sh.
7449
7450 2010-04-22  Simon Josefsson  <simon@josefsson.org>
7451
7452         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
7453         backup files.
7454
7455 2010-04-21  Simon Josefsson  <simon@josefsson.org>
7456
7457         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
7458
7459 2010-04-20  Eric Blake  <eblake@redhat.com>
7460
7461         tests: be robust to ignored SIGPIPE
7462         * tests/test-select-in.sh: Consume all output.
7463         * tests/test-lseek.sh: Check correct exit status, while avoiding
7464         EPIPE.
7465
7466 2010-04-20  Simon Josefsson  <simon@josefsson.org>
7467             Bruno Haible  <bruno@clisp.org>
7468
7469         visibility: Don't use -fvisibility if it leads to a warning.
7470         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
7471         yes, don't pretend that visibility works if it leads to a warning.
7472         Reported by Mike Gran <spk121@yahoo.com>.
7473
7474 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
7475
7476         * build-aux/bootstrap: Use "git -h" for testing for supported options
7477         instead of "git --help".  The short-form option only shows a summary,
7478         and doesn't layout the full man page.  Grep for the full option name
7479         in the summary, too.
7480
7481 2010-04-19  Bruno Haible  <bruno@clisp.org>
7482
7483         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
7484         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
7485         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
7486         mention of RELOCATABLE_STRIP.
7487         Reported by Sylvain Beucler <beuc@beuc.net>.
7488
7489 2010-04-19  Bruno Haible  <bruno@clisp.org>
7490
7491         * lib/diffseq.h: Fix typo in comment.
7492         Reported by Eric Blake.
7493
7494 2010-04-19  Bruno Haible  <bruno@clisp.org>
7495
7496         ioctl: Move autoconf macro to a .m4 file.
7497         * m4/ioctl.m4: New file, extracted from modules/ioctl.
7498         * modules/ioctl (Files): Add it.
7499         (configure.ac): Simply invoke gl_FUNC_IOCTL.
7500         Reported by Ian Beckwith <ianb@erislabs.net>.
7501
7502 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
7503             Bruno Haible  <bruno@clisp.org>
7504
7505         diffseq: Accommodate use-case with abstract arrays.
7506         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
7507         is not defined.
7508         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
7509         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
7510
7511 2010-04-18  Bruno Haible  <bruno@clisp.org>
7512
7513         * doc/posix-headers/stdbool.texi: More precise wording.
7514
7515 2010-04-17  Jim Meyering  <meyering@redhat.com>
7516
7517         maint.mk: use gnu-style indentation in an embedded perl script
7518         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
7519         Rename variable: s/two/last_two_bytes/
7520
7521 2010-04-16  Eric Blake  <eblake@redhat.com>
7522
7523         test-stdbool: skip test that fails with Solaris CC
7524         * tests/test-stdbool.c (f): Skip test that causes compilation
7525         error under buggy C++ compiler.
7526         * lib/stdbool.in.h: Document the limitation.
7527         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
7528
7529         setenv: allow compilation with C++
7530         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
7531         register keyword.
7532
7533         stdint: allow test to pass with C++
7534         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
7535
7536         getopt: allow compilation with C++
7537         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
7538         struct.
7539         * lib/getopt.c (_getopt_internal_r): Use correct type.
7540         Reported by Dagobert Michelson, via Joel E. Denny.
7541
7542 2010-04-16  Bruno Haible  <bruno@clisp.org>
7543
7544         Override netdb.h always.
7545         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
7546         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
7547         Reported by Ludovic Courtès <ludo@gnu.org>.
7548
7549 2010-04-15  Bruno Haible  <bruno@clisp.org>
7550
7551         openpty: Fix mistake from 2010-03-21.
7552         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
7553         Reported by Simon Josefsson.
7554
7555 2010-04-15  Eric Blake  <eblake@redhat.com>
7556
7557         test-forkpty: fix expected signature
7558         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
7559         Reported by Simon Josefsson.
7560
7561 2010-04-15  Jim Meyering  <meyering@redhat.com>
7562
7563         maint.mk: texinfo_suffix_re_: correct the default regexp
7564         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
7565
7566         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
7567         make it configurable via texinfo_suffix_re_.
7568
7569 2010-04-14  Eric Blake  <eblake@redhat.com>
7570
7571         strtok_r: relax license to LGPLv2+
7572         * modules/strtok_r (License): Relax license.
7573         Reported by Matthias Bolte.
7574
7575 2010-04-14  Simon Josefsson  <simon@josefsson.org>
7576
7577         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
7578         version 1.4.4 by default instead of requiring the libgcrypt
7579         version used during build.  This makes it possible to use the
7580         application with older but still binary compatible libgcrypt
7581         versions.
7582
7583 2010-04-13  Eric Blake  <eblake@redhat.com>
7584
7585         getopt-gnu: match recent glibc fixes and posix ruling
7586         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
7587         '+' handling, when requesting extensions.
7588         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
7589         'W;' handling.
7590         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
7591         * doc/posix-functions/getopt.texi (getopt): Document this.
7592         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7593         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7594         Likewise.
7595
7596         getopt: merge bug fixes from glibc
7597         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
7598         diagnostics.  Honor '+:' correctly.  Reject ';'.
7599
7600         getopt-posix: detect MacOS bug
7601         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
7602         optind when missing a required argument.
7603         * doc/posix-functions/getopt.texi (getopt): Document the bug.
7604         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7605         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7606         Likewise.
7607
7608         getopt-posix: avoid spurious failure on Solaris
7609         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
7610         an indicator that setting optind=1 is sufficient for reset.
7611
7612         getopt-posix: avoid spurious failure on FreeBSD
7613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
7614         in POSIX mode, since the m4 test uses it.
7615
7616         gnulib-tool: silence warning on BSD sh
7617         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
7618
7619 2010-04-13  Jim Meyering  <meyering@redhat.com>
7620
7621         doc: users.txt: GNU patch now uses gnulib
7622         * users.txt: Add patch.
7623
7624 2010-04-12  Jim Meyering  <meyering@redhat.com>
7625
7626         maint.mk: generate more concise timing data for syntax-check rules
7627         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
7628         " done" from each line that reports a syntax-check test duration.
7629
7630 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
7631
7632         git-version-gen: use "git update-index..." rather than "git status"
7633         * build-aux/git-version-gen: Use git update-index --refresh, not
7634         "git status".  With some versions of git, "git status" would fail
7635         to update the index and result in an unwarranted "-dirty" suffix.
7636
7637 2010-04-11  Jim Meyering  <meyering@redhat.com>
7638
7639         openat: correct formatting (no semantic change)
7640         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
7641         Suggested by Bruno Haible.
7642
7643 2010-04-11  Bruno Haible  <bruno@clisp.org>
7644
7645         Stricter declaration checking in testdirs.
7646         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7647         If for_tests is true, augment AM_CPPFLAGS to define
7648         GNULIB_STRICT_CHECKING.
7649         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
7650         GNULIB_STRICT_CHECKING is defined, verify that the function is
7651         declared.
7652
7653 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
7654             Bruno Haible  <bruno@clisp.org>
7655
7656         libunistring: Improve configure output.
7657         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
7658         Don't say "consider installing GNU libunistring" when checking again
7659         with libiconv.
7660
7661 2010-04-11  Bruno Haible  <bruno@clisp.org>
7662
7663         libunistring: Correct value of $LTLIBUNISTRING.
7664         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
7665         correct the value of $LTLIBUNISTRING.
7666
7667 2010-04-11  Bruno Haible  <bruno@clisp.org>
7668
7669         havelib: Add static libraries to LIBS in the right order.
7670         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
7671         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
7672
7673 2010-04-11  Bruno Haible  <bruno@clisp.org>
7674
7675         libunistring: Detect libunistring also when it depends on libiconv.
7676         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
7677         the second AC_LIB_HAVE_LINKFLAGS invocation.
7678
7679 2010-04-11  James Youngman  <jay@gnu.org>
7680
7681         close-stream: declare local scalars to be "const"
7682         * lib/close-stream.c (close_stream): Make boolean variables const
7683         to document the fact that we set but do not change them.
7684
7685 2010-04-11  Bruno Haible  <bruno@clisp.org>
7686
7687         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
7688
7689 2010-04-11  Jim Meyering  <meyering@redhat.com>
7690
7691         maint.mk: don't include dist-check.mk
7692         * top/maint.mk: Remove bogus include directive.
7693
7694         maint.mk: improve empty-line-at-EOF check
7695         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
7696         solution, rather than tail+Perl-based one.  The latter would read
7697         a few kilobytes from the end of each file, and did not handle empty
7698         files properly.
7699
7700         maint.mk: print the elapsed time for each syntax-check rule
7701         * top/maint.mk (sc_m_rules_): Save start time in a file.
7702         (sc_z_rules_): New rules: remove temp file and print elapsed time.
7703         (local-check): Interpose the .z rules
7704
7705 2010-04-11  Jim Meyering  <meyering@redhat.com>
7706
7707         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
7708         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
7709         empty file with one that ends in an empty line.
7710
7711 2010-04-10  Bruno Haible  <bruno@clisp.org>
7712
7713         mkdir: Make it work on mingw64.
7714         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
7715         * lib/mkdir.c: Update comment.
7716         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
7717
7718 2010-04-10  Bruno Haible  <bruno@clisp.org>
7719
7720         Don't override improved macro from newer autoconf.
7721         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
7722         autoconf >= 2.62.
7723         Reported by Joel E. Denny <jdenny@clemson.edu>.
7724
7725 2010-04-10  Jim Meyering  <meyering@redhat.com>
7726
7727         maint.mk: new syntax-check rule: prohibit empty lines at end of file
7728         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
7729
7730         maint.mk: correct a diagnostic
7731         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
7732         in diagnostic; now use $prohibit.
7733
7734 2010-04-10  Bruno Haible  <address@hidden>
7735
7736         fchownat: Fix a C++ test error on Solaris 8.
7737         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
7738         the function does not exist.
7739
7740 2010-04-10  Bruno Haible  <bruno@clisp.org>
7741
7742         vasnprintf: Add more tests.
7743         * tests/test-vasnprintf-posix.c: Include <errno.h>.
7744         (test_function): Test converting an invalid wide string.
7745
7746         vasnprintf: Correct handling of unconvertible wide string arguments.
7747         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
7748         VASNPRINTF.
7749         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
7750         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
7751         smaller than the expected maximum need for the directive. Set errno to
7752         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
7753         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
7754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
7755         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
7756         * modules/vasnprintf (Files): Add m4/printf.m4.
7757         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7758
7759 2010-04-10  Bruno Haible  <bruno@clisp.org>
7760
7761         vasnprintf: Fix crash in %ls directive.
7762         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
7763         string is passed as argument to %ls, with no precision and no width.
7764         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7765
7766 2010-04-10  Bruno Haible  <bruno@clisp.org>
7767
7768         vasnprintf: Fix multiple test failures on mingw.
7769         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
7770         _snprintf, or snwprintf, not _snwprintf.
7771
7772 2010-04-10  Bruno Haible  <bruno@clisp.org>
7773
7774         write: Fix a C++ test error on mingw.
7775         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
7776
7777 2010-04-10  Bruno Haible  <bruno@clisp.org>
7778
7779         vasnprintf test: Reduce code duplication.
7780         * tests/test-vasnprintf.c (test_function): New function, extracted from
7781         test_vasnprintf.
7782         (test_vasnprintf, test_asnprintf): Invoke it.
7783
7784 2010-04-10  Bruno Haible  <bruno@clisp.org>
7785
7786         strnlen: Fix warning in C++ mode on MacOS X.
7787         * lib/string.in.h (strnlen): Use the modern idiom.
7788         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
7789         defining strnlen as a macro already in <config.h>.
7790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7791         REPLACE_STRNLEN.
7792         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
7793         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7794
7795 2010-04-08  James Youngman  <jay@gnu.org>
7796
7797         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
7798         the example.
7799
7800 2010-04-09  Jim Meyering  <meyering@redhat.com>
7801
7802         maint.mk: print better diagnostic when there is no $(_hv_file)
7803         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
7804         announce that when $(_hv_file) (aka help-version) does not exist.
7805
7806         init.sh: run tr in the "C" locale to avoid multibyte interpretation
7807         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
7808         not try to interpret its random input bytes.  Jarno Rajahalme reported
7809         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
7810         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
7811         (mktempd_): Likewise, just in case.
7812
7813         ftruncate: add two years to projected module removal date: 2012
7814         * m4/ftruncate.m4: Adjust comments.
7815
7816         ftruncate: mark module as obsolete; even MinGW provides it, now
7817         * modules/ftruncate (Status): Obsolete.
7818         (Notice): Say that.
7819         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
7820         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
7821
7822 2010-04-08  Bruno Haible  <bruno@clisp.org>
7823
7824         Fix side effects from tests-related modules.
7825         * modules/dprintf-posix (Comment): New section.
7826         * modules/fprintf-posix (Comment): Likewise.
7827         * modules/obstack-printf-posix (Comment): Likewise.
7828         * modules/printf-posix (Comment): Likewise.
7829         * modules/snprintf-posix (Comment): Likewise.
7830         * modules/sprintf-posix (Comment): Likewise.
7831         * modules/vasnprintf-posix (Comment): Likewise.
7832         * modules/vasprintf-posix (Comment): Likewise.
7833         * modules/vdprintf-posix (Comment): Likewise.
7834         * modules/vfprintf-posix (Comment): Likewise.
7835         * modules/vprintf-posix (Comment): Likewise.
7836         * modules/vsnprintf-posix (Comment): Likewise.
7837         * modules/vsprintf-posix (Comment): Likewise.
7838         * modules/xprintf-posix (Comment): Likewise.
7839         * modules/xvasprintf-posix (Comment): Likewise.
7840         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
7841         * modules/floorf-tests (Depends-on): Likewise.
7842         * modules/round-tests (Depends-on): Likewise.
7843         * modules/roundf-tests (Depends-on): Likewise.
7844         * modules/trunc-tests (Depends-on): Likewise.
7845         * modules/truncf-tests (Depends-on): Likewise.
7846         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
7847         'fprintf-posix' module is not present.
7848         * tests/test-floorf2.c (check): Likewise.
7849         * tests/test-trunc2.c (check): Likewise.
7850         * tests/test-truncf2.c (check): Likewise.
7851         * tests/test-round2.c (equal): Likewise.
7852         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7853
7854 2010-04-07  Karl Berry  <karl@gnu.org>
7855
7856         * config/srclist.txt,
7857         * config/srclistvars.sh,
7858         * config/srclist-update: doc fixes.
7859
7860 2010-04-07  Jim Meyering  <meyering@redhat.com>
7861
7862         maint.mk: add a PATH crosschecking syntax-check rule
7863         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
7864         Useful if you use a test like the one in help-version (coreutils,
7865         diffutils, grep, gzip) that ensures $(VERSION) matches what is
7866         printed by prog --version.
7867
7868 2010-04-06  Bruno Haible  <bruno@clisp.org>
7869
7870         Fix link error on mingw.
7871         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
7872         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
7873
7874 2010-04-06  Bruno Haible  <bruno@clisp.org>
7875
7876         Assume rmdir exists.
7877         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
7878
7879 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
7880
7881         doc: update users.txt
7882         * users.txt: Add gcal.
7883
7884 2010-04-06  Jim Meyering  <meyering@redhat.com>
7885
7886         init.sh: simply unset TMPDIR rather than risking env -i
7887         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
7888         although it probably works fine on all Unix-based systems, some
7889         systems (Cygwin?) cannot tolerate a totally cleared environment.
7890         Suggestion from Eric Blake.
7891
7892 2010-04-06  Jim Meyering  <meyering@redhat.com>
7893
7894         init.sh: portability fix: use env's POSIX-specified -i option not -u
7895         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
7896         than unportable env -u.  Solaris 5.11's env lacks support for -u.
7897
7898 2010-04-05  Bruno Haible  <bruno@clisp.org>
7899
7900         btowc: Work around Cygwin 1.7.2 bug.
7901         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
7902         does not map NUL to 0.
7903         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
7904
7905 2010-04-05  Bruno Haible  <bruno@clisp.org>
7906
7907         Make the multithread modules work on Cygwin 1.7.2.
7908         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
7909         imported symbols can be declared weak, so that it returns "no" on
7910         Cygwin 1.7.2.
7911
7912 2010-04-05  Bruno Haible  <bruno@clisp.org>
7913
7914         Use the module 'strncat'.
7915         * modules/unistr/u8-strncat (Depends-on): Add strncat.
7916
7917         Tests for module 'strncat'.
7918         * modules/strncat-tests: New file.
7919         * tests/test-strncat.c: New file.
7920
7921         New module 'strncat'.
7922         * lib/string.in.h (strncat): New declaration.
7923         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
7924         * m4/strncat.m4: New file, based on m4/memchr.m4.
7925         * modules/strncat: New file.
7926         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
7927         is declared.
7928         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
7929         REPLACE_STRNCAT.
7930         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
7931         REPLACE_STRNCAT.
7932         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
7933         module.
7934         * tests/test-string-c++.cc: Check signature of strncat.
7935
7936 2010-04-05  Jim Meyering  <meyering@redhat.com>
7937
7938         xstrtoumax-tests: convert to use init.sh
7939         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
7940         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7941         Use Exit, not exit.
7942         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7943
7944         xstrtoimax-tests: convert to use init.sh
7945         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
7946         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7947         Use Exit, not exit.
7948         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7949
7950 2010-04-05  Bruno Haible  <bruno@clisp.org>
7951
7952         sys_socket: Avoid #define replacements in C++ mode.
7953         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
7954         warning to the function if possible, rather than #defining the symbol
7955         to a dysfunctional alias.
7956
7957 2010-04-05  Bruno Haible  <bruno@clisp.org>
7958
7959         fseeko: Fix C++ test error on mingw.
7960         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
7961         gl_FUNC_FSEEKO.
7962         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
7963         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
7964         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
7965         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
7966
7967 2010-04-05  Bruno Haible  <bruno@clisp.org>
7968
7969         duplocale: Improve test output.
7970         * tests/test-duplocale.c (main): Print reason for skipped test.
7971
7972 2010-04-05  Bruno Haible  <bruno@clisp.org>
7973
7974         Assume rmdir exists.
7975         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
7976         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
7977
7978 2010-04-05  Bruno Haible  <bruno@clisp.org>
7979
7980         Fix link error on Solaris 8 with cc.
7981         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
7982
7983 2010-04-05  Bruno Haible  <bruno@clisp.org>
7984
7985         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7986         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
7987
7988 2010-04-05  Bruno Haible  <bruno@clisp.org>
7989
7990         vasprintf: Update documentation.
7991         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
7992
7993 2010-04-05  Bruno Haible  <bruno@clisp.org>
7994
7995         ptsname: Improve test.
7996         * tests/test-ptsname.c (main): Also try the various master names of BSD
7997         systems.
7998
7999 2010-04-05  Bruno Haible  <bruno@clisp.org>
8000
8001         memchr: Avoid a possible C++ test error.
8002         * lib/string.in.h (memchr): Provide declaration if function is missing.
8003         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
8004         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
8005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
8006         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
8007
8008 2010-04-05  Bruno Haible  <bruno@clisp.org>
8009
8010         strtok_r: Improve idiom.
8011         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
8012         AC_LIBOBJ is used.
8013
8014 2010-04-05  Bruno Haible  <bruno@clisp.org>
8015
8016         strdup: Improve idiom.
8017         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
8018         AC_LIBOBJ is used.
8019         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
8020         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
8021         when AC_LIBOBJ is used.
8022
8023 2010-04-05  Bruno Haible  <bruno@clisp.org>
8024
8025         mbsinit, mbrtowc, wcrtomb: Improve idioms.
8026         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
8027         don't set REPLACE_MBSINIT to 1.
8028         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
8029         don't set REPLACE_MBRTOWC to 1.
8030         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
8031         exist, don't set REPLACE_MBSRTOWCS to 1.
8032         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
8033         exist, don't set REPLACE_MBSNRTOWCS to 1.
8034         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
8035         don't set REPLACE_WCRTOMB to 1.
8036         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
8037         exist, don't set REPLACE_WCSRTOMBS to 1.
8038         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
8039         exist, don't set REPLACE_WCSNRTOMBS to 1.
8040
8041 2010-04-05  Bruno Haible  <bruno@clisp.org>
8042
8043         ldexpl: Improve idiom.
8044         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
8045         make sure to set HAVE_DECL_LDEXPL to 0.
8046
8047 2010-04-05  Jim Meyering  <meyering@redhat.com>
8048
8049         xstrtol-tests: convert to use init.sh
8050         * modules/xstrtol-tests (Files): Add tests/init.sh.
8051         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8052         Use Exit, not exit.
8053         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8054
8055         atexit-tests: convert to use init.sh
8056         * modules/atexit-tests (Files): Add tests/init.sh.
8057         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
8058         Use Exit, not exit.
8059         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8060
8061         init.sh: fix typo
8062         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
8063
8064         init.sh: make it easier for a test script to write to the tty, ...
8065         when using automake's parallel-tests mode.
8066         * tests/init.sh (stderr_fileno_): Define overridable variable.
8067         (warn_): New function, to use it.
8068         (fail_, skip_, framework_failure_): Use warn_.
8069
8070 2010-04-04  Bruno Haible  <bruno@clisp.org>
8071
8072         btowc: Avoid warning.
8073         * lib/btowc.c: Include <stdlib.h>.
8074         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
8075
8076 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
8077             Bruno Haible  <bruno@clisp.org>
8078
8079         wchar: Port to NetBSD 1.5.
8080         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
8081         * lib/wctype.in.h (WEOF): Likewise.
8082
8083 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
8084             Bruno Haible  <bruno@clisp.org>
8085
8086         Port extended stdio to NetBSD 1.5.
8087         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
8088         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
8089         older.
8090
8091 2010-04-04  Bruno Haible  <bruno@clisp.org>
8092
8093         string: Remove unused substitution.
8094         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
8095         HAVE_DECL_STRERROR.
8096         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
8097
8098 2010-04-04  Bruno Haible  <bruno@clisp.org>
8099
8100         strtod: Avoid a possible C++ test error.
8101         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
8102         set REPLACE_STRTOD.
8103
8104 2010-04-04  Bruno Haible  <bruno@clisp.org>
8105
8106         strerror: Update documentation.
8107         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
8108
8109 2010-04-04  Bruno Haible  <bruno@clisp.org>
8110
8111         stdio: Fix some C++ test errors on Solaris 8 with GCC.
8112         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
8113         _GL_CXXALIAS_SYS_CAST.
8114
8115 2010-04-04  Bruno Haible  <bruno@clisp.org>
8116
8117         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
8118         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
8119         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
8120         REPLACE_FREXPL to 1.
8121         * doc/posix-functions/frexpl.texi: Update documentation.
8122
8123 2010-04-04  Bruno Haible  <bruno@clisp.org>
8124
8125         math: Fix some C++ test errors on Solaris 8 and Cygwin.
8126         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
8127
8128 2010-04-04  Bruno Haible  <bruno@clisp.org>
8129
8130         Implement nanosleep for native Windows.
8131         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
8132
8133 2010-04-04  Bruno Haible  <bruno@clisp.org>
8134
8135         math: Fix some C++ test errors on Solaris 8.
8136         * lib/math.in.h (truncf, trunc): Use simpler idiom.
8137
8138 2010-04-04  Bruno Haible  <bruno@clisp.org>
8139
8140         math: Fix some C++ test errors on Cygwin.
8141         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
8142         truncl): Provide declaration if the system does not have it.
8143         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
8144         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
8145         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
8146         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
8147         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
8148         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
8149         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
8150         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
8151         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
8152         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
8153         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
8154         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
8155         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
8156         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
8157         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
8158         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
8159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
8160         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
8161         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
8162         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
8163         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
8164         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
8165
8166 2010-04-04  Bruno Haible  <bruno@clisp.org>
8167
8168         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
8169         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8170         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8171         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8172         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8173         * m4/isinf.m4 (gl_ISINF): Likewise.
8174         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8175
8176 2010-04-04  Bruno Haible  <bruno@clisp.org>
8177
8178         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
8179         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8180
8181 2010-04-04  Bruno Haible  <bruno@clisp.org>
8182
8183         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
8184         * modules/tmpfile (configure.ac): Update.
8185
8186         tmpfile: Fix C++ test error on mingw.
8187         * lib/stdio.in.h (tmpfile): New declaration.
8188         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
8189         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
8190         * modules/tmpfile (Depends-on): Add stdio.
8191         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
8192         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
8193         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
8194         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
8195         REPLACE_TMPFILE.
8196         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
8197
8198 2010-04-04  Bruno Haible  <bruno@clisp.org>
8199
8200         ioctl: Fix C++ test error on mingw.
8201         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
8202         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
8203         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
8204
8205 2010-04-03  Bruno Haible  <bruno@clisp.org>
8206
8207         wcwidth: Fix C++ test error on mingw.
8208         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
8209         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
8210         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
8211
8212 2010-04-03  Bruno Haible  <bruno@clisp.org>
8213
8214         nanosleep: Fix C++ test error on mingw.
8215         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
8216         * lib/time.in.h (nanosleep): Use modern idiom.
8217         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
8218         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
8219         REPLACE_NANOSLEEP to 1.
8220         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
8221         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
8222
8223 2010-04-03  Bruno Haible  <bruno@clisp.org>
8224
8225         strptime: Fix C++ test error on mingw.
8226         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
8227         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
8228         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
8229         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
8230         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
8231         not REPLACE_STRPTIME.
8232         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
8233         REPLACE_STRPTIME.
8234
8235 2010-04-03  Bruno Haible  <bruno@clisp.org>
8236
8237         timegm: Fix C++ test error on mingw.
8238         * lib/time.in.h (timegm): Use modern idiom.
8239         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
8240         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
8241         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
8242         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
8243
8244 2010-04-03  Bruno Haible  <bruno@clisp.org>
8245
8246         timegm: Assume declaration if function exists.
8247         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
8248         if it exists. Don't clobber ac_cv_func_timegm.
8249
8250 2010-04-03  Bruno Haible  <bruno@clisp.org>
8251
8252         time_r: Fix C++ test error on mingw.
8253         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
8254         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
8255         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
8256         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
8257         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
8258
8259 2010-04-03  Bruno Haible  <bruno@clisp.org>
8260
8261         time_r: Minor updates.
8262         * modules/time_r (Description): Mention the provided functions.
8263         * lib/time_r.c: Don't include <string.h>.
8264         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
8265         * doc/posix-functions/localtime_r.texi: Likewise.
8266
8267 2010-04-03  Bruno Haible  <bruno@clisp.org>
8268
8269         time: Fix regression introduced on 2010-03-08.
8270         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
8271         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
8272
8273 2010-04-03  Jim Meyering  <meyering@redhat.com>
8274
8275         maint.mk: don't silently disable project-specific syntax-check rules
8276         * top/maint.mk (_prohibit_regexp): Define, to help people realize
8277         that they need to convert their project-specific syntax-check rules
8278         to use the new _sc_search_regexp.
8279
8280 2010-04-03  Bruno Haible  <bruno@clisp.org>
8281
8282         fchdir: Fix regression introduced on 2010-03-08.
8283         * lib/unistd.in.h (fchdir): Fix declaration.
8284         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
8285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
8286         REPLACE_FCHDIR.
8287         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
8288         REPLACE_FCHDIR.
8289
8290 2010-04-03  Bruno Haible  <bruno@clisp.org>
8291
8292         getpagesize: Fix C++ test error on mingw.
8293         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
8294         system does not declare the function.
8295         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
8296         declared.
8297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8298         HAVE_DECL_GETPAGESIZE.
8299         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
8300
8301 2010-04-03  Bruno Haible  <bruno@clisp.org>
8302
8303         stdio: Make C++ tests work on mingw.
8304         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
8305         does not declare the function.
8306
8307 2010-04-03  Bruno Haible  <bruno@clisp.org>
8308
8309         ftello: Fix C++ test error on mingw.
8310         * lib/stdio.in.h (ftello): Use modern idiom.
8311         * lib/ftello.c (ftello): Renamed from rpl_ftello.
8312         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
8313         is missing and that it needs to be replaced.
8314         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
8315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
8316         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
8317
8318 2010-04-03  Bruno Haible  <bruno@clisp.org>
8319
8320         fseeko: Fix C++ test error on mingw.
8321         * lib/stdio.in.h (fseeko): Use modern idiom.
8322         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
8323         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
8324         is missing and that it needs to be replaced.
8325         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
8326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
8327         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
8328
8329 2010-04-03  Bruno Haible  <bruno@clisp.org>
8330
8331         mkstemp: Fix C++ test error on mingw.
8332         * lib/stdlib.in.h (mkstemp): Use modern idiom.
8333         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
8334         function is missing and that it needs to be replaced.
8335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
8336         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
8337
8338 2010-04-03  Bruno Haible  <bruno@clisp.org>
8339
8340         stpncpy: Fix C++ test error on mingw.
8341         * lib/string.in.h (stpncpy): Use modern idiom.
8342         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
8343         function is missing and that it needs to be replaced.
8344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8345         REPLACE_STPNCPY.
8346         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
8347
8348 2010-04-03  Bruno Haible  <bruno@clisp.org>
8349
8350         sys_stat: Fix C++ test error on mingw.
8351         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
8352         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
8353
8354 2010-04-03  Bruno Haible  <bruno@clisp.org>
8355
8356         pty: Update doc.
8357         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
8358
8359 2010-04-03  Bruno Haible  <bruno@clisp.org>
8360
8361         unistd: Fix C++ test error on mingw.
8362         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
8363
8364 2010-04-03  Bruno Haible  <bruno@clisp.org>
8365
8366         Update doc regarding mingw.
8367         * doc/glibc-functions/openpty.texi: Update regarding mingw.
8368         * doc/glibc-functions/login_tty.texi: Likewise.
8369         * doc/glibc-functions/forkpty.texi: Likewise.
8370
8371 2010-04-03  Bruno Haible  <bruno@clisp.org>
8372
8373         stdlib: Avoid compilation failure of c-strtold on mingw.
8374         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
8375
8376 2010-04-03  Bruno Haible  <bruno@clisp.org>
8377
8378         locale: Make C++ tests work on Cygwin and mingw.
8379         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
8380         cannot provide the function.
8381         Reported by Simon Josefsson.
8382
8383 2010-04-03  Bruno Haible  <bruno@clisp.org>
8384
8385         localename: Port to MacOS X 10.6.
8386         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
8387         memory layout of the locales in MacOS X 10.6 as well.
8388         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
8389
8390 2010-04-02  Bruno Haible  <bruno@clisp.org>
8391
8392         gnulib-tool: Ensure that long-running tests are executed last.
8393         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
8394         running tests after the one for the other tests.
8395
8396 2010-04-02  Bruno Haible  <bruno@clisp.org>
8397
8398         gnulib-tool: Ensure the tests in the main directory are executed first.
8399         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
8400         start with the current directory.
8401
8402 2010-04-02  Bruno Haible  <bruno@clisp.org>
8403
8404         Tests for module 'havelib', moved here from GNU gettext.
8405         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
8406         modifications.
8407         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
8408         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
8409         with modifications.
8410         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
8411         modifications.
8412         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
8413         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
8414         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
8415         with modifications.
8416         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
8417         with modifications.
8418         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
8419         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
8420         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
8421         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
8422         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
8423         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
8424         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
8425         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
8426         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
8427         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
8428         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
8429         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
8430         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
8431         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
8432         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
8433         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
8434         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
8435         with modifications.
8436         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
8437         with modifications.
8438         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
8439         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
8440         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
8441         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
8442         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
8443         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
8444         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
8445         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
8446         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
8447         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
8448         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
8449         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
8450         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
8451         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
8452         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
8453         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
8454         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
8455         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
8456         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
8457         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
8458         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
8459         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
8460         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
8461         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
8462         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
8463         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
8464         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
8465         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
8466         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
8467         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
8468         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
8469         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
8470         * tests/havelib/rpathx/rpathx.c: New file, from
8471         gettext/autoconf-lib-link.
8472         * tests/havelib/rpathx/Makefile.am: New file, from
8473         gettext/autoconf-lib-link.
8474         * tests/havelib/rpathx/configure.ac: New file, from
8475         gettext/autoconf-lib-link with modifications.
8476         * tests/havelib/rpathy/rpathy.c: New file, from
8477         gettext/autoconf-lib-link.
8478         * tests/havelib/rpathy/Makefile.am: New file, from
8479         gettext/autoconf-lib-link.
8480         * tests/havelib/rpathy/configure.ac: New file, from
8481         gettext/autoconf-lib-link with modifications.
8482         * tests/havelib/rpathz/rpathz.c: New file, from
8483         gettext/autoconf-lib-link.
8484         * tests/havelib/rpathz/Makefile.am: New file, from
8485         gettext/autoconf-lib-link.
8486         * tests/havelib/rpathz/configure.ac: New file, from
8487         gettext/autoconf-lib-link with modifications.
8488         * tests/havelib/rpathlx/usex.c: New file, from
8489         gettext/autoconf-lib-link.
8490         * tests/havelib/rpathlx/Makefile.am: New file, from
8491         gettext/autoconf-lib-link.
8492         * tests/havelib/rpathlx/configure.ac: New file, from
8493         gettext/autoconf-lib-link with modifications.
8494         * tests/havelib/rpathly/usey.c: New file, from
8495         gettext/autoconf-lib-link.
8496         * tests/havelib/rpathly/Makefile.am: New file, from
8497         gettext/autoconf-lib-link.
8498         * tests/havelib/rpathly/configure.ac: New file, from
8499         gettext/autoconf-lib-link with modifications.
8500         * tests/havelib/rpathlz/usez.c: New file, from
8501         gettext/autoconf-lib-link.
8502         * tests/havelib/rpathlz/Makefile.am: New file, from
8503         gettext/autoconf-lib-link.
8504         * tests/havelib/rpathlz/configure.ac: New file, from
8505         gettext/autoconf-lib-link with modifications.
8506         * tests/havelib/rpathlyx/usey.c: New file, from
8507         gettext/autoconf-lib-link.
8508         * tests/havelib/rpathlyx/Makefile.am: New file, from
8509         gettext/autoconf-lib-link.
8510         * tests/havelib/rpathlyx/configure.ac: New file, from
8511         gettext/autoconf-lib-link with modifications.
8512         * tests/havelib/rpathlzyx/usez.c: New file, from
8513         gettext/autoconf-lib-link.
8514         * tests/havelib/rpathlzyx/Makefile.am: New file, from
8515         gettext/autoconf-lib-link.
8516         * tests/havelib/rpathlzyx/configure.ac: New file, from
8517         gettext/autoconf-lib-link with modifications.
8518         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
8519         with modifications.
8520
8521 2010-04-02  Bruno Haible  <bruno@clisp.org>
8522
8523         gnulib-tool: Create distributed built sources also for the tests.
8524         * gnulib-tool (func_create_testdir): Also generate distributed built
8525         sources in the tests directory.
8526
8527 2010-04-02  Bruno Haible  <bruno@clisp.org>
8528
8529         gnulib-tool: Obey user's environment variables.
8530         * gnulib-tool (func_create_testdir): When creating built sources,
8531         respect the environment variables for autoconf, automake, etc. given by
8532         the user.
8533
8534 2010-04-02  Bruno Haible  <bruno@clisp.org>
8535
8536         gnulib-tool: Provide the value of --m4-base to modules.
8537         * gnulib-tool (func_import, func_create_testdir): Emit a definition
8538         of gl_m4_base.
8539
8540 2010-04-02  Eric Blake  <eblake@redhat.com>
8541
8542         maint.mk: fix some fallout
8543         * NEWS: Document the incompatible change, and its effect on cfg.mk.
8544         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
8545
8546 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
8547
8548         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
8549         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
8550         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
8551         (sc_cast_of_x_alloc_return_value): Likewise.
8552         (sc_cast_of_alloca_return_value): Likewise.
8553         (sc_space_tab): Likewise.
8554         (sc_prohibit_atoi_atof): Likewise.
8555         (sc_prohibit_magic_number_exit): Likewise.
8556         (sc_error_exit_success): Likewise.
8557         (sc_file_system): Likewise.
8558         (sc_prohibit_have_config_h): Likewise.
8559         (sc_require_config_h): Likewise.
8560         (sc_prohibit_HAVE_MBRTOWC): Likewise.
8561         (sc_obsolete_symbols): Likewise.
8562         (sc_changelog): Likewise.
8563         (sc_program_name): Likewise.
8564         (sc_the_the): Likewise.
8565         (sc_trailing_blank): Likewise.
8566         (sc_two_space_separator_in_usage): Likewise.
8567         (sc_useless_cpp_parens): Likewise.
8568         (sc_GPL_version): Likewise.
8569         (sc_GFDL_version): Likewise.
8570         (sc_texinfo_acronym): Likewise.
8571         (sc_prohibit_cvs_keyword): Likewise.
8572         (sc_prohibit_stat_st_blocks): Likewise.
8573         (sc_prohibit_S_IS_definition): Likewise.
8574         (sc_redundant_const): Likewise.
8575         (sc_makefile_TAB_only_indentation): Likewise.
8576         (sc_m4_quote_check): Likewise.
8577         (sc_makefile_path_separator_check): Likewise.
8578         (sc_copyright_check): Likewise.
8579         (sc_Wundef_boolean): Likewise.
8580         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8581
8582         maint.mk: match 0 or more whitespace-before-function-call '('
8583         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
8584         that have zero or two-and-more spaces between the function name
8585         and the open parenthesis.
8586         (sc_error_message_warn_fatal): Likewise.
8587         (sc_error_message_uppercase): Likewise.
8588         (sc_error_message_period): Likewise.
8589
8590 2010-03-31  Eric Blake  <eblake@redhat.com>
8591
8592         maint.mk: check for [ as well as test
8593         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
8594         Based on a libvirt report by Matthias Bolte.
8595
8596         gnumakefile: don't squelch _version output
8597         * top/GNUmakefile (_version): Create one-shot dependency rather
8598         than using $(shell) when version must be regenerated.
8599         (_autoreconf): Run verbosely, by default.
8600
8601         sys_time: avoid compiler warnings
8602         * lib/sys_time.in.h (includes): Ensure gcc pragma is
8603         unconditional, fixing regression from 2010-03-29.
8604         Reported by Simon Josefsson.
8605
8606 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
8607
8608         maint.mk: s/_header_without_use/_sc_header_without_use/
8609         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
8610         (sc_prohibit_assert_without_use): Use the new name.
8611         (sc_prohibit_close_stream_without_use): Likewise.
8612         (sc_prohibit_getopt_without_use): Likewise.
8613         (sc_prohibit_quotearg_without_use): Likewise.
8614         (sc_prohibit_quote_without_use): Likewise.
8615         (sc_prohibit_long_options_without_use): Likewise.
8616         (sc_prohibit_inttostr_without_use): Likewise.
8617         (sc_prohibit_ignore_value_without_use): Likewise.
8618         (sc_prohibit_error_without_use): Likewise.
8619         (sc_prohibit_xalloc_without_use): Likewise.
8620         (sc_prohibit_hash_without_use): Likewise.
8621         (sc_prohibit_hash_pjw_without_use): Likewise.
8622         (sc_prohibit_safe_read_without_use): Likewise.
8623         (sc_prohibit_argmatch_without_use): Likewise.
8624         (sc_prohibit_canonicalize_without_use): Likewise.
8625         (sc_prohibit_root_dev_ino_without_use): Likewise.
8626         (sc_prohibit_openat_without_use): Likewise.
8627         (sc_prohibit_c_ctype_without_use): Likewise.
8628         (sc_prohibit_signal_without_use): Likewise.
8629         (sc_prohibit_intprops_without_use): Likewise.
8630
8631 2010-03-30  Eric Blake  <eblake@redhat.com>
8632
8633         maint: improve module indicators
8634         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
8635         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
8636         columns, and avoid extra macro expansion.
8637
8638         fdopendir: work around FreeBSD bug
8639         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8640         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
8641         * modules/dirent (Makefile.am): Substitute it.
8642         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
8643         declaration.
8644         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
8645         fix.
8646         Reported by Christian Weisgerber <naddy@mips.inka.de>.
8647
8648 2010-03-29  Bruno Haible  <bruno@clisp.org>
8649
8650         Emit #pragma system_header after the inclusion guard, not before.
8651         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
8652         guard that spans the entire file, not before. This enables an
8653         optimization in GCC's preprocessor.
8654         * lib/ctype.in.h: Likewise.
8655         * lib/dirent.in.h: Likewise.
8656         * lib/errno.in.h: Likewise.
8657         * lib/float.in.h: Likewise.
8658         * lib/getopt.in.h: Likewise.
8659         * lib/iconv.in.h: Likewise.
8660         * lib/langinfo.in.h: Likewise.
8661         * lib/locale.in.h: Likewise.
8662         * lib/math.in.h: Likewise.
8663         * lib/netdb.in.h: Likewise.
8664         * lib/netinet_in.in.h: Likewise.
8665         * lib/pty.in.h: Likewise.
8666         * lib/sched.in.h: Likewise.
8667         * lib/se-selinux.in.h: Likewise.
8668         * lib/search.in.h: Likewise.
8669         * lib/spawn.in.h: Likewise.
8670         * lib/stdarg.in.h: Likewise.
8671         * lib/stdint.in.h: Likewise.
8672         * lib/string.in.h: Likewise.
8673         * lib/strings.in.h: Likewise.
8674         * lib/sys_file.in.h: Likewise.
8675         * lib/sys_ioctl.in.h: Likewise.
8676         * lib/sys_time.in.h: Likewise.
8677         * lib/sys_times.in.h: Likewise.
8678         * lib/sys_utsname.in.h: Likewise.
8679         * lib/sys_wait.in.h: Likewise.
8680         * lib/sysexits.in.h: Likewise.
8681         * lib/wctype.in.h: Likewise.
8682
8683 2010-03-28  James Youngman  <jay@gnu.org>
8684
8685         save-cwd: don't leak a file descriptor when the caller execs.
8686         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
8687         saved file descriptor.
8688         * modules/save-cwd (Depends-on): Depend on cloexec.
8689
8690 2010-03-29  Bruno Haible  <bruno@clisp.org>
8691
8692         Remove vestiges of fts-lgpl module.
8693         * lib/fts_.h: Assume GNULIB_FTS is 1.
8694         * lib/fts.c: Likewise.
8695         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8696
8697 2010-03-28  Bruno Haible  <bruno@clisp.org>
8698
8699         Fix definition of tests witness macro.
8700         * gnulib-tool (func_import): Fix definition of witness macro.
8701
8702 2010-03-28  Bruno Haible  <bruno@clisp.org>
8703
8704         Fix ioctl's protoype on glibc systems.
8705         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
8706         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
8707         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
8708         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
8709         signature. If not, arrange to replace the ioctl function.
8710         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8711         REPLACE_IOCTL.
8712         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
8713         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
8714         Reported by Ludovic Courtès <ludo@gnu.org>.
8715
8716 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
8717
8718         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
8719         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
8720         made it so grep -r --include=GLOB* ... did not work.
8721
8722 2010-03-26  Jim Meyering  <meyering@redhat.com>
8723             Eric Blake  <eblake@redhat.com>
8724
8725         maint.mk: prohibit use of test's -o and -a operators
8726         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
8727
8728 2010-03-28  Bruno Haible  <bruno@clisp.org>
8729
8730         Remove unused GNULIB_XYZ macro definitions.
8731         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
8732         invocation.
8733
8734 2010-03-28  Bruno Haible  <bruno@clisp.org>
8735
8736         Mark privileged tests modules.
8737         * modules/idpriv-drop-tests (Status): New section.
8738         * modules/idpriv-droptemp-tests (Status): New section.
8739
8740 2010-03-28  Bruno Haible  <bruno@clisp.org>
8741
8742         Split C++ tests into separate tests modules.
8743         * modules/dirent-c++-tests: New file, extracted from
8744         modules/dirent-tests.
8745         * modules/dirent-tests: Depend on it.
8746         * modules/fcntl-h-c++-tests: New file, extracted from
8747         modules/fcntl-h-tests.
8748         * modules/fcntl-h-tests: Depend on it.
8749         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
8750         * modules/glob-tests: Depend on it.
8751         * modules/iconv-h-c++-tests: New file, extracted from
8752         modules/iconv-h-tests.
8753         * modules/iconv-h-tests: Depend on it.
8754         * modules/langinfo-c++-tests: New file, extracted from
8755         modules/langinfo-tests.
8756         * modules/langinfo-tests: Depend on it.
8757         * modules/locale-c++-tests: New file, extracted from
8758         modules/locale-tests.
8759         * modules/locale-tests: Depend on it.
8760         * modules/math-c++-tests: New file, extracted from modules/math-tests.
8761         * modules/math-tests: Depend on it.
8762         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
8763         * modules/pty-tests: Depend on it.
8764         * modules/search-c++-tests: New file, extracted from
8765         modules/search-tests.
8766         * modules/search-tests: Depend on it.
8767         * modules/signal-c++-tests: New file, extracted from
8768         modules/signal-tests.
8769         * modules/signal-tests: Depend on it.
8770         * modules/spawn-c++-tests: New file, extracted from
8771         modules/spawn-tests.
8772         * modules/spawn-tests: Depend on it.
8773         * modules/stdio-c++-tests: New file, extracted from
8774         modules/stdio-tests.
8775         * modules/stdio-tests: Depend on it.
8776         * modules/stdlib-c++-tests: New file, extracted from
8777         modules/stdlib-tests.
8778         * modules/stdlib-tests: Depend on it.
8779         * modules/string-c++-tests: New file, extracted from
8780         modules/string-tests.
8781         * modules/string-tests: Depend on it.
8782         * modules/sys_ioctl-c++-tests: New file, extracted from
8783         modules/sys_ioctl-tests.
8784         * modules/sys_ioctl-tests: Depend on it.
8785         * modules/sys_select-c++-tests: New file, extracted from
8786         modules/sys_select-tests.
8787         * modules/sys_select-tests: Depend on it.
8788         * modules/sys_socket-c++-tests: New file, extracted from
8789         modules/sys_socket-tests.
8790         * modules/sys_socket-tests: Depend on it.
8791         * modules/sys_stat-c++-tests: New file, extracted from
8792         modules/sys_stat-tests.
8793         * modules/sys_stat-tests: Depend on it.
8794         * modules/sys_time-c++-tests: New file, extracted from
8795         modules/sys_time-tests.
8796         * modules/sys_time-tests: Depend on it.
8797         * modules/time-c++-tests: New file, extracted from modules/time-tests.
8798         * modules/time-tests: Depend on it.
8799         * modules/unistd-c++-tests: New file, extracted from
8800         modules/unistd-tests.
8801         * modules/unistd-tests: Depend on it.
8802         * modules/wchar-c++-tests: New file, extracted from
8803         modules/wchar-tests.
8804         * modules/wchar-tests: Depend on it.
8805         * modules/wctype-c++-tests: New file, extracted from
8806         modules/wctype-tests.
8807         * modules/wctype-tests: Depend on it.
8808         Reported by Simon Josefsson.
8809
8810 2010-03-28  Bruno Haible  <bruno@clisp.org>
8811
8812         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
8813         * gnulib-tool (func_exists_module): New function, extracted from
8814         func_verify_module.
8815         (func_verify_module): Use it.
8816         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
8817         'foo' only if 'foo' exists.
8818         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
8819         module.
8820
8821 2010-03-28  Bruno Haible  <bruno@clisp.org>
8822
8823         gnulib-tool: Add support for special categories of tests.
8824         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
8825         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
8826         (func_usage): Document them.
8827         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
8828         inc_unportable_tests, inc_all_tests): New variables.
8829         (func_acceptable): Consider these variables.
8830         (func_modules_transitive_closure): Make it work when the 'Status' field
8831         consists of multiple words.
8832         (func_import): Store and restore the values of inc_cxx_tests,
8833         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
8834         inc_all_tests in gnulib-comp.m4.
8835         (func_create_testdir): Set inc_all_tests to true.
8836         * doc/gnulib.texi (Extra tests modules): New section.
8837         Suggested by Jim Meyering.
8838
8839 2010-03-28  Bruno Haible  <bruno@clisp.org>
8840
8841         ansi-c++-opt: Allow turning off the C++ build by default.
8842         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
8843         gl_CXX_CHOICE_DEFAULT_NO is defined.
8844         Requested by Eric Blake.
8845
8846 2010-03-28  Bruno Haible  <bruno@clisp.org>
8847
8848         unistd: Avoid #define replacements in C++ mode.
8849         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8850         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8851         setsockopt, shutdown, select): In C++, attach a warning to the function
8852         if possible, rather than #defining the symbol to a dysfunctional alias.
8853         Reported by John W. Eaton <jwe@gnu.org>.
8854
8855 2010-03-28  Bruno Haible  <bruno@clisp.org>
8856
8857         Fix link errors on mingw.
8858         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
8859         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
8860         $(LIBSOCKET).
8861         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
8862         $(LIBSOCKET).
8863
8864 2010-03-28  Bruno Haible  <bruno@clisp.org>
8865             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8866
8867         lib-ignore: Determine different options for different compilers.
8868         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
8869         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
8870         Add comments.
8871         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
8872         * NEWS: Mention the change.
8873
8874 2010-03-27  Bruno Haible  <bruno@clisp.org>
8875
8876         Remove unused GNULIB_XYZ macro definitions.
8877         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8878         * modules/fseek (configure.ac): Likewise.
8879         * modules/ioctl (configure.ac): Likewise.
8880         * modules/open (configure.ac): Likewise.
8881         * modules/stdlib-safer (configure.ac): Likewise.
8882
8883 2010-03-27  Bruno Haible  <bruno@clisp.org>
8884
8885         Add a remark about certain modules.
8886         * modules/malloc (Comment): New section.
8887         * modules/realloc (Comment): Likewise.
8888         * modules/sigpipe (Comment): Likewise.
8889
8890 2010-03-27  Bruno Haible  <bruno@clisp.org>
8891
8892         Resolve conflict between the two kinds of module indicators.
8893         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
8894         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
8895         * modules/canonicalize (configure.ac): Invoke
8896         gl_MODULE_INDICATOR_FOR_TESTS.
8897         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
8898         GNULIB_XYZ.
8899         * tests/test-dirent-c++.cc: Likewise.
8900         * tests/test-dirent-safer.c: Likewise.
8901         * tests/test-dup2.c: Likewise.
8902         * tests/test-fchdir.c: Likewise.
8903         * tests/test-fcntl-h-c++.cc: Likewise.
8904         * tests/test-getopt.c: Likewise.
8905         * tests/test-getopt.h: Likewise.
8906         * tests/test-langinfo-c++.cc: Likewise.
8907         * tests/test-locale-c++.cc: Likewise.
8908         * tests/test-math-c++.cc: Likewise.
8909         * tests/test-pty-c++.cc: Likewise.
8910         * tests/test-search-c++.cc: Likewise.
8911         * tests/test-signal-c++.cc: Likewise.
8912         * tests/test-spawn-c++.cc: Likewise.
8913         * tests/test-stdio-c++.cc: Likewise.
8914         * tests/test-stdlib-c++.cc: Likewise.
8915         * tests/test-string-c++.cc: Likewise.
8916         * tests/test-sys_ioctl-c++.cc: Likewise.
8917         * tests/test-sys_select-c++.cc: Likewise.
8918         * tests/test-sys_socket-c++.cc: Likewise.
8919         * tests/test-sys_stat-c++.cc: Likewise.
8920         * tests/test-sys_time-c++.cc: Likewise.
8921         * tests/test-time-c++.cc: Likewise.
8922         * tests/test-unistd-c++.cc: Likewise.
8923         * tests/test-wchar-c++.cc: Likewise.
8924         * tests/uninorm/test-u8-nfc.c: Likewise.
8925         * tests/uninorm/test-u8-nfd.c: Likewise.
8926         * tests/uninorm/test-u8-nfkc.c: Likewise.
8927         * tests/uninorm/test-u8-nfkd.c: Likewise.
8928         * tests/uninorm/test-u16-nfc.c: Likewise.
8929         * tests/uninorm/test-u16-nfd.c: Likewise.
8930         * tests/uninorm/test-u16-nfkc.c: Likewise.
8931         * tests/uninorm/test-u16-nfkd.c: Likewise.
8932         * tests/uninorm/test-u32-nfc.c: Likewise.
8933         * tests/uninorm/test-u32-nfc-big.c: Likewise.
8934         * tests/uninorm/test-u32-nfd.c: Likewise.
8935         * tests/uninorm/test-u32-nfd-big.c: Likewise.
8936         * tests/uninorm/test-u32-nfkc.c: Likewise.
8937         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
8938         * tests/uninorm/test-u32-nfkd.c: Likewise.
8939         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
8940         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8941
8942 2010-03-27  Bruno Haible  <bruno@clisp.org>
8943
8944         Distinguish two kinds of module indicators.
8945         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
8946         gl_MODULE_INDICATOR.
8947         (gl_MODULE_INDICATOR): New macro.
8948         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8949         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
8950         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8951         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8952         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8953         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8954         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8955         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8956         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8957         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8958         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8959         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8960         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8961         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8962         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8963         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8964         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8965         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8966         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8967         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8968         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8969         * modules/cloexec (configure.ac): Likewise.
8970         * modules/getopt-gnu (configure.ac): Likewise.
8971         * modules/uninorm/u8-normalize (configure.ac): Likewise.
8972         * modules/uninorm/u16-normalize (configure.ac): Likewise.
8973         * modules/uninorm/u32-normalize (configure.ac): Likewise.
8974         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
8975
8976 2010-03-27  Bruno Haible  <bruno@clisp.org>
8977
8978         New module description field 'Comment'.
8979         * gnulib-tool: New option --extract-comment.
8980         (func_usage): Document it.
8981         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
8982         (func_get_comment): New function.
8983         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
8984
8985 2010-03-27  Bruno Haible  <bruno@clisp.org>
8986
8987         Addendum to 2010-02-07 commit.
8988         * gnulib-tool (func_usage): Document --extract-applicability option.
8989
8990 2010-03-27  Bruno Haible  <bruno@clisp.org>
8991
8992         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
8993         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
8994         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
8995         rather than link errors.
8996
8997 2010-03-27  Bruno Haible  <bruno@clisp.org>
8998
8999         Avoid side effects from tests-related modules on the compilation of lib.
9000         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
9001         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
9002         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
9003         parameter. Emit into AM_CPPFLAGS a definition of the designated C
9004         macro.
9005         (func_import): Define a witness macro. Assign it a value that depends
9006         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
9007         tests-related modules.
9008         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
9009         Reported by Jim Meyering.
9010
9011 2010-03-27  Bruno Haible  <bruno@clisp.org>
9012
9013         Factorize common .m4 code.
9014         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
9015         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
9016         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
9017         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
9018         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
9019         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
9020         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
9021         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
9022         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
9023         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
9024         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
9025         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
9026         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
9027         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
9028         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
9029         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
9030         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
9031         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
9032         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
9033         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
9034         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
9035         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
9036         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
9037         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
9038         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
9039         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
9040         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
9041         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
9042         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
9043         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
9044         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
9045         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
9046
9047 2010-03-27  Bruno Haible  <bruno@clisp.org>
9048
9049         Fix a compilation error on Cygwin with g++ >= 4.3.
9050         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
9051         if it is undefined or if we alias it to chmod.
9052         (lstat): Don't warn about the use of this function if it is undefined
9053         or if we alias it to stat.
9054         Reported by Simon Josefsson.
9055
9056 2010-03-27  Bruno Haible  <bruno@clisp.org>
9057
9058         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
9059         * modules/getlogin (configure.ac): Update.
9060
9061         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
9062         * modules/getlogin_r (configure.ac): Update.
9063
9064         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
9065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
9066         * modules/inet_ntop (configure.ac): Update.
9067
9068         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
9069         * modules/inet_pton (configure.ac): Update.
9070
9071         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
9072         * modules/mbslen (configure.ac): Update.
9073
9074         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
9075         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
9076         * modules/forkpty (configure.ac): Update.
9077         * modules/openpty (configure.ac): Update.
9078
9079 2010-03-26  Simon Josefsson  <simon@josefsson.org>
9080
9081         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
9082         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
9083
9084 2010-03-25  Eric Blake  <eblake@redhat.com>
9085
9086         maint: use pragma consistently across replacement headers
9087         * lib/ctype.in.h (system_header): Hoist for consistent placement.
9088         * lib/dirent.in.h (system_header): Likewise.
9089         * lib/errno.in.h (system_header): Likewise.
9090         * lib/float.in.h (system_header): Likewise.
9091         * lib/getopt.in.h (system_header): Likewise.
9092         * lib/iconv.in.h (system_header): Likewise.
9093         * lib/inttypes.in.h (system_header): Likewise.
9094         * lib/langinfo.in.h (system_header): Likewise.
9095         * lib/locale.in.h (system_header): Likewise.
9096         * lib/math.in.h (system_header): Likewise.
9097         * lib/netdb.in.h (system_header): Likewise.
9098         * lib/netinet_in.in.h (system_header): Likewise.
9099         * lib/pty.in.h (system_header): Likewise.
9100         * lib/sched.in.h (system_header): Likewise.
9101         * lib/se-selinux.in.h (system_header): Likewise.
9102         * lib/search.in.h (system_header): Likewise.
9103         * lib/spawn.in.h (system_header): Likewise.
9104         * lib/stdarg.in.h (system_header): Likewise.
9105         * lib/stdint.in.h (system_header): Likewise.
9106         * lib/string.in.h (system_header): Likewise.
9107         * lib/strings.in.h (system_header): Likewise.
9108         * lib/sys_file.in.h (system_header): Likewise.
9109         * lib/sys_ioctl.in.h (system_header): Likewise.
9110         * lib/sys_socket.in.h (system_header): Likewise.
9111         * lib/sys_times.in.h (system_header): Likewise.
9112         * lib/sys_utsname.in.h (system_header): Likewise.
9113         * lib/sys_wait.in.h (system_header): Likewise.
9114         * lib/sysexits.in.h (system_header): Likewise.
9115         * lib/unistd.in.h (system_header): Likewise.
9116         * lib/wctype.in.h (system_header): Likewise.
9117
9118         arpa/inet: fix mingw compilation warning
9119         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
9120         Reported by Matthew Bolte.
9121
9122 2010-03-25  Bruno Haible  <bruno@clisp.org>
9123
9124         Avoid collision between gnulib wrapper and libintl wrapper.
9125         * lib/printf.c (printf): Don't define if a printf wrapper is already
9126         defined in intl/printf.c.
9127         Reported by Michel Boaventura <michel@michelboaventura.com>.
9128
9129 2010-03-25  Bruno Haible  <bruno@clisp.org>
9130
9131         Use ANSI C.
9132         * lib/readutmp.h (getutent): Provide ANSI C prototype.
9133
9134 2010-03-25  Bruno Haible  <bruno@clisp.org>
9135
9136         Minor formatting changes.
9137         * lib/acosl.c: Insert space before function argument list.
9138         * lib/argz.c: Likewise.
9139         * lib/asinl.c: Likewise.
9140         * lib/expl.c: Likewise.
9141         * lib/gen-uni-tables.c: Likewise.
9142         * lib/gettext.h: Likewise.
9143         * lib/glthread/lock.h: Likewise.
9144         * lib/tanl.c: Likewise.
9145         * lib/uniname/uniname.c: Likewise.
9146         * tests/test-idpriv-drop.c: Likewise.
9147         * tests/test-idpriv-droptemp.c: Likewise.
9148         * tests/test-lock.c: Likewise.
9149         * tests/test-tls.c: Likewise.
9150         * lib/argp-help.c: Insert space before function-like macro argument
9151         list.
9152         * lib/memcmp.c: Likewise.
9153         * tests/test-base64.c: Likewise.
9154         * lib/localename.c: Insert space before sizeof's argument list.
9155         * lib/safe-alloc.h: Likewise.
9156         * lib/file-set.h: Insert space before macro argument list.
9157         * tests/test-argp.c: Likewise.
9158         * lib/argp-namefrob.h: Insert space before function parameter list.
9159         * lib/getaddrinfo.c: Likewise.
9160         * lib/netdb.in.h: Likewise.
9161         * lib/parse-duration.h: Likewise.
9162         * lib/parse-duration.c: Likewise.
9163         * lib/poll.c: Likewise.
9164         * lib/select.c: Likewise.
9165         * lib/trim.h: Likewise.
9166         * tests/test-usleep.c: Likewise.
9167         * lib/ldexpl.c: Insert space before function parameter list and before
9168         function argument list.
9169         * lib/logl.c: Likewise.
9170         * lib/sqrtl.c: Likewise.
9171         * lib/trim.c: Likewise.
9172         * lib/cosl.c: Use GNU style indentation. Insert space before function
9173         argument list.
9174         * lib/sinl.c: Likewise.
9175         * lib/tsearch.c: Insert space after 'for'.
9176         Reported by Jim Meyering.
9177
9178 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
9179
9180         * maint.mk (sc_Wundef_boolean): Check for the presence of the
9181         config header before grepping, as it's not present before
9182         autoreconf/configure are run.  Reported by Simon Josefsson.
9183
9184 2010-03-23  Bruno Haible  <bruno@clisp.org>
9185
9186         pt_chown: Make it work with automake < 1.11.
9187         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
9188         Reported by Simon Josefsson.
9189
9190 2010-03-23  Bruno Haible  <bruno@clisp.org>
9191
9192         pt_chown: Don't depend on GPLed modules.
9193         * lib/pt_chown.c: Don't include idpriv.h.
9194         (main): Don't drop privileges.
9195         * modules/pt_chown (Depends-on): Remove idpriv-drop.
9196         Reported by Simon Josefsson.
9197
9198 2010-03-24  Simon Josefsson  <simon@josefsson.org>
9199
9200         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
9201         suggestions from karl@freefriends.org (Karl Berry).
9202
9203 2010-03-22  Eric Blake  <eblake@redhat.com>
9204
9205         gethostname: further tweaks
9206         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
9207         are overriding gethostname.
9208         Suggested by Bruno Haible.
9209
9210 2010-03-21  Bruno Haible  <bruno@clisp.org>
9211
9212         Fix comments.
9213         * lib/forkpty.c (rpl_forkpty): Fix comment.
9214         * lib/openpty.c (rpl_openpty): Likewise.
9215         Reported by Eric Blake.
9216
9217 2010-03-22  Eric Blake  <eblake@redhat.com>
9218
9219         gethostname: fix build on mingw
9220         * lib/unistd.in.h (includes): Work around fact that mingw
9221         <winsock2.h> re-includes <unistd.h>, by avoiding any
9222         redeclarations if we are being included by <winsock2.h>.
9223         Reported by Matthias Bolte.
9224
9225 2010-03-21  Bruno Haible  <bruno@clisp.org>
9226
9227         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
9228         * lib/forkpty.c (forkpty): New replacement function, from glibc with
9229         modifications.
9230         * lib/pty.in.h (forkpty): Update declaration. Add comments.
9231         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
9232         provide the replacement.
9233         * modules/forkpty (Depends-on): Add openpty, login_tty.
9234         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
9235         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
9236         * doc/glibc-functions/forkpty.texi: More supported platforms.
9237         * config/srclist.txt: Add forkpty.c (commented).
9238
9239 2010-03-21  Bruno Haible  <bruno@clisp.org>
9240
9241         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
9242         (Makefile.am): Verify that PTY_LIB is defined.
9243
9244         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
9245
9246 2010-03-21  Bruno Haible  <bruno@clisp.org>
9247
9248         Tests for module 'login_tty'.
9249         * modules/login_tty-tests: New file.
9250         * tests/test-login_tty.c: New file.
9251
9252         New module 'login_tty'.
9253         * lib/login_tty.c: New file.
9254         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
9255         * modules/login_tty: New file.
9256         * doc/glibc-functions/login_tty.texi: Mention the new module.
9257
9258 2010-03-21  Bruno Haible  <bruno@clisp.org>
9259
9260         login_tty: Documentation.
9261         * doc/glibc-functions/login_tty.texi: New file.
9262         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
9263
9264 2010-03-21  Bruno Haible  <bruno@clisp.org>
9265
9266         pty: Consistent macro naming.
9267         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
9268         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
9269         * modules/pty (configure.ac): Update.
9270
9271 2010-03-21  Bruno Haible  <bruno@clisp.org>
9272
9273         Tests for openpty: Make stricter.
9274         * tests/test-openpty.c (main): Add test of canonical processing and
9275         erase.
9276         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
9277
9278         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
9279         * lib/openpty.c (openpty): New replacement function.
9280         * lib/pty.in.h: Include <termios.h>.
9281         (openpty): Update declaration. Add comments.
9282         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
9283         is not declared, arrange to provide the replacement. Check for _getpty
9284         and posix_openpt.
9285         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
9286         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
9287         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
9288         * modules/pty-tests (test_pty_c___LDADD): New variable.
9289         * doc/glibc-functions/openpty.texi: More supported platforms.
9290
9291 2010-03-21  Bruno Haible  <bruno@clisp.org>
9292
9293         setenv: Tweaks.
9294         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
9295         the test program.
9296         * doc/posix-functions/setenv.texi: Update platforms list.
9297
9298 2010-03-21  Bruno Haible  <bruno@clisp.org>
9299
9300         New module 'unlockpt'.
9301         * lib/unlockpt.c: New file, from glibc with modifications.
9302         * m4/unlockpt.m4: New file.
9303         * modules/unlockpt: New file.
9304         * lib/stdlib.in.h (unlockpt): New declaration.
9305         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
9306         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
9307         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
9308         HAVE_UNLOCKPT.
9309         * doc/posix-functions/unlockpt.texi: Mention the new module.
9310         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
9311         * config/srclist.txt: Add unlockpt.c (commented).
9312
9313 2010-03-21  Jim Meyering  <meyering@redhat.com>
9314
9315         maint.mk: prohibit inclusion of "intprops.h" without use
9316         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
9317
9318 2010-03-21  Bruno Haible  <bruno@clisp.org>
9319
9320         New module 'grantpt'.
9321         * lib/grantpt.c: New file, from glibc with modifications.
9322         * m4/grantpt.m4: New file.
9323         * modules/grantpt: New file.
9324         * lib/stdlib.in.h (grantpt): New declaration.
9325         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
9326         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
9327         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
9328         HAVE_GRANTPT.
9329         * doc/posix-functions/grantpt.texi: Mention the new module.
9330         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
9331         * config/srclist.txt: Add grantpt.c (commented).
9332
9333 2010-03-21  Bruno Haible  <bruno@clisp.org>
9334
9335         New module 'pt_chown'.
9336         * lib/pt_chown.c: New file, from glibc with modifications.
9337         * lib/pty-private.h: New file, from glibc with modifications.
9338         * modules/pt_chown: New file.
9339         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
9340
9341 2010-03-21  Bruno Haible  <bruno@clisp.org>
9342
9343         Tests for module 'ptsname'.
9344         * modules/ptsname-tests: New file.
9345         * tests/test-ptsname.c: New file.
9346
9347         New module 'ptsname'.
9348         * lib/ptsname.c: New file, from glibc with modifications.
9349         * m4/ptsname.m4: New file.
9350         * modules/ptsname: New file.
9351         * lib/stdlib.in.h (ptsname): New declaration.
9352         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
9353         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
9354         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
9355         HAVE_PTSNAME.
9356         * doc/posix-functions/ptsname.texi: Mention the new module.
9357         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
9358         * config/srclist.txt: Add ptsname.c (commented).
9359
9360 2010-03-21  Bruno Haible  <bruno@clisp.org>
9361
9362         Tests for module 'ttyname_r'.
9363         * modules/ttyname_r-tests: New file.
9364         * tests/test-ttyname_r.c: New file.
9365
9366         New module 'ttyname_r'.
9367         * lib/ttyname_r.c: New file.
9368         * m4/ttyname_r.m4: New file.
9369         * modules/ttyname_r: New file.
9370         * lib/unistd.in.h (ttyname_r): New declaration.
9371         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
9372         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
9373         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
9374         HAVE_TTYNAME_R.
9375         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
9376         * doc/posix-functions/ttyname_r.texi: Mention the new module.
9377
9378 2010-03-20  Bruno Haible  <bruno@clisp.org>
9379
9380         signal: Undefine macro definitions in C++ mode.
9381         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
9382         sigfillset): Undefine macro definitions from the system header in C++
9383         mode.
9384         Reported by John W. Eaton <jwe@gnu.org>.
9385
9386 2010-03-20  Bruno Haible  <bruno@clisp.org>
9387
9388         Ensure no #include statements inside extern "C" { ... }.
9389         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
9390         contain #include statements.
9391         * lib/time.in.h: Likewise.
9392
9393 2010-03-20  Bruno Haible  <bruno@clisp.org>
9394
9395         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
9396         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
9397         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
9398         Reported by John W. Eaton <jwe@gnu.org>.
9399
9400 2010-03-20  Bruno Haible  <bruno@clisp.org>
9401
9402         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
9403         Reported by Jim Meyering.
9404
9405 2010-03-20  Bruno Haible  <bruno@clisp.org>
9406
9407         pipe: Set errno upon failure.
9408         * lib/pipe.h: Specify that when -1 is returned, errno is set.
9409         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
9410         errno value in error message.
9411
9412 2010-03-20  Bruno Haible  <bruno@clisp.org>
9413             Jim Meyering  <meyering@redhat.com>
9414
9415         lchown: Avoid "unused variable" warning.
9416         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
9417
9418 2010-03-20  Bruno Haible  <bruno@clisp.org>
9419
9420         Work around unlink() bug on MacOS X 10.5.6.
9421         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
9422         attempting to unlink a parent directory.
9423         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
9424         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
9425         activate for the replacement function.
9426         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
9427
9428 2010-03-20  Bruno Haible  <bruno@clisp.org>
9429
9430         Fix link errors on Solaris 8.
9431         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
9432         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
9433
9434 2010-03-19  Jim Meyering  <meyering@redhat.com>
9435
9436         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
9437         The _LIBC implementation of build_range_exp correctly honors the
9438         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
9439         However, the non-_LIBC implementation would ignore that syntax-bit
9440         flag and return REG_ERANGE unconditionally.
9441         This change makes it honor that flag.
9442         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
9443         Make two pointer parameters "const".
9444         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
9445         (parse_bracket_exp): Update caller.
9446
9447         regex.m4: correct the reversed range endpoint ([b-a]) test
9448         * m4/regex.m4: When requiring that [b-a] evoke failure,
9449         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
9450         test pass once again for x86-based systems.
9451
9452 2010-03-19  Bruno Haible  <bruno@clisp.org>
9453
9454         scandir: Fix link error on Solaris 8.
9455         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
9456         macros.
9457
9458 2010-03-19  Bruno Haible  <bruno@clisp.org>
9459
9460         getusershell: Fix documentation.
9461         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
9462         module.
9463         * doc/glibc-functions/setusershell.texi: Likewise.
9464
9465         getusershell: Provide declaration, missing on Solaris 9.
9466         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
9467         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
9468         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
9469         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
9470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9471         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
9472         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
9473         HAVE_GETUSERSHELL.
9474         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
9475
9476 2010-03-19  Bruno Haible  <bruno@clisp.org>
9477
9478         wctype: Provide iswblank function.
9479         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
9480         exists and is fine.
9481         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
9482         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
9483         * tests/test-wctype.c (main): Re-enable the iswblank tests.
9484         * doc/posix-functions/iswblank.texi: Update.
9485
9486 2010-03-19  Bruno Haible  <bruno@clisp.org>
9487
9488         Tests of module 'pty' in C++ mode.
9489         * modules/pty-tests: New file.
9490         * tests/test-pty-c++.cc: New file.
9491         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9492
9493 2010-03-19  Eric Blake  <eblake@redhat.com>
9494
9495         logb: fix documentation
9496         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
9497         1.5 declaration bug.
9498
9499         forkpty, openpty: prefer glibc's const-safe prototype
9500         * lib/forkpty.c (rpl_forkpty): New file.
9501         * lib/openpty.c (rpl_openpty): Likewise.
9502         * modules/forkpty (Files): Distribute it.
9503         * modules/openpty (Files): Likewise.
9504         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
9505         check...
9506         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
9507         replacement for for non-const BSD signature.
9508         * modules/pty (Makefile.am): Substitute witnesses.
9509         * lib/pty.in.h (forkpty, openpty): Declare replacements.
9510         * tests/test-forkpty.c: Update signature check.
9511         * tests/test-openpty.c: Likewise.
9512         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
9513         * doc/glibc-functions/openpty.texi (openpty): Likewise.
9514
9515         forkpty, openpty: split functions into new modules
9516         * modules/pty (Makefile.am): Substitute new witnesses.
9517         (Libraries): Move library detection...
9518         * modules/forkpty: ...into new module.
9519         * modules/openpty: Another new module.
9520         * modules/pty-tests: Rename and split...
9521         * modules/forkpty-tests: ...to this...
9522         * modules/openpty-tests: ...and this.
9523         * tests/test-pty.c: Rename and split...
9524         * tests/test-forkpty.c: ...to this...
9525         * tests/test-openpty.c: ...and this.
9526         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
9527         (gl_PTY): Split library searching...
9528         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
9529         (gl_FORKPTY, gl_OPENPTY): New macros.
9530         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
9531         * NEWS: Mention the split.
9532         * MODULES.html.sh (Misc): Document the modules.
9533         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
9534         * doc/glibc-functions/openpty.texi (openpty): Likewise.
9535
9536         pty: improve replacement header
9537         * lib/pty.in.h: New file.
9538         * modules/pty (Files): Ship it.
9539         (Makefile.am): Always build replacement.
9540         * m4/pty.m4: Rename...
9541         * m4/pty_h.m4: ...to this.
9542         (gl_PTY): Modernize setting of witness macros; update check of
9543         forkpty to take proper advantage of cache.
9544         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
9545
9546         getopt: avoid compiler warning
9547         * lib/getopt.c (attribute_hidden): Remove unused macro.
9548
9549 2010-03-18  Bruno Haible  <bruno@clisp.org>
9550
9551         Fix link errors on Solaris 8.
9552         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
9553         * modules/search-tests (test_search_c___LDADD): Likewise.
9554         * modules/signal-tests (test_signal_c___LDADD): Likewise.
9555         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
9556         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
9557         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
9558         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
9559         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
9560         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
9561
9562 2010-03-18  Bruno Haible  <bruno@clisp.org>
9563
9564         Fix bug introduced on 2010-03-14.
9565         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
9566         (gl_SPAWN_H): Require it.
9567         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
9568         Reported by Simon Josefsson.
9569
9570 2010-03-18  Bruno Haible  <bruno@clisp.org>
9571
9572         Fix typo introduced on 2009-12-31.
9573         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
9574         posix_spawn_file_actions_adddup2.
9575
9576 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
9577         and Eric Blake  <eblake@redhat.com>
9578
9579         test-vc-list-files-git: make more robust
9580         * tests/test-vc-list-files-git.sh: Unset problematic environment
9581         variables.  Chain commands together.
9582
9583 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
9584
9585         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
9586         `AC_CHECK_DECL' invocation.
9587
9588 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
9589
9590         * lib/inttostr.c (inttostr): Make sure the invocation of verify
9591         appears before executable statements. Suggested by Petr Sumbera
9592         <Petr.Sumbera@Sun.COM>.
9593
9594 2010-03-14  Bruno Haible  <bruno@clisp.org>
9595
9596         * tests/test-flock.c (test_exclusive): Comment out a test that causes
9597         portability problems. Instead use a simpler test.
9598         (main): Check that invalid arguments are rejected only on Linux.
9599
9600 2010-03-14  Bruno Haible  <bruno@clisp.org>
9601
9602         Fix bug introduced on 2009-12-31.
9603         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9604         gl_PREREQ_SYS_H_WINSOCK2 always.
9605         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
9606         SYS_SOCKET_H variable.
9607         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
9608         Update comments.
9609         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
9610         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9611         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9612         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9613         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9614
9615 2010-03-14  Bruno Haible  <bruno@clisp.org>
9616
9617         Fix values returned by sinl, cosl.
9618         * lib/trigl.h: Add specification comments.
9619         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
9620         that combines the values from the precomputed table with the values of
9621         the Chebyshev polynomials.
9622
9623 2010-03-14  Bruno Haible  <bruno@clisp.org>
9624
9625         Fix compilation error when modules 'posix_spawn[p]' are not used.
9626         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
9627         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
9628
9629 2010-03-14  Bruno Haible  <bruno@clisp.org>
9630
9631         Fix compilation error on mingw when module 'time_r' is not used.
9632         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
9633         is 1.
9634         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
9635         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9636         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
9637         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
9638
9639 2010-03-14  Bruno Haible  <bruno@clisp.org>
9640
9641         Fix compilation error with Sun C.
9642         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
9643         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
9644         instead of GCC specific ULONG_LONG_MAX.
9645         * lib/xstrtoll.c: Likewise.
9646         * lib/xstrtoull.c: Likewise.
9647
9648 2010-03-13  Bruno Haible  <bruno@clisp.org>
9649
9650         Allow the user to disable C++ code and tests.
9651         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
9652         (gl_PROG_ANSI_CXX): Require it.
9653
9654 2010-03-13  Bruno Haible  <bruno@clisp.org>
9655
9656         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
9657         cases.
9658
9659 2010-03-13  Bruno Haible  <bruno@clisp.org>
9660
9661         Test that gnulib does not break the standard C++ headers.
9662         * tests/test-locale-c++2.cc: New file.
9663         * modules/locale-tests (Files): Add it.
9664         (Makefile.am): Compile it for test-locale-c++.
9665         * tests/test-math-c++2.cc: New file.
9666         * modules/math-tests (Files): Add it.
9667         (Makefile.am): Compile it for test-math-c++.
9668         * tests/test-signal-c++2.cc: New file.
9669         * modules/signal-tests (Files): Add it.
9670         (Makefile.am): Compile it for test-signal-c++.
9671         * tests/test-stdio-c++2.cc: New file.
9672         * modules/stdio-tests (Files): Add it.
9673         (Makefile.am): Compile it for test-stdio-c++.
9674         * tests/test-stdlib-c++2.cc: New file.
9675         * modules/stdlib-tests (Files): Add it.
9676         (Makefile.am): Compile it for test-stdlib-c++.
9677         * tests/test-string-c++2.cc: New file.
9678         * modules/string-tests (Files): Add it.
9679         (Makefile.am): Compile it for test-string-c++.
9680         * tests/test-time-c++2.cc: New file.
9681         * modules/time-tests (Files): Add it.
9682         (Makefile.am): Compile it for test-time-c++.
9683         Reported by John W. Eaton <jwe@gnu.org>.
9684
9685 2010-03-13  Bruno Haible  <bruno@clisp.org>
9686
9687         * gnulib-tool (func_usage): Clarify which options are available for
9688         --create-testdir and --create-megatestdir.
9689
9690 2010-03-13  Bruno Haible  <bruno@clisp.org>
9691
9692         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
9693         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
9694         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
9695         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9696         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
9697         when appropriate.
9698         Reported by Jim Meyering.
9699
9700 2010-03-12  Simon Josefsson  <simon@josefsson.org>
9701
9702         * gnulib-tool (func_import): Explain origin of code.
9703
9704 2010-03-12  Bruno Haible  <bruno@clisp.org>
9705
9706         Fix problem with automake's definition of CXXLINK.
9707         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
9708         Reported by Simon Josefsson and Ludovic Courtès.
9709
9710 2010-03-12  Bruno Haible  <bruno@clisp.org>
9711
9712         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
9713         stable releases.
9714
9715 2010-03-11  Bruno Haible  <bruno@clisp.org>
9716
9717         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
9718         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
9719         whether the system provides one variant or multiple variants of the
9720         function.
9721         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
9722         C++ compilers.
9723         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
9724         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
9725         Reported by Jim Meyering.
9726
9727 2010-03-09  Simon Josefsson  <simon@josefsson.org>
9728
9729         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
9730
9731 2010-03-08  Bruno Haible  <bruno@clisp.org>
9732
9733         gnulib-tool: Add support for --libtool in --create-testdir.
9734         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
9735         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
9736
9737 2010-03-08  Eric Blake  <eblake@redhat.com>
9738
9739         gnulib-tool.texi: mention possibility of git submodule
9740         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
9741         submodules.
9742         * doc/.gitignore: Ignore another generated file.
9743
9744 2010-03-08  Karl Berry  <karl@gnu.org>
9745
9746         * doc/gnulib-tool.texi (VCS Issues): Mention third option
9747         of committing gnulib files while skipping others.
9748
9749 2010-03-07  Bruno Haible  <bruno@clisp.org>
9750
9751         Tests of module 'wctype' in C++ mode.
9752         * tests/test-wctype-c++.cc: New file.
9753         * modules/wctype-tests (Files): Add it and tests/signature.h.
9754         (Depends-on): Add ansi-c++-opt.
9755         (Makefile.am): Arrange to compile and run test-wctype-c++.
9756
9757         Tests of module 'wchar' in C++ mode.
9758         * tests/test-wchar-c++.cc: New file.
9759         * modules/wchar-tests (Files): Add it and tests/signature.h.
9760         (Depends-on): Add ansi-c++-opt.
9761         (Makefile.am): Arrange to compile and run test-wchar-c++.
9762         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
9763         gl_MODULE_INDICATOR.
9764
9765         Tests of module 'unistd' in C++ mode.
9766         * tests/test-unistd-c++.cc: New file.
9767         * modules/unistd-tests (Files): Add it and tests/signature.h.
9768         (Depends-on): Add ansi-c++-opt.
9769         (Makefile.am): Arrange to compile and run test-unistd-c++.
9770         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
9771         gl_MODULE_INDICATOR.
9772
9773         Tests of module 'time' in C++ mode.
9774         * tests/test-time-c++.cc: New file.
9775         * modules/time-tests (Files): Add it and tests/signature.h.
9776         (Depends-on): Add ansi-c++-opt.
9777         (Makefile.am): Arrange to compile and run test-time-c++.
9778         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9779
9780         Tests of module 'sys_time' in C++ mode.
9781         * tests/test-sys_time-c++.cc: New file.
9782         * modules/sys_time-tests (Files): Add it and tests/signature.h.
9783         (Depends-on): Add ansi-c++-opt.
9784         (Makefile.am): Arrange to compile and run test-sys_time-c++.
9785         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
9786         gl_MODULE_INDICATOR.
9787
9788         Tests of module 'sys_stat' in C++ mode.
9789         * tests/test-sys_stat-c++.cc: New file.
9790         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
9791         (Depends-on): Add ansi-c++-opt.
9792         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
9793         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
9794         gl_MODULE_INDICATOR.
9795
9796         Tests of module 'sys_socket' in C++ mode.
9797         * tests/test-sys_socket-c++.cc: New file.
9798         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
9799         (Depends-on): Add ansi-c++-opt.
9800         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
9801         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
9802         gl_MODULE_INDICATOR.
9803
9804         Tests of module 'sys_select' in C++ mode.
9805         * tests/test-sys_select-c++.cc: New file.
9806         * modules/sys_select-tests (Files): Add it and tests/signature.h.
9807         (Depends-on): Add ansi-c++-opt.
9808         (Makefile.am): Arrange to compile and run test-sys_select-c++.
9809         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
9810         gl_MODULE_INDICATOR.
9811
9812         Tests of module 'sys_ioctl' in C++ mode.
9813         * tests/test-sys_ioctl-c++.cc: New file.
9814         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
9815         (Depends-on): Add ansi-c++-opt.
9816         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
9817         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
9818         gl_MODULE_INDICATOR.
9819
9820         Tests of module 'string' in C++ mode.
9821         * tests/test-string-c++.cc: New file.
9822         * modules/string-tests (Files): Add it and tests/signature.h.
9823         (Depends-on): Add ansi-c++-opt.
9824         (Makefile.am): Arrange to compile and run test-string-c++.
9825         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
9826         gl_MODULE_INDICATOR.
9827
9828         Tests of module 'stdlib' in C++ mode.
9829         * tests/test-stdlib-c++.cc: New file.
9830         * modules/stdlib-tests (Files): Add it and tests/signature.h.
9831         (Depends-on): Add ansi-c++-opt.
9832         (Makefile.am): Arrange to compile and run test-stdlib-c++.
9833         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
9834         gl_MODULE_INDICATOR.
9835
9836         Tests of module 'stdio' in C++ mode.
9837         * tests/test-stdio-c++.cc: New file.
9838         * modules/stdio-tests (Files): Add it and tests/signature.h.
9839         (Depends-on): Add ansi-c++-opt.
9840         (Makefile.am): Arrange to compile and run test-stdio-c++.
9841         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
9842         gl_MODULE_INDICATOR.
9843
9844         Tests of module 'spawn' in C++ mode.
9845         * tests/test-spawn-c++.cc: New file.
9846         * modules/spawn-tests (Files): Add it and tests/signature.h.
9847         (Depends-on): Add ansi-c++-opt.
9848         (Makefile.am): Arrange to compile and run test-spawn-c++.
9849         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
9850         gl_MODULE_INDICATOR.
9851
9852         Tests of module 'signal' in C++ mode.
9853         * tests/test-signal-c++.cc: New file.
9854         * modules/signal-tests (Files): Add it and tests/signature.h.
9855         (Depends-on): Add ansi-c++-opt.
9856         (Makefile.am): Arrange to compile and run test-signal-c++.
9857         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
9858         gl_MODULE_INDICATOR.
9859
9860         Tests of module 'search' in C++ mode.
9861         * tests/test-search-c++.cc: New file.
9862         * modules/search-tests (Files): Add it and tests/signature.h.
9863         (Depends-on): Add ansi-c++-opt.
9864         (Makefile.am): Arrange to compile and run test-search-c++.
9865         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
9866         gl_MODULE_INDICATOR.
9867
9868         Tests of module 'math' in C++ mode.
9869         * tests/test-math-c++.cc: New file.
9870         * modules/math-tests (Files): Add it and tests/signature.h.
9871         (Depends-on): Add ansi-c++-opt.
9872         (Makefile.am): Arrange to compile and run test-math-c++.
9873         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9874
9875         Tests of module 'locale' in C++ mode.
9876         * tests/test-locale-c++.cc: New file.
9877         * modules/locale-tests (Files): Add it and tests/signature.h.
9878         (Depends-on): Add ansi-c++-opt.
9879         (Makefile.am): Arrange to compile and run test-locale-c++.
9880         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
9881         gl_MODULE_INDICATOR.
9882
9883         Tests of module 'langinfo' in C++ mode.
9884         * tests/test-langinfo-c++.cc: New file.
9885         * modules/langinfo-tests (Files): Add it and tests/signature.h.
9886         (Depends-on): Add ansi-c++-opt.
9887         (Makefile.am): Arrange to compile and run test-langinfo-c++.
9888         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
9889         gl_MODULE_INDICATOR.
9890
9891         Tests of module 'iconv-h' in C++ mode.
9892         * tests/test-iconv-h-c++.cc: New file.
9893         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
9894         (Depends-on): Add ansi-c++-opt.
9895         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
9896
9897         Tests of module 'glob' in C++ mode.
9898         * tests/test-glob-c++.cc: New file.
9899         * modules/glob-tests (Files): Add it.
9900         (Depends-on): Add ansi-c++-opt.
9901         (Makefile.am): Arrange to compile and run test-glob-c++.
9902
9903         Tests of module 'fcntl-h' in C++ mode.
9904         * tests/test-fcntl-h-c++.cc: New file.
9905         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
9906         (Depends-on): Add ansi-c++-opt.
9907         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
9908         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
9909         gl_MODULE_INDICATOR.
9910
9911         Tests of module 'dirent' in C++ mode.
9912         * tests/test-dirent-c++.cc: New file.
9913         * modules/dirent-tests (Files): Add it and tests/signature.h.
9914         (Depends-on): Add ansi-c++-opt.
9915         (Makefile.am): Arrange to compile and run test-dirent-c++.
9916         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9917         gl_MODULE_INDICATOR.
9918
9919         New module 'ansi-c++-opt'.
9920         * modules/ansi-c++-opt: New file.
9921         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
9922
9923         Document C++ namespace mode.
9924         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
9925
9926         wctype: Avoid #define replacements in C++ mode.
9927         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
9928         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
9929         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
9930         In C++, define a namespaced alias symbol.
9931         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
9932         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
9933         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
9934         rule.
9935
9936         wchar: Avoid #define replacements in C++ mode.
9937         * lib/wchar.in.h: Include c++defs.h.
9938         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
9939         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
9940         symbol.
9941         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
9942         * modules/wchar (Depends-on): Add c++defs.
9943         (Makefile.am): Update wchar.h rule.
9944
9945         unistd: Avoid #define replacements in C++ mode.
9946         * lib/unistd.in.h: Include c++defs.h.
9947         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
9948         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
9949         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
9950         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
9951         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
9952         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
9953         symbol.
9954         (environ): Update.
9955         * modules/unistd (Depends-on): Add c++defs.
9956         (Makefile.am): Update unistd.h rule.
9957
9958         time: Avoid #define replacements in C++ mode.
9959         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
9960         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
9961         define a namespaced alias symbol.
9962         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
9963         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
9964         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
9965         * modules/time (Depends-on): Add c++defs, warn-on-use.
9966         (Makefile.am): Update time.h rule.
9967         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9968         * modules/nanosleep (configure.ac): Likewise.
9969         * modules/strptime (configure.ac): Likewise.
9970         * modules/timegm (configure.ac): Likewise.
9971
9972         sys_time: Avoid #define replacements in C++ mode.
9973         * lib/sys_time.in.h: Include c++defs.h.
9974         (gettimeofday): In C++, define a namespaced alias symbol.
9975         * modules/sys_time (Depends-on): Add c++defs.
9976         (Makefile.am): Update sys/time.h rule.
9977
9978         sys_stat: Avoid #define replacements in C++ mode.
9979         * lib/sys_stat.in.h: Include c++defs.h.
9980         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
9981         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
9982         namespaced alias symbol.
9983         In C++, define a namespaced alias symbol.
9984         * modules/sys_stat (Depends-on): Add c++defs.
9985         (Makefile.am): Update sys/stat.h rule.
9986
9987         sys_socket: Avoid #define replacements in C++ mode.
9988         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
9989         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
9990         definitions also when the system has a <sys/socket.h>.
9991         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9992         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
9993         In C++, define a namespaced alias symbol.
9994         * modules/sys_socket (Depends-on): Add c++defs.
9995         (Makefile.am): Update sys/socket.h rule.
9996
9997         sys_select: Avoid #define replacements in C++ mode.
9998         * lib/sys_select.in.h: Include c++defs.h. Enable the function
9999         definitions also when the system has a <sys/select.h>.
10000         (select): In C++, define a namespaced alias symbol.
10001         * modules/sys_select (Depends-on): Add c++defs.
10002         (Makefile.am): Update sys/select.h rule.
10003
10004         sys_ioctl: Avoid #define replacements in C++ mode.
10005         * lib/sys_ioctl.in.h: Include c++defs.h.
10006         (ioctl): In C++, define a namespaced alias symbol.
10007         * modules/sys_ioctl (Depends-on): Add c++defs.
10008         (Makefile.am): Update sys/ioctl.h rule.
10009
10010         string: Avoid #define replacements in C++ mode.
10011         * lib/string.in.h: Include c++defs.h.
10012         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
10013         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10014         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10015         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
10016         strsignal, strverscmp): In C++, define a namespaced alias symbol.
10017         * modules/string (Depends-on): Add c++defs.
10018         (Makefile.am): Update string.h rule.
10019
10020         stdlib: Avoid #define replacements in C++ mode.
10021         * lib/stdlib.in.h: Include c++defs.h.
10022         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
10023         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
10024         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
10025         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
10026         symbol.
10027         * modules/stdlib (Depends-on): Add c++defs.
10028         (Makefile.am): Update stdlib.h rule.
10029
10030         stdio: Avoid #define replacements in C++ mode.
10031         * lib/stdio.in.h: Include c++defs.h.
10032         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
10033         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
10034         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
10035         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
10036         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
10037         namespaced alias symbol.
10038         * modules/stdio (Depends-on): Add c++defs.
10039         (Makefile.am): Update stdio.h rule.
10040
10041         spawn: Avoid #define replacements in C++ mode.
10042         * lib/spawn.in.h: Include c++defs.h.
10043         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10044         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10045         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10046         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10047         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10048         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10049         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10050         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10051         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10052         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10053         In C++, define a namespaced alias symbol.
10054         * modules/spawn (Depends-on): Add c++defs.
10055         (Makefile.am): Update spawn.h rule.
10056
10057         signal: Avoid #define replacements in C++ mode.
10058         * lib/signal.in.h: Include c++defs.h.
10059         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10060         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
10061         namespaced alias symbol.
10062         * modules/signal (Depends-on): Add c++defs.
10063         (Makefile.am): Update signal.h rule.
10064
10065         search: Avoid #define replacements in C++ mode.
10066         * lib/search.in.h: Include c++defs.h.
10067         (_gl_search_compar_fn, _gl_search_action_fn): New types.
10068         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
10069         symbol.
10070         * modules/search (Depends-on): Add c++defs.
10071         (Makefile.am): Update search.h rule.
10072
10073         math: Avoid #define replacements in C++ mode.
10074         * lib/math.in.h: Include c++defs.h.
10075         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
10076         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
10077         trunc, truncl): In C++, define a namespaced alias symbol.
10078         * modules/math (Depends-on): Add c++defs.
10079         (Makefile.am): Update math.h rule.
10080
10081         locale: Avoid #define replacements in C++ mode.
10082         * lib/locale.in.h: Include c++defs.h.
10083         (duplocale): In C++, define a namespaced alias symbol.
10084         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
10085         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
10086         * modules/locale (Depends-on): Add c++defs.
10087         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
10088
10089         langinfo: Avoid #define replacements in C++ mode.
10090         * lib/langinfo.in.h: Include c++defs.h.
10091         (nl_langinfo): In C++, define a namespaced alias symbol.
10092         * modules/langinfo (Depends-on): Add c++defs.
10093         (Makefile.am): Update langinfo.h rule.
10094
10095         iconv-h: Avoid #define replacements in C++ mode.
10096         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
10097         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
10098         symbol.
10099         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
10100         whenever iconv is present.
10101         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
10102         (Makefile.am): Update iconv.h rule.
10103
10104         glob: Avoid #define replacements in C++ mode.
10105         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
10106         (_gl_glob_errfunc_fn): New type.
10107         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
10108         symbol.
10109         * modules/glob (Depends-on): Add c++defs, warn-on-use.
10110         (Makefile.am): Update glob.h rule.
10111
10112         fcntl-h: Avoid #define replacements in C++ mode.
10113         * lib/fcntl.in.h: Include c++defs.h.
10114         (fcntl, open, openat): In C++, define a namespaced alias symbol.
10115         * modules/fcntl-h (Depends-on): Add c++defs.
10116         (Makefile.am): Update fcntl.h rule.
10117
10118         dirent: Avoid #define replacements in C++ mode.
10119         * lib/dirent.in.h: Include c++defs.h.
10120         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
10121         namespaced alias symbol.
10122         (dirfd): Update declaration.
10123         * modules/dirent (Depends-on): Add c++defs.
10124         (Makefile.am): Update dirent.h rule.
10125
10126         ctype: Make it usable in C++ code.
10127         * lib/ctype.in.h: Include c++defs.h.
10128         (isblank): Declare as extern "C".
10129         * modules/ctype (Depends-on): Add c++defs.
10130         (Makefile.am): Update ctype.h rule.
10131
10132         New module 'c++defs'.
10133         * modules/c++defs: New file.
10134         * build-aux/c++defs.h: New file.
10135         Reported by John W. Eaton <jwe@gnu.org>.
10136
10137 2010-03-07  Bruno Haible  <bruno@clisp.org>
10138
10139         logb: Provide missing declaration for Cygwin.
10140         * lib/math.in.h (logb): New declaration.
10141         * m4/logb.m4: New file.
10142         * modules/logb (Files): Add m4/logb.m4.
10143         (Depends-on): Add math.
10144         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
10145         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
10146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
10147         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
10148         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
10149
10150 2010-03-07  Bruno Haible  <bruno@clisp.org>
10151
10152         Fix test-cond link error.
10153         * tests/test-cond.c: Include <stdio.h>.
10154
10155 2010-03-07  Bruno Haible  <bruno@clisp.org>
10156
10157         Fix test-dirent-safer link error.
10158         * modules/dirent-safer-tests (Makefile.am): Define
10159         test_dirent_safer_LDADD.
10160
10161 2010-03-07  Bruno Haible  <bruno@clisp.org>
10162
10163         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
10164         among default module list.
10165
10166 2010-03-07  Bruno Haible  <bruno@clisp.org>
10167
10168         Fix link error on platforms with GNU libiconv.
10169         * modules/unistr/u8-strcoll-tests (Makefile): Define
10170         test_u8_strcoll_LDADD.
10171         * modules/unistr/u16-strcoll-tests (Makefile): Define
10172         test_u16_strcoll_LDADD.
10173         * modules/unistr/u32-strcoll-tests (Makefile): Define
10174         test_u32_strcoll_LDADD.
10175
10176 2010-03-07  Bruno Haible  <bruno@clisp.org>
10177
10178         Use POSIX declarations for socket functions.
10179         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
10180         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
10181         rpl_sendto): Change declaration to match POSIX.
10182         * lib/connect.c (rpl_connect): Likewise.
10183         * lib/accept.c (rpl_accept): Likewise.
10184         * lib/bind.c (rpl_bind): Likewise.
10185         * lib/getpeername.c (rpl_getpeername): Likewise.
10186         * lib/getsockname.c (rpl_getsockname): Likewise.
10187         * lib/recv.c (rpl_recv): Likewise.
10188         * lib/send.c (rpl_send): Likewise.
10189         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10190         * lib/sendto.c (rpl_sendto): Likewise.
10191
10192 2010-03-06  Bruno Haible  <bruno@clisp.org>
10193
10194         Clarify access, euidaccess, faccessat.
10195         * doc/posix-functions/faccessat.texi: Mention security problem under
10196         "Other problems", not "Portability problems".
10197         * doc/posix-functions/access.texi: Likewise. Mention a related security
10198         problem.
10199         * doc/glibc-functions/euidaccess.texi: Mention security problems.
10200         * lib/euidaccess.c: Add comments about platforms.
10201         * lib/unistd.in.h (access, euidaccess): Add warnings.
10202
10203 2010-03-07  Bruno Haible  <bruno@clisp.org>
10204
10205         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
10206         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
10207         (POSIX_SPAWN_SETSCHEDULER): Likewise.
10208         (POSIX_SPAWN_USEVFORK): Define in a way that works when
10209         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
10210         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
10211         declare when POSIX_SPAWN_SETSCHEDULER is zero.
10212         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
10213         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
10214         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
10215         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
10216         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
10217         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
10218         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
10219         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
10220         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
10221         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
10222         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
10223         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
10224         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
10225         Likewise.
10226         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
10227         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
10228         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
10229         Likewise.
10230         * tests/test-spawn.c (main): Make it work when
10231         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
10232
10233 2010-03-07  Bruno Haible  <bruno@clisp.org>
10234
10235         Fix incorrect Makefile.am generation in German locale.
10236         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10237         Execute sed command with character range in C locale.
10238
10239 2010-03-06  Bruno Haible  <bruno@clisp.org>
10240
10241         Tests for module 'iconv-h'.
10242         * modules/iconv-h-tests: New file.
10243         * tests/test-iconv-h.c: New file.
10244
10245         New module 'iconv-h'.
10246         * modules/iconv-h: New file.
10247         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
10248         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
10249         (configure.ac): Remove gl_ICONV_H.
10250         (Makefile.am): Remove rule for iconv.h.
10251
10252 2010-03-06  Bruno Haible  <bruno@clisp.org>
10253
10254         More consistent naming of *.m4 files.
10255         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
10256         * modules/wctype (Files): Update.
10257
10258         More consistent naming of *.m4 files.
10259         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
10260         * modules/wchar (Files): Update.
10261
10262 2010-03-06  Jim Meyering  <meyering@redhat.com>
10263
10264         euidaccess: relax license to LGPLv2+
10265         * modules/euidaccess (License): Relax to LGPLv2+.
10266
10267 2010-03-06  Bruno Haible  <bruno@clisp.org>
10268
10269         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
10270         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
10271         (Makefile.am): Augment lib_SOURCES instead.
10272
10273 2010-03-04  Jim Meyering  <meyering@redhat.com>
10274
10275         utime: remove obsolete module
10276         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
10277         unnecessary for years, and has been marked as obsolete for 10 months.
10278         * modules/utime: Remove file.
10279         * lib/utime.c: Remove file.
10280         * m4/utime.m4: Remove file.
10281         * m4/utimes-null.m4: Remove file.
10282         * doc/posix-functions/utime.texi (utime): Remove reference to
10283         the module.  Move the sole "fixed by gnulib" item into the
10284         "problems not fixed by Gnulib" list.
10285         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
10286
10287 2010-03-05  Simon Josefsson  <simon@josefsson.org>
10288
10289         * modules/exit (License): Relax license to LGPLv2+.
10290         (Status): Mark as obsolete.
10291         * NEWS: Mention deprecated 'exit' module.
10292         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
10293         of now obsolete 'exit'.
10294
10295 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10296
10297         fts-lgpl: remove unused module
10298         * modules/fts-lgpl: Remove.
10299         * MODULES.html.sh (func_all_modules): Adjust.
10300         * check-module (find_included_lib_files): Adjust.
10301         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
10302
10303 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
10304
10305         copy-acl: enhance Solaris ACL error handling
10306         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
10307         * lib/set-mode-acl.c (qset_acl): Likewise.
10308
10309 2010-03-02  Bruno Haible  <bruno@clisp.org>
10310
10311         spawn: Don't override the system defined values on FreeBSD 8.
10312         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
10313         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
10314         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
10315         if HAVE_POSIX_SPAWN is 1.
10316         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
10317
10318 2010-03-01  Bruno Haible  <bruno@clisp.org>
10319
10320         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
10321         regarding Automake.
10322
10323 2010-02-25  Bruno Haible  <bruno@clisp.org>
10324
10325         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
10326         * gnulib-tool: Define 'echo' as a function only before the ksh alias
10327         setting, not afterwards.
10328         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10329
10330 2010-02-24  Eric Blake  <eblake@redhat.com>
10331
10332         bootstrap, git-version-gen: use timestamp
10333         * build-aux/git-version-gen (scriptversion): Force UTC.
10334         * build-aux/bootstrap (scriptversion): New variable.
10335
10336         bootstrap: allow older git
10337         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
10338         older than 1.6.4.  Requested by the libvirt project.
10339
10340 2010-02-23  Eric Blake  <eblake@redhat.com>
10341
10342         warn-on-use: work with old autoconf
10343         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
10344         AS_VAR semantics of autoconf 2.60.
10345         Reported by Bruno Haible.
10346
10347         bootstrap: improve some comments
10348         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
10349         clarification comments.
10350
10351         gettimeofday: provide correct function
10352         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
10353         when replacement is declared, otherwise provide gettimeofday.
10354         Reported by Michael Goffioul.
10355
10356 2010-02-23  Jim Meyering  <meyering@redhat.com>
10357
10358         lib-ignore: relax license to "unlimited", not LGPLv2+
10359         * modules/lib-ignore (License): Relax to "unlimited".
10360
10361 2010-02-23  Jim Meyering  <meyering@redhat.com>
10362
10363         lib-ignore: relax license to LGPLv2+
10364         * modules/lib-ignore (License): Relax to LGPLv2+.
10365
10366 2010-02-22  Eric Blake  <eblake@redhat.com>
10367
10368         lseek: avoid bash 3.2 broken pipe bug
10369         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
10370         warning from bash 3.2.
10371         Reported by Ben Pfaff, with analysis from Bruno Haible.
10372
10373         bootstrap: support non-FSF copyright holder
10374         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
10375         bootstrap.conf override of COPYRIGHT_HOLDER.
10376         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
10377
10378         bootstrap: interoperate with gettext 0.14.1
10379         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
10380
10381         bootstrap: allow for alternate submodule location
10382         * build-aux/bootstrap (gnulib_path): New variable; use instead of
10383         hardcoding submodule location.
10384         (gnulib_mk): Allow direct use of Makefile.am.
10385
10386         bootstrap: use GNULIB_SRCDIR to reduce disk usage
10387         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
10388         rather than reconfiguring where the submodule points.
10389
10390         gettimeofday: restore support for platforms that lack function
10391         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
10392         replacement if function is missing.
10393         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
10394         * modules/sys_time (Makefile.am): Substitute it.
10395         * lib/sys_time.in.h (gettimeofday): Check it.
10396         Reported by Michael Goffioul.
10397
10398 2010-02-21  Bruno Haible  <bruno@clisp.org>
10399
10400         * lib/stdio.in.h (obstack_printf): Fix typo.
10401
10402 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
10403
10404         vc-list-files: use bzr ls's -R option
10405         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
10406         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
10407
10408 2010-02-21  Jim Meyering  <meyering@redhat.com>
10409
10410         init.sh: fix EXEEXT shims to work also for names like test-prog
10411         * tests/init.sh: Re-exec a better shell, when needed.
10412         If the current shell lacks support for posix $(...), an init.sh-using
10413         test will now try to find a shell that supports that.  If EXEEXT is
10414         nonempty, we also require support for hyphen-in-alias-name and shell
10415         substitutions like ${var#glob}.  Failure to find such a shell results
10416         in a skipped test.
10417
10418 2010-02-21  Bruno Haible  <bruno@clisp.org>
10419
10420         Really work around around "broken pipe" error message from bash 3.2.
10421         * gnulib-tool (func_reset_sigpipe): Remove function.
10422         (echo): In bash 3.2, define to a function that uses printf.
10423         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
10424
10425 2010-02-20  Bruno Haible  <bruno@clisp.org>
10426
10427         Restore support for automake 1.9.6 with autoconf 2.61.
10428         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
10429         Reported by James Youngman <jay@gnu.org>.
10430
10431 2010-02-20  Bruno Haible  <bruno@clisp.org>
10432
10433         Improve *printf warning condition.
10434         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
10435         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
10436         and the function is overridden due to SIGPIPE emulation.
10437
10438 2010-02-20  Bruno Haible  <bruno@clisp.org>
10439
10440         * lib/stdio.in.h: Tweak comments.
10441
10442 2010-02-19  Bruno Haible  <bruno@clisp.org>
10443
10444         Make it easier to find modules. New gnulib-tool option '--find'.
10445         * gnulib-tool: New option --find.
10446         (func_usage): Document it.
10447         (func_sanitize_modulelist): New function, extracted from
10448         func_all_modules.
10449         (func_all_modules): Invoke it.
10450         * doc/gnulib-tool.texi (Which modules?): New node.
10451
10452 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
10453
10454         * lib/sys_select.in.h: Provide select replacement even if
10455         sys/select.h exists on a system, for Interix.
10456
10457 2010-02-18  Jim Meyering  <meyering@redhat.com>
10458
10459         init.sh: don't use $(...) just yet
10460         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
10461         to accommodate e.g., Solaris' /bin/sh.
10462
10463 2010-02-17  Bruno Haible  <bruno@clisp.org>
10464
10465         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
10466         Reported by Ludovic Courtès <ludo@gnu.org>.
10467
10468 2010-02-16  Simon Josefsson  <simon@josefsson.org>
10469
10470         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
10471         linking with -lintl.
10472
10473 2010-02-17  Simon Josefsson  <simon@josefsson.org>
10474
10475         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
10476         if not provided by the system's netdb.h.  Reported by
10477         ludo@gnu.org (Ludovic Courtès).
10478
10479 2010-02-15  Jim Meyering  <meyering@redhat.com>
10480
10481         init.sh: improve portability and efficiency
10482         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
10483         "dummy" in a for loop.
10484         Use '!', not '^' to select the complement of a character set used
10485         in a "case" statement.
10486         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
10487         Suggestions from Eric Blake.
10488
10489         init.sh: automatically accommodate programs with the .exe suffix
10490         Automatically arrange for an invocation of "prog" to execute the
10491         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
10492         may use the simpler "prog", yet still work when built on a system
10493         that requires specifying the added suffix.
10494         Do this by constructing a function named "prog" that invokes
10495         "prog.exe" for each .exe file in selected directories.
10496         * tests/init.sh (find_exe_basenames_): New function.
10497         (create_exe_shim_functions_): New function.
10498         (path_prepend_): Use it.
10499
10500         maint.mk: mark syntax-check sc_*.m rules as .PHONY
10501         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
10502         "make -t syntax-check" doesn't create a ton of sc_*.m files.
10503
10504 2010-02-14  Jim Meyering  <meyering@redhat.com>
10505
10506         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
10507         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
10508         (sc_prohibit_hash_pjw_without_use): New rule.
10509
10510         maint.mk: allow the default upload destination dir to be overridden
10511         * top/maint.mk (upload_dest_dir_): Define with a default that
10512         preserves the status quo.
10513         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
10514         Reported by Peter Simons.
10515
10516         maint.mk: prohibit inclusion of "hash.h" without_use
10517         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
10518
10519 2010-02-10  Jim Meyering  <meyering@redhat.com>
10520
10521         maint.mk: prohibit inclusion of "ignore-value.h" without_use
10522         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
10523
10524 2010-02-09  Eric Blake  <ebb9@byu.net>
10525         and Bruno Haible  <bruno@clisp.org>
10526
10527         obstack-printf-posix: ensure declaration
10528         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
10529         extracted from gl_FUNC_OBSTACK_PRINTF.
10530         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
10531         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
10532         Likewise.
10533         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
10534         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
10535         0.
10536
10537 2010-02-08  Bruno Haible  <bruno@clisp.org>
10538
10539         gnulib-tool: Fix typo in 2010-02-07 commit.
10540         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
10541         Reported by Eric Blake.
10542
10543 2010-02-07  Bruno Haible  <bruno@clisp.org>
10544
10545         gnulib-tool: Fix up caching patches.
10546         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
10547         option --no-cache. Use associative arrays when supported by the shell.
10548         (sed_comments): New variable.
10549         (modcache): Renamed from do_cache.
10550         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
10551         abbreviate unnecessarily.
10552         (have_associative): New variable.
10553         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
10554         way also for ksh and zsh.
10555         (func_init_sed_convert_to_cache_statements): New function, extracted
10556         from func_cache_lookup_module. Add support for associative arrays.
10557         Don't set the c_MODULE_cached variable here. Ignore all lines before
10558         the first field header. Remove only the final newline, not all trailing
10559         newlines. Support empty fields correctly. Limit the use of 'eval' to
10560         assignments.
10561         (func_get_description, func_get_status, func_get_notice,
10562         func_get_applicability, func_get_filelist, func_get_dependencies,
10563         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
10564         func_get_automake_snippet, func_get_include_directive,
10565         func_get_link_directive, func_get_license, func_get_maintainer):
10566         Update documentation. List the unoptimized code first. Add support for
10567         associative arrays. Limit the use of 'eval' to assignments.
10568         (func_get_applicability): Undo stylistic pessimisations.
10569         (func_get_automake_snippet, func_get_include_directive): Reduce code
10570         duplication.
10571         (func_modules_transitive_closure, func_modules_add_dummy,
10572         func_modules_notice, func_modules_to_filelist, func_add_file,
10573         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
10574         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
10575         func_create_testdir, func_create_megatestdir): Update documentation.
10576
10577 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10578
10579         * gnulib-tool (func_cache_lookup_module): Store the module name
10580         belonging to the cache variable; error out if two different
10581         module names map to the same cache variable name.
10582
10583 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10584
10585         gnulib-tool: Make caching optional.
10586         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
10587         Update matching short versions of --no-changelog.
10588         (func_usage): Update.
10589         (sed_extract_cache_prog): Renamed from ...
10590         (sed_extract_prog): ... this; revert to old extraction script.
10591         (func_get_description, func_get_status)
10592         (func_get_notice, func_get_applicability, func_get_filelist)
10593         (func_get_dependencies, func_get_autoconf_early_snippet)
10594         (func_get_autoconf_snippet, func_get_automake_snippet)
10595         (func_get_include_directive, func_get_link_directive)
10596         (func_get_license, func_get_maintainer): If $do_cache is false,
10597         use old, non-caching extraction scripts.
10598         Suggestion by Bruno Haible.
10599
10600 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10601
10602         gnulib-tool: cache module metainformation.
10603         * gnulib-tool (sed_extract_prog): Match newline before each
10604         header, and rewrite header to a shell variable suffix.
10605         (func_cache_var, func_cache_lookup_module): New functions,
10606         to turn a module name into a cache variable prefix, and to
10607         look up and cache module metainformation.
10608         (func_get_description, func_get_status)
10609         (func_get_notice, func_get_applicability, func_get_filelist)
10610         (func_get_dependencies, func_get_autoconf_early_snippet)
10611         (func_get_autoconf_snippet, func_get_automake_snippet)
10612         (func_get_include_directive, func_get_link_directive)
10613         (func_get_license, func_get_maintainer): Use
10614         func_cache_lookup_module.
10615
10616 2010-02-07  Bruno Haible  <bruno@clisp.org>
10617
10618         fnctl: Fix missing dependency.
10619         * modules/fcntl (Depends-on): Add getdtablesize.
10620         Reported by John W. Eaton <jwe@gnu.org>.
10621
10622 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10623
10624         Argp: fix recognition of short alias options.
10625
10626         * lib/argp-parse.c (convert_options): Fix improper use of
10627         `|' between character values.
10628         * tests/test-argp.c (group1_option): New alias option
10629         --read (-r).
10630         (group1_parser): Special handling for 'r'.
10631         (test15): New test case.
10632         (test_fun): Add test15.
10633         * tests/test-argp-2.sh: Update expected --help and --usage
10634         outputs.
10635
10636 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10637
10638         * tests/test-argp.c: Fix indentation.
10639
10640 2010-02-04  Eric Blake  <ebb9@byu.net>
10641
10642         gettimeofday: expose type of second argument
10643         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
10644         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
10645         * tests/test-gettimeofday.c: Use it to silence warning.
10646         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
10647         the issue.
10648
10649 2010-02-03  Jim Meyering  <meyering@redhat.com>
10650
10651         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
10652         * lib/regcomp.c (TYPE_SIGNED): Define.
10653         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
10654
10655         regcomp.c: avoid a new -Wshadow warning
10656         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
10657
10658 2010-02-01  Jim Meyering  <meyering@redhat.com>
10659
10660         removing useless parentheses in cpp #define directives
10661         For motivation, see commit c0221df4, "define STREQ(a,b)
10662         consistently, removing useless parentheses"
10663         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
10664         * lib/mountlist.c (MNT_IGNORE): Likewise.
10665         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
10666
10667 2010-02-01  Eric Blake  <ebb9@byu.net>
10668
10669         sys_time: use link-warning
10670         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
10671         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
10672         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
10673         * modules/sys_time (Depends-on): Add warn-on-use.
10674         (Makefile.am): Always build replacement.
10675         (configure.ac): Update substitutions.
10676         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
10677         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
10678         bother with SYS_TIME_H.
10679         * modules/gettimeofday (configure.ac): Declare indicator.
10680         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
10681         in use.
10682
10683         closein-tests: silence compiler warning
10684         * tests/test-closein.c (main): Ignore fread result.
10685         * modules/closein-tests (Depends-on): Add ignore-value.
10686
10687         tests: silence warning about system return
10688         * tests/test-areadlink-with-size.c (main): Ignore system result.
10689         * tests/test-areadlink.c (main): Likewise.
10690         * tests/test-areadlinkat-with-size.c (main): Likewise.
10691         * tests/test-areadlinkat.c (main): Likewise.
10692         * tests/test-canonicalize-lgpl.c (main): Likewise.
10693         * tests/test-canonicalize.c (main): Likewise.
10694         * tests/test-chown.c (main): Likewise.
10695         * tests/test-fchownat.c (main): Likewise.
10696         * tests/test-fdutimensat.c (main): Likewise.
10697         * tests/test-fstatat.c (main): Likewise.
10698         * tests/test-futimens.c (main): Likewise.
10699         * tests/test-lchown.c (main): Likewise.
10700         * tests/test-link.c (main): Likewise.
10701         * tests/test-linkat.c (main): Likewise.
10702         * tests/test-lstat.c (main): Likewise.
10703         * tests/test-mkdir.c (main): Likewise.
10704         * tests/test-mkdirat.c (main): Likewise.
10705         * tests/test-mkfifo.c (main): Likewise.
10706         * tests/test-mkfifoat.c (main): Likewise.
10707         * tests/test-mknod.c (main): Likewise.
10708         * tests/test-readlink.c (main): Likewise.
10709         * tests/test-remove.c (main): Likewise.
10710         * tests/test-rename.c (main): Likewise.
10711         * tests/test-renameat.c (main): Likewise.
10712         * tests/test-rmdir.c (main): Likewise.
10713         * tests/test-symlink.c (main): Likewise.
10714         * tests/test-symlinkat.c (main): Likewise.
10715         * tests/test-unlink.c (main): Likewise.
10716         * tests/test-unlinkat.c (main): Likewise.
10717         * tests/test-utimens.c (main): Likewise.
10718         * tests/test-utimensat.c (main): Likewise.
10719         * modules/areadlink-tests (Depends-on): Add ignore-value.
10720         * modules/areadlink-with-size-tests (Depends-on): Likewise.
10721         * modules/areadlinkat-tests (Depends-on): Likewise.
10722         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
10723         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10724         * modules/canonicalize-tests (Depends-on): Likewise.
10725         * modules/chown-tests (Depends-on): Likewise.
10726         * modules/fdutimensat-tests (Depends-on): Likewise.
10727         * modules/futimens-tests (Depends-on): Likewise.
10728         * modules/lchown-tests (Depends-on): Likewise.
10729         * modules/link-tests (Depends-on): Likewise.
10730         * modules/linkat-tests (Depends-on): Likewise.
10731         * modules/lstat-tests (Depends-on): Likewise.
10732         * modules/mkdir-tests (Depends-on): Likewise.
10733         * modules/mkfifo-tests (Depends-on): Likewise.
10734         * modules/mkfifoat-tests (Depends-on): Likewise.
10735         * modules/mknod-tests (Depends-on): Likewise.
10736         * modules/openat-tests (Depends-on): Likewise.
10737         * modules/readlink-tests (Depends-on): Likewise.
10738         * modules/remove-tests (Depends-on): Likewise.
10739         * modules/rename-tests (Depends-on): Likewise.
10740         * modules/renameat-tests (Depends-on): Likewise.
10741         * modules/rmdir-tests (Depends-on): Likewise.
10742         * modules/symlink-tests (Depends-on): Likewise.
10743         * modules/symlinkat-tests (Depends-on): Likewise.
10744         * modules/unlink-tests (Depends-on): Likewise.
10745         * modules/utimens-tests (Depends-on): Likewise.
10746         * modules/utimensat-tests (Depends-on): Likewise.
10747
10748 2010-01-31  Bruno Haible  <bruno@clisp.org>
10749
10750         Perform the same test for many <math.h> functions.
10751         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
10752         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
10753         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
10754         of gl_MATHFUNC.
10755         * modules/acos (configure.ac): Likewise.
10756         * modules/asin (configure.ac): Likewise.
10757         * modules/atan (configure.ac): Likewise.
10758         * modules/atan2 (configure.ac): Likewise.
10759         * modules/cbrt (configure.ac): Likewise.
10760         * modules/copysign (configure.ac): Likewise.
10761         * modules/cos (configure.ac): Likewise.
10762         * modules/cosh (configure.ac): Likewise.
10763         * modules/erf (configure.ac): Likewise.
10764         * modules/erfc (configure.ac): Likewise.
10765         * modules/exp (configure.ac): Likewise.
10766         * modules/fmod (configure.ac): Likewise.
10767         * modules/hypot (configure.ac): Likewise.
10768         * modules/j0 (configure.ac): Likewise.
10769         * modules/j1 (configure.ac): Likewise.
10770         * modules/jn (configure.ac): Likewise.
10771         * modules/lgamma (configure.ac): Likewise.
10772         * modules/log (configure.ac): Likewise.
10773         * modules/log10 (configure.ac): Likewise.
10774         * modules/log1p (configure.ac): Likewise.
10775         * modules/pow (configure.ac): Likewise.
10776         * modules/remainder (configure.ac): Likewise.
10777         * modules/sin (configure.ac): Likewise.
10778         * modules/sinh (configure.ac): Likewise.
10779         * modules/tan (configure.ac): Likewise.
10780         * modules/tanh (configure.ac): Likewise.
10781         * modules/y0 (configure.ac): Likewise.
10782         * modules/y1 (configure.ac): Likewise.
10783         * modules/yn (configure.ac): Likewise.
10784         Suggested by Paolo Bonzini.
10785
10786 2010-01-31  Bruno Haible  <bruno@clisp.org>
10787
10788         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
10789
10790 2010-01-31  Bruno Haible  <bruno@clisp.org>
10791
10792         Work around getdelim() bug on FreeBSD 8.0.
10793         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
10794         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
10795         not work.
10796         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
10797         is 1.
10798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
10799         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
10800         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
10801         a non-zero size.
10802         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
10803
10804 2010-01-31  Bruno Haible  <bruno@clisp.org>
10805
10806         Work around getline() bug on FreeBSD 8.0.
10807         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
10808         and a non-zero size.
10809         * tests/test-getline.c (main): Likewise.
10810         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
10811         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
10812
10813 2010-01-28  Eric Blake  <ebb9@byu.net>
10814
10815         regex: fix build failure
10816         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
10817         platforms.
10818
10819 2010-01-28  Jim Meyering  <meyering@redhat.com>
10820
10821         regex: do not ignore memory allocation failure
10822         * lib/regex_internal.c (create_cd_newstate): Detect
10823         re_node_set_init_copy failure.   Extracted from glibc commit
10824         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10825
10826         regex: sync more white-space changes from libc
10827         * lib/regex_internal.c: White-space only changes.
10828         * lib/regexec.c: Likewise.
10829
10830         regex: add many uses of __attribute_warn_unused_result__
10831         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
10832         * lib/regexec.c: Likewise.
10833         Extracted from a messy glibc commit.
10834
10835         regcomp.c: spelling and merge-artifact from glibc
10836         * lib/regcomp.c: Merge remainder of glibc's
10837         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10838
10839         regcomp.c: sync white-space changes from glibc
10840         * lib/regcomp.c: Merge to accommodate white space
10841         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10842
10843         regcomp.c: do not ignore internal return values
10844         * lib/regcomp.c: Do not ignore internal return values.
10845         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
10846         but without its white-space changes and spelling fixes.
10847
10848         regex_internal.h: define __attribute_warn_unused_result__
10849         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
10850
10851         maint: add a syntax-check rule to check for vulnerable Makefile.in
10852         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
10853
10854 2010-01-27  Jim Meyering  <meyering@redhat.com>
10855
10856         ncftpput-ftp: clean up spaces
10857         * build-aux/ncftpput-ftp: Make Copyright line consistent.
10858         Remove trailing blanks.
10859
10860 2010-01-27  Simon Josefsson  <simon@josefsson.org>
10861
10862         * build-aux/git-version-gen: Fix copyright statement.
10863         * build-aux/gnupload: Likewise.
10864         * tests/test-arcfour.c: Likewise.
10865         * tests/test-arctwo.c: Likewise.
10866         * tests/test-count-one-bits.c: Likewise.
10867         * tests/test-crc.c: Likewise.
10868         * tests/test-des.c: Likewise.
10869         * tests/test-gc-arcfour.c: Likewise.
10870         * tests/test-gc-arctwo.c: Likewise.
10871         * tests/test-gc-des.c: Likewise.
10872         * tests/test-gc-hmac-md5.c: Likewise.
10873         * tests/test-gc-hmac-sha1.c: Likewise.
10874         * tests/test-gc-md2.c: Likewise.
10875         * tests/test-gc-md4.c: Likewise.
10876         * tests/test-gc-md5.c: Likewise.
10877         * tests/test-gc-pbkdf2-sha1.c: Likewise.
10878         * tests/test-gc-rijndael.c: Likewise.
10879         * tests/test-gc-sha1.c: Likewise.
10880         * tests/test-gc.c: Likewise.
10881         * tests/test-gethostname.c: Likewise.
10882         * tests/test-gettimeofday.c: Likewise.
10883         * tests/test-hash.c: Likewise.
10884         * tests/test-hmac-md5.c: Likewise.
10885         * tests/test-hmac-sha1.c: Likewise.
10886         * tests/test-md2.c: Likewise.
10887         * tests/test-md4.c: Likewise.
10888         * tests/test-md5.c: Likewise.
10889         * tests/test-memchr.c: Likewise.
10890         * tests/test-memchr2.c: Likewise.
10891         * tests/test-memcmp.c: Likewise.
10892         * tests/test-memmem.c: Likewise.
10893         * tests/test-memrchr.c: Likewise.
10894         * tests/test-rawmemchr.c: Likewise.
10895         * tests/test-read-file.c: Likewise.
10896         * tests/test-rijndael.c: Likewise.
10897         * tests/test-sockets.c: Likewise.
10898         * tests/test-strchrnul.c: Likewise.
10899         * tests/test-strstr.c: Likewise.
10900         * tests/test-strtod.c: Likewise.
10901         * build-aux/ncftpput-ftp: Likewise.
10902
10903 2010-01-26  Eric Blake  <ebb9@byu.net>
10904
10905         ignore-value: update recommended header name
10906         * modules/ignore-value (Include): Only use <> for headers that
10907         exist in glibc.
10908
10909 2010-01-26  Jim Meyering  <meyering@redhat.com>
10910
10911         test-userspec.c: avoid compiler warnings
10912         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
10913         and "initialization discards qualifiers..." warnings.
10914         Put the first "uid" in its own scope, and make char* members "const".
10915
10916 2010-01-25  Bruno Haible  <bruno@clisp.org>
10917
10918         gnulib-tool: Make warning diagnostics consistent.
10919         * gnulib-tool (func_warning): New function.
10920         Use it everywhere where gnulib-tool produces output to stderr and it is
10921         not a fatal error.
10922
10923 2010-01-25  Bruno Haible  <bruno@clisp.org>
10924
10925         Fix test dependencies.
10926         * modules/xstrtol-tests (Depends-on): Add inttypes.
10927         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
10928
10929 2010-01-25 Pádraig Brady <P@draigBrady.com>
10930
10931         syntax-check: detect incorrect boolean macro values in config.h
10932         * modules/maintainer-makefile (configure.ac): Parameterize the location
10933         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
10934         The logic is from Eric Blake and the location indicated by Jim Meyering.
10935         Note the more natural CONFIG_HEADER name is prohibited by automake
10936         for backwards compatibility reasons.
10937         * top/maint.mk (sc_Wundef_boolean): New rule.
10938
10939 2010-01-25  Jim Meyering  <meyering@redhat.com>
10940
10941         bootstrap: detect MacOS 10.6's shasum, too
10942         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
10943         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
10944
10945 2010-01-23  Jim Meyering  <meyering@redhat.com>
10946
10947         xstrtoll: new module
10948         * modules/xstrtoll: New file.
10949         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
10950         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
10951         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
10952         ./configure fails if you use this module and lack "long long".
10953         * modules/xstrtoll-tests: New module.
10954         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
10955         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
10956         new init.sh-based test framework.
10957
10958 2010-01-24  Bruno Haible  <bruno@clisp.org>
10959
10960         Tests for module 'yn'.
10961         * modules/yn-tests: New file.
10962         * tests/test-yn.c: New file.
10963
10964         Tests for module 'y1'.
10965         * modules/y1-tests: New file.
10966         * tests/test-y1.c: New file.
10967
10968         Tests for module 'y0'.
10969         * modules/y0-tests: New file.
10970         * tests/test-y0.c: New file.
10971
10972         Tests for module 'tanh'.
10973         * modules/tanh-tests: New file.
10974         * tests/test-tanh.c: New file.
10975
10976         Tests for module 'tan'.
10977         * modules/tan-tests: New file.
10978         * tests/test-tan.c: New file.
10979
10980         Tests for module 'sqrt'.
10981         * modules/sqrt-tests: New file.
10982         * tests/test-sqrt.c: New file.
10983
10984         Tests for module 'sinh'.
10985         * modules/sinh-tests: New file.
10986         * tests/test-sinh.c: New file.
10987
10988         Tests for module 'sin'.
10989         * modules/sin-tests: New file.
10990         * tests/test-sin.c: New file.
10991
10992         Tests for module 'rint'.
10993         * modules/rint-tests: New file.
10994         * tests/test-rint.c: New file.
10995
10996         Tests for module 'remainder'.
10997         * modules/remainder-tests: New file.
10998         * tests/test-remainder.c: New file.
10999
11000         Tests for module 'pow'.
11001         * modules/pow-tests: New file.
11002         * tests/test-pow.c: New file.
11003
11004         Tests for module 'nextafter'.
11005         * modules/nextafter-tests: New file.
11006         * tests/test-nextafter.c: New file.
11007
11008         Tests for module 'modf'.
11009         * modules/modf-tests: New file.
11010         * tests/test-modf.c: New file.
11011
11012         Tests for module 'logb'.
11013         * modules/logb-tests: New file.
11014         * tests/test-logb.c: New file.
11015
11016         Tests for module 'log1p'.
11017         * modules/log1p-tests: New file.
11018         * tests/test-log1p.c: New file.
11019
11020         Tests for module 'log10'.
11021         * modules/log10-tests: New file.
11022         * tests/test-log10.c: New file.
11023
11024         Tests for module 'log'.
11025         * modules/log-tests: New file.
11026         * tests/test-log.c: New file.
11027
11028         Tests for module 'lgamma'.
11029         * modules/lgamma-tests: New file.
11030         * tests/test-lgamma.c: New file.
11031
11032         Tests for module 'ldexp'.
11033         * modules/ldexp-tests: New file.
11034         * tests/test-ldexp.c: New file.
11035
11036         Tests for module 'jn'.
11037         * modules/jn-tests: New file.
11038         * tests/test-jn.c: New file.
11039
11040         Tests for module 'j1'.
11041         * modules/j1-tests: New file.
11042         * tests/test-j1.c: New file.
11043
11044         Tests for module 'j0'.
11045         * modules/j0-tests: New file.
11046         * tests/test-j0.c: New file.
11047
11048         Tests for module 'hypot'.
11049         * modules/hypot-tests: New file.
11050         * tests/test-hypot.c: New file.
11051
11052         Tests for module 'fmod'.
11053         * modules/fmod-tests: New file.
11054         * tests/test-fmod.c: New file.
11055
11056         Tests for module 'fabs'.
11057         * modules/fabs-tests: New file.
11058         * tests/test-fabs.c: New file.
11059
11060         Tests for module 'exp'.
11061         * modules/exp-tests: New file.
11062         * tests/test-exp.c: New file.
11063
11064         Tests for module 'erfc'.
11065         * modules/erfc-tests: New file.
11066         * tests/test-erfc.c: New file.
11067
11068         Tests for module 'erf'.
11069         * modules/erf-tests: New file.
11070         * tests/test-erf.c: New file.
11071
11072         Tests for module 'cosh'.
11073         * modules/cosh-tests: New file.
11074         * tests/test-cosh.c: New file.
11075
11076         Tests for module 'cos'.
11077         * modules/cos-tests: New file.
11078         * tests/test-cos.c: New file.
11079
11080         Tests for module 'copysign'.
11081         * modules/copysign-tests: New file.
11082         * tests/test-copysign.c: New file.
11083
11084         Tests for module 'cbrt'.
11085         * modules/cbrt-tests: New file.
11086         * tests/test-cbrt.c: New file.
11087
11088         Tests for module 'atan2'.
11089         * modules/atan2-tests: New file.
11090         * tests/test-atan2.c: New file.
11091
11092         Tests for module 'atan'.
11093         * modules/atan-tests: New file.
11094         * tests/test-atan.c: New file.
11095
11096         Tests for module 'asin'.
11097         * modules/asin-tests: New file.
11098         * tests/test-asin.c: New file.
11099
11100         Tests for module 'acos'.
11101         * modules/acos-tests: New file.
11102         * tests/test-acos.c: New file.
11103
11104 2010-01-24  Bruno Haible  <bruno@clisp.org>
11105
11106         Fix tests for common <math.h> functions.
11107         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
11108         code snippet that references the function pointer, rather than merely
11109         calling the function. Substitute the FUNC_LIBM variable.
11110         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
11111         * modules/acos (configure.ac): Likewise.
11112         * modules/asin (configure.ac): Likewise.
11113         * modules/atan (configure.ac): Likewise.
11114         * modules/atan2 (configure.ac): Likewise.
11115         * modules/cbrt (configure.ac): Likewise.
11116         * modules/copysign (configure.ac): Likewise.
11117         * modules/cos (configure.ac): Likewise.
11118         * modules/cosh (configure.ac): Likewise.
11119         * modules/erf (configure.ac): Likewise.
11120         * modules/erfc (configure.ac): Likewise.
11121         * modules/exp (configure.ac): Likewise.
11122         * modules/fabs (configure.ac): Likewise.
11123         * modules/fmod (configure.ac): Likewise.
11124         * modules/hypot (configure.ac): Likewise.
11125         * modules/j0 (configure.ac): Likewise.
11126         * modules/j1 (configure.ac): Likewise.
11127         * modules/jn (configure.ac): Likewise.
11128         * modules/ldexp (configure.ac): Likewise.
11129         * modules/lgamma (configure.ac): Likewise.
11130         * modules/log (configure.ac): Likewise.
11131         * modules/log10 (configure.ac): Likewise.
11132         * modules/log1p (configure.ac): Likewise.
11133         * modules/logb (configure.ac): Likewise.
11134         * modules/modf (configure.ac): Likewise.
11135         * modules/nextafter (configure.ac): Likewise.
11136         * modules/pow (configure.ac): Likewise.
11137         * modules/remainder (configure.ac): Likewise.
11138         * modules/rint (configure.ac): Likewise.
11139         * modules/sin (configure.ac): Likewise.
11140         * modules/sinh (configure.ac): Likewise.
11141         * modules/tan (configure.ac): Likewise.
11142         * modules/tanh (configure.ac): Likewise.
11143         * modules/y0 (configure.ac): Likewise.
11144         * modules/y1 (configure.ac): Likewise.
11145         * modules/yn (configure.ac): Likewise.
11146
11147 2010-01-24  Bruno Haible  <bruno@clisp.org>
11148
11149         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
11150         * tests/test-acosl.c (x): New variable.
11151         (main): Store argument in x and fetch it from x.
11152         * tests/test-asinl.c (x): New variable.
11153         (main): Store argument in x and fetch it from x.
11154         * tests/test-atanl.c (x): New variable.
11155         (main): Store argument in x and fetch it from x.
11156         * tests/test-cosl.c (x): New variable.
11157         (main): Store argument in x and fetch it from x.
11158         * tests/test-expl.c (x): New variable.
11159         (main): Store argument in x and fetch it from x.
11160         * tests/test-logl.c (x): New variable.
11161         (main): Store argument in x and fetch it from x.
11162         * tests/test-sinl.c (x): New variable.
11163         (main): Store argument in x and fetch it from x.
11164         * tests/test-sqrtl.c (x): New variable.
11165         (main): Store argument in x and fetch it from x.
11166         * tests/test-tanl.c (x): New variable.
11167         (main): Store argument in x and fetch it from x.
11168
11169 2010-01-24  Bruno Haible  <bruno@clisp.org>
11170
11171         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
11172         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
11173         assignments to the initial TESTS_ENVIRONMENT.
11174         * doc/gnulib.texi (Unit test modules): Document it.
11175         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
11176         TESTS_ENVIRONMENT.
11177         * modules/btowc-tests (Makefile.am): Likewise.
11178         * modules/c-stack-tests (Makefile.am): Likewise.
11179         * modules/c-strcase-tests (Makefile.am): Likewise.
11180         * modules/copy-file-tests (Makefile.am): Likewise.
11181         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
11182         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
11183         * modules/mbrtowc-tests (Makefile.am): Likewise.
11184         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11185         * modules/mbscasestr-tests (Makefile.am): Likewise.
11186         * modules/mbschr-tests (Makefile.am): Likewise.
11187         * modules/mbscspn-tests (Makefile.am): Likewise.
11188         * modules/mbsinit-tests (Makefile.am): Likewise.
11189         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11190         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
11191         * modules/mbspbrk-tests (Makefile.am): Likewise.
11192         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11193         * modules/mbsrchr-tests (Makefile.am): Likewise.
11194         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
11195         * modules/mbsspn-tests (Makefile.am): Likewise.
11196         * modules/mbsstr-tests (Makefile.am): Likewise.
11197         * modules/nl_langinfo-tests (Makefile.am): Likewise.
11198         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
11199         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11200         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11201         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11202         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11203         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
11204         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11205         * modules/wcrtomb-tests (Makefile.am): Likewise.
11206         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
11207         * modules/wcsrtombs-tests (Makefile.am): Likewise.
11208         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
11209         assignments from TESTS_ENVIRONMENT.
11210         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
11211         augmentation.
11212         * modules/argp-version-etc-tests (Makefile.am): Likewise.
11213         * modules/atexit-tests (Makefile.am): Likewise.
11214         * modules/binary-io-tests (Makefile.am): Likewise.
11215         * modules/closein-tests (Makefile.am): Likewise.
11216         * modules/dprintf-posix-tests (Makefile.am): Likewise.
11217         * modules/exclude-tests (Makefile.am): Likewise.
11218         * modules/fflush-tests (Makefile.am): Likewise.
11219         * modules/fpending-tests (Makefile.am): Likewise.
11220         * modules/fprintf-posix-tests (Makefile.am): Likewise.
11221         * modules/freadahead-tests (Makefile.am): Likewise.
11222         * modules/freadptr-tests (Makefile.am): Likewise.
11223         * modules/freadseek-tests (Makefile.am): Likewise.
11224         * modules/fseek-tests (Makefile.am): Likewise.
11225         * modules/fseeko-tests (Makefile.am): Likewise.
11226         * modules/ftell-tests (Makefile.am): Likewise.
11227         * modules/ftello-tests (Makefile.am): Likewise.
11228         * modules/idpriv-drop-tests (Makefile.am): Likewise.
11229         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
11230         * modules/lseek-tests (Makefile.am): Likewise.
11231         * modules/parse-duration-tests (Makefile.am): Likewise.
11232         * modules/perror-tests (Makefile.am): Likewise.
11233         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
11234         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
11235         * modules/pipe-tests (Makefile.am): Likewise.
11236         * modules/pread-tests (Makefile.am): Likewise.
11237         * modules/printf-posix-tests (Makefile.am): Likewise.
11238         * modules/select-tests (Makefile.am): Likewise.
11239         * modules/sigpipe-tests (Makefile.am): Likewise.
11240         * modules/tsearch-tests (Makefile.am): Likewise.
11241         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
11242         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
11243         * modules/uniname/uniname-tests (Makefile.am): Likewise.
11244         * modules/uniwidth/width-tests (Makefile.am): Likewise.
11245         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
11246         * modules/version-etc-tests (Makefile.am): Likewise.
11247         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
11248         * modules/vprintf-posix-tests (Makefile.am): Likewise.
11249         * modules/xalloc-die-tests (Makefile.am): Likewise.
11250         * modules/xprintf-posix-tests (Makefile.am): Likewise.
11251         * modules/xstrtoimax-tests (Makefile.am): Likewise.
11252         * modules/xstrtol-tests (Makefile.am): Likewise.
11253         * modules/xstrtoumax-tests (Makefile.am): Likewise.
11254         * modules/yesno-tests (Makefile.am): Likewise.
11255         Suggested by Jim Meyering.
11256
11257 2010-01-24  Bruno Haible  <bruno@clisp.org>
11258
11259         More documentation.
11260         * doc/gnulib.texi (Writing modules): New chapter.
11261         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
11262         the new chapter.
11263
11264 2010-01-24  Jim Meyering  <meyering@redhat.com>
11265
11266         maint.mk: do not prepend "./" after filtering
11267         * top/maint.mk (_prepend_srcdir_prefix): New variable
11268         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
11269         "./" when $(srcdir) is ".".
11270
11271         define STREQ(a,b) consistently, removing useless parentheses
11272         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
11273         since the only risk is that "a" or "b" contains an unparenthesized
11274         comma, but if either did that, STREQ would have 3 or more arguments.
11275         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
11276         * lib/fts.c (STREQ): Remove unnecessary parentheses.
11277         * lib/hash-triple.c (STREQ): Likewise.
11278         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
11279         * lib/getugroups.c (STREQ): Likewise.
11280
11281 2010-01-23  Jim Meyering  <meyering@redhat.com>
11282
11283         maint.mk: fix syntax-check in a non-srcdir build directory
11284         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
11285         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
11286
11287 2010-01-22  Jim Meyering  <meyering@redhat.com>
11288
11289         userspec: add unit tests
11290         * tests/test-userspec.c: New file.
11291         * modules/userspec-tests: Likewise.
11292
11293 2010-01-21  Jim Meyering  <meyering@redhat.com>
11294
11295         maint.mk: handle source file names containing "." robustly
11296         * top/maint.mk (_dot_escaped_srcdir): Define.
11297         (VC_LIST): Use it in LHS of sed substitution.
11298
11299 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
11300
11301         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
11302         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
11303         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
11304         from a non-srcdir build.
11305
11306 2010-01-20  Eric Blake  <ebb9@byu.net>
11307
11308         warn-on-use: use instead of link-warning
11309         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
11310         * modules/unistd (Depends-on, Makefile.am): Likewise.
11311         * modules/arpa_inet (Depends-on): Replace link-warning with
11312         warn-on-use.
11313         (Makefile.am): Update rules accordingly.
11314         * modules/ctype (Depends-on, Makefile.am): Likewise.
11315         * modules/dirent (Depends-on, Makefile.am): Likewise.
11316         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
11317         * modules/inttypes (Depends-on, Makefile.am): Likewise.
11318         * modules/langinfo (Depends-on, Makefile.am): Likewise.
11319         * modules/locale (Depends-on, Makefile.am): Likewise.
11320         * modules/math (Depends-on, Makefile.am): Likewise.
11321         * modules/search (Depends-on, Makefile.am): Likewise.
11322         * modules/signal (Depends-on, Makefile.am): Likewise.
11323         * modules/spawn (Depends-on, Makefile.am): Likewise.
11324         * modules/stdlib (Depends-on, Makefile.am): Likewise.
11325         * modules/string (Depends-on, Makefile.am): Likewise.
11326         * modules/strings (Depends-on, Makefile.am): Likewise.
11327         * modules/sys_file (Depends-on, Makefile.am): Likewise.
11328         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
11329         * modules/sys_select (Depends-on, Makefile.am): Likewise.
11330         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
11331         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
11332         * modules/sys_times (Depends-on, Makefile.am): Likewise.
11333         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11334         * modules/wchar (Depends-on, Makefile.am): Likewise.
11335         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
11336         should be poisoned.
11337         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
11338         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
11339         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
11340         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11341         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11342         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11343         * m4/math_h.m4 (gl_MATH_H): Likewise.
11344         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11345         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11346         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11347         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11348         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11349         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
11350         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11351         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
11352         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11353         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11354         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11355         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11356         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11357         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11358         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11359         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11360         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
11361         GL_LINK_WARNING.
11362         * lib/ctype.in.h: Likewise.
11363         * lib/dirent.in.h: Likewise.
11364         * lib/fcntl.in.h: Likewise.
11365         * lib/inttypes.in.h: Likewise.
11366         * lib/langinfo.in.h: Likewise.
11367         * lib/locale.in.h: Likewise.
11368         * lib/math.in.h: Likewise.
11369         * lib/search.in.h: Likewise.
11370         * lib/signal.in.h: Likewise.
11371         * lib/spawn.in.h: Likewise.
11372         * lib/stdio.in.h: Likewise.
11373         * lib/stdlib.in.h: Likewise.
11374         * lib/string.in.h: Likewise.
11375         * lib/strings.in.h: Likewise.
11376         * lib/sys_file.in.h: Likewise.
11377         * lib/sys_ioctl.in.h: Likewise.
11378         * lib/sys_select.in.h: Likewise.
11379         * lib/sys_socket.in.h: Likewise.
11380         * lib/sys_stat.in.h: Likewise.
11381         * lib/sys_times.in.h: Likewise.
11382         * lib/sys_utsname.in.h: Likewise.
11383         * lib/unistd.in.h: Likewise.
11384         * lib/wchar.in.h: Likewise.
11385
11386 2010-01-20  Bruno Haible  <bruno@clisp.org>
11387
11388         Avoid duplicate -lm.
11389         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
11390         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
11391         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
11392         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
11393         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
11394         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
11395         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
11396         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
11397         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
11398         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
11399         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
11400         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11401         Reported by Paolo Bonzini.
11402
11403 2010-01-19  Bruno Haible  <bruno@clisp.org>
11404
11405         langinfo, nl_langinfo: Relicense under LGPLv2+.
11406         * modules/langinfo (License): Change to LGPLv2+.
11407         * modules/nl_langinfo (License): Likewise.
11408         Patch by David Lutterkort <lutter@redhat.com>.
11409
11410 2010-01-19  Bruno Haible  <bruno@clisp.org>
11411
11412         Avoid compilation error with cc on OSF/1 5.1.
11413         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
11414         statement, not before.
11415         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11416
11417 2010-01-18  Bruno Haible  <bruno@clisp.org>
11418
11419         Avoid a link error due to the __printf__ symbol.
11420         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
11421         and 2.6.x.
11422         (__format__, __printf__): Remove definitions.
11423         * lib/argp-fmtstream.h: Likewise.
11424         * lib/argp.h: Likewise.
11425         * lib/error.h: Likewise.
11426         * lib/vasnprintf.h: Likewise.
11427         * lib/xprintf.h: Likewise.
11428         * lib/xvasprintf.h: Likewise.
11429         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11430
11431 2010-01-18  Bruno Haible  <bruno@clisp.org>
11432
11433         Tests for module 'tanl'.
11434         * modules/tanl-tests: New file.
11435         * tests/test-tanl.c: New file.
11436
11437         Tests for module 'sqrtl'.
11438         * modules/sqrtl-tests: New file.
11439         * tests/test-sqrtl.c: New file.
11440
11441         Tests for module 'sinl'.
11442         * modules/sinl-tests: New file.
11443         * tests/test-sinl.c: New file.
11444
11445         Tests for module 'logl'.
11446         * modules/logl-tests: New file.
11447         * tests/test-logl.c: New file.
11448
11449         Tests for module 'expl'.
11450         * modules/expl-tests: New file.
11451         * tests/test-expl.c: New file.
11452
11453         Tests for module 'cosl'.
11454         * modules/cosl-tests: New file.
11455         * tests/test-cosl.c: New file.
11456
11457         Tests for module 'atanl'.
11458         * modules/atanl-tests: New file.
11459         * tests/test-atanl.c: New file.
11460
11461         Tests for module 'asinl'.
11462         * modules/asinl-tests: New file.
11463         * tests/test-asinl.c: New file.
11464
11465         Tests for module 'acosl'.
11466         * modules/acosl-tests: New file.
11467         * tests/test-acosl.c: New file.
11468
11469         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
11470         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
11471         tanl): Use the standard gnulib idiom.
11472         * lib/cosl.c: Don't include trigl.c and sincosl.c.
11473         * lib/sinl.c: Likewise.
11474         * lib/tanl.c: Don't include trigl.c.
11475         (kernel_tanl): Make static.
11476         * lib/sincosl.c: Include trigl.h first.
11477         * lib/trigl.c: Likewise.
11478         * m4/acosl.m4: New file.
11479         * m4/asinl.m4: New file.
11480         * m4/atanl.m4: New file.
11481         * m4/cosl.m4: New file.
11482         * m4/expl.m4: New file.
11483         * m4/logl.m4: New file.
11484         * m4/sinl.m4: New file.
11485         * m4/sqrtl.m4: New file.
11486         * m4/tanl.m4: New file.
11487         * m4/mathl.m4: Remove file.
11488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
11489         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
11490         Don't initialize GNULIB_MATHL.
11491         * modules/acosl: New file.
11492         * modules/asinl: New file.
11493         * modules/atanl: New file.
11494         * modules/cosl: New file.
11495         * modules/expl: New file.
11496         * modules/logl: New file.
11497         * modules/sinl: New file.
11498         * modules/sqrtl: New file.
11499         * modules/tanl: New file.
11500         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
11501         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
11502         substitute GNULIB_MATHL.
11503         * modules/mathl: Rewritten.
11504         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
11505         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
11506         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
11507         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
11508         * doc/posix-functions/expl.texi: Mention the 'expl' module.
11509         * doc/posix-functions/logl.texi: Mention the 'logl' module.
11510         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
11511         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
11512         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
11513
11514 2010-01-18  Bruno Haible  <bruno@clisp.org>
11515
11516         sqrt: Make gl_FUNC_SQRT requirable.
11517         * m4/sqrt.m4: New file.
11518         * modules/sqrt (Files): Add it.
11519         (configure.ac): Invoke gl_FUNC_SQRT.
11520
11521 2010-01-18  Bruno Haible  <bruno@clisp.org>
11522
11523         New modules for common <math.h> functions.
11524         * m4/mathfunc.m4: New file.
11525         * modules/acos: New file.
11526         * modules/asin: New file.
11527         * modules/atan: New file.
11528         * modules/atan2: New file.
11529         * modules/cbrt: New file.
11530         * modules/copysign: New file.
11531         * modules/cos: New file.
11532         * modules/cosh: New file.
11533         * modules/erf: New file.
11534         * modules/erfc: New file.
11535         * modules/exp: New file.
11536         * modules/fabs: New file.
11537         * modules/fmod: New file.
11538         * modules/hypot: New file.
11539         * modules/j0: New file.
11540         * modules/j1: New file.
11541         * modules/jn: New file.
11542         * modules/ldexp: New file.
11543         * modules/lgamma: New file.
11544         * modules/log: New file.
11545         * modules/log10: New file.
11546         * modules/log1p: New file.
11547         * modules/logb: New file.
11548         * modules/modf: New file.
11549         * modules/nextafter: New file.
11550         * modules/pow: New file.
11551         * modules/remainder: New file.
11552         * modules/rint: New file.
11553         * modules/sin: New file.
11554         * modules/sinh: New file.
11555         * modules/sqrt: New file.
11556         * modules/tan: New file.
11557         * modules/tanh: New file.
11558         * modules/y0: New file.
11559         * modules/y1: New file.
11560         * modules/yn: New file.
11561         * doc/posix-functions/acos.texi: Mention the 'acos' module.
11562         * doc/posix-functions/asin.texi: Mention the 'asin' module.
11563         * doc/posix-functions/atan.texi: Mention the 'atan' module.
11564         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
11565         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
11566         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
11567         * doc/posix-functions/cos.texi: Mention the 'cos' module.
11568         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
11569         * doc/posix-functions/erf.texi: Mention the 'erf' module.
11570         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
11571         * doc/posix-functions/exp.texi: Mention the 'exp' module.
11572         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
11573         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
11574         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
11575         * doc/posix-functions/j0.texi: Mention the 'j0' module.
11576         * doc/posix-functions/j1.texi: Mention the 'j1' module.
11577         * doc/posix-functions/jn.texi: Mention the 'jn' module.
11578         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
11579         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
11580         * doc/posix-functions/log.texi: Mention the 'log' module.
11581         * doc/posix-functions/log10.texi: Mention the 'log10' module.
11582         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
11583         * doc/posix-functions/logb.texi: Mention the 'logb' module.
11584         * doc/posix-functions/modf.texi: Mention the 'modf' module.
11585         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
11586         * doc/posix-functions/pow.texi: Mention the 'pow' module.
11587         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
11588         * doc/posix-functions/rint.texi: Mention the 'rint' module.
11589         * doc/posix-functions/sin.texi: Mention the 'sin' module.
11590         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
11591         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
11592         * doc/posix-functions/tan.texi: Mention the 'tan' module.
11593         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
11594         * doc/posix-functions/y0.texi: Mention the 'y0' module.
11595         * doc/posix-functions/y1.texi: Mention the 'y1' module.
11596         * doc/posix-functions/yn.texi: Mention the 'yn' module.
11597
11598 2010-01-18  Jim Meyering  <meyering@redhat.com>
11599
11600         ignore-value: relax license to LGPLv2+
11601         * modules/ignore-value (License): Relax to LGPLv2+.
11602
11603         getdate: don't leak when TZ contains two or more '"'s
11604         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
11605         double quote in TZ after the first one.
11606
11607         readtokens: do not leak internal token_lengths buffer
11608         * lib/readtokens.c (readtokens): Free the local, lengths,
11609         when the supplied "token_lengths" parameter is NULL.
11610
11611 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11612
11613         Fix a couple of missing LIBTHREAD link failures on AIX.
11614         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
11615         $(LIBTHREAD).
11616         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
11617
11618         Link test-poll against INET_PTON_LIB.
11619         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
11620         for inet_pton on Solaris 10.
11621
11622 2010-01-17  Bruno Haible  <bruno@clisp.org>
11623
11624         unistdio/*-sprintf: Fix typo in module description.
11625         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
11626         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
11627         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
11628         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
11629         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
11630         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
11631         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
11632         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11633
11634 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11635
11636         gnulib-tool: fix filelist for AIX, HP-UX ksh.
11637         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
11638         variables in shell case patterns, for AIX and HP-UX ksh.
11639
11640         Split large sed scripts, for HP-UX sed.
11641         * modules/stdio: Split sed scripts around 50 sed commands,
11642         to avoid HP-UX limit of 99 commands, in the near future.
11643         * modules/string: Likewise.
11644         * modules/unistd: Likewise.
11645
11646         gnulib-tool: avoid writing in the current directory.
11647         * gnulib-tool (func_emit_lib_Makefile_am)
11648         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
11649         not in the current directory, so concurrent gnulib-tool
11650         instances do not interfere.
11651
11652 2010-01-16  Jim Meyering  <meyering@redhat.com>
11653
11654         doc: update users.txt
11655         * users.txt: Add grep.
11656         (diffutils, gzip): Update URLs.
11657
11658 2010-01-12  Bruno Haible  <bruno@clisp.org>
11659
11660         posix_spawn: Avoid test failure on Cygwin.
11661         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
11662         characters.
11663         Reported by Simon Josefsson.
11664
11665 2010-01-12  Bruno Haible  <bruno@clisp.org>
11666
11667         * tests/test-cond.c (main): When skipping the test, show the reason.
11668
11669 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11670
11671         * lib/striconv.c (str_cd_iconv): Avoid if before free.
11672
11673 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11674
11675         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
11676         VC_LIST_ALWAYS_EXCLUDE_REGEX.
11677
11678 2010-01-12  Eric Blake  <ebb9@byu.net>
11679
11680         build: guarantee AS_VAR_IF
11681         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
11682         (gl_AS_VAR_IF): Move...
11683         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
11684         Reported by Simon Josefsson.
11685
11686 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11687
11688         * lib/stdio.in.h: Fix typo.
11689
11690 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11691
11692         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
11693         libgpg-error.
11694
11695 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11696
11697         * tests/test-xalloc-die.sh: Use $EXEEXT.
11698
11699 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11700             Bruno Haible  <bruno@clisp.org>
11701
11702         getlogin, getlogin_r: Avoid test failure.
11703         * tests/test-getlogin.c: Include <stdio.h>.
11704         (main): Skip the test when the function fails because stdin is not a
11705         tty.
11706         * tests/test-getlogin_r.c: Include <stdio.h>.
11707         (main): Skip the test when the function fails because stdin is not a
11708         tty.
11709
11710 2010-01-11  Eric Blake  <ebb9@byu.net>
11711
11712         tests: avoid more large file warnings
11713         * tests/test-fflush.c: Avoid warning about ftell use.
11714         * tests/test-fseek.c: Avoid warning about fseek use.
11715
11716 2010-01-10  Bruno Haible  <bruno@clisp.org>
11717
11718         nproc: Work better on Linux when /proc and /sys are not mounted.
11719         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
11720         as lower bound when, on glibc/Linux systems,
11721         sysconf (_SC_NPROCESSORS_CONF) returns 1.
11722         Suggested by Pádraig Brady <P@draigbrady.com>.
11723         Reported by Dmitry V. Levin <ldv@altlinux.org>.
11724
11725         nproc: Refactor.
11726         * lib/nproc.c (num_processors_via_affinity_mask): New function,
11727         extracted from num_processors.
11728         (num_processors): Call it.
11729
11730 2010-01-11  Jim Meyering  <meyering@redhat.com>
11731
11732         utimecmp: avoid new warning from upcoming gcc-4.5.0
11733         * lib/utimecmp.c (BILLION): Define using #define rather than an
11734         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
11735
11736 2010-01-11  Eric Blake  <ebb9@byu.net>
11737
11738         math: add portability warnings for classification macros
11739         * modules/math (Depends-on): Add warn-on-use.
11740         (Makefile.am): Provide new substitutions.
11741         * m4/math_h.m4 (gl_MATH_H): Require inline.
11742         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
11743         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
11744         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
11745         implement warnings.
11746
11747         unistd: warn on use of environ without module
11748         * modules/unistd (Depends-on): Add warn-on-use.
11749         (Makefile.am): Provide new substitutions.
11750         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
11751         * lib/unistd.in.h (environ): Wrap with a warning helper function.
11752
11753         stdio: warn on suspicious uses
11754         * modules/stdio (Depends-on): Add warn-on-use.
11755         (Makefile.am): Provide new substitutions.
11756         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
11757         fseeko.
11758         * lib/stdio.in.h (gets): Always warn on use.
11759         (fseek, ftell): Adjust when warnings are issued, and honor
11760         _GL_NO_LARGE_FILES as a way to silence the warning.
11761         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
11762         any warning about large file offsets.
11763         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
11764         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
11765         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
11766         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
11767         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
11768         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
11769         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
11770         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
11771
11772         warn-on-use: new module
11773         * modules/warn-on-use: New file.
11774         * build-aux/warn-on-use.h: Likewise.
11775         * m4/warn-on-use.m4: Likewise.
11776         * MODULES.html.sh (Support for building): Mention it.
11777
11778 2010-01-10  Bruno Haible  <bruno@clisp.org>
11779
11780         Tests for module 'unistr/u32-strdup'.
11781         * modules/unistr/u32-strdup-tests: New file.
11782         * tests/unistr/test-u32-strdup.c: New file.
11783
11784         Tests for module 'unistr/u16-strdup'.
11785         * modules/unistr/u16-strdup-tests: New file.
11786         * tests/unistr/test-u16-strdup.c: New file.
11787
11788         Tests for module 'unistr/u8-strdup'.
11789         * modules/unistr/u8-strdup-tests: New file.
11790         * tests/unistr/test-u8-strdup.c: New file.
11791         * tests/unistr/test-strdup.h: New file.
11792
11793         Tests for module 'unistr/u32-strncmp'.
11794         * modules/unistr/u32-strncmp-tests: New file.
11795         * tests/unistr/test-u32-strncmp.c: New file.
11796
11797         Tests for module 'unistr/u16-strncmp'.
11798         * modules/unistr/u16-strncmp-tests: New file.
11799         * tests/unistr/test-u16-strncmp.c: New file.
11800
11801         Tests for module 'unistr/u8-strncmp'.
11802         * modules/unistr/u8-strncmp-tests: New file.
11803         * tests/unistr/test-u8-strncmp.c: New file.
11804         * tests/unistr/test-strncmp.h: New file.
11805
11806         Tests for module 'unistr/u32-strcoll'.
11807         * modules/unistr/u32-strcoll-tests: New file.
11808         * tests/unistr/test-u32-strcoll.c: New file.
11809
11810         Tests for module 'unistr/u16-strcoll'.
11811         * modules/unistr/u16-strcoll-tests: New file.
11812         * tests/unistr/test-u16-strcoll.c: New file.
11813
11814         Tests for module 'unistr/u8-strcoll'.
11815         * modules/unistr/u8-strcoll-tests: New file.
11816         * tests/unistr/test-u8-strcoll.c: New file.
11817
11818         Tests for module 'unistr/u32-strcmp'.
11819         * modules/unistr/u32-strcmp-tests: New file.
11820         * tests/unistr/test-u32-strcmp.c: New file.
11821         * tests/unistr/test-u32-strcmp.h: New file.
11822
11823         Tests for module 'unistr/u16-strcmp'.
11824         * modules/unistr/u16-strcmp-tests: New file.
11825         * tests/unistr/test-u16-strcmp.c: New file.
11826         * tests/unistr/test-u16-strcmp.h: New file.
11827
11828         Tests for module 'unistr/u8-strcmp'.
11829         * modules/unistr/u8-strcmp-tests: New file.
11830         * tests/unistr/test-u8-strcmp.c: New file.
11831         * tests/unistr/test-u8-strcmp.h: New file.
11832         * tests/unistr/test-strcmp.h: New file.
11833
11834         Tests for module 'unistr/u32-strncat'.
11835         * modules/unistr/u32-strncat-tests: New file.
11836         * tests/unistr/test-u32-strncat.c: New file.
11837
11838         Tests for module 'unistr/u16-strncat'.
11839         * modules/unistr/u16-strncat-tests: New file.
11840         * tests/unistr/test-u16-strncat.c: New file.
11841
11842         Tests for module 'unistr/u8-strncat'.
11843         * modules/unistr/u8-strncat-tests: New file.
11844         * tests/unistr/test-u8-strncat.c: New file.
11845         * tests/unistr/test-strncat.h: New file.
11846
11847         Tests for module 'unistr/u32-strcat'.
11848         * modules/unistr/u32-strcat-tests: New file.
11849         * tests/unistr/test-u32-strcat.c: New file.
11850
11851         Tests for module 'unistr/u16-strcat'.
11852         * modules/unistr/u16-strcat-tests: New file.
11853         * tests/unistr/test-u16-strcat.c: New file.
11854
11855         Tests for module 'unistr/u8-strcat'.
11856         * modules/unistr/u8-strcat-tests: New file.
11857         * tests/unistr/test-u8-strcat.c: New file.
11858         * tests/unistr/test-strcat.h: New file.
11859
11860         Tests for module 'unistr/u32-stpncpy'.
11861         * modules/unistr/u32-stpncpy-tests: New file.
11862         * tests/unistr/test-u32-stpncpy.c: New file.
11863
11864         Tests for module 'unistr/u16-stpncpy'.
11865         * modules/unistr/u16-stpncpy-tests: New file.
11866         * tests/unistr/test-u16-stpncpy.c: New file.
11867
11868         Tests for module 'unistr/u8-stpncpy'.
11869         * modules/unistr/u8-stpncpy-tests: New file.
11870         * tests/unistr/test-u8-stpncpy.c: New file.
11871         * tests/unistr/test-stpncpy.h: New file.
11872
11873         Tests for module 'unistr/u32-strncpy'.
11874         * modules/unistr/u32-strncpy-tests: New file.
11875         * tests/unistr/test-u32-strncpy.c: New file.
11876
11877         Tests for module 'unistr/u16-strncpy'.
11878         * modules/unistr/u16-strncpy-tests: New file.
11879         * tests/unistr/test-u16-strncpy.c: New file.
11880
11881         Tests for module 'unistr/u8-strncpy'.
11882         * modules/unistr/u8-strncpy-tests: New file.
11883         * tests/unistr/test-u8-strncpy.c: New file.
11884         * tests/unistr/test-strncpy.h: New file.
11885
11886         Tests for module 'unistr/u32-stpcpy'.
11887         * modules/unistr/u32-stpcpy-tests: New file.
11888         * tests/unistr/test-u32-stpcpy.c: New file.
11889
11890         Tests for module 'unistr/u16-stpcpy'.
11891         * modules/unistr/u16-stpcpy-tests: New file.
11892         * tests/unistr/test-u16-stpcpy.c: New file.
11893
11894         Tests for module 'unistr/u8-stpcpy'.
11895         * modules/unistr/u8-stpcpy-tests: New file.
11896         * tests/unistr/test-u8-stpcpy.c: New file.
11897         * tests/unistr/test-stpcpy.h: New file.
11898
11899         Tests for module 'unistr/u32-strcpy'.
11900         * modules/unistr/u32-strcpy-tests: New file.
11901         * tests/unistr/test-u32-strcpy.c: New file.
11902
11903         Tests for module 'unistr/u16-strcpy'.
11904         * modules/unistr/u16-strcpy-tests: New file.
11905         * tests/unistr/test-u16-strcpy.c: New file.
11906
11907         Tests for module 'unistr/u8-strcpy'.
11908         * modules/unistr/u8-strcpy-tests: New file.
11909         * tests/unistr/test-u8-strcpy.c: New file.
11910         * tests/unistr/test-strcpy.h: New file.
11911
11912         Tests for module 'unistr/u32-strnlen'.
11913         * modules/unistr/u32-strnlen-tests: New file.
11914         * tests/unistr/test-u32-strnlen.c: New file.
11915
11916         Tests for module 'unistr/u16-strnlen'.
11917         * modules/unistr/u16-strnlen-tests: New file.
11918         * tests/unistr/test-u16-strnlen.c: New file.
11919
11920         Tests for module 'unistr/u8-strnlen'.
11921         * modules/unistr/u8-strnlen-tests: New file.
11922         * tests/unistr/test-u8-strnlen.c: New file.
11923         * tests/unistr/test-strnlen.h: New file.
11924
11925         Tests for module 'unistr/u32-strlen'.
11926         * modules/unistr/u32-strlen-tests: New file.
11927         * tests/unistr/test-u32-strlen.c: New file.
11928
11929         Tests for module 'unistr/u16-strlen'.
11930         * modules/unistr/u16-strlen-tests: New file.
11931         * tests/unistr/test-u16-strlen.c: New file.
11932
11933         Tests for module 'unistr/u8-strlen'.
11934         * modules/unistr/u8-strlen-tests: New file.
11935         * tests/unistr/test-u8-strlen.c: New file.
11936
11937         Tests for module 'unistr/u32-prev'.
11938         * modules/unistr/u32-prev-tests: New file.
11939         * tests/unistr/test-u32-prev.c: New file.
11940
11941         Tests for module 'unistr/u16-prev'.
11942         * modules/unistr/u16-prev-tests: New file.
11943         * tests/unistr/test-u16-prev.c: New file.
11944
11945         Tests for module 'unistr/u8-prev'.
11946         * modules/unistr/u8-prev-tests: New file.
11947         * tests/unistr/test-u8-prev.c: New file.
11948
11949         Tests for module 'unistr/u32-next'.
11950         * modules/unistr/u32-next-tests: New file.
11951         * tests/unistr/test-u32-next.c: New file.
11952
11953         Tests for module 'unistr/u16-next'.
11954         * modules/unistr/u16-next-tests: New file.
11955         * tests/unistr/test-u16-next.c: New file.
11956
11957         Tests for module 'unistr/u8-next'.
11958         * modules/unistr/u8-next-tests: New file.
11959         * tests/unistr/test-u8-next.c: New file.
11960
11961         Tests for module 'unistr/u32-strmbtouc'.
11962         * modules/unistr/u32-strmbtouc-tests: New file.
11963         * tests/unistr/test-u32-strmbtouc.c: New file.
11964
11965         Tests for module 'unistr/u16-strmbtouc'.
11966         * modules/unistr/u16-strmbtouc-tests: New file.
11967         * tests/unistr/test-u16-strmbtouc.c: New file.
11968
11969         Tests for module 'unistr/u8-strmbtouc'.
11970         * modules/unistr/u8-strmbtouc-tests: New file.
11971         * tests/unistr/test-u8-strmbtouc.c: New file.
11972
11973         Tests for module 'unistr/u32-strmblen'.
11974         * modules/unistr/u32-strmblen-tests: New file.
11975         * tests/unistr/test-u32-strmblen.c: New file.
11976
11977         Tests for module 'unistr/u16-strmblen'.
11978         * modules/unistr/u16-strmblen-tests: New file.
11979         * tests/unistr/test-u16-strmblen.c: New file.
11980
11981         Tests for module 'unistr/u8-strmblen'.
11982         * modules/unistr/u8-strmblen-tests: New file.
11983         * tests/unistr/test-u8-strmblen.c: New file.
11984
11985         Tests for module 'unistr/u32-cpy-alloc'.
11986         * modules/unistr/u32-cpy-alloc-tests: New file.
11987         * tests/unistr/test-u32-cpy-alloc.c: New file.
11988
11989         Tests for module 'unistr/u16-cpy-alloc'.
11990         * modules/unistr/u16-cpy-alloc-tests: New file.
11991         * tests/unistr/test-u16-cpy-alloc.c: New file.
11992
11993         Tests for module 'unistr/u8-cpy-alloc'.
11994         * modules/unistr/u8-cpy-alloc-tests: New file.
11995         * tests/unistr/test-u8-cpy-alloc.c: New file.
11996         * tests/unistr/test-cpy-alloc.h: New file.
11997
11998         Tests for module 'unistr/u32-mbsnlen'.
11999         * modules/unistr/u32-mbsnlen-tests: New file.
12000         * tests/unistr/test-u32-mbsnlen.c: New file.
12001
12002         Tests for module 'unistr/u16-mbsnlen'.
12003         * modules/unistr/u16-mbsnlen-tests: New file.
12004         * tests/unistr/test-u16-mbsnlen.c: New file.
12005
12006         Tests for module 'unistr/u8-mbsnlen'.
12007         * modules/unistr/u8-mbsnlen-tests: New file.
12008         * tests/unistr/test-u8-mbsnlen.c: New file.
12009
12010         Tests for module 'unistr/u32-chr'.
12011         * modules/unistr/u32-chr-tests: New file.
12012         * tests/unistr/test-u32-chr.c: New file.
12013
12014         Tests for module 'unistr/u16-chr'.
12015         * modules/unistr/u16-chr-tests: New file.
12016         * tests/unistr/test-u16-chr.c: New file.
12017
12018         Tests for module 'unistr/u8-chr'.
12019         * modules/unistr/u8-chr-tests: New file.
12020         * tests/unistr/test-u8-chr.c: New file.
12021         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
12022
12023         Tests for module 'unistr/u32-cmp2'.
12024         * modules/unistr/u32-cmp2-tests: New file.
12025         * tests/unistr/test-u32-cmp2.c: New file.
12026
12027         Tests for module 'unistr/u16-cmp2'.
12028         * modules/unistr/u16-cmp2-tests: New file.
12029         * tests/unistr/test-u16-cmp2.c: New file.
12030
12031         Tests for module 'unistr/u8-cmp2'.
12032         * modules/unistr/u8-cmp2-tests: New file.
12033         * tests/unistr/test-u8-cmp2.c: New file.
12034         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
12035
12036         Tests for module 'unistr/u32-cmp'.
12037         * modules/unistr/u32-cmp-tests: New file.
12038         * tests/unistr/test-u32-cmp.c: New file.
12039
12040         Tests for module 'unistr/u16-cmp'.
12041         * modules/unistr/u16-cmp-tests: New file.
12042         * tests/unistr/test-u16-cmp.c: New file.
12043
12044         Tests for module 'unistr/u8-cmp'.
12045         * modules/unistr/u8-cmp-tests: New file.
12046         * tests/unistr/test-u8-cmp.c: New file.
12047         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
12048
12049         Tests for module 'unistr/u32-set'.
12050         * modules/unistr/u32-set-tests: New file.
12051         * tests/unistr/test-u32-set.c: New file.
12052
12053         Tests for module 'unistr/u16-set'.
12054         * modules/unistr/u16-set-tests: New file.
12055         * tests/unistr/test-u16-set.c: New file.
12056
12057         Tests for module 'unistr/u8-set'.
12058         * modules/unistr/u8-set-tests: New file.
12059         * tests/unistr/test-u8-set.c: New file.
12060         * tests/unistr/test-set.h: New file.
12061
12062         Tests for module 'unistr/u32-move'.
12063         * modules/unistr/u32-move-tests: New file.
12064         * tests/unistr/test-u32-move.c: New file.
12065
12066         Tests for module 'unistr/u16-move'.
12067         * modules/unistr/u16-move-tests: New file.
12068         * tests/unistr/test-u16-move.c: New file.
12069
12070         Tests for module 'unistr/u8-move'.
12071         * modules/unistr/u8-move-tests: New file.
12072         * tests/unistr/test-u8-move.c: New file.
12073         * tests/unistr/test-move.h: New file.
12074
12075         Tests for module 'unistr/u32-cpy'.
12076         * modules/unistr/u32-cpy-tests: New file.
12077         * tests/unistr/test-u32-cpy.c: New file.
12078
12079         Tests for module 'unistr/u16-cpy'.
12080         * modules/unistr/u16-cpy-tests: New file.
12081         * tests/unistr/test-u16-cpy.c: New file.
12082
12083         Tests for module 'unistr/u8-cpy'.
12084         * modules/unistr/u8-cpy-tests: New file.
12085         * tests/unistr/test-u8-cpy.c: New file.
12086         * tests/unistr/test-cpy.h: New file.
12087
12088 2010-01-09  Bruno Haible  <bruno@clisp.org>
12089
12090         Tests for module 'unistr/u32-uctomb'.
12091         * modules/unistr/u32-uctomb-tests: New file.
12092         * tests/unistr/test-u32-uctomb.c: New file.
12093
12094         Tests for module 'unistr/u16-uctomb'.
12095         * modules/unistr/u16-uctomb-tests: New file.
12096         * tests/unistr/test-u16-uctomb.c: New file.
12097
12098         Tests for module 'unistr/u8-uctomb'.
12099         * modules/unistr/u8-uctomb-tests: New file.
12100         * tests/unistr/test-u8-uctomb.c: New file.
12101
12102         Tests for module 'unistr/u32-mbtoucr'.
12103         * modules/unistr/u32-mbtoucr-tests: New file.
12104         * tests/unistr/test-u32-mbtoucr.c: New file.
12105
12106         Tests for module 'unistr/u16-mbtoucr'.
12107         * modules/unistr/u16-mbtoucr-tests: New file.
12108         * tests/unistr/test-u16-mbtoucr.c: New file.
12109
12110         Tests for module 'unistr/u8-mbtoucr'.
12111         * modules/unistr/u8-mbtoucr-tests: New file.
12112         * tests/unistr/test-u8-mbtoucr.c: New file.
12113
12114         Tests for module 'unistr/u32-mbtouc'.
12115         * modules/unistr/u32-mbtouc-tests: New file.
12116         * tests/unistr/test-u32-mbtouc.c: New file.
12117
12118         Tests for module 'unistr/u16-mbtouc'.
12119         * modules/unistr/u16-mbtouc-tests: New file.
12120         * tests/unistr/test-u16-mbtouc.c: New file.
12121
12122         Tests for module 'unistr/u8-mbtouc'.
12123         * modules/unistr/u8-mbtouc-tests: New file.
12124         * tests/unistr/test-u8-mbtouc.c: New file.
12125
12126         Tests for module 'unistr/u32-mbtouc-unsafe'.
12127         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
12128         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
12129         * tests/unistr/test-u32-mbtouc.h: New file.
12130
12131         Tests for module 'unistr/u16-mbtouc-unsafe'.
12132         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
12133         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
12134         * tests/unistr/test-u16-mbtouc.h: New file.
12135
12136         Tests for module 'unistr/u8-mbtouc-unsafe'.
12137         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
12138         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
12139         * tests/unistr/test-u8-mbtouc.h: New file.
12140
12141         Tests for module 'unistr/u32-mblen'.
12142         * modules/unistr/u32-mblen-tests: New file.
12143         * tests/unistr/test-u32-mblen.c: New file.
12144
12145         Tests for module 'unistr/u16-mblen'.
12146         * modules/unistr/u16-mblen-tests: New file.
12147         * tests/unistr/test-u16-mblen.c: New file.
12148
12149         Tests for module 'unistr/u8-mblen'.
12150         * modules/unistr/u8-mblen-tests: New file.
12151         * tests/unistr/test-u8-mblen.c: New file.
12152
12153         Tests for module 'unistr/u32-to-u16'.
12154         * modules/unistr/u32-to-u16-tests: New file.
12155         * tests/unistr/test-u32-to-u16.c: New file.
12156
12157         Tests for module 'unistr/u32-to-u8'.
12158         * modules/unistr/u32-to-u8-tests: New file.
12159         * tests/unistr/test-u32-to-u8.c: New file.
12160
12161         Tests for module 'unistr/u16-to-u32'.
12162         * modules/unistr/u16-to-u32-tests: New file.
12163         * tests/unistr/test-u16-to-u32.c: New file.
12164
12165         Tests for module 'unistr/u16-to-u8'.
12166         * modules/unistr/u16-to-u8-tests: New file.
12167         * tests/unistr/test-u16-to-u8.c: New file.
12168
12169         Tests for module 'unistr/u8-to-u32'.
12170         * modules/unistr/u8-to-u32-tests: New file.
12171         * tests/unistr/test-u8-to-u32.c: New file.
12172
12173         Tests for module 'unistr/u8-to-u16'.
12174         * modules/unistr/u8-to-u16-tests: New file.
12175         * tests/unistr/test-u8-to-u16.c: New file.
12176
12177         Tests for module 'unistr/u32-check'.
12178         * modules/unistr/u32-check-tests: New file.
12179         * tests/unistr/test-u32-check.c: New file.
12180
12181         Tests for module 'unistr/u16-check'.
12182         * modules/unistr/u16-check-tests: New file.
12183         * tests/unistr/test-u16-check.c: New file.
12184
12185         Tests for module 'unistr/u8-check'.
12186         * modules/unistr/u8-check-tests: New file.
12187         * tests/unistr/test-u8-check.c: New file.
12188
12189         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
12190         (category_equals): New function.
12191         (main): Add more tests.
12192         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
12193
12194         * tests/unictype/test-bidi_byname.c (main): Add more tests.
12195
12196 2010-01-10  Bruno Haible  <bruno@clisp.org>
12197
12198         unistr/u*-strcoll: Try harder to distinguish different strings.
12199         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
12200         compare s1 and s2 to see if they are different.
12201
12202 2010-01-10  Bruno Haible  <bruno@clisp.org>
12203
12204         unistr/u*-stpncpy: Fix the return value.
12205         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
12206         description of the return value consistent with stpncpy in glibc.
12207         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
12208         written non-NUL unit.
12209
12210 2010-01-10  Bruno Haible  <bruno@clisp.org>
12211
12212         unistr/u*-next: Add missing dependencies.
12213         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
12214         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
12215         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
12216
12217 2010-01-10  Bruno Haible  <bruno@clisp.org>
12218
12219         unistr/u8-mbsnlen: Fix return value for incomplete character.
12220         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
12221         u8_mblen.
12222         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
12223         Remove unistr/u8-mblen.
12224         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
12225         u16_mblen.
12226         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
12227         Remove unistr/u16-mblen.
12228
12229 2010-01-10  Bruno Haible  <bruno@clisp.org>
12230
12231         wchar: Fix compilation error when <wchar.h> is used from coreutils.
12232         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
12233         Reported by Brian Gough <bjg@gnu.org> and
12234         Chris Clayton <chris2553@googlemail.com> via
12235         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
12236
12237 2010-01-09  Bruno Haible  <bruno@clisp.org>
12238
12239         unistr/u16-to-u32: Reject invalid input.
12240         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
12241         u16_mbtouc.
12242         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
12243         Remove unistr/u16-mbtouc.
12244
12245         unistr/u16-to-u8: Reject invalid input.
12246         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
12247         u16_mbtouc.
12248         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
12249         Remove unistr/u16-mbtouc.
12250
12251         unistr/u8-to-u32: Reject invalid input.
12252         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
12253         u8_mbtouc.
12254         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
12255         Remove unistr/u8-mbtouc.
12256
12257         unistr/u8-to-u16: Reject invalid input.
12258         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
12259         u8_mbtouc.
12260         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
12261         Remove unistr/u8-mbtouc.
12262
12263 2010-01-09  Bruno Haible  <bruno@clisp.org>
12264
12265         Tests for module 'getlogin'.
12266         * modules/getlogin-tests: New file.
12267         * tests/test-getlogin.c: New file.
12268
12269         New module 'getlogin'.
12270         * lib/unistd.in.h (getlogin): New declaration.
12271         * lib/getlogin.c: New file.
12272         * m4/getlogin.m4: New file.
12273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
12274         HAVE_GETLOGIN.
12275         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
12276         HAVE_GETLOGIN.
12277         * modules/getlogin: New file.
12278         * doc/posix-functions/getlogin.texi: Mention the new module.
12279         Reported by John W. Eaton <jwe@gnu.org>.
12280
12281 2010-01-09  Bruno Haible  <bruno@clisp.org>
12282
12283         getlogin_r: Support for native Windows.
12284         * lib/getlogin_r.c: Include <windows.h>
12285         (getlogin_r): Implement for native Windows.
12286         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
12287         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
12288         via John W. Eaton <jwe@gnu.org>.
12289
12290 2010-01-09  Bruno Haible  <bruno@clisp.org>
12291
12292         getlogin_r: Small fixes.
12293         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
12294         succeeds.
12295         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
12296         before testing whether getlogin_r is declared. No need to set
12297         HAVE_DECL_GETLOGIN_R to 1.
12298         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
12299
12300 2010-01-09  Bruno Haible  <bruno@clisp.org>
12301
12302         * lib/unistd.in.h (getlogin_r): Add comment.
12303
12304 2010-01-09  Bruno Haible  <bruno@clisp.org>
12305
12306         Tests for module 'getlogin_r'.
12307         * modules/getlogin_r-tests: New file.
12308         * tests/test-getlogin_r.c: New file.
12309
12310 2010-01-09  Jim Meyering  <meyering@redhat.com>
12311
12312         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
12313         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
12314         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
12315
12316 2010-01-08  Simon Josefsson  <simon@josefsson.org>
12317
12318         * lib/dup2.c (rpl_dup2): Improve comment.
12319
12320 2010-01-08  Eric Blake  <ebb9@byu.net>
12321
12322         maint.mk: allow packages to add makefile @@ exceptions
12323         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
12324         (sc_makefile_check): Rename...
12325         (sc_makefile_at_at_check): ...to this, and use hook.
12326
12327         dup2: work around mingw bug
12328         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
12329         Reported by Simon Josefsson.
12330
12331 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
12332
12333         glob: Fix C++ compilation.
12334         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
12335         C++.
12336
12337 2010-01-07  Bruno Haible  <bruno@clisp.org>
12338
12339         Fix indentation of wctype.in.h, broken since 2007-01-06.
12340         * lib/wctype.in.h: Fix indentation of preprocessor directives.
12341
12342 2010-01-07  Bruno Haible  <bruno@clisp.org>
12343
12344         mbslen: Avoid collision with system function.
12345         * lib/string.in.h [MirBSD]: Include <wchar.h>.
12346         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
12347         * m4/mbslen.m4: New file.
12348         * modules/mbslen (Files): Add it.
12349         (configure.ac): Invoke gl_MBSLEN.
12350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
12351         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
12352         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
12353         via Ian Beckwith <ianb@erislabs.net>.
12354
12355 2010-01-07  Bruno Haible  <bruno@clisp.org>
12356
12357         dirent: Document the last fix.
12358         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
12359
12360 2010-01-07  Bruno Haible  <bruno@clisp.org>
12361
12362         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
12363         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
12364         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
12365         va_list are defined.
12366         * doc/posix-headers/stdio.texi: Document the bug of missing types.
12367         Reported by Eric Blake.
12368
12369 2010-01-07  Bruno Haible  <bruno@clisp.org>
12370
12371         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
12372         * modules/xlist (Depends-on): Add 'list',
12373         * modules/xoset (Depends-on): Add 'oset'.
12374         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12375
12376 2010-01-07  Bruno Haible  <bruno@clisp.org>
12377
12378         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
12379         * doc/posix-functions/strncasecmp.texi: Likewise.
12380
12381 2010-01-07  Bruno Haible  <bruno@clisp.org>
12382
12383         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
12384
12385 2010-01-07  John W. Eaton  <jwe@octave.org>
12386
12387         wctype: allow C++ use
12388         * lib/wctype.in.h: Add extern "C" block for C++.
12389
12390 2010-01-06  Eric Blake  <ebb9@byu.net>
12391
12392         maint.mk: detect incorrect GFDL usage
12393         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
12394
12395 2010-01-06  Jim Meyering  <meyering@redhat.com>
12396         and Eric Blake  <ebb9@byu.net>
12397
12398         maint.mk: ignore multi-line copyright in NEWS
12399         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
12400
12401 2010-01-06  Eric Blake  <ebb9@byu.net>
12402
12403         select: add missing dependency
12404         * modules/select-tests (Depends-on): Move sockets dependency...
12405         * modules/select (Depends-on): ...here.
12406         Reported by Ian Beckwith.
12407
12408         doc: regenerate INSTALL
12409         * doc/INSTALL: Reflect recent autoconf update.
12410         * doc/INSTALL.ISO: Likewise.
12411         * doc/INSTALL.UTF-8: Likewise.
12412
12413         pread: fix compilation on glibc
12414         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
12415         Reported by Ralf Wildenhues.
12416
12417         dirent: fix test failure
12418         * lib/dirent.in.h (includes): Guarantee ino_t.
12419         Reported by Ralf Wildenhues.
12420
12421 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
12422
12423         linkat, renameat: avoid bad free
12424         * lib/at-func2.c (at_func2): Fix typo.
12425         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
12426
12427 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12428
12429         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
12430         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
12431         to avoid failure of symlink test later.
12432
12433 2010-01-06  Eric Blake  <ebb9@byu.net>
12434
12435         stdio, unistd: guarantee ssize_t
12436         * lib/unistd.in.h (includes): Ensure that types required by POSIX
12437         2008 are exposed when needed.
12438         * lib/stdio.in.h (includes): Likewise.
12439         Reported by Ralf Wildenhues.
12440
12441 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
12442
12443         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
12444         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
12445         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
12446
12447 2010-01-06  Jim Meyering  <meyering@redhat.com>
12448
12449         readtokens: this module *does* require xalloc.h
12450         It uses only functions that were omitted by the old syntax-check rule.
12451         * lib/readtokens.c: Include "xalloc.h" once again.
12452         * modules/readtokens (Depends-on): Add xalloc.
12453         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
12454
12455 2010-01-05  Eric Blake  <ebb9@byu.net>
12456
12457         maint: support 'make announcement' from a VPATH build
12458         * top/maint.mk (announcement): Look for correct NEWS file.
12459
12460 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
12461
12462         utimens (fdutimens): ignore a negative FD, per contract
12463         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
12464         when we have a valid file descriptor.  Otherwise, using a brand
12465         new glibc (with just-patched futimens that now fails with EBADF)
12466         would cause this function to fail with ENOSYS.
12467         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
12468         See also http://bugzilla.redhat.com/552320.
12469
12470 2010-01-05  Eric Blake  <ebb9@byu.net>
12471
12472         strcase: document what it provides
12473         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
12474         gnulib module.
12475         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
12476         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
12477
12478 2010-01-05  Jim Meyering  <meyering@redhat.com>
12479
12480         maint: remove useless inclusions of "xalloc.h"
12481         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
12482         * lib/readtokens.c: Likewise.
12483         * lib/same.c: Likewise.
12484         * modules/getloadavg (Depends-on): Remove xalloc.
12485         * modules/readtokens: Likewise.
12486         * modules/same: Likewise.
12487
12488         maint.mk: include 4 more function names in alloca.h-checking regexp
12489         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
12490         regexp.  Before, we would give a false-positive (saying alloca.h
12491         is included unnecessarily) when the only uses involved omitted symbols.
12492
12493         xalloc.h: use consistent formatting
12494         * lib/xalloc.h: Move declarations to start in the first column.
12495
12496 2010-01-05  Eric Blake  <ebb9@byu.net>
12497
12498         mkdir: avoid xalloc
12499         * lib/mkdir.c (includes): Drop unused header.
12500         Reported by John W. Eaton.
12501
12502 2010-01-04  Jim Meyering  <meyering@redhat.com>
12503
12504         nl_langinfo: avoid configure-time syntax error
12505         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
12506         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
12507         the empty string.  Don't let that provoke a shell syntax error.
12508
12509         regcomp, regexec, fnmatch: avoid array bounds read error
12510         * lib/regcomp.c (build_equiv_class): From glibc:
12511         Use only the low 24 bits of a findidx return value as an index
12512         into the weights array.  Patch by Ulrich Drepper:
12513         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
12514         * lib/regexec.c (check_node_accept_bytes): Likewise.
12515         * lib/fnmatch_loop.c (FCT): Likewise.
12516
12517         regcomp: skip collseq lookup when there are no rules
12518         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
12519         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
12520
12521         regcomp: recognize ill-formed { } expressions
12522         * lib/regcomp.c (parse_dup_op): From glibc:
12523         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
12524
12525         regcomp: fix typo in comment
12526         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
12527         s/satisfy/satisfies/.
12528
12529         regcomp: sync from glibc: remove dead store
12530         * lib/regcomp.c (duplicate_node_closure): Remove useless
12531         search_duplicated_node call and dead store.
12532
12533         regcomp: sync from glibc; always use nl_langinfo
12534         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
12535         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
12536         * modules/regex (Depends-on): Add nl_langinfo.
12537
12538 2010-01-04  Eric Blake  <ebb9@byu.net>
12539
12540         fdopendir: fix configure test
12541         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
12542
12543 2010-01-01  Bruno Haible  <bruno@clisp.org>
12544
12545         wchar: Remove unused configure check.
12546         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
12547
12548 2010-01-01  Eric Blake  <ebb9@byu.net>
12549
12550         headers: make check of system header explicit
12551         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
12552         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
12553         ourselves.
12554         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12555         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12556         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
12557         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
12558         internals.
12559         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
12560         missing.
12561         Suggested by Bruno Haible.
12562
12563 2010-01-01  Jim Meyering  <meyering@redhat.com>
12564
12565         ChangeLog: tweak to eliminate unnecessary copyright line
12566         * ChangeLog: Remove a copyright line that was mistakenly updated
12567         by today's update-copyright run.  Reported by Eric Blake.
12568
12569         test-update-copyright: don't let envvar setting cause test failure
12570         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12571
12572 2010-01-01  Bruno Haible  <bruno@clisp.org>
12573
12574         localename: Avoid gcc warning.
12575         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
12576         function if it is not used.
12577
12578 2010-01-01  Jim Meyering  <meyering@redhat.com>
12579
12580         update nearly all FSF copyright year lists to include 2010
12581         Use the same procedure as for 2009, outlined in
12582         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
12583
12584         version-etc: set COPYRIGHT_YEAR to 2010
12585         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
12586
12587 2009-12-31  Eric Blake  <ebb9@byu.net>
12588
12589         doc: correct availability of cygwin 1.5.x getopt
12590         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
12591         variables.
12592         * doc/posix-functions/opterr.texi (opterr): Likewise.
12593         * doc/posix-functions/optind.texi (optind): Likewise.
12594         * doc/posix-functions/optopt.texi (optopt): Likewise.
12595         * doc/posix-functions/tzname.texi (tzname): Likewise.
12596
12597         openat: update maintainer
12598         * modules/openat (Maintainer): Add myself.
12599
12600         utimens: avoid shadowing warning
12601         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
12602         buffers into one, to avoid shadowing, as well as avoiding a
12603         redundant stat.
12604         Reported by Jim Meyering.
12605
12606         test-dup2: avoid compiler warning
12607         * tests/test-dup2.c (is_inheritable): Only define if used.
12608
12609 2010-01-01  Bruno Haible  <bruno@clisp.org>
12610
12611         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
12612         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
12613         defined, use wctomb instead of wcrtomb.
12614
12615 2010-01-01  Bruno Haible  <bruno@clisp.org>
12616
12617         iconv: Reject native Solaris iconv.
12618         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
12619         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
12620
12621 2009-12-31  Bruno Haible  <bruno@clisp.org>
12622
12623         * tests/test-signal.c (main): Remove test of 'SIG'.
12624
12625 2009-12-31  Bruno Haible  <bruno@clisp.org>
12626
12627         spawn: Fix incomplete fix.
12628         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12629         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12630         warnings for GNULIB_POSIXCHECK again.
12631         Reported by Eric Blake.
12632
12633 2009-12-31  Bruno Haible  <bruno@clisp.org>
12634
12635         Avoid namespace pollution on glibc systems.
12636         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
12637         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
12638         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
12639         glibc systems.
12640
12641 2009-12-31  Bruno Haible  <bruno@clisp.org>
12642
12643         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
12644         (gl_REPLACE_WCHAR_H): Turn into a no-op.
12645         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
12646         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12647         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12648         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12649         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12650
12651 2009-12-31  Bruno Haible  <bruno@clisp.org>
12652
12653         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12654         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
12655         afterwards.
12656
12657 2009-12-31  Bruno Haible  <bruno@clisp.org>
12658
12659         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
12660         SYS_UTSNAME_H.
12661
12662 2009-12-31  Bruno Haible  <bruno@clisp.org>
12663
12664         spawn: Fix misapplied patch.
12665         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12666         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12667         warnings for GNULIB_POSIXCHECK.
12668
12669 2009-12-31  Bruno Haible  <bruno@clisp.org>
12670
12671         times: Update after sys_times changed.
12672         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
12673         * modules/times (Files): Add it.
12674         (configure.ac): Invoke gl_FUNC_TIMES.
12675
12676 2009-12-31  Bruno Haible  <bruno@clisp.org>
12677
12678         Use AC_C_INLINE where necessary.
12679         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
12680         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12681         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
12682         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12683         * m4/mbfile.m4 (gl_MBFILE): Likewise.
12684         * m4/mbiter.m4 (gl_MBITER): Likewise.
12685         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12686         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12687         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
12688         * modules/u64 (configure.ac): Likewise.
12689
12690 2009-12-31  Bruno Haible  <bruno@clisp.org>
12691
12692         Use AC_C_INLINE instead of module 'inline' where possible.
12693         * modules/inline (Description): Clarify purpose.
12694         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
12695         * modules/count-one-bits (Depends-on): Remove inline.
12696         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
12697         * modules/openat (Depends-on): Remove inline.
12698         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
12699         instead of depending on module 'inline'.
12700         * modules/filevercmp (Depends-on, configure.ac): Likewise.
12701         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
12702         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
12703         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
12704         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
12705         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
12706         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
12707         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
12708         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
12709         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
12710         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
12711         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
12712         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
12713         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
12714         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
12715         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
12716         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
12717         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
12718         Likewise.
12719         * modules/unictype/property-ascii-hex-digit (Depends-on,
12720         configure.ac): Likewise.
12721         * modules/unictype/property-bidi-arabic-digit (Depends-on,
12722         configure.ac): Likewise.
12723         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
12724         configure.ac): Likewise.
12725         * modules/unictype/property-bidi-block-separator (Depends-on,
12726         configure.ac): Likewise.
12727         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
12728         configure.ac): Likewise.
12729         * modules/unictype/property-bidi-common-separator (Depends-on,
12730         configure.ac): Likewise.
12731         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
12732         Likewise.
12733         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
12734         configure.ac): Likewise.
12735         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
12736         configure.ac): Likewise.
12737         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
12738         configure.ac): Likewise.
12739         * modules/unictype/property-bidi-european-digit (Depends-on,
12740         configure.ac): Likewise.
12741         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
12742         configure.ac): Likewise.
12743         * modules/unictype/property-bidi-left-to-right (Depends-on,
12744         configure.ac): Likewise.
12745         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
12746         configure.ac): Likewise.
12747         * modules/unictype/property-bidi-other-neutral (Depends-on,
12748         configure.ac): Likewise.
12749         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
12750         Likewise.
12751         * modules/unictype/property-bidi-segment-separator (Depends-on,
12752         configure.ac): Likewise.
12753         * modules/unictype/property-bidi-whitespace (Depends-on,
12754         configure.ac): Likewise.
12755         * modules/unictype/property-combining (Depends-on, configure.ac):
12756         Likewise.
12757         * modules/unictype/property-composite (Depends-on, configure.ac):
12758         Likewise.
12759         * modules/unictype/property-currency-symbol (Depends-on,
12760         configure.ac): Likewise.
12761         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
12762         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
12763         Likewise.
12764         * modules/unictype/property-default-ignorable-code-point (Depends-on,
12765         configure.ac): Likewise.
12766         * modules/unictype/property-deprecated (Depends-on, configure.ac):
12767         Likewise.
12768         * modules/unictype/property-diacritic (Depends-on, configure.ac):
12769         Likewise.
12770         * modules/unictype/property-extender (Depends-on, configure.ac):
12771         Likewise.
12772         * modules/unictype/property-format-control (Depends-on, configure.ac):
12773         Likewise.
12774         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
12775         Likewise.
12776         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
12777         Likewise.
12778         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
12779         Likewise.
12780         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
12781         Likewise.
12782         * modules/unictype/property-hyphen (Depends-on, configure.ac):
12783         Likewise.
12784         * modules/unictype/property-id-continue (Depends-on, configure.ac):
12785         Likewise.
12786         * modules/unictype/property-id-start (Depends-on, configure.ac):
12787         Likewise.
12788         * modules/unictype/property-ideographic (Depends-on, configure.ac):
12789         Likewise.
12790         * modules/unictype/property-ids-binary-operator (Depends-on,
12791         configure.ac): Likewise.
12792         * modules/unictype/property-ids-trinary-operator (Depends-on,
12793         configure.ac): Likewise.
12794         * modules/unictype/property-ignorable-control (Depends-on,
12795         configure.ac): Likewise.
12796         * modules/unictype/property-iso-control (Depends-on, configure.ac):
12797         Likewise.
12798         * modules/unictype/property-join-control (Depends-on, configure.ac):
12799         Likewise.
12800         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
12801         Likewise.
12802         * modules/unictype/property-line-separator (Depends-on, configure.ac):
12803         Likewise.
12804         * modules/unictype/property-logical-order-exception (Depends-on,
12805         configure.ac): Likewise.
12806         * modules/unictype/property-lowercase (Depends-on, configure.ac):
12807         Likewise.
12808         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
12809         * modules/unictype/property-non-break (Depends-on, configure.ac):
12810         Likewise.
12811         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
12812         Likewise.
12813         * modules/unictype/property-numeric (Depends-on, configure.ac):
12814         Likewise.
12815         * modules/unictype/property-other-alphabetic (Depends-on,
12816         configure.ac): Likewise.
12817         * modules/unictype/property-other-default-ignorable-code-point
12818         (Depends-on, configure.ac): Likewise.
12819         * modules/unictype/property-other-grapheme-extend (Depends-on,
12820         configure.ac): Likewise.
12821         * modules/unictype/property-other-id-continue (Depends-on,
12822         configure.ac): Likewise.
12823         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
12824         Likewise.
12825         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
12826         Likewise.
12827         * modules/unictype/property-other-math (Depends-on, configure.ac):
12828         Likewise.
12829         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
12830         Likewise.
12831         * modules/unictype/property-paired-punctuation (Depends-on,
12832         configure.ac): Likewise.
12833         * modules/unictype/property-paragraph-separator (Depends-on,
12834         configure.ac): Likewise.
12835         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
12836         Likewise.
12837         * modules/unictype/property-pattern-white-space (Depends-on,
12838         configure.ac): Likewise.
12839         * modules/unictype/property-private-use (Depends-on, configure.ac):
12840         Likewise.
12841         * modules/unictype/property-punctuation (Depends-on, configure.ac):
12842         Likewise.
12843         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
12844         Likewise.
12845         * modules/unictype/property-radical (Depends-on, configure.ac):
12846         Likewise.
12847         * modules/unictype/property-sentence-terminal (Depends-on,
12848         configure.ac): Likewise.
12849         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
12850         Likewise.
12851         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
12852         * modules/unictype/property-terminal-punctuation (Depends-on,
12853         configure.ac): Likewise.
12854         * modules/unictype/property-titlecase (Depends-on, configure.ac):
12855         Likewise.
12856         * modules/unictype/property-unassigned-code-value (Depends-on,
12857         configure.ac): Likewise.
12858         * modules/unictype/property-unified-ideograph (Depends-on,
12859         configure.ac): Likewise.
12860         * modules/unictype/property-uppercase (Depends-on, configure.ac):
12861         Likewise.
12862         * modules/unictype/property-variation-selector (Depends-on,
12863         configure.ac): Likewise.
12864         * modules/unictype/property-white-space (Depends-on, configure.ac):
12865         Likewise.
12866         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
12867         Likewise.
12868         * modules/unictype/property-xid-start (Depends-on, configure.ac):
12869         Likewise.
12870         * modules/unictype/property-zero-width (Depends-on, configure.ac):
12871         Likewise.
12872         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
12873         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
12874         Likewise.
12875
12876 2009-12-31  Bruno Haible  <bruno@clisp.org>
12877
12878         Remove unnecessary AC_C_INLINE invocation.
12879         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
12880         since 2009-08-21.
12881
12882 2009-12-31  Jim Meyering  <meyering@redhat.com>
12883
12884         maint.mk: don't require explicit gpg_key_ID in cfg.mk
12885         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
12886         With this change, we can all remove the gpg_key_ID = ... definition
12887         from our respective cfg.mk files.
12888
12889         maint.mk: create announcement template in ~/, not in /tmp
12890         * top/maint.mk (emit_upload_commands): Adjust.
12891         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
12892         Remove temporary file, .ci-msg.
12893
12894 2009-12-31  Eric Blake  <ebb9@byu.net>
12895
12896         link-warning: always build headers with link warnings
12897         * modules/arpa_inet (Makefile.am): Always build replacement
12898         header.
12899         * modules/ctype (Makefile.am): Likewise.
12900         * modules/dirent (Makefile.am): Likewise.
12901         * modules/inttypes (Makefile.am): Likewise.
12902         * modules/langinfo (Makefile.am): Likewise.
12903         * modules/locale (Makefile.am): Likewise.
12904         * modules/spawn (Makefile.am): Likewise.
12905         * modules/sys_file (Makefile.am): Likewise.
12906         * modules/sys_ioctl (Makefile.am): Likewise.
12907         * modules/sys_select (Makefile.am): Likewise.
12908         * modules/sys_socket (Makefile.am): Likewise.
12909         * modules/sys_times (Makefile.am): Likewise.
12910         * modules/sys_utsname (Makefile.am): Likewise.
12911         * modules/sys_wait (Makefile.am): Likewise.
12912         * modules/wchar (Makefile.am): Likewise.
12913         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
12914         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
12915         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
12916         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
12917         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
12918         Likewise.
12919         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12920         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12921         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
12922         Likewise.
12923         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
12924         Likewise.
12925         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12926         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
12927         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
12928         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12929         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12930         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12931         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12932         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
12933         (gl_WCHAR_H_DEFAULTS): Likewise.
12934
12935 2009-12-31  Eric Blake  <ebb9@byu.net>
12936
12937         signal, spawn: use link warnings
12938         * lib/signal.in.h (sigset_t): Make unconditional.
12939         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
12940         (sigpending, sigprocmask, sigaction): Add link warnings.
12941         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
12942         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
12943         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
12944         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
12945         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
12946         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
12947         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
12948         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
12949         (posix_spawn_file_actions_destroy)
12950         (posix_spawn_file_actions_addopen)
12951         (posix_spawn_file_actions_addclose)
12952         (posix_spawn_file_actions_adddup2): Likewise.
12953         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
12954         * tests/test-signal.c (main): Enhance test.
12955
12956         spawn: improve wrapper support
12957         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
12958         (gl_SPAWN_H_DEFAULTS): New defaults.
12959         * modules/spawn (Makefile.am): Substitute them.
12960         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
12961         Only declare if missing or broken.
12962
12963         sys_times, sys_utsname: use include_next
12964         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
12965         header.
12966         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
12967         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12968         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12969         * modules/sys_times (Depends-on): Add include_next.
12970         (Makefile.am): Substitute additional values.
12971         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12972         * lib/sys_times.in.h (includes): Include native header, if
12973         available.
12974         * lib/sys_utsname.in.h (includes): Likewise.
12975         * tests/test-sys_times.c (main): Enhance test.
12976
12977         fdutimensat: revert prior patch
12978         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
12979         utimens.h.
12980         Reported by Bruno Haible.
12981
12982 2009-12-30  Eric Blake  <ebb9@byu.net>
12983
12984         sys_wait: drop link-warning dependency
12985         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
12986         link-warning efforts.
12987         * lib/sys_wait.in.h: Likewise.
12988
12989         fdutimensat: remove bogus dependency
12990         * modules/fdutimensat (Depends-on): Drop inline.
12991
12992         unistd: fix typo
12993         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
12994
12995 2009-12-30  Bruno Haible  <bruno@clisp.org>
12996
12997         Fix compilation error with Solaris cc.
12998         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
12999         * lib/unicase/u16-is-invariant.c: Likewise.
13000         * lib/unicase/u32-is-invariant.c: Likewise.
13001         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
13002
13003 2009-12-30  Bruno Haible  <bruno@clisp.org>
13004
13005         Fix test crash.
13006         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
13007         locales.
13008         Reported by Simon Josefsson <simon@josefsson.org>.
13009
13010 2009-12-30  Bruno Haible  <bruno@clisp.org>
13011
13012         Fix compilation error on most platforms.
13013         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
13014         Reported by Simon Josefsson <simon@josefsson.org>
13015         and Nelson H. F. Beebe <beebe@math.utah.edu>.
13016
13017 2009-12-30  Eric Blake  <ebb9@byu.net>
13018
13019         futimens, utimensat: work around ntfs-3g bug
13020         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
13021         a ctime bug is present, and expand workaround to cover ntfs-3g.
13022         * lib/utimens.c (fdutimens, lutimens): Likewise.
13023         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
13024         (validate_timespec): Adjust return value.
13025         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
13026         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13027         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
13028
13029 2009-12-29  Eric Blake  <ebb9@byu.net>
13030
13031         link-warning: make usage consistent
13032         * modules/ctype (Depends-on): Add link-warning.
13033         (Makefile.am): Update rules accordingly.
13034         * modules/langinfo (Depends-on, Makefile.am): Likewise.
13035         * modules/locale (Depends-on, Makefile.am): Likewise.
13036         * modules/sys_file (Makefile.am): Likewise.
13037         * modules/getopt-posix (Makefile.am): Delete unused link warning
13038         efforts.
13039         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
13040         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
13041         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
13042         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
13043
13044         stdio: remove unused variables
13045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
13046         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
13047         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13048
13049         tests: test more substitute headers
13050         * modules/ctype-tests: New file.
13051         * modules/dirent-tests: Likewise.
13052         * modules/spawn-tests: Likewise.
13053         * modules/sys_file-tests: Likewise.
13054         * modules/sys_ioctl-tests: Likewise.
13055         * modules/sys_wait-tests: Likewise.
13056         * tests/test-ctype.c: Likewise.
13057         * tests/test-dirent.c: Likewise.
13058         * tests/test-spawn.c: Likewise.
13059         * tests/test-sys_file.c: Likewise.
13060         * tests/test-sys_ioctl.c: Likewise.
13061         * tests/test-sys_wait.c: Likewise.
13062         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
13063         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
13064         whether or not flock is in use.
13065
13066         tests: remove License section from module
13067         * modules/arpa_inet-tests: Remove unneeded section.
13068         * modules/byteswap-tests: Likewise.
13069         * modules/ceilf-tests: Likewise.
13070         * modules/ceill-tests: Likewise.
13071         * modules/crypto/des-tests: Likewise.
13072         * modules/crypto/gc-arcfour-tests: Likewise.
13073         * modules/crypto/gc-arctwo-tests: Likewise.
13074         * modules/crypto/gc-des-tests: Likewise.
13075         * modules/crypto/gc-hmac-md5-tests: Likewise.
13076         * modules/crypto/gc-hmac-sha1-tests: Likewise.
13077         * modules/crypto/gc-md2-tests: Likewise.
13078         * modules/crypto/gc-md4-tests: Likewise.
13079         * modules/crypto/gc-md5-tests: Likewise.
13080         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
13081         * modules/crypto/gc-rijndael-tests: Likewise.
13082         * modules/crypto/gc-sha1-tests: Likewise.
13083         * modules/crypto/gc-tests: Likewise.
13084         * modules/crypto/md2-tests: Likewise.
13085         * modules/crypto/md4-tests: Likewise.
13086         * modules/fcntl-h-tests: Likewise.
13087         * modules/floorf-tests: Likewise.
13088         * modules/floorl-tests: Likewise.
13089         * modules/frexp-nolibm-tests: Likewise.
13090         * modules/frexp-tests: Likewise.
13091         * modules/frexpl-nolibm-tests: Likewise.
13092         * modules/frexpl-tests: Likewise.
13093         * modules/getaddrinfo-tests: Likewise.
13094         * modules/inttypes-tests: Likewise.
13095         * modules/isfinite-tests: Likewise.
13096         * modules/isinf-tests: Likewise.
13097         * modules/ldexpl-tests: Likewise.
13098         * modules/locale-tests: Likewise.
13099         * modules/math-tests: Likewise.
13100         * modules/netdb-tests: Likewise.
13101         * modules/netinet_in-tests: Likewise.
13102         * modules/printf-frexp-tests: Likewise.
13103         * modules/printf-frexpl-tests: Likewise.
13104         * modules/priv-set-tests: Likewise.
13105         * modules/random_r-tests: Likewise.
13106         * modules/round-tests: Likewise.
13107         * modules/roundf-tests: Likewise.
13108         * modules/roundl-tests: Likewise.
13109         * modules/search-tests: Likewise.
13110         * modules/select-tests: Likewise.
13111         * modules/signal-tests: Likewise.
13112         * modules/stdbool-tests: Likewise.
13113         * modules/stddef-tests: Likewise.
13114         * modules/stdint-tests: Likewise.
13115         * modules/stdio-tests: Likewise.
13116         * modules/stdlib-tests: Likewise.
13117         * modules/string-tests: Likewise.
13118         * modules/strings-tests: Likewise.
13119         * modules/sys_select-tests: Likewise.
13120         * modules/sys_socket-tests: Likewise.
13121         * modules/sys_stat-tests: Likewise.
13122         * modules/sys_time-tests: Likewise.
13123         * modules/sys_utsname-tests: Likewise.
13124         * modules/sysexits-tests: Likewise.
13125         * modules/time-tests: Likewise.
13126         * modules/trunc-tests: Likewise.
13127         * modules/truncf-tests: Likewise.
13128         * modules/truncl-tests: Likewise.
13129         * modules/tsearch-tests: Likewise.
13130         * modules/unistd-tests: Likewise.
13131         * modules/wchar-tests: Likewise.
13132         * modules/wctype-tests: Likewise.
13133
13134         tests: fix license on several tests
13135         * tests/test-des.c: Update to GPLv3+.
13136         * tests/test-flock.c: Likewise.
13137         * tests/test-fsync.c: Likewise.
13138         * tests/test-futimens.h: Likewise.
13139         * tests/test-gc-arcfour.c: Likewise.
13140         * tests/test-gc-arctwo.c: Likewise.
13141         * tests/test-gc-des.c: Likewise.
13142         * tests/test-gc-hmac-md5.c: Likewise.
13143         * tests/test-gc-hmac-sha1.c: Likewise.
13144         * tests/test-gc-md2.c: Likewise.
13145         * tests/test-gc-md4.c: Likewise.
13146         * tests/test-gc-md5.c: Likewise.
13147         * tests/test-gc-pbkdf2-sha1.c: Likewise.
13148         * tests/test-gc-rijndael.c: Likewise.
13149         * tests/test-gc-sha1.c: Likewise.
13150         * tests/test-gc.c: Likewise.
13151         * tests/test-getcwd.c: Likewise.
13152         * tests/test-link.c: Likewise.
13153         * tests/test-link.h: Likewise.
13154         * tests/test-lutimens.h: Likewise.
13155         * tests/test-md2.c: Likewise.
13156         * tests/test-md4.c: Likewise.
13157         * tests/test-mkdir.h: Likewise.
13158         * tests/test-rename.c: Likewise.
13159         * tests/test-rename.h: Likewise.
13160         * tests/test-safe-alloc.c: Likewise.
13161         * tests/test-utimens-common.h: Likewise.
13162         * tests/test-utimens.h: Likewise.
13163
13164         maint: sync license texts
13165         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
13166         * doc/gpl-3.0.texi: Revert copyright year update.
13167         * doc/lgpl-3.0.texi: Likewise.
13168
13169 2009-12-29  Jim Meyering  <meyering@redhat.com>
13170
13171         update nearly all FSF copyright year lists to include 2009
13172         The files named by the following are exempted:
13173             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
13174               test -f "$dst" && { echo "$dst"; continue; }
13175               test -d "$dst" || continue
13176               echo "$dst"/$(basename "$src")
13177             done > exempt
13178             git ls-files tests/unictype >> exempt
13179         In the remaining files, convert to all-interval notation if
13180         - there is already at least one year interval like 2000-2003
13181         - the file is maintained by me
13182         - the file is in lib/uni*/, where that style already prevails
13183         Otherwise, use update-copyright's default.
13184
13185 2009-12-29  Simon Josefsson  <simon@josefsson.org>
13186         and Eric Blake  <ebb9@byu.net>
13187
13188         tests: don't require debug system() to pass
13189         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
13190         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13191         * tests/test-unlink.h (test_unlink_func): Likewise.
13192         * tests/test-fstatat.c (main): ...into callers.
13193         * tests/test-lstat.c (main): Likewise.
13194         * tests/test-rmdir.c (main): Likewise.
13195         * tests/test-unlink.c (main): Likewise.
13196         * tests/test-unlinkat.c (main): Likewise.
13197         * tests/test-areadlink-with-size.c (main): Don't require a
13198         debug-only system call to pass, aiding cross-testing to mingw.
13199         * tests/test-areadlink.c (main): Likewise.
13200         * tests/test-areadlinkat-with-size.c (main): Likewise.
13201         * tests/test-areadlinkat.c (main): Likewise.
13202         * tests/test-canonicalize-lgpl.c (main): Likewise.
13203         * tests/test-canonicalize.c (main): Likewise.
13204         * tests/test-chown.c (main): Likewise.
13205         * tests/test-fchownat.c (main): Likewise.
13206         * tests/test-lchown.c (main): Likewise.
13207         * tests/test-fdutimensat.c (main): Likewise.
13208         * tests/test-futimens.c (main): Likewise.
13209         * tests/test-link.c (main): Likewise.
13210         * tests/test-linkat.c (main): Likewise.
13211         * tests/test-mkdir.c (main): Likewise.
13212         * tests/test-mkdirat.c (main): Likewise.
13213         * tests/test-mkfifo.c (main): Likewise.
13214         * tests/test-mkfifoat.c (main): Likewise.
13215         * tests/test-mknod.c (main): Likewise.
13216         * tests/test-readlink.c (main): Likewise.
13217         * tests/test-remove.c (main): Likewise.
13218         * tests/test-rename.c (main): Likewise.
13219         * tests/test-renameat.c (main): Likewise.
13220         * tests/test-symlink.c (main): Likewise.
13221         * tests/test-symlinkat.c (main): Likewise.
13222         * tests/test-utimens.c (main): Likewise.
13223         * tests/test-utimensat.c (main): Likewise.
13224
13225 2009-12-29  Simon Josefsson  <simon@josefsson.org>
13226
13227         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
13228         on $(UNUSED_PARAMETER_H) to avoid build failure.
13229
13230 2009-12-28  Jim Meyering  <meyering@redhat.com>
13231
13232         update-copyright: you may specify a max. line length other than 72
13233         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
13234
13235         maint: use consistent FSF copyright line syntax
13236         * lib/posixtm.c: Add missing comma in FSF copyright line.
13237         * lib/posixtm.h: Likewise.
13238         * lib/getugroups.c: Add missing ", Inc.".
13239
13240         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
13241         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
13242         FSF copyright line.  Remove trailing blanks.
13243
13244 2009-12-28  Eric Blake  <ebb9@byu.net>
13245
13246         test-dup2: reduce dependencies
13247         * modules/cloexec (Configure.ac): Set witness.
13248         * modules/dup2-tests (Depends-on): Drop cloexec.
13249         * tests/test-dup2.c (main): Skip portion of test if cloexec module
13250         not present.
13251         Suggested by Bruno Haible.
13252
13253 2009-12-26  Bruno Haible  <bruno@clisp.org>
13254
13255         Remove an unneeded dependency.
13256         * modules/fseterr (Depends-on): Remove dup2.
13257
13258 2009-12-26  Eric Blake  <ebb9@byu.net>
13259
13260         tests: use macros.h in more places
13261         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
13262         (ASSERT_STREAM): Provide default of stderr.
13263         * tests/test-dirent-safer.c: Include macros.h, using alternate
13264         stream for assertions.
13265         * tests/test-dup-safer.c: Likewise.
13266         * tests/test-freopen-safer.c: Likewise.
13267         * tests/test-getopt.c: Likewise.
13268         * tests/test-openat-safer.c: Likewise.
13269         * tests/test-pipe.c: Likewise.
13270         * tests/test-popen-safer.c: Likewise.
13271         * modules/dirent-safer-tests (Files): Include macros.h.
13272         * modules/unistd-safer-tests (Files): Likewise.
13273         * modules/freopen-safer-tests (Files): Likewise.
13274         * modules/getopt-posix-tests (Files): Likewise.
13275         * modules/openat-safer-tests (Files): Likewise.
13276         * modules/pipe-tests (Files): Likewise.
13277
13278 2009-12-26  Bruno Haible  <bruno@clisp.org>
13279
13280         javacomp: Portability fix.
13281         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
13282         that it also works on Solaris.
13283
13284 2009-12-26  Bruno Haible  <bruno@clisp.org>
13285
13286         localename: Fix storage allocation of gl_locale_name_thread's result.
13287         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
13288         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
13289         all platforms that have 'uselocale'.
13290         (gl_locale_name_thread_unsafe): New function, extracted from
13291         gl_locale_name_thread.
13292         (gl_locale_name_thread): Call struniq on all platforms that have
13293         'uselocale'.
13294         * tests/test-localename.c (test_locale_name_thread): Check that the
13295         resulting strings are permanently allocated.
13296         * modules/localename-tests (Depends-on): Add strdup.
13297
13298 2009-12-26  Bruno Haible  <bruno@clisp.org>
13299
13300         * tests/test-localename.c (categories): Fill in the strings.
13301
13302 2009-12-26  Jim Meyering  <meyering@redhat.com>
13303
13304         isdir: complete the removal of m4/isdir.m4
13305         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
13306
13307         isdir: clean up, since at least grep still uses it
13308         * lib/isdir.c: Include "isdir.h".
13309         (S_ISDIR): Remove now-unneeded definition.
13310         * modules/isdir (Files): Add lib/isdir.h.
13311         * lib/isdir.h: New file, with declaration.
13312         * m4/isdir.m4: Remove file -- unneeded.
13313
13314 2009-12-25  Bruno Haible  <bruno@clisp.org>
13315
13316         selinux-h: Make generated .h files standalone.
13317         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
13318         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
13319         * lib/se-selinux.in.h: Likewise.
13320         * modules/selinux-h (Depends-on): Add unused-parameter.
13321         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
13322         selinux/selinux.h and selinux/context.h.
13323         Suggested by Eric Blake.
13324
13325 2009-12-25  Bruno Haible  <bruno@clisp.org>
13326
13327         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
13328         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
13329         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
13330         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
13331         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
13332
13333 2009-12-24  Bruno Haible  <bruno@clisp.org>
13334
13335         openat: Fix warning.
13336         * lib/openat-proc.c: Include <unistd.h>.
13337
13338 2009-12-24  Bruno Haible  <bruno@clisp.org>
13339
13340         New module 'unused-parameter'.
13341         * build-aux/unused-parameter.h: New file, extracted from earlier
13342         gnulib-common.m4.
13343         * modules/unused-parameter: New file.
13344         * lib/unistr.h: Include unused-parameter.h.
13345         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
13346         _GL_UNUSED.
13347         * modules/unistr/base (Depends-on): Add unused-parameter.
13348
13349 2009-12-24  Bruno Haible  <bruno@clisp.org>
13350
13351         Add missing dependencies to 'extensions' module.
13352         * m4/extensions.m4: Add comment.
13353         * modules/accept4 (Depends-on): Add extensions.
13354         * modules/dup3 (Depends-on): Likewise.
13355         * modules/fcntl (Depends-on): Likewise.
13356         * modules/futimens (Depends-on): Likewise.
13357         * modules/mknod (Depends-on): Likewise.
13358         * modules/pipe2 (Depends-on): Likewise.
13359         * modules/stat-time (Depends-on): Likewise.
13360         * modules/strcasestr-simple (Depends-on): Likewise.
13361         * modules/strsignal (Depends-on): Likewise.
13362         * modules/utimensat (Depends-on): Likewise.
13363         * modules/localcharset (Depends-on): Likewise. Needed because of
13364         gl_FCNTL_O_FLAGS.
13365         * modules/wcrtomb (Depends-on): Likewise. Needed because of
13366         AC_TYPE_MBSTATE_T.
13367         * modules/wcsnrtombs (Depends-on): Likewise.
13368         * modules/wcsrtombs (Depends-on): Likewise.
13369
13370 2009-12-24  Bruno Haible  <bruno@clisp.org>
13371
13372         binary-io: Avoid gcc warning due to SET_BINARY.
13373         * lib/binary-io.h (SET_BINARY): Cast the result to void.
13374         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
13375
13376 2009-12-24  Bruno Haible  <bruno@clisp.org>
13377
13378         Avoid future namespace pollution on glibc systems.
13379         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
13380         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
13381         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
13382         glibc systems.
13383
13384 2009-12-24  Bruno Haible  <bruno@clisp.org>
13385
13386         Refactor common macros used in tests.
13387         * tests/macros.h: New file.
13388         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
13389         and/or <stdlib.h>, if appropriate.
13390         (ASSERT, SIZEOF): Remove macros.
13391         * tests/test-areadlink-with-size.c: Likewise.
13392         * tests/test-areadlinkat.c: Likewise.
13393         * tests/test-areadlinkat-with-size.c: Likewise.
13394         * tests/test-argmatch.c: Likewise.
13395         * tests/test-argv-iter.c: Likewise.
13396         * tests/test-array-mergesort.c: Likewise.
13397         * tests/test-array_list.c: Likewise.
13398         * tests/test-array_oset.c: Likewise.
13399         * tests/test-avltree_list.c: Likewise.
13400         * tests/test-avltree_oset.c: Likewise.
13401         * tests/test-avltreehash_list.c: Likewise.
13402         * tests/test-base64.c: Likewise.
13403         * tests/test-binary-io.c: Likewise.
13404         * tests/test-bitrotate.c: Likewise.
13405         * tests/test-btowc.c: Likewise.
13406         * tests/test-byteswap.c: Likewise.
13407         * tests/test-c-ctype.c: Likewise.
13408         * tests/test-c-stack.c: Likewise.
13409         * tests/test-c-strcasecmp.c: Likewise.
13410         * tests/test-c-strcasestr.c: Likewise.
13411         * tests/test-c-strncasecmp.c: Likewise.
13412         * tests/test-c-strstr.c: Likewise.
13413         * tests/test-canonicalize-lgpl.c: Likewise.
13414         * tests/test-canonicalize.c: Likewise.
13415         * tests/test-carray_list.c: Likewise.
13416         * tests/test-ceilf1.c: Likewise.
13417         * tests/test-ceilf2.c: Likewise.
13418         * tests/test-ceill.c: Likewise.
13419         * tests/test-chown.c: Likewise.
13420         * tests/test-cloexec.c: Likewise.
13421         * tests/test-copy-acl.c: Likewise.
13422         * tests/test-copy-file.c: Likewise.
13423         * tests/test-count-one-bits.c: Likewise.
13424         * tests/test-dprintf-posix.c: Likewise.
13425         * tests/test-dup2.c: Likewise.
13426         * tests/test-dup3.c: Likewise.
13427         * tests/test-duplocale.c: Likewise.
13428         * tests/test-fbufmode.c: Likewise.
13429         * tests/test-fchdir.c: Likewise.
13430         * tests/test-fchownat.c: Likewise.
13431         * tests/test-fcntl-safer.c: Likewise.
13432         * tests/test-fcntl.c: Likewise.
13433         * tests/test-fdopendir.c: Likewise.
13434         * tests/test-fdutimensat.c: Likewise.
13435         * tests/test-fflush2.c: Likewise.
13436         * tests/test-file-has-acl.c: Likewise.
13437         * tests/test-filevercmp.c: Likewise.
13438         * tests/test-flock.c: Likewise.
13439         * tests/test-floorf1.c: Likewise.
13440         * tests/test-floorf2.c: Likewise.
13441         * tests/test-floorl.c: Likewise.
13442         * tests/test-fnmatch.c: Likewise.
13443         * tests/test-fopen.h: Likewise.
13444         * tests/test-fpending.c: Likewise.
13445         * tests/test-fprintf-posix.c: Likewise.
13446         * tests/test-fpurge.c: Likewise.
13447         * tests/test-freadable.c: Likewise.
13448         * tests/test-freadahead.c: Likewise.
13449         * tests/test-freading.c: Likewise.
13450         * tests/test-freadptr.c: Likewise.
13451         * tests/test-freadptr2.c: Likewise.
13452         * tests/test-freadseek.c: Likewise.
13453         * tests/test-freopen.c: Likewise.
13454         * tests/test-frexp.c: Likewise.
13455         * tests/test-frexpl.c: Likewise.
13456         * tests/test-fseek.c: Likewise.
13457         * tests/test-fseeko.c: Likewise.
13458         * tests/test-fstatat.c: Likewise.
13459         * tests/test-fstrcmp.c: Likewise.
13460         * tests/test-fsync.c: Likewise.
13461         * tests/test-ftell.c: Likewise.
13462         * tests/test-ftello.c: Likewise.
13463         * tests/test-func.c: Likewise.
13464         * tests/test-futimens.c: Likewise.
13465         * tests/test-fwritable.c: Likewise.
13466         * tests/test-fwriting.c: Likewise.
13467         * tests/test-getcwd.c: Likewise.
13468         * tests/test-getdate.c: Likewise.
13469         * tests/test-getdelim.c: Likewise.
13470         * tests/test-getdtablesize.c: Likewise.
13471         * tests/test-getgroups.c: Likewise.
13472         * tests/test-getline.c: Likewise.
13473         * tests/test-getndelim2.c: Likewise.
13474         * tests/test-glob.c: Likewise.
13475         * tests/test-hash.c: Likewise.
13476         * tests/test-i-ring.c: Likewise.
13477         * tests/test-iconv-utf.c: Likewise.
13478         * tests/test-iconv.c: Likewise.
13479         * tests/test-idpriv-drop.c: Likewise.
13480         * tests/test-idpriv-droptemp.c: Likewise.
13481         * tests/test-inet_ntop.c: Likewise.
13482         * tests/test-inet_pton.c: Likewise.
13483         * tests/test-isblank.c: Likewise.
13484         * tests/test-isfinite.c: Likewise.
13485         * tests/test-isinf.c: Likewise.
13486         * tests/test-isnan.c: Likewise.
13487         * tests/test-isnand.h: Likewise.
13488         * tests/test-isnanf.h: Likewise.
13489         * tests/test-isnanl.h: Likewise.
13490         * tests/test-lchown.c: Likewise.
13491         * tests/test-ldexpl.c: Likewise.
13492         * tests/test-link.c: Likewise.
13493         * tests/test-linkat.c: Likewise.
13494         * tests/test-linked_list.c: Likewise.
13495         * tests/test-linkedhash_list.c: Likewise.
13496         * tests/test-localename.c: Likewise.
13497         * tests/test-lseek.c: Likewise.
13498         * tests/test-lstat.c: Likewise.
13499         * tests/test-mbmemcasecmp.c: Likewise.
13500         * tests/test-mbmemcasecoll.c: Likewise.
13501         * tests/test-mbrtowc.c: Likewise.
13502         * tests/test-mbscasecmp.c: Likewise.
13503         * tests/test-mbscasestr1.c: Likewise.
13504         * tests/test-mbscasestr2.c: Likewise.
13505         * tests/test-mbscasestr3.c: Likewise.
13506         * tests/test-mbscasestr4.c: Likewise.
13507         * tests/test-mbschr.c: Likewise.
13508         * tests/test-mbscspn.c: Likewise.
13509         * tests/test-mbsinit.c: Likewise.
13510         * tests/test-mbsncasecmp.c: Likewise.
13511         * tests/test-mbsnrtowcs.c: Likewise.
13512         * tests/test-mbspbrk.c: Likewise.
13513         * tests/test-mbspcasecmp.c: Likewise.
13514         * tests/test-mbsrchr.c: Likewise.
13515         * tests/test-mbsrtowcs.c: Likewise.
13516         * tests/test-mbsspn.c: Likewise.
13517         * tests/test-mbsstr1.c: Likewise.
13518         * tests/test-mbsstr2.c: Likewise.
13519         * tests/test-mbsstr3.c: Likewise.
13520         * tests/test-memchr.c: Likewise.
13521         * tests/test-memchr2.c: Likewise.
13522         * tests/test-memcmp.c: Likewise.
13523         * tests/test-memmem.c: Likewise.
13524         * tests/test-memrchr.c: Likewise.
13525         * tests/test-mkdir.c: Likewise.
13526         * tests/test-mkdirat.c: Likewise.
13527         * tests/test-mkfifo.c: Likewise.
13528         * tests/test-mkfifoat.c: Likewise.
13529         * tests/test-mknod.c: Likewise.
13530         * tests/test-nanosleep.c: Likewise.
13531         * tests/test-nl_langinfo.c: Likewise.
13532         * tests/test-obstack-printf.c: Likewise.
13533         * tests/test-open.c: Likewise.
13534         * tests/test-openat.c: Likewise.
13535         * tests/test-pipe-filter-gi1.c: Likewise.
13536         * tests/test-pipe-filter-gi2-main.c: Likewise.
13537         * tests/test-pipe-filter-ii1.c: Likewise.
13538         * tests/test-pipe-filter-ii2-main.c: Likewise.
13539         * tests/test-pipe2.c: Likewise.
13540         * tests/test-popen.h: Likewise.
13541         * tests/test-posixtm.c: Likewise.
13542         * tests/test-pread.c: Likewise.
13543         * tests/test-printf-frexp.c: Likewise.
13544         * tests/test-printf-frexpl.c: Likewise.
13545         * tests/test-printf-posix.c: Likewise.
13546         * tests/test-priv-set.c: Likewise.
13547         * tests/test-quotearg.c: Likewise.
13548         * tests/test-random_r.c: Likewise.
13549         * tests/test-rawmemchr.c: Likewise.
13550         * tests/test-rbtree_list.c: Likewise.
13551         * tests/test-rbtree_oset.c: Likewise.
13552         * tests/test-rbtreehash_list.c: Likewise.
13553         * tests/test-readlink.c: Likewise.
13554         * tests/test-remove.c: Likewise.
13555         * tests/test-rename.c: Likewise.
13556         * tests/test-renameat.c: Likewise.
13557         * tests/test-rmdir.c: Likewise.
13558         * tests/test-round1.c: Likewise.
13559         * tests/test-roundf1.c: Likewise.
13560         * tests/test-roundl.c: Likewise.
13561         * tests/test-safe-alloc.c: Likewise.
13562         * tests/test-sameacls.c: Likewise.
13563         * tests/test-set-mode-acl.c: Likewise.
13564         * tests/test-setenv.c: Likewise.
13565         * tests/test-sigaction.c: Likewise.
13566         * tests/test-signbit.c: Likewise.
13567         * tests/test-sleep.c: Likewise.
13568         * tests/test-snprintf-posix.c: Likewise.
13569         * tests/test-snprintf.c: Likewise.
13570         * tests/test-sprintf-posix.c: Likewise.
13571         * tests/test-stat-time.c: Likewise.
13572         * tests/test-stat.c: Likewise.
13573         * tests/test-strcasestr.c: Likewise.
13574         * tests/test-strchrnul.c: Likewise.
13575         * tests/test-strerror.c: Likewise.
13576         * tests/test-striconv.c: Likewise.
13577         * tests/test-striconveh.c: Likewise.
13578         * tests/test-striconveha.c: Likewise.
13579         * tests/test-strsignal.c: Likewise.
13580         * tests/test-strstr.c: Likewise.
13581         * tests/test-strtod.c: Likewise.
13582         * tests/test-strverscmp.c: Likewise.
13583         * tests/test-symlink.c: Likewise.
13584         * tests/test-symlinkat.c: Likewise.
13585         * tests/test-trunc1.c: Likewise.
13586         * tests/test-trunc2.c: Likewise.
13587         * tests/test-truncf1.c: Likewise.
13588         * tests/test-truncf2.c: Likewise.
13589         * tests/test-truncl.c: Likewise.
13590         * tests/test-uname.c: Likewise.
13591         * tests/test-unlink.c: Likewise.
13592         * tests/test-unlinkat.c: Likewise.
13593         * tests/test-unsetenv.c: Likewise.
13594         * tests/test-usleep.c: Likewise.
13595         * tests/test-utimens.c: Likewise.
13596         * tests/test-utimensat.c: Likewise.
13597         * tests/test-vasnprintf-posix.c: Likewise.
13598         * tests/test-vasnprintf-posix2.c: Likewise.
13599         * tests/test-vasnprintf.c: Likewise.
13600         * tests/test-vasprintf-posix.c: Likewise.
13601         * tests/test-vasprintf.c: Likewise.
13602         * tests/test-vdprintf-posix.c: Likewise.
13603         * tests/test-vfprintf-posix.c: Likewise.
13604         * tests/test-vprintf-posix.c: Likewise.
13605         * tests/test-vsnprintf-posix.c: Likewise.
13606         * tests/test-vsnprintf.c: Likewise.
13607         * tests/test-vsprintf-posix.c: Likewise.
13608         * tests/test-wcrtomb.c: Likewise.
13609         * tests/test-wcsnrtombs.c: Likewise.
13610         * tests/test-wcsrtombs.c: Likewise.
13611         * tests/test-wctype.c: Likewise.
13612         * tests/test-wcwidth.c: Likewise.
13613         * tests/test-xfprintf-posix.c: Likewise.
13614         * tests/test-xmemdup0.c: Likewise.
13615         * tests/test-xprintf-posix.c: Likewise.
13616         * tests/test-xvasprintf.c: Likewise.
13617         * tests/unicase/test-locale-language.c: Likewise.
13618         * tests/unicase/test-mapping-part1.h: Likewise.
13619         * tests/unicase/test-predicate-part1.h: Likewise.
13620         * tests/unicase/test-u8-casecmp.c: Likewise.
13621         * tests/unicase/test-u8-casecoll.c: Likewise.
13622         * tests/unicase/test-u8-casefold.c: Likewise.
13623         * tests/unicase/test-u8-is-cased.c: Likewise.
13624         * tests/unicase/test-u8-is-casefolded.c: Likewise.
13625         * tests/unicase/test-u8-is-lowercase.c: Likewise.
13626         * tests/unicase/test-u8-is-titlecase.c: Likewise.
13627         * tests/unicase/test-u8-is-uppercase.c: Likewise.
13628         * tests/unicase/test-u8-tolower.c: Likewise.
13629         * tests/unicase/test-u8-totitle.c: Likewise.
13630         * tests/unicase/test-u8-toupper.c: Likewise.
13631         * tests/unicase/test-u16-casecmp.c: Likewise.
13632         * tests/unicase/test-u16-casecoll.c: Likewise.
13633         * tests/unicase/test-u16-casefold.c: Likewise.
13634         * tests/unicase/test-u16-is-cased.c: Likewise.
13635         * tests/unicase/test-u16-is-casefolded.c: Likewise.
13636         * tests/unicase/test-u16-is-lowercase.c: Likewise.
13637         * tests/unicase/test-u16-is-titlecase.c: Likewise.
13638         * tests/unicase/test-u16-is-uppercase.c: Likewise.
13639         * tests/unicase/test-u16-tolower.c: Likewise.
13640         * tests/unicase/test-u16-totitle.c: Likewise.
13641         * tests/unicase/test-u16-toupper.c: Likewise.
13642         * tests/unicase/test-u32-casecmp.c: Likewise.
13643         * tests/unicase/test-u32-casecoll.c: Likewise.
13644         * tests/unicase/test-u32-casefold.c: Likewise.
13645         * tests/unicase/test-u32-is-cased.c: Likewise.
13646         * tests/unicase/test-u32-is-casefolded.c: Likewise.
13647         * tests/unicase/test-u32-is-lowercase.c: Likewise.
13648         * tests/unicase/test-u32-is-titlecase.c: Likewise.
13649         * tests/unicase/test-u32-is-uppercase.c: Likewise.
13650         * tests/unicase/test-u32-tolower.c: Likewise.
13651         * tests/unicase/test-u32-totitle.c: Likewise.
13652         * tests/unicase/test-u32-toupper.c: Likewise.
13653         * tests/unicase/test-ulc-casecmp.c: Likewise.
13654         * tests/unicase/test-ulc-casecoll.c: Likewise.
13655         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13656         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
13657         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13658         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13659         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
13660         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
13661         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13662         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13663         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13664         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
13665         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13666         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13667         * tests/unictype/test-bidi_byname.c: Likewise.
13668         * tests/unictype/test-bidi_name.c: Likewise.
13669         * tests/unictype/test-bidi_of.c: Likewise.
13670         * tests/unictype/test-bidi_test.c: Likewise.
13671         * tests/unictype/test-block_list.c: Likewise.
13672         * tests/unictype/test-block_of.c: Likewise.
13673         * tests/unictype/test-block_test.c: Likewise.
13674         * tests/unictype/test-categ_and.c: Likewise.
13675         * tests/unictype/test-categ_and_not.c: Likewise.
13676         * tests/unictype/test-categ_byname.c: Likewise.
13677         * tests/unictype/test-categ_name.c: Likewise.
13678         * tests/unictype/test-categ_none.c: Likewise.
13679         * tests/unictype/test-categ_of.c: Likewise.
13680         * tests/unictype/test-categ_or.c: Likewise.
13681         * tests/unictype/test-categ_test_withtable.c: Likewise.
13682         * tests/unictype/test-combining.c: Likewise.
13683         * tests/unictype/test-decdigit.c: Likewise.
13684         * tests/unictype/test-digit.c: Likewise.
13685         * tests/unictype/test-mirror.c: Likewise.
13686         * tests/unictype/test-numeric.c: Likewise.
13687         * tests/unictype/test-pr_byname.c: Likewise.
13688         * tests/unictype/test-pr_test.c: Likewise.
13689         * tests/unictype/test-predicate-part1.h: Likewise.
13690         * tests/unictype/test-scripts.c: Likewise.
13691         * tests/unictype/test-sy_c_ident.c: Likewise.
13692         * tests/unictype/test-sy_java_ident.c: Likewise.
13693         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
13694         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
13695         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
13696         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
13697         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
13698         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
13699         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
13700         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
13701         * tests/uninorm/test-canonical-decomposition.c: Likewise.
13702         * tests/uninorm/test-compat-decomposition.c: Likewise.
13703         * tests/uninorm/test-composition.c: Likewise.
13704         * tests/uninorm/test-decomposing-form.c: Likewise.
13705         * tests/uninorm/test-decomposition.c: Likewise.
13706         * tests/uninorm/test-u8-nfc.c: Likewise.
13707         * tests/uninorm/test-u8-nfd.c: Likewise.
13708         * tests/uninorm/test-u8-nfkc.c: Likewise.
13709         * tests/uninorm/test-u8-nfkd.c: Likewise.
13710         * tests/uninorm/test-u8-normcmp.c: Likewise.
13711         * tests/uninorm/test-u8-normcoll.c: Likewise.
13712         * tests/uninorm/test-u16-nfc.c: Likewise.
13713         * tests/uninorm/test-u16-nfd.c: Likewise.
13714         * tests/uninorm/test-u16-nfkc.c: Likewise.
13715         * tests/uninorm/test-u16-nfkd.c: Likewise.
13716         * tests/uninorm/test-u16-normcmp.c: Likewise.
13717         * tests/uninorm/test-u16-normcoll.c: Likewise.
13718         * tests/uninorm/test-u32-nfc.c: Likewise.
13719         * tests/uninorm/test-u32-nfd.c: Likewise.
13720         * tests/uninorm/test-u32-nfkc.c: Likewise.
13721         * tests/uninorm/test-u32-nfkd.c: Likewise.
13722         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13723         * tests/uninorm/test-u32-normcmp.c: Likewise.
13724         * tests/uninorm/test-u32-normcoll.c: Likewise.
13725         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
13726         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
13727         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
13728         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
13729         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
13730         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
13731         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
13732         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
13733         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
13734         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
13735         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
13736         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
13737         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
13738         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
13739         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
13740         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
13741         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
13742         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
13743         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
13744         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
13745         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
13746         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
13747         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
13748         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
13749         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
13750         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
13751         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
13752         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
13753         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
13754         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
13755         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
13756         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
13757         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
13758         * tests/uniwidth/test-u8-strwidth.c: Likewise.
13759         * tests/uniwidth/test-u8-width.c: Likewise.
13760         * tests/uniwidth/test-u16-strwidth.c: Likewise.
13761         * tests/uniwidth/test-u16-width.c: Likewise.
13762         * tests/uniwidth/test-u32-strwidth.c: Likewise.
13763         * tests/uniwidth/test-u32-width.c: Likewise.
13764         * tests/uniwidth/test-uc_width.c: Likewise.
13765         * tests/uniwidth/test-uc_width2.c: Likewise.
13766         * modules/acl-tests (Files): Add tests/macros.h.
13767         * modules/areadlink-tests (Files): Likewise.
13768         * modules/areadlink-with-size-tests (Files): Likewise.
13769         * modules/areadlinkat-tests (Files): Likewise.
13770         * modules/areadlinkat-with-size-tests (Files): Likewise.
13771         * modules/argmatch-tests (Files): Likewise.
13772         * modules/argv-iter-tests (Files): Likewise.
13773         * modules/array-list-tests (Files): Likewise.
13774         * modules/array-mergesort-tests (Files): Likewise.
13775         * modules/array-oset-tests (Files): Likewise.
13776         * modules/avltree-list-tests (Files): Likewise.
13777         * modules/avltree-oset-tests (Files): Likewise.
13778         * modules/avltreehash-list-tests (Files): Likewise.
13779         * modules/base64-tests (Files): Likewise.
13780         * modules/binary-io-tests (Files): Likewise.
13781         * modules/bitrotate-tests (Files): Likewise.
13782         * modules/btowc-tests (Files): Likewise.
13783         * modules/byteswap-tests (Files): Likewise.
13784         * modules/c-ctype-tests (Files): Likewise.
13785         * modules/c-stack-tests (Files): Likewise.
13786         * modules/c-strcase-tests (Files): Likewise.
13787         * modules/c-strcasestr-tests (Files): Likewise.
13788         * modules/c-strstr-tests (Files): Likewise.
13789         * modules/canonicalize-lgpl-tests (Files): Likewise.
13790         * modules/canonicalize-tests (Files): Likewise.
13791         * modules/carray-list-tests (Files): Likewise.
13792         * modules/ceilf-tests (Files): Likewise.
13793         * modules/ceill-tests (Files): Likewise.
13794         * modules/chown-tests (Files): Likewise.
13795         * modules/cloexec-tests (Files): Likewise.
13796         * modules/copy-file-tests (Files): Likewise.
13797         * modules/count-one-bits-tests (Files): Likewise.
13798         * modules/dprintf-posix-tests (Files): Likewise.
13799         * modules/dup2-tests (Files): Likewise.
13800         * modules/dup3-tests (Files): Likewise.
13801         * modules/duplocale-tests (Files): Likewise.
13802         * modules/fbufmode-tests (Files): Likewise.
13803         * modules/fchdir-tests (Files): Likewise.
13804         * modules/fcntl-safer-tests (Files): Likewise.
13805         * modules/fcntl-tests (Files): Likewise.
13806         * modules/fdopendir-tests (Files): Likewise.
13807         * modules/fdutimensat-tests (Files): Likewise.
13808         * modules/fflush-tests (Files): Likewise.
13809         * modules/filevercmp-tests (Files): Likewise.
13810         * modules/flock-tests (Files): Likewise.
13811         * modules/floorf-tests (Files): Likewise.
13812         * modules/floorl-tests (Files): Likewise.
13813         * modules/fnmatch-tests (Files): Likewise.
13814         * modules/fopen-safer-tests (Files): Likewise.
13815         * modules/fopen-tests (Files): Likewise.
13816         * modules/fpending-tests (Files): Likewise.
13817         * modules/fprintf-posix-tests (Files): Likewise.
13818         * modules/fpurge-tests (Files): Likewise.
13819         * modules/freadable-tests (Files): Likewise.
13820         * modules/freadahead-tests (Files): Likewise.
13821         * modules/freading-tests (Files): Likewise.
13822         * modules/freadptr-tests (Files): Likewise.
13823         * modules/freadseek-tests (Files): Likewise.
13824         * modules/freopen-tests (Files): Likewise.
13825         * modules/frexp-nolibm-tests (Files): Likewise.
13826         * modules/frexp-tests (Files): Likewise.
13827         * modules/frexpl-nolibm-tests (Files): Likewise.
13828         * modules/frexpl-tests (Files): Likewise.
13829         * modules/fseek-tests (Files): Likewise.
13830         * modules/fseeko-tests (Files): Likewise.
13831         * modules/fstrcmp-tests (Files): Likewise.
13832         * modules/fsync-tests (Files): Likewise.
13833         * modules/ftell-tests (Files): Likewise.
13834         * modules/ftello-tests (Files): Likewise.
13835         * modules/func-tests (Files): Likewise.
13836         * modules/futimens-tests (Files): Likewise.
13837         * modules/fwritable-tests (Files): Likewise.
13838         * modules/fwriting-tests (Files): Likewise.
13839         * modules/getcwd-tests (Files): Likewise.
13840         * modules/getdate-tests (Files): Likewise.
13841         * modules/getdelim-tests (Files): Likewise.
13842         * modules/getdtablesize-tests (Files): Likewise.
13843         * modules/getgroups-tests (Files): Likewise.
13844         * modules/getline-tests (Files): Likewise.
13845         * modules/getndelim2-tests (Files): Likewise.
13846         * modules/glob-tests (Files): Likewise.
13847         * modules/hash-tests (Files): Likewise.
13848         * modules/i-ring-tests (Files): Likewise.
13849         * modules/iconv-tests (Files): Likewise.
13850         * modules/iconv_open-utf-tests (Files): Likewise.
13851         * modules/idpriv-drop-tests (Files): Likewise.
13852         * modules/idpriv-droptemp-tests (Files): Likewise.
13853         * modules/inet_ntop-tests (Files): Likewise.
13854         * modules/inet_pton-tests (Files): Likewise.
13855         * modules/isblank-tests (Files): Likewise.
13856         * modules/isfinite-tests (Files): Likewise.
13857         * modules/isinf-tests (Files): Likewise.
13858         * modules/isnan-tests (Files): Likewise.
13859         * modules/isnand-nolibm-tests (Files): Likewise.
13860         * modules/isnand-tests (Files): Likewise.
13861         * modules/isnanf-nolibm-tests (Files): Likewise.
13862         * modules/isnanf-tests (Files): Likewise.
13863         * modules/isnanl-nolibm-tests (Files): Likewise.
13864         * modules/isnanl-tests (Files): Likewise.
13865         * modules/lchown-tests (Files): Likewise.
13866         * modules/ldexpl-tests (Files): Likewise.
13867         * modules/link-tests (Files): Likewise.
13868         * modules/linkat-tests (Files): Likewise.
13869         * modules/linked-list-tests (Files): Likewise.
13870         * modules/linkedhash-list-tests (Files): Likewise.
13871         * modules/localename-tests (Files): Likewise.
13872         * modules/lseek-tests (Files): Likewise.
13873         * modules/lstat-tests (Files): Likewise.
13874         * modules/mbmemcasecmp-tests (Files): Likewise.
13875         * modules/mbmemcasecoll-tests (Files): Likewise.
13876         * modules/mbrtowc-tests (Files): Likewise.
13877         * modules/mbscasecmp-tests (Files): Likewise.
13878         * modules/mbscasestr-tests (Files): Likewise.
13879         * modules/mbschr-tests (Files): Likewise.
13880         * modules/mbscspn-tests (Files): Likewise.
13881         * modules/mbsinit-tests (Files): Likewise.
13882         * modules/mbsncasecmp-tests (Files): Likewise.
13883         * modules/mbsnrtowcs-tests (Files): Likewise.
13884         * modules/mbspbrk-tests (Files): Likewise.
13885         * modules/mbspcasecmp-tests (Files): Likewise.
13886         * modules/mbsrchr-tests (Files): Likewise.
13887         * modules/mbsrtowcs-tests (Files): Likewise.
13888         * modules/mbsspn-tests (Files): Likewise.
13889         * modules/mbsstr-tests (Files): Likewise.
13890         * modules/memchr-tests (Files): Likewise.
13891         * modules/memchr2-tests (Files): Likewise.
13892         * modules/memcmp-tests (Files): Likewise.
13893         * modules/memmem-tests (Files): Likewise.
13894         * modules/memrchr-tests (Files): Likewise.
13895         * modules/mkdir-tests (Files): Likewise.
13896         * modules/mkfifo-tests (Files): Likewise.
13897         * modules/mkfifoat-tests (Files): Likewise.
13898         * modules/mknod-tests (Files): Likewise.
13899         * modules/nanosleep-tests (Files): Likewise.
13900         * modules/nl_langinfo-tests (Files): Likewise.
13901         * modules/obstack-printf-tests (Files): Likewise.
13902         * modules/open-tests (Files): Likewise.
13903         * modules/openat-tests (Files): Likewise.
13904         * modules/pipe-filter-gi-tests (Files): Likewise.
13905         * modules/pipe-filter-ii-tests (Files): Likewise.
13906         * modules/pipe2-tests (Files): Likewise.
13907         * modules/popen-safer-tests (Files): Likewise.
13908         * modules/popen-tests (Files): Likewise.
13909         * modules/posixtm-tests (Files): Likewise.
13910         * modules/pread-tests (Files): Likewise.
13911         * modules/printf-frexp-tests (Files): Likewise.
13912         * modules/printf-frexpl-tests (Files): Likewise.
13913         * modules/printf-posix-tests (Files): Likewise.
13914         * modules/priv-set-tests (Files): Likewise.
13915         * modules/quotearg-tests (Files): Likewise.
13916         * modules/random_r-tests (Files): Likewise.
13917         * modules/rawmemchr-tests (Files): Likewise.
13918         * modules/rbtree-list-tests (Files): Likewise.
13919         * modules/rbtree-oset-tests (Files): Likewise.
13920         * modules/rbtreehash-list-tests (Files): Likewise.
13921         * modules/readlink-tests (Files): Likewise.
13922         * modules/remove-tests (Files): Likewise.
13923         * modules/rename-tests (Files): Likewise.
13924         * modules/renameat-tests (Files): Likewise.
13925         * modules/rmdir-tests (Files): Likewise.
13926         * modules/round-tests (Files): Likewise.
13927         * modules/roundf-tests (Files): Likewise.
13928         * modules/roundl-tests (Files): Likewise.
13929         * modules/safe-alloc-tests (Files): Likewise.
13930         * modules/setenv-tests (Files): Likewise.
13931         * modules/sigaction-tests (Files): Likewise.
13932         * modules/signbit-tests (Files): Likewise.
13933         * modules/sleep-tests (Files): Likewise.
13934         * modules/snprintf-posix-tests (Files): Likewise.
13935         * modules/snprintf-tests (Files): Likewise.
13936         * modules/sprintf-posix-tests (Files): Likewise.
13937         * modules/stat-tests (Files): Likewise.
13938         * modules/stat-time-tests (Files): Likewise.
13939         * modules/strcasestr-tests (Files): Likewise.
13940         * modules/strchrnul-tests (Files): Likewise.
13941         * modules/strerror-tests (Files): Likewise.
13942         * modules/striconv-tests (Files): Likewise.
13943         * modules/striconveh-tests (Files): Likewise.
13944         * modules/striconveha-tests (Files): Likewise.
13945         * modules/strsignal-tests (Files): Likewise.
13946         * modules/strstr-tests (Files): Likewise.
13947         * modules/strtod-tests (Files): Likewise.
13948         * modules/strverscmp-tests (Files): Likewise.
13949         * modules/symlink-tests (Files): Likewise.
13950         * modules/symlinkat-tests (Files): Likewise.
13951         * modules/trunc-tests (Files): Likewise.
13952         * modules/truncf-tests (Files): Likewise.
13953         * modules/truncl-tests (Files): Likewise.
13954         * modules/uname-tests (Files): Likewise.
13955         * modules/unicase/cased-tests (Files): Likewise.
13956         * modules/unicase/ignorable-tests (Files): Likewise.
13957         * modules/unicase/locale-language-tests (Files): Likewise.
13958         * modules/unicase/tolower-tests (Files): Likewise.
13959         * modules/unicase/totitle-tests (Files): Likewise.
13960         * modules/unicase/toupper-tests (Files): Likewise.
13961         * modules/unicase/u8-casecmp-tests (Files): Likewise.
13962         * modules/unicase/u8-casecoll-tests (Files): Likewise.
13963         * modules/unicase/u8-casefold-tests (Files): Likewise.
13964         * modules/unicase/u8-is-cased-tests (Files): Likewise.
13965         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
13966         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
13967         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
13968         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
13969         * modules/unicase/u8-tolower-tests (Files): Likewise.
13970         * modules/unicase/u8-totitle-tests (Files): Likewise.
13971         * modules/unicase/u8-toupper-tests (Files): Likewise.
13972         * modules/unicase/u16-casecmp-tests (Files): Likewise.
13973         * modules/unicase/u16-casecoll-tests (Files): Likewise.
13974         * modules/unicase/u16-casefold-tests (Files): Likewise.
13975         * modules/unicase/u16-is-cased-tests (Files): Likewise.
13976         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
13977         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
13978         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
13979         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
13980         * modules/unicase/u16-tolower-tests (Files): Likewise.
13981         * modules/unicase/u16-totitle-tests (Files): Likewise.
13982         * modules/unicase/u16-toupper-tests (Files): Likewise.
13983         * modules/unicase/u32-casecmp-tests (Files): Likewise.
13984         * modules/unicase/u32-casecoll-tests (Files): Likewise.
13985         * modules/unicase/u32-casefold-tests (Files): Likewise.
13986         * modules/unicase/u32-is-cased-tests (Files): Likewise.
13987         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
13988         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
13989         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
13990         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
13991         * modules/unicase/u32-tolower-tests (Files): Likewise.
13992         * modules/unicase/u32-totitle-tests (Files): Likewise.
13993         * modules/unicase/u32-toupper-tests (Files): Likewise.
13994         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
13995         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
13996         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
13997         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
13998         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
13999         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
14000         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
14001         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
14002         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
14003         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
14004         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
14005         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
14006         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
14007         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
14008         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
14009         * modules/unictype/bidicategory-name-tests (Files): Likewise.
14010         * modules/unictype/bidicategory-of-tests (Files): Likewise.
14011         * modules/unictype/bidicategory-test-tests (Files): Likewise.
14012         * modules/unictype/block-list-tests (Files): Likewise.
14013         * modules/unictype/block-of-tests (Files): Likewise.
14014         * modules/unictype/block-test-tests (Files): Likewise.
14015         * modules/unictype/category-C-tests (Files): Likewise.
14016         * modules/unictype/category-Cc-tests (Files): Likewise.
14017         * modules/unictype/category-Cf-tests (Files): Likewise.
14018         * modules/unictype/category-Cn-tests (Files): Likewise.
14019         * modules/unictype/category-Co-tests (Files): Likewise.
14020         * modules/unictype/category-Cs-tests (Files): Likewise.
14021         * modules/unictype/category-L-tests (Files): Likewise.
14022         * modules/unictype/category-Ll-tests (Files): Likewise.
14023         * modules/unictype/category-Lm-tests (Files): Likewise.
14024         * modules/unictype/category-Lo-tests (Files): Likewise.
14025         * modules/unictype/category-Lt-tests (Files): Likewise.
14026         * modules/unictype/category-Lu-tests (Files): Likewise.
14027         * modules/unictype/category-M-tests (Files): Likewise.
14028         * modules/unictype/category-Mc-tests (Files): Likewise.
14029         * modules/unictype/category-Me-tests (Files): Likewise.
14030         * modules/unictype/category-Mn-tests (Files): Likewise.
14031         * modules/unictype/category-N-tests (Files): Likewise.
14032         * modules/unictype/category-Nd-tests (Files): Likewise.
14033         * modules/unictype/category-Nl-tests (Files): Likewise.
14034         * modules/unictype/category-No-tests (Files): Likewise.
14035         * modules/unictype/category-P-tests (Files): Likewise.
14036         * modules/unictype/category-Pc-tests (Files): Likewise.
14037         * modules/unictype/category-Pd-tests (Files): Likewise.
14038         * modules/unictype/category-Pe-tests (Files): Likewise.
14039         * modules/unictype/category-Pf-tests (Files): Likewise.
14040         * modules/unictype/category-Pi-tests (Files): Likewise.
14041         * modules/unictype/category-Po-tests (Files): Likewise.
14042         * modules/unictype/category-Ps-tests (Files): Likewise.
14043         * modules/unictype/category-S-tests (Files): Likewise.
14044         * modules/unictype/category-Sc-tests (Files): Likewise.
14045         * modules/unictype/category-Sk-tests (Files): Likewise.
14046         * modules/unictype/category-Sm-tests (Files): Likewise.
14047         * modules/unictype/category-So-tests (Files): Likewise.
14048         * modules/unictype/category-Z-tests (Files): Likewise.
14049         * modules/unictype/category-Zl-tests (Files): Likewise.
14050         * modules/unictype/category-Zp-tests (Files): Likewise.
14051         * modules/unictype/category-Zs-tests (Files): Likewise.
14052         * modules/unictype/category-and-not-tests (Files): Likewise.
14053         * modules/unictype/category-and-tests (Files): Likewise.
14054         * modules/unictype/category-byname-tests (Files): Likewise.
14055         * modules/unictype/category-name-tests (Files): Likewise.
14056         * modules/unictype/category-none-tests (Files): Likewise.
14057         * modules/unictype/category-of-tests (Files): Likewise.
14058         * modules/unictype/category-or-tests (Files): Likewise.
14059         * modules/unictype/category-test-withtable-tests (Files): Likewise.
14060         * modules/unictype/combining-class-tests (Files): Likewise.
14061         * modules/unictype/ctype-alnum-tests (Files): Likewise.
14062         * modules/unictype/ctype-alpha-tests (Files): Likewise.
14063         * modules/unictype/ctype-blank-tests (Files): Likewise.
14064         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
14065         * modules/unictype/ctype-digit-tests (Files): Likewise.
14066         * modules/unictype/ctype-graph-tests (Files): Likewise.
14067         * modules/unictype/ctype-lower-tests (Files): Likewise.
14068         * modules/unictype/ctype-print-tests (Files): Likewise.
14069         * modules/unictype/ctype-punct-tests (Files): Likewise.
14070         * modules/unictype/ctype-space-tests (Files): Likewise.
14071         * modules/unictype/ctype-upper-tests (Files): Likewise.
14072         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
14073         * modules/unictype/decimal-digit-tests (Files): Likewise.
14074         * modules/unictype/digit-tests (Files): Likewise.
14075         * modules/unictype/mirror-tests (Files): Likewise.
14076         * modules/unictype/numeric-tests (Files): Likewise.
14077         * modules/unictype/property-alphabetic-tests (Files): Likewise.
14078         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
14079         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
14080         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
14081         Likewise.
14082         * modules/unictype/property-bidi-block-separator-tests (Files):
14083         Likewise.
14084         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
14085         Likewise.
14086         * modules/unictype/property-bidi-common-separator-tests (Files):
14087         Likewise.
14088         * modules/unictype/property-bidi-control-tests (Files): Likewise.
14089         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
14090         Likewise.
14091         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
14092         Likewise.
14093         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
14094         Likewise.
14095         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
14096         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
14097         Likewise.
14098         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
14099         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
14100         Likewise.
14101         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
14102         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
14103         * modules/unictype/property-bidi-segment-separator-tests (Files):
14104         Likewise.
14105         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
14106         * modules/unictype/property-byname-tests (Files): Likewise.
14107         * modules/unictype/property-combining-tests (Files): Likewise.
14108         * modules/unictype/property-composite-tests (Files): Likewise.
14109         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
14110         * modules/unictype/property-dash-tests (Files): Likewise.
14111         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
14112         * modules/unictype/property-default-ignorable-code-point-tests (Files):
14113         Likewise.
14114         * modules/unictype/property-deprecated-tests (Files): Likewise.
14115         * modules/unictype/property-diacritic-tests (Files): Likewise.
14116         * modules/unictype/property-extender-tests (Files): Likewise.
14117         * modules/unictype/property-format-control-tests (Files): Likewise.
14118         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
14119         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
14120         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
14121         * modules/unictype/property-hex-digit-tests (Files): Likewise.
14122         * modules/unictype/property-hyphen-tests (Files): Likewise.
14123         * modules/unictype/property-id-continue-tests (Files): Likewise.
14124         * modules/unictype/property-id-start-tests (Files): Likewise.
14125         * modules/unictype/property-ideographic-tests (Files): Likewise.
14126         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
14127         * modules/unictype/property-ids-trinary-operator-tests (Files):
14128         Likewise.
14129         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
14130         * modules/unictype/property-iso-control-tests (Files): Likewise.
14131         * modules/unictype/property-join-control-tests (Files): Likewise.
14132         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
14133         * modules/unictype/property-line-separator-tests (Files): Likewise.
14134         * modules/unictype/property-logical-order-exception-tests (Files):
14135         Likewise.
14136         * modules/unictype/property-lowercase-tests (Files): Likewise.
14137         * modules/unictype/property-math-tests (Files): Likewise.
14138         * modules/unictype/property-non-break-tests (Files): Likewise.
14139         * modules/unictype/property-not-a-character-tests (Files): Likewise.
14140         * modules/unictype/property-numeric-tests (Files): Likewise.
14141         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
14142         * modules/unictype/property-other-default-ignorable-code-point-tests
14143         (Files): Likewise.
14144         * modules/unictype/property-other-grapheme-extend-tests (Files):
14145         Likewise.
14146         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
14147         * modules/unictype/property-other-id-start-tests (Files): Likewise.
14148         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
14149         * modules/unictype/property-other-math-tests (Files): Likewise.
14150         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
14151         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
14152         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
14153         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
14154         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
14155         * modules/unictype/property-private-use-tests (Files): Likewise.
14156         * modules/unictype/property-punctuation-tests (Files): Likewise.
14157         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
14158         * modules/unictype/property-radical-tests (Files): Likewise.
14159         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
14160         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
14161         * modules/unictype/property-space-tests (Files): Likewise.
14162         * modules/unictype/property-terminal-punctuation-tests (Files):
14163         Likewise.
14164         * modules/unictype/property-test-tests (Files): Likewise.
14165         * modules/unictype/property-titlecase-tests (Files): Likewise.
14166         * modules/unictype/property-unassigned-code-value-tests (Files):
14167         Likewise.
14168         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
14169         * modules/unictype/property-uppercase-tests (Files): Likewise.
14170         * modules/unictype/property-variation-selector-tests (Files): Likewise.
14171         * modules/unictype/property-white-space-tests (Files): Likewise.
14172         * modules/unictype/property-xid-continue-tests (Files): Likewise.
14173         * modules/unictype/property-xid-start-tests (Files): Likewise.
14174         * modules/unictype/property-zero-width-tests (Files): Likewise.
14175         * modules/unictype/scripts-tests (Files): Likewise.
14176         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
14177         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
14178         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
14179         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
14180         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
14181         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
14182         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
14183         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
14184         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
14185         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
14186         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
14187         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
14188         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
14189         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
14190         * modules/uninorm/composition-tests (Files): Likewise.
14191         * modules/uninorm/decomposing-form-tests (Files): Likewise.
14192         * modules/uninorm/decomposition-tests (Files): Likewise.
14193         * modules/uninorm/filter-tests (Files): Likewise.
14194         * modules/uninorm/nfc-tests (Files): Likewise.
14195         * modules/uninorm/nfd-tests (Files): Likewise.
14196         * modules/uninorm/nfkc-tests (Files): Likewise.
14197         * modules/uninorm/nfkd-tests (Files): Likewise.
14198         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
14199         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
14200         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
14201         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
14202         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
14203         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
14204         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
14205         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
14206         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
14207         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
14208         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
14209         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
14210         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
14211         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
14212         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
14213         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
14214         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
14215         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
14216         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
14217         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
14218         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
14219         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
14220         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
14221         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
14222         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
14223         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
14224         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
14225         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
14226         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
14227         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
14228         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
14229         * modules/uniwidth/u8-width-tests (Files): Likewise.
14230         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
14231         * modules/uniwidth/u16-width-tests (Files): Likewise.
14232         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
14233         * modules/uniwidth/u32-width-tests (Files): Likewise.
14234         * modules/uniwidth/width-tests (Files): Likewise.
14235         * modules/unlink-tests (Files): Likewise.
14236         * modules/unsetenv-tests (Files): Likewise.
14237         * modules/usleep-tests (Files): Likewise.
14238         * modules/utimens-tests (Files): Likewise.
14239         * modules/utimensat-tests (Files): Likewise.
14240         * modules/vasnprintf-posix-tests (Files): Likewise.
14241         * modules/vasnprintf-tests (Files): Likewise.
14242         * modules/vasprintf-posix-tests (Files): Likewise.
14243         * modules/vasprintf-tests (Files): Likewise.
14244         * modules/vdprintf-posix-tests (Files): Likewise.
14245         * modules/vfprintf-posix-tests (Files): Likewise.
14246         * modules/vprintf-posix-tests (Files): Likewise.
14247         * modules/vsnprintf-posix-tests (Files): Likewise.
14248         * modules/vsnprintf-tests (Files): Likewise.
14249         * modules/vsprintf-posix-tests (Files): Likewise.
14250         * modules/wcrtomb-tests (Files): Likewise.
14251         * modules/wcsnrtombs-tests (Files): Likewise.
14252         * modules/wcsrtombs-tests (Files): Likewise.
14253         * modules/wctype-tests (Files): Likewise.
14254         * modules/wcwidth-tests (Files): Likewise.
14255         * modules/xmemdup0-tests (Files): Likewise.
14256         * modules/xprintf-posix-tests (Files): Likewise.
14257         * modules/xvasprintf-tests (Files): Likewise.
14258
14259 2009-12-24  Eric Blake  <ebb9@byu.net>
14260
14261         test-nanosleep: fix typo
14262         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
14263         patch.
14264         Reported by Bruno Haible.
14265
14266 2009-12-24  Bruno Haible  <bruno@clisp.org>
14267
14268         Reduce namespace pollution on glibc systems.
14269         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
14270         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
14271         systems.
14272         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
14273         <getopt.h> on glibc systems.
14274         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
14275         systems.
14276         * lib/fcntl.c: Include <unistd.h> here instead.
14277
14278 2009-12-24  Bruno Haible  <bruno@clisp.org>
14279
14280         * lib/stdlib.in.h (includes): Fix typo in today's commit.
14281
14282 2009-12-24  Eric Blake  <ebb9@byu.net>
14283
14284         tests: add signature checks
14285         * tests/signature.h (SIGNATURE_CHECK): New file.
14286         * modules/atexit-tests (Files): Use it.
14287         * modules/btowc-tests (Files): Likewise.
14288         * modules/canonicalize-lgpl-tests (Files): Likewise.
14289         * modules/ceilf-tests (Files): Likewise.
14290         * modules/ceill-tests (Files): Likewise.
14291         * modules/chown-tests (Files): Likewise.
14292         * modules/dprintf-posix-tests (Files): Likewise.
14293         * modules/dup2-tests (Files): Likewise.
14294         * modules/dup3-tests (Files): Likewise.
14295         * modules/duplocale-tests (Files): Likewise.
14296         * modules/fchdir-tests (Files): Likewise.
14297         * modules/fcntl-tests (Files): Likewise.
14298         * modules/fdopendir-tests (Files): Likewise.
14299         * modules/fflush-tests (Files): Likewise.
14300         * modules/flock-tests (Files): Likewise.
14301         * modules/floorf-tests (Files): Likewise.
14302         * modules/floorl-tests (Files): Likewise.
14303         * modules/fnmatch-tests (Files): Likewise.
14304         * modules/fopen-tests (Files): Likewise.
14305         * modules/fprintf-posix-tests (Files): Likewise.
14306         * modules/freopen-tests (Files): Likewise.
14307         * modules/frexp-nolibm-tests (Files): Likewise.
14308         * modules/frexp-tests (Files): Likewise.
14309         * modules/frexpl-nolibm-tests (Files): Likewise.
14310         * modules/frexpl-tests (Files): Likewise.
14311         * modules/fseek-tests (Files): Likewise.
14312         * modules/fseeko-tests (Files): Likewise.
14313         * modules/fsync-tests (Files): Likewise.
14314         * modules/ftell-tests (Files): Likewise.
14315         * modules/ftello-tests (Files): Likewise.
14316         * modules/futimens-tests (Files): Likewise.
14317         * modules/getaddrinfo-tests (Files): Likewise.
14318         * modules/getcwd-tests (Files): Likewise.
14319         * modules/getdelim-tests (Files): Likewise.
14320         * modules/getdtablesize-tests (Files): Likewise.
14321         * modules/getgroups-tests (Files): Likewise.
14322         * modules/gethostname-tests (Files): Likewise.
14323         * modules/getline-tests (Files): Likewise.
14324         * modules/getopt-posix-tests (Files): Likewise.
14325         * modules/gettimeofday-tests (Files): Likewise.
14326         * modules/glob-tests (Files): Likewise.
14327         * modules/iconv-tests (Files): Likewise.
14328         * modules/inet_ntop-tests (Files): Likewise.
14329         * modules/inet_pton-tests (Files): Likewise.
14330         * modules/isblank-tests (Files): Likewise.
14331         * modules/lchown-tests (Files): Likewise.
14332         * modules/ldexpl-tests (Files): Likewise.
14333         * modules/link-tests (Files): Likewise.
14334         * modules/linkat-tests (Files): Likewise.
14335         * modules/lseek-tests (Files): Likewise.
14336         * modules/lstat-tests (Files): Likewise.
14337         * modules/mbrtowc-tests (Files): Likewise.
14338         * modules/mbsinit-tests (Files): Likewise.
14339         * modules/mbsnrtowcs-tests (Files): Likewise.
14340         * modules/mbsrtowcs-tests (Files): Likewise.
14341         * modules/memchr-tests (Files): Likewise.
14342         * modules/memcmp-tests (Files): Likewise.
14343         * modules/memmem-tests (Files): Likewise.
14344         * modules/memrchr-tests (Files): Likewise.
14345         * modules/mkdir-tests (Files): Likewise.
14346         * modules/mkfifo-tests (Files): Likewise.
14347         * modules/mkfifoat-tests (Files): Likewise.
14348         * modules/mknod-tests (Files): Likewise.
14349         * modules/nanosleep-tests (Files): Likewise.
14350         * modules/nl_langinfo-tests (Files): Likewise.
14351         * modules/obstack-printf-tests (Files): Likewise.
14352         * modules/open-tests (Files): Likewise.
14353         * modules/openat-tests (Files): Likewise.
14354         * modules/perror-tests (Files): Likewise.
14355         * modules/pipe2-tests (Files): Likewise.
14356         * modules/poll-tests (Files): Likewise.
14357         * modules/popen-tests (Files): Likewise.
14358         * modules/posix_spawn-tests (Files): Likewise.
14359         * modules/posix_spawnp-tests (Files): Likewise.
14360         * modules/pread-tests (Files): Likewise.
14361         * modules/printf-posix-tests (Files): Likewise.
14362         * modules/pty-tests (Files): Likewise.
14363         * modules/random_r-tests (Files): Likewise.
14364         * modules/rawmemchr-tests (Files): Likewise.
14365         * modules/readlink-tests (Files): Likewise.
14366         * modules/remove-tests (Files): Likewise.
14367         * modules/rename-tests (Files): Likewise.
14368         * modules/renameat-tests (Files): Likewise.
14369         * modules/rmdir-tests (Files): Likewise.
14370         * modules/round-tests (Files): Likewise.
14371         * modules/roundf-tests (Files): Likewise.
14372         * modules/roundl-tests (Files): Likewise.
14373         * modules/select-tests (Files): Likewise.
14374         * modules/setenv-tests (Files): Likewise.
14375         * modules/sigaction-tests (Files): Likewise.
14376         * modules/sleep-tests (Files): Likewise.
14377         * modules/snprintf-posix-tests (Files): Likewise.
14378         * modules/snprintf-tests (Files): Likewise.
14379         * modules/sprintf-posix-tests (Files): Likewise.
14380         * modules/stat-tests (Files): Likewise.
14381         * modules/strcasestr-tests (Files): Likewise.
14382         * modules/strchrnul-tests (Files): Likewise.
14383         * modules/strerror-tests (Files): Likewise.
14384         * modules/strsignal-tests (Files): Likewise.
14385         * modules/strstr-tests (Files): Likewise.
14386         * modules/strtod-tests (Files): Likewise.
14387         * modules/strverscmp-tests (Files): Likewise.
14388         * modules/symlink-tests (Files): Likewise.
14389         * modules/symlinkat-tests (Files): Likewise.
14390         * modules/times-tests (Files): Likewise.
14391         * modules/trunc-tests (Files): Likewise.
14392         * modules/truncf-tests (Files): Likewise.
14393         * modules/truncl-tests (Files): Likewise.
14394         * modules/tsearch-tests (Files): Likewise.
14395         * modules/uname-tests (Files): Likewise.
14396         * modules/unlink-tests (Files): Likewise.
14397         * modules/unsetenv-tests (Files): Likewise.
14398         * modules/usleep-tests (Files): Likewise.
14399         * modules/utimensat-tests (Files): Likewise.
14400         * modules/vasprintf-tests (Files): Likewise.
14401         * modules/vdprintf-posix-tests (Files): Likewise.
14402         * modules/vfprintf-posix-tests (Files): Likewise.
14403         * modules/vprintf-posix-tests (Files): Likewise.
14404         * modules/vsnprintf-posix-tests (Files): Likewise.
14405         * modules/vsnprintf-tests (Files): Likewise.
14406         * modules/vsprintf-posix-tests (Files): Likewise.
14407         * modules/wcrtomb-tests (Files): Likewise.
14408         * modules/wcsnrtombs-tests (Files): Likewise.
14409         * modules/wcsrtombs-tests (Files): Likewise.
14410         * modules/wcwidth-tests (Files): Likewise.
14411         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
14412         * tests/test-isinf.c (isinf): Likewise.
14413         * tests/test-isnan.c (isnan): Likewise.
14414         * tests/test-signbit.c (signbit): Likewise.
14415         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
14416         declaration, either as macro or with correct signature.
14417         (select): Ensure function under test is declared with correct
14418         signature in correct header.
14419         * tests/test-atexit.c (atexit): Likewise.
14420         * tests/test-btowc.c (btowc): Likewise.
14421         * tests/test-canonicalize-lgpl.c (realpath)
14422         (canonicalize_file_name): Likewise.
14423         * tests/test-ceilf1.c (ceilf): Likewise.
14424         * tests/test-ceill.c (ceill): Likewise.
14425         * tests/test-chown.c (chown): Likewise.
14426         * tests/test-dprintf-posix.c (dprintf): Likewise.
14427         * tests/test-dup2.c (dup2): Likewise.
14428         * tests/test-dup3.c (dup3): Likewise.
14429         * tests/test-duplocale.c (duplocale): Likewise.
14430         * tests/test-fchdir.c (fchdir): Likewise.
14431         * tests/test-fchownat.c (fchownat): Likewise.
14432         * tests/test-fcntl.c (fcntl): Likewise.
14433         * tests/test-fdopendir.c (fdopendir): Likewise.
14434         * tests/test-fflush.c (fflush): Likewise.
14435         * tests/test-flock.c (flock): Likewise.
14436         * tests/test-floorf1.c (floorf): Likewise.
14437         * tests/test-floorl.c (floorl): Likewise.
14438         * tests/test-fnmatch.c (fnmatch): Likewise.
14439         * tests/test-fopen.c (fopen): Likewise.
14440         * tests/test-fprintf-posix.c (fprintf): Likewise.
14441         * tests/test-freopen.c (freopen): Likewise.
14442         * tests/test-frexp.c (frexp): Likewise.
14443         * tests/test-frexpl.c (frexpl): Likewise.
14444         * tests/test-fseek.c (fseek): Likewise.
14445         * tests/test-fseeko.c (fseeko): Likewise.
14446         * tests/test-fstatat.c (fstatat): Likewise.
14447         * tests/test-fsync.c (fsync): Likewise.
14448         * tests/test-ftell.c (ftell): Likewise.
14449         * tests/test-ftello.c (ftello): Likewise.
14450         * tests/test-futimens.c (futimens): Likewise.
14451         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
14452         (gai_strerror): Likewise.
14453         * tests/test-getcwd.c (getcwd): Likewise.
14454         * tests/test-getdelim.c (getdelim): Likewise.
14455         * tests/test-getdtablesize.c (getdtablesize): Likewise.
14456         * tests/test-getgroups.c (getgroups): Likewise.
14457         * tests/test-gethostname.c (gethostname): Likewise.
14458         * tests/test-getline.c (getline): Likewise.
14459         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
14460         Likewise.
14461         * tests/test-gettimeofday.c (gettimeofday): Likewise.
14462         * tests/test-glob.c (glob, globfree): Likewise.
14463         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
14464         * tests/test-inet_ntop.c (inet_ntop): Likewise.
14465         * tests/test-inet_pton.c (inet_pton): Likewise.
14466         * tests/test-isblank.c (isblank): Likewise.
14467         * tests/test-lchown.c (lchown): Likewise.
14468         * tests/test-ldexpl.c (ldexpl): Likewise.
14469         * tests/test-link.c (link): Likewise.
14470         * tests/test-linkat.c (linkat): Likewise.
14471         * tests/test-lseek.c (lseek): Likewise.
14472         * tests/test-lstat.c (lstat): Likewise.
14473         * tests/test-mbrtowc.c (mbrtowc): Likewise.
14474         * tests/test-mbsinit.c (mbsinit): Likewise.
14475         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
14476         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
14477         * tests/test-memchr.c (memchr): Likewise.
14478         * tests/test-memcmp.c (memcmp): Likewise.
14479         * tests/test-memmem.c (memmem): Likewise.
14480         * tests/test-memrchr.c (memrchr): Likewise.
14481         * tests/test-mkdir.c (mkdir): Likewise.
14482         * tests/test-mkdirat.c (mkdirat): Likewise.
14483         * tests/test-mkfifo.c (mkfifo): Likewise.
14484         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
14485         * tests/test-mknod.c (mknod): Likewise.
14486         * tests/test-nanosleep.c (nanosleep): Likewise.
14487         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
14488         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
14489         Likewise.
14490         * tests/test-open.c (open): Likewise.
14491         * tests/test-openat.c (openat): Likewise.
14492         * tests/test-perror.c (perror): Likewise.
14493         * tests/test-pipe2.c (pipe2): Likewise.
14494         * tests/test-poll.c (poll): Likewise.
14495         * tests/test-popen.c (popen, pclose): Likewise.
14496         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
14497         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
14498         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
14499         (posix_spawn_file_actions_destroy)
14500         (posix_spawn_file_actions_addclose)
14501         (posix_spawn_file_actions_addopen)
14502         (posix_spawn_file_actions_adddup2): Likewise.
14503         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
14504         * tests/test-pread.c (pread): Likewise.
14505         * tests/test-printf-posix.c (printf): Likewise.
14506         * tests/test-pty.c (openpty, forkpty): Likewise.
14507         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
14508         (random_r): Likewise.
14509         * tests/test-rawmemchr.c (rawmemchr): Likewise.
14510         * tests/test-readlink.c (readlink): Likewise.
14511         * tests/test-remove.c (remove): Likewise.
14512         * tests/test-rename.c (rename): Likewise.
14513         * tests/test-renameat.c (renameat): Likewise.
14514         * tests/test-rmdir.c (rmdir): Likewise.
14515         * tests/test-round1.c (round): Likewise.
14516         * tests/test-roundf1.c (roundf): Likewise.
14517         * tests/test-roundl.c (roundl): Likewise.
14518         * tests/test-setenv.c (setenv): Likewise.
14519         * tests/test-sigaction.c (sigaction): Likewise.
14520         * tests/test-sleep.c (sleep): Likewise.
14521         * tests/test-snprintf.c (snprintf): Likewise.
14522         * tests/test-sprintf-posix.c (sprintf): Likewise.
14523         * tests/test-stat.c (stat): Likewise.
14524         * tests/test-stpncpy.c (stpncpy): Likewise.
14525         * tests/test-strcasestr.c (strcasestr): Likewise.
14526         * tests/test-strchrnul.c (strchrnul): Likewise.
14527         * tests/test-strerror.c (strerror): Likewise.
14528         * tests/test-strsignal.c (strsignal): Likewise.
14529         * tests/test-strstr.c (strstr): Likewise.
14530         * tests/test-strtod.c (strtod): Likewise.
14531         * tests/test-strverscmp.c (strverscmp): Likewise.
14532         * tests/test-symlink.c (symlink): Likewise.
14533         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
14534         * tests/test-times.c (times): Likewise.
14535         * tests/test-trunc1.c (trunc): Likewise.
14536         * tests/test-truncf1.c (truncf): Likewise.
14537         * tests/test-truncl.c (truncl): Likewise.
14538         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
14539         Likewise.
14540         * tests/test-uname.c (uname): Likewise.
14541         * tests/test-unlink.c (unlink): Likewise.
14542         * tests/test-unlinkat.c (unlinkat): Likewise.
14543         * tests/test-unsetenv.c (unsetenv): Likewise.
14544         * tests/test-usleep.c (usleep): Likewise.
14545         * tests/test-utimensat.c (utimensat): Likewise.
14546         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
14547         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
14548         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
14549         * tests/test-vprintf-posix.c (vprintf): Likewise.
14550         * tests/test-vsnprintf.c (vsnprintf): Likewise.
14551         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
14552         * tests/test-wcrtomb.c (wcrtomb): Likewise.
14553         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
14554         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
14555         * tests/test-wcwidth.c (wcwidth): Likewise.
14556
14557         build: pull in conditional headers during GNULIB_POSIXCHECK
14558         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
14559         definitions from any conditionally-included headers.
14560         * lib/stdlib.in.h (includes): Likewise.
14561         * lib/unistd.in.h (includes): Likewise.
14562
14563 2009-12-24  Bruno Haible  <bruno@clisp.org>
14564
14565         * tests/test-argv-iter.c: Include header file being tested immediately
14566         after config.h.
14567         * tests/test-base64.c: Likewise.
14568         * tests/test-flock.c: Likewise.
14569         * tests/test-fsync.c: Likewise.
14570         * tests/test-getdate.c: Likewise.
14571         * tests/test-getndelim2.c: Likewise.
14572         * tests/test-isfinite.c: Likewise.
14573         * tests/test-isinf.c: Likewise.
14574         * tests/test-strerror.c: Likewise.
14575         * tests/test-strsignal.c: Likewise.
14576
14577 2009-12-23  Eric Blake  <ebb9@byu.net>
14578
14579         unistd: work around cygwin bug
14580         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
14581         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
14582         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14583
14584 2009-12-23  Bruno Haible  <bruno@clisp.org>
14585
14586         localename: More tests.
14587         * tests/test-localename.c (SIZEOF): New macro.
14588         (categories): New variable.
14589         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
14590         test_locale_name_default): Add test w.r.t. thread locale.
14591         (test_locale_name_thread): New function.
14592         (main): Invoke it.
14593
14594         localename: Make aware of thread locale.
14595         * lib/localename.h (gl_locale_name_thread): New declaration.
14596         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
14597         behaviour with respect to thread locale.
14598         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
14599         <langinfo.h>, glthread/lock.h.
14600         (SIZE_BITS): New macro.
14601         (string_hash): New function.
14602         (struct hash_node): New type.
14603         (HASH_TABLE_SIZE): New macro.
14604         (struniq_hash_table, struniq_lock): New variables.
14605         (struniq): New function.
14606         (gl_locale_name_thread): New function.
14607         (gl_locale_name): Invoke it.
14608         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
14609         * modules/localename (Depends-on): Add lock.
14610         Reported by Mike Gran <spk121@yahoo.com>.
14611
14612 2009-12-23  Eric Blake  <ebb9@byu.net>
14613
14614         va-args: new module
14615         * modules/va-args: New file.
14616         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
14617         * MODULES.html.sh (Core language properties): Mention it.
14618
14619         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
14620         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
14621         named alias for __attribute__((__unused__)).
14622         * lib/chown.c: Update client.
14623         * lib/fchmodat.c: Likewise.
14624         * lib/fts.c: Likewise.
14625         * lib/getdate.y: Likewise.
14626         * lib/getgroups.c: Likewise.
14627         * lib/getopt.c: Likewise.
14628         * lib/getugroups.c: Likewise.
14629         * lib/mkdir.c: Likewise.
14630         * lib/mkfifo.c: Likewise.
14631         * lib/mkfifoat.c: Likewise.
14632         * lib/mknod.c: Likewise.
14633         * lib/mknodat.c: Likewise.
14634         * lib/readlink.c: Likewise.
14635         * lib/se-context.in.h: Likewise.
14636         * lib/se-selinux.in.h: Likewise.
14637         * lib/sockets.c: Likewise.
14638         * lib/symlink.c: Likewise.
14639         * lib/symlinkat.c: Likewise.
14640         * lib/unicodeio.c: Likewise.
14641         * lib/unistr.h: Likewise.
14642         * tests/test-areadlink.c: Likewise.
14643         * tests/test-areadlinkat.c: Likewise.
14644         * tests/test-filenamecat.c: Likewise.
14645         * tests/test-fseeko.c: Likewise.
14646         * tests/test-ftello.c: Likewise.
14647         * tests/test-getdate.c: Likewise.
14648         * tests/test-getgroups.c: Likewise.
14649         * tests/test-gethostname.c: Likewise.
14650         * tests/test-quotearg.c: Likewise.
14651         * tests/test-version-etc.c: Likewise.
14652         * tests/test-xalloc-die.c: Likewise.
14653         * tests/test-xfprintf-posix.c: Likewise.
14654         * tests/test-xprintf-posix.c: Likewise.
14655         * tests/test-xvasprintf.c: Likewise.
14656
14657         tests: avoid compiler warnings
14658         * tests/test-fcntl.c (main): Delete unused parameters.
14659         * tests/test-freopen-safer.c (main): Likewise.
14660         * tests/test-xalloc-die.c (main): Mark unused parameters.
14661         * tests/test-fseeko.c (main): Likewise.
14662         * tests/test-ftello.c (main): Likewise.
14663         * tests/test-nanosleep.c (main): Avoid declaration warning.
14664         * tests/test-sleep.c (main): Likewise.
14665         * tests/test-unsetenv.c (main): Silence warning about string
14666         literal.
14667         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14668
14669 2009-12-23  Bruno Haible  <bruno@clisp.org>
14670
14671         * tests/test-localename.c (test_locale_name): New function, extracted
14672         from main. Also test mixed situations.
14673         (test_locale_name_posix, test_locale_name_environ,
14674         test_locale_name_default): New functions.
14675         (main): Invoke them all.
14676         * modules/localename-tests (configure.ac): Test for newlocale.
14677
14678 2009-12-23  Bruno Haible  <bruno@clisp.org>
14679
14680         unistd: Ensure getcwd gets declared before being overridden.
14681         * lib/unistd.in.h: Conditionally include <io.h>.
14682
14683 2009-12-22  Bruno Haible  <bruno@clisp.org>
14684
14685         wchar: Diagnose broken combination of glibc and gcc versions and flags.
14686         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
14687         (gl_WCHAR_H): Invoke it.
14688         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
14689         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
14690         Reported by Karl Berry <karl@freefriends.org>.
14691
14692 2009-12-22  Eric Blake  <ebb9@byu.net>
14693
14694         math, unistd: avoid redundant includes
14695         * lib/math.in.h (isnan): No need to re-include <math.h>.
14696         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
14697
14698         getsubopt: work around cygwin bug
14699         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
14700         avoid conflicting with system getsubopt.
14701         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
14702         bug.
14703
14704         getopt: synchronize from glibc
14705         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
14706         parameter order.  Adjust all callers.
14707         (_getopt_internal_r, main): Adjust quoting in error messages.
14708         Drop considerations for outdated POSIX 1003.2 error message.
14709         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
14710         callers.
14711         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
14712
14713         test-getopt: test stderr behavior
14714         * modules/getopt-posix-tests (Depends-on): Add dup2.
14715         * tests/test-getopt.c (ASSERT): Avoid stderr.
14716         (main): Move stderr to a temporary file.
14717         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
14718         Instead, add parameter to inform caller if output occurred.
14719         (test_getopt): Adjust all existing tests to expect silence, and
14720         add new tests of leading ":".
14721         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14722         glibc shortcomings with leading "-:" or "+:" in optstring.
14723         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14724         Likewise.
14725         * doc/posix-functions/getopt.texi (getopt): Likewise.
14726
14727         test-getopt: enhance test
14728         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
14729         supports optind=0.
14730         * tests/test-getopt.c (OPTIND_MIN): Move...
14731         * tests/test-getopt.h (OPTIND_MIN): ...here.
14732         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
14733         Require that optind=0 works, since modern BSD supports it in
14734         addition to optreset, and since coreutils expects it.
14735         (test_getopt_long_only): New test.
14736         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14737         glibc shortcomings with 'W;', and enforcement of optind=0.
14738         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14739         Likewise.
14740
14741 2009-12-21  Bruno Haible  <bruno@clisp.org>
14742
14743         localename: Improvements for MacOS X and Cygwin.
14744         * lib/localename.h (gl_locale_name_environ): New declaration.
14745         * lib/localename.c (gl_locale_name_environ): New function, extracted from
14746         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
14747         (gl_locale_name_posix): Invoke it.
14748         (gl_locale_name_default): Add comments. Use Windows native API also on
14749         Cygwin.
14750
14751 2009-12-21  Bruno Haible  <bruno@clisp.org>
14752
14753         Update list of Win32 locale ids.
14754         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
14755         (LANG_SAMI): Renamed from LANG_SAAMI.
14756         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
14757         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
14758         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
14759         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
14760         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
14761         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
14762         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
14763         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
14764         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
14765         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
14766         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
14767         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
14768         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
14769         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
14770         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
14771         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
14772         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
14773         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
14774         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
14775         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
14776         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
14777         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
14778         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
14779         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
14780         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
14781         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
14782         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
14783         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
14784         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
14785         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
14786         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
14787         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
14788         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
14789         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
14790         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
14791         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
14792         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
14793         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
14794         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
14795         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
14796         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
14797         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
14798         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
14799         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
14800         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
14801         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
14802         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
14803         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
14804         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
14805         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
14806         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
14807         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
14808         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
14809         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
14810         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
14811         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
14812         Add more languages and countries for Sami, Sorbian. Add more countries
14813         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
14814         for Pashto. Change country for Syriac, Tswana.
14815
14816 2009-12-21  Eric Blake  <ebb9@byu.net>
14817
14818         test-utimens: avoid spurious failure
14819         * tests/test-chown.h (nap): Factor...
14820         * tests/nap.h: ...into new file.
14821         * tests/test-lchown.h (nap): Avoid duplication.
14822         * tests/test-utimens-common.h (nap): Use shared implementation,
14823         necessary on file systems with 1-second resolution.
14824         * modules/chown-tests (Files): Include new file.
14825         * modules/fdutimensat-tests (Files): Likewise.
14826         * modules/futimens-tests (Files): Likewise.
14827         * modules/lchown-tests (Files): Likewise.
14828         * modules/openat-tests (Files): Likewise.
14829         * modules/utimens-tests (Files): Likewise.
14830         * modules/utimensat-tests (Files): Likewise.
14831
14832 2009-12-19  Eric Blake  <ebb9@byu.net>
14833
14834         futimens, utimensat: work around Linux bug
14835         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
14836         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14837         * lib/utimensat.c (rpl_utimensat): Work around it.
14838         * lib/futimens.c (rpl_futimens): Adjust comment.
14839
14840         utimens: work around Linux ctime bug
14841         * lib/utimens.c (detect_ctime_bug): New helper function.
14842         (update_timespec): Differentiate between workaround needed for
14843         this bug vs. what is needed for systems that lack utimensat.
14844         (fdutimens, lutimens): Work around bug.
14845
14846         utimens: check for ctime update
14847         * tests/test-utimens-common.h (check_ctime): Define.
14848         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
14849         * tests/test-futimens.h (test_futimens): Likewise.
14850         * tests/test-lutimens.h (test_lutimens): Likewise.
14851         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14852         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14853
14854 2009-12-19  Bruno Haible  <bruno@clisp.org>
14855
14856         dprintf-posix: Check against memory leak fixed on 2009-12-15.
14857         * tests/test-dprintf-posix2.sh: New file.
14858         * tests/test-dprintf-posix2.c: New file.
14859         * modules/dprintf-posix-tests (Files): Add them.
14860         (configure.ac): Check for getrlimit and setrlimit.
14861         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14862
14863 2009-12-19  Bruno Haible  <bruno@clisp.org>
14864
14865         fprintf-posix: Check against memory leak fixed on 2009-12-15.
14866         * tests/test-fprintf-posix3.sh: New file.
14867         * tests/test-fprintf-posix3.c: New file.
14868         * modules/fprintf-posix-tests (Files): Add them.
14869         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14870
14871 2009-12-19  Eric Blake  <ebb9@byu.net>
14872
14873         dirfd: fix prototype
14874         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
14875         * lib/dirfd.c (dirfd): Likewise.
14876
14877         canonicalize: reduce memory usage
14878         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
14879         allocation to size.
14880         Reported by Solar Designer <solar@openwall.com>.
14881
14882 2009-12-19  Bruno Haible  <bruno@clisp.org>
14883
14884         New module attribute 'Applicability'.
14885         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
14886         * gnulib-tool: New option --extract-applicability.
14887         (func_usage): Document it.
14888         (sed_extract_prog): Recognize it.
14889         (func_get_applicability): New function.
14890         (func_import): Generalize handling of 'link-warning' module.
14891         * modules/link-warning (Applicability): New section.
14892         * modules/arg-nonnull (Applicability): New section.
14893         Repoted by Simon Josefsson <simon@josefsson.org>.
14894
14895 2009-12-19  Bruno Haible  <bruno@clisp.org>
14896
14897         fflush: tweak
14898         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
14899         * lib/fseeko.c (rpl_fseeko): Likewise.
14900
14901 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
14902
14903         * lib/gl_list.h: Fix typo in comment.
14904
14905 2009-12-16  Eric Blake  <ebb9@byu.net>
14906
14907         fcntl: use to simplify other modules
14908         * modules/cloexec (Depends-on): Add fcntl.
14909         * modules/fchdir (Depends-on): Likewise.
14910         * modules/fd-safer-flag (Depends-on): Likewise.
14911         * modules/unistd-safer (Depends-on): Likewise.
14912         * modules/dup3 (configure.ac): Set module indicator.
14913         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
14914         missing.
14915         * lib/fchdir.c (_gl_register_dup): Fix comment.
14916         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
14917         * lib/dup-safer.c (dup_safer): Likewise.
14918         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
14919         * lib/dup3.c (dup3): Likewise.
14920         * tests/test-fchdir.c (main): Enhance test.
14921         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
14922
14923         fcntl: port portions of fcntl to mingw
14924         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
14925         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
14926         replacement for mingw.
14927         * modules/fcntl (Description): Update.
14928         (Depends-on): Add dup2.
14929         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
14930         * modules/fcntl-h (Makefile.am): Substitute it.
14931         * lib/fcntl.in.h (fcntl): Update declaration.
14932         (F_DUPFD, F_GETFD): New macros, when needed.
14933         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14934         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
14935         * tests/test-fcntl.c (check_flags, main): Enhance test for items
14936         we now guarantee.
14937
14938         fcntl: work around cygwin bug in F_DUPFD
14939         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
14940         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
14941         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
14942         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
14943         * doc/posix-functions/fcntl.texi (fcntl): Document it.
14944
14945         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
14946         * modules/fcntl (Files): List new files.
14947         (configure.ac): Run a test.
14948         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
14949         * lib/fcntl.c (rpl_fcntl): Likewise.
14950         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
14951         (gl_FCNTL_H): Always replace fcntl.h.
14952         * modules/fcntl-h (Makefile.am): Substitute witnesses.
14953         * lib/fcntl.in.h (fcntl): Declare replacement.
14954         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
14955         needed, plus a witness.
14956         * doc/posix-functions/fcntl.texi (fcntl): Document this.
14957         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14958         * tests/test-fcntl.c: New file.
14959         * modules/fcntl-tests: Likewise.
14960
14961         binary-io: avoid potential compilation warning
14962         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
14963         directives.
14964
14965         fflush: avoid compilation error on NetBSD
14966         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
14967         between off_t and fpos_t, since the latter is sometimes a struct.
14968         * lib/fseeko.c (rpl_fseeko): Likewise.
14969         Reported by Alexander Nasonov <alnsn@yandex.ru>.
14970
14971 2009-12-15  Eric Blake  <ebb9@byu.net>
14972
14973         fcntl-h, stdio, sys_ioctl: fix declarations
14974         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
14975         function must not take arguments.
14976         * lib/sys_ioctl.in.h (ioctl): Likewise.
14977         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
14978         (open): Add a link warning.
14979
14980 2009-12-15  Jim Meyering  <meyering@redhat.com>
14981
14982         areadlink, areadlink-with-size: relax license to LGPLv2+
14983         * modules/areadlink (License): Relax to LGPLv2+.
14984         * modules/areadlink-with-size (License): Likewise.
14985
14986 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
14987             Bruno Haible  <bruno@clisp.org>
14988
14989         *printf: Fix memory leak.
14990         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
14991         * lib/vfprintf.c (vfprintf): Likewise.
14992         * lib/dprintf.c (dprintf): Likewise.
14993         * lib/vdprintf.c (vdprintf): Likewise.
14994
14995 2009-12-14  Eric Blake  <ebb9@byu.net>
14996
14997         accept4: adjust module dependencies
14998         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
14999
15000         utimens: one more try at avoiding compiler warning
15001         * lib/utimens.c (lutimens): Lower scope of result.
15002
15003 2009-12-13  Bruno Haible  <bruno@clisp.org>
15004
15005         Move the malloc checking from module 'list' to new module 'xlist'.
15006         * modules/xlist: New file.
15007         * lib/gl_xlist.h: New file.
15008         * lib/gl_xlist.c: New file.
15009         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
15010         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
15011         gl_list_add_last, gl_list_add_before, gl_list_add_after,
15012         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
15013         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
15014         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
15015         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
15016         gl_sortedlist_nx_add): New declarations.
15017         (struct gl_list_implementation): Rename and change methods accordingly.
15018         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
15019         (gl_list_nx_create): Renamed from gl_list_create.
15020         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
15021         (gl_list_nx_set_at): Renamed from gl_list_set_at.
15022         (gl_list_nx_add_first): Renamed from gl_list_add_first.
15023         (gl_list_nx_add_last): Renamed from gl_list_add_last.
15024         (gl_list_nx_add_before): Renamed from gl_list_add_before.
15025         (gl_list_nx_add_after): Renamed from gl_list_add_after.
15026         (gl_list_nx_add_at): Renamed from gl_list_add_at.
15027         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
15028         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
15029         gl_list_create_empty.
15030         (gl_list_nx_create): Renamed from gl_list_create.
15031         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
15032         (gl_list_nx_set_at): Renamed from gl_list_set_at.
15033         (gl_list_nx_add_first): Renamed from gl_list_add_first.
15034         (gl_list_nx_add_last): Renamed from gl_list_add_last.
15035         (gl_list_nx_add_before): Renamed from gl_list_add_before.
15036         (gl_list_nx_add_after): Renamed from gl_list_add_after.
15037         (gl_list_nx_add_at): Renamed from gl_list_add_at.
15038         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
15039         * lib/gl_array_list.c: Don't include xalloc.h.
15040         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
15041         NULL upon out-of-memory.
15042         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
15043         out-of-memory.
15044         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
15045         Change return type to 'int'.
15046         (gl_array_nx_set_at): Renamed from gl_array_set_at.
15047         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
15048         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
15049         upon out-of-memory.
15050         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
15051         upon out-of-memory.
15052         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
15053         upon out-of-memory.
15054         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
15055         upon out-of-memory.
15056         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
15057         out-of-memory.
15058         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
15059         Update.
15060         (gl_array_list_implementation): Update.
15061         * lib/gl_carray_list.c: Don't include xalloc.h.
15062         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
15063         Return NULL upon out-of-memory.
15064         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
15065         out-of-memory.
15066         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
15067         Change return type to 'int'.
15068         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
15069         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
15070         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
15071         upon out-of-memory.
15072         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
15073         upon out-of-memory.
15074         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
15075         out-of-memory.
15076         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
15077         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
15078         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
15079         Update.
15080         (gl_carray_list_implementation): Update.
15081         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
15082         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
15083         gl_linked_create_empty. Return NULL upon out-of-memory.
15084         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
15085         out-of-memory.
15086         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
15087         Change return type to 'int'. Return -1 upon out-of-memory.
15088         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
15089         out-of-memory.
15090         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
15091         upon out-of-memory.
15092         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
15093         upon out-of-memory.
15094         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
15095         NULL upon out-of-memory.
15096         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
15097         upon out-of-memory.
15098         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
15099         out-of-memory.
15100         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
15101         Update.
15102         * lib/gl_linked_list.c: Don't include xalloc.h.
15103         (gl_linked_list_implementation): Update.
15104         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
15105         (add_to_bucket): Change return type to 'int'.
15106         (gl_linkedhash_list_implementation): Update.
15107         * lib/gl_anytree_list1.h (free_subtree): New function.
15108         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
15109         gl_tree_create_empty. Return NULL upon out-of-memory.
15110         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
15111         Change return type to 'int'. Return -1 upon out-of-memory.
15112         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
15113         out-of-memory.
15114         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
15115         (gl_tree_remove_node): New function, moved here from
15116         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
15117         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
15118         Update.
15119         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
15120         malloc, not xmalloc. Return NULL upon out-of-memory.
15121         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
15122         out-of-memory.
15123         (gl_tree_remove_node_from_tree): New function, extracted from
15124         gl_tree_remove_node.
15125         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
15126         upon out-of-memory.
15127         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
15128         out-of-memory.
15129         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
15130         upon out-of-memory.
15131         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
15132         upon out-of-memory.
15133         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
15134         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
15135         not xmalloc. Return NULL upon out-of-memory.
15136         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
15137         out-of-memory.
15138         (gl_tree_remove_node_from_tree): New function, extracted from
15139         gl_tree_remove_node.
15140         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
15141         upon out-of-memory.
15142         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
15143         out-of-memory.
15144         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
15145         upon out-of-memory.
15146         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
15147         upon out-of-memory.
15148         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
15149         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
15150         gl_anytree_list1.h before gl_anyavltree_list2.h.
15151         (gl_avltree_list_implementation): Update.
15152         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
15153         gl_anytree_list1.h before gl_anyavltree_list2.h.
15154         (gl_rbtree_list_implementation): Update.
15155         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
15156         Change return type to 'int'. Return -1 upon out-of-memory. Use
15157         __builtin_expect.
15158         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
15159         (gl_avltreehash_list_implementation): Update.
15160         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
15161         (gl_rbtreehash_list_implementation): Update.
15162         * modules/array-list (Depends-on): Remove xalloc.
15163         * modules/carray-list (Depends-on): Likewise.
15164         * modules/linked-list (Depends-on): Likewise.
15165         * modules/linkedhash-list (Depends-on): Likewise.
15166         * modules/avltree-list (Depends-on): Likewise.
15167         * modules/rbtree-list (Depends-on): Likewise.
15168         * modules/avltreehash-list (Depends-on): Likewise.
15169         * modules/rbtreehash-list (Depends-on): Likewise.
15170
15171         * modules/xsublist: New file.
15172         * lib/gl_xsublist.h: New file.
15173         * lib/gl_xsublist.c: New file.
15174         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
15175         (gl_sublist_nx_create): New declaration.
15176         * lib/gl_sublist.c: Don't include xalloc.h.
15177         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
15178         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
15179         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
15180         Change return type to 'int'. Return -1 upon out-of-memory.
15181         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
15182         upon out-of-memory.
15183         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
15184         NULL upon out-of-memory.
15185         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
15186         upon out-of-memory.
15187         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
15188         NULL upon out-of-memory.
15189         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
15190         NULL upon out-of-memory.
15191         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
15192         upon out-of-memory.
15193         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
15194         (gl_sublist_list_implementation): Update.
15195         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
15196         upon out-of-memory.
15197         * modules/sublist (Depends-on): Remove xalloc.
15198
15199         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
15200         * tests/test-carray_list.c: Likewise.
15201         * tests/test-linked_list.c: Likewise.
15202         * tests/test-linkedhash_list.c: Likewise.
15203         * tests/test-avltree_list.c: Likewise.
15204         * tests/test-rbtree_list.c: Likewise.
15205         * tests/test-avltreehash_list.c: Likewise.
15206         * tests/test-rbtreehash_list.c: Likewise.
15207         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
15208         * modules/carray-list-tests (Makefile.am): Likewise.
15209         * modules/linked-list-tests (Makefile.am): Likewise.
15210         * modules/linkedhash-list-tests (Makefile.am): Likewise.
15211         * modules/avltree-list-tests (Makefile.am): Likewise.
15212         * modules/rbtree-list-tests (Makefile.am): Likewise.
15213         * modules/avltreehash-list-tests (Makefile.am): Likewise.
15214         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
15215
15216         * NEWS: Mention the changes.
15217
15218         * lib/clean-temp.c: Include gl_xlist.h.
15219         * modules/clean-temp (Depends-on): Add xlist.
15220
15221         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
15222         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
15223
15224         * tests/test-array_oset.c: Include gl_xlist.h.
15225         * modules/array-oset-tests (Depends-on): Add xlist.
15226
15227         Reported by José E. Marchesi <jemarch@gnu.org>.
15228
15229 2009-12-13  Bruno Haible  <bruno@clisp.org>
15230
15231         Move the malloc checking from module 'oset' to new module 'xoset'.
15232         * modules/xoset: New file.
15233         * lib/gl_xoset.h: New file.
15234         * lib/gl_xoset.c: New file.
15235         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
15236         declarations.
15237         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
15238         (struct gl_oset_implementation): Rename and change methods accordingly.
15239         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
15240         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
15241         'int'. Mark as __warn_unused_result__.
15242         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
15243         gl_oset_create_empty.
15244         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
15245         'int'.
15246         * lib/gl_array_oset.c: Don't include xalloc.h.
15247         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
15248         malloc, not xmalloc.
15249         (grow): Change return type to 'int'. Don't call xalloc_die.
15250         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
15251         to 'int'.
15252         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
15253         'int'.
15254         (gl_array_oset_implementation): Update.
15255         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
15256         gl_tree_create_empty.
15257         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
15258         'int'.
15259         * lib/gl_avltree_oset.c: Don't include xalloc.h.
15260         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
15261         xmalloc.
15262         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
15263         not xmalloc.
15264         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
15265         xmalloc.
15266         (gl_avltree_oset_implementation): Update.
15267         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
15268         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
15269         xmalloc.
15270         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
15271         not xmalloc.
15272         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
15273         xmalloc.
15274         (gl_rbtree_oset_implementation): Update.
15275         * modules/array-oset (Depends-on): Remove xalloc.
15276         * modules/avltree-oset (Depends-on): Likewise.
15277         * modules/rbtree-oset (Depends-on): Likewise.
15278         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
15279         * tests/test-avltree_oset.c: Likewise.
15280         * tests/test-rbtree_oset.c: Likewise.
15281         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
15282         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
15283         * modules/rbtree-oset-tests (Makefile.am): Likewise.
15284         * NEWS: Mention the change.
15285
15286 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
15287
15288         maint.mk: allow a project to override release-prep commands
15289         * top/maint.mk (alpha, beta, stable): Move release-preparatory
15290         commands into a new rule.
15291         (release-prep): New rule.
15292         (release-prep-hook): New overridable variable.
15293
15294 2009-12-13  Bruno Haible  <bruno@clisp.org>
15295
15296         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
15297
15298 2009-12-13  Jim Meyering  <meyering@redhat.com>
15299
15300         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
15301         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
15302
15303 2009-12-12  Bruno Haible  <bruno@clisp.org>
15304
15305         duplocale: Tweak.
15306         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
15307
15308 2009-12-12  Karl Berry  <karl@gnu.org>
15309
15310         * config/srclist.txt (strtoll.c): tab changes, no more sync.
15311
15312 2009-12-12  Bruno Haible  <bruno@clisp.org>
15313
15314         * m4/po.m4: Undo incorrect untabification.
15315
15316 2009-12-12  Bruno Haible  <bruno@clisp.org>
15317
15318         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
15319         * modules/c-strtod (Depends-on): Add locale.
15320         * modules/c-strtold (Depends-on): Likewise.
15321
15322 2009-12-12  Bruno Haible  <bruno@clisp.org>
15323
15324         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
15325
15326 2009-12-11  Eric Blake  <ebb9@byu.net>
15327
15328         setenv: relax requirement in light of POSIX ruling
15329         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
15330         not NULL.
15331         * tests/test-setenv.c (main): Relax test.
15332         * tests/test-unsetenv.c (main): Likewise.
15333         * doc/posix-functions/setenv.texi (setenv): Document this.
15334         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
15335
15336 2009-12-11  Bruno Haible  <bruno@clisp.org>
15337
15338         New module 'fd-safer-flag'.
15339         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
15340         * lib/dup-safer.c (dup_safer_flag): Remove function.
15341         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
15342         * lib/fd-safer.c (fd_safer_flag): Remove function.
15343         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
15344         * modules/cloexec (configure.ac): Drop indicator macro.
15345         * modules/fd-safer-flag: New file.
15346         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
15347         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
15348         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
15349
15350 2009-12-11  Bruno Haible  <bruno@clisp.org>
15351
15352         Tests for module 'nl_langinfo'.
15353         * modules/nl_langinfo-tests: New file.
15354         * tests/test-nl_langinfo.sh: New file.
15355         * tests/test-nl_langinfo.c: New file.
15356
15357         New module 'nl_langinfo'.
15358         * lib/nl_langinfo.c: New file.
15359         * m4/nl_langinfo.m4: New file.
15360         * modules/nl_langinfo: New file.
15361         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
15362
15363 2009-12-11  Bruno Haible  <bruno@clisp.org>
15364
15365         Tests for module 'langinfo'.
15366         * modules/langinfo-tests: New file.
15367         * tests/test-langinfo.c: New file.
15368
15369         New module 'langinfo'.
15370         * lib/langinfo.in.h: New file.
15371         * m4/langinfo_h.m4: New file.
15372         * modules/langinfo: New file.
15373         * doc/posix-headers/langinfo.texi: Mention the new module.
15374
15375 2009-12-11  Bruno Haible  <bruno@clisp.org>
15376
15377         * lib/config.charset: Untabify.
15378
15379 2009-12-11  Bruno Haible  <bruno@clisp.org>
15380
15381         * modules/unistd-safer (configure.ac): Drop indicator macro.
15382
15383 2009-12-11  Bruno Haible  <bruno@clisp.org>
15384
15385         Move pipe2-safer code to its own file.
15386         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
15387         * lib/pipe-safer.c (pipe2_safer): Remove function.
15388         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
15389         (Makefile.am): Add it to lib_SOURCES.
15390
15391 2009-12-10  Bruno Haible  <bruno@clisp.org>
15392
15393         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
15394
15395 2009-12-10  Bruno Haible  <bruno@clisp.org>
15396
15397         Declare which arguments expect non-NULL values, for GCC and clang.
15398         * build-aux/arg-nonnull.h: New file.
15399         * modules/arg-nonnull: New file.
15400         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
15401         (inet_ntop, inet_pton): Use it.
15402         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
15403         (closedir, dirfd, opendir, scandir, alphasort): Use it.
15404         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
15405         (open, openat): Use it.
15406         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
15407         (fnmatch): Use it.
15408         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
15409         (getopt, getopt_long, getopt_long_only): Use it.
15410         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
15411         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
15412         Use it.
15413         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
15414         (iconv_open): Use it.
15415         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
15416         (strtoimax, strtoumax): Use it.
15417         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
15418         (duplocale): Use it.
15419         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
15420         (frexp, frexpl): Use it.
15421         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
15422         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
15423         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
15424         (tsearch, tfind, tdelete, twalk): Use it.
15425         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
15426         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15427         sigpending): Use it.
15428         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
15429         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15430         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15431         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15432         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15433         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15434         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15435         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15436         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15437         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15438         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15439         Use it.
15440         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
15441         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
15442         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
15443         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
15444         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
15445         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
15446         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
15447         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
15448         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
15449         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
15450         strtoull, unsetenv): Use it.
15451         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
15452         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15453         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15454         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
15455         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
15456         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
15457         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
15458         (strcasecmp, strncasecmp): Use it.
15459         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
15460         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
15461         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
15462         rpl_setsockopt): Use it.
15463         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
15464         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
15465         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
15466         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
15467         (gettimeofday): Use it.
15468         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
15469         (times): Use it.
15470         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
15471         (uname): Use it.
15472         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
15473         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
15474         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
15475         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
15476         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
15477         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
15478         unlinkat, write): Use it.
15479         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
15480         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
15481         * lib/argv-iter.h: Include arg-nonnull.h.
15482         (_ATTRIBUTE_NONNULL_): Remove macro.
15483         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
15484         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
15485         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
15486         optimization.
15487         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
15488         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
15489         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
15490         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
15491         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
15492         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
15493         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
15494         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
15495         * modules/arpa_inet (Depends-on): Add arg-nonnull.
15496         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
15497         * modules/dirent (Depends-on): Add arg-nonnull.
15498         (Makefile.am): Insert arg-nonnull.h into dirent.h.
15499         * modules/fcntl-h (Depends-on): Add arg-nonnull.
15500         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
15501         * modules/fnmatch (Depends-on): Add arg-nonnull.
15502         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
15503         * modules/getopt-posix (Depends-on): Add arg-nonnull.
15504         (Makefile.am): Insert arg-nonnull.h into getopt.h.
15505         * modules/glob (Depends-on): Add arg-nonnull.
15506         (Makefile.am): Insert arg-nonnull.h into glob.h.
15507         * modules/iconv_open (Depends-on): Add arg-nonnull.
15508         (Makefile.am): Insert arg-nonnull.h into iconv.h.
15509         * modules/inttypes (Depends-on): Add arg-nonnull.
15510         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
15511         * modules/locale (Depends-on): Add arg-nonnull.
15512         (Makefile.am): Insert arg-nonnull.h into locale.h.
15513         * modules/math (Depends-on): Add arg-nonnull.
15514         (Makefile.am): Insert arg-nonnull.h into math.h.
15515         * modules/netdb (Depends-on): Add arg-nonnull.
15516         (Makefile.am): Insert arg-nonnull.h into netdb.h.
15517         * modules/search (Depends-on): Add arg-nonnull.
15518         (Makefile.am): Insert arg-nonnull.h into search.h.
15519         * modules/signal (Depends-on): Add arg-nonnull.
15520         (Makefile.am): Insert arg-nonnull.h into signal.h.
15521         * modules/spawn (Depends-on): Add arg-nonnull.
15522         (Makefile.am): Insert arg-nonnull.h into spawn.h.
15523         * modules/stdio (Depends-on): Add arg-nonnull.
15524         (Makefile.am): Insert arg-nonnull.h into stdio.h.
15525         * modules/stdlib (Depends-on): Add arg-nonnull.
15526         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
15527         * modules/string (Depends-on): Add arg-nonnull.
15528         (Makefile.am): Insert arg-nonnull.h into string.h.
15529         * modules/strings (Depends-on): Add arg-nonnull.
15530         (Makefile.am): Insert arg-nonnull.h into strings.h.
15531         * modules/sys_socket (Depends-on): Add arg-nonnull.
15532         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
15533         * modules/sys_stat (Depends-on): Add arg-nonnull.
15534         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
15535         * modules/sys_time (Depends-on): Add arg-nonnull.
15536         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
15537         * modules/sys_times (Depends-on): Add arg-nonnull.
15538         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
15539         * modules/sys_utsname (Depends-on): Add arg-nonnull.
15540         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
15541         * modules/time (Depends-on): Add arg-nonnull.
15542         (Makefile.am): Insert arg-nonnull.h into time.h.
15543         * modules/unistd (Depends-on): Add arg-nonnull.
15544         (Makefile.am): Insert arg-nonnull.h into unistd.h.
15545         * modules/wchar (Depends-on): Add arg-nonnull.
15546         (Makefile.am): Insert arg-nonnull.h into wchar.h.
15547         * modules/argv-iter (Depends-on): Add arg-nonnull.
15548         * tests/test-canonicalize.c (null_ptr): New function.
15549         (main): Use it.
15550         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
15551         (main): Use it.
15552         * tests/test-memmem.c (null_ptr): New function.
15553         (main): Use it.
15554         Reported by Jim Meyering.
15555
15556 2009-12-10  Bruno Haible  <bruno@clisp.org>
15557
15558         Use spaces for indentation, not tabs.
15559         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15560         * m4/*.m4: Untabify.
15561         * build-aux/*.h: Untabify.
15562         * tests/**/*.[hc]: Untabify.
15563         * README: New section "Indent with spaces, not TABs", based on
15564         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
15565         * NEWS: Mention the change.
15566
15567 2009-12-10  Bruno Haible  <bruno@clisp.org>
15568
15569         pty test: Fix link error.
15570         * modules/pty-tests (Makefile.am): Add the default LDADD value to
15571         test_pty_LDADD.
15572
15573 2009-12-07  Simon Josefsson  <simon@josefsson.org>
15574
15575         * modules/pty: New file.
15576         * modules/pty-tests: New file.
15577         * m4/pty.m4: New file.
15578         * tests/test-pty.c: New file.
15579         * doc/glibc-headers/pty.texi: Modified.
15580         * doc/glibc-functions/forkpty.texi: Modified.
15581         * doc/glibc-functions/openpty.texi: Modified.
15582
15583 2009-12-10  Bruno Haible  <bruno@clisp.org>
15584
15585         Avoid syntax error in C++ mode.
15586         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
15587
15588 2009-12-10  Bruno Haible  <bruno@clisp.org>
15589
15590         Use sed with option -e.
15591         * gnulib-tool (func_version, func_emit_copyright_notice,
15592         func_emit_initmacro_end, func_import, func_create_testdir): Pass
15593         option -e to sed.
15594         * modules/link-warning (Makefile.am): Likewise.
15595
15596 2009-12-10  Jim Meyering  <meyering@redhat.com>
15597
15598         mgetgroups: do not write bytes beyond end of malloc'd buffer
15599         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
15600         username, we call getgroups with a one-element-shorter buffer,
15601         but still told it the length was original, max_n_groups.
15602
15603 2009-12-09  Eric Blake  <ebb9@byu.net>
15604
15605         cloexec: relax license
15606         * modules/cloexec (Maintainer): Add myself.
15607         (License): Use LGPL, not GPL.
15608
15609         link-warning: optimize generation
15610         * modules/link-warning (Makefile.am): Reduce process usage.
15611
15612 2009-12-09  Bruno Haible  <bruno@clisp.org>
15613
15614         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
15615         workaround was added on 2009-11-17.
15616
15617 2009-12-09  Jim Meyering  <meyering@redhat.com>
15618             Bruno Haible  <bruno@clisp.org>
15619
15620         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
15621         * modules/link-warning (Makefile.am): Make the comment-removing sed
15622         command more robust in the face of bootstrap-prepended comment lines.
15623
15624 2009-12-09  Bruno Haible  <bruno@clisp.org>
15625
15626         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
15627         most one group.
15628
15629 2009-12-09  Simon Josefsson <simon@josefsson.org>
15630             Bruno Haible  <bruno@clisp.org>
15631
15632         * build-aux/link-warning.h: Add copyright notice.
15633         * modules/link-warning (Makefile.am): Generate link-warning.h from
15634         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
15635         * NEWS: Mention change in link-warning module.
15636         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
15637         * modules/dirent (Makefile.am): Add dependency to dirent.h.
15638         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
15639         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
15640         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
15641         * modules/math (Makefile.am): Add dependency to math.h.
15642         * modules/search (Makefile.am): Add dependency to search.h.
15643         * modules/signal (Makefile.am): Add dependency to signal.h.
15644         * modules/spawn (Makefile.am): Add dependency to spawn.h.
15645         * modules/stdio (Makefile.am): Add dependency to stdio.h.
15646         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
15647         * modules/string (Makefile.am): Add dependency to string.h.
15648         * modules/strings (Makefile.am): Add dependency to strings.h.
15649         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
15650         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
15651         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
15652         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
15653         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
15654         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
15655         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
15656         * modules/unistd (Makefile.am): Add dependency to unistd.h.
15657         * modules/wchar (Makefile.am): Add dependency to wchar.h.
15658
15659 2009-12-09  Bruno Haible  <bruno@clisp.org>
15660
15661         fchdir: Optimize away rpl_fstat when possible.
15662         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
15663         REPLACE_OPEN_DIRECTORY.
15664         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
15665
15666 2009-12-09  Bruno Haible  <bruno@clisp.org>
15667
15668         * lib/fchdir.c: Update comment.
15669
15670 2009-12-09  Bruno Haible  <bruno@clisp.org>
15671
15672         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
15673
15674 2009-12-08  Eric Blake  <ebb9@byu.net>
15675
15676         fchdir: avoid memory leak on re-registration.
15677         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
15678
15679 2009-12-08  Jim Meyering  <meyering@redhat.com>
15680
15681         init.sh: avoid Solaris 10 /bin/sh portability problem
15682         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
15683         sourced script:
15684           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
15685           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
15686           bar
15687         tests/init.sh relied on that, accepting a --set-path=DIR argument,
15688         and two tests used that idiom.
15689         * tests/init.sh: Update suggested usage comments.
15690         (path_prepend_): New function, to be used in place
15691         of the --src-path=DIR option.
15692         (setup_): Move PATH-prepending code into path_prepend_.
15693         * tests/test-pread.sh: Adapt to new usage.
15694         * tests/test-xalloc-die.sh: Likewise.
15695
15696 2009-12-08  Simon Josefsson  <simon@josefsson.org>
15697
15698         * doc/gnulib.texi (Glibc pty.h): Add.
15699         * doc/glibc-functions/forkpty.texi: Add.
15700         * doc/glibc-functions/openpty.texi: Add.
15701         Suggested by Bruno Haible.
15702
15703 2009-12-08  Eric Blake  <ebb9@byu.net>
15704
15705         fchdir: fix logic bugs
15706         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
15707         * tests/test-fchdir.c (main): Enhance test.
15708         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
15709         is in use.
15710
15711         dup2: fix logic bugs
15712         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
15713         REPLACE_DUP2 to decide when rpl_dup2 is needed.
15714         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
15715         exists.
15716         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
15717
15718 2009-12-07  Eric Blake  <ebb9@byu.net>
15719
15720         unlink: fix m4 detection
15721         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
15722
15723         unistd-safer: add unit test
15724         * modules/unistd-safer-tests: New file.
15725         * tests/test-dup-safer.c: Likewise.
15726         * tests/test-cloexec.c (setmode): Avoid compiler warning.
15727         * tests/test-dup2.c (setmode): Likewise.
15728         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
15729
15730         cloexec: preserve text vs. binary across dup_cloexec
15731         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
15732         mode.
15733         * modules/dup2-tests (Depends-on): Add binary-io.
15734         * modules/cloexec-tests (Depends-on): Likewise.
15735         * tests/test-dup2.c (setmode, is_mode): New helpers.
15736         (main): Add tests that translation mode is preserved.
15737         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
15738         Reported by Bruno Haible.
15739
15740         mgetgroups: reduce duplicate listings
15741         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
15742         resulting array.
15743         * tests/test-chown.h (test_chown): Simplify client.
15744         * tests/test-lchown.h (test_lchown): Likewise.
15745
15746 2009-12-06  Bruno Haible  <bruno@clisp.org>
15747
15748         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
15749         value.
15750
15751 2009-12-06  Bruno Haible  <bruno@clisp.org>
15752
15753         * lib/progname.c: Include stdio.h, stdlib.h.
15754         (set_program_name): Reject a NULL argument.
15755
15756 2009-12-05  Eric Blake  <ebb9@byu.net>
15757
15758         pipe2-safer: new module
15759         * modules/pipe2-safer: New file.
15760         * lib/unistd-safer.h (pipe2_safer): New prototype.
15761         * lib/unistd--.h (pipe2): New wrapper.
15762         * lib/pipe-safer.c (pipe2_safer): New function.
15763         * modules/pipe (Depends-on): Add pipe2-safer.
15764         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
15765
15766         stdlib-safer: preserve cloexec flag for mkostemp[s]
15767         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
15768         fd_safer_flag.
15769
15770         unistd-safer: allow preservation of cloexec status via flag
15771         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
15772         prototypes.
15773         * lib/dup-safer.c (dup_safer_flag): New function.
15774         * lib/fd-safer.c (fd_safer_flag): Likewise.
15775         * modules/cloexec (configure.ac): Set witness.
15776
15777         test-dup2: enhance test
15778         * modules/dup2-tests (Depends-on): Add cloexec.
15779         * tests/test-dup2.c (main): Enhance test.
15780
15781         cloexec: add dup_cloexec
15782         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
15783         header and comments.
15784         * lib/cloexec.c (set_cloexec_flag): Add comments.
15785         (dup_cloexec): New function, with mingw implementation borrowed
15786         from...
15787         * lib/w32spawn.h (dup_noinherit): ...here.
15788         * modules/execute (Depends-on): Add cloexec.
15789         * modules/pipe (Depends-on): Likewise.
15790         * modules/cloexec (Depends-on): Add dup2.
15791         * modules/cloexec-tests (Files): New file.
15792         * tests/test-cloexec.c: Likewise.
15793
15794         test-xalloc-die: fix test for mingw
15795         * modules/xalloc-die-tests (Files): Add tests/init.sh.
15796         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
15797         directory and .exe suffix off argv[0] output.
15798
15799         test-fseeko: fix test for mingw
15800         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
15801         than undefining fseek, so test will pass on mingw.
15802
15803 2009-12-05  Bruno Haible  <bruno@clisp.org>
15804
15805         * lib/progname.h (set_program_name): Clarify specification.
15806         * lib/progname.c (set_program_name): Likewise.
15807         Reported by Jim Meyering.
15808
15809 2009-12-05  Jim Meyering  <meyering@redhat.com>
15810
15811         maint.mk: backslash-escape parens in default regexp
15812         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
15813         backslash-escape the literal parentheses.
15814
15815         maint.mk: news-date-check: use grep -E
15816         * top/maint.mk (today): Define a Make variable, not a...
15817         (news-date-check): ...shell variable.
15818         (news-date-regexp): Use the Make variable.
15819         Use grep's -E option.  Change the failing diagnostic to mention
15820         the variable, $(news-date-regexp).
15821
15822 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
15823
15824         maintainer-makefile: allow customization of NEWS entry format
15825         * top/maint.mk (news-date-regexp): New overridable variable.
15826         (news-date-check): Use it.
15827
15828 2009-12-04  Eric Blake  <ebb9@byu.net>
15829
15830         mgetgroups: add xgetgroups, and avoid ENOSYS failures
15831         * lib/mgetgroups.h (xgetgroups): New prototype.
15832         * lib/mgetgroups.c (xgetgroups): New wrapper.
15833         (mgetgroups): Handle ENOSYS.
15834         * modules/mgetgroups (Depends-on): Add realloc.
15835         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
15836
15837         mgetgroups: avoid argument promotion issues with -1
15838         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
15839         for invalid gid_t.
15840         * tests/test-chown.h (getegid, test_chown): Likewise.
15841         * tests/test-lchown.h (getegid, test_lchown): Likewise.
15842
15843 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
15844
15845         exclude: Fix header file problems.
15846         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
15847
15848 2009-12-01  Jim Meyering  <meyering@redhat.com>
15849
15850         fts: fts_open: do not let an empty string cause immediate failure
15851         This is required in support of GNU rm, for which the command
15852         "rm A '' B" must process and remove both A and B, in spite of
15853         the empty string argument.
15854         * lib/fts.c (fts_open): Do not let the presence of an empty string
15855         cause fts_open to fail immediately.  Most fts-using tools must be
15856         able to process all arguments, in order, and can be expected to
15857         diagnose such arguments themselves.
15858
15859 2009-11-30  Eric Blake  <ebb9@byu.net>
15860
15861         utimens: fix compilation error
15862         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
15863         Declare variable at right scope.
15864
15865 2009-11-29  Jim Meyering  <meyering@redhat.com>
15866
15867         bootstrap: handle perl-5.11's changed --version output
15868         * build-aux/bootstrap (get_version): Handle perl separately,
15869         since perl-5.11's --version output is different.
15870
15871 2009-11-28  Jim Meyering  <meyering@redhat.com>
15872
15873         userspec: depend on the inttostr module, too
15874         * modules/userspec (Depends-on): Add inttostr.
15875
15876         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
15877         * lib/userspec.c (parse_with_separator): Do not accept a user ID
15878         number of MAXUID when it evaluates to (uid_t) -1.
15879         Likewise for group ID.  Reported by Matt McCutchen in
15880         <http://savannah.gnu.org/bugs/?28113>
15881
15882         userspec: reformat to use spaces, not TABs
15883         * lib/userspec.c: Expand TABs to spaces.
15884         Add Emacs' "indent-tabs-mode: nil" hint.
15885
15886 2009-11-27  Eric Blake  <ebb9@byu.net>
15887
15888         getopt-gnu: flush out another BSD bug
15889         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
15890         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
15891         flush out BSD bug.
15892         * tests/test-getopt.h (test_getopt): End lists with NULL.
15893         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15894         (test_getopt_long_posix): Enhance test.
15895         * modules/getopt-posix-tests (Depends-on): Add stdbool.
15896         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
15897         getopt-gnu.
15898         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15899         Likewise.
15900
15901 2009-11-27  Simon Josefsson  <simon@josefsson.org>
15902
15903         * modules/idpriv-droptemp-tests (Notice): Fix text.
15904
15905 2009-11-27  Jim Meyering  <meyering@redhat.com>
15906
15907         test-xalloc-die: avoid spurious failure due to libtool argv difference
15908         In a libtool-enabled project, this test would fail due to a difference
15909         in the emitted program name, e.g.,
15910         -test-xalloc-die: memory exhausted
15911         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
15912         Use program to avoid that.
15913         * modules/xalloc-die-tests (Depends-on): Add progname.
15914         * tests/test-xalloc-die.c: Include progname.h".
15915         (program_name): Remove decl.
15916         (main): Call set_program_name.
15917         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
15918
15919 2009-11-26  Richard Jones  <rjones@redhat.com>
15920
15921         w32sock: leave win32 error in place.
15922         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
15923
15924 2009-11-26  Eric Blake  <ebb9@byu.net>
15925
15926         init.sh: suggest to use skip_ and fail_ functions in comments
15927         * tests/init.sh: Add a sentence.
15928
15929 2009-11-25  Bruno Haible  <bruno@clisp.org>
15930
15931         init.sh: add documentation in comments
15932         * tests/init.sh: Add some developer and user documentation.
15933
15934 2009-11-26  Jim Meyering  <meyering@redhat.com>
15935
15936         init.sh: accommodate even those who specify bogus srcdir manually
15937         * tests/init.sh: Normally, srcdir is guaranteed by automake and
15938         configure-time tests to be sanitized, so that there is no need to
15939         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
15940         (with no double quotes) suffices.  However, since tests may be
15941         invoked manually, and since you may explicitly set srcdir to the
15942         name of a directory containing spaces, do quote its uses here.
15943         * tests/test-pread.sh: Likewise.
15944         Suggested by Bruno Haible.
15945
15946         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
15947         * tests/test-pread.sh: Write no data into the pipe, because
15948         test-pread actually reads none.  This avoids a diagnostic,
15949         "bash: echo: write error: Broken pipe", that arises in the unusual
15950         event something is ignoring SIGPIPE, and might be interpreted
15951         as some sort of failure.  Reported by Bruno Haible.
15952
15953 2009-11-25  Jim Meyering  <meyering@redhat.com>
15954
15955         test-pread: cover failure with ESPIPE and EINVAL
15956         * tests/test-pread.c (main): Test for failure, too.
15957         * tests/test-pread.sh: Invoke with stdin on a pipe.
15958         Suggested by Eric Blake.
15959
15960         pread: improvement and fix
15961         * modules/pread (Depends-on): Depend on lseek, for portability to
15962         e.g., mingw.  Suggested by Eric Blake.
15963         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
15964
15965         unistd.in.h: correct declaration of pread
15966         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
15967         Reported by Richard W.M. Jones.
15968
15969         test-pread.sh: distribute the test script
15970         * modules/pread-tests (Files): Include test-pread.sh.
15971
15972         test-pread.sh: clean up
15973         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
15974         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
15975         That is unnecessary, since it's always ".".
15976         Suggestion from Eric Blake.
15977
15978         test-pread.sh: make executable
15979         * tests/test-pread.sh: Set executable bit.
15980         Reported by Eric Blake.
15981
15982         correct typo in test-pread.sh
15983         * tests/test-pread.sh: Add #! line.
15984
15985         test pread
15986         * tests/test-pread.c: New file.
15987         * tests/test-pread.sh: Likewise.
15988         * modules/pread-tests: Likewise.
15989
15990         pread: new module
15991         * modules/pread: New file.
15992         * lib/unistd.in.h (pread): Define/declare.
15993         * lib/pread.c (pread): New file.
15994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
15995         * modules/unistd (Makefile.am): Substitute witnesses.
15996         * doc/posix-functions/pread.texi (pread): Update.
15997         * MODULES.html.sh: Add pread.
15998
15999 2009-11-25  Jim Meyering  <meyering@redhat.com>
16000
16001         tests/init.sh: new file to be used via most *.sh tests
16002         * tests/init.sh: New file.
16003
16004 2009-11-25  Eric Blake  <ebb9@byu.net>
16005
16006         utimens: work around older Linux failure with symlinks
16007         * lib/utimens.c (lutimensat_works_really): New variable.
16008         (fdutimens, lutimens): Use it to manage kernels that support
16009         nanosecond times on files, but not on symlinks.
16010         Reported by OndÅ™ej Vašík.
16011
16012         utimes: fix configure grammar
16013         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
16014
16015 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
16016
16017         regex: Fix fastmap for multibyte character ranges.
16018         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
16019         characters when a multibyte character range is included.
16020
16021 2009-11-22  Andy Wingo  <wingo@pobox.com>
16022
16023         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
16024         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
16025
16026 2009-11-24  Bruno Haible  <bruno@clisp.org>
16027
16028         doc: Most *_l functions exist in MacOS X 10.5.
16029         * doc/posix-functions/duplocale.texi: Update platforms list.
16030         * doc/posix-functions/freelocale.texi: Likewise.
16031         * doc/posix-functions/newlocale.texi: Likewise.
16032         * doc/posix-functions/uselocale.texi: Likewise.
16033         * doc/posix-functions/isalnum_l.texi: Likewise.
16034         * doc/posix-functions/isalpha_l.texi: Likewise.
16035         * doc/posix-functions/isblank_l.texi: Likewise.
16036         * doc/posix-functions/iscntrl_l.texi: Likewise.
16037         * doc/posix-functions/isdigit_l.texi: Likewise.
16038         * doc/posix-functions/isgraph_l.texi: Likewise.
16039         * doc/posix-functions/islower_l.texi: Likewise.
16040         * doc/posix-functions/isprint_l.texi: Likewise.
16041         * doc/posix-functions/ispunct_l.texi: Likewise.
16042         * doc/posix-functions/isspace_l.texi: Likewise.
16043         * doc/posix-functions/isupper_l.texi: Likewise.
16044         * doc/posix-functions/iswalnum_l.texi: Likewise.
16045         * doc/posix-functions/iswalpha_l.texi: Likewise.
16046         * doc/posix-functions/iswblank_l.texi: Likewise.
16047         * doc/posix-functions/iswcntrl_l.texi: Likewise.
16048         * doc/posix-functions/iswctype_l.texi: Likewise.
16049         * doc/posix-functions/iswdigit_l.texi: Likewise.
16050         * doc/posix-functions/iswgraph_l.texi: Likewise.
16051         * doc/posix-functions/iswlower_l.texi: Likewise.
16052         * doc/posix-functions/iswprint_l.texi: Likewise.
16053         * doc/posix-functions/iswpunct_l.texi: Likewise.
16054         * doc/posix-functions/iswspace_l.texi: Likewise.
16055         * doc/posix-functions/iswupper_l.texi: Likewise.
16056         * doc/posix-functions/iswxdigit_l.texi: Likewise.
16057         * doc/posix-functions/isxdigit_l.texi: Likewise.
16058         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
16059         * doc/posix-functions/strcasecmp_l.texi: Likewise.
16060         * doc/posix-functions/strcoll_l.texi: Likewise.
16061         * doc/posix-functions/strfmon_l.texi: Likewise.
16062         * doc/posix-functions/strftime_l.texi: Likewise.
16063         * doc/posix-functions/strncasecmp_l.texi: Likewise.
16064         * doc/posix-functions/strxfrm_l.texi: Likewise.
16065         * doc/posix-functions/tolower_l.texi: Likewise.
16066         * doc/posix-functions/toupper_l.texi: Likewise.
16067         * doc/posix-functions/towctrans_l.texi: Likewise.
16068         * doc/posix-functions/towlower_l.texi: Likewise.
16069         * doc/posix-functions/towupper_l.texi: Likewise.
16070         * doc/posix-functions/wcscoll_l.texi: Likewise.
16071         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16072         * doc/posix-functions/wctrans_l.texi: Likewise.
16073         * doc/posix-functions/wctype_l.texi: Likewise.
16074         * doc/glibc-functions/strptime_l.texi: Likewise.
16075         * doc/glibc-functions/strtod_l.texi: Likewise.
16076         * doc/glibc-functions/strtof_l.texi: Likewise.
16077         * doc/glibc-functions/strtol_l.texi: Likewise.
16078         * doc/glibc-functions/strtold_l.texi: Likewise.
16079         * doc/glibc-functions/strtoll_l.texi: Likewise.
16080         * doc/glibc-functions/strtoul_l.texi: Likewise.
16081         * doc/glibc-functions/strtoull_l.texi: Likewise.
16082         * doc/glibc-functions/wcsftime_l.texi: Likewise.
16083         * doc/glibc-functions/wcstod_l.texi: Likewise.
16084         * doc/glibc-functions/wcstof_l.texi: Likewise.
16085         * doc/glibc-functions/wcstol_l.texi: Likewise.
16086         * doc/glibc-functions/wcstold_l.texi: Likewise.
16087         * doc/glibc-functions/wcstoll_l.texi: Likewise.
16088         * doc/glibc-functions/wcstoul_l.texi: Likewise.
16089         * doc/glibc-functions/wcstoull_l.texi: Likewise.
16090
16091 2009-11-24  Bruno Haible  <bruno@clisp.org>
16092
16093         duplocale: Fix logic bug.
16094         * lib/duplocale.c: Don't include <langinfo.h>.
16095         (_NL_LOCALE_NAME): Remove macro.
16096         (rpl_duplocale): Use setlocale instead of nl_langinfo.
16097         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
16098
16099 2009-11-23  Jim Meyering  <meyering@redhat.com>
16100
16101         test-update-copyright: don't hard-code /usr/bin/perl
16102         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
16103         perl to print the current year.  Gilles Espinasse reported that
16104         the replaced use of perl was hard-coded as /usr/bin/perl.
16105
16106 2009-11-23  Bruno Haible  <bruno@clisp.org>
16107
16108         duplocale: Add support for glibc 2.3.x.
16109         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
16110
16111 2009-11-22  Bruno Haible  <bruno@clisp.org>
16112
16113         vasnprintf: Tiny optimization.
16114         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
16115         MacOS X.
16116
16117 2009-11-22  Bruno Haible  <bruno@clisp.org>
16118
16119         Tests for module 'duplocale'.
16120         * modules/duplocale-tests: New file.
16121         * tests/test-duplocale.c: New file.
16122
16123         New module 'duplocale'.
16124         * m4/duplocale.m4: New file.
16125         * lib/locale.in.h (duplocale): New declaration.
16126         * lib/duplocale.c: New file.
16127         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
16128         gl_LOCALE_H_DEFAULTS): New macros.
16129         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
16130         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
16131         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
16132         REPLACE_DUPLOCALE.
16133         * modules/duplocale: New file.
16134         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
16135
16136 2009-11-22  Bruno Haible  <bruno@clisp.org>
16137
16138         * modules/locale-tests (configure.ac): Test for newlocale function.
16139         * tests/test-locale.c: When the system has extended locale functions,
16140         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
16141
16142         locale: Make locale_t available when possible.
16143         * lib/locale.in.h: Include <xlocale.h> when it exists.
16144         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
16145         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
16146         * modules/locale (Depends-on): Add extensions.
16147         (Makefile.am): Also substitute HAVE_XLOCALE_H.
16148         * doc/posix-headers/locale.texi: Document the problem with locale_t.
16149
16150 2009-11-22  Bruno Haible  <bruno@clisp.org>
16151
16152         Add comments.
16153         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
16154         invocation.
16155         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
16156         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16157         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16158
16159 2009-11-22  Bruno Haible  <bruno@clisp.org>
16160
16161         error: account for the possibility of freopen (stdout).
16162         * lib/error.c: Include <unistd.h>.
16163         (flush_stdout): New function, extracted from error and error_at_line.
16164         Determine stdout's fd dynamically.
16165         (error, error_at_line): Invoke flush_stdout.
16166         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
16167         * modules/error (Depends-on): Add unistd.
16168
16169 2009-11-22  Bruno Haible  <bruno@clisp.org>
16170
16171         diffseq: Add comment.
16172         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
16173
16174 2009-11-22  Jim Meyering  <meyering@redhat.com>
16175
16176         c-stack: avoid defining an unused static function
16177         * lib/c-stack.c (find_stack_direction): Do not define this function
16178         when it will not be used.
16179
16180         diffseq: avoid spurious gcc warnings
16181         * lib/diffseq.h (IF_LINT2): Define.
16182         (compareseq): Use it to initialize two members of "part".
16183         This avoids two used-uninitialized warnings.
16184
16185 2009-11-21  Jim Meyering  <meyering@redhat.com>
16186
16187         c-stack: avoid "ignoring return value of `write'" warning
16188         * lib/c-stack.c: Include "ignore-value.h".
16189         (die): Explicitly ignore each write return value.
16190         * modules/c-stack (Depends-on): Add ignore-value.
16191
16192 2009-11-21  Bruno Haible  <bruno@clisp.org>
16193
16194         diffseq: reduce scope of variable 'best'.
16195         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
16196         variable, earlier used for two different purposes.
16197
16198 2009-11-21  Jim Meyering  <meyering@redhat.com>
16199
16200         diffseq: remove useless assignment to "best"
16201         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
16202         assignment.  At that point "best" is already guaranteed to be zero.
16203
16204 2009-11-20  Eric Blake  <ebb9@byu.net>
16205
16206         build: mention ftp redirector in release announcements
16207         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
16208         values that used to come from cfg.mk; mention FTP redirect URL.
16209         * build-aux/announce-gen: Mention the mirror list.
16210         Suggested by Karl Berry.
16211
16212         nanosleep: improve port to mingw
16213         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
16214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
16215         LIB_NANOSLEEP, but only when needed.
16216         * modules/select (Link): Document LIBSOCKET.
16217         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
16218         enough.
16219
16220         nanosleep: work around cygwin bug
16221         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
16222         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
16223         bug.
16224         (getnow): Delete, not needed.
16225         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
16226         LIB_CLOCK_GETTIME.
16227         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
16228         clock-time, gettime.
16229         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
16230         bug.
16231         * modules/nanosleep-tests: New test.
16232         * tests/test-nanosleep.c: New file.
16233
16234         sleep: work around cygwin bug
16235         * lib/sleep.c (rpl_sleep): Work around the bug.
16236         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
16237         (gl_PREREQ_SLEEP): Delete unused macro.
16238         * modules/sleep (Depends-on): Add verify.
16239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
16240         * modules/unistd (Makefile.am): Substitute witness.
16241         * lib/unistd.in.h (sleep): Update prototype.
16242         * doc/posix-functions/sleep.texi (sleep): Document the bug.
16243         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
16244         * modules/sleep-tests (Depends-on): Check for alarm.
16245
16246 2009-11-20  Jim Meyering  <meyering@redhat.com>
16247
16248         maint.mk: improve sc_prohibit_magic_number_exit
16249         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
16250         so it does not match uses like System.exit(1).
16251         Add comments showing how to correct all offenders.
16252
16253 2009-11-19  Eric Blake  <ebb9@byu.net>
16254
16255         xalloc-die-tests: add missing library
16256         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
16257
16258         test-xvasprintf: silence compiler warnings
16259         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
16260         empty string from gcc.
16261
16262 2009-11-19  Jim Meyering  <meyering@redhat.com>
16263
16264         xfreopen: new module, from coreutils
16265         * modules/xfreopen: New module.
16266         * lib/xfreopen.c: New file.
16267         * lib/xfreopen.h: New file.
16268         * MODULES.html.sh (File stream based Input/Output"): Add it.
16269
16270 2009-11-19  Eric Blake  <ebb9@byu.net>
16271
16272         manywarnings: depend on warnings
16273         * modules/manywarnings (Depends-on): Add warnings.
16274
16275         build: avoid compiler warnings
16276         * lib/select.c (rpl_select): Delete unused variable.
16277         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
16278
16279 2009-11-18  Eric Blake  <ebb9@byu.net>
16280
16281         tests: avoid false negative with --with-packager
16282         * tests/test-version-etc.sh: Discard packager information.
16283         * tests/test-argp-version-etc-1.sh: Likewise.
16284         Reported by Mike Frysinger.
16285
16286         utimens: fix regression on Solaris
16287         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
16288         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
16289         can only change fd timestamps via futimesat.  Instead, use an
16290         additional witness macro to avoid BSD bug.
16291         Reported by Jim Meyering.
16292
16293 2009-11-17  Eric Blake  <ebb9@byu.net>
16294
16295         usleep: use it to simplify tests
16296         * modules/stat-time-tests (Depends-on): Add usleep.
16297         (configure.ac): Drop usleep check.
16298         * modules/chown-tests (Depends-on, configure.ac): Likewise.
16299         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
16300         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
16301         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
16302         * modules/openat-tests (Depends-on, configure.ac): Likewise.
16303         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
16304         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
16305         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
16306         Likewise.
16307         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
16308         * tests/test-lchown.h (nap): Likewise.
16309         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
16310         * tests/test-stat-time.c (nap): Likewise.
16311         * tests/test-utimens-common.h (nap): Update comments.
16312
16313         usleep: new module
16314         * modules/usleep: New file.
16315         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
16316         * lib/usleep.c (usleep): Likewise.
16317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16318         * modules/unistd (Makefile.am): Substitute witnesses.
16319         * lib/unistd.in.h (usleep): Add declaration.
16320         * doc/pastposix-functions/usleep.texi (usleep): Document this.
16321         * MODULES.html.sh (Date and time): Likewise.
16322         * modules/usleep-tests (Depends-on): New test.
16323         * tests/test-usleep.c: New file.
16324
16325         chown: work around OpenBSD bug
16326         * lib/chown.c (rpl_chown): Work around the bug.
16327         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
16328         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
16329         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
16330         * modules/chown (Depends-on): Add stdbool.
16331         * modules/lchown (Depends-on): Likewise.
16332         * doc/posix-functions/chown.texi (chown): Document the bug.
16333         * doc/posix-functions/lchown.texi (lchown): Likewise.
16334         * tests/test-lchown.h (test_chown): Relax test.
16335
16336         mkstemp: avoid conflict with C++ keyword template
16337         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
16338         * lib/mkostemp.c (mkostemp): Likewise.
16339         * lib/mkostemps.c (mkostemps): Likewise.
16340         * lib/mkstemp.c (mkstemp): Likewise.
16341         * lib/mkstemps.c (mkstemps): Likewise.
16342
16343         xalloc-die-tests: optimize
16344         * tests/test-xalloc-die.sh: Reduce number of processes.
16345
16346 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16347
16348         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
16349         patch from ludo@gnu.org (Ludovic Courtès).
16350
16351 2009-11-17  Jim Meyering  <meyering@redhat.com>
16352
16353         version-etc: use proper license string
16354         * modules/version-etc (License): Use LGPL, not LGPLv3+.
16355         * modules/version-etc-fsf: Likewise.
16356
16357 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16358
16359         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
16360         printed to stdout.  Deal with EOL differences.
16361
16362 2009-11-17  Eric Blake  <ebb9@byu.net>
16363
16364         unsetenv: work around Solaris bug
16365         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
16366         * lib/unsetenv.c (rpl_unsetenv): Work around it.
16367         Reported by Jim Meyering.
16368
16369         vasnprintf: avoid compiler warnings
16370         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
16371         variables.
16372         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
16373
16374 2009-11-17  Simon Josefsson  <simon@josefsson.org>
16375
16376         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
16377         settings since xalloc-die is no longer the self test,
16378         xalloc-die.sh is.
16379
16380 2009-11-17  Jim Meyering  <meyering@redhat.com>
16381
16382         test-xalloc-die.sh: make the code agree with the commit log
16383         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
16384         at the end, just in case you happen to have a test-xalloc-die
16385         program in some other PATH directory.
16386
16387         test-xalloc-die.sh: fix a portability bug
16388         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
16389         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
16390         Otherwise, argv[0] (as often seen in diagnostics) would be too
16391         system-dependent, sometimes with, and sometimes without the leading "./".
16392
16393         version-etc-fsf: relax license to LGPLv3+
16394         * modules/version-etc-fsf (License): Relax license.
16395
16396 2009-11-16  Eric Blake  <ebb9@byu.net>
16397
16398         xalloc-die-tests: avoid printing null pointer
16399         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
16400         shell script.
16401         * tests/test-xalloc-die.c (program_name): Declare.
16402         * tests/test-xalloc-die.sh (tmpfiles): New file.
16403
16404         setenv, unsetenv: work around various bugs
16405         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
16406         (setenv) [HAVE_SETENV]: Work around bugs.
16407         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
16408         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
16409         for bugs.
16410         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
16411         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
16412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
16413         * modules/stdlib (Makefile.am): Update substitutions.
16414         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
16415         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
16416         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
16417         * modules/setenv-tests: New test.
16418         * modules/unsetenv-tests: Likewise.
16419         * tests/test-setenv.c: New file.
16420         * tests/test-unsetenv.c: Likewise.
16421
16422 2009-11-16  Jim Meyering  <meyering@redhat.com>
16423
16424         version-etc: relax license to LGPLv3+
16425         * modules/version-etc (License): Relax license.
16426
16427         better AC_REQUIRE expanded-before-required-warning avoidance
16428         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
16429         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
16430         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
16431         which is no longer needed.
16432
16433 2009-11-16  Eric Blake  <ebb9@byu.net>
16434
16435         test-freading: clean up temporary file
16436         * tests/test-freading.c (main): Remove file on success, and use
16437         ASSERT more liberally.
16438         Reported by Jim Meyering.
16439
16440 2009-11-16  Jim Meyering  <meyering@redhat.com>
16441
16442         avoid new AC_REQUIRE expanded-before-required warnings
16443         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
16444         merely using it.
16445         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
16446         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
16447
16448 2009-11-15  Simon Josefsson  <simon@josefsson.org>
16449
16450         * tests/test-xalloc-die.c: New file.
16451         * modules/xalloc-die-tests: New file.
16452         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
16453         XFAIL_TESTS so it can be appended by modules.
16454
16455 2009-11-15  Simon Josefsson  <simon@josefsson.org>
16456
16457         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
16458         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
16459
16460 2009-11-14  Eric Blake  <ebb9@byu.net>
16461
16462         fnmatch: avoid compiler warning
16463         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
16464         to silence compiler warning about mismatch signedness in ?:.
16465         Reported by Robert Millan.
16466
16467         intprops: add double-inclusion guard
16468         * lib/intprops.h: Allow idempotent includes.
16469         Suggested by Bruce Korb.
16470
16471         openat: detect Solaris fchownat bug
16472         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
16473         penalizing glibc chownat when only lchownat is broken.
16474         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
16475         trailing slash bugs.
16476         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
16477         * modules/openat-tests (Files): Include more files.
16478         (Depends-on): Add mgetgroups, sleep, stat-time.
16479         (configure.ac): Add additional checks.
16480         (Makefile.am): Build new test.
16481         * tests/test-fchownat.c: New file.
16482
16483         lchown: detect Solaris and FreeBSD bug
16484         * lib/lchown.c (rpl_lchown): Work around bug.
16485         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
16486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16487         * modules/unistd (Makefile.am): Populate it.
16488         * lib/unistd.in.h (lchown): Update declaration.
16489         * doc/posix-functions/lchown.texi (lchown): Document the bug.
16490         * modules/lchown-tests: New file.
16491         * tests/test-lchown.h (test_lchown): Likewise.
16492         * tests/test-lchown.c (main): Likewise.
16493
16494         chown: detect Solaris and FreeBSD bug
16495         * lib/chown.c (rpl_chown): Work around bug.
16496         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
16497         (gl_PREREQ_CHOWN): Delete.
16498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16499         * modules/unistd (Makefile.am): Populate it.
16500         * lib/unistd.in.h (chown): Update declaration.
16501         * lib/lchown.c (chown): Update client.
16502         * modules/lchown (Depends-on): Add lstat.
16503         * doc/posix-functions/chown.texi (chown): Document the bug.
16504         * doc/posix-functions/getgroups.texi (getgroups): Document
16505         getgroups pitfall.
16506         * modules/chown-tests: New file.
16507         * tests/test-chown.h (test_chown): Likewise.
16508         * tests/test-chown.c (main): Likewise.
16509
16510 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
16511
16512         gnulib-tool: correctly detect absence of m4 directories
16513         * gnulib-tool: Avoid extra newline on data passed to wc -l.
16514
16515 2009-11-14  Jim Meyering  <meyering@redhat.com>
16516
16517         maint.mk: Prohibit inclusion of "xalloc.h" without use.
16518         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
16519
16520 2009-11-14  John W. Eaton  <jwe@gnu.org>
16521
16522         strftime.h: wrap funtion declaration in extern "C" block
16523         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
16524
16525 2009-11-13  Eric Blake  <ebb9@byu.net>
16526
16527         getgroups: avoid compiler warning
16528         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
16529
16530         getgroups: work around FreeBSD bug
16531         * lib/getgroups.c (rpl_getgroups): Work around the bug.
16532         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
16533         * doc/posix-functions/getgroups.texi (getgroups): Document it.
16534         * tests/test-getgroups.c (main): Fix buffer overrun.
16535
16536         getgroups: avoid compilation failure
16537         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
16538         * modules/getgroups (Depends-on): Add stdint.
16539
16540 2009-11-13  Jim Meyering  <meyering@redhat.com>
16541
16542         test-getgroups: avoid compilation failure
16543         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
16544
16545 2009-11-13  Eric Blake  <ebb9@byu.net>
16546
16547         mgetgroups: new module, taken from coreutils
16548         * modules/mgetgroups: New file.
16549         * lib/mgetgroups.h: Likewise.
16550         * lib/mgetgroups.c (mgetgroups): Likewise.
16551         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
16552         * MODULES.html.sh (Users and groups): Mention it.
16553
16554         getgroups: don't expose GETGROUPS_T to user
16555         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
16556         an element at a time if GETGROUPS_T is wrong size.
16557         * lib/getugroups.h (getugroups): Change signature.
16558         * lib/unistd.in.h (getgroups): Likewise.
16559         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
16560         signature needs fixing.
16561         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
16562         AC_TYPE_GETGROUPS.
16563         * modules/group-member (Depends-on): Add getgroups.
16564         * lib/group-member.c (group_info, get_group_info): Use gid_t.
16565         (group_member): Rely on getgroups replacement.
16566         * lib/getugroups.c (getugroups): Use gid_t.
16567         * tests/test-getgroups.c (main): Likewise.
16568         * NEWS: Mention the signature change.
16569         * doc/posix-functions/getgroups.texi (getgroups): Mention the
16570         problem with signature.
16571         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
16572         GETGROUPS_T is still useful for setgroups.
16573
16574         getgroups, getugroups: provide stubs for mingw
16575         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
16576         * lib/getugroups.c (getugroups): Likewise.
16577         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
16578         function.  Modernize replacement scheme.
16579         (gl_PREREQ_GETGROUPS): Delete.
16580         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
16581         * modules/getgroups (configure.ac): Declare witness.
16582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
16583         * modules/unistd (Depends-on): Substitute witness.
16584         * lib/unistd.in.h (getgroups): Declare replacement.
16585
16586         getgroups: avoid calling exit
16587         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
16588         drop xalloc.
16589         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
16590         dependencies.
16591         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
16592         exiting, in the rare case of malloc failure.
16593
16594         getgroups: fix logic error
16595         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
16596         has more than 20 groups.
16597         * modules/getgroups-tests: New test.
16598         * tests/test-getgroups.c: New file.
16599
16600 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16601
16602         * tests/test-base64.c: Improve.
16603
16604 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16605
16606         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
16607         Blake <ebb9@byu.net>.
16608
16609 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16610
16611         * tests/test-xvasprintf.c: Add %s%s related checks.
16612
16613 2009-11-12  Eric Blake  <ebb9@byu.net>
16614
16615         version-etc: match standards.texi style
16616         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
16617         and use <> only for URLs.
16618
16619 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
16620
16621         fts: do not fail on a submount during traversal
16622         * lib/fts.c (fts_build): Read the stat info again after opening
16623         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
16624         Original report at http://bugzilla.redhat.com/501848.
16625
16626 2009-11-12  Jim Meyering  <meyering@redhat.com>
16627
16628         bootstrap: sync from coreutils
16629         * build-aux/bootstrap (bootstrap_epilogue): New function.
16630         Use git_modules_config in one more place.  This make bootstrap's
16631         --gnulib-srcdir option more useful for testing.
16632
16633         bootstrap: generalize autoheader check
16634         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
16635         AC_CONFIG_HEADERS.
16636
16637 2009-11-11  Eric Blake  <ebb9@byu.net>
16638
16639         mkfifoat: use new modules for Solaris and BSD bugs
16640         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
16641         * lib/mkfifoat.c (mknodat): Split...
16642         * lib/mknodat.c (mknodat): ...into new file.
16643         * modules/mkfifoat (Files): Ship new file.
16644         (Depends-on): Add mkfifo, mknod.
16645         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
16646         (Depends-on): Add symlink.
16647         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
16648         redundant with test_mkfifo.h.
16649         (do_mkfifoat, do_mknodat): New helpers.
16650
16651         mknod: new module
16652         * modules/mknod: New file.
16653         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
16654         * lib/mknod.c (mknod): Likewise.
16655         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16656         defaults.
16657         * modules/sys_stat (Makefile.am): Substitute them.
16658         * lib/sys_stat.in.h (mknod): Declare replacement.
16659         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16660         Document it.
16661         * doc/posix-functions/mknod.texi (mknod): Likewise.
16662         * modules/mknod-tests: New test.
16663         * tests/test-mknod.c: Likewise.
16664
16665         mkfifo: new module
16666         * modules/mkfifo: New file.
16667         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16668         * lib/mkfifo.c (mkfifo): Likewise.
16669         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16670         defaults.
16671         * modules/sys_stat (Makefile.am): Substitute them.
16672         * lib/sys_stat.in.h (mkfifo): Declare replacement.
16673         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16674         Document it.
16675         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
16676         * modules/mkfifo-tests: New test.
16677         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
16678         from test-mkfifoat.c.
16679         * tests/test-mkfifo.c: New file.
16680
16681         readlink: detect FreeBSD bug
16682         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
16683         slash on symlink.
16684         * doc/posix-functions/readlink.texi (readlink): Document the bug.
16685         * tests/test-readlink.h (test_readlink): Enhance test.
16686
16687         symlink: detect FreeBSD bug
16688         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
16689         slash on symlink.
16690         * doc/posix-functions/symlink.texi (symlink): Document the bug.
16691         * tests/test-symlink.h (test_symlink): Enhance test.
16692
16693 2009-11-10  Eric Blake  <ebb9@byu.net>
16694
16695         link: detect FreeBSD bug
16696         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
16697         symlink.
16698         * doc/posix-functions/link.texi (link): Document the bug.
16699         * tests/test-link.h (test_link): Enhance test.
16700         * tests/test-linkat.c (main): Update caller.
16701
16702         unlink, remove: detect FreeBSD bug
16703         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
16704         slash on symlink.
16705         * doc/posix-functions/unlink.texi (unlink): Document the bug.
16706         * doc/posix-functions/remove.texi (remove): Likewise.
16707         * tests/test-unlink.h (test_unlink): Enhance test.
16708         * tests/test-remove.c (main): Likewise.
16709
16710 2009-11-09  Eric Blake  <ebb9@byu.net>
16711
16712         rename: detect FreeBSD bug
16713         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
16714         slash on symlink.
16715         * modules/renameat-tests (Depends-on): Add filenamecat.
16716         * tests/test-rename.h (test_rename): Allow one more errno.
16717         * tests/test-renameat.c (main): Likewise.
16718         * doc/posix-functions/rename.texi (rename): Document the bug.
16719
16720         open: detect FreeBSD bug
16721         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
16722         symlink.
16723         * doc/posix-functions/open.texi (open): Document the bug.
16724         * doc/posix-functions/utimes.texi (utimes): Likewise.
16725         * tests/test-open.h (test_open): Add parameters, and test symlink
16726         handling.
16727         * tests/test-open.c (main): Adjust caller.
16728         * tests/test-fcntl-safer.c (main): Likewise.
16729         * modules/open-tests (Depends-on): Add stdbool, symlink.
16730         * modules/fcntl-safer-tests (Depends-on): Likewise.
16731         * tests/test-openat.c (main): Add test-open tests.
16732
16733         stat: detect FreeBSD bug
16734         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
16735         symlink.
16736         * doc/posix-functions/stat.texi (stat): Document the bug.
16737         * tests/test-stat.h (test_stat_func): Add argument.
16738         * tests/test-stat.c (main): Adjust caller.
16739         * tests/test-fstatat.c (main): Likewise.
16740         * modules/stat-tests (Depends-on): Add stdbool, symlink.
16741         Reported by Jim Meyering.
16742
16743 2009-11-09  James Youngman  <jay@gnu.org>
16744
16745         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
16746         * lib/strftime.c: Correct placement of #include "ignore-value.h".
16747
16748 2009-11-08  Jim Meyering  <meyering@redhat.com>
16749
16750         utimens: remove invalid futimesat call
16751         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
16752         It used the file descriptor of the target file as the DIR_FD
16753         parameter and NULL as the file name.  That caused failure with
16754         errno == EFAULT on FreeBSD-8.0-rc2
16755
16756 2009-11-07  Eric Blake  <ebb9@byu.net>
16757
16758         fflush, freadseek: use fseeko, not fseek
16759         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16760         (clear_ungetc_buffer): Avoid potential problems on large files.
16761         * lib/freadseek.c (freadseek): Likewise.
16762         * modules/freadseek (Depends-on): Add fseeko.
16763         * modules/fseek (configure.ac): Set a witness.
16764         * tests/test-fflush.c (main): Use fseeko.
16765         * tests/test-fpurge.c (fseek): Disable link warning.
16766         * tests/test-freadable.c (fseek): Likewise.
16767         * tests/test-freading.c (fseek): Likewise.
16768         * tests/test-fseeko.c (fseek): Likewise.
16769         * tests/test-ftell.c (fseek): Likewise.
16770         * tests/test-ftello.c (fseek): Likewise.
16771         * tests/test-fwritable.c (fseek): Likewise.
16772         * tests/test-fwriting.c (fseek): Likewise.
16773
16774 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16775
16776         * modules/memchr (Depends-on): Drop getpagesize dependency.
16777
16778 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16779
16780         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
16781         Reported by Ludovic Courtès.
16782         * build-aux/pmccabe2html: Improve example usage.
16783         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
16784
16785 2009-11-06  Jim Meyering  <meyering@redhat.com>
16786
16787         do-release-commit-and-tag: New module.
16788         Automate the release-commit and tag process.
16789         * build-aux/do-release-commit-and-tag: New script, from coreutils.
16790         * modules/do-release-commit-and-tag: New file.
16791         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16792
16793 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16794
16795         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
16796         because test-select.c uses inet_pton.
16797
16798 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16799
16800         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
16801         GETADDRINFO_LIB.  Bump serial number.
16802         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
16803         Suggested by Eric Blake <ebb9@byu.net>.
16804
16805 2009-11-05  Eric Blake  <ebb9@byu.net>
16806
16807         strtod: detect darwin bug
16808         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
16809         Reported by Leo Davis.
16810
16811         freopen-safer: new module
16812         * modules/freopen-safer: New module.
16813         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
16814         * lib/freopen-safer.c (freopen_safer): New file.
16815         * lib/stdio-safer.h (freopen_safer): New declaration.
16816         * lib/stdio--.h (freopen): New override.
16817         * MODULES.html.sh (File stream based Input/Output): Mention it.
16818         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
16819         freopen-safer module.
16820         * doc/posix-functions/stderr.texi (stderr): Likewise.
16821         * doc/posix-functions/stdin.texi (stdin): Likewise.
16822         * doc/posix-functions/stdout.texi (stdout): Likewise.
16823         * modules/freopen-safer-tests: New test.
16824         * tests/test-reopen-safer.c: New file.
16825
16826 2009-11-05  Jim Meyering  <meyering@redhat.com>
16827
16828         maint.mk: Prohibit inclusion of "close-stream.h" without use.
16829         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
16830
16831 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16832
16833         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
16834
16835 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16836
16837         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
16838
16839 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16840
16841         Fix link error.
16842         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16843         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16844
16845 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16846
16847         * tests/test-func.c: Also test value of __func__.
16848
16849 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16850
16851         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
16852         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
16853
16854 2009-11-05  Bruno Haible  <bruno@clisp.org>
16855
16856         Fix link error.
16857         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16858         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16859         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
16860
16861 2009-11-05  Bruno Haible  <bruno@clisp.org>
16862
16863         Tests for module 'inet_pton'.
16864         * modules/inet_pton-tests: New file.
16865         * tests/test-inet_pton.c: New file.
16866
16867 2009-11-05  Bruno Haible  <bruno@clisp.org>
16868
16869         Tests for module 'inet_ntop'.
16870         * modules/inet_ntop-tests: New file.
16871         * tests/test-inet_ntop.c: New file.
16872
16873 2009-11-04  Eric Blake  <ebb9@byu.net>
16874
16875         stdlib-safer: wrap all mkstemp variants
16876         * modules/mkostemp (configure.ac): Set witness.
16877         * modules/mkostemps (configure.ac): Likewise.
16878         * modules/mkstemps (configure.ac): Likewise.
16879         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
16880         (mkstemps_safer): Wrap more functions.
16881         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
16882         wrapping.
16883         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
16884         (mkstemps_safer): Implement the wrappers.
16885
16886         mkstemps, mkostemps: new modules
16887         * modules/mkostemps: New module.
16888         * modules/mkstemps: Likewise.
16889         * lib/mkostemps.c (mkostemps): New file.
16890         * lib/mkstemps.c (mkstemps): Likewise.
16891         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
16892         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
16893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
16894         * modules/stdlib (Makefile.am): Substitute them.
16895         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
16896         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
16897         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16898         * doc/gnulib.texi (Glibc stdlib.h): Include them.
16899         * MODULES.html.sh (File system functions): Mention them.
16900
16901         tempname: resync from glibc
16902         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
16903         same values for __GT_FILE as glibc.  Abort even when assertions
16904         are disabled.
16905         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
16906         match its value otherwise.  Allow idempotent inclusion.
16907         * lib/mkdtemp.c (mkdtemp): Adjust caller.
16908         * lib/mkostemp.c (mkostemp): Likewise.
16909         * lib/mkstemp.c (mkstemp): Likewise.
16910         * lib/tmpfile.c (tmpfile): Likewise.
16911         * NEWS: Document this.
16912
16913         utimens: fix use of futimens on older Linux
16914         * lib/utimens.c (fdutimens): Use updated, rather than original,
16915         timespec to avoid bug in older Linux kernel.
16916         Reported by Simon Josefsson.
16917
16918 2009-11-04  Bruno Haible  <bruno@clisp.org>
16919
16920         Make num_processors more flexible and consistent.
16921         * lib/nproc.h (enum nproc_query): New type.
16922         (num_processors): Add a 'query' argument.
16923         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
16924         (num_processors): Add a 'query' argument. Test the value of the
16925         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
16926         mingw, count the number of CPUs available for the current process.
16927         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
16928         Check for sched_getaffinity and sched_getaffinity_np.
16929         * modules/nproc (Depends-on): Add c-ctype, extensions.
16930         * NEWS: Mention the change.
16931
16932 2009-11-03  Bruno Haible  <bruno@clisp.org>
16933
16934         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
16935
16936 2009-11-03  Jim Meyering  <meyering@redhat.com>
16937
16938         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
16939         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
16940         if it is defined.
16941
16942 2009-11-02  Eric Blake  <ebb9@byu.net>
16943
16944         mktime, timegm: share common declaration
16945         * lib/mktime-internal.h: New file.
16946         * lib/mktime.c: Use it rather than open-coding a declaration.
16947         * lib/timegm.c: Likewise.
16948         * modules/mktime (Files): Ship it.
16949         * modules/timegm (Files): Likewise.
16950         Suggested by Bruno Haible.
16951
16952         test-update-copyright: update test to match script changes
16953         * tests/test-update-copyright.sh: Avoid hard-coding perl
16954         location.  Don't update *.bak created by earlier runs.
16955
16956 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16957             Simon Josefsson  <simon@josefsson.org>
16958             Bruno Haible  <bruno@clisp.org>
16959
16960         Fix link error on Solaris 8.
16961         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
16962         also in libnsl. Define also INET_PTON_LIB.
16963         * modules/inet_pton (Link): New section.
16964
16965 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16966             Bruno Haible  <bruno@clisp.org>
16967
16968         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
16969         * modules/inet_ntop (Link): New section.
16970         Reported by Boyan Kasarov <bkasarov@gmail.com>.
16971
16972 2009-11-02  Eric Blake  <ebb9@byu.net>
16973
16974         maint: avoid compiler warnings in m4 macros
16975         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
16976         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
16977
16978 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16979
16980         * m4/pmccabe2html.m4: Remove file.
16981         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
16982         function.  Change maintainer.
16983         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
16984         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
16985         Courtès).
16986
16987 2009-10-31  Eric Blake  <ebb9@byu.net>
16988
16989         fseeko: fix m4 regression
16990         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
16991         regression from 2009-10-27.
16992         Reported by Ralf Wildenhues.
16993
16994 2009-10-31  Jim Meyering  <meyering@redhat.com>
16995
16996         inttostr: aesthetics and improved (compile-time) safety
16997         Define inttype_is_signed rather than inttype_is_unsigned,
16998         since the sole use is via "#if inttype_is_signed".
16999         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
17000         inttype_is_unsigned.
17001         * lib/offtostr.c (inttype_is_signed): Likewise.
17002         * lib/uinttostr.c (inttype_is_signed): Likewise.
17003         * lib/umaxtostr.c (inttype_is_signed): Likewise.
17004         * lib/inttostr.c (inttostr): Use verify to cross-check the
17005         inttype_is_signed value and the signedness of the actual type.
17006         * modules/inttostr (Depends-on): Add verify.
17007
17008 2009-10-30  Eric Blake  <ebb9@byu.net>
17009
17010         build: avoid compiler warnings
17011         * lib/fchmodat.c (lchmod): Mark unused variables.
17012         * lib/getopt.c (_getopt_initialize): Likewise.
17013         * lib/mktime.c (__mktime_internal): Provide prototype.
17014         * lib/inttostr.c (inttostr): Avoid compiler warning even with
17015         older gcc that do not understand #pragma GCC diagnostic.
17016         * lib/uinttostr.c (inttype_is_unsigned): Define.
17017         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
17018
17019 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
17020
17021         stat: fix compilation on AIX
17022         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
17023         only see struct stat64.
17024
17025 2009-10-30  Eric Blake  <ebb9@byu.net>
17026
17027         exclude: make more robust
17028         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
17029         rather than masking a coding bug.
17030         Suggested by Bruno Haible.
17031
17032 2009-10-30  Jim Meyering  <meyering@redhat.com>
17033
17034         perl scripts: remove #!/usr/bin/perl in favor of more portable...
17035         Rather than putting #!/usr/bin/perl on the first line,
17036         start with a variant of what's recommended by "man perlrun" that
17037         invokes the first "perl" program from your shell's search path.
17038         * build-aux/gitlog-to-changelog: Replace #!... as above.
17039         Add a "Local Variables" perl mode setting.
17040         Prompted by a patch from Ludovic Courtès.
17041         Improved by Eric Blake.
17042         * build-aux/useless-if-before-free: Likewise.
17043         * build-aux/announce-gen: Likewise.
17044         * build-aux/update-copyright: Likewise.
17045
17046 2009-10-29  Eric Blake  <ebb9@byu.net>
17047
17048         filenamecat-lgpl: adjust clients
17049         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
17050         filenamecat.
17051         * modules/renameat (Depends-on): Likewise.
17052
17053         filenamecat: split into filenamecat-lgpl
17054         * modules/filenamecat-lgpl: New module.
17055         * modules/filenamecat (Files): Move library-safe files into
17056         filenamecat-lgpl.
17057         (Depends-on): Add filenamecat-lgpl.
17058         (configure.ac): Declare witness.
17059         * lib/filenamecat.h (file_name_concat): Only declare when using
17060         GPL module.
17061         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
17062         Move...
17063         * lib/filenamecat-lgpl.c: ...into new file.
17064         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
17065         (gl_FILE_NAME_CONCAT): Use it.
17066         * MODULES.html.sh (File system functions): Mention new module.
17067
17068         argp: avoid memory leak
17069         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
17070         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
17071         base_name, since the latter malloc()s and can call exit().
17072         Leak introduced 2006-07-03.
17073
17074         dirname-lgpl: adjust clients that don't need full dirname
17075         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
17076         * modules/filenamecat (Depends-on): Likewise.
17077         * modules/linkat (Depends-on): Likewise.
17078         * modules/mkancesdirs (Depends-on): Likewise.
17079         * modules/mkdir (Depends-on): Likewise.
17080         * modules/openat (Depends-on): Likewise.
17081         * modules/savewd (Depends-on): Likewise.
17082         * modules/rename (Depends-on): Likewise.
17083         (License): Relax license.
17084         * modules/mkdir-tests (Depends-on): Drop progname.
17085         (Makefile.am): Delete unneeded LDADD.
17086         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
17087
17088         dirname: split into dirname-lgpl
17089         * modules/dirname-lgpl: New module.
17090         * modules/dirname (Files): Move library-safe files into
17091         dirname-lgpl.
17092         (Depends-on): Add dirname-lgpl.
17093         (configure.ac): Declare witness.
17094         * modules/double-slash-root (License): Relax license.
17095         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
17096         module.
17097         * lib/dirname.c (dir_len, mdir_name): Move...
17098         * lib/dirname-lgpl.c: ...into new file.
17099         * lib/basename.c (last_component, base_len): Move...
17100         * lib/basename-lgpl.c: ...into new file.
17101         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
17102         (gl_DIRNAME): Use it.
17103         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
17104         Mention new module.
17105         * modules/dirname-tests (Depends-on): Add progname.
17106         * tests/test-dirname.c (program_name): Delete.
17107
17108         mkdir: make safe for libraries
17109         * modules/mkdir (Depends-on): Drop xalloc.
17110         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
17111         exit.
17112
17113         tests: avoid some compiler warnings
17114         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
17115         literals.
17116         * tests/test-memchr.c (main): Avoid type mismatch.
17117         * tests/test-arpa_inet.c (main): Avoid unused parameters.
17118         * tests/test-base64.c (main): Likewise.
17119         * tests/test-getdelim.c (main): Likewise.
17120         * tests/test-gethostname.c (main): Likewise.
17121         * tests/test-getline.c (main): Likewise.
17122         * tests/test-netinet_in.c (main): Likewise.
17123         * tests/test-select.c (open_server_socket, main): Likewise.
17124         * tests/test-select-stdin.c (main): Likewise.
17125         * tests/test-sockets.c (main): Likewise.
17126         * tests/test-strsignal.c (main): Likewise.
17127         * tests/test-sys_select.c (main): Likewise.
17128         * tests/test-sys_socket.c (main): Likewise.
17129         * tests/test-u64.c (main): Likewise.
17130         * tests/test-xfprintf-posix.c (main): Likewise.
17131         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
17132
17133         sockets: avoid compiler warning
17134         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
17135
17136         maint: detect usage(1) and other suspicious exits
17137         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
17138
17139 2009-10-29  Jim Meyering  <meyering@redhat.com>
17140
17141         timespec: long-to-int truncation could make timespec_cmp malfunction
17142         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
17143         a multiple of 2^32 nanoseconds as no difference.
17144
17145 2009-10-28  Jim Meyering  <meyering@redhat.com>
17146
17147         fprintftime: wrap macro code argument in "do {...} while(0)"
17148         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
17149         cpy macro must be a statement that can be followed by a semicolon.
17150         Now that the else clause contains a comment and is hence longer
17151         than one line, I require curly braces.  That in turn requires
17152         that we wrap this code block in the standard do...while(0).
17153
17154         fprintftime: remove stray semicolon from previous change
17155         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
17156
17157         fprintftime: avoid a warning about ignored fwrite return value
17158         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
17159         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
17160         that is unsafe.
17161         * modules/fprintftime (Depends-on): Add ignore-value.
17162
17163         exclude: avoid an unwarranted warning
17164         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
17165
17166 2009-10-27  Eric Blake  <ebb9@byu.net>
17167
17168         fseek: avoid compilation failure when fflush is replaced
17169         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
17170         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
17171         module is in use.
17172         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
17173         module is not in use; since REPLACE_FSEEK worked otherwise.
17174         (GNULIB_FTELLO): Likewise for ftell.
17175         Reported by Ian Beckwith and others.
17176
17177 2009-10-27  Bruno Haible  <bruno@clisp.org>
17178
17179         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
17180         Reported by Jim Meyering.
17181
17182 2009-10-27  Jim Meyering  <jim@meyering.net>
17183             Bruno Haible  <bruno@clisp.org>
17184
17185         Avoid warning despite dropping the return value of fwrite.
17186         * lib/unicodeio.c: Include ignore-value.h.
17187         (fwrite_success_callback): Explicitly ignore fwrite's return value.
17188         * modules/unicodeio (Depends-on): Add ignore-value.
17189
17190 2009-10-26  Eric Blake  <ebb9@byu.net>
17191
17192         areadlinkat: fix fallback path
17193         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
17194         pointer and zero.
17195
17196 2009-10-22  Pádraig Brady  <P@draigBrady.com>
17197
17198         Use a better IO block size for modern systems
17199         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
17200         * lib/md2.c: Likewise.
17201         * lib/md4.c: Likewise.
17202         * lib/md5.c: Likewise.
17203         * lib/sha1.c: Likewise.
17204         * lib/sha256.c: Likewise.
17205         * lib/sha512.c: Likewise.
17206
17207 2009-10-22  Eric Blake  <ebb9@byu.net>
17208
17209         tests: avoid several compiler warnings
17210         * tests/test-getcwd.c (main): Avoid buffer underflow.
17211         * tests/test-getdate.c (main): String literals are not safe with
17212         putenv, so use setenv.  Declare unused argument.
17213         * modules/getdate-tests (Depends-on): Add setenv.
17214         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
17215         problems with string literals in char *.
17216         * tests/test-hash.c (main): Avoid shadowing declaration.
17217         (insert_new): Treat string literals as char const *.
17218         * tests/test-getopt.h (test_getopt): Likewise.
17219         (getopt_loop): Alter types to minimize casting elsewhere.
17220         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
17221         (test_getopt_long_posix): Likewise.
17222         (do_getopt_long): Add wrapper to minimize casting.
17223         * tests/test-atexit.c (clear_temp_file): Use void.
17224         * tests/test-areadlink-with-size.c (main): Declare unused
17225         arguments.
17226         * tests/test-areadlink.c (main): Likewise.
17227         * tests/test-areadlinkat-with-size.c (main): Likewise.
17228         * tests/test-areadlinkat.c (main): Likewise.
17229         * tests/test-canonicalize-lgpl.c (main): Likewise.
17230         * tests/test-canonicalize.c (main): Likewise.
17231         * tests/test-dirent-safer.c (main): Likewise.
17232         * tests/test-dirname.c (main): Likewise.
17233         * tests/test-dup2.c (main): Likewise.
17234         * tests/test-fchdir.c (main): Likewise.
17235         * tests/test-fcntl-h.c (main): Likewise.
17236         * tests/test-fcntl-safer.c (main): Likewise.
17237         * tests/test-fdopendir.c (main): Likewise.
17238         * tests/test-fdutimensat.c (main): Likewise.
17239         * tests/test-fflush.c (main): Likewise.
17240         * tests/test-filenamecat.c (main): Likewise.
17241         * tests/test-filevercmp.c (main): Likewise.
17242         * tests/test-fopen-safer.c (main): Likewise.
17243         * tests/test-fopen.c (main): Likewise.
17244         * tests/test-fpending.c (main): Likewise.
17245         * tests/test-fpurge.c (main): Likewise.
17246         * tests/test-freading.c (main): Likewise.
17247         * tests/test-fstatat.c (main): Likewise.
17248         * tests/test-fsync.c (main): Likewise.
17249         * tests/test-futimens.c (main): Likewise.
17250         * tests/test-getndelim2.c (main): Likewise.
17251         * tests/test-gettimeofday.c (main): Likewise.
17252         * tests/test-getopt.c (main): Likewise.
17253         * tests/test-i-ring.c (main): Likewise.
17254         * tests/test-inttypes.c (main): Likewise.
17255         * tests/test-link.c (main): Likewise.
17256         * tests/test-lstat.c (main): Likewise.
17257         * tests/test-math.c (main): Likewise.
17258         * tests/test-md5.c (main): Likewise.
17259         * tests/test-memchr2.c (main): Likewise.
17260         * tests/test-memrchr.c (main): Likewise.
17261         * tests/test-mkdir.c (main): Likewise.
17262         * tests/test-mkdirat.c (main): Likewise.
17263         * tests/test-mkfifoat.c (main): Likewise.
17264         * tests/test-open.c (main): Likewise.
17265         * tests/test-openat-safer.c (main): Likewise.
17266         * tests/test-openat.c (main): Likewise.
17267         * tests/test-quotearg.c (main): Likewise.
17268         * tests/test-rawmemchr.c (main): Likewise.
17269         * tests/test-readlink.c (main): Likewise.
17270         * tests/test-remove.c (main): Likewise.
17271         * tests/test-rename.c (main): Likewise.
17272         * tests/test-renameat.c (main): Likewise.
17273         * tests/test-rmdir.c (main): Likewise.
17274         * tests/test-sha1.c (main): Likewise.
17275         * tests/test-signal.c (main): Likewise.
17276         * tests/test-sigaction.c (main): Likewise.
17277         * tests/test-stat.c (main): Likewise.
17278         * tests/test-stat-time.c (main): Likewise.
17279         * tests/test-stddef.c (main): Likewise.
17280         * tests/test-stdint.c (main): Likewise.
17281         * tests/test-stdio.c (main): Likewise.
17282         * tests/test-stdlib.c (main): Likewise.
17283         * tests/test-strchrnul.c (main): Likewise.
17284         * tests/test-strerror.c (main): Likewise.
17285         * tests/test-string.c (main): Likewise.
17286         * tests/test-strtod.c (main): Likewise.
17287         * tests/test-strverscmp.c (main): Likewise.
17288         * tests/test-symlink.c (main): Likewise.
17289         * tests/test-symlinkat.c (main): Likewise.
17290         * tests/test-sys_stat.c (main): Likewise.
17291         * tests/test-sys_time.c (main): Likewise.
17292         * tests/test-time.c (main): Likewise.
17293         * tests/test-unistd.c (main): Likewise.
17294         * tests/test-unlink.c (main): Likewise.
17295         * tests/test-unlinkat.c (main): Likewise.
17296         * tests/test-utimens.c (main): Likewise.
17297         * tests/test-utimensat.c (main): Likewise.
17298         * tests/test-version-etc.c (main): Likewise.
17299         * tests/test-wchar.c (main): Likewise.
17300         * tests/test-wctype.c (main): Likewise.
17301         * tests/test-xprintf-posix.c (main): Likewise.
17302         * tests/test-posixtm.c (main): Likewise.
17303         (STREQ): Delete unused macro.
17304         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
17305         shadowed variables.
17306         * tests/test-memchr.c (main): Likewise.
17307
17308 2009-10-21  Eric Blake  <ebb9@byu.net>
17309
17310         areadlinkat: avoid failure on older glibc
17311         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
17312         rather than mis-comparing 0 against FUNC_RESULT of char*.
17313
17314 2009-10-21  Bruno Haible  <bruno@clisp.org>
17315
17316         * modules/stpncpy (License): Relicense under LGPLv2+.
17317         Reported by David Lutterkort <lutter@redhat.com>.
17318
17319 2009-10-20  Eric Blake  <ebb9@byu.net>
17320
17321         utimensat: work around Solaris 9 bug
17322         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
17323         has trailing slash bugs.
17324         * tests/test-lutimens.h (test_lutimens): Enhance test.
17325         * tests/test-utimens.h (test_utimens): Likewise.
17326         * doc/posix-functions/utime.texi (utime): Enhance documentation.
17327         * doc/posix-functions/utimes.texi (utimes): Likewise.
17328         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17329         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
17330         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
17331         * doc/posix-functions/futimens.texi (futimens): Likewise.
17332
17333         fdutimensat: new module
17334         * modules/fdutimensat: New file.
17335         * lib/fdutimensat.c (fdutimensat): Likewise.
17336         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
17337         * MODULES.html.sh (File system functions): Mention module.
17338         * modules/fdutimensat-tests: New test.
17339         * tests/test-fdutimensat.c: Likewise.
17340
17341         doc: regenerate INSTALL
17342         * doc/INSTALL: Reflect recent autoconf update.
17343         * doc/INSTALL.ISO: Likewise.
17344         * doc/INSTALL.UTF-8: Likewise.
17345
17346 2009-10-20  Pádraig Brady  <P@draigBrady.com>
17347
17348         acl: warn if ACL support is not detected
17349         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
17350
17351 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
17352
17353         * lib/nproc.h: Add extern "C" block for C++.
17354
17355 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
17356             Bruno Haible  <bruno@clisp.org>
17357
17358         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
17359         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
17360         * doc/posix-functions/isalpha.texi: Likewise.
17361         * doc/posix-functions/isblank.texi: Likewise.
17362         * doc/posix-functions/iscntrl.texi: Likewise.
17363         * doc/posix-functions/isdigit.texi: Likewise.
17364         * doc/posix-functions/isgraph.texi: Likewise.
17365         * doc/posix-functions/islower.texi: Likewise.
17366         * doc/posix-functions/isprint.texi: Likewise.
17367         * doc/posix-functions/ispunct.texi: Likewise.
17368         * doc/posix-functions/isspace.texi: Likewise.
17369         * doc/posix-functions/isupper.texi: Likewise.
17370         * doc/posix-functions/isxdigit.texi: Likewise.
17371
17372 2009-10-18  Bruno Haible  <bruno@clisp.org>
17373
17374         Tests for module 'isblank'.
17375         * modules/isblank-tests: New file.
17376         * tests/test-isblank.c: New file.
17377
17378         New module 'isblank'.
17379         * lib/isblank.c: New file.
17380         * m4/isblank.m4: New file.
17381         * modules/isblank: New file.
17382         * doc/posix-functions/isblank.texi: Mention the new module.
17383
17384 2009-10-18  Bruno Haible  <bruno@clisp.org>
17385
17386         New module 'ctype'.
17387         * lib/ctype.in.h: New file.
17388         * m4/ctype.m4: New file.
17389         * modules/ctype: New file.
17390         * doc/posix-headers/ctype.texi: Mention the new module.
17391
17392 2009-10-18  Jim Meyering  <meyering@redhat.com>
17393
17394         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
17395         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
17396         right after its initialization, rather than farther down.
17397         Keeping these in close proximity makes it easier to ensure
17398         that each such variable is initialized.  E.g.,
17399
17400             LIB_CLOCK_GETTIME=
17401             AC_SUBST([LIB_CLOCK_GETTIME])
17402
17403         This change also increments these serial numbers.
17404         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
17405         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
17406         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17407
17408 2009-10-18  Bruno Haible  <bruno@clisp.org>
17409
17410         Don't let environment variables perturb build.
17411         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
17412         (gl_PREREQ_GETHRXTIME): ... not here.
17413
17414 2009-10-18  Bruno Haible  <bruno@clisp.org>
17415
17416         Avoid symlink attack in localcharset module.
17417         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
17418         (O_NOFOLLOW): Define fallback.
17419         (get_charset_aliases): Don't open the file if it is a symbolic link.
17420         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
17421         gl_FCNTL_H.
17422         (gl_FCNTL_H): Require it.
17423         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
17424         * modules/localcharset (Files): Add m4/fcntl_h.m4.
17425         Reported by Fergal Glynn <fglynn@veracode.com>.
17426
17427 2009-10-18  Bruno Haible  <bruno@clisp.org>
17428
17429         Implement nproc for mingw.
17430         * lib/nproc.c: Include <windows.h>
17431         (num_processors): On native Windows platforms, try GetSystemInfo.
17432
17433 2009-10-18  Bruno Haible  <bruno@clisp.org>
17434
17435         Implement nproc for IRIX.
17436         * lib/nproc.c: Include <sys/sysmp.h>.
17437         (num_processors): On IRIX systems, try sysmp.
17438         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
17439
17440 2009-10-18  Bruno Haible  <bruno@clisp.org>
17441
17442         Implement nproc for HP-UX.
17443         * lib/nproc.c: Include <sys/pstat.h>
17444         (num_processors): On HP-UX systems, try pstat_getdynamic.
17445         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
17446         pstat_getdynamic.
17447
17448 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
17449             Bruno Haible  <bruno@clisp.org>
17450
17451         Implement nproc for NetBSD, OpenBSD.
17452         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
17453         (ARRAY_SIZE): New macro.
17454         (num_processors): On BSD systems, try sysctl of HW_NCPU.
17455         * m4/nproc.m4: New file.
17456         * modules/nproc (Files): Add m4/nproc.m4.
17457         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
17458         (Makefile.am): Instead, augment lib_SOURCES.
17459
17460 2009-10-18  Bruno Haible  <bruno@clisp.org>
17461
17462         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
17463         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
17464         sys/param.h.
17465
17466 2009-10-16  Eric Blake  <ebb9@byu.net>
17467
17468         utimensat: new module
17469         * modules/utimensat: New file.
17470         * lib/utimensat.c (utimensat): Likewise.
17471         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17472         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
17473         so we can work around Linux bugs.
17474         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17475         * modules/sys_stat (Makefile.am): Substitute them.
17476         * lib/sys_stat.in.h (utimensat): Declare it.
17477         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17478         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17479         * modules/utimensat-tests: New test.
17480         * tests/test-utimensat.c: Likewise.
17481
17482         utimens: let lutimens work on non-symlinks
17483         * lib/utimens.c (lutimens): Fall back to utimens rather than
17484         failing with ENOSYS, when file is not a symlink.
17485         (utimens): Reduce redirection.
17486         * tests/test-lutimens.h (test_lutimens): Update test to cover
17487         non-symlinks.
17488         * tests/test-utimens.h (test_utimens): Update test to cover
17489         symlinks.
17490         * tests/test-utimens.c (main): Update caller.
17491
17492         utimens: cache whether utimensat syscall works
17493         * lib/utimens.c (utimensat_works_really): New cache variable.
17494         (fdutimens, lutimens): Use it to avoid failing syscall.
17495
17496         test-stat-time, test-utimens: improve portability
17497         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
17498         ext4 on alpha, and for cygwin.
17499         * tests/test-utimens-common.h: New file.
17500         (nap): Factor delays into single function.
17501         * tests/test-lutimens.h (test_lutimens): Use new header.
17502         * tests/test-futimens.h (test_futimens): Likewise.
17503         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
17504         timestamps to occur from same machine, as was done previously for
17505         test_utimens.
17506         * modules/utimens-tests (Files): Ship new file.
17507         * modules/futimens-tests (Files): Likewise.
17508         Reported in part by Jim Meyering.
17509
17510         sys_stat: sort replacement declarations
17511         * lib/sys_stat.in.h: Sort declarations.
17512         * lib/futimens.c (futimens): Fix typo.
17513
17514 2009-10-15  Jim Meyering  <meyering@redhat.com>
17515
17516         don't let environment settings perturb build
17517         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
17518         could cause a configure-time and/or build-time malfunction.
17519         Typically, a configure-time function-in-library test is performed
17520         via code like this:
17521
17522           LIB_VAR=
17523           AC_SUBST([LIB_VAR])
17524           prefix_saved_LIBS=$LIBS
17525             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
17526                        [test "$ac_cv_search_FUNC" = "none required" ||
17527                         LIB_VAR=$ac_cv_search_FUNC])
17528           LIBS=$prefix_saved_LIBS
17529
17530         However, in each of the files affected by this change, the LIB_VAR=
17531         initialization was omitted.  Thus, when set in the environment, its
17532         value would propagate into generated Makefiles when FUNC is not found
17533         in LIB_NAME.
17534         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
17535         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
17536         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17537
17538 2009-10-14  Eric Blake  <ebb9@byu.net>
17539
17540         fchdir: avoid infinite recursion in mingw
17541         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
17542         recursing.
17543
17544         test-stat-time: port to mingw
17545         * tests/test-stat-time.c (force_unlink): Return a value.
17546         (test_ctime) [W32]: Fix compilation error.
17547         (nap): Don't call usleep with too large an argument.  Use
17548         force_unlink.
17549         * doc/pastposix-functions/usleep.texi (usleep): Document the
17550         portability issue.
17551
17552 2009-10-13  Jim Meyering  <meyering@redhat.com>
17553
17554         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
17555         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
17556         * modules/pipe-filter-ii: Likewise.
17557         * modules/sys_socket-tests: Likewise.
17558         * modules/tsearch-tests: Likewise.
17559         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
17560         (check): Depend on it.
17561
17562 2009-10-12  Eric Blake  <ebb9@byu.net>
17563
17564         utimens-tests: port to NFS file systems
17565         * tests/test-utimens.h (test_utimens): Refactor utimecmp
17566         comparisons to avoid spurious failures from timestamp drift
17567         between NFS machines.
17568
17569 2009-10-12  Eric Blake  <ebb9@byu.net>
17570
17571         stat-time-tests: minor cleanups
17572         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
17573         * tests/test-stat-time.c (nap): Separate assignment from call.
17574         Suggested by Paolo Bonzini and Bruno Haible.
17575
17576         sys_stat: guarantee struct timespec
17577         * lib/sys_stat.in.h (includes): Always include <time.h>
17578         * modules/sys_stat (Depends-on): Add time.
17579         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
17580         mode_t permission values.
17581         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
17582         get at subsecond timestamps.
17583
17584 2009-10-10  Eric Blake  <ebb9@byu.net>
17585
17586         futimens: new module
17587         * modules/futimens: New file.
17588         * lib/futimens.c (futimens): Likewise.
17589         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
17590         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
17591         we can work around Linux bugs.
17592         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17593         * modules/sys_stat (Makefile.am): Substitute them.
17594         * lib/sys_stat.in.h (futimens): Declare it.
17595         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17596         * doc/posix-functions/futimens.texi (futimens): Likewise.
17597         * modules/futimens-tests: New test.
17598         * tests/test-futimens.c: Likewise.
17599
17600         utimens: introduce fdutimens
17601         * lib/utimens.h (fdutimens): New prototype.
17602         * lib/utimens.c (gl_futimens): Move guts...
17603         (fdutimens): ...to new interface.
17604         * tests/test-utimens.c (do_fdutimens): Use it.
17605
17606         utimens: add UTIME_NOW and UTIME_OMIT support
17607         * lib/utimens.c (validate_timespec, update_timespec): New helper
17608         functions.
17609         (gl_futimens, lutimens): Use them.
17610         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
17611         stdbool, sys_stat.
17612         (Link): Mention resulting library dependency.
17613         * modules/utimecmp (Link): Likewise.
17614         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
17615         (Makefile.am): Pick up library dependency.
17616         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
17617         definition.
17618         * tests/test-sys_stat.c: Test the definitions.
17619         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
17620         * NEWS: Document library dependency.
17621
17622         utimecmp: support symlink timestamps
17623         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
17624         hashing when possible.  Use pathconf when available.
17625         (SYSCALL_RESOLUTION): Recognize tighter resolution.
17626         * modules/utimecmp (Depends-on): Add lstat.
17627
17628         utimens: add lutimens interface
17629         * lib/utimens.c (lutimens): New function.
17630         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
17631         * lib/utimens.h (lutimens): Declare new interface.
17632         * tests/test-utimens.c (main): Enhance test.
17633         * tests/test-lutimens.h (test_lutimens): New file.
17634         * modules/utimens-tests (Files): Distribute it.
17635         (Depends-on): Add symlink.
17636         (configure.ac): Check for usleep.
17637
17638         utimens: validate futimens usage
17639         * lib/utimens.c (gl_futimens): Require valid fd up front, using
17640         fewer syscalls on failure later on.  Avoid compiler warning on
17641         mingw.
17642         * modules/utimens (Depends-on): Add dup2.
17643
17644         utimens: add test
17645         * modules/utimens-tests: New test.
17646         * tests/test-utimens.h: New file.
17647         * tests/test-futimens.h: Likewise.
17648         * tests/test-utimens.c: Likewise.
17649
17650         doc: mention timestamp portability issues
17651         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
17652         instead.
17653         * doc/posix-functions/utime.texi (utime): Likewise.
17654         * doc/posix-functions/utimes.texi (utimes): Likewise.
17655         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
17656         instead.
17657         * doc/posix-functions/futimens.texi (futimens): Mention utimens
17658         module.
17659         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17660         Mention weakness with symlink timestamps.
17661         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
17662         to utimensat/futimens instead.
17663         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
17664
17665         test-dup2: enhance test
17666         * tests/test-dup2.c (main): Also check AT_FDCWD.
17667
17668         test-stat-time: avoid more spurious failures
17669         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
17670         xfs; and avoid race if the two timestamps cross quantization edge.
17671
17672         relocatable: prefer 'file system' over 'filesystem'
17673         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
17674         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
17675         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
17676         * doc/relocatable.texi (Enabling Relocatability): Likewise.
17677         * lib/relocatable.c (compute_curr_prefix): Likewise.
17678
17679 2009-10-10  Jim Meyering  <meyering@redhat.com>
17680
17681         stat-time-tests: check for the usleep function
17682         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
17683
17684 2009-10-10  Bruno Haible  <bruno@clisp.org>
17685
17686         * modules/xnanosleep: Put the Link section after the Include section.
17687
17688 2009-10-09  Eric Blake  <ebb9@byu.net>
17689
17690         dup2: work around FreeBSD 6.1 bug
17691         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
17692         * doc/posix-functions/dup2.texi (dup2): Document it.
17693         Reported by Nelson H. F. Beebe and Jim Meyering.
17694
17695         test-stat-time: port to buggy NFS clients
17696         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
17697         (test_ctime): Also skip test if mtime and ctime are skewed.
17698
17699         maint: prefer 'file system' over 'filesystem'
17700         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17701         * doc/posix-functions/lstat.texi (lstat): Likewise.
17702         * lib/file-has-acl.c (file_has_acl): Likewise.
17703         * lib/fwriteerror.c [TEST]: Likewise.
17704         * tests/test-areadlink.h (test_areadlink): Likewise.
17705         * tests/test-areadlinkat-with-size.c (main): Likewise.
17706         * tests/test-areadlinkat.c (main): Likewise.
17707         * tests/test-canonicalize-lgpl.c (main): Likewise.
17708         * tests/test-canonicalize.c (main): Likewise.
17709         * tests/test-fstatat.c (main): Likewise.
17710         * tests/test-linkat.c (main): Likewise.
17711         * tests/test-lstat.h (test_lstat_func): Likewise.
17712         * tests/test-mkdir.h (test_mkdir): Likewise.
17713         * tests/test-readlink.h (test_readlink): Likewise.
17714         * tests/test-remove.c (main): Likewise.
17715         * tests/test-rename.h (test_rename): Likewise.
17716         * tests/test-renameat.c (main): Likewise.
17717         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17718         * tests/test-symlink.h (test_symlink): Likewise.
17719         * tests/test-symlinkat.c (main): Likewise.
17720         * tests/test-unlink.h (test_unlink_func): Likewise.
17721         * tests/test-unlinkat.c (main): Likewise.
17722
17723         maint: make realtime library usage explicit
17724         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
17725         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
17726         * modules/settime (Link): Likewise.
17727         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
17728
17729         test-stat-time: speed up execution
17730         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
17731         warning on mingw.
17732         (nap): New helper function.
17733         (prepare_test): Use it to reduce sleep time.
17734         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
17735         execution.
17736         * modules/stat-time-tests (configure.ac): Check for usleep.
17737
17738 2009-10-09  Jim Meyering  <meyering@redhat.com>
17739
17740         selinux-h: always use getfilecon wrappers
17741         * lib/getfilecon.c: New file.
17742         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
17743         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
17744         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
17745         (fgetfilecon): Provide a stub.
17746         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
17747         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
17748         file unconditionally.
17749         When <selinux/selinux.h> is found, arrange to use wrappers.
17750         * modules/selinux-h (Files): Add getfilecon.c.
17751         (Makefile.am): Substitute include-next-related bits
17752         into the now-always-generated selinux/selinux.h file.
17753         * doc/glibc-functions/lgetfilecon.texi: New file.
17754         * doc/glibc-functions/fgetfilecon.texi: New file.
17755         * doc/glibc-functions/getfilecon.texi: New file.
17756         * doc/glibc-functions/getfilecon-desc.texi: New file.
17757         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
17758         which to pull in the new files.
17759         * MODULES.html.sh (Misc): Add selinux-h.
17760
17761 2009-10-08  Jim Meyering  <meyering@redhat.com>
17762
17763         unistd: fix comment typo
17764         * lib/unistd.in.h (euidaccess): Fix a comment typo.
17765
17766 2009-10-08  Eric Blake  <ebb9@byu.net>
17767
17768         areadlink: use SIZE_MAX consistently
17769         * modules/areadlink (Depends-on): Add stdint.
17770         * modules/areadlink-with-size (Depends-on): Likewise.
17771         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
17772         gives NULL; drop sys/types, since unistd gives size_t; and add
17773         stdint for SIZE_MAX.
17774         (SIZE_MAX): Rely on headers.
17775         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
17776         and add stdint.
17777         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
17778         (SIZE_MAX): Likewise.
17779         (INITIAL_BUF_SIZE): Turn into enum.
17780         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
17781
17782 2009-10-08  Jim Meyering  <meyering@redhat.com>
17783
17784         areadlinkat: avoid compilation failure
17785         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
17786         Fix typo in comment.
17787
17788 2009-10-07  Eric Blake  <ebb9@byu.net>
17789
17790         areadlinkat-with-size: new module
17791         * modules/areadlinkat-with-size: New module.
17792         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
17793         * lib/areadlink.h (areadlinkat): Declare it.
17794         * MODULES.html.sh (File system functions): Mention it.
17795         * modules/areadlinkat-with-size-tests: New test.
17796         * tests/test-areadlinkat-with-size.c: New file.
17797
17798         xreadlinkat: new module
17799         * modules/xreadlinkat: New module.
17800         * lib/xreadlinkat.c (xreadlinkat): New file.
17801         * lib/xreadlink.h (xreadlinkat): Declare it.
17802         * MODULES.html.sh (File system functions): Mention it.
17803
17804         areadlinkat: new module
17805         * lib/at-func.c (FUNC_FAIL): New define.
17806         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
17807         * modules/areadlinkat: New module.
17808         * lib/linkat.c (areadlinkat): Move...
17809         * lib/areadlinkat.c (areadlinkat): ...to new file.
17810         * lib/areadlink.h (areadlinkat): Declare it.
17811         * modules/linkat (Depends-on): Add areadlinkat.
17812         * MODULES.html.sh (File system functions): Mention it.
17813         * modules/areadlinkat-tests: New test.
17814         * tests/test-areadlinkat.c: New file.
17815
17816         areadlink, areadlink-with-size: add tests
17817         * modules/areadlink-tests: New test.
17818         * modules/areadlink-with-size-tests: Likewise.
17819         * tests/test-areadlink.h: New file.
17820         * tests/test-areadlink.c: Likewise.
17821         * tests/test-areadlink-with-size.c: Likewise.
17822
17823         maint: minor cleanups
17824         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
17825         _UNUSED_PARAMETER_ instead.
17826         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
17827         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
17828         * modules/linkat-tests (Files): Distribute test-link.h.
17829
17830         openat, utimens: whitespace cleanup
17831         * lib/openat.c: Prefer space throughout, rather than mix of 8
17832         spaces vs. tabs.
17833         * lib/at-func.c: Likewise.
17834         * lib/utimens.c: Likewise.
17835
17836         openat: avoid using wrong fd
17837         * lib/openat.c (openat_permissive): Reject user's fd if saving the
17838         working directory chooses same fd.
17839         * lib/at-func.c (AT_FUNC_NAME): Likewise.
17840
17841         mkdir, mkdirat: fix cygwin 1.5.x bug
17842         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
17843         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
17844         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
17845         bug.
17846         (gl_PREREQ_MKDIR): Delete unused macro.
17847         * modules/mkdir (Files): Track file rename.
17848         (configure.ac): Update macro name.
17849         * modules/openat (Depends-on): Add mkdir.
17850         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
17851
17852         mkdir, mkdirat: add tests
17853         * modules/mkdir-tests: New test.
17854         * tests/test-mkdir.h: New file.
17855         * tests/test-mkdir.c: Likewise.
17856         * tests/test-mkdirat.c: Likewise.
17857         * modules/openat-tests (Files): Add new files.
17858         (Makefile.am): Run new test.
17859
17860 2009-10-06  Eric Blake  <ebb9@byu.net>
17861
17862         doc: tweak *at function documentation
17863         * doc/posix-functions/faccessat.texi (faccessat): Mention
17864         known issue with replacement.
17865         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
17866         * doc/posix-functions/linkat.texi (linkat): Likewise.
17867         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17868         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17869         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17870         * doc/posix-functions/renameat.texi (renameat): Likewise.
17871         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17872
17873         openat: fix GNU/Hurd bug in unlinkat
17874         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
17875         broken.
17876         * doc/posix-functions/unlink.texi (unlink): Document this.
17877         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
17878
17879         fdopendir: fix GNU/Hurd bug
17880         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
17881         allowing non-directory fds.
17882         * lib/fdopendir.c (rpl_fdopendir): Work around it.
17883         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17884         * modules/dirent (Makefile.am): Substitute it.
17885         * lib/dirent.in.h (fdopendir): Declare replacement.
17886         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
17887         * tests/test-fdopendir.c (main): Test something other than
17888         /dev/null, since on Hurd that behaves like a directory.
17889
17890         test-symlink: port to GNU/Hurd
17891         * tests/test-symlink.h (test_symlink): Relax expected errno.
17892
17893         doc: tweak more cygwin information
17894         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
17895         now compatible with glibc.
17896         * doc/posix-functions/getopt.texi (getopt): Likewise.
17897
17898         getopt-gnu: add another test
17899         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
17900         guarantee behavior relied on by m4.
17901         * tests/test-getopt.c (main): Use it.
17902         * modules/getopt-posix-tests (Depends-on): Add setenv.
17903         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
17904
17905         getopt: fix compilation on darwin
17906         * lib/getopt.in.h (includes): Leave breadcrumbs during system
17907         include.
17908         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
17909         Reported by Ludovic Courtès.
17910
17911 2009-10-06  Bruno Haible  <bruno@clisp.org>
17912
17913         * modules/size_max (Description): Discourage its use.
17914         Reported by Simon Josefsson.
17915
17916 2009-10-06  Jim Meyering  <meyering@redhat.com>
17917
17918         linkat: avoid compilation failure
17919         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
17920
17921 2009-10-05  Eric Blake  <ebb9@byu.net>
17922
17923         linkat: support Linux 2.6.17
17924         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
17925         linkat on Linux, but allow cache variable override.
17926         * lib/linkat.c (rpl_linkat): Define override.
17927         * modules/linkat (Depends-on): Add symlinkat.
17928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
17929         * modules/unistd (Makefile.am): Substitute it.
17930         * lib/unistd.in.h (linkat): Declare replacement.
17931         Reported by Pádraig Brady.
17932
17933         quotearg: port test to systems with C.UTF-8 locale
17934         * tests/test-quotearg.c (struct result_strings): Add another
17935         member, differentiating between C.ASCII and C.UTF-8 handling.
17936         (compare_strings): Add parameter.
17937         (main): Adjust all callers.
17938
17939         getopt: avoid clash with FreeBSD _getopt_internal
17940         * lib/getopt.in.h (_getopt_internal): Override the name.
17941         * lib/getopt_int.h (includes): Pick up any overrides.
17942         Reported by Reuben Thomas.
17943
17944         hash: allow C89 compilation
17945         * lib/hash.c (check_tuning): Move declaration before statement.
17946         Reported by Reuben Thomas.
17947
17948 2009-10-05  Karl Berry  <karl@gnu.org>
17949
17950         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
17951
17952 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
17953             Bruno Haible  <bruno@clisp.org>
17954
17955         * lib/uname.c (uname): Use a table-driven algorithm to compute
17956         Windows NT versions.
17957
17958 2009-10-04  Bruno Haible  <bruno@clisp.org>
17959
17960         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
17961         program_invocation_short_name.
17962         * modules/progname (configure.ac): Test for presence of
17963         program_invocation_short_name.
17964         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17965
17966 2009-10-04  Bruno Haible  <bruno@clisp.org>
17967
17968         * lib/progname.c (set_program_name): Fix comment.
17969         Reported by Jim Meyering.
17970
17971 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17972             Bruno Haible  <bruno@clisp.org>
17973
17974         * lib/uname.c: Include <string.h>.
17975         (uname): Do only one call to GetVersionEx in the common case.
17976
17977 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17978             Bruno Haible  <bruno@clisp.org>
17979
17980         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
17981         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
17982         (uname): Add support for Windows CE and various non-x86 CPU types.
17983
17984 2009-10-03  Bruno Haible  <bruno@clisp.org>
17985
17986         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
17987         invocation to tests/configure.ac.
17988         Reported by Ian Beckwith <ianb@erislabs.net>.
17989
17990 2009-10-02  Eric Blake  <ebb9@byu.net>
17991
17992         fchdir: avoid compiler warning
17993         * lib/fchdir.c (canonicalize_file_name)
17994         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
17995
17996         test-open: support mingw errno values
17997         * tests/test-open.h (test_open): Relax test.
17998         * tests/test-fopen.h (test_fopen): Likewise.
17999         * tests/test-openat-safer.c (main): Likewise.
18000
18001         open: fix opening directory on mingw
18002         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
18003
18004         test-open: on GNU/Hurd, /dev/null is a directory
18005         * tests/test-fopen.h (main): Rename...
18006         (test_fopen): ...to this.  Use a guaranteed non-directory when
18007         confirming open behavior on trailing slash.
18008         * tests/test-openat-safer.c (main): Likewise.
18009         * tests/test-open.h (main): Likewise....
18010         (test_open): ...to this.
18011         * tests/test-fopen.c (main): Adjust caller.
18012         * tests/test-fopen-safer.c (main): Likewise.
18013         * tests/test-open.c (main): Likewise.
18014         * tests/test-fcntl-safer.c (main): Likewise.
18015         Reported by Samuel Thibault.
18016
18017         rename, fchdir: don't ignore chdir failure
18018         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
18019         * lib/rename.c (rpl_rename) [W32]: Likewise.
18020         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
18021         an empty destination directory if source cannot be renamed,
18022         although there is still possibility for failure.
18023         * doc/posix-functions/rename.texi (rename): Document the race.
18024         Reported by Jim Meyering.
18025
18026         maint: cleanup whitespace in recent commits
18027         * lib/rename.c (rpl_rename): Remove tabs.
18028         * tests/test-link.h (test_link): Likewise.
18029         * lib/fchdir.c (get_name): Likewise.
18030         Reported by Jim Meyering.
18031
18032 2009-10-02  Ben Pfaff  <blp@gnu.org>
18033
18034         relocatable-prog-wrapper: Add missing dependency on
18035         double-slash-root.
18036         * modules/relocatable-prog-wrapper: Add dependency.
18037         Reported by Ian Beckwith <ianb@erislabs.net>.
18038
18039 2009-10-02  Eric Blake  <ebb9@byu.net>
18040
18041         renameat: fix Solaris bugs
18042         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
18043         needed fixing.
18044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
18045         * modules/stdio (Makefile.am): Substitute it.
18046         * lib/stdio.in.h (renameat): Declare replacement.
18047         * lib/renameat.c (rpl_renameat): Implement fix.
18048
18049         renameat: new module
18050         * modules/renameat: New file.
18051         * lib/renameat.c (renameat): Likewise.
18052         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
18053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
18054         * modules/stdio (Makefile.am): Substitute them.
18055         * lib/stdio.in.h (renameat): Declare it.
18056         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18057         * doc/posix-functions/renameat.texi (renameat): Likewise.
18058         * modules/renameat-tests: New test.
18059         * tests/test-renameat.c: Likewise.
18060
18061         rename: fix mingw bugs
18062         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
18063         directory overwrite bugs.
18064
18065         rename: fix another cygwin 1.5 bug
18066         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
18067         checks.
18068         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
18069         unnecessary cygwin workarounds.  Also work around bug with moving
18070         full directory onto an empty one.
18071         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
18072
18073         rename-dest-slash: merge into rename module
18074         * modules/rename-dest-slash (Status): Mark obsolete.
18075         (Depends-on): Add rename.
18076         (Files): Let rename do it all.
18077         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
18078         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
18079         * m4/rename-dest-slash.m4: ...so this file can be deleted.
18080         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
18081         * lib/rename.c (rpl_rename): Update comments.
18082
18083         rename: fix cygwin 1.5.x bugs
18084         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
18085         * lib/rename.c (rpl_rename): Work around them.
18086         * modules/rename (Depends-on): Add same-inode.
18087
18088         rename: fix Solaris 10 bug
18089         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
18090         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
18091         was the only bug.
18092
18093         rename: fix Solaris 9 bug
18094         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
18095         on non-directory.  Avoid calling exit.
18096         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
18097         strdup.
18098         * modules/rename-tests (Depends-on): Drop lstat.
18099         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
18100         (gl_PREREQ_RENAME): Delete unused macro.
18101
18102         rename-dest-slash: fix NetBSD bug
18103         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
18104         links.
18105         * modules/rename-dest-slash (Depends-on): Add same-inode.
18106
18107         rename-tests: new test, exposes several platform bugs
18108         * modules/rename-tests: New file.
18109         * tests/test-rename.h: Likewise.
18110         * tests/test-rename.c: Likewise.
18111         * doc/posix-functions/rename.texi (rename): Improve documentation,
18112         including bugs that will eventually be fixed in gnulib.
18113
18114 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
18115
18116         * lib/uname.c: Include <stdlib.h>
18117         (uname): Assume version info is available.
18118
18119 2009-10-02  Jim Meyering  <meyering@redhat.com>
18120
18121         gnu-web-doc-update: correct --help output
18122         * build-aux/gnu-web-doc-update: Make --help output relevant.
18123
18124         gnu-web-doc-update: add standard options
18125         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
18126
18127         gnu-web-doc-update: New module.
18128         Use this script to automatically update the on-line web documentation
18129         for your GNU project at http://www.gnu.org/software/$pkg/manual/
18130         * modules/gnu-web-doc-update: New file, from coreutils.
18131         * build-aux/gnu-web-doc-update: New script.
18132
18133 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
18134
18135         link: LoadLibrary is not needed.
18136         * lib/link.c: Use GetModuleHandle.
18137
18138 2009-10-01  Eric Blake  <ebb9@byu.net>
18139
18140         getopt: bump serial number
18141         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
18142         change.
18143
18144         tests: tighten link, rmdir, and remove tests
18145         * tests/test-link.h (includes): No need to use <config.h> here.
18146         Clean up if directory hard link was created, otherwise test for
18147         trailing '.'.
18148         * tests/test-linkat.c (main): Simplify.
18149         * tests/test-remove.c (main): Enhance test for trailing '.'.
18150         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18151
18152 2009-10-01  Jim Meyering  <meyering@redhat.com>
18153
18154         maint.mk: requiring "make major" was annoying, for a "minor" release.
18155         What is intended is "stable", to contrast with alpha and beta,
18156         so require "make stable", not "make major".
18157         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
18158         (get_tool_versions): Likewise.
18159         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
18160
18161 2009-09-30  Ben Pfaff  <blp@gnu.org>
18162
18163         Fix broken build of replacement for Windows tmpfile().
18164         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
18165         flags argument added along with the 'mkostemp' module.
18166
18167 2009-09-28  Bruno Haible  <bruno@clisp.org>
18168
18169         Avoid identifier clash with POSIX function 'remove' defined as a macro.
18170         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
18171         to 'remove_elt'.
18172         (gl_list_remove): Update.
18173         * lib/gl_list.c (gl_list_remove): Update.
18174         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
18175         to 'remove_elt'.
18176         (gl_oset_remove): Update.
18177         * lib/gl_list.c (gl_oset_remove): Update.
18178         Reported by Eric Blake.
18179
18180 2009-09-28  Eric Blake  <ebb9@byu.net>
18181
18182         doc: mention yet more cygwin 1.7 status
18183         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
18184         cygwin.
18185         * doc/glibc-functions/execvpe.texi (execvpe): New file.
18186         * doc/gnulib.texi (Glibc unistd.h): Mention it.
18187
18188         argp: fix test failure
18189         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
18190         that are not upper-case.  Pass correct range to tolower.
18191
18192 2009-09-27  Jim Meyering  <meyering@redhat.com>
18193
18194         test-yesno: work around sparc-dash here-document infelicity
18195         Without this change, the literal \177 byte in a here document
18196         would make dash 0.5.5.1-3 access uninitialized memory.
18197         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
18198         Instead, use a marker, "@", and filter through tr to create the desired
18199         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
18200
18201 2009-09-27  Bruno Haible  <bruno@clisp.org>
18202
18203         Disable untested support for new flavours of ACLs on AIX.
18204         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
18205         progress.
18206         * lib/set-mode-acl.c (qset_acl): Likewise.
18207
18208 2008-12-07  Bruno Haible  <bruno@clisp.org>
18209
18210         Add support for new flavours of ACLs on AIX. (Untested.)
18211         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
18212         (file_has_acl): Add support for newer AIX.
18213         * lib/set-mode-acl.c (qset_acl): Likewise.
18214         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
18215         Rainer Tammer <tammer@tammer.net>.
18216
18217 2009-09-26  Eric Blake  <ebb9@byu.net>
18218
18219         argp: fix compilation of getopt
18220         * lib/getopt.in.h (includes): Use different guard than glibc.
18221         Reported by Sergey Poznyakoff.
18222
18223         doc: mention more cygwin 1.7 status
18224         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
18225         bug.
18226         * doc/posix-functions/execl.texi (execl): Likewise.
18227         * doc/posix-functions/execle.texi (execle): Likewise.
18228         * doc/posix-functions/execlp.texi (execlp): Likewise.
18229         * doc/posix-functions/execv.texi (execv): Likewise.
18230         * doc/posix-functions/execve.texi (execve): Likewise.
18231         * doc/posix-functions/execvp.texi (execvp): Likewise.
18232         * doc/glibc-functions/canonicalize_file_name.texi
18233         (canonicalize_file_name): Cygwin 1.7 now provides this.
18234         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
18235         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
18236         on AT_SYMLINK_NOFOLLOW.
18237
18238 2009-09-24  Eric Blake  <ebb9@byu.net>
18239
18240         test-linkat: make test more robust
18241         * tests/test-linkat.c (main): Avoid collision with EEXIST.
18242
18243         getopt: fix inclusion guards for cygwin
18244         * modules/getopt-posix (Depends-on): Add include-next.
18245         (Makefile.am): Substitute more items in replacement header.
18246         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
18247         <getopt.h>.
18248         * lib/getopt.in.h (includes): Use split inclusion guard, and
18249         prefer <getopt.h> over include <unistd.h> when one is present.
18250         (option): Also override name of 'struct option'.
18251
18252         same-inode: revert prior change; it is not yet ready
18253         * NEWS: Undo mention of this change.
18254         * lib/same-inode.h (same-inode.h): Undo tri-state change.
18255         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
18256         * lib/cycle-check.c (cycle_check): Likewise.
18257         * lib/same.c (same_name): Likewise.
18258         * lib/at-func2.c (at_func2): Likewise.
18259
18260 2009-09-23  Eric Blake  <ebb9@byu.net>
18261
18262         linkat: new module
18263         * modules/linkat: New file.
18264         * lib/at-func2.c (at_func2): Likewise.
18265         * lib/linkat.c (linkat): Likewise.
18266         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18267         * lib/openat-priv.h (at_func2): Add declaration.
18268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18269         * modules/unistd (Makefile.am): Substitute them.
18270         * lib/unistd.in.h (linkat): Declare it.
18271         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18272         * doc/posix-functions/linkat.texi (linkat): Likewise.
18273         * doc/posix-functions/link.texi (link): Tweak wording.
18274         * tests/test-link.c (main): Move guts...
18275         * tests/test-link.h (test_link): ...into new file.
18276         * modules/linkat-tests: New test.
18277         * tests/test-linkat.c: Likewise.
18278         * modules/link-tests (Files): Ship new file.
18279         (Depends-on): Add stdbool.
18280
18281         dirname: add library-safe mdir_name
18282         * lib/dirname.h (mdir_name): New prototype.
18283         * lib/dirname.c (dir_name): Move guts...
18284         (mdir_name): ...to new function that avoids xalloc_die.
18285
18286         fchdir: another mingw fix
18287         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
18288         * lib/fchdir.c (get_name): New helper method; skips canonicalize
18289         on mingw (where it has not yet been ported), and make it optional
18290         elsewhere.
18291         (_gl_register_fd): Use it.
18292
18293         same-inode: make SAME_INODE tri-state, to port to mingw
18294         * NEWS: Mention this change.
18295         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
18296         st_ino always being 0.
18297         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
18298         * lib/cycle-check.c (cycle_check): Likewise.
18299         * lib/same.c (same_name): Likewise.
18300
18301         lstat: avoid mingw compilation error
18302         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
18303         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
18304         lstat ourselves.
18305         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
18306         was adequate.
18307         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
18308         the checks for lstat.
18309         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
18310
18311         link: fix test failure on Solaris 9
18312         * lib/link.c (rpl_link): Don't assume link will catch bogus
18313         trailing slash on source.
18314
18315         test-symlinkat: enhance test
18316         * tests/test-readlink.c (main): Move guts...
18317         * tests/test-readlink.h (test_readlink): ...into new file.
18318         * tests/test-symlink.c (main): Move guts...
18319         * tests/test-symlink.h (test_symlink): ...into new file.
18320         * tests/test-symlinkat.c (main): Use new files for further
18321         coverage.
18322         (do_symlink, do_readlink): New helper functions.
18323         * modules/symlink-tests (Files): Ship new file.
18324         (Depends-on): Add stdbool.
18325         * modules/readlink-tests (Files): Ship new file.
18326         (Depends-on): Add stdbool.
18327         * modules/symlinkat-tests (Files): Use new files.
18328
18329 2009-09-23  Eric Blake  <ebb9@byu.net>
18330
18331         readlink: document portability issue with symlink length
18332         * doc/posix-functions/lstat.texi (lstat): Mention that some file
18333         systems have bogus st_size on symlinks, and mention the
18334         areadlink-with-size module.
18335         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
18336         * doc/posix-functions/readlink.texi (readlink): Mention the
18337         areadlink module, and ERANGE failure.
18338         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18339         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
18340
18341         readlink: fix Solaris 9 bug with trailing slash
18342         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
18343         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
18344         * doc/posix-functions/readlink.texi (readlink): Document this.
18345         * modules/readlink-tests: New test.
18346         * tests/test-readlink.c: Likewise.
18347
18348         readlink: fix cygwin 1.5.x bug with return type
18349         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
18350         * lib/unistd.in.h (readlink): Use ssize_t.
18351         * lib/readlink.c (readlink): Likewise.
18352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18353         * modules/unistd (Makefile.am): Substitute it.
18354         * lib/unistd.in.h (readlink): Declare replacement.
18355         * doc/posix-functions/readlink.texi (readlink): Document this.
18356
18357         symlink: use throughout gnulib
18358         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
18359         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
18360         symlink is not used.
18361         * modules/symlinkat (Depends-on): Add symlink.
18362         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18363         * modules/canonicalize-tests (Depends-on): Likewise.
18364         * modules/lstat-tests (Depends-on): Likewise.
18365         * modules/openat-tests (Depends-on): Likewise.
18366         * modules/remove-tests (Depends-on): Likewise.
18367         * modules/rmdir-tests (Depends-on): Likewise.
18368         * modules/unlink-tests (Depends-on): Likewise.
18369         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
18370         * tests/test-canonicalize.c (symlink): Likewise.
18371         * tests/test-fstatat.c (symlink): Likewise.
18372         * tests/test-lstat.c (symlink): Likewise.
18373         * tests/test-remove.c (symlink): Likewise.
18374         * tests/test-rmdir.c (symlink): Likewise.
18375         * tests/test-unlink.c (symlink): Likewise.
18376         * tests/test-unlinkat.c (symlink): Likewise.
18377
18378         symlink: new module, for Solaris 9 bug
18379         * modules/symlink: New file.
18380         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18381         * lib/symlink.c: Likewise.
18382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
18383         * modules/unistd (Makefile.am): Substitute them.
18384         * lib/unistd.in.h (symlink): Declare replacement.
18385         * MODULES.html.sh (File system functions): Mention it.
18386         * doc/posix-functions/symlink.texi (symlink): Likewise.
18387         * modules/symlink-tests: New test.
18388         * tests/test-symlink.c: Likewise.
18389
18390 2009-09-23  Bruno Haible  <bruno@clisp.org>
18391
18392         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
18393         when needed.
18394         Test case: gnulib-tool --import --with-tests atexit inttypes.
18395         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
18396
18397 2009-09-23  Bruno Haible  <bruno@clisp.org>
18398
18399         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
18400         subcommand, not in a subshell.
18401
18402 2009-09-22  Eric Blake  <ebb9@byu.net>
18403
18404         unistd: sort replacement declarations
18405         * lib/unistd.in.h: Sort declarations.
18406
18407         open, openat: minor optimization
18408         * lib/open.c (open): If open succeeded, len is non-zero.
18409         * lib/openat.c (rpl_openat): Likewise.
18410
18411         link-follow: ensure correct result
18412         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
18413         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
18414         distinguish between possible failures.
18415
18416 2009-09-21  Eric Blake  <ebb9@byu.net>
18417
18418         fts: avoid compiler warning
18419         * lib/fts.c (dirent_inode_sort_may_be_useful)
18420         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
18421
18422 2009-09-19  Bruno Haible  <bruno@clisp.org>
18423
18424         * lib/progreloc.c (canonicalize_file_name): New declaration.
18425
18426 2009-09-19  Eric Blake  <ebb9@byu.net>
18427
18428         link: fix quoting
18429         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
18430
18431         openat: fix openat bugs on Solaris 9
18432         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
18433         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
18434         * modules/openat (Depends-on): Add open.
18435         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
18436         * modules/fcntl-h (Makefile.am): Substitute it.
18437         * lib/fcntl.in.h (openat): Declare replacement.
18438         * doc/posix-functions/openat.texi (openat): Document this.
18439
18440         openat: move fstatat and unlinkat into correct files
18441         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
18442         compiled.
18443         * lib/openat.c (fstatat, unlinkat): Move...
18444         * lib/fstatat.c (fstatat): ...into correct files.
18445         * lib/unlinkat.c (unlinkat): Likewise.
18446
18447         openat: fix unlinkat bugs on Solaris 9
18448         * lib/unlinkat.c (unlinkat): New file.
18449         * modules/openat (Depends-on): Add unlink.
18450         (Files): Distribute it.
18451         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
18452         trailing slash behavior is broken.
18453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18454         * modules/unistd (Makefile.am): Substitute it.
18455         * lib/unistd.in.h (unlinkat): Declare replacement.
18456         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
18457
18458         openat: fix fstatat bugs on Solaris 9
18459         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
18460         stat.
18461         * doc/posix-functions/fstatat.texi (fstatat): Document this.
18462
18463         test-unlinkat: enhance test, to expose Solaris 9 bug
18464         * tests/test-unlink.c (main): Factor guts...
18465         * tests/test-unlink.h (test_rmdir_func): ...into new file.
18466         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
18467         * tests/test-rmdir.c (main): Adjust caller.
18468         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
18469         (unlinker): New helper function.
18470         (rmdirat): Enhance check.
18471         * modules/rmdir-tests (Depends-on): Add stdbool.
18472         * modules/unlink-tests (Depends-on): Likewise.
18473         (Files): Add test-unlink.h.
18474         * modules/openat-tests (Files): Likewise.
18475         (Depends-on): Add unlinkdir.
18476
18477         test-fstatat: new test, to expose Solaris 9 bugs
18478         * tests/test-stat.c (main): Factor guts...
18479         * tests/test-stat.h (test_stat_func): ...into new file.
18480         * tests/test-lstat.c (main): Factor guts...
18481         * tests/test-lstat.h (test_lstat_func): ...into new file.
18482         * tests/test-fstatat.c: New file.
18483         * modules/stat-tests (Files): Add test-stat.h.
18484         * modules/lstat-tests (Files): Add test-lstat.h.
18485         (Depends-on): Add stdbool.
18486         * modules/openat-tests (Depends-on): Add pathmax.
18487         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
18488         (Makefile.am): Run new test.
18489
18490         remove: new module, for mingw and Solaris 9 bugs
18491         * modules/remove: New file.
18492         * lib/remove.c: Likewise.
18493         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
18494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
18495         * modules/stdio (Makefile.am): Use them.
18496         * lib/stdio.in.h (remove): Declare replacement.
18497         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18498         * doc/posix-functions/remove.texi (remove): Likewise.
18499         * modules/remove-tests: New test.
18500         * tests/test-remove.c: Likewise.
18501
18502         unlink: new module, for Solaris 9 bug
18503         * modules/unlink: New file.
18504         * lib/unlink.c: Likewise.
18505         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18507         * modules/unistd (Makefile.am): Use them.
18508         * lib/unistd.in.h (stat): Declare replacement.
18509         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18510         * doc/posix-functions/unlink.texi (unlink): Likewise.
18511         * modules/unlink-tests: New test.
18512         * tests/test-unlink.c: Likewise.
18513
18514         lstat: fix Solaris 9 bug
18515         * lib/lstat.c (lstat): Also check for trailing slash on
18516         non-symlink, non-directories.  Use stat module to simplify logic.
18517         * doc/posix-functions/lstat.texi (lstat): Document it.
18518         * modules/lstat-tests (Depends-on): Add errno, same-inode.
18519         (configure.ac): Check for symlink.
18520         * tests/test-lstat.c (main): Add more tests.
18521
18522         stat: add as dependency to other modules
18523         * modules/chown (Depends-on): Add stat.
18524         * modules/euidaccess (Depends-on): Likewise.
18525         * modules/fchdir (Depends-on): Likewise.
18526         * modules/isdir (Depends-on): Likewise.
18527         * modules/link (Depends-on): Likewise.
18528         * modules/lstat (Depends-on): Likewise.
18529         * modules/mkdir-p (Depends-on): Likewise.
18530         * modules/modechange (Depends-on): Likewise.
18531         * modules/open (Depends-on): Likewise.
18532         * modules/readlink (Depends-on): Likewise.
18533         * modules/same (Depends-on): Likewise.
18534
18535         stat: fix Solaris 9 bug
18536         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
18537         slash.
18538         * lib/stat.c (rpl_stat): Work around it.
18539         * doc/posix-functions/stat.texi (stat): Update documentation.
18540
18541         stat: new module, for mingw bug
18542         * modules/stat: New file.
18543         * lib/stat.c: Likewise.
18544         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18545         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18546         * modules/sys_stat (Makefile.am): Use them.
18547         * lib/sys_stat.in.h (stat): Declare replacement.
18548         * lib/openat.c (fstatat): Deal with lstat and stat being function
18549         macros.
18550         * modules/openat (Depends-on): Add inline.
18551         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18552         * doc/posix-functions/stat.texi (stat): Likewise.
18553         * modules/stat-tests: New test.
18554         * tests/test-stat.c: Likewise.
18555
18556 2009-09-19  Jim Meyering  <meyering@redhat.com>
18557
18558         syntax-check: detect unnecessary inclusion of canonicalize.h
18559         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
18560
18561 2009-09-19  Eric Blake  <ebb9@byu.net>
18562
18563         canonicalize-lgpl: adjust clients to use correct header
18564         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18565         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
18566         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
18567         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
18568         * lib/progreloc.c (includes): Likewise.
18569
18570 2009-09-19  Jim Meyering  <meyering@redhat.com>
18571
18572         test-posixtm.c: correct a comment
18573         * tests/test-posixtm.c: Correct first-line comment.
18574         Spotted by Eric Blake.
18575
18576 2009-09-16  Jim Meyering  <meyering@redhat.com>
18577
18578         posixtm-tests: make T const-correct; add a test case
18579         * tests/test-posixtm.c (T): Declare const.
18580         Add a test for -(2^31+1).
18581         Remove useless can-succeed-only-in-2002 test.
18582
18583         posixtm-tests: adjust the sole failing test
18584         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
18585         expected output matches what mktime now produces.  Cross-checked via
18586         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
18587
18588         posixtm: move #ifdef'd tests into a new module
18589         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
18590         * tests/test-posixtm.c: ... this new file.
18591         * modules/posixtm-tests: New module.
18592
18593 2009-09-19  Eric Blake  <ebb9@byu.net>
18594
18595         openat: simplify use of at-func.c
18596         * lib/at-func.c (includes): Include prerequisites here, to
18597         simplify requirements on client files.
18598         * lib/openat-priv.h: Add double-inclusion guard.
18599         * lib/faccessat.c (includes): Simplify.
18600         * lib/fchmodat.c (includes): Likewise.
18601         * lib/fchownat.c (includes): Likewise.
18602         * lib/mkdirat.c (includes): Likewise.
18603         * lib/mkfifoat.c (includes): Likewise.
18604         * lib/symlinkat.c (includes): Likewise.
18605
18606         openat: allow return of fd 0
18607         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
18608         * modules/save-cwd (Depends-on): Replace fcntl-safer with
18609         unistd-safer.
18610         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
18611         <fcntl.h>; this module does not leak fds.
18612         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
18613         must be allowed to return 0, leaving openat_safer to add the
18614         safety.
18615         (openat_permissive): Avoid writing to just-opened fd 2 if
18616         restoring the current directory fails.
18617         * lib/openat-die.c (openat_restore_fail): Add comment.
18618         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
18619         (save_cwd): Guarantee safe fd, but without use of open_safer.
18620         * tests/test-openat.c: New test.
18621         * modules/openat-tests (Files, Makefile.am): Distribute and build
18622         new file.
18623
18624         relocatable-prog-wrapper: fix build
18625         * modules/relocatable-prog-wrapper (Files): Update name of
18626         canonicalize m4 file, broken on 2009-09-17.
18627         Reported by emad hajjar <aleppos@hotmail.com>.
18628
18629 2009-09-19  Bruno Haible  <bruno@clisp.org>
18630
18631         * lib/safe-alloc.h: Use the standard header with GPL copyright.
18632         * lib/safe-alloc.c: Likewise.
18633         Reported by Ian Beckwith <ianb@erislabs.net>.
18634
18635 2009-09-18  Bruno Haible  <bruno@clisp.org>
18636
18637         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
18638         Reported by <erobles@sensacd.com.mx>.
18639
18640 2009-09-17  Eric Blake  <ebb9@byu.net>
18641
18642         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
18643         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
18644         slashes when checking if last component is missing.
18645         * tests/test-canonicalize.c (main): Test this.
18646
18647         canonicalize, canonicalize-lgpl: honor // if distinct from /
18648         * modules/canonicalize (Files): Add double-slash-root.m4.
18649         * modules/canonicalize-lgpl (Files): Likewise.
18650         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18651         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
18652         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
18653         fallback definition.
18654         (canonicalize_filename_mode): Use it to protect //.
18655         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
18656         (__realpath): Likewise.
18657         * tests/test-canonicalize.c (main): Test this.
18658         * tests/test-canonicalize-lgpl.c (main): Likewise.
18659         * modules/canonicalize-tests (Depends-on): Add same-inode.
18660         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18661
18662         canonicalize-lgpl: fix glibc bug with trailing slash
18663         * m4/canonicalize-lgpl.m4: Move contents...
18664         * m4/canonicalize.m4: ...here.
18665         (gl_CANONICALIZE_LGPL): Factor realpath check...
18666         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
18667         glibc 2.3.5 bug, fixed 2005-04-27.
18668         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
18669         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
18670         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
18671         * modules/canonicalize-lgpl (Files): Manage file rename.
18672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18673         * modules/stdlib (Makefile.am): Substitute witness.
18674         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
18675         is needed.
18676         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
18677         replacement is required.
18678         * lib/canonicalize.c (canonicalize_file_name): Likewise.
18679         * doc/glibc-functions/canonicalize_file_name.texi
18680         (canonicalize_file_name): Document this.
18681         * doc/posix-functions/realpath.texi (realpath): Likewise.
18682
18683         canonicalize-lgpl: reject non-directory with trailing slash
18684         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
18685         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
18686         catches failures in glibc 2.3.5.
18687         * tests/test-canonicalize.c (main): Likewise.
18688
18689         canonicalize-lgpl: use native realpath if it works
18690         * lib/canonicalize-lgpl.c (realpath): Guard with
18691         FUNC_REALPATH_WORKS.
18692         * lib/stdlib.in.h (realpath): Make declaration optional based on
18693         HAVE_REALPATH.
18694         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
18695         native realpath works.
18696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18697         * modules/stdlib (Makefile.am): Substitute witness.
18698
18699         canonicalize, canonicalize-lgpl: use <stdlib.h>
18700         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
18701         (Include): Mention <stdlib.h>.
18702         (configure.ac): Mention functions we provide.
18703         * modules/canonicalize (configure.ac): Likewise.
18704         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
18705         realpath if canonicalize_file_name is missing.
18706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
18707         * modules/stdlib (Makefile.am): Substitute witnesses.
18708         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
18709         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
18710         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
18711         * NEWS: Document this.
18712         * doc/glibc-functions/canonicalize_file_name.texi
18713         (canonicalize_file_name): Likewise.
18714         * doc/posix-functions/realpath.texi (realpath): Likewise.
18715         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
18716
18717         test-canonicalize: consolidate into single C program
18718         * tests/test-canonicalize.sh: Delete; move setup into...
18719         * tests/test-canonicalize.c (main): ...the program, making it
18720         easier to run in debugger.  Add some tests.
18721         * modules/canonicalize-tests (Files): Remove unused file.
18722         (Depends-on): Add progname.
18723         (configure.ac, Makefile.am): Simplify.
18724
18725         test-canonicalize-lgpl: consolidate into single C program
18726         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
18727         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
18728         easier to run in debugger.  Add some tests.
18729         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
18730         (configure.ac, Makefile.am): Simplify.
18731
18732         canonicalize: avoid resolvepath
18733         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
18734         unnecessary checks.
18735         * lib/canonicalize.c (includes): Simplify.
18736         (canonicalize_file_name): Drop resolvepath implementation.
18737         * modules/canonicalize (Depends-on): Drop filenamecat.
18738
18739         canonicalize: don't lose errno
18740         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
18741         over calls to free.
18742
18743         canonicalize: simplify errno handling
18744         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
18745         assignment.
18746
18747         canonicalize, canonicalize-lgpl: update module dependencies
18748         * modules/canonicalize (Depends-on): Add extensions, lstat,
18749         pathmax, stdlib.
18750         (Files): Drop pathmax.h.
18751         (configure.ac): Adjust macro name.
18752         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
18753         lstat, stdlib, sys_stat.
18754         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
18755         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
18756         extensions.
18757         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
18758         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
18759         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
18760         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
18761         declaration, if available.
18762         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
18763         we can rely on the readlink module.
18764         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
18765         (includes): Use <unistd.h> unconditionally.
18766
18767 2009-09-17  Eric Blake  <ebb9@byu.net>
18768
18769         maint: make Include sections of modules consistent
18770         * modules/alloca: Use only header name; no need to list #include.
18771         * modules/alloca-opt: Likewise.
18772         * modules/arpa_inet: Likewise.
18773         * modules/canon-host: Likewise.
18774         * modules/configmake: Likewise.
18775         * modules/dirent: Likewise.
18776         * modules/eealloc: Likewise.
18777         * modules/environ: Likewise.
18778         * modules/fchdir: Likewise.
18779         * modules/fcntl: Likewise.
18780         * modules/fcntl-h: Likewise.
18781         * modules/gethrxtime: Likewise.
18782         * modules/gettime: Likewise.
18783         * modules/ignore-value: Likewise.
18784         * modules/inet_ntop: Likewise.
18785         * modules/inet_pton: Likewise.
18786         * modules/inttypes: Likewise.
18787         * modules/isnand-nolibm: Likewise.
18788         * modules/isnanf-nolibm: Likewise.
18789         * modules/mbchar: Likewise.
18790         * modules/mbfile: Likewise.
18791         * modules/mbiter: Likewise.
18792         * modules/mbuiter: Likewise.
18793         * modules/netdb: Likewise.
18794         * modules/netinet_in: Likewise.
18795         * modules/nproc: Likewise.
18796         * modules/pagealign_alloc: Likewise.
18797         * modules/poll: Likewise.
18798         * modules/printf-frexp: Likewise.
18799         * modules/pthread: Likewise.
18800         * modules/putenv: Likewise.
18801         * modules/random_r: Likewise.
18802         * modules/relocatable-prog: Likewise.
18803         * modules/search: Likewise.
18804         * modules/select: Likewise.
18805         * modules/selinux-h: Likewise.
18806         * modules/settime: Likewise.
18807         * modules/signal: Likewise.
18808         * modules/size_max: Likewise.
18809         * modules/socklen: Likewise.
18810         * modules/ssize_t: Likewise.
18811         * modules/stdarg: Likewise.
18812         * modules/stdbool: Likewise.
18813         * modules/stddef: Likewise.
18814         * modules/stdint: Likewise.
18815         * modules/stdio: Likewise.
18816         * modules/stdlib: Likewise.
18817         * modules/string: Likewise.
18818         * modules/strings: Likewise.
18819         * modules/sys_file: Likewise.
18820         * modules/sys_ioctl: Likewise.
18821         * modules/sys_select: Likewise.
18822         * modules/sys_socket: Likewise.
18823         * modules/sys_stat: Likewise.
18824         * modules/sys_time: Likewise.
18825         * modules/sys_times: Likewise.
18826         * modules/sys_utsname: Likewise.
18827         * modules/sys_wait: Likewise.
18828         * modules/sysexits: Likewise.
18829         * modules/time: Likewise.
18830         * modules/times: Likewise.
18831         * modules/tmpfile: Likewise.
18832         * modules/trim: Likewise.
18833         * modules/unistd: Likewise.
18834         * modules/wchar: Likewise.
18835         * modules/wctype: Likewise.
18836
18837 2009-09-17  Bruno Haible  <bruno@clisp.org>
18838
18839         Make getdate.y compile on QNX and NetBSD 5 / i386.
18840         * m4/getdate.m4 (gl_GETDATE): Conditionally define
18841         TIME_T_FITS_IN_LONG_INT.
18842         * lib/getdate.y (long_time_t): New type.
18843         (relative_time): Change type of 'seconds' field to long_time_t.
18844         (get_date): Update types of local variables. Check against overflow
18845         during conversion from long_time_t to time_t.
18846         Reported by Matt Kraai <kraai@ftbfs.org>
18847         and Hasso Tepper <hasso@netbsd.org>.
18848
18849 2009-09-17  Bruno Haible  <bruno@clisp.org>
18850
18851         * modules/COPYING: Update copyright years.
18852         * modules/README: Likeiwse.
18853         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
18854         Reported by Ian Beckwith <ianb@erislabs.net>.
18855
18856 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18857
18858         * users.txt: Update references for gnuit package.
18859
18860 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18861
18862         * m4/getdelim.m4: Fix typo in copyright line.
18863
18864 2009-09-17  Bruno Haible  <bruno@clisp.org>
18865
18866         * lib/atoll.c: Use the standard header with GPL copyright.
18867         * lib/argz.in.h: Likewise.
18868         * lib/glob.c: Likewise.
18869         * lib/glob-libc.h: Likewise.
18870         * lib/random_r.c: Likewise.
18871         * lib/siglist.h: Likewise.
18872         * lib/strsignal.c: Likewise.
18873         Reported by Ian Beckwith <ianb@erislabs.net>.
18874
18875 2009-09-17  Eric Blake  <ebb9@byu.net>
18876
18877         rmdir: ensure correct dependency order
18878         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
18879
18880 2009-09-17  Bruno Haible  <bruno@clisp.org>
18881
18882         Disable assertion that fails on NetBSD 5 / i386.
18883         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
18884         Reported by Sam Steingold <sds@gnu.org>
18885         and Hasso Tepper <hasso@netbsd.org>.
18886
18887 2009-09-16  Eric Blake  <ebb9@byu.net>
18888
18889         unlinkdir: port to mingw
18890         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
18891         on which no one can unlink a directory.
18892
18893         stdlib: sort witness names
18894         * modules/stdlib (Makefile.am): Sort replacements.
18895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
18896         * lib/stdlib.in.h: Likewise.
18897
18898         parse-duration-tests: avoid link failure
18899         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
18900         LIBINTL.
18901         Reported by Tom G. Christensen.
18902
18903         openat-tests: ensure unlinkat behaves like rmdir
18904         * tests/test-rmdir.c (main): Factor guts...
18905         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
18906         * modules/rmdir-tests (Files): Ship new file.
18907         * modules/openat-tests: New test.
18908         * tests/test-unlinkat.c: Likewise.
18909
18910         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
18911         * modules/rmdir-errno (Status, Notice): Now obsolete.
18912
18913         rmdir: work around cygwin 1.5.x and mingw bugs
18914         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
18915         * lib/rmdir.c (rmdir): Work around it.
18916         * modules/rmdir (Status, Notice): No longer obsolete.
18917         (Files): Add dos.m4.
18918         (Depends-on): Add unistd.
18919         (configure.ac): Set witnesses.
18920         (License): Relax to LGPLv2+.
18921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
18922         * modules/unistd (Makefile.am): Substitute witnesses.
18923         * lib/unistd.in.h (rmdir): Declare replacement.
18924         * doc/posix-functions/rmdir.texi (rmdir): Document this.
18925         * modules/rmdir-tests: New tests.
18926         * tests/test-rmdir.c: Likewise.
18927
18928 2009-09-15  Eric Blake  <ebb9@byu.net>
18929
18930         fchdir: improve use of replacement functions
18931         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
18932         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
18933         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
18934         REPLACE_CLOSEDIR.
18935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
18936         * modules/sys_stat (Makefile.am): Substitute correct witness.
18937         * modules/dirent (Makefile.am): Likewise.
18938         * modules/unistd (Makefile.am): Likewise.
18939         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
18940         * lib/unistd.in.h (dup): Likewise.
18941         * lib/sys_stat.in.h (fstat): Likewise.
18942
18943         maint: ignore gnulib-tool temp files
18944         * .gitignore: Ignore files created during gnulib-tool --test.
18945
18946 2009-09-13  Jim Meyering  <meyering@redhat.com>
18947
18948         posixtm: don't reject a time that specify "60" as the number of seconds
18949         * lib/posixtm.c (posixtime): The code to reject invalid dates
18950         would also reject a time specified with the .60 suffix.
18951         But POSIX allows that, in order to accommodate leap seconds.
18952         So don't reject it.
18953         (main): Adjust tests accordingly.
18954         * modules/posixtm (Depends-on): Add stpcpy.
18955
18956 2009-09-11  Jim Meyering  <meyering@redhat.com>
18957
18958         announce-gen: include [$release_type] in emitted Subject:
18959         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
18960         e.g., [stable] in the emitted Subject: line.
18961
18962 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18963
18964         Remove obsolete macros from several modules.
18965         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
18966         obsolete Autoconf macros with their modern counterparts.
18967         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
18968         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
18969         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
18970         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
18971         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
18972         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18974         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18975         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18976         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
18977         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18978         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18979         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18980         * m4/sockets.m4 (gl_SOCKETS): Likewise.
18981         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
18982         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
18983         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18984         * m4/time_r.m4 (gl_TIME_R): Likewise.
18985         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18986         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
18987         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18988
18989         Fix copyright header in build-aux scripts.
18990         * build-aux/git-version-gen: Fix copyright header to match GPLv3
18991         recommendation.
18992         * build-aux/ncftpput-ftp: Likewise.
18993         * build-aux/update-copyright: Likewise.
18994
18995 2009-09-09  Eric Blake  <ebb9@byu.net>
18996
18997         test-link: allow Linux choice of errno
18998         * tests/test-link.c (main): Relax test for alternate error.
18999
19000         strndup: fix improper m4 caching
19001         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
19002         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
19003         (gl_PREREQ_STRNDUP): Delete.
19004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
19005         * modules/string (Makefile.am): Substitute it.
19006         * lib/string.in.h (strndup): Modernize prototype.
19007
19008         getcwd: port to mingw
19009         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
19010         different from the POSIX assumptions made throughout the getcwd
19011         module; fortunately, the mingw getcwd does not need replacement.
19012         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
19013         * modules/getcwd-tests: New test.
19014         * tests/test-getcwd.c: Likewise.
19015
19016         link: fix platform bugs
19017         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
19018         * lib/link.c (link): Work around them.  Fix related mingw bug.
19019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
19020         * modules/unistd (Makefile.am): Substitute it.
19021         * lib/unistd.in.h (link): Declare replacement.
19022         * doc/posix-functions/link.texi (link): Document this.
19023         * modules/link (Depends-on): Add strdup-posix, sys_stat.
19024
19025         test-link: consolidate into single C program, test more cases
19026         * tests/test-link.sh: Delete.
19027         * tests/test-link.c: Test more error conditions.  Exposes bugs on
19028         at least Cygwin and Solaris.
19029         * modules/link-tests (Files): Remove unused file.
19030         (Depends-on): Add errno, sys_stat.
19031         (Makefile.am): Simplify.
19032
19033 2009-09-08  Bruno Haible  <bruno@clisp.org>
19034
19035         Work around towlower, towupper bug on mingw.
19036         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
19037         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
19038         * doc/posix-functions/towlower.texi: Mention the mingw bug.
19039         * doc/posix-functions/towupper.texi: Likewise.
19040         Reported by Eric Blake.
19041
19042 2009-09-08  Jim Meyering  <meyering@redhat.com>
19043
19044         build: don't try to run autoheader if we don't use it
19045         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
19046         is not used in configure.ac.
19047
19048 2009-09-08  Eric Blake  <ebb9@byu.net>
19049
19050         euidaccess: fix compilation error
19051         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
19052
19053         rawmemchr: relax license
19054         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
19055         okay.
19056         Reported by Jim Meyering.
19057
19058         mkfifoat: new module
19059         * modules/mkfifoat: New file.
19060         * lib/mkfifoat.c: Likewise.
19061         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
19062         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
19063         * modules/sys_stat (Makefile.am): Use them.
19064         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
19065         * MODULES.html.sh (File system functions): Mention module.
19066         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
19067         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
19068         * modules/mkfifoat-tests: New test.
19069         * tests/test-mkfifoat.c: Likewise.
19070
19071         strchrnul: relax license
19072         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
19073         okay.
19074         Reported by Jim Meyering.
19075
19076 2009-09-08  Eric Blake  <ebb9@byu.net>
19077
19078         fstatat: fix compilation on Solaris
19079         * lib/fstatat.c (includes): Add fcntl.h.
19080         Reported by Pádraig Brady.
19081
19082 2009-09-07  Eric Blake  <ebb9@byu.net>
19083
19084         rename: modernize replacement
19085         * modules/rename (Depends-on): Add stdio.
19086         (configure.ac): Declare witness.
19087         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
19088         stdio take care of replacement.
19089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
19090         * modules/stdio (Makefile.am): Substitute them.
19091         * lib/stdio.in.h (rename): Declare replacement.
19092         * lib/rename.c (includes): Allow cross-compilation to non-windows
19093         machines.
19094         * doc/posix-functions/rename.texi (rename): Improve
19095         documentation.
19096
19097         stdio: sort witness names
19098         * modules/stdio (Makefile.am): Sort replacements.
19099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19100         * lib/stdio.in.h: Likewise.
19101
19102         getcwd: minor cleanups
19103         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
19104         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
19105
19106         openat: provide more convenience names
19107         * modules/faccessat (configure.ac): Add C witness.
19108         * lib/unistd.in.h (readlinkat): Fix typo.
19109         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
19110         convenience wrappers.
19111         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
19112         wrappers in syntax checks.
19113
19114 2009-09-06  Eric Blake  <ebb9@byu.net>
19115
19116         doc: fix comments in recent patches
19117         * lib/faccessat.c: Mention correct function.
19118         * lib/fchmodat.c: Likewise.
19119         * lib/fchownat.c: Likewise.
19120         * lib/symlinkat.c: Likewise.
19121         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
19122         constants.
19123
19124         faccessat, symlinkat: continue cleanup of previous patch
19125         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
19126         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
19127         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
19128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
19129         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
19130         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
19131         set.
19132
19133 2009-09-06  Bruno Haible  <bruno@clisp.org>
19134
19135         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
19136         (fstatat): Declare if GNULIB_FSTATAT is set.
19137         (mkdirat): Declare if GNULIB_MKDIRAT is set.
19138         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
19139         (unlinkat): Declare if GNULIB_UNLINKAT is set.
19140         * modules/fcntl-h (Files): Remove m4/openat.m4.
19141         * modules/sys_stat (Files): Remove m4/openat.m4.
19142         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
19143         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
19144         * modules/unistd (Files): Remove m4/openat.m4.
19145         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
19146         GNULIB_OPENAT.
19147         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
19148         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
19149         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
19150         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
19151         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
19152         gl_OPENAT_DEFAULTS.
19153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
19154         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
19155         Don't require gl_OPENAT_DEFAULTS.
19156         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
19157         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
19158         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
19159         (gl_OPENAT_DEFAULTS): Remove macro.
19160
19161 2009-09-06  Bruno Haible  <bruno@clisp.org>
19162
19163         * modules/openat (configure.ac): Remove unneeded witness.
19164
19165 2009-09-06  Bruno Haible  <bruno@clisp.org>
19166
19167         Set errno to ENOSYS when a function is entirely unsupported.
19168         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
19169         EOPNOTSUPP.
19170         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
19171         * modules/chown (Depends-on): Remove errno.
19172
19173 2009-09-06  Bruno Haible  <bruno@clisp.org>
19174
19175         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
19176
19177 2009-09-06  Bruno Haible  <bruno@clisp.org>
19178
19179         * lib/sys_stat.in.h: Fix preprocessor command indentation.
19180
19181 2009-09-06  Ben Pfaff  <blp@gnu.org>
19182             Bruno Haible  <bruno@clisp.org>
19183
19184         Work around a glibc bug in strtok_r.
19185         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
19186         Undefine if UNDEFINE_STRTOK_R is set.
19187         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
19188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19189         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
19190         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
19191         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
19192         UNDEFINE_STRTOK_R.
19193         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
19194
19195 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19196
19197         exclude: minor fix
19198         * lib/exclude.c: Include wctype.h
19199
19200 2009-09-06  Akim Demaille  <demaille@gostai.com>
19201
19202         bootstrap: improve error message
19203         * build-aux/bootstrap (find_tool): Upon failure, report the list
19204         of candidates.
19205         Honor the initial value of the envvar.
19206
19207 2009-09-05  Eric Blake  <ebb9@byu.net>
19208
19209         symlinkat: new module
19210         * modules/symlinkat: New file.
19211         * lib/symlinkat.c: Likewise.
19212         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
19214         * modules/unistd (Makefile.am): Use them.
19215         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
19216         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
19217         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
19218         * MODULES.html.sh (File system functions): Mention module.
19219         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19220         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19221         * modules/symlinkat-tests: New test.
19222         * tests/test-symlinkat.c: Likewise.
19223
19224         test-openat-safer: add more checks
19225         * tests/test-openat-safer.c (main): Check more code paths.
19226
19227 2009-09-05  Jim Meyering  <meyering@redhat.com>
19228
19229         syntax-check: detect unnecessary inclusion of openat.h
19230         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
19231
19232 2009-09-05  Bruno Haible  <bruno@clisp.org>
19233
19234         Support towlower, towupper.
19235         * doc/posix-functions/towlower.texi: Mention module wctype.
19236         * doc/posix-functions/towupper.texi: Likewise.
19237         * lib/wctype.in.h (towlower, towupper): New functions.
19238         * tests/test-wctype.c: Include stdio.h, stdlib.h.
19239         (ASSERT): New macro.
19240         (e): New variable.
19241         (main): Test also towlower, towupper. Test WEOF argument.
19242         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19243
19244 2009-09-05  Bruno Haible  <bruno@clisp.org>
19245
19246         Fix conversion behaviour when the input is invalid.
19247         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
19248         mark occurring in first pass of indirect conversion.
19249         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
19250         input.
19251         Found by clang's static analyzer.
19252
19253 2009-09-05  Bruno Haible  <bruno@clisp.org>
19254
19255         * tests/test-striconveh.c (main): Test indirect conversion on platforms
19256         where direct conversion is possible.
19257
19258 2009-09-04  Eric Blake  <ebb9@byu.net>
19259
19260         openat: fail with ENOENT on empty name
19261         * lib/openat-proc.c (openat_proc_name): Special-case the empty
19262         buffer.
19263
19264         link-follow: fix logic bug in prior patch
19265         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
19266         reversed sense of yes and no in prior patch.  Avoid confusing
19267         compilation failure with desired semantics.
19268
19269         link-follow: accomodate mingw and cross-compilation
19270         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
19271         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
19272         cross-compilation results to -1, to make linkat easier to
19273         implement when cross-compiling.  Trivially support mingw.
19274         * modules/link-follow (configure.ac): Call new name.
19275         * NEWS: Mention this.
19276
19277 2009-09-03  Eric Blake  <ebb9@byu.net>
19278
19279         faccessat: compile replacement
19280         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
19281         needed.
19282
19283         fts: fix compilation error
19284         * lib/fts.c (includes): Re-add "openat.h", for
19285         openat_needs_fchdir.
19286
19287         faccessat: new module
19288         * modules/faccessat: New file.
19289         * lib/faccessat.c: Likewise.
19290         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
19291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19292         * modules/unistd (Makefile.am): Use it.
19293         * lib/unistd.in.h (faccessat): Declare it.
19294         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
19295         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
19296         * MODULES.html.sh (File system functions): Mention it.
19297         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
19298         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
19299
19300         euidaccess: prefer POSIX over non-standard implementation
19301         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
19302         * lib/euidaccess.c (euidaccess): Use it if available.
19303
19304         openat: make template easier to use
19305         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
19306         AT_FUNC_F2 to be undefined.
19307         (VALIDATE_FLAG): New macro; use it to reject bad flags.
19308         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
19309         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
19310         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
19311         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
19312         Likewise.
19313         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
19314         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
19315         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
19316         Likewise.
19317
19318         openat: declare in POSIX headers
19319         * NEWS: Mention this.
19320         * modules/openat (configure.ac): Declare witnesses.
19321         (Depends-on): Add fcntl-h, sys_stat, unistd.
19322         (Include): Mention correct headers.
19323         * modules/fcntl-h (Depends-on): Add link-warning.
19324         (Files): Add openat.m4.
19325         (Makefile.am): Substitute witnesses.
19326         * modules/sys_stat (Files, Makefile.am): Likewise.
19327         * modules/unistd (Files, Makefile.am): Likewise.
19328         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
19329         (gl_OPENAT_DEFAULTS): New macro.
19330         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
19331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
19332         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
19333         (SYS_STAT_H): Remove unused variable.
19334         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
19335         * lib/fcntl--.h (includes): Remove unneeded header.
19336         * lib/openat-safer.c (includes): Likewise.
19337         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
19338         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
19339         appropriate headers.
19340         (__OPENAT_PREFIX): Delete.
19341         * lib/fcntl.in.h (openat): Provide declaration.
19342         (AT_FDCWD): Fix Solaris bug.
19343         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
19344         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
19345         * lib/fchmodat.c (includes):  Adjust to find declaration.
19346         * lib/fchownat.c (includes): Likewise.
19347         * lib/mkdirat.c (includes): Likewise.
19348         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
19349         still visible.
19350
19351 2009-09-02  Eric Blake  <ebb9@byu.net>
19352
19353         errno: use consistently
19354         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
19355         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
19356         * lib/canonicalize.c (ELOOP): Likewise.
19357         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
19358         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
19359         * lib/lchown.c (EOPNOTSUPP): Likewise.
19360         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
19361         * lib/savewd.c (ESTALE): Likewise.
19362         * lib/settime.c (ENOSYS): Likewise.
19363         * lib/utimens.c (ENOSYS): Likewise.
19364         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
19365         * lib/chdir-safer.c (ELOOP): Likewise.
19366         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
19367         * modules/c-stack (Depends-on): Add errno.
19368         * modules/canonicalize (Depends-on): Likewise.
19369         * modules/chdir-safer (Depends-on): Likewise.
19370         * modules/fdopendir (Depends-on): Likewise.
19371         * modules/inet_ntop (Depends-on): Likewise.
19372         * modules/inet_pton (Depends-on): Likewise.
19373         * modules/lchown (Depends-on): Likewise.
19374         * modules/openat (Depends-on): Likewise.
19375         * modules/savewd (Depends-on): Likewise.
19376         * modules/settime (Depends-on): Likewise.
19377         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
19378
19379         fts: avoid leaking fds
19380         * modules/fts (Depends-on): Add cloexec.
19381         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
19382         flag.
19383
19384         fts: make directory fds more robust
19385         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
19386         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
19387
19388         backupfile, chdir-long, fts, savedir: make safer
19389         * lib/backupfile.c (includes): Use "dirent--.h", since
19390         numbered_backup can write to stderr during readdir.
19391         * lib/savedir.c (includes): Likewise.
19392         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
19393         emulation can write to stderr on failure.
19394         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
19395         * lib/getcwd.c: Document why opendir_safer is unused.
19396         * lib/glob.c: Likewise.
19397         * lib/scandir.c: Likewise.
19398         * lib/openat-proc.c: Likewise, for open_safer.
19399         * modules/backupfile (Depends-on): Add dirent-safer.
19400         * modules/savedir (Depends-on): Likewise.
19401         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
19402         * modules/chdir-long (Depends-on): Add openat-safer.
19403
19404         openat-safer: new module
19405         * modules/openat-safer: New file.
19406         * lib/openat-safer.c: Likewise.
19407         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
19408         * lib/fcntl-safer.h (openat_safer): Declare.
19409         * lib/fcntl--.h (openat): Override.
19410         * MODULES.html.sh (File descriptor based I/O): Mention it.
19411         * lib/openat.h: Add double-inclusion guards.
19412         * lib/openat.c (includes): Only include "fcntl-safer.h", not
19413         "fcntl--.h", so we can implement openat.
19414         * modules/openat-safer-tests: New test.
19415         * tests/test-openat-safer.c: New file.
19416
19417         dirent-safer: new module
19418         * modules/dirent-safer: New file.
19419         * lib/dirent--.h: Likewise.
19420         * lib/dirent-safer.h: Likewise.
19421         * lib/opendir-safer.c: Likewise.
19422         * m4/dirent-safer.m4: Likewise.
19423         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
19424         * modules/dirent-safer-tests: New test.
19425         * tests/test-dirent-safer.c: New file.
19426         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
19427
19428         fdopendir: optimize on mingw
19429         * lib/unistd.in.h (_gl_directory_name): New prototype.
19430         * lib/fchdir.c (_gl_directory_name): Implement it.
19431         (fchdir): Use it to simplify implementation.
19432         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
19433         fchdir, when available, to avoid calling [f]chdir().
19434
19435         fdopendir: split into its own module
19436         * lib/openat.c (fdopendir): Move...
19437         * lib/fdopendir.c: ...into new file.
19438         * modules/fdopendir: New module.
19439         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
19440         * modules/openat (Depends-on): Add fdopendir.
19441         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
19442         fdopendir here.
19443         * modules/savedir (Depends-on): Only need fdopendir, not full
19444         openat.
19445         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
19446         * lib/openat.h (fdopendir): Drop prototype.
19447         * lib/dirent.in.h (fdopendir): Provide prototype.
19448         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
19449         * modules/dirent (Makefile.am): Substitute them.
19450         * MODULES.html.sh (File system functions): Mention it.
19451         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
19452         * modules/fdopendir-tests: New file.
19453         * tests/test-fdopendir.c: Likewise.
19454
19455         fchdir: use more consistent macro convention
19456         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
19457         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
19458         REPLACE_FCHDIR, rather than relying on config.h macros.
19459         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
19460         inside a single make-time REPLACE_FCHDIR block, rather than using
19461         the config.h FCHDIR_REPLACEMENT.
19462         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
19463         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
19464         Manage fstat replacement.
19465         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
19466         REPLACE_FCHDIR.
19467         * modules/sys_stat (Files): Add m4/unistd_h.m4.
19468         (Makefile.am): Substitute REPLACE_FCHDIR.
19469         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
19470         FCHDIR_REPLACEMENT.
19471         * lib/dup-safer.c (dup_safer): Likewise.
19472         * lib/dup2.c (rpl_dup2): Likewise.
19473         * lib/dup3.c (rpl_dup3): Likewise.
19474         * lib/open.c (rpl_open): Likewise.
19475
19476         fchdir: simplify error handling, and support dup3
19477         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
19478         stdbool, malloc-posix, realloc-posix.
19479         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
19480         (ensure_dirs_slot): Return false on allocation failure.
19481         (rpl_dup2): Delete.
19482         (_gl_register_dup): New function.
19483         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
19484         (_gl_register_fd): Close fd on allocation failure.
19485         * lib/fcntl.in.h (_gl_register_fd): Update signature.
19486         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
19487         prototype.
19488         (rpl_dup2_fchdir): Delete prototype.
19489         * lib/open.c (open): Update caller.
19490         * lib/dup2.c (dup2): Track fchdir metadata.
19491         * lib/dup3.c (dup3): Likewise.
19492         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
19493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
19494
19495 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19496
19497         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
19498         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
19499         don't pass arguments to AC_OUTPUT.
19500
19501 2009-09-02  Bruno Haible  <bruno@clisp.org>
19502
19503         * modules/mkdtemp (License): Relicense under LGPLv2+.
19504         Reported by Paolo Bonzini.
19505
19506 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19507
19508         Replace uses of obsolete autoconf macros in Jim's modules.
19509         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
19510         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
19511         can evoke a warning from autoconf when run with -Wobsolete
19512         enabled.  They were declared obsolete for good reasons (see
19513         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
19514         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
19515         should not continue using the deprecated macros.
19516         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
19517         obsolete Autoconf macros with modern counterparts.
19518         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19519         * m4/dos.m4 (gl_AC_DOS): Likewise.
19520         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
19521         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19522         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
19523         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
19524         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
19525         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
19526         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
19527         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
19528         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
19529         Likewise.
19530         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19531         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19532         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
19533         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
19534         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
19535         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
19536
19537 2009-09-01  Eric Blake  <ebb9@byu.net>
19538
19539         fchdir: fix off-by-one bug in previous patch
19540         * lib/fchdir.c (rpl_fstat): Use correct bounds.
19541         (_gl_unregister_fd): Delete useless if.
19542
19543 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
19544
19545         maint.mk: sort the list of syntax-check rules
19546         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
19547         easier to get a sense of progress when the rules are run sequentially
19548         and take a long time.
19549
19550 2009-09-01  Simon Josefsson  <simon@josefsson.org>
19551
19552         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
19553         * modules/netinet_in: Likewise.
19554         * modules/sys_file: Likewise.
19555         * modules/sys_ioctl: Likewise.
19556         * modules/sys_select: Likewise.
19557         * modules/sys_socket: Likewise.
19558         * modules/sys_stat: Likewise.
19559         * modules/sys_time: Likewise.
19560         * modules/sys_times: Likewise.
19561         * modules/sys_utsname: Likewise.
19562         * modules/sys_wait: Likewise.
19563
19564 2009-09-01  Jim Meyering  <meyering@redhat.com>
19565
19566         fts: help ensure that return values are not ignored
19567         * lib/fts_.h (__GNUC_PREREQ): Define.
19568         (__attribute_warn_unused_result__): Define.
19569         (fts_children, fts_close, fts_open, fts_read): Declare with
19570         __attribute_warn_unused_result__.
19571
19572         fts: fts_close now fails also when closing a dir file descriptor fails
19573         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
19574         and propagate to caller, along with errno.
19575
19576         announce-gen: correct formatting in --help output
19577         * build-aux/announce-gen (usage): Move the one-line description in
19578         --help output "up", to where it belongs, just after Usage:.
19579
19580 2009-08-31  Eric Blake  <ebb9@byu.net>
19581
19582         fchdir: port to mingw
19583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
19584         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
19585         opened, then use a substitute.
19586         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
19587         replacement.
19588         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
19589         (_gl_register_fd): No need to check stat if open already filters
19590         all directories.
19591         (fchdir): Fix error condition to match POSIX.
19592         * modules/fchdir (Depends-on): Add sys_stat.
19593         * doc/posix-functions/open.texi (open): Document the limitation.
19594         * modules/fchdir-tests: New file.
19595         * tests/test-fchdir.c: Likewise.
19596
19597         canonicalize: allow cross-testing from cygwin to mingw
19598         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
19599         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
19600         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
19601         Likewise.
19602         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
19603         target does not support symlinks.
19604         * tests/test-canonicalize-lgpl.sh: Likewise.
19605
19606         chown: avoid compilation warning on mingw
19607         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
19608         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
19609         mingw.
19610         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
19611         * modules/chown (Depends-on): Add errno.
19612
19613 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19614
19615         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
19616         command.
19617
19618 2009-08-31  Jim Meyering  <meyering@redhat.com>
19619
19620         canonicalize: remove useless initialization
19621         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
19622         initialization of local, "end".
19623
19624 2009-08-30  Bruno Haible  <bruno@clisp.org>
19625
19626         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
19627         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
19628         ENOSYS.
19629
19630 2009-08-30  Bruno Haible  <bruno@clisp.org>
19631
19632         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
19633         /usr/xpg4/bin/tr when it exists.
19634         * tests/test-pipe-filter-gi1.sh: Likewise.
19635
19636 2009-08-30  Bruno Haible  <bruno@clisp.org>
19637
19638         Work around deficient /usr/bin/id program on Solaris.
19639         * tests/test-file-has-acl.sh (ID): New variable.
19640         * tests/test-set-mode-acl.sh (ID): Likewise.
19641         * tests/test-copy-acl.sh (ID): Likewise.
19642         * tests/test-copy-file.sh (ID): Likewise.
19643
19644 2009-08-30  Bruno Haible  <bruno@clisp.org>
19645
19646         New module 'xstriconveh'.
19647         * lib/xstriconveh.h: New file.
19648         * lib/xstriconveh.c: New file.
19649         * modules/xstriconveh: New file.
19650
19651 2009-08-30  Bruno Haible  <bruno@clisp.org>
19652
19653         Make it easier to use mem_cd_iconveh.
19654         * lib/striconveh.h (iconveh_t): New type.
19655         (iconveh_open, iconveh_close): New declarations.
19656         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19657         with a single 'const iconveh_t *' argument.
19658         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
19659         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19660         with a single 'const iconveh_t *' argument.
19661         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
19662         * tests/test-striconveh.c (main): Update.
19663         * NEWS: Mention the change.
19664
19665 2009-08-30  Bruno Haible  <bruno@clisp.org>
19666
19667         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
19668         problem.
19669
19670 2009-08-30  Bruno Haible  <bruno@clisp.org>
19671
19672         Work around iconv_open problem on Solaris.
19673         * lib/iconv_open-solaris.gperf: New file.
19674         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
19675         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
19676         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
19677         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
19678         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
19679         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
19680
19681 2009-08-29  Jim Meyering  <meyering@redhat.com>
19682
19683         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
19684         * top/maint.mk (cvs-check): Remove target; it was just an alias
19685         to the better-named vc-diff-check.
19686         (maintainer-distcheck): Remove rule.  It was used only from
19687         the (alpha/beta/major) target, and all of its commands but one
19688         were coreutils-specific.
19689         (vc-dist): Remove rule.
19690         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
19691         Run vc-diff-check, not vc-dist.
19692         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
19693
19694 2009-08-27  Bruno Haible  <bruno@clisp.org>
19695
19696         * tests/test-bitrotate.c (main): Remove test that uses a shift count
19697         of 0.
19698
19699 2009-08-27  Bruno Haible  <bruno@clisp.org>
19700
19701         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
19702         compilers.
19703         * doc/func.texi: Document the SunPRO C bug.
19704
19705 2009-08-27  Bruno Haible  <bruno@clisp.org>
19706
19707         Fix link error on Solaris.
19708         * tests/test-parse-duration.c (xstrdup): Remove function.
19709
19710 2009-08-26  Pádraig Brady  <P@draigbrady.com>
19711
19712         ignore-value: handle pointer types, too
19713         * lib/ignore-value.h (__attribute__): Remove definition.
19714         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
19715         of a more concise and more-often effective "(void) i" statement.
19716         (ignore_ptr): New function to suppress warnings from functions that
19717         return pointers, and to make it explicit that one function doesn't
19718         handle all cases.
19719
19720 2009-08-25  Bruno Haible  <bruno@clisp.org>
19721
19722         dup2: work around a Linux bug.
19723         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
19724         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
19725         * doc/posix-functions/dup2.texi: Mention the Linux bug.
19726         Reported by Simon Josefsson.
19727
19728 2009-08-25  Jim Meyering  <meyering@redhat.com>
19729
19730         libguestfs uses gnulib
19731         * users.txt: Add libguestfs.
19732
19733 2009-08-24  Eric Blake  <ebb9@byu.net>
19734
19735         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
19736         * lib/pipe2.c (includes): Add binary-io.h.
19737         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
19738
19739 2009-08-24  Bruno Haible  <bruno@clisp.org>
19740
19741         Tolerate declared but missing accept4 syscall.
19742         * lib/accept4.c (accept4): Invoke original accept4 function first, if
19743         available.
19744         * lib/sys_socket.in.h (accept4): If the function is already present,
19745         override it.
19746         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
19747         * modules/accept4 (Makefile.am): Compile accept4.c always.
19748         Reported by Paolo Bonzini and Eric Blake.
19749
19750 2009-08-23  Bruno Haible  <bruno@clisp.org>
19751
19752         New module 'accept4'.
19753         * lib/sys_socket.in.h (accept4): New declaration.
19754         * lib/accept4.c: New file.
19755         * m4/accept4.m4: New file.
19756         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19757         GNULIB_ACCEPT4, HAVE_ACCEPT4.
19758         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
19759         HAVE_ACCEPT4.
19760         * modules/accept4: New file.
19761         * doc/glibc-functions/accept4.texi: Mention the new module.
19762
19763 2009-08-24  Jim Meyering  <meyering@redhat.com>
19764
19765         progname: also set global program_invocation_name, when possible
19766         Before this change, a libtool-enabled program that calls glibc's
19767         error function would report the program name as
19768         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
19769         * modules/progname (configure.ac): Check for a declaration of
19770         program_invocation_name.
19771         * lib/progname.c:  Include <errno.h>.
19772         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
19773         Set program_invocation_name.
19774
19775 2009-08-23  Bruno Haible  <bruno@clisp.org>
19776
19777         * lib/dup3.c: Include <string.h>.
19778
19779 2009-08-23  Bruno Haible  <bruno@clisp.org>
19780
19781         * lib/dup3.c (dup3): Test only once whether the system actually exists.
19782         * lib/pipe2.c (pipe2): Likewise.
19783         Suggested by Eric Blake.
19784
19785 2009-08-23  Bruno Haible  <bruno@clisp.org>
19786
19787         Tolerate declared but missing dup3 syscall.
19788         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
19789         * lib/unistd.in.h (dup3): If the function is already present,
19790         override it.
19791         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
19792         * modules/dup3 (Makefile.am): Compile dup3.c always.
19793         Reported by Paolo Bonzini.
19794
19795 2009-08-23  Bruno Haible  <bruno@clisp.org>
19796
19797         Tolerate declared but missing pipe2 syscall.
19798         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
19799         available.
19800         * lib/unistd.in.h (pipe2): If the function is already present,
19801         override it.
19802         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
19803         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
19804         Reported by Paolo Bonzini.
19805
19806 2009-08-23  Bruno Haible  <bruno@clisp.org>
19807
19808         * lib/pipe2.c (pipe2): Move #ifs inside function.
19809
19810 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19811
19812         quotearg: document limitations of quote_these_too
19813         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
19814         those limitations are created.
19815         * lib/quotearg.h (set_char_quoting): Document that digits and
19816         letters that are special after backslash are not permitted.
19817         (quotearg_char): Cross-reference set_char_quoting documentation.
19818
19819 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
19820
19821         quotearg: implement custom_quoting_style
19822         * lib/quotearg.c: (struct quoting_options): Add left_quote and
19823         right_quote fields.
19824         (set_custom_quoting): New public function.
19825         (quotearg_buffer_restyled): Add left_quote and right_quote
19826         arguments, handle them very much like locale quoting, and update
19827         all uses.
19828         (quotearg_n_custom): New public function.
19829         (quotearg_n_custom_mem): New public function.
19830         (quotearg_custom): New public function.
19831         (quotearg_custom_mem): New public function.
19832         * lib/quotearg.h: Prototype and document new public functions.
19833         (enum quoting_style): For escape_quoting_style and
19834         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
19835         ignored even though they're otherwise like c_quoting_style.
19836         Add custom_quoting_style member and document with comparison to
19837         clocale_quoting_style.
19838         * tests/test-quotearg.c (custom_quotes): New array.
19839         (custom_results): New array.
19840         (main): Extend to test custom quoting.
19841
19842 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19843
19844         quotearg: fix right quote escaping when it's in quote_these_too
19845         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
19846         quote, be sure to prepend only one backslash.
19847         * tests/test-quotearg.c (use_quote_double_quotes): New function.
19848         (main): Test it.
19849
19850 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19851
19852         quotearg-tests: test escaping of embedded locale quotes
19853         * tests/test-quotearg.c (struct result_strings): Add member for
19854         new input.
19855         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
19856         (inputs): Add new input.
19857         (results_g): Add expected results.
19858         (flag_results): Likewise.
19859         (locale_results): Likewise.
19860         (compare_strings): Check those.
19861
19862 2009-08-23  Bruno Haible  <bruno@clisp.org>
19863
19864         Tests for module 'dup3'.
19865         * modules/dup3-tests: New file.
19866         * tests/test-dup3.c: New file.
19867
19868         New module 'dup3'.
19869         * lib/unistd.in.h (dup3): New declaration.
19870         * lib/dup3.c: New file.
19871         * m4/dup3.m4: New file.
19872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
19873         HAVE_DUP3.
19874         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
19875         * modules/dup3: New file.
19876         * doc/glibc-functions/dup3.texi: Mention the new module.
19877
19878 2009-08-23  Bruno Haible  <bruno@clisp.org>
19879
19880         Tweak the dup2 test.
19881         * tests/test-dup2.c (main): Create the test file empty. Verify that an
19882         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
19883         the test file is still empty. Fix argument order of lseek.
19884
19885 2009-08-23  Bruno Haible  <bruno@clisp.org>
19886
19887         Avoid test link errors when the modules getopt-gnu, gettext are used.
19888         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
19889         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19890
19891 2009-08-23  Bruno Haible  <bruno@clisp.org>
19892
19893         Fix getdtablesize() on mingw.
19894         * lib/getdtablesize.c (getdtablesize): Implement differently.
19895         * lib/unistd.in.h (getdtablesize): Improve comment.
19896
19897 2009-08-23  Bruno Haible  <bruno@clisp.org>
19898
19899         New module 'mkostemp'.
19900         Based on Ulrich Drepper's 2007-08-10 change in glibc.
19901         * lib/stdlib.in.h (mksotemp): New declaration.
19902         * lib/mkostemp.c: New file, from glibc with modifications.
19903         * lib/tempname.h (GT_FILE): Remove outdated comment.
19904         (gen_tempname): Add flags argument.
19905         * lib/tempname.c (__GT_BIGFILE): Remove macro.
19906         (__GT_FILE): Map to 1.
19907         (small_open, large_open): Remove macros.
19908         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
19909         * lib/mkstemp.c (mkstemp): Update.
19910         * lib/mkdtemp.c (mkdtemp): Likewise.
19911         * m4/mkostemp.m4: New file.
19912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
19913         HAVE_MKOSTEMP.
19914         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
19915         HAVE_MKOSTEMP.
19916         * modules/mkostemp: New file, based on modules/mkstemp.
19917         * doc/glibc-functions/mkostemp.texi: Mention the new module.
19918         * NEWS: Mention the change.
19919
19920 2009-08-23  Bruno Haible  <bruno@clisp.org>
19921
19922         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
19923         Reported by Eric Blake.
19924
19925 2009-08-23  Bruno Haible  <bruno@clisp.org>
19926
19927         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
19928         Reported by Eric Blake.
19929
19930 2009-08-23  Bruno Haible  <bruno@clisp.org>
19931
19932         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
19933         * modules/pipe2 (Depends-on): Likewise.
19934
19935 2009-08-23  Eric Blake  <ebb9@byu.net>
19936
19937         fcntl-h: add O_TTY_INIT support
19938         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
19939         * tests/test-fcntl-h.c (o): Test it.
19940         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19941
19942         fcntl-h: rename from fcntl, in preparation for fcntl(2)
19943         * modules/fcntl: Move <fcntl.h> header replacement...
19944         * modules/fcntl-h: ...to new name, so as not to collide with
19945         like-named function.
19946         * tests/test-fcntl.c: Rename...
19947         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
19948         * modules/fcntl-tests: Rename...
19949         * modules/fcntl-h-tests: ...to this.  Update test file name.
19950         * modules/chdir-long (Depends-on): Update clients.
19951         * modules/chdir-safer (Depends-on): Likewise.
19952         * modules/fcntl-safer (Depends-on): Likewise.
19953         * modules/fts (Depends-on): Likewise.
19954         * modules/mkancesdirs (Depends-on): Likewise.
19955         * modules/mkdir-p (Depends-on): Likewise.
19956         * modules/open (Depends-on): Likewise.
19957         * modules/savewd (Depends-on): Likewise.
19958         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
19959         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19960
19961 2009-08-22  Bruno Haible  <bruno@clisp.org>
19962
19963         * modules/binary-io (License): Relicense under LGPL.
19964         * modules/pipe2 (License): Likewise.
19965
19966 2009-08-22  Bruno Haible  <bruno@clisp.org>
19967
19968         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
19969         return value.
19970         * lib/pipe-filter-gi.c (filter_init): Likewise.
19971         Reported by Eric Blake.
19972
19973 2009-08-22  Bruno Haible  <bruno@clisp.org>
19974
19975         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
19976         * modules/pipe (Depends-on): Add pipe2.
19977
19978 2009-08-22  Bruno Haible  <bruno@clisp.org>
19979
19980         Tests for module 'pipe2'.
19981         * modules/pipe2-tests: New file.
19982         * tests/test-pipe2.c: New file.
19983
19984         New module 'pipe2'.
19985         * lib/unistd.in.h (pipe2): New declaration.
19986         * lib/pipe2.c: New file.
19987         * m4/pipe2.m4: New file.
19988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
19989         HAVE_PIPE2.
19990         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
19991         * modules/pipe2: New file.
19992         * doc/glibc-functions/pipe2.texi: Mention the new module.
19993
19994 2009-08-22  Bruno Haible  <bruno@clisp.org>
19995
19996         Reference some new glibc functions.
19997         * doc/glibc-functions/accept4.texi: New file.
19998         * doc/glibc-functions/dup3.texi: New file.
19999         * doc/glibc-functions/mkostemp.texi: New file.
20000         * doc/glibc-functions/pipe2.texi: New file.
20001         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
20002         (Glibc sys/socket.h): Refer to accept4.
20003         (Glibc unistd.h): Refer to dup3, pipe2.
20004         Reported by Eric Blake.
20005
20006 2009-08-22  Jim Meyering  <meyering@redhat.com>
20007             Bruno Haible  <bruno@clisp.org>
20008
20009         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
20010         This makes it so packages using automake-1.11's silent-rules option
20011         can print e.g., a single "GEN    configmake.h" line, rather than
20012         the 30+ statements that perform the job.  If you want to see the
20013         actual commands, you can still run "make V=1".
20014         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
20015         so that make output is abbreviated when those variables are defined
20016         appropriately.
20017         * modules/argz: Likewise.
20018         * modules/arpa_inet: Likewise.
20019         * modules/byteswap: Likewise.
20020         * modules/configmake: Likewise.
20021         * modules/dirent: Likewise.
20022         * modules/errno: Likewise.
20023         * modules/fcntl: Likewise.
20024         * modules/float: Likewise.
20025         * modules/fnmatch: Likewise.
20026         * modules/getopt-posix: Likewise.
20027         * modules/glob: Likewise.
20028         * modules/iconv_open: Likewise.
20029         * modules/inttypes: Likewise.
20030         * modules/localcharset: Likewise.
20031         * modules/locale: Likewise.
20032         * modules/math: Likewise.
20033         * modules/netdb: Likewise.
20034         * modules/netinet_in: Likewise.
20035         * modules/poll: Likewise.
20036         * modules/posix_spawnp-tests: Likewise.
20037         * modules/sched: Likewise.
20038         * modules/search: Likewise.
20039         * modules/selinux-h: Likewise.
20040         * modules/signal: Likewise.
20041         * modules/spawn: Likewise.
20042         * modules/stdarg: Likewise.
20043         * modules/stdbool: Likewise.
20044         * modules/stddef: Likewise.
20045         * modules/stdint: Likewise.
20046         * modules/stdio: Likewise.
20047         * modules/stdlib: Likewise.
20048         * modules/string: Likewise.
20049         * modules/strings: Likewise.
20050         * modules/sys_file: Likewise.
20051         * modules/sys_ioctl: Likewise.
20052         * modules/sys_select: Likewise.
20053         * modules/sys_socket: Likewise.
20054         * modules/sys_stat: Likewise.
20055         * modules/sys_time: Likewise.
20056         * modules/sys_times: Likewise.
20057         * modules/sys_utsname: Likewise.
20058         * modules/sys_wait: Likewise.
20059         * modules/sysexits: Likewise.
20060         * modules/time: Likewise.
20061         * modules/unistd: Likewise.
20062         * modules/wchar: Likewise.
20063         * modules/wctype: Likewise.
20064
20065 2009-08-22  Jim Meyering  <meyering@redhat.com>
20066
20067         announce-gen: detect write failure
20068         * build-aux/announce-gen: Add Coda at end.
20069         Remove equivalent-but-more-verbose block at top.
20070
20071 2009-08-19  Akim Demaille  <demaille@gostai.com>
20072
20073         bootstrap: --help to stdout.
20074         * bootstrap (usage): Don't send --help to stderr.
20075         Use a here doc instead of a long string.
20076
20077 2009-08-21  Eric Blake  <ebb9@byu.net>
20078
20079         test-popen-safer: split from test-popen
20080         * tests/test-popen.c (main): Move...
20081         * tests/test-popen.h: ...into new file.
20082         * tests/test-popen-safer2.c: New file.
20083         * modules/popen-tests (Files): Add test-popen.h.
20084         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
20085         Suggested by Bruno Haible.
20086
20087         test-fcntl-safer: split from test-open
20088         * tests/test-open.c (main): Move...
20089         * tests/test-open.h: ...into new file.
20090         * tests/test-fcntl-safer.c: New file.
20091         * modules/open-tests (Files): Add test-open.h.
20092         * modules/fcntl-safer-tests: New file.
20093         Suggested by Bruno Haible.
20094
20095         test-fopen-safer: split from test-fopen
20096         * tests/test-fopen.c (main): Move...
20097         * tests/test-fopen.h: ...into new file.
20098         * tests/test-fopen-safer.c: New file.
20099         * modules/fopen-tests (Files): Add test-fopen.h.
20100         * modules/fopen-safer-tests: New file.
20101         Suggested by Bruno Haible.
20102
20103 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
20104
20105         popen-safer: test O_CLOEXEC at run-time.
20106         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
20107
20108 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
20109
20110         fcntl: move more flags to the header
20111         * lib/cloexec.c: Do not define FD_CLOEXEC here.
20112         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
20113         * lib/fcntl.in.h: Do both things here.
20114
20115 2009-08-21  Jim Meyering  <meyering@redhat.com>
20116
20117         consistently remove $@-t before redirecting to it
20118         * modules/argz: Remove $@-t and $@ before redirecting to the former.
20119         * modules/alloca-opt: Likewise.
20120         * modules/byteswap: Likewise.
20121         * modules/fnmatch: Likewise.
20122         * modules/getopt-posix: Likewise.
20123         * modules/glob: Likewise.
20124         * modules/poll: Likewise.
20125         * modules/posix_spawnp-tests: Likewise.
20126         * modules/sys_socket: Likewise.
20127         * modules/sysexits: Likewise.
20128
20129 2009-08-21  Eric Blake  <ebb9@byu.net>
20130
20131         popen: simplify access to original popen
20132         * lib/popen.c (rpl_popen): No need to worry about popen being a
20133         macro.
20134         Reported by Bruno Haible.
20135
20136 2009-08-20  Eric Blake  <ebb9@byu.net>
20137
20138         build: avoid some compiler warnings
20139         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
20140         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
20141         type.
20142         (new_exclude_segment, excluded_file_pattern_p)
20143         (excluded_file_name_p): Reduce scope.
20144         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
20145         old-style declaration.
20146
20147 2009-08-20  Simon Josefsson  <simon@josefsson.org>
20148
20149         * tests/test-exclude1.sh: Handle Windows EOL.
20150         * tests/test-exclude2.sh: Likewise.
20151         * tests/test-exclude3.sh: Likewise.
20152         * tests/test-exclude4.sh: Likewise.
20153         * tests/test-exclude5.sh: Likewise.
20154         * tests/test-exclude6.sh: Likewise.
20155         * tests/test-exclude7.sh: Likewise.
20156
20157 2009-08-19  Akim Demaille  <demaille@gostai.com>
20158
20159         bootstrap: find sha1sum when named gsha1sum.
20160         * bootstrap (find_tool): New.
20161         ($SHA1SUM): New.
20162         Use it.
20163
20164 2009-08-20  Jim Meyering  <meyering@redhat.com>
20165
20166         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
20167         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
20168         expression that converts "." in a file name to "\." in the resulting
20169         regexp.  Start with a dummy statement, so that prior shell variable
20170         definitions are expanded portably.  Reported by Simon Josefsson.
20171
20172 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
20173
20174         Fix polling for writeability of a screen buffer.
20175         * lib/poll.c: Distinguish input and screen buffers for the
20176         Win32 implementation.
20177         * lib/select.c: Likewise.
20178
20179 2009-08-19  Eric Blake  <ebb9@byu.net>
20180
20181         popen-safer: prevent popen from clobbering std descriptors
20182         * modules/popen-safer: New file.
20183         * lib/popen-safer.c: Likewise.
20184         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
20185         * lib/stdio--.h (popen): Provide override.
20186         * lib/stdio-safer.h (popen_safer): Provide declaration.
20187         * tests/test-popen.c (includes): Partially test this.
20188         * modules/popen-safer-tests: New file, for more tests.
20189         * tests/test-popen-safer.c: Likewise.
20190         * MODULES.html.sh (file stream based Input/Output): Mention it.
20191
20192         tests: test some of the *-safer modules
20193         * modules/fopen-safer (Depends-on): Add fopen.
20194         * modules/fcntl-safer (Depends-on): Add fcntl.
20195         * modules/stdlib-safer (Depends-on): Add stdlib.
20196         (configure.ac): Set indicator.
20197         * modules/unistd-safer (configure.ac): Likewise.
20198         * modules/tmpfile-safer (configure.ac): Likewise.
20199         (Depends-on): Add tmpfile.
20200         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
20201         active.
20202         * tests/test-fopen.c (includes): Test safer versions when they are
20203         in use.
20204         * tests/test-open.c (includes): Likewise.
20205
20206         popen: fix cygwin 1.5 bug when stdin closed
20207         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
20208         * modules/popen: New file.
20209         * modules/popen-tests: Likewise.
20210         * tests/test-popen.c: Likewise.
20211         * m4/popen.m4: Likewise.
20212         * lib/popen.c: Likewise.
20213         * lib/stdio.in.h (popen): New declaration.
20214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
20215         * modules/stdio (Makefile.am): Likewise.
20216         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
20217
20218 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
20219
20220         maint.mk: give full control over update-copyright exclusions
20221         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
20222         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
20223         (update-copyright): Don't force inclusion of top-level
20224         ChangeLog.  Don't force exclusion of all COPYING files, but make
20225         them the default exclusion instead.
20226
20227 2009-08-16  Bruno Haible  <bruno@clisp.org>
20228
20229         Fix test failures on Solaris 10.
20230         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
20231         tests when Solaris iconv() is used.
20232         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
20233         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
20234         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
20235         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
20236         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
20237
20238 2009-08-16  Bruno Haible  <bruno@clisp.org>
20239
20240         Fix test failures on Solaris 10.
20241         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
20242         'tr' program and pass it as first argument.
20243         * tests/test-pipe-filter-gi1.sh: Likewise.
20244         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
20245         program as first argument.
20246         * tests/test-pipe-filter-gi1.c (main): Likewise.
20247
20248 2009-08-16  Eric Blake  <ebb9@byu.net>
20249
20250         fpurge: fix previous commits
20251         * modules/fpurge (Makefile.am): Make replacement conditional,
20252         partially reverting 2007-04-29 change; missed in previous
20253         attempt.
20254         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
20255         is missing.
20256
20257 2009-08-16  Bruno Haible  <bruno@clisp.org>
20258
20259         Clarify fpurge's effect on the file position.
20260         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
20261         * tests/test-fpurge.c (main): Make a second pass for checking the file
20262         position.
20263
20264 2009-08-16  Bruno Haible  <bruno@clisp.org>
20265
20266         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
20267         declaration of fpurge is missing.
20268         * tests/test-fpurge.c (main): Check that the file has not more contents
20269         than expected. Close the file before removing it.
20270
20271 2009-08-15  Eric Blake  <ebb9@byu.net>
20272
20273         fpurge: don't wrap working cygwin implementation
20274         * lib/fpurge.c (fpurge): Fix comment typo.
20275         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
20276         1.7 to avoid replacement.
20277         * tests/test-fpurge.c (main): Enhance test.
20278
20279 2009-08-15  Eric Blake  <ebb9@byu.net>
20280         and Jim Meyering  <meyering@redhat.com>
20281
20282         test-update-copyright: skip if perl is insufficient
20283         * tests/test-update-copyright.sh: Failure to run maintainer tool
20284         should not cause testsuite failure on cygwin 1.5.
20285
20286 2009-08-14  Eric Blake  <ebb9@byu.net>
20287
20288         doc: mention more functions added in cygwin 1.7.0
20289         * doc/posix-headers/limits.texi (limits.h): Update for recent
20290         cygwin additions.
20291         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
20292         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20293         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
20294         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
20295         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
20296
20297 2009-08-14  Eric Blake  <ebb9@byu.net>
20298
20299         maint.mk: simplify update-copyright rule
20300         * top/maint.mk (update-copyright-local): Delete, and document how
20301         to do it in cfg.mk instead.
20302         (update-copyright-exclude-regexp): Delete, and document how to do
20303         it in .x-update-copyright instead.
20304         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
20305         exclude ChangeLog.
20306
20307 2009-08-14  Bruno Haible  <bruno@clisp.org>
20308
20309         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
20310
20311 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
20312
20313         maint.mk: support update-copyright-env
20314         * top/maint.mk (update-copyright-env): Define place-holder.
20315         (update-copyright): Expand $(update-copyright-env) before
20316         invoking update-copyright.
20317
20318 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
20319
20320         update-copyright: implement forced reformatting
20321         * build-aux/update-copyright: Implement and document
20322         UPDATE_COPYRIGHT_FORCE.
20323         * tests/test-update-copyright.sh: Test it.
20324
20325 2009-08-14  Eric Blake  <ebb9@byu.net>
20326         and Bruno Haible  <bruno@clisp.org>
20327
20328         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
20329         * tests/test-locale.c: Revert previous patch related to NULL.
20330         * tests/test-stdio.c: Likewise.
20331         * tests/test-stdlib.c: Likewise.
20332         * tests/test-string.c: Likewise.
20333         * tests/test-unistd.c: Likewise.
20334         * modules/time-tests (Depends-on): Add verify.
20335         * modules/wchar-tests (Depends-on): Likewise.
20336         * tests/test-time.c: Test for NULL compliance.
20337         * tests/test-wchar.c: Likewise.
20338         * modules/locale (Depends-on): Add stddef.
20339         * modules/stdio (Depends-on): Likewise.
20340         * modules/stdlib (Depends-on): Likewise.
20341         * modules/string (Depends-on): Likewise.
20342         * modules/time (Depends-on): Likewise.
20343         * modules/unistd (Depends-on): Likewise.
20344         * modules/wchar (Depends-on): Likewise.
20345         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
20346         * lib/stdlib.in.h (includes): Likewise.
20347         * lib/string.in.h (includes): Likewise.
20348         * lib/time.in.h (includes): Likewise.
20349         * lib/unistd.in.h (includes): Likewise.
20350         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
20351         replaced.
20352         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20353         * m4/stddef_h.m4: New file.
20354         * modules/stddef: Likewise.
20355         * lib/stddef.in.h: Likewise.
20356         * modules/stddef-tests: Likewise.
20357         * tests/test-stddef.c: Likewise.
20358         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
20359         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
20360         * doc/posix-headers/locale.texi (locale.h): Likewise.
20361         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
20362         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20363         * doc/posix-headers/string.texi (string.h): Likewise.
20364         * doc/posix-headers/time.texi (time.h): Likewise.
20365         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
20366         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
20367
20368 2009-08-14  Eric Blake  <ebb9@byu.net>
20369
20370         doc: improve git diff of texinfo files
20371         * .gitattributes: Add rule for *.texi files, with hint on how to
20372         use it.
20373         Copied from m4, and based on a report by Bruno Haible.
20374
20375 2009-08-14  Bruno Haible  <bruno@clisp.org>
20376
20377         Disable multithread support by default on Cygwin 1.5.x for real.
20378         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
20379
20380 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
20381
20382         update-copyright: much ado about intervals
20383         * build-aux/update-copyright: Implement and document
20384         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
20385         of copyright year intervals.
20386         Also, document UPDATE_COPYRIGHT_YEAR.
20387         * tests/test-update-copyright.sh: Test it.
20388
20389         update-copyright: convert 2-digit to 4-digit years
20390         * build-aux/update-copyright: Implement and document.
20391         * tests/test-update-copyright.sh: Update.
20392
20393 2009-08-14  Jim Meyering  <meyering@redhat.com>
20394
20395         test-exclude: avoid coreutils "make check" failure
20396         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
20397         just as in test-argmatch.c.
20398
20399 2009-08-13  Eric Blake  <ebb9@byu.net>
20400
20401         test-dup2: fix bad assumption
20402         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
20403         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
20404
20405         test-version-etc: fix CRLF portability issue
20406         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
20407         recognize \r.
20408         * tests/test-argp-version-etc-1.sh: Likewise.
20409
20410         getopt: update client modules
20411         * modules/argp (Depends-on): Use getopt-gnu.
20412         * modules/git-merge-changelog (Depends-on): Likewise.
20413         * modules/long-options (Depends-on): Likewise.
20414         * modules/xstrtol (Depends-on): Likewise.
20415
20416 2009-08-13  Simon Josefsson  <simon@josefsson.org>
20417
20418         * tests/test-version-etc.sh: Don't fail on different
20419         project/version.  Don't fail on CRLF differences.  Rewrite to use
20420         multiple -e instead of multiple sed forks, suggested by Eric Blake
20421         <ebb9@byu.net>.
20422         * tests/test-argp-version-etc-1.sh: Likewise.
20423
20424 2009-08-13  Simon Josefsson  <simon@josefsson.org>
20425
20426         * tests/test-version-etc.sh: Don't fail on different
20427         project/version.
20428
20429 2009-08-12  Bruno Haible  <bruno@clisp.org>
20430
20431         Tests for modules 'getopt-posix', 'getopt-gnu'.
20432         * modules/getopt-posix-tests: New file.
20433         * tests/test-getopt.c: New file.
20434         * tests/test-getopt.h: New file.
20435         * tests/test-getopt_long.h: New file.
20436
20437         New modules 'getopt-posix', 'getopt-gnu'.
20438         * modules/getopt-gnu: New file, renamed from modules/getopt.
20439         * modules/getopt-posix: New file.
20440         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
20441         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
20442         (gl_GETOPT): Remove macro.
20443         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
20444         Disable the test against BSD systems that declare optreset. Test
20445         against mingw bug. Test against lack of support of optional arguments
20446         on many platforms.
20447         * doc/glibc-headers/getopt.texi: Update module name and list of
20448         relevant platforms.
20449         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
20450         'getopt-gnu' and more portability problems.
20451         * NEWS: Mention the changes.
20452
20453 2009-08-12  Bruno Haible  <bruno@clisp.org>
20454
20455         Ensure that optarg etc. get declared by <unistd.h>.
20456         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
20457         AC_USE_SYSTEM_EXTENSIONS.
20458         * modules/getopt (Depends-on): Add 'extensions'.
20459
20460 2009-08-12  Bruno Haible  <bruno@clisp.org>
20461
20462         Avoid test link errors.
20463         * modules/pipe-filter-ii-tests (Makefile.am): Define
20464         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
20465         * modules/pipe-filter-gi-tests (Makefile.am): Define
20466         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
20467         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20468
20469 2009-08-12  Bruno Haible  <bruno@clisp.org>
20470
20471         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
20472         gl_GETOPT_SUBSTITUTE before.
20473         (gl_GETOPT): Use it.
20474         * m4/argp.m4 (gl_ARGP): Update.
20475         Reported by Sergey Poznyakoff.
20476
20477         * m4/getopt.m4: Reorder macros.
20478         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
20479         (gl_GETOPT_SUBSTITUTE): Remove macro.
20480
20481 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20482
20483         Minor improvement in gitlog-to-changelog
20484
20485         * build-aux/gitlog-to-changelog: New option `--format' makes
20486         output format string configurable.
20487
20488 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20489
20490         Optimize exclude: use hash tables for non-wildcard patterns.
20491
20492         * lib/exclude.c: Include hash.h and mbuiter.h
20493         (struct exclude_pattern, exclude_segment): New data types.
20494         (struct exclude): Rewrite.
20495         (fnmatch_pattern_has_wildcards): New function.
20496         (new_exclude_segment, free_exclude_segment): New functions.
20497         (excluded_file_pattern_p, excluded_file_name_p): New functions.
20498         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
20499         * lib/exclude.h (is_fnmatch_pattern): New prototype.
20500         * modules/exclude: Depend on hash and mbuiter.
20501
20502         * modules/exclude-tests: New file.
20503         * tests/test-exclude.c: New file.
20504         * tests/test-exclude1.sh: New file.
20505         * tests/test-exclude2.sh: New file.
20506         * tests/test-exclude3.sh: New file.
20507         * tests/test-exclude4.sh: New file.
20508         * tests/test-exclude5.sh: New file.
20509         * tests/test-exclude6.sh: New file.
20510         * tests/test-exclude7.sh: New file.
20511
20512 2009-08-12  Bruno Haible  <bruno@clisp.org>
20513
20514         Ensure that getopt() gets declared by <unistd.h>.
20515         * lib/unistd.in.h: Conditionally include getopt.h.
20516         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
20517         Set GNULIB_UNISTD_H_GETOPT.
20518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20519         GNULIB_UNISTD_H_GETOPT.
20520         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
20521
20522 2009-08-12  Bruno Haible  <bruno@clisp.org>
20523
20524         Clarify logic.
20525         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
20526         gl_replace_getopt instead of GETOPT_H.
20527
20528 2009-08-12  Bruno Haible  <bruno@clisp.org>
20529
20530         * m4/getopt.m4: Add comments.
20531
20532 2009-08-12  Bruno Haible  <bruno@clisp.org>
20533
20534         Disable multithread support by default on Cygwin 1.5.x.
20535         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
20536         set gl_use_threads=no if not specified otherwise.
20537
20538 2009-08-11  Bruno Haible  <bruno@clisp.org>
20539
20540         Avoid compilation error on NetBSD 5.0.
20541         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
20542         * tests/test-stdio.c: Likewise.
20543         * tests/test-stdlib.c: Likewise.
20544         * tests/test-string.c: Likewise.
20545         * tests/test-unistd.c: Likewise.
20546         Reported by Greg Troxel <gdt@ir.bbn.com>
20547         at <https://savannah.gnu.org/support/?106973>.
20548
20549 2009-08-11  Bruno Haible  <bruno@clisp.org>
20550
20551         * modules/dup2-tests (Depends-on): Remove close.
20552
20553         Undo 2009-07-19 commit.
20554         * modules/acl-tests (Depends-on): Remove close.
20555         * modules/binary-io-tests (Depends-on): Likewise.
20556         * modules/closein-tests (Depends-on): Likewise.
20557         * modules/flock-tests (Depends-on): Likewise.
20558         * modules/fsync-tests (Depends-on): Likewise.
20559         * modules/lseek-tests (Depends-on): Likewise.
20560         * modules/pipe-tests (Depends-on): Likewise.
20561         * modules/posix_spawn-tests (Depends-on): Likewise.
20562         * modules/posix_spawnp-tests (Depends-on): Likewise.
20563         * modules/stat-time-tests (Depends-on): Likewise.
20564         * modules/yesno-tests (Depends-on): Likewise.
20565
20566 2009-08-10  Bruno Haible  <bruno@clisp.org>
20567
20568         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
20569
20570 2009-08-10  Bruno Haible  <bruno@clisp.org>
20571
20572         Fix a gcc warning.
20573         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
20574
20575 2009-08-10  Bruno Haible  <bruno@clisp.org>
20576
20577         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
20578         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
20579         not only the first time.
20580         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
20581         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
20582         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
20583         is 1, not only the the first time.
20584
20585 2009-08-10  Bruno Haible  <bruno@clisp.org>
20586
20587         Make it possible to use module 'gethostname' without module 'close'.
20588         * lib/unistd.in.h (close): Evoke a link error only if
20589         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20591         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20592         * modules/unistd (Makefile.am): Substitute
20593         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20594         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
20595         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20596         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
20597         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20598         * modules/sys_ioctl (Makefile.am): Substitute
20599         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20600         * modules/socket (configure.ac): On native Windows, set
20601         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
20602         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20603         Reported by Sam Steingold <sds@gnu.org>.
20604
20605 2009-08-10  Bruno Haible  <bruno@clisp.org>
20606
20607         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
20608         * modules/ioctl (configure.ac): Likewise.
20609
20610 2009-08-10  Bruno Haible  <bruno@clisp.org>
20611
20612         Avoid collision between gnulib wrapper and libintl wrapper.
20613         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
20614         already defined in intl/printf.c.
20615         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
20616         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
20617
20618 2009-08-09  Bruno Haible  <bruno@clisp.org>
20619
20620         Make <sys/select.h> really self-contained, also on Solaris 10.
20621         * lib/sys_select.in.h: Include <string.h>.
20622         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
20623         Solaris 10 problem.
20624         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
20625         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
20626         Reported by Jim Meyering.
20627
20628 2009-08-09  Bruno Haible  <bruno@clisp.org>
20629
20630         Avoid warnings from 'aclocal' that are due to a use of macro name
20631         AM_XGETTEXT_OPTION that is not defined in automake.
20632         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
20633         automake.
20634         * modules/error (configure.ac): Likewise.
20635         * modules/propername (configure.ac): Likewise.
20636         * modules/vasprintf (configure.ac): Likewise.
20637         * modules/verror (configure.ac): Likewise.
20638         * modules/xprintf (configure.ac): Likewise.
20639         * modules/xvasprintf (configure.ac): Likewise.
20640
20641 2009-08-08  Bruno Haible  <bruno@clisp.org>
20642
20643         Avoid compilation error in C++ mode.
20644         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
20645         Reported by Sam Steingold <sds@gnu.org>.
20646
20647 2009-08-08  Bruno Haible  <bruno@clisp.org>
20648
20649         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
20650         for the various Unix platforms.
20651         * doc/posix-headers/limits.texi: Update platforms list regarding
20652         HOST_NAME_MAX.
20653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20654
20655 2009-08-07  Jim Meyering  <meyering@redhat.com>
20656
20657         selinux-at: fix typo in a comment
20658         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
20659         Spotted by Paolo Bonzini.
20660
20661         selinux-at: remove redundant m4 code, add documentation
20662         * modules/selinux-at (configure.ac): Remove redundant code.
20663         LIB_SELINUX is already set via the dependent module, selinux-h.
20664         (Include): Add quotes around selinux-at.h.
20665         * lib/selinux-at.h: Add documentation.
20666         Reported by Bruno Haible in
20667         http://marc.info/?l=gnulib-bug&m=124958988300749
20668
20669 2009-08-07  Bruno Haible  <bruno@clisp.org>
20670
20671         Avoid link error on MacOS X 10.3 and 10.4.
20672         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
20673         on non-ELF systems.
20674         * lib/argp-pv.c (argp_program_version): Likewise.
20675         Reported by Simon Josefsson.
20676
20677 2009-08-07  Simon Josefsson  <simon@josefsson.org>
20678
20679         * tests/test-version-etc.sh: Use $EXEEXT.
20680
20681 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
20682
20683         update-copyright: update documentation to point to maint.mk
20684         * build-aux/update-copyright: Here.
20685
20686 2009-08-06  Jim Meyering  <meyering@redhat.com>
20687
20688         maint.mk: support update-copyright-local
20689         * top/maint.mk (update-copyright-local): Define place-holder.
20690         (update-copyright): Depend on $(update-copyright-local).
20691
20692 2009-08-06  Jim Meyering  <meyering@redhat.com>
20693
20694         selinux-at: new module
20695         Initially written for coreutils, this module will soon be
20696         used by findutils, too.
20697         * MODULES.html.sh [Misc]: Add selinux-at.
20698         * lib/selinux-at.h: New file, from coreutils.
20699         * lib/selinux-at.c: Likewise.
20700         * modules/selinux-at: Likewise.
20701         (License): Change from LGPL to GPL, since it depends
20702         on the GPL'd openat module.
20703
20704         doc: update README
20705         * README: Remove references to cogito.
20706         Remove cvs-repo-updating instructions from 2007.
20707         Don't imply that CVS is better if you have limited disk space.
20708
20709 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20710
20711         update-copyright: support C-style comments
20712         * build-aux/update-copyright: Implement and document.
20713         * tests/test-update-copyright.sh: Test.
20714
20715 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20716
20717         update-copyright: support omitted "(C)"
20718         * build-aux/update-copyright: Implement and document.  Also,
20719         allow variable whitespace before "(C)".
20720         * tests/test-update-copyright.sh: Test.
20721
20722 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20723
20724         update-copyright: don't trip on non-FSF copyright statements
20725         * build-aux/update-copyright: Fix so that the first correctly
20726         formatted FSF copyright statement is recognized no matter what
20727         appears before it.  Update documentation.
20728         * tests/test-update-copyright.sh: Test that.
20729
20730 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20731
20732         update-copyright: clean up code a little
20733         * build-aux/update-copyright: Append "_re" to the name of any
20734         variable holding a regular expression.
20735         Replace "old" and "new" with "stmt" in variable names.
20736         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
20737         handled correctly.
20738         Format code more consistently.
20739
20740 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20741
20742         update-copyright-tests: improve portability
20743         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
20744         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
20745
20746 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20747
20748         update-copyright: support @copyright{} and &copy;
20749         * build-aux/update-copyright: Implement and document.
20750         * tests/test-update-copyright.sh: Test.
20751
20752 2009-08-04  Jim Meyering  <meyering@redhat.com>
20753
20754         update-copyright-tests: correctly test EOL=\r\n handling
20755         * tests/test-update-copyright.sh: Put \r at the end of some lines
20756         for the dos-eol tests.  Based on a patch by Joel E. Denny.
20757
20758         maint.mk: make update-copyright exclusion list more configurable
20759         * top/maint.mk (update-copyright): Default to excluding COPYING,
20760         but allow an override, in case someone does want to update that file.
20761
20762         maint.mk: don't update copyright date in COPYING
20763         * top/maint.mk (update-copyright): Exclude COPYING.
20764
20765         maint.mk: add a copyright-updating rule
20766         * top/maint.mk (update-copyright): New rule.
20767         Derived from coreutils/Makefile.am.
20768
20769         update-copyright: rename some variables
20770         * build-aux/update-copyright: Rename a few variables for clarity.
20771         Tweak syntax.  List Joel E. Denny as coauthor.
20772
20773 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20774
20775         update-copyright: fix bug for 2-digit last year and add tests
20776         * build-aux/update-copyright: Fix bug.
20777         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
20778         specified.
20779         * modules/update-copyright-tests: New
20780         * tests/test-update-copyright.sh: New.
20781
20782 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20783
20784         update-copyright: handle leading tabs in line prefix
20785         * build-aux/update-copyright: Count leading tabs as 8 spaces
20786         when computing margin.  This helps with the formatting of
20787         ChangeLogs, for example.
20788         Fix documentation a little.
20789
20790 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20791
20792         update-copyright: support EOL=\r\n
20793         * build-aux/update-copyright: Implement that.
20794
20795 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20796
20797         update-copyright: automatically format copyright statements
20798         * build-aux/update-copyright: Implement that.
20799         Also, be a little more predictable and safer by always failing
20800         when the full copyright format is not perfectly recognized as an
20801         unbroken whole.  Discussed at
20802         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
20803         Rewrite documentation.
20804
20805 2009-08-03  Bruno Haible  <bruno@clisp.org>
20806
20807         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
20808
20809 2009-08-02  Bruno Haible  <bruno@clisp.org>
20810
20811         Tests for module 'uname'.
20812         * modules/uname-tests: New file.
20813         * tests/test-uname.c: New file.
20814
20815         New module 'uname'.
20816         * lib/uname.c: New file.
20817         * m4/uname.m4: New file.
20818         * modules/uname: New file.
20819         * doc/posix-functions/uname.texi: Mention the new module.
20820
20821 2009-08-02  Bruno Haible  <bruno@clisp.org>
20822
20823         Tests for module 'sys_utsname'.
20824         * modules/sys_utsname-tests: New file.
20825         * tests/test-sys_utsname.c: New file.
20826
20827         New module 'sys_utsname'.
20828         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
20829         * m4/sys_utsname_h.m4: New file.
20830         * modules/sys_utsname: New file.
20831         * doc/posix-headers/sys_utsname.texi: Mention the new module.
20832
20833 2009-08-02  Bruno Haible  <bruno@clisp.org>
20834
20835         Implicitly initialize the sockets library.
20836         * lib/gethostname.c: Include sockets.h.
20837         (rpl_gethostname): Invoke gl_sockets_startup.
20838         * lib/socket.c: Include sockets.h.
20839         (rpl_socket): Invoke gl_sockets_startup.
20840         * modules/gethostname (Depends-on): Add sockets.
20841         * modules/socket (Depends-on): Likewise.
20842         * tests/test-poll.c: Don't include sockets.h.
20843         (main): Don't invoke gl_sockets_startup.
20844         * tests/test-select.c: Don't include sockets.h.
20845         (main): Don't invoke gl_sockets_startup.
20846
20847 2009-08-02  Bruno Haible  <bruno@clisp.org>
20848
20849         Allow multiple calls to gl_sockets_startup.
20850         * lib/sockets.c (initialized_sockets_version): New variable.
20851         (gl_sockets_startup): Do nothing if already called for this or a higher
20852         version.
20853         (gl_sockets_cleanup): Reset initialized_sockets_version.
20854
20855 2009-08-03  Simon Josefsson  <simon@josefsson.org>
20856
20857         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
20858         different project/version.
20859
20860 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
20861             Bruno Haible  <bruno@clisp.org>
20862
20863         Tests for module 'pipe-filter-gi'.
20864         * modules/pipe-filter-gi-tests: New file.
20865         * tests/test-pipe-filter-gi1.sh: New file.
20866         * tests/test-pipe-filter-gi1.c: New file.
20867         * tests/test-pipe-filter-gi2.sh: New file.
20868         * tests/test-pipe-filter-gi2-main.c: New file.
20869         * tests/test-pipe-filter-gi2-child.c: New file.
20870
20871         New module 'pipe-filter-gi'.
20872         * lib/pipe-filter-gi.c: New file.
20873         * modules/pipe-filter-gi: New file.
20874
20875 2009-08-02  Bruno Haible  <bruno@clisp.org>
20876             Paolo Bonzini  <bonzini@gnu.org>
20877
20878         Tests for module 'pipe-filter-ii'.
20879         * modules/pipe-filter-ii-tests: New file.
20880         * tests/test-pipe-filter-ii1.sh: New file.
20881         * tests/test-pipe-filter-ii1.c: New file.
20882         * tests/test-pipe-filter-ii2.sh: New file.
20883         * tests/test-pipe-filter-ii2-main.c: New file.
20884         * tests/test-pipe-filter-ii2-child.c: New file.
20885
20886         New module 'pipe-filter-ii'.
20887         * lib/pipe-filter.h: New file.
20888         * lib/pipe-filter-ii.c: New file.
20889         * lib/pipe-filter-aux.h: New file.
20890         * modules/pipe-filter-ii: New file.
20891
20892 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20893
20894         * lib/gc-libgcrypt.c: Change copyright to FSF.
20895         * lib/gc-gnulib.c: Likewise.
20896
20897 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
20898
20899         * lib/gethostname.c: Include limits.h.
20900
20901 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20902             Bruno Haible  <bruno@clisp.org>
20903
20904         Ensure HOST_NAME_MAX as part of the gethostname module.
20905         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
20906         define also HOST_NAME_MAX.
20907         * tests/test-gethostname.c: Include <limits.h>.
20908         (main): Check also HOST_NAME_MAX.
20909         * doc/posix-headers/limits.texi: Document the mingw problem.
20910
20911 2009-08-02  Bruno Haible  <bruno@clisp.org>
20912
20913         * lib/gethostname.c (gethostname): Fix handling of large len argument.
20914         Add comments.
20915
20916 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20917
20918         * lib/gethostname.c: Add Windows wrapper.
20919         * m4/gethostname.m4: Look for gethostname in -lws2_32.
20920         * modules/gethostname: Depend on sys_socket & errno, for also
20921         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
20922         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
20923
20924 2009-07-31  Jim Meyering  <meyering@redhat.com>
20925
20926         getloadavg: fix symbol name in comment
20927         * lib/getloadavg.c: Correct a typo I introduced when adding
20928         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
20929         Matt Kraai spotted the problem.
20930
20931 2009-07-29  Matt Kraai  <mkraai@beckman.com>
20932
20933         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
20934         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
20935         code also if ! defined N_NAME_POINTER.
20936         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
20937         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
20938         but the n_name member is a 12-byte array.
20939
20940 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
20941
20942         update-copyright: generalize comment handling
20943         * build-aux/update-copyright: Handle copyright statements
20944         within more comment styles.
20945         Document usage.
20946         Report any file with an external copyright holder or parse failure.
20947
20948 2009-07-29  Jim Meyering  <meyering@redhat.com>
20949
20950         mktime: correct setting of REPLACE_MKTIME
20951         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
20952
20953         update-copyright: new module
20954         * modules/update-copyright: New file.
20955         * build-aux/update-copyright: New file.
20956         * MODULES.html.sh (maint+release support): Add update-copyright.
20957
20958 2009-07-27  Bruno Haible  <bruno@clisp.org>
20959
20960         Fix compilation error when <ctime> is used and mktime is replaced.
20961         * lib/time.in.h (mktime): New declaration.
20962         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
20963         REPLACE_MKTIME instead of defining mktime in config.h.
20964         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
20965         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
20966         Reported by Ross McFarland <rwmcfa1@neces.com>.
20967
20968 2009-07-27  Bruno Haible  <bruno@clisp.org>
20969
20970         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
20971         Reported by Matt Kraai <mkraai@beckman.com>.
20972
20973 2009-07-25  Jim Meyering  <meyering@redhat.com>
20974
20975         maint.mk: avoid warnings about missing files
20976         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
20977         diagnostic when .prev-version does not exist.
20978         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
20979         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
20980         nonexistent cfg.mk.
20981         Suggestions from Simon Josefsson.
20982
20983 2009-07-25  Bruno Haible  <bruno@clisp.org>
20984
20985         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
20986         defined as macros. Needed on QNX 6.4.1.
20987         Reported by Matt Kraai <mkraai@beckman.com>.
20988
20989 2009-07-23  Jim Meyering  <meyering@redhat.com>
20990
20991         maint.mk: invoke "make dist" with a working value of XZ_OPT
20992         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
20993
20994 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
20995
20996         Make fseeko.c compile on QNX.
20997         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
20998
20999 2009-07-22  Peter Simons  <simons@cryp.to>
21000
21001         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
21002         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
21003         * lib/md4.h: Likewise.
21004         * lib/md5.h: Likewise.
21005         * lib/sha1.h: Likewise.
21006         * lib/sha256.h: Likewise.
21007         * lib/sha512.h: Likewise.
21008
21009         tests-sha1: don't assign literal string to 'char *' variable
21010         * tests/test-sha1.c (main): Declare locals with "const" to match
21011         attributes of the right hand side.
21012
21013 2009-07-21  Eric Blake  <ebb9@byu.net>
21014
21015         dup2: fix more mingw problems
21016         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
21017         fd to itself.
21018         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21019         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
21020         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
21021         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
21022         care of mingw bugs.
21023
21024 2009-07-21  Jim Meyering  <meyering@redhat.com>
21025
21026         vc-list-files: avoid failure when /bin/sh is dash
21027         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
21028         On some Debian based systems, /bin/sh is a symlink to dash, and running
21029         this command would omit the "/" following each 'tests' prefix:
21030           dash -x build-aux/vc-list-files -C . tests
21031         That is because bash and dash work differently:
21032           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
21033           bash ok
21034           dash odd
21035
21036 2009-07-21  Eric Blake  <ebb9@byu.net>
21037
21038         dup2-tests: test previous patch
21039         * modules/dup2-tests: New file.
21040         * tests/test-dup2.c: Likewise.
21041         * tests/test-open.c (main): Avoid unspecified behavior.
21042         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
21043         test.
21044
21045         dup2: work around mingw and cygwin 1.5 bug
21046         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
21047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21048         * modules/unistd (Makefile.am): Substitute it.
21049         * lib/unistd.in.h (dup2): Declare the replacement.
21050         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
21051         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
21052         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
21053         * modules/execute (Depends-on): Add dup2.
21054         * modules/fseterr (Depends-on): Likewise.
21055         * modules/pipe (Depends-on): Likewise.
21056         * modules/posix_spawn-internal (Depends-on): Likewise.
21057
21058 2009-07-21  Bruno Haible  <bruno@clisp.org>
21059
21060         * modules/.gitattributes: New file.
21061
21062 2009-07-20  Bruno Haible  <bruno@clisp.org>
21063
21064         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
21065         (main): Use it.
21066
21067 2009-07-20  Eric Blake  <ebb9@byu.net>
21068
21069         test-pipe: make a bit more robust.
21070         * tests/test-pipe.c (myerr): Allow error messages regardless of
21071         what we do to stderr.
21072         (test_pipe): Rearrange to avoid deadlock.
21073         (child_main): Try a larger read, to ensure we avoided deadlock.
21074         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
21075         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
21076         if misused.
21077
21078 2009-07-19  Jim Meyering  <meyering@redhat.com>
21079
21080         fts: avoid false-positive cycle-detection
21081         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
21082         for each new command line argument.
21083
21084 2009-07-19  Bruno Haible  <bruno@clisp.org>
21085
21086         Fix build error on mingw with the modules sys_select and unistd.
21087         * modules/acl-tests (Depends-on): Add close.
21088         * modules/binary-io-tests (Depends-on): Likewise.
21089         * modules/closein-tests (Depends-on): Likewise.
21090         * modules/flock-tests (Depends-on): Likewise.
21091         * modules/fsync-tests (Depends-on): Likewise.
21092         * modules/lseek-tests (Depends-on): Likewise.
21093         * modules/pipe-tests (Depends-on): Likewise.
21094         * modules/posix_spawn-tests (Depends-on): Likewise.
21095         * modules/posix_spawnp-tests (Depends-on): Likewise.
21096         * modules/stat-time-tests (Depends-on): Likewise.
21097         * modules/yesno-tests (Depends-on): Likewise.
21098
21099 2009-07-19  Bruno Haible  <bruno@clisp.org>
21100
21101         Unify conditionals.
21102         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
21103         macros, not at the compiler macros.
21104         * lib/pipe.c: Likewise.
21105         * lib/execute.c: Likewise.
21106         * lib/spawni.c: Likewise.
21107
21108 2009-07-19  Bruno Haible  <bruno@clisp.org>
21109
21110         Fix handling of closed stdin/stdout/stderr on mingw.
21111         * lib/w32spawn.h: Include unistd.h.
21112         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
21113         file descriptor with O_NOINHERIT flag.
21114         (fd_safer_noinherit): New function, based on fd-safer.c.
21115         (dup_safer_noinherit): New function, based on dup-safer.c.
21116         (undup_safer_noinherit): New function.
21117         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
21118         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
21119         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
21120         instead of fd_safer.
21121         * tests/test-pipe.c: Include <windows.h>.
21122         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
21123
21124         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
21125         from main.
21126         (test_pipe): Pass an extra argument for disambiguation.
21127         (main): Invoke parent_main or child_main.
21128
21129         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
21130         consistently.
21131
21132 2009-07-18  Eric Blake  <ebb9@byu.net>
21133
21134         test-pipe: fix mingw build
21135         * tests/test-pipe.c (main): Avoid fcntl on mingw.
21136
21137 2009-07-18  Bruno Haible  <bruno@clisp.org>
21138
21139         * modules/pipe-tests (Makefile.am): Fix typo.
21140
21141 2009-07-18  Eric Blake  <ebb9@byu.net>
21142
21143         error: fix mingw build
21144         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
21145         Reported by Bruno Haible.
21146
21147         error: avoid undefined use of stdout
21148         * lib/error.c (error, error_at_line): Check that fd 1 is open
21149         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
21150         is handling faults and the close_stdout module wants to report the
21151         detection of closed stdout as an error.
21152
21153 2009-07-17  Eric Blake  <ebb9@byu.net>
21154
21155         pipe: be robust in face of closed fds
21156         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
21157         should cause child to misbehave.
21158         * modules/pipe-tests: New module.
21159         * tests/test-pipe.c: New file.
21160         * tests/test-pipe.sh: New file.
21161         Reported by Akim Demaille.
21162
21163 2009-07-14  Bruno Haible  <bruno@clisp.org>
21164
21165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
21166         Reported by anonymous kc.
21167
21168 2009-07-07  Jim Meyering  <meyering@redhat.com>
21169
21170         maint.mk: don't look for translatable strings in *.m4 or *.mk
21171         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
21172         when searching for translatable strings.
21173
21174 2009-07-05  Jim Meyering  <meyering@redhat.com>
21175
21176         remove superfluous parentheses in STREQ definition
21177         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
21178         * lib/getugroups.c (STREQ): Likewise.
21179         * lib/fnmatch.c (STREQ): Likewise.
21180         Spotted by Bruno Haible.
21181
21182 2009-07-04  Jim Meyering  <meyering@redhat.com>
21183
21184         argv-iter: new module
21185         * MODULES.html.sh: Add argv-iter.
21186         * lib/argv-iter.c, lib/argv-iter.h: New files.
21187         * modules/argv-iter: New file.
21188         * modules/argv-iter-tests: New file.
21189         * tests/test-argv-iter.c: Test it.
21190
21191 2009-07-04  Bruno Haible  <bruno@clisp.org>
21192
21193         Fix assertion.
21194         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
21195         contains more exact copies of a given entry than file2, leave the extra
21196         copies unpaired rather than aborting.
21197         Reported by Eric Blake.
21198
21199 2009-07-02  Bruno Haible  <bruno@clisp.org>
21200
21201         Speedup git-merge-changelog for git cherry-pick.
21202         * lib/git-merge-changelog.c (struct entries_mapping): New type.
21203         (entries_mapping_get): New function, extracted from compute_mapping.
21204         (entries_mapping_reverse_get): New function.
21205         (compute_mapping): Add a 'full' argument. Return the result in a
21206         'struct entries_mapping'.
21207         (main): Update. Access the mappings through entries_mapping_get.
21208         Reported by Eric Blake.
21209
21210 2009-07-02  Bruno Haible  <bruno@clisp.org>
21211
21212         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
21213         best_i.
21214
21215 2009-07-02  Bruno Haible  <bruno@clisp.org>
21216
21217         Speed up approximate search for matching ChangeLog entries.
21218         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
21219         argument. Call fstrcmp_bounded instead of fstrcmp.
21220         (compute_mapping, try_split_merged_entry, main): Update callers.
21221
21222 2009-07-02  Bruno Haible  <bruno@clisp.org>
21223
21224         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
21225
21226 2009-06-30  Bruno Haible  <bruno@clisp.org>
21227
21228         Reduce the number of uc_is_cased calls.
21229         * lib/unicase.h (casing_suffix_context_t): Add
21230         'first_char_except_ignorable' field.
21231         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
21232         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
21233         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
21234         Update initializer.
21235         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
21236         case-ignorable characters.
21237         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
21238         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
21239         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
21240         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
21241         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
21242
21243 2009-06-30  Bruno Haible  <bruno@clisp.org>
21244
21245         Tests for module 'unicase/ignorable'.
21246         * modules/unicase/ignorable-tests: New file.
21247         * tests/unicase/test-ignorable.c: New file, generated by
21248         gen-uni-tables.
21249
21250         Tests for module 'unicase/cased'.
21251         * modules/unicase/cased-tests: New file.
21252         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
21253         * tests/unicase/test-predicate-part1.h: New file, derived from
21254         tests/unictype/test-predicate-part1.h.
21255         * tests/unicase/test-predicate-part2.h: New file, same as
21256         tests/unictype/test-predicate-part2.h.
21257
21258         Fix evaluation of "Before C" condition of FINAL_SIGMA.
21259         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
21260         (output_casing_properties): New function.
21261         (main): Call it.
21262         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
21263         * lib/unicase/cased.c: Include unictype/bitmap.h.
21264         (uc_is_cased): Define through a bitmap lookup.
21265         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
21266         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
21267         (uc_is_case_ignorable): Define through a bitmap lookup.
21268         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
21269         lib/unictype/bitmap.h.
21270         (Depends-on): Add inline. Clean up.
21271         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
21272         lib/unictype/bitmap.h.
21273         (Depends-on): Add inline. Clean up.
21274         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
21275         recognition.
21276         * tests/unicase/test-u16-tolower.c (main): Likewise.
21277         * tests/unicase/test-u32-tolower.c (main): Likewise.
21278
21279 2009-06-30  Bruno Haible  <bruno@clisp.org>
21280
21281         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
21282         * lib/unicase/u16-casemap.c: Likewise.
21283         * lib/unicase/u32-casemap.c: Likewise.
21284
21285 2009-06-29  Bruno Haible  <bruno@clisp.org>
21286
21287         Define u32_casefold as a wrapper around u32_ct_casefold.
21288         * lib/unicase/u32-casefold.c: Update.
21289         * modules/unicase/u32-casefold (Depends-on): Add
21290         unicase/u32-ct-casefold, unicase/empty-prefix-context,
21291         unicase/empty-suffix-context. Clean up.
21292
21293         Define u16_casefold as a wrapper around u16_ct_casefold.
21294         * lib/unicase/u16-casefold.c: Update.
21295         * modules/unicase/u16-casefold (Depends-on): Add
21296         unicase/u16-ct-casefold, unicase/empty-prefix-context,
21297         unicase/empty-suffix-context. Clean up.
21298
21299         Define u8_casefold as a wrapper around u8_ct_casefold.
21300         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
21301         * lib/unicase/u8-casefold.c: Update.
21302         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
21303         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
21304
21305         Define u32_totitle as a wrapper around u32_ct_totitle.
21306         * lib/unicase/u32-totitle.c: Update.
21307         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
21308         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
21309
21310         Define u16_totitle as a wrapper around u16_ct_totitle.
21311         * lib/unicase/u16-totitle.c: Update.
21312         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
21313         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
21314
21315         Define u8_totitle as a wrapper around u8_ct_totitle.
21316         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
21317         functions.
21318         (FUNC): Delegate to U_CT_TOTITLE.
21319         * lib/unicase/u8-totitle.c: Update.
21320         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
21321         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
21322
21323         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
21324         invocation.
21325         * modules/unicase/u32-tolower (Depends-on): Add
21326         unicase/empty-prefix-context, unicase/empty-suffix-context.
21327
21328         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
21329         invocation.
21330         * modules/unicase/u16-tolower (Depends-on): Add
21331         unicase/empty-prefix-context, unicase/empty-suffix-context.
21332
21333         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
21334         * modules/unicase/u8-tolower (Depends-on): Add
21335         unicase/empty-prefix-context, unicase/empty-suffix-context.
21336
21337         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
21338         invocation.
21339         * modules/unicase/u32-toupper (Depends-on): Add
21340         unicase/empty-prefix-context, unicase/empty-suffix-context.
21341
21342         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
21343         invocation.
21344         * modules/unicase/u16-toupper (Depends-on): Add
21345         unicase/empty-prefix-context, unicase/empty-suffix-context.
21346
21347         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
21348         * modules/unicase/u8-toupper (Depends-on): Add
21349         unicase/empty-prefix-context, unicase/empty-suffix-context.
21350
21351         New module 'unicase/u32-ct-casefold'.
21352         * lib/unicase/u32-ct-casefold.c: New file.
21353         * modules/unicase/u32-ct-casefold: New file.
21354
21355         New module 'unicase/u16-ct-casefold'.
21356         * lib/unicase/u16-ct-casefold.c: New file.
21357         * modules/unicase/u16-ct-casefold: New file.
21358
21359         New module 'unicase/u8-ct-casefold'.
21360         * lib/unicase/u8-ct-casefold.c: New file.
21361         * lib/unicase/u-ct-casefold.h: New file, derived from
21362         lib/unicase/u-casefold.h.
21363         * modules/unicase/u8-ct-casefold: New file.
21364
21365         New module 'unicase/u32-ct-totitle'.
21366         * lib/unicase/u32-ct-totitle.c: New file.
21367         * modules/unicase/u32-ct-totitle: New file.
21368
21369         New module 'unicase/u16-ct-totitle'.
21370         * lib/unicase/u16-ct-totitle.c: New file.
21371         * modules/unicase/u16-ct-totitle: New file.
21372
21373         New module 'unicase/u8-ct-totitle'.
21374         * lib/unicase/u8-ct-totitle.c: New file.
21375         * lib/unicase/u-ct-totitle.h: New file, derived from
21376         lib/unicase/u-totitle.h.
21377         * modules/unicase/u8-ct-totitle: New file.
21378
21379         New module 'unicase/u32-ct-tolower'.
21380         * lib/unicase/u32-ct-tolower.c: New file.
21381         * modules/unicase/u32-ct-tolower: New file.
21382
21383         New module 'unicase/u16-ct-tolower'.
21384         * lib/unicase/u16-ct-tolower.c: New file.
21385         * modules/unicase/u16-ct-tolower: New file.
21386
21387         New module 'unicase/u8-ct-tolower'.
21388         * lib/unicase/u8-ct-tolower.c: New file.
21389         * modules/unicase/u8-ct-tolower: New file.
21390
21391         New module 'unicase/u32-ct-toupper'.
21392         * lib/unicase/u32-ct-toupper.c: New file.
21393         * modules/unicase/u32-ct-toupper: New file.
21394
21395         New module 'unicase/u16-ct-toupper'.
21396         * lib/unicase/u16-ct-toupper.c: New file.
21397         * modules/unicase/u16-ct-toupper: New file.
21398
21399         New module 'unicase/u8-ct-toupper'.
21400         * lib/unicase/u8-ct-toupper.c: New file.
21401         * modules/unicase/u8-ct-toupper: New file.
21402
21403         Add context arguments to u*_casemap functions.
21404         * lib/unicase/unicasemap.h: Include unicase.h.
21405         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
21406         suffix_context arguments.
21407         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
21408         functions.
21409         (FUNC): Add prefix_context and suffix_context arguments. Use
21410         uc_is_cased and uc_is_case_ignorable.
21411         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
21412         * lib/unicase/u16-casemap.c: Likewise.
21413         * lib/unicase/u32-casemap.c: Likewise.
21414         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
21415         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21416         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
21417         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21418         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
21419         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
21420
21421         New module 'unicase/u32-suffix-context'.
21422         * lib/unicase/u32-suffix-context.c: New file.
21423         * modules/unicase/u32-suffix-context: New file.
21424
21425         New module 'unicase/u16-suffix-context'.
21426         * lib/unicase/u16-suffix-context.c: New file.
21427         * modules/unicase/u16-suffix-context: New file.
21428
21429         New module 'unicase/u8-suffix-context'.
21430         * lib/unicase/u8-suffix-context.c: New file.
21431         * lib/unicase/u-suffix-context.h: New file.
21432         * modules/unicase/u8-suffix-context: New file.
21433
21434         New module 'unicase/empty-suffix-context'.
21435         * lib/unicase/empty-suffix-context.c: New file.
21436         * modules/unicase/empty-suffix-context: New file.
21437
21438         New module 'unicase/u32-prefix-context'.
21439         * lib/unicase/u32-prefix-context.c: New file.
21440         * modules/unicase/u32-prefix-context: New file.
21441
21442         New module 'unicase/u16-prefix-context'.
21443         * lib/unicase/u16-prefix-context.c: New file.
21444         * modules/unicase/u16-prefix-context: New file.
21445
21446         New module 'unicase/u8-prefix-context'.
21447         * lib/unicase/u8-prefix-context.c: New file.
21448         * lib/unicase/u-prefix-context.h: New file.
21449         * lib/unicase/context.h: New file.
21450         * modules/unicase/u8-prefix-context: New file.
21451
21452         New module 'unicase/empty-prefix-context'.
21453         * lib/unicase/empty-prefix-context.c: New file.
21454         * modules/unicase/empty-prefix-context: New file.
21455
21456         New module 'unicase/ignorable'.
21457         * lib/unicase/ignorable.c: New file.
21458         * modules/unicase/ignorable: New file.
21459
21460         New module 'unicase/cased'.
21461         * lib/unicase/caseprop.h: New file.
21462         * lib/unicase/cased.c: New file.
21463         * modules/unicase/cased: New file.
21464
21465         New functions for case mapping of substrings.
21466         * lib/unicase.h (casing_prefix_context_t): New type.
21467         (unicase_empty_prefix_context): New variable.
21468         (u8_casing_prefix_context, u16_casing_prefix_context,
21469         u32_casing_prefix_context, u8_casing_prefixes_context,
21470         u16_casing_prefixes_context, u32_casing_prefixes_context): New
21471         declarations.
21472         (casing_suffix_context_t): New type.
21473         (unicase_empty_suffix_context): New variable.
21474         (u8_casing_suffix_context, u16_casing_suffix_context,
21475         u32_casing_suffix_context, u8_casing_suffixes_context,
21476         u16_casing_suffixes_context, u32_casing_suffixes_context,
21477         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
21478         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
21479         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
21480         declarations.
21481
21482 2009-06-28  Jim Meyering  <meyering@redhat.com>
21483
21484         boostrap: indent only with spaces
21485         * build-aux/bootstrap: Indent only with spaces, never TABs.
21486
21487         bootstrap: split long lines
21488         * build-aux/bootstrap: Keep line length < 80.
21489
21490         bootstrap: sync from coreutils
21491         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
21492         just as autoreconf does.  Verify a list of prerequisite
21493         package-name,version-number pairs if defined in bootstrap.conf.
21494         Refer to README-prereq, if prerequisites are not satisfied.
21495
21496 2009-06-27  Eric Blake  <ebb9@byu.net>
21497
21498         tests: add test for bogus NULL definition
21499         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
21500         * tests/test-stdlib.c: Likewise.
21501         * tests/test-string.c: Likewise.
21502         * tests/test-locale.c: Likewise.
21503         * tests/test-unistd.c: Likewise.
21504         * modules/stdio-tests (Depends-on): Add verify.
21505         * modules/stdlib-tests (Depends-on): Likewise.
21506         * modules/string-tests (Depends-on): Likewise.
21507         * modules/locale-tests (Depends-on): Likewise.
21508         * modules/unistd-tests (Depends-on): Likewise.
21509
21510 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
21511
21512         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
21513         self-explaining comment.
21514         * m4/selinux-selinux-h: Update serial.
21515         (gl_LIBSELINUX): New macro, adding a warning for missing development
21516         packages to code extracted from...
21517         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
21518         Add warning for missing development packages here, too.
21519
21520 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
21521
21522         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
21523
21524 2009-06-25  Eric Blake  <ebb9@byu.net>
21525
21526         version-etc: fix regression
21527         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
21528         gcc.
21529         (version_etc): Use it, to catch bugs with trailing NULL.
21530         * lib/version-etc.c (version_etc_arn): Delete unused argument.
21531         (version_etc_va): Fix logic bug.
21532         * modules/version-etc-tests: Add test.
21533         * tests/test-version-etc.c: New file.
21534         * tests/test-version-etc.sh: Likewise.
21535
21536 2009-06-25  Sam Steingold  <sds@gnu.org>
21537
21538         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
21539         mbtowc declaration.
21540
21541 2009-06-25  Eric Blake  <ebb9@byu.net>
21542
21543         fpurge: migrate into <stdio.h>
21544         * lib/fpurge.h: Delete...
21545         * lib/stdio.in.h (fpurge): ...and declare here, instead.
21546         * lib/fpurge.c (fpurge): Change declaring header.
21547         * modules/fpurge (Files): Drop deleted file.
21548         (Depends-on): Add stdio.
21549         (configure.ac): Set witness.
21550         * modules/stdio (Makefile.am): Support fpurge macros.
21551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21552         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
21553         * lib/fflush.c: Update client.
21554         * tests/test-fpurge.c: Likewise.
21555         * NEWS: Mention the change.
21556
21557 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21558
21559         * lib/argp-version-etc.c (program_authors): Add const
21560         qualifier.
21561         * lib/version-etc.c: Fix typos in the comments.
21562         * modules/argp-version-etc: Depends on version-etc.
21563
21564 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21565
21566         argp-version-etc: new module.
21567
21568         * lib/argp-version-etc.c: New file.
21569         * lib/argp-version-etc.h: New file.
21570         * modules/argp-version-etc: New file.
21571         * modules/argp-version-etc-tests: New file.
21572         * tests/test-argp-version-etc.c: New test.
21573         * tests/test-argp-version-etc-1.sh: New test.
21574
21575 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21576
21577         Provide additional interfaces and documentation for version-etc
21578         module.
21579
21580         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
21581         interfaces.
21582         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
21583         prototypes.
21584
21585 2009-06-24  Bruno Haible  <bruno@clisp.org>
21586
21587         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
21588         HAVE_LIB${NAME} macro.
21589         Reported by Sam Steingold <sds@gnu.org>.
21590
21591 2009-06-23  Simon Josefsson  <simon@josefsson.org>
21592
21593         * modules/hash-tests (test_hash_LDADD): Link to libintl when
21594         needed.
21595
21596 2009-06-21  Bruno Haible  <bruno@clisp.org>
21597
21598         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
21599         work.
21600         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
21601         together with LIB${NAME}, LTLIB${NAME}.
21602         Reported by Sam Steingold <sds@gnu.org>.
21603
21604 2009-06-20  Jim Meyering  <meyering@redhat.com>
21605
21606         tests: make sc_require_test_exit_idiom more generic
21607         * top/maint.mk (Exit_witness_file): New overridable variable.
21608         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
21609         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
21610
21611 2009-06-19  Jim Meyering  <meyering@redhat.com>
21612
21613         hash: reverse order of src/dst parameters in an internal interface
21614         * lib/hash.c (transfer_entries): Reverse order of parameters to
21615         put DST before SRC.  Adjust callers.
21616
21617         tests: test-hash: avoid wholesale duplication
21618         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
21619         Instead, use a loop and add a single conditional.
21620
21621         tests: test-hash: allow seed selection via a command line argument
21622         * tests/test-hash.c (get_seed): New function.
21623         (main): Use it.
21624
21625 2009-06-19  Eric Blake  <ebb9@byu.net>
21626
21627         hash: avoid memory leak on allocation failure
21628         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
21629         failure.  Factor repeated algorithm...
21630         (transfer_entries): ...into new helper routine.
21631         (hash_delete): React to hash_rehash return value.
21632
21633         hash: reduce memory pressure in hash_rehash no-op case
21634         * lib/hash.c (next_prime): Avoid overflow.
21635         (hash_initialize): Factor bucket size computation...
21636         (compute_bucket_size): ...into new helper function.
21637         (hash_rehash): Use new function and open coding to reduce memory
21638         pressure, and avoid a memory leak in USE_OBSTACK code.
21639         Reported by Jim Meyering.
21640
21641 2009-06-18  Eric Blake  <ebb9@byu.net>
21642
21643         hash: make rotation more obvious
21644         * modules/hash (Depends-on): Add bitrotate and stdint.
21645         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
21646         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
21647         (SIZE_MAX): Rely on headers for definition.
21648         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
21649         (raw_hasher): Use rotr_sz.
21650         Suggested by Jim Meyering.
21651
21652         hash: fix memory leak in last patch
21653         * lib/hash.c (hash_rehash): Avoid memory leak.
21654
21655         hash: avoid no-op rehashing
21656         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
21657
21658         hash: provide default callback functions
21659         * lib/hash.c (raw_hasher, raw_comparator): New functions.
21660         (hash_initialize): Use them as defaults.
21661         * tests/test-hash.c (main): Test this.
21662
21663         hash: minor optimization
21664         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
21665         when possible.
21666         (hash_initialize): Document this promise.
21667         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
21668         * tests/test-hash.c (hash_compare_strings): Test this.
21669
21670 2009-06-18  Bruno Haible  <bruno@clisp.org>
21671
21672         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
21673         going to be replaced anyway.
21674
21675 2009-06-18  Bruno Haible  <bruno@clisp.org>
21676
21677         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
21678         in one place.
21679         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
21680         be replaced anyway.
21681
21682 2009-06-18  Eric Blake  <ebb9@byu.net>
21683
21684         hash: check for resize before insertion
21685         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
21686         threshold before insertion, so that a pathological hash_rehash
21687         that fills every bucket can still trigger another rehash.
21688
21689 2009-06-18  Jim Meyering  <meyering@redhat.com>
21690
21691         hash-tests: add a loop around the small tests
21692         * tests/test-hash.c (main): Repeat small tests with selected
21693         small initial table sizes.
21694
21695 2009-06-17  Eric Blake  <ebb9@byu.net>
21696
21697         hash: minor cleanups
21698         * lib/hash.h (hash_entry): Make opaque, by moving...
21699         * lib/hash.c (hash_entry): ...here.
21700         (hash_insert): Clarify restrictions on what can be inserted.
21701         (hash_get_next): Clarify when it is safe to remove an element
21702         during traversal.
21703         (check_tuning): Skip verification when tuning is known safe.
21704         (hash_initialize): Clarify restrictions on tuning.
21705
21706 2009-06-17  Jim Meyering  <jim@meyering.net>
21707         and Eric Blake  <ebb9@byu.net>
21708
21709         hash-tests: new module
21710         * modules/hash-tests: New file.
21711         * tests/test-hash.c: New file.
21712
21713 2009-06-17  Eric Blake  <ebb9@byu.net>
21714
21715         strstr-simple: document new module
21716         * MODULES.html.sh: Document new module.
21717
21718         strstr, strcasestr: replace on platforms with broken memchr
21719         * modules/strstr: Split into...
21720         * modules/strstr-simple: ...new module that does not care about
21721         performance, but does care about glibc bug.
21722         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
21723         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
21724         if platform memchr is broken, per Debian bug 521737.
21725         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
21726         memchr.
21727         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
21728         * doc/posix-functions/strstr.texi (strstr): Document the fix.
21729         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21730         * modules/mountlist (Depends-on): Add strstr-simple.
21731         * modules/gen-uni-tables (Depends-on): Likewise.
21732         * modules/argz (Depends-on): Add strstr.
21733
21734 2009-06-17  Bruno Haible  <bruno@clisp.org>
21735
21736         * modules/posix_spawn-internal (Depends-on): Add errno.
21737
21738 2009-06-17  Bruno Haible  <bruno@clisp.org>
21739
21740         Define missing ESTALE on Interix 3.5.
21741         * lib/errno.in.h (ESTALE): Assign a value if missing.
21742         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
21743         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
21744         missing.
21745         * doc/posix-headers/errno.texi: Mention the Interix bug.
21746         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
21747
21748 2009-06-15  Eric Blake  <ebb9@byu.net>
21749
21750         memchr, memchr2: add valgrind exception
21751         * lib/memchr.valgrind: New file.
21752         * lib/memchr2.valgrind: New file.
21753         * modules/memchr (Files): Distribute valgrind file.
21754         * modules/memchr2 (Files): Likewise.
21755
21756         docs: memchr is no longer obsolete
21757         * MODULES.html.sh: Move memchr from obsolete to string.h section.
21758         * lib/string.in.h (memchr): Simplify logic.
21759
21760 2009-06-14  Jim Meyering  <meyering@redhat.com>
21761
21762         link-follow: fix the "checking..." message to not mention trailing slash
21763         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
21764         never considered trailing slashes.
21765
21766 2009-06-14  Bruno Haible  <bruno@clisp.org>
21767
21768         * m4/memchr.m4: Mention also the bug on IA-64.
21769         * doc/posix-functions/memchr.texi: Likewise.
21770
21771 2009-06-12  Eric Blake  <ebb9@byu.net>
21772
21773         memchr: detect broken x86_64 and alpha implementations
21774         * modules/memchr-tests (Depends-on): Move mmap detection...
21775         * modules/memchr (Depends-on): ...here.
21776         (configure.ac): Set indicator.
21777         * lib/string.in.h (memchr): Declare replacement.
21778         * modules/string (Makefile.am): Trigger replacement.
21779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
21780         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
21781         bugs.
21782         * doc/posix-functions/memchr.texi (memchr): Document the bug.
21783         * modules/getpagesize (License): Relax license.
21784
21785 2009-06-11  Bruno Haible  <bruno@clisp.org>
21786
21787         * lib/idpriv.h: Add more references.
21788
21789 2009-06-08  Bruno Haible  <bruno@clisp.org>
21790
21791         Tests for module 'idpriv-droptemp'.
21792         * modules/idpriv-droptemp-tests: New file.
21793         * tests/test-idpriv-droptemp.sh: New file.
21794         * tests/test-idpriv-droptemp.su.sh: New file.
21795         * tests/test-idpriv-droptemp.c: New file.
21796
21797         New module 'idpriv-droptemp'.
21798         * lib/idpriv-droptemp.c: New file.
21799         * modules/idpriv-droptemp: New file.
21800
21801 2009-06-08  Bruno Haible  <bruno@clisp.org>
21802
21803         Tests for module 'idpriv-drop'.
21804         * modules/idpriv-drop-tests: New file.
21805         * tests/test-idpriv-drop.sh: New file.
21806         * tests/test-idpriv-drop.su.sh: New file.
21807         * tests/test-idpriv-drop.c: New file.
21808
21809         New module 'idpriv-drop'.
21810         * lib/idpriv.h: New file.
21811         * lib-idpriv-drop.c: New file.
21812         * m4/idpriv.m4: New file.
21813         * modules/idpriv-drop: New file.
21814
21815 2009-06-08  Bruno Haible  <bruno@clisp.org>
21816
21817         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
21818         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21819         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21820         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21821         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21822         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21823         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21824
21825 2009-06-08  Eric Blake  <ebb9@byu.net>
21826
21827         test-strstr: use memory fence, when possible
21828         * tests/test-strstr.c (main): Use memory fence, in order to be
21829         more likely to trigger Debian bug 521737.
21830         * modules/strstr-tests (Files): Pull in additional files.
21831
21832         memchr: no longer obsolete, for wider field testing
21833         * modules/memchr (Status, Notice): Delete, this module is no
21834         longer obsolete.
21835         * modules/vasnprintf (Depends-on): Add memchr.
21836
21837 2009-06-07  Jim Meyering  <meyering@redhat.com>
21838
21839         hash: declare some functions with the warn_unused_result attribute
21840         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
21841
21842 2009-06-07  Bruno Haible  <bruno@clisp.org>
21843
21844         * tests/test-alignof.c: Don't test int64_t if it does not exist.
21845         Reported by Eric Blake.
21846
21847 2009-06-06  Eric Blake  <ebb9@byu.net>
21848
21849         test-alignof: fix typo with long double
21850         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
21851         compiler error.
21852
21853 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
21854
21855         Escape non-texinfo { and }s.
21856         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
21857         markup error.
21858
21859 2009-06-04  Jim Meyering  <meyering@redhat.com>
21860
21861         gitlog-to-changelog: don't infloop on an empty commit log
21862         * build-aux/gitlog-to-changelog: Warn about an empty log message.
21863         Reported by Boris Petersen <transacid@centerim.org>.
21864
21865 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
21866
21867         version-etc: extend for packagers
21868         Add three new configure options, intended for packagers:
21869           --with-packager="packager name"
21870           --with-packager-version="packager-specific version"
21871           --with-packager-bug-reports="packager bug reporting"
21872         An example with coreutils:
21873           $ ./configure \
21874             --with-packager=Gentoo \
21875             --with-packager-bug-report=http://bugs.gentoo.org/ \
21876             --with-packager-version="patchset 1.6"
21877           $ ./src/ls --version | head -n2
21878           ls (GNU coreutils) 7.1-dirty
21879           Packaged by Gentoo (patchset 1.6)
21880         Note that the bug reporting info via --help doesn't show up because
21881         coreutils uses its own custom emit_bug_reporting_address() implementation
21882         in src/system.h.  If it didn't, it'd look like:
21883           $ ./src/ls --help | tail -n4
21884           Report bugs to <bug-coreutils@gnu.org>.
21885           Report Gentoo bugs to <http://bugs.gentoo.org/>.
21886           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
21887           General help using GNU software: <http://www.gnu.org/gethelp/>.
21888         * lib/version-etc.c: Print new information, if provided.
21889         * m4/version-etc.m4: New file.
21890         * modules/version-etc (Files): Add m4/version-etc.m4.
21891         (configure.ac): Add gl_VERSION_ETC.
21892
21893 2009-05-31  Bruno Haible  <bruno@clisp.org>
21894
21895         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
21896         and 'int64_t'.
21897         * modules/alignof-tests (Dependencies): Add stdint.
21898         Reported by Eric Blake.
21899
21900 2009-05-31  Bruno Haible  <bruno@clisp.org>
21901
21902         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
21903         restriction due to compiler bugs.
21904         Reported by Eric Blake.
21905
21906 2009-05-31  Simon Josefsson  <simon@josefsson.org>
21907             Bruno Haible  <bruno@clisp.org>
21908
21909         Fix test-alignof failure.
21910         * lib/alignof.h (alignof_slot): New macro.
21911         (alignof_type): New macro, with the same semantics as the previous
21912         'alignof'.
21913         (alignof): Alias to alignof_slot.
21914         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
21915         check that the results are usable as constant expressions.
21916
21917 2009-05-31  Bruno Haible  <bruno@clisp.org>
21918
21919         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
21920         * tests/test-memchr.c (main): Check that memchr does not read past the
21921         first occurrence of the byte.
21922         * tests/test-strstr.c (main): Update comment.
21923         Suggested by Eric Blake.
21924
21925 2009-05-30  Bruno Haible  <bruno@clisp.org>
21926
21927         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
21928         detail how to use dumpbin.
21929         Reported by David Byron <dbyron@dbyron.com>.
21930
21931 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21932
21933         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
21934
21935 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21936
21937         * m4/manywarnings.m4: Add GCC 4.4 warnings.
21938
21939 2009-05-28  Bruno Haible  <bruno@clisp.org>
21940
21941         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
21942         build-aux/ files.
21943
21944 2009-05-28  Simon Josefsson  <simon@josefsson.org>
21945
21946         * gnulib-tool (func_import): Transform license on build-aux/ files too.
21947
21948 2009-05-27  Simon Josefsson  <simon@josefsson.org>
21949
21950         * gnulib-tool (sed_transform_main_lib_file)
21951         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
21952         regexps.
21953
21954 2009-05-26  Simon Josefsson  <simon@josefsson.org>
21955
21956         * tests/test-strstr.c: Add another self-test.
21957         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
21958         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
21959
21960 2009-05-23  Bruno Haible  <bruno@clisp.org>
21961
21962         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
21963         change.
21964
21965 2009-05-21  Bruno Haible  <bruno@clisp.org>
21966
21967         Simplify use of mode_t varargs.
21968         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
21969         uses 'mode_t' or 'int'.
21970         * lib/openat.c (openat): Likewise.
21971         * lib/open-safer.c (open_safer): Likewise.
21972         * m4/mode_t.m4: New file.
21973         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
21974         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
21975         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
21976         * modules/open (Files): Add m4/mode_t.m4.
21977         * modules/openat (Files): Likewise.
21978         * modules/fcntl-safer (Files): Likewise.
21979         Suggested by Eric Blake.
21980
21981 2009-05-21  Pádraig Brady  <P@draigbrady.com>
21982
21983         * doc/glibc-functions/fallocate.texi: New file.
21984         * doc/gnulib.texi: Include it.
21985
21986 2009-05-21  Eric Blake  <ebb9@byu.net>
21987             Bruno Haible  <bruno@clisp.org>
21988
21989         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
21990         invocations.
21991         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
21992
21993 2009-05-21  Eric Blake  <ebb9@byu.net>
21994             Bruno Haible  <bruno@clisp.org>
21995
21996         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
21997         include_next. Fix of 2008-11-20 commit.
21998         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
21999         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
22000         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
22001         NEXT_MATH_H.
22002         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
22003         instead of NEXT_MATH_H.
22004
22005 2009-05-21  Bruno Haible  <bruno@clisp.org>
22006
22007         Avoid redefinition warnings for SIZE_MAX.
22008         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
22009         Reported by Simon Josefsson.
22010
22011 2009-05-21  Bruno Haible  <bruno@clisp.org>
22012
22013         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
22014         AC_CACHE_VAL.
22015
22016 2009-05-20  Bruno Haible  <bruno@clisp.org>
22017
22018         Make zeroptr.h work on mingw.
22019         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
22020         mprotect.
22021         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
22022         * modules/memchr2-tests (configure.ac): Likewise.
22023         * modules/memcmp-tests (configure.ac): Likewise.
22024         * modules/memmem-tests (configure.ac): Likewise.
22025         * modules/memrchr-tests (configure.ac): Likewise.
22026         Reported by Simon Josefsson.
22027
22028 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22029
22030         * tests/test-glob.c: Include string.h for strcmp prototype.
22031
22032 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22033
22034         * modules/getdelim (Depends-on): Add explicit stdint, although it
22035         was implicitly already pulled in via realloc-posix.
22036         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
22037
22038 2009-05-20  Simon Josefsson  <simon@josefsson.org>
22039
22040         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
22041         G. Christensen" <tgc@jupiterrise.com>.
22042         * m4/sys_socket_h.m4: Check for sa_family_t.
22043         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
22044         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
22045         * tests/test-sys_socket.c: Check that sa_family_t works.
22046
22047 2009-05-18  Eric Blake  <ebb9@byu.net>
22048
22049         maint.mk: allow gnulib_dir in VPATH build
22050         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
22051
22052 2009-05-15  Jim Meyering  <meyering@redhat.com>
22053
22054         maint.mk: Give gnulib_dir a default definition.
22055         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
22056         Thus, most packages no longer need to specify this variable in cfg.mk
22057
22058 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
22059
22060         rename.m4: fix typos that would make non-mingw cross-configure fail
22061         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
22062
22063 2009-05-13  Eric Blake  <ebb9@byu.net>
22064
22065         mmap-anon: avoid out-of-order autoconf expansion
22066         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
22067         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
22068         * modules/memchr-tests (Depends-on): Add extensions.
22069         * modules/memchr2-tests (Depends-on): Add extensions.
22070         * modules/memcmp-tests (Depends-on): Add extensions.
22071         * modules/memmem-tests (Depends-on): Add extensions.
22072         * modules/memrchr-tests (Depends-on): Add extensions.
22073
22074 2009-05-13  Bruno Haible  <bruno@clisp.org>
22075
22076         Make some tests ISO C 99 compliant.
22077         * tests/zerosize-ptr.h: New file.
22078         * tests/test-memchr.c: Include zerosize-ptr.h.
22079         (main): Use a zero-size object pointer instead of NULL.
22080         * tests/test-memchr2.c: Include zerosize-ptr.h.
22081         (main): Use a zero-size object pointer instead of NULL.
22082         * tests/test-memcmp.c: Include zerosize-ptr.h.
22083         (main): Use a zero-size object pointer instead of NULL.
22084         * tests/test-memmem.c: Include zerosize-ptr.h.
22085         (main): Use a zero-size object pointer instead of NULL.
22086         * tests/test-memrchr.c: Include zerosize-ptr.h.
22087         (main): Use a zero-size object pointer instead of NULL.
22088         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
22089         m4/mmap-anon.m4.
22090         (Depends-on): Add getpagesize.
22091         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22092         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
22093         m4/mmap-anon.m4.
22094         (Depends-on): Add getpagesize.
22095         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22096         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
22097         m4/mmap-anon.m4.
22098         (Depends-on): Add getpagesize.
22099         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22100         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
22101         m4/mmap-anon.m4.
22102         (Depends-on): Add getpagesize.
22103         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22104         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
22105         m4/mmap-anon.m4.
22106         (Depends-on): Add getpagesize.
22107         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
22108
22109 2009-05-12  Bruno Haible  <bruno@clisp.org>
22110
22111         Tests for module 'alignof'.
22112         * modules/alignof-tests: New file.
22113         * tests/test-alignof.c: New file.
22114
22115 2009-05-12  Bruno Haible  <bruno@clisp.org>
22116
22117         Fix alignof macro.
22118         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
22119         vendor compilers that are always correct.
22120
22121 2009-05-12  Bruno Haible  <bruno@clisp.org>
22122
22123         Make the MAP_ANONYMOUS detection work on HP-UX 11.
22124         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
22125         not whether its fully works.
22126
22127 2009-05-12  Bruno Haible  <bruno@clisp.org>
22128
22129         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
22130
22131 2009-05-12  Jim Meyering  <meyering@redhat.com>
22132
22133         * top/maint.mk: Adjust backslash alignment.
22134
22135 2009-05-11  Simon Josefsson  <simon@josefsson.org>
22136
22137         * top/maint.mk: Make $(srcdir)/build-aux configurable.
22138
22139 2009-05-11  Eric Blake  <ebb9@byu.net>
22140
22141         argp: avoid undefined behavior
22142         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
22143         macros.
22144
22145 2009-05-08  Simon Josefsson  <simon@josefsson.org>
22146
22147         * tests/test-vc-list-files-git.sh: Do git config of user.email and
22148         user.name to prevent git commit from complaining.
22149
22150 2009-05-10  Bruno Haible  <bruno@clisp.org>
22151
22152         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
22153         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
22154         it rewrites every file name only once.
22155         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
22156
22157 2009-05-08  Bruno Haible  <bruno@clisp.org>
22158
22159         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
22160         instead of 'max'.
22161
22162 2009-05-08  Simon Josefsson  <simon@josefsson.org>
22163
22164         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
22165         sockaddr_storage test.
22166
22167 2009-05-07  Simon Josefsson  <simon@josefsson.org>
22168
22169         * modules/sys_socket (Makefile.am): Substitute
22170         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
22171         * m4/sys_socket_h.m4: Check for sockaddr_storage.
22172         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
22173         * tests/test-sys_socket.c: Check sockaddr_storage.
22174
22175 2009-05-08  Bruno Haible  <bruno@clisp.org>
22176
22177         New module 'alignof'.
22178         * lib/alignof.h: New file.
22179         * modules/alignof: New file.
22180
22181 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
22182             Bruno Haible  <bruno@clisp.org>
22183
22184         Fix test-file-has-acl on FreeBSD.
22185         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
22186         mask is implicitly added.
22187         * tests/test-file-has-acl.c: Include <signal.h>.
22188         (main): Terminate the test after 5 seconds.
22189         * modules/acl-tests (configure.ac): Check for alarm function.
22190
22191 2009-05-04  Bruno Haible  <bruno@clisp.org>
22192
22193         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
22194         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
22195         * modules/errno (configure.ac): Drop AC_REQUIRE.
22196         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
22197         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
22198
22199 2009-05-04  Simon Josefsson  <simon@josefsson.org>
22200
22201         * modules/glob-tests: New module.
22202         * tests/test-glob.c: Add.
22203
22204 2009-05-04  Simon Josefsson  <simon@josefsson.org>
22205
22206         * modules/fnmatch-tests: New module.
22207         * tests/test-fnmatch.c: Add.
22208
22209 2009-05-04  Eric Blake  <ebb9@byu.net>
22210
22211         maint: make the new no-submodule-changes rule VPATH-safe
22212         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
22213
22214 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
22215             Bruno Haible  <bruno@clisp.org>
22216
22217         acl: Fix infinite loop on FreeBSD.
22218         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
22219         of return value from acl_get_entry.
22220         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
22221         Likewise.
22222
22223 2009-05-03  Bruno Haible  <bruno@clisp.org>
22224
22225         * lib/acl-internal.h (acl_entries): Clarify return value.
22226         * lib/acl_entries.c (acl_entries): Likewise.
22227
22228 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
22229
22230         Bug fix in acl module.
22231         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
22232
22233 2009-05-03  Bruno Haible  <bruno@clisp.org>
22234
22235         Create gperf-generated file in the source dir, not in the build dir.
22236         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
22237         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
22238         * modules/unicase/locale-language (unicase/locale-languages.h):
22239         Likewise.
22240         * modules/unicase/special-casing (unicase/special-casing-table.h):
22241         Likewise.
22242         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
22243         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
22244         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
22245         Reported by Ralf Wildenhues.
22246
22247 2009-05-03  Bruno Haible  <bruno@clisp.org>
22248
22249         * modules/fnmatch (Description, configure.ac): Taken from
22250         fnmatch-posix.
22251         * modules/fnmatch-posix: Turn into a symbolic reference to the
22252         'fnmatch' module, and deprecate.
22253         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
22254
22255 2009-05-03  Bruno Haible  <bruno@clisp.org>
22256
22257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
22258         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
22259         Reported by Ralf Wildenhues.
22260
22261 2009-05-04  Simon Josefsson  <simon@josefsson.org>
22262
22263         * m4/fnmatch.m4: Fix fnmatch re-define.
22264
22265 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
22266
22267         priv-set: new module and tests; adapt write-any-file
22268         * lib/priv-set.c: New file.
22269         * lib/priv-set.h: New file.
22270         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
22271         * lib/write-any-file.c: Simplify by using priv-set module.
22272         * m4/priv-set.m4: New file.
22273         * modules/priv-set: New file.
22274         * modules/unlinkdir: Add dependency on priv-set module.
22275         * modules/write-any-file: Likewise.
22276
22277         Tests for module 'priv-set'.
22278         * modules/priv-set-tests: New file.
22279         * tests/test-priv-set.c: New file.
22280
22281 2009-05-03  Jim Meyering  <meyering@redhat.com>
22282             Bruno Haible  <bruno@clisp.org>
22283
22284         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
22285         use the converted UTF-8 variant of the name instead.
22286
22287 2009-05-03  Jim Meyering  <meyering@redhat.com>
22288
22289         tests: tighten some getdate tests
22290         * tests/test-getdate.c (main): Tighten tests: require equality,
22291         not just greater than.  Set TZ envvar to UTC0.
22292
22293 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22294
22295         getdate: correctly interpret "next monday" when run on a Monday
22296         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
22297         that e.g., "next tues" (when run on a tuesday) results in a date
22298         that is one week in the future, and not today's date.
22299         I.e., add a week when the wday is the same as the current one.
22300         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
22301         and earlier by Martin Bernreuther and Jan Minář.
22302         * tests/test-getdate.c (main): Check that "next DAY" is always in
22303         the future and that "last DAY" is always in the past.
22304
22305 2009-05-02  Jim Meyering  <meyering@redhat.com>
22306
22307         build: ensure that a release build fails when a submodule is unclean
22308         * top/maint.mk (no-submodule-changes): New rule.
22309         (alpha beta major): Depend on it.
22310
22311 2009-05-02  Bruno Haible  <bruno@clisp.org>
22312
22313         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
22314         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
22315         shell variable gl_fnmatch_required to detect which variant is
22316         requested.
22317         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
22318         gl_FUNC_FNMATCH_POSIX.
22319         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
22320         exclude fnmatch-posix.
22321
22322 2009-05-02  Bruno Haible  <bruno@clisp.org>
22323
22324         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
22325         * modules/mbsrtowcs (License): Change to LGPLv2+.
22326         * modules/strnlen1 (License): Likewise.
22327         Reported by Simon Josefsson.
22328
22329 2009-05-02  Bruno Haible  <bruno@clisp.org>
22330
22331         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
22332         "cross".
22333         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
22334         gnulib-tool was called with option --source-base=lib.
22335
22336 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22337
22338         Use automake *-local hooks without commands, for extensibility.
22339         * modules/localcharset (Makefile.am): Rename install-exec-local
22340         rule to install-exec-localcharset, and make it a prerequisite of
22341         install-exec-local.  Likewise, rename the uninstall-local rule to
22342         uninstall-localcharset, and make it a prerequisite of the former.
22343
22344 2009-05-01  Bruno Haible  <bruno@clisp.org>
22345
22346         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
22347         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
22348         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
22349         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
22350         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
22351         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
22352         m4/locale-zh.m4, m4/codeset.m4.
22353
22354         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
22355         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
22356         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
22357         m4/locale-zh.m4.
22358
22359         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
22360         REPLACE_WCRTOMB if mbstate_t must be replaced.
22361         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
22362         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
22363
22364 2009-05-01  Bruno Haible  <bruno@clisp.org>
22365
22366         Avoid compiler warnings when redefining macros defined by <libintl.h>.
22367         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
22368         dngettext, dcngettext, textdomain, bindtextdomain,
22369         bind_textdomain_codeset): Undefine before redefining.
22370
22371 2009-04-30  Bruno Haible  <bruno@clisp.org>
22372
22373         Fix bug introduced on 2009-04-25.
22374         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
22375         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
22376         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
22377         is defined.
22378         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
22379         is defined.
22380         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
22381         is defined.
22382         Reported by Elbert_Pol <elbert.pol@gmail.com>.
22383
22384 2009-04-28  Bruno Haible  <bruno@clisp.org>
22385
22386         Comment tweaks.
22387         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
22388         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
22389         * lib/unicase.h (u*_casexfrm): Likewise.
22390         Reported by Paolo Bonzini.
22391
22392 2009-04-28  Bruno Haible  <bruno@clisp.org>
22393
22394         Fix a compilation error.
22395         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
22396         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
22397         Reported by Jim Meyering.
22398
22399 2009-04-27  Bruno Haible  <bruno@clisp.org>
22400
22401         New module 'libunistring'.
22402         * modules/libunistring: New file.
22403         * m4/libunistring.m4: New file.
22404         * MODULES.html.sh (Unicode string functions): Add it.
22405
22406 2009-04-27  Eric Blake  <ebb9@byu.net>
22407
22408         maint.mk: allow package-specific header to provide <config.h>
22409         * top/maint.mk (sc_require_config_h): New variable.
22410         (sc_require_config_h, sc_require_config_h_first): Use it.
22411
22412 2009-04-27  Simon Josefsson  <simon@josefsson.org>
22413
22414         * top/maint.mk (sc_avoid_if_before_free): Except
22415         useless-if-before-free script.
22416
22417 2009-04-27  Eric Blake  <ebb9@byu.net>
22418
22419         maintainer-makefile: depend on all required helper scripts
22420         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
22421         useless-if-before-free.
22422         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
22423         version, rather than assuming gnulib checkout is available.
22424         Reported by Simen Josefsson.
22425
22426 2009-04-26  Bruno Haible  <bruno@clisp.org>
22427
22428         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
22429         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
22430         "../" or "..".
22431
22432 2009-04-26  Bruno Haible  <bruno@clisp.org>
22433
22434         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
22435         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
22436         AC_LIB_HAVE_LINKFLAGS.
22437
22438 2009-04-26  Bruno Haible  <bruno@clisp.org>
22439
22440         Simplify calling convention of u*_conv_from_encoding.
22441         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
22442         u32_conv_from_encoding): Expect a resultbuf argument and return the
22443         result directly as a pointer.
22444         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
22445         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
22446         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
22447         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
22448         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
22449         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
22450         Update.
22451         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
22452         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
22453         * lib/vasnprintf.c (VASNPRINTF): Update.
22454         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
22455         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
22456         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
22457         * NEWS: Mention the change.
22458
22459 2009-04-26  Bruno Haible  <bruno@clisp.org>
22460
22461         Simplify calling convention of u*_conv_to_encoding.
22462         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
22463         u32_conv_to_encoding): Expect a resultbuf argument and return the
22464         result directly as a pointer.
22465         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22466         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
22467         freeing scaled_offsets if mem_iconveha failed.
22468         * lib/unicase/u-casexfrm.h (FUNC): Update.
22469         * lib/uninorm/u-normxfrm.h (FUNC): Update.
22470         * lib/vasnprintf.c (VASNPRINTF): Update.
22471         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
22472         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
22473         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
22474         * NEWS: Mention the change.
22475
22476 2009-04-26  Bruno Haible  <bruno@clisp.org>
22477
22478         Avoid test failures on AIX and OSF/1.
22479         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
22480         malloc(0).
22481         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22482         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
22483         Likewise.
22484         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
22485         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
22486         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
22487         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
22488         * doc/posix-functions/malloc.texi: Document the portability problem
22489         related to malloc(0).
22490
22491 2009-04-26  Bruno Haible  <bruno@clisp.org>
22492
22493         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
22494         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
22495         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
22496
22497 2009-04-25  Bruno Haible  <bruno@clisp.org>
22498
22499         Avoid link error when creating a namespace clean library.
22500         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
22501         as macro with arguments if already defined as an alias.
22502         * lib/signbitf.c (gl_signbitf): Don't undefine.
22503         * lib/signbitd.c (gl_signbitd): Don't undefine.
22504         * lib/signbitl.c (gl_signbitl): Don't undefine.
22505
22506 2009-04-25  Jim Meyering  <meyering@redhat.com>
22507
22508         vc-list-files: fix another quoting bug
22509         * build-aux/vc-list-files: Avoid sed backslash expansion
22510         of pathological directory names.
22511
22512 2009-04-25  Eric Blake  <ebb9@byu.net>
22513
22514         vc-list-files: fix shell quoting error
22515         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
22516         timestamp.
22517
22518 2009-04-25  Jim Meyering  <meyering@redhat.com>
22519
22520         vc-list-files: restore lost functionality with subdir argument
22521         * build-aux/vc-list-files: When given a non-"." sub-directory
22522         argument, substitute the $dir/ prefix back onto each resulting name.
22523         Otherwise, coreutils' root_tests check would fail.
22524
22525 2009-04-24  Eric Blake  <ebb9@byu.net>
22526
22527         vc-list-files: ignore git symlinks
22528         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
22529         than ls-files, to ignore git symlinks.
22530
22531         maint.mk: import improvements from m4
22532         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
22533         (move_if_change): Delete unused macro.
22534         (news-date-check, vc-diff-check): Support VPATH builds.
22535         (announcement): Likewise.  Split --bootstrap-tools list...
22536         (boostrap-tools): ...into separate list, which can be overridden
22537         in cfg.mk.
22538         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
22539         requiring dependency on useless-if-before-free module.
22540         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
22541         Support VPATH builds.
22542
22543 2009-04-24  Jim Meyering  <meyering@redhat.com>
22544
22545         maint.mk: remove coreutils-specific rules and variables
22546         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
22547         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
22548         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
22549
22550         maint.mk: remove obsolete rule
22551         * top/maint.mk (rel-check): Remove rule.
22552         (WGET, WGETFLAGS): Remove now-unused variables.
22553
22554 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22555
22556         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
22557         consistency.
22558
22559         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
22560         '$(PATH_SEPARATOR)' instead of ':'.
22561
22562 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22563
22564         * lib/getopt1.c (main): Use 'const' for static array.
22565
22566 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22567
22568         * top/maint.mk: Sync with coreutils.
22569         * NEWS: Explain incompatibilities.
22570
22571 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22572             Bruno Haible  <bruno@clisp.org>
22573
22574         Fix cross-compilation results.
22575         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
22576         statement, as third argument of AC_TRY_RUN.
22577         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22578         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22579         Likewise.
22580         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22581         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22582         Likewise.
22583         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22584         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
22585         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
22586
22587 2009-04-20  Bruno Haible  <bruno@clisp.org>
22588
22589         Avoid test failure on mingw.
22590         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
22591
22592 2009-04-20  Bruno Haible  <bruno@clisp.org>
22593
22594         Avoid compilation error on mingw.
22595         * modules/localename-tests (Depends-on): Add locale.
22596
22597 2009-04-19  Bruno Haible  <bruno@clisp.org>
22598
22599         Support for building a shared library on Windows platforms.
22600         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
22601         (main): Test the presence of UNINORM_NFC here.
22602         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
22603         (main): Test the presence of UNINORM_NFD here.
22604         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
22605         (main): Test the presence of UNINORM_NFKC here.
22606         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
22607         (main): Test the presence of UNINORM_NFKD here.
22608
22609 2009-04-19  Bruno Haible  <bruno@clisp.org>
22610
22611         Avoid a compiler warning.
22612         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
22613         Change type of variable 'sequence'.
22614
22615 2009-04-19  Bruno Haible  <bruno@clisp.org>
22616
22617         * modules/configmake (Makefile.am): When the contents of configmake.h
22618         does not change, arrange to preserve its modification time.
22619
22620 2009-04-17  Simon Josefsson  <simon@josefsson.org>
22621
22622         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
22623         gettext domain.
22624
22625 2009-04-16  Jim Meyering  <meyering@redhat.com>
22626
22627         useless-if-before-free: improve conversion code
22628         * build-aux/useless-if-before-free: Adjust code-in-comment to match
22629         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
22630
22631 2009-04-14  Bruno Haible  <bruno@clisp.org>
22632
22633         * modules/fcntl (Depends-on): Add extensions.
22634         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
22635
22636 2009-04-12  Ben Pfaff  <blp@gnu.org>
22637
22638         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
22639         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
22640
22641 2009-03-20  Ben Pfaff  <blp@gnu.org>
22642
22643         Make rename replace existing destinations on Windows.
22644         * m4/rename.m4: Add test for Mingw.
22645         * lib/rename.c: Add rename replacement that uses MoveFileEx with
22646         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
22647         * doc/posix-functions/rename.texi: Document.
22648
22649 2009-04-10  Bruno Haible  <bruno@clisp.org>
22650
22651         New include file "iconveh.h".
22652         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
22653         * lib/striconveh.h: Include it.
22654         (enum iconv_ilseq_handler): Remove definition.
22655         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
22656         striconveh.h.
22657         * lib/striconveha.c: Include striconveh.h.
22658         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
22659         * modules/striconveh (Files): Add lib/iconveh.h.
22660         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
22661         lib/striconveh.h.
22662
22663 2009-04-10  Bruno Haible  <bruno@clisp.org>
22664
22665         * lib/uniconv.h: Update comment.
22666
22667 2009-04-10  Bruno Haible  <bruno@clisp.org>
22668
22669         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
22670         always.
22671         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
22672         * lib/unistr/u16-mbtouc-aux.c: Likewise.
22673         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
22674         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
22675         "unistring-notinline.h", so that the function gets defined always.
22676         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
22677         * lib/unistr/u8-uctomb.c: Likewise.
22678         * lib/unistr/u16-mbtouc.c: Likewise.
22679         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
22680         * lib/unistr/u16-uctomb.c: Likewise.
22681         * lib/unistr/u32-mbtouc.c: Likewise.
22682         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
22683         * lib/unistr/u32-uctomb.c: Likewise.
22684
22685 2009-04-10  Bruno Haible  <bruno@clisp.org>
22686
22687         Mark 'utime' obsolete.
22688         * modules/utime (Status, Notice): New sections.
22689         Suggested by Jim Meyering.
22690
22691         Fix cross-compile guess for utime test.
22692         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
22693         autoconf.
22694         * doc/posix-functions/utime.texi: Give more precisions.
22695         Reported by Jan <ipif@ymail.com>.
22696
22697 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
22698
22699         filevercmp: correct today's change
22700         * lib/filevercmp.c: Also handle coreutils' test inputs.
22701         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
22702
22703         Fix regression in 'filevercmp' module. Thanks Sven Joachim
22704         for reporting it.
22705         * lib/filevercmp.c: Special handle for "", "." and "..".
22706         * tests/test-filevercmp.c: Enlarge the set suite.
22707
22708 2009-04-07  Jim Meyering  <meyering@redhat.com>
22709
22710         useless-if-before-free: show how to remove braced useless free, too
22711         * build-aux/useless-if-before-free: still only in a comment, though.
22712
22713 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
22714
22715         maint.mk: import changes to syntax-check macros from coreutils
22716         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
22717         Use them in the relevant macros.
22718
22719 2009-04-06  Bruno Haible  <bruno@clisp.org>
22720
22721         Fix unportable use of bit-fields.
22722         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
22723         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
22724         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
22725
22726 2009-04-06  Bruno Haible  <bruno@clisp.org>
22727
22728         Avoid test failures on AIX and OSF/1.
22729         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
22730         that malloc(0) = NULL.
22731         * tests/unicase/test-u8-tolower.c (check): Likewise.
22732         * tests/unicase/test-u8-totitle.c (check): Likewise.
22733         * tests/unicase/test-u8-toupper.c (check): Likewise.
22734         * tests/unicase/test-u16-casefold.c (check): Likewise.
22735         * tests/unicase/test-u16-tolower.c (check): Likewise.
22736         * tests/unicase/test-u16-totitle.c (check): Likewise.
22737         * tests/unicase/test-u16-toupper.c (check): Likewise.
22738         * tests/unicase/test-u32-casefold.c (check): Likewise.
22739         * tests/unicase/test-u32-tolower.c (check): Likewise.
22740         * tests/unicase/test-u32-totitle.c (check): Likewise.
22741         * tests/unicase/test-u32-toupper.c (check): Likewise.
22742         * tests/uninorm/test-u8-nfc.c (check): Likewise.
22743         * tests/uninorm/test-u8-nfd.c (check): Likewise.
22744         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
22745         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
22746         * tests/uninorm/test-u16-nfc.c (check): Likewise.
22747         * tests/uninorm/test-u16-nfd.c (check): Likewise.
22748         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
22749         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
22750         * tests/uninorm/test-u32-nfc.c (check): Likewise.
22751         * tests/uninorm/test-u32-nfd.c (check): Likewise.
22752         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
22753         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
22754
22755 2009-04-05  Bruno Haible  <bruno@clisp.org>
22756
22757         Work around an autoconf limitation.
22758         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
22759         comment line if it would be longer than 3 KB.
22760
22761 2009-04-05  Bruno Haible  <bruno@clisp.org>
22762
22763         Avoid test failure with libiconv-1.13.
22764         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
22765         of the expected test results.
22766
22767 2009-04-05  Bruno Haible  <bruno@clisp.org>
22768
22769         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
22770         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
22771         that it should be installed.
22772
22773 2009-04-05  Bruno Haible  <bruno@clisp.org>
22774
22775         * gnulib-tool: New option --copy-file.
22776         (func_usage): Document it.
22777         (func_dest_tmpfilename): Moved out of func_import.
22778         (func_add_file, func_update_file): New functions, extracted from
22779         func_import.
22780         (func_import): Update.
22781
22782 2009-04-05  Karl Berry  <karl@gnu.org>
22783
22784         * README: prominently mention gnulib-tool.
22785         Rearrange sections so getting the code is near the top.
22786
22787 2009-04-05  Bruno Haible  <bruno@clisp.org>
22788
22789         * lib/unicase.h: Mention u*_cmp2.
22790         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22791         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
22792         * lib/unicase/ulc-casecmp.c: Likewise.
22793         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
22794         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
22795         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
22796         unistr/u8-cmp.
22797         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
22798         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
22799         unistr/u16-cmp.
22800         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
22801         unistr/u32-cmp.
22802
22803         * lib/uninorm.h: Mention u*_cmp2.
22804         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22805         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
22806         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
22807         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
22808         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
22809         unistr/u8-cmp.
22810         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
22811         unistr/u16-cmp.
22812         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
22813         unistr/u32-cmp.
22814
22815         New module 'unistr/u32-cmp2'.
22816         * lib/unistr/u32-cmp2.c: New file.
22817         * modules/unistr/u32-cmp2: New file.
22818
22819         New module 'unistr/u16-cmp2'.
22820         * lib/unistr/u16-cmp2.c: New file.
22821         * modules/unistr/u16-cmp2: New file.
22822
22823         New module 'unistr/u8-cmp2'.
22824         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
22825         * lib/unistr/u8-cmp2.c: New file.
22826         * lib/unistr/u-cmp2.h: New file.
22827         * modules/unistr/u8-cmp2: New file.
22828
22829 2009-04-05  Bruno Haible  <bruno@clisp.org>
22830
22831         * lib/unictype.h (uc_property_is_valid): New macro.
22832         * tests/unictype/test-pr_byname.c (main): Use it.
22833
22834         * lib/unistr.h: Doc fixes.
22835         * lib/uniconv.h: Doc fixes.
22836         * lib/unictype.h: Doc fixes.
22837
22838 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
22839
22840         Port coreutils 7.2 to Solaris 8.
22841
22842         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
22843         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
22844         for Solaris 8.  This is a bit of a hack, as it means it's the
22845         caller's responsibility to add -lnsl if needed, but most likely it
22846         won't be needed since only getaddrinfo uses this and getaddrinfo
22847         isn't needed on Solaris 8.
22848
22849         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
22850         problem to Solaris 8 encountered with coreutils 7.2, which
22851         resulted in a message "fnmatch.c:292: warning: passing argument 4
22852         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
22853         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
22854
22855 2009-04-03  Simon Josefsson  <simon@josefsson.org>
22856
22857         * m4/ld-version-script.m4: Add FIXME comment.
22858
22859 2009-04-02  Simon Josefsson  <simon@josefsson.org>
22860
22861         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
22862         SOVERSION variable.
22863
22864 2009-04-02  Bruno Haible  <bruno@clisp.org>
22865
22866         * Makefile (info, html, dvi, pdf): Combine the rules.
22867         Suggested by Jim Meyering.
22868
22869 2009-04-01  Bruno Haible  <bruno@clisp.org>
22870
22871         * Makefile (info, html, dvi, pdf): New targets.
22872         Reported by Reuben Thomas <rrt@sc3d.org>.
22873
22874 2009-04-01  Bruno Haible  <bruno@clisp.org>
22875
22876         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
22877         can be put into PATH.
22878         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
22879
22880 2009-04-01  Bruno Haible  <bruno@clisp.org>
22881
22882         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
22883
22884 2009-04-01  Bruno Haible  <bruno@clisp.org>
22885
22886         Rename module 'visibility'.
22887         * modules/lib-symbol-visibility: Renamed from modules/visibility.
22888         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
22889         * doc/gnulib.texi: Update.
22890         * MODULES.html.sh (Misc): Update.
22891         * NEWS: Mention the change.
22892
22893 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22894
22895         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
22896         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
22897         Eric Blake <ebb9@byu.net> for review.
22898         * MODULES.html.sh: Add lib-msvc-compat.
22899         * doc/gnulib.texi: Link to new section.
22900         * m4/ld-output-def.m4: New file.
22901         * doc/ld-output-def.texi: New file.
22902
22903 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22904
22905         Rename ld-version-script to lib-symbol-versions.  Suggested by
22906         Bruno Haible <bruno@clisp.org>.
22907         * modules/ld-version-script: Renamed to lib-symbol-versions.
22908         * doc/ld-version-script.texi: Fix module name.
22909         * MODULES.html.sh: Add lib-symbol-versions.
22910
22911 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22912
22913         * modules/u64-tests: New file.
22914         * tests/test-u64.c: New file.
22915
22916 2009-03-04  Simon Josefsson  <simon@josefsson.org>
22917
22918         * MODULES.html.sh: Mention u64.
22919         * modules/u64: New module.
22920         * modules/crypto/sha512: Depend on u64 module instead of providing
22921         u64.h.
22922
22923 2009-03-27  Eric Blake  <ebb9@byu.net>
22924
22925         test-strerror: make debugging EAI_SYSTEM easier
22926         * modules/getaddrinfo-tests (Depends-on): Add strerror.
22927         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
22928         failure was EAI_SYSTEM.
22929
22930 2009-03-25  Bruno Haible  <bruno@clisp.org>
22931
22932         Fix a problem with --enable-relocatable on Solaris 7.
22933         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
22934         since 2008-02-24.
22935
22936 2009-03-25  Eric Blake  <ebb9@byu.net>
22937
22938         test-sockets: avoid gcc warning
22939         * tests/test-sockets.c (main): Silence compiler warning.
22940
22941 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22942
22943         New modules nproc, pthread, contributed by Glen Lenker.
22944
22945         * MODULES.html.sh: Add pthread, nproc.
22946         * lib/nproc.c: New file.
22947         * lib/nproc.h: New file.
22948         * lib/pthread.in.h: New file.
22949         * m4/pthread.m4: New file.
22950         * modules/nproc: New file.
22951         * modules/pthread: New file.
22952
22953 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22954
22955         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
22956         New variable.
22957
22958 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
22959
22960         filevercmp: handle simple~ and numbered.~3~ backup suffixes
22961         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
22962         * tests/test-filevercmp.c: Add tests for backup suffixes.
22963
22964 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22965
22966         * modules/stdlib (Depends-on): Add stdint, needed when defining
22967         struct random_data on, for example, HP-UX 10.20.  Reported by
22968         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22969
22970 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22971
22972         * lib/readline.c (readline): Call fflush on stdout after printing
22973         prompt.
22974
22975 2009-03-20  Bruno Haible  <bruno@clisp.org>
22976
22977         Remove dependency from 'close' module to -lws2_32 on native Windows.
22978         * lib/close-hook.h: New file.
22979         * lib/close-hook.c: New file.
22980         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
22981         w32sock.h.
22982         (_gl_close_fd_maybe_socket): Remove function.
22983         (rpl_close): Invoke execute_all_close_hooks instead of
22984         _gl_close_fd_maybe_socket.
22985         * lib/sockets.c: Include close-hook.h, w32sock.h.
22986         (close_fd_maybe_socket): New function, essentially from lib/close.c.
22987         (close_sockets_hook): New variable.
22988         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
22989         (gl_sockets_cleanup): Unregister it.
22990         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
22991         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
22992         * modules/close-hook: New file.
22993         * modules/close (Files): Remove lib/w32sock.h.
22994         (Depends-on): Add close-hook.
22995         (Link): Remove section.
22996         * modules/sockets (Files): Add lib/w32sock.h.
22997         (Depends-on): Add close-hook.
22998         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
22999         invocation.
23000         * NEWS: Mention that LIB_CLOSE is gone.
23001
23002 2009-03-23  Eric Blake  <ebb9@byu.net>
23003
23004         signal-tests: test previous patch
23005         * tests/test-signal.c: New file.
23006         * modules/signal-tests: Likewise.
23007
23008         signal.h: always support 'volatile sig_atomic_t'
23009         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
23010         (gl_SIGNAL_H_DEFAULTS): Add a default.
23011         * modules/signal (Makefile.am): Substitute if needed.
23012         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
23013         users can blindly add volatile.
23014         * doc/posix-headers/signal.texi (signal.h): Document it.
23015         Reported by Matthew Woehlke.
23016
23017 2009-03-23  Jim Meyering  <meyering@redhat.com>
23018
23019         pathmax: PATH_MAX: use pathconf only when available
23020         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
23021         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
23022         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
23023         This avoids a link failure in a PSP cross-compilation environment
23024         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
23025
23026         * lib/vasnprintf.c (divide): Fix typo in comment.
23027
23028 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23029
23030         * gnulib-tool (func_filter_filelist): Fix comment.
23031
23032 2009-03-20  Bruno Haible  <bruno@clisp.org>
23033
23034         Make sockets.h self-contained.
23035         * lib/sockets.c: Include sockets.h first.
23036         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
23037
23038 2009-03-19  Eric Blake  <ebb9@byu.net>
23039
23040         doc: mention more functions added in cygwin 1.7.0
23041         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
23042         addition.
23043         * doc/posix-functions/log2f.texi: Likewise.
23044
23045 2009-03-19  Jim Meyering  <meyering@redhat.com>
23046
23047         fsusage: avoid syntax error due to statement-before-declaration
23048         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
23049         after all declarations.  Reported by Matthew Woehlke in
23050         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
23051
23052 2009-03-18  Eric Blake  <ebb9@byu.net>
23053
23054         build-aux/compile: sync from automake
23055         * build-aux/compile: New file, from automake.
23056         * config/srclist.txt: Mention build-aux/compile.
23057
23058 2009-03-17  Bruno Haible  <bruno@clisp.org>
23059
23060         * lib/git-merge-changelog.c: Fix typo in comment.
23061         Reported by Reuben Thomas <rrt@sc3d.org>.
23062
23063 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
23064
23065         * m4/regex.m4: update and improve help for
23066         --without-included-regex.
23067
23068 2009-03-17  Simon Josefsson  <simon@josefsson.org>
23069
23070         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
23071         failure on missing include files.
23072
23073 2009-03-17  Eric Blake  <ebb9@byu.net>
23074
23075         doc: mention more functions added in cygwin 1.7.0
23076         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
23077         addition.
23078         * doc/posix-functions/fwscanf.texi: Likewise.
23079         * doc/posix-functions/swprintf.texi: Likewise.
23080         * doc/posix-functions/swscanf.texi: Likewise.
23081         * doc/posix-functions/vfwprintf.texi: Likewise.
23082         * doc/posix-functions/vfwscanf.texi: Likewise.
23083         * doc/posix-functions/vswprintf.texi: Likewise.
23084         * doc/posix-functions/vswscanf.texi: Likewise.
23085         * doc/posix-functions/vwprintf.texi: Likewise.
23086         * doc/posix-functions/vwscanf.texi: Likewise.
23087         * doc/posix-functions/wcscasecmp.texi: Likewise.
23088         * doc/posix-functions/wcsdup.texi: Likewise.
23089         * doc/posix-functions/wcsftime.texi: Likewise.
23090         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23091         * doc/posix-functions/wprintf.texi: Likewise.
23092         * doc/posix-functions/wscanf.texi: Likewise.
23093         * doc/glibc-functions/gethostbyname2.texi: Likewise.
23094
23095 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23096
23097         maint.mk: really add $(AM_MAKEFLAGS)
23098         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
23099         was inadvertently omitted in the last commit.
23100         Spotted by Bruno Haible.
23101
23102         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
23103         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
23104         $(AM_MAKEFLAGS)' rather than plain `make'.
23105
23106         gnulib-tool: execute $MAKE not make
23107         * gnulib-tool: Default $MAKE to 'make'.
23108         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
23109         than make.  Initialize $MAKE in the do-autobuild script.
23110
23111         gnulib-tool: use $MAKE not make in generated files
23112         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
23113         make, in generated files.  Initialize $MAKE in the do-autobuild
23114         script.
23115
23116         * top/GNUmakefile (_have-git-version-gen): Fix typo.
23117
23118         GNUmakefile: disable parallelism only for multiple, recursive targets
23119         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
23120         additions in the Makefile.
23121         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
23122         by Automake.
23123         (.NOTPARALLEL): Only disable parallel builds if multiple targets
23124         are listed on the command line and at least one of them is
23125         listed in $(ALL_RECURSIVE_TARGETS).
23126
23127 2009-03-14  Bruno Haible  <bruno@clisp.org>
23128
23129         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
23130         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
23131         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
23132         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
23133         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
23134         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
23135         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
23136         unistr/u8-uctomb.
23137         * modules/unistr/u8-strchr (Depends-on): Likewise.
23138         * modules/unistr/u8-strrchr (Depends-on): Likewise.
23139         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
23140         unistr/u16-uctomb.
23141         * modules/unistr/u16-strchr (Depends-on): Likewise.
23142         * modules/unistr/u16-strrchr (Depends-on): Likewise.
23143
23144 2009-03-12  Bruno Haible  <bruno@clisp.org>
23145
23146         Work around select() bug on Interix 3.5.
23147         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
23148         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
23149         * m4/select.m4: New file.
23150         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
23151         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
23152         * modules/select (Files): Add m4/select.m4.
23153         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
23154         * modules/nanosleep (Depends-on): Add select.
23155         * modules/poll (Depends-on): Likewise.
23156         * doc/posix-functions/select.texi: Mention the Interix bug.
23157         Reported by Markus Duft <mduft@gentoo.org>.
23158
23159         * lib/select.c: Renamed from lib/winsock-select.c.
23160         * modules/select (Files): Add lib/select.c, remove
23161         lib/winsock-select.c.
23162         (configure.ac): Update.
23163
23164 2009-03-12  Jim Meyering  <meyering@redhat.com>
23165
23166         avoid gcc warnings about unused macro definitions
23167         * lib/readtokens.c (STREQ): Remove unused definition.
23168         * lib/xmalloc.c (SIZE_MAX): Likewise.
23169         * lib/openat-die.c (N_): Likewise.
23170         * lib/mountlist.c (SIZE_MAX): Remove definition.
23171         Instead, include <stdint.h>.
23172         * lib/readutmp.c: Likewise.
23173         * modules/readutmp (Depends-on): Add stdint.
23174         * modules/mountlist (Depends-on): Add stdint.
23175         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
23176
23177 2009-03-10  Bruno Haible  <bruno@clisp.org>
23178
23179         Tests for module 'mbmemcasecoll'.
23180         * modules/mbmemcasecoll-tests: New file.
23181         * tests/test-mbmemcasecoll1.sh: New file.
23182         * tests/test-mbmemcasecoll2.sh: New file.
23183         * tests/test-mbmemcasecoll3.sh: New file.
23184         * tests/test-mbmemcasecoll.c: New file.
23185
23186         New module 'mbmemcasecoll'.
23187         * lib/mbmemcasecoll.h: New file.
23188         * lib/mbmemcasecoll.c: New file.
23189         * modules/mbmemcasecoll: New file.
23190
23191         * tests/test-mbmemcasecmp.h: New file, extracted from
23192         tests/test-mbmemcasecmp.c.
23193         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
23194         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
23195         (main): Update.
23196         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
23197
23198 2009-03-09  Bruno Haible  <bruno@clisp.org>
23199
23200         Tests for module 'mbmemcasecmp'.
23201         * modules/mbmemcasecmp-tests: New file.
23202         * tests/test-mbmemcasecmp1.sh: New file.
23203         * tests/test-mbmemcasecmp2.sh: New file.
23204         * tests/test-mbmemcasecmp3.sh: New file.
23205         * tests/test-mbmemcasecmp.c: New file.
23206
23207         New module 'mbmemcasecmp'.
23208         * lib/mbmemcasecmp.h: New file.
23209         * lib/mbmemcasecmp.c: New file.
23210         * modules/mbmemcasecmp: New file.
23211
23212 2009-03-09  Bruno Haible  <bruno@clisp.org>
23213
23214         Tests for module 'unicase/ulc-casecoll'.
23215         * modules/unicase/ulc-casecoll-tests: New file.
23216         * tests/unicase/test-ulc-casecoll1.sh: New file.
23217         * tests/unicase/test-ulc-casecoll2.sh: New file.
23218         * tests/unicase/test-ulc-casecoll.c: New file.
23219
23220         New module 'unicase/ulc-casecoll'.
23221         * lib/unicase.h (ulc_casecoll): New declaration.
23222         * lib/unicase/ulc-casecoll.c: New file.
23223         * modules/unicase/ulc-casecoll: New file.
23224
23225         New module 'unicase/ulc-casexfrm'.
23226         * lib/unicase.h (ulc_casexfrm): New declaration.
23227         * lib/unicase/ulc-casexfrm.c: New file.
23228         * modules/unicase/ulc-casexfrm: New file.
23229
23230 2009-03-09  Bruno Haible  <bruno@clisp.org>
23231
23232         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
23233         invocations.
23234
23235         * m4/mbscasecmp.m4: Remove file.
23236         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
23237         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
23238
23239         * m4/mbscasestr.m4: Remove file.
23240         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
23241         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
23242
23243         * m4/mbschr.m4: Remove file.
23244         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
23245         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
23246
23247         * m4/mbscspn.m4: Remove file.
23248         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
23249         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
23250
23251         * m4/mbslen.m4: Remove file.
23252         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
23253         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
23254
23255         * m4/mbsncasecmp.m4: Remove file.
23256         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
23257         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
23258
23259         * m4/mbsnlen.m4: Remove file.
23260         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
23261         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
23262
23263         * m4/mbspbrk.m4: Remove file.
23264         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
23265         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
23266
23267         * m4/mbspcasecmp.m4: Remove file.
23268         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
23269         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
23270
23271         * m4/mbsrchr.m4: Remove file.
23272         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
23273         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
23274
23275         * m4/mbssep.m4: Remove file.
23276         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
23277         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
23278
23279         * m4/mbsspn.m4: Remove file.
23280         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
23281         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
23282
23283         * m4/mbsstr.m4: Remove file.
23284         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
23285         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
23286
23287         * m4/mbstok_r.m4: Remove file.
23288         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
23289         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
23290
23291         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
23292
23293         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
23294         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
23295
23296         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
23297
23298 2009-03-08  Bruno Haible  <bruno@clisp.org>
23299
23300         Tests for module 'unicase/ulc-casecmp'.
23301         * modules/unicase/ulc-casecmp-tests: New file.
23302         * tests/unicase/test-ulc-casecmp1.sh: New file.
23303         * tests/unicase/test-ulc-casecmp2.sh: New file.
23304         * tests/unicase/test-ulc-casecmp.c: New file.
23305
23306         New module 'unicase/ulc-casecmp'.
23307         * lib/unicase.h (ulc_casecmp): New declaration.
23308         * lib/unicase/ulc-casecmp.c: New file.
23309         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
23310         'const SRC_UNIT *'.
23311         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
23312         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
23313         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
23314         * modules/unicase/ulc-casecmp: New file.
23315
23316         Tests for module 'unicase/u32-is-cased'.
23317         * modules/unicase/u32-is-cased-tests: New file.
23318         * tests/unicase/test-u32-is-cased.c: New file.
23319
23320         Tests for module 'unicase/u16-is-cased'.
23321         * modules/unicase/u16-is-cased-tests: New file.
23322         * tests/unicase/test-u16-is-cased.c: New file.
23323
23324         Tests for module 'unicase/u8-is-cased'.
23325         * modules/unicase/u8-is-cased-tests: New file.
23326         * tests/unicase/test-u8-is-cased.c: New file.
23327         * tests/unicase/test-is-cased.h: New file.
23328
23329         New module 'unicase/u32-is-cased'.
23330         * lib/unicase/u32-is-cased.c: New file.
23331         * modules/unicase/u32-is-cased: New file.
23332
23333         New module 'unicase/u16-is-cased'.
23334         * lib/unicase/u16-is-cased.c: New file.
23335         * modules/unicase/u16-is-cased: New file.
23336
23337         New module 'unicase/u8-is-cased'.
23338         * lib/unicase/u8-is-cased.c: New file.
23339         * lib/unicase/u-is-cased.h: New file.
23340         * modules/unicase/u8-is-cased: New file.
23341
23342         Tests for module 'unicase/u32-is-casefolded'.
23343         * modules/unicase/u32-is-casefolded-tests: New file.
23344         * tests/unicase/test-u32-is-casefolded.c: New file.
23345
23346         Tests for module 'unicase/u16-is-casefolded'.
23347         * modules/unicase/u16-is-casefolded-tests: New file.
23348         * tests/unicase/test-u16-is-casefolded.c: New file.
23349
23350         Tests for module 'unicase/u8-is-casefolded'.
23351         * modules/unicase/u8-is-casefolded-tests: New file.
23352         * tests/unicase/test-u8-is-casefolded.c: New file.
23353         * tests/unicase/test-is-casefolded.h: New file.
23354
23355         New module 'unicase/u32-is-casefolded'.
23356         * lib/unicase/u32-is-casefolded.c: New file.
23357         * modules/unicase/u32-is-casefolded: New file.
23358
23359         New module 'unicase/u16-is-casefolded'.
23360         * lib/unicase/u16-is-casefolded.c: New file.
23361         * modules/unicase/u16-is-casefolded: New file.
23362
23363         New module 'unicase/u8-is-casefolded'.
23364         * lib/unicase/u8-is-casefolded.c: New file.
23365         * modules/unicase/u8-is-casefolded: New file.
23366
23367         Tests for module 'unicase/u32-is-titlecase'.
23368         * modules/unicase/u32-is-titlecase-tests: New file.
23369         * tests/unicase/test-u32-is-titlecase.c: New file.
23370
23371         Tests for module 'unicase/u16-is-titlecase'.
23372         * modules/unicase/u16-is-titlecase-tests: New file.
23373         * tests/unicase/test-u16-is-titlecase.c: New file.
23374
23375         Tests for module 'unicase/u8-is-titlecase'.
23376         * modules/unicase/u8-is-titlecase-tests: New file.
23377         * tests/unicase/test-u8-is-titlecase.c: New file.
23378         * tests/unicase/test-is-titlecase.h: New file.
23379
23380         New module 'unicase/u32-is-titlecase'.
23381         * lib/unicase/u32-is-titlecase.c: New file.
23382         * modules/unicase/u32-is-titlecase: New file.
23383
23384         New module 'unicase/u16-is-titlecase'.
23385         * lib/unicase/u16-is-titlecase.c: New file.
23386         * modules/unicase/u16-is-titlecase: New file.
23387
23388         New module 'unicase/u8-is-titlecase'.
23389         * lib/unicase/u8-is-titlecase.c: New file.
23390         * modules/unicase/u8-is-titlecase: New file.
23391
23392         Tests for module 'unicase/u32-is-lowercase'.
23393         * modules/unicase/u32-is-lowercase-tests: New file.
23394         * tests/unicase/test-u32-is-lowercase.c: New file.
23395
23396         Tests for module 'unicase/u16-is-lowercase'.
23397         * modules/unicase/u16-is-lowercase-tests: New file.
23398         * tests/unicase/test-u16-is-lowercase.c: New file.
23399
23400         Tests for module 'unicase/u8-is-lowercase'.
23401         * modules/unicase/u8-is-lowercase-tests: New file.
23402         * tests/unicase/test-u8-is-lowercase.c: New file.
23403         * tests/unicase/test-is-lowercase.h: New file.
23404
23405         New module 'unicase/u32-is-lowercase'.
23406         * lib/unicase/u32-is-lowercase.c: New file.
23407         * modules/unicase/u32-is-lowercase: New file.
23408
23409         New module 'unicase/u16-is-lowercase'.
23410         * lib/unicase/u16-is-lowercase.c: New file.
23411         * modules/unicase/u16-is-lowercase: New file.
23412
23413         New module 'unicase/u8-is-lowercase'.
23414         * lib/unicase/u8-is-lowercase.c: New file.
23415         * modules/unicase/u8-is-lowercase: New file.
23416
23417         Tests for module 'unicase/u32-is-uppercase'.
23418         * modules/unicase/u32-is-uppercase-tests: New file.
23419         * tests/unicase/test-u32-is-uppercase.c: New file.
23420
23421         Tests for module 'unicase/u16-is-uppercase'.
23422         * modules/unicase/u16-is-uppercase-tests: New file.
23423         * tests/unicase/test-u16-is-uppercase.c: New file.
23424
23425         Tests for module 'unicase/u8-is-uppercase'.
23426         * modules/unicase/u8-is-uppercase-tests: New file.
23427         * tests/unicase/test-u8-is-uppercase.c: New file.
23428         * tests/unicase/test-is-uppercase.h: New file.
23429
23430         New module 'unicase/u32-is-uppercase'.
23431         * lib/unicase/u32-is-uppercase.c: New file.
23432         * modules/unicase/u32-is-uppercase: New file.
23433
23434         New module 'unicase/u16-is-uppercase'.
23435         * lib/unicase/u16-is-uppercase.c: New file.
23436         * modules/unicase/u16-is-uppercase: New file.
23437
23438         New module 'unicase/u8-is-uppercase'.
23439         * lib/unicase/u8-is-uppercase.c: New file.
23440         * modules/unicase/u8-is-uppercase: New file.
23441
23442         New module 'unicase/u32-is-invariant'.
23443         * lib/unicase/u32-is-invariant.c: New file.
23444         * modules/unicase/u32-is-invariant: New file.
23445
23446         New module 'unicase/u16-is-invariant'.
23447         * lib/unicase/u16-is-invariant.c: New file.
23448         * modules/unicase/u16-is-invariant: New file.
23449
23450         New module 'unicase/u8-is-invariant'.
23451         * lib/unicase/u8-is-invariant.c: New file.
23452         * lib/unicase/invariant.h: New file.
23453         * lib/unicase/u-is-invariant.h: New file.
23454         * modules/unicase/u8-is-invariant: New file.
23455
23456         Tests for module 'unicase/u32-casecoll'.
23457         * modules/unicase/u32-casecoll-tests: New file.
23458         * tests/unicase/test-u32-casecoll.c: New file.
23459
23460         Tests for module 'unicase/u16-casecoll'.
23461         * modules/unicase/u16-casecoll-tests: New file.
23462         * tests/unicase/test-u16-casecoll.c: New file.
23463
23464         Tests for module 'unicase/u8-casecoll'.
23465         * modules/unicase/u8-casecoll-tests: New file.
23466         * tests/unicase/test-u8-casecoll.c: New file.
23467
23468         New module 'unicase/u32-casecoll'.
23469         * lib/unicase/u32-casecoll.c: New file.
23470         * modules/unicase/u32-casecoll: New file.
23471
23472         New module 'unicase/u16-casecoll'.
23473         * lib/unicase/u16-casecoll.c: New file.
23474         * modules/unicase/u16-casecoll: New file.
23475
23476         New module 'unicase/u8-casecoll'.
23477         * lib/unicase/u8-casecoll.c: New file.
23478         * lib/unicase/u-casecoll.h: New file.
23479         * modules/unicase/u8-casecoll: New file.
23480
23481         New module 'unicase/u32-casexfrm'.
23482         * lib/unicase/u32-casexfrm.c: New file.
23483         * modules/unicase/u32-casexfrm: New file.
23484
23485         New module 'unicase/u16-casexfrm'.
23486         * lib/unicase/u16-casexfrm.c: New file.
23487         * modules/unicase/u16-casexfrm: New file.
23488
23489         New module 'unicase/u8-casexfrm'.
23490         * lib/unicase/u8-casexfrm.c: New file.
23491         * lib/unicase/u-casexfrm.h: New file.
23492         * modules/unicase/u8-casexfrm: New file.
23493
23494         Tests for module 'unicase/u32-casecmp'.
23495         * modules/unicase/u32-casecmp-tests: New file.
23496         * tests/unicase/test-u32-casecmp.c: New file.
23497
23498         Tests for module 'unicase/u16-casecmp'.
23499         * modules/unicase/u16-casecmp-tests: New file.
23500         * tests/unicase/test-u16-casecmp.c: New file.
23501
23502         Tests for module 'unicase/u8-casecmp'.
23503         * modules/unicase/u8-casecmp-tests: New file.
23504         * tests/unicase/test-u8-casecmp.c: New file.
23505         * tests/unicase/test-casecmp.h: New file.
23506
23507         New module 'unicase/u32-casecmp'.
23508         * lib/unicase/u32-casecmp.c: New file.
23509         * modules/unicase/u32-casecmp: New file.
23510
23511         New module 'unicase/u16-casecmp'.
23512         * lib/unicase/u16-casecmp.c: New file.
23513         * modules/unicase/u16-casecmp: New file.
23514
23515         New module 'unicase/u8-casecmp'.
23516         * lib/unicase/u8-casecmp.c: New file.
23517         * lib/unicase/u-casecmp.h: New file.
23518         * modules/unicase/u8-casecmp: New file.
23519
23520         Tests for module 'unicase/u32-casefold'.
23521         * modules/unicase/u32-casefold-tests: New file.
23522         * tests/unicase/test-u32-casefold.c: New file.
23523
23524         Tests for module 'unicase/u16-casefold'.
23525         * modules/unicase/u16-casefold-tests: New file.
23526         * tests/unicase/test-u16-casefold.c: New file.
23527
23528         Tests for module 'unicase/u8-casefold'.
23529         * modules/unicase/u8-casefold-tests: New file.
23530         * tests/unicase/test-u8-casefold.c: New file.
23531
23532         New module 'unicase/u32-casefold'.
23533         * lib/unicase/u32-casefold.c: New file.
23534         * modules/unicase/u32-casefold: New file.
23535
23536         New module 'unicase/u16-casefold'.
23537         * lib/unicase/u16-casefold.c: New file.
23538         * modules/unicase/u16-casefold: New file.
23539
23540         New module 'unicase/u8-casefold'.
23541         * lib/unicase/u8-casefold.c: New file.
23542         * lib/unicase/u-casefold.h: New file.
23543         * modules/unicase/u8-casefold: New file.
23544
23545         New module 'unicase/tocasefold'.
23546         * lib/unicase/casefold.h: New file.
23547         * lib/unicase/tocasefold.c: New file.
23548         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
23549         * modules/unicase/tocasefold: New file.
23550
23551         Tests for module 'unicase/u32-totitle'.
23552         * modules/unicase/u32-totitle-tests: New file.
23553         * tests/unicase/test-u32-totitle.c: New file.
23554
23555         Tests for module 'unicase/u16-totitle'.
23556         * modules/unicase/u16-totitle-tests: New file.
23557         * tests/unicase/test-u16-totitle.c: New file.
23558
23559         Tests for module 'unicase/u8-totitle'.
23560         * modules/unicase/u8-totitle-tests: New file.
23561         * tests/unicase/test-u8-totitle.c: New file.
23562
23563         New module 'unicase/u32-totitle'.
23564         * lib/unicase/u32-totitle.c: New file.
23565         * modules/unicase/u32-totitle: New file.
23566
23567         New module 'unicase/u16-totitle'.
23568         * lib/unicase/u16-totitle.c: New file.
23569         * modules/unicase/u16-totitle: New file.
23570
23571         New module 'unicase/u8-totitle'.
23572         * lib/unicase/u8-totitle.c: New file.
23573         * lib/unicase/u-totitle.h: New file.
23574         * modules/unicase/u8-totitle: New file.
23575
23576         Tests for module 'unicase/u32-tolower'.
23577         * modules/unicase/u32-tolower-tests: New file.
23578         * tests/unicase/test-u32-tolower.c: New file.
23579
23580         Tests for module 'unicase/u16-tolower'.
23581         * modules/unicase/u16-tolower-tests: New file.
23582         * tests/unicase/test-u16-tolower.c: New file.
23583
23584         Tests for module 'unicase/u8-tolower'.
23585         * modules/unicase/u8-tolower-tests: New file.
23586         * tests/unicase/test-u8-tolower.c: New file.
23587
23588         New module 'unicase/u32-tolower'.
23589         * lib/unicase/u32-tolower.c: New file.
23590         * modules/unicase/u32-tolower: New file.
23591
23592         New module 'unicase/u16-tolower'.
23593         * lib/unicase/u16-tolower.c: New file.
23594         * modules/unicase/u16-tolower: New file.
23595
23596         New module 'unicase/u8-tolower'.
23597         * lib/unicase/u8-tolower.c: New file.
23598         * modules/unicase/u8-tolower: New file.
23599
23600         Tests for module 'unicase/u32-toupper'.
23601         * modules/unicase/u32-toupper-tests: New file.
23602         * tests/unicase/test-u32-toupper.c: New file.
23603
23604         Tests for module 'unicase/u16-toupper'.
23605         * modules/unicase/u16-toupper-tests: New file.
23606         * tests/unicase/test-u16-toupper.c: New file.
23607
23608         Tests for module 'unicase/u8-toupper'.
23609         * modules/unicase/u8-toupper-tests: New file.
23610         * tests/unicase/test-u8-toupper.c: New file.
23611
23612         New module 'unicase/u32-toupper'.
23613         * lib/unicase/u32-toupper.c: New file.
23614         * modules/unicase/u32-toupper: New file.
23615
23616         New module 'unicase/u16-toupper'.
23617         * lib/unicase/u16-toupper.c: New file.
23618         * modules/unicase/u16-toupper: New file.
23619
23620         New module 'unicase/u8-toupper'.
23621         * lib/unicase/u8-toupper.c: New file.
23622         * modules/unicase/u8-toupper: New file.
23623
23624         New module 'unicase/u32-casemap'.
23625         * lib/unicase/u32-casemap.c: New file.
23626         * modules/unicase/u32-casemap: New file.
23627
23628         New module 'unicase/u16-casemap'.
23629         * lib/unicase/u16-casemap.c: New file.
23630         * modules/unicase/u16-casemap: New file.
23631
23632         New module 'unicase/u8-casemap'.
23633         * lib/unicase/unicasemap.h: New file.
23634         * lib/unicase/u8-casemap.c: New file.
23635         * lib/unicase/u-casemap.h: New file.
23636         * modules/unicase/u8-casemap: New file.
23637
23638         New module 'unicase/special-casing'.
23639         * lib/unicase/special-casing.h: New file.
23640         * lib/unicase/special-casing.c: New file.
23641         * lib/unicase/special-casing-table.gperf: New file, generated by
23642         gen-uni-tables.c.
23643         * modules/unicase/special-casing: New file.
23644
23645         Tests for module 'unicase/locale-language'.
23646         * modules/unicase/locale-language-tests: New file.
23647         * tests/unicase/test-locale-language.sh: New file.
23648         * tests/unicase/test-locale-language.c: New file.
23649
23650         New module 'unicase/locale-language'.
23651         * lib/unicase/locale-language.c: New file.
23652         * lib/unicase/locale-languages.gperf: New file.
23653         * modules/unicase/locale-language: New file.
23654
23655         Generate more tables for case conversion and case folding.
23656         * lib/gen-uni-tables.c (SCC_*): New enum items.
23657         (struct special_casing_rule): New type.
23658         (casing_rules, num_casing_rules, allocated_casing_rules): New
23659         variables.
23660         (add_casing_rule, fill_casing_rules): New functions.
23661         (struct casefold_rule): New type.
23662         (casefolding_rules, num_casefolding_rules,
23663         allocated_casefolding_rules): New variables.
23664         (fill_casefolding_rules): New function.
23665         (unicode_casefold): New variable.
23666         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
23667         sort_casing_rules, output_casing_rules): New functions.
23668         (main): Accept to more arguments: SpecialCasing.txt and
23669         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
23670         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
23671         Output mapping for casefolding.
23672
23673         * lib/unicase.h: Include stdbool.h, uninorm.h.
23674         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
23675         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
23676         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
23677         arguments.
23678         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
23679         resultp arguments.
23680         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
23681         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
23682         resultp arguments.
23683         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
23684         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
23685         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
23686         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
23687         declarations.
23688         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
23689
23690 2009-03-08  Bruno Haible  <bruno@clisp.org>
23691
23692         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23693         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
23694         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
23695         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23696
23697 2009-03-07  Bruno Haible  <bruno@clisp.org>
23698
23699         Adjust u*_normcmp, u*_normcoll API.
23700         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23701         u16_normcoll, u32_normcoll): Change failure conventions.
23702         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
23703         errno and return -1.
23704         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23705
23706 2009-03-07  Bruno Haible  <bruno@clisp.org>
23707
23708         Tests for module 'uninorm/u32-normcoll'.
23709         * modules/uninorm/u32-normcoll-tests: New file.
23710         * tests/uninorm/test-u32-normcoll.c: New file.
23711
23712         Tests for module 'uninorm/u16-normcoll'.
23713         * modules/uninorm/u16-normcoll-tests: New file.
23714         * tests/uninorm/test-u16-normcoll.c: New file.
23715
23716         Tests for module 'uninorm/u8-normcoll'.
23717         * modules/uninorm/u8-normcoll-tests: New file.
23718         * tests/uninorm/test-u8-normcoll.c: New file.
23719
23720 2009-03-07  Bruno Haible  <bruno@clisp.org>
23721
23722         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
23723         tests/uninorm/test-u32-normcmp.c.
23724         * tests/uninorm/test-u32-normcmp.c: Include it.
23725         (test_nonascii): New function, extracted from main. Add some more
23726         tests.
23727         (main): Invoke test_ascii and test_nonascii.
23728         * modules/uninorm/u32-normcmp-tests (Files): Add
23729         tests/uninorm/test-u32-normcmp.h.
23730         (Depends-on): Remove uninorm/u32-normcmp.
23731
23732         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
23733         tests/uninorm/test-u16-normcmp.c.
23734         * tests/uninorm/test-u16-normcmp.c: Include it.
23735         (test_nonascii): New function, extracted from main. Add some more
23736         tests.
23737         (main): Invoke test_ascii and test_nonascii.
23738         * modules/uninorm/u16-normcmp-tests (Files): Add
23739         tests/uninorm/test-u16-normcmp.h.
23740         (Depends-on): Remove uninorm/u16-normcmp.
23741
23742         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
23743         tests/uninorm/test-u8-normcmp.c.
23744         * tests/uninorm/test-u8-normcmp.c: Include it.
23745         (test_nonascii): New function, extracted from main. Add some more
23746         tests.
23747         (main): Invoke test_ascii and test_nonascii.
23748         * modules/uninorm/u8-normcmp-tests (Files): Add
23749         tests/uninorm/test-u8-normcmp.h.
23750         (Depends-on): Remove uninorm/u8-normcmp.
23751
23752 2009-03-07  Bruno Haible  <bruno@clisp.org>
23753
23754         New module 'uninorm/u32-normcoll'.
23755         * lib/uninorm/u32-normcoll.c: New file.
23756         * modules/uninorm/u32-normcoll: New file.
23757
23758         New module 'uninorm/u16-normcoll'.
23759         * lib/uninorm/u16-normcoll.c: New file.
23760         * modules/uninorm/u16-normcoll: New file.
23761
23762         New module 'uninorm/u8-normcoll'.
23763         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
23764         declarations.
23765         * lib/uninorm/u8-normcoll.c: New file.
23766         * lib/uninorm/u-normcoll.h: New file.
23767         * modules/uninorm/u8-normcoll: New file.
23768
23769         New module 'uninorm/u32-normxfrm'.
23770         * lib/uninorm/u32-normxfrm.c: New file.
23771         * modules/uninorm/u32-normxfrm: New file.
23772
23773         New module 'uninorm/u16-normxfrm'.
23774         * lib/uninorm/u16-normxfrm.c: New file.
23775         * modules/uninorm/u16-normxfrm: New file.
23776
23777         New module 'uninorm/u8-normxfrm'.
23778         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
23779         declarations.
23780         * lib/uninorm/u8-normxfrm.c: New file.
23781         * lib/uninorm/u-normxfrm.h: New file.
23782         * modules/uninorm/u8-normxfrm: New file.
23783
23784 2009-03-07  Bruno Haible  <bruno@clisp.org>
23785
23786         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
23787         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
23788         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
23789
23790 2009-03-07  Bruno Haible  <bruno@clisp.org>
23791
23792         New module 'memxfrm'.
23793         * lib/memxfrm.h: New file.
23794         * lib/memxfrm.c: New file.
23795         * modules/memxfrm: New file.
23796
23797 2009-03-07  Bruno Haible  <bruno@clisp.org>
23798
23799         New module 'memcmp2'.
23800         * lib/memcmp2.h: New file.
23801         * lib/memcmp2.c: New file.
23802         * modules/memcmp2: New file.
23803
23804 2009-03-07  Bruno Haible  <bruno@clisp.org>
23805
23806         Tests for module 'uninorm/decomposing-form'.
23807         * modules/uninorm/decomposing-form-tests: New file.
23808         * tests/uninorm/test-decomposing-form.c: New file.
23809
23810         New module 'uninorm/decomposing-form'.
23811         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
23812         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
23813         Add 'decomposing_variant' field.
23814         * lib/uninorm/decomposing-form.c: New file.
23815         * lib/uninorm/nfc.c (uninorm_nfc): Update.
23816         * lib/uninorm/nfd.c (uninorm_nfd): Update.
23817         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
23818         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
23819         * modules/uninorm/decomposing-form: New file.
23820         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
23821         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
23822
23823 2009-03-07  Bruno Haible  <bruno@clisp.org>
23824
23825         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
23826         strings.
23827
23828 2009-03-06  Bruno Haible  <bruno@clisp.org>
23829
23830         Tests for module 'uninorm/u32-normcmp'.
23831         * tests/uninorm/test-u32-normcmp.c: New file.
23832         * modules/uninorm/u32-normcmp-tests: New file.
23833
23834         Tests for module 'uninorm/u16-normcmp'.
23835         * tests/uninorm/test-u16-normcmp.c: New file.
23836         * modules/uninorm/u16-normcmp-tests: New file.
23837
23838         Tests for module 'uninorm/u8-normcmp'.
23839         * tests/uninorm/test-u8-normcmp.c: New file.
23840         * modules/uninorm/u8-normcmp-tests: New file.
23841
23842         New module 'uninorm/u32-normcmp'.
23843         * lib/uninorm/u32-normcmp.c: New file.
23844         * modules/uninorm/u32-normcmp: New file.
23845
23846         New module 'uninorm/u16-normcmp'.
23847         * lib/uninorm/u16-normcmp.c: New file.
23848         * modules/uninorm/u16-normcmp: New file.
23849
23850         New module 'uninorm/u8-normcmp'.
23851         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
23852         declarations.
23853         * lib/uninorm/u8-normcmp.c: New file.
23854         * lib/uninorm/u-normcmp.h: New file.
23855         * modules/uninorm/u8-normcmp: New file.
23856
23857 2009-03-06  Bruno Haible  <bruno@clisp.org>
23858
23859         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
23860         Reported by Eric Blake.
23861
23862 2009-03-06  Eric Blake  <ebb9@byu.net>
23863             Bruno Haible  <bruno@clisp.org>
23864
23865         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
23866         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
23867         condition.
23868         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23869         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
23870         condition.
23871         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23872
23873 2009-03-06  Eric Blake  <ebb9@byu.net>
23874
23875         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
23876         to avoid compiler warnings.
23877         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
23878
23879 2009-03-05  Bruno Haible  <bruno@clisp.org>
23880
23881         * tests/test-ftell.c (main): Disable test beyond end of file on
23882         FreeMiNT.
23883         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23884
23885 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
23886
23887         * lib/filevercmp.c: Move hidden files up in ordering.
23888         * tests/test-filevercmp.c: Add tests for hidden files.
23889
23890 2009-03-04  Bruno Haible  <bruno@clisp.org>
23891
23892         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
23893         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
23894         AM_CFLAGS.
23895         Reported by Simon Josefsson.
23896
23897 2009-03-03  Bruno Haible  <bruno@clisp.org>
23898
23899         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
23900         Reported by Simon Josefsson.
23901
23902         * doc/ld-version-script.texi: Update node reference.
23903
23904 2009-03-03  Bruno Haible  <bruno@clisp.org>
23905
23906         * modules/visibility (License): Change to 'unlimited'.
23907         Suggested by Simon Josefsson.
23908
23909 2009-03-03  Jim Meyering  <meyering@redhat.com>
23910
23911         unlinkdir: cannot_unlink_dir may modify process state
23912         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
23913         it's neither thread-safe nor appropriate for use in a library.
23914
23915 2009-03-03  Eric Blake  <ebb9@byu.net>
23916
23917         test-closein: silence test under Darwin
23918         * tests/test-closein.sh: Ignore stderr from cat, since we don't
23919         care if it dies from EPIPE or EBADF.
23920
23921 2009-03-03  Bruno Haible  <bruno@clisp.org>
23922
23923         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
23924         earlier.
23925         * doc/visibility.texi: Fix @node and @section.
23926
23927 2009-03-03  Simon Josefsson  <simon@josefsson.org>
23928
23929         * doc/gnulib.texi: Link to sections for ld version script and
23930         visibility.
23931         * doc/visibility.texi: Add @node and @section.
23932         * modules/ld-version-script: New module.
23933         * m4/ld-version-script.m4: New file.
23934         * doc/ld-version-script.texi: New file.
23935
23936 2009-03-02  David Lutterkort  <lutter@redhat.com>
23937
23938         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
23939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23940
23941 2009-03-02  Bruno Haible  <bruno@clisp.org>
23942
23943         * doc/visibility.texi: Mention libtool's -export-symbols option.
23944
23945 2009-03-02  Jim Meyering  <meyering@redhat.com>
23946
23947         announce-gen: new option: --no-print-checksums
23948         * build-aux/announce-gen (usage): Describe it.
23949         (print_checksums): Print a newline here, not in the [*] footnote.
23950         (main): Honor it.
23951
23952 2009-03-01  Bruno Haible  <bruno@clisp.org>
23953
23954         Use socklen_t in the native Windows replacements prototypes.
23955         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
23956         instead of 'int'.
23957         * lib/getsockopt.c (rpl_getsockopt): Likewise.
23958         * lib/setsockopt.c (rpl_setsockopt): Likewise.
23959         * modules/getsockopt (Depends-on): Add socklen.
23960         * modules/setsockopt (Depends-on): Add socklen.
23961
23962 2009-03-01  Bruno Haible  <bruno@clisp.org>
23963
23964         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
23965         least 4.2.
23966
23967 2009-03-01  Eric Blake  <ebb9@byu.net>
23968             Bruno Haible  <bruno@clisp.org>
23969
23970         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
23971         error messages.
23972         * lib/wait-process.c (wait_subprocess): Omit error message about
23973         deadly signal sent to the child of termsigp != NULL.
23974
23975 2009-03-01  Eric Blake  <ebb9@byu.net>
23976
23977         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
23978
23979 2009-03-01  Bruno Haible  <bruno@clisp.org>
23980
23981         Avoid a gcc warning.
23982         * tests/test-sched.c (b): Make global.
23983         Reported by Eric Blake.
23984
23985 2009-01-19  Martin Lambers  <marlam@marlam.de>
23986
23987         Provide POSIX semantics for socket timeout options on W32.
23988         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
23989         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
23990         * modules/setsockopt: Depend on sys_time module for struct timeval.
23991         * modules/getsockopt: Depend on sys_time module for struct timeval.
23992
23993 2009-03-01  Simon Josefsson  <simon@josefsson.org>
23994
23995         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
23996         __USE_GNU, for consistency with netdb.in.h.
23997         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23998
23999 2009-03-01  Bruno Haible  <bruno@clisp.org>
24000
24001         More support for FreeMiNT.
24002         * lib/fseeko.c (rpl_fseeko): Complete last commit.
24003         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24004
24005 2009-03-01  Bruno Haible  <bruno@clisp.org>
24006
24007         More support for FreeMiNT.
24008         * lib/fpurge.c (fpurge): Correct last commit.
24009         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24010
24011 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24012
24013         Fix unportable awk script in vc-list-files.
24014         * build-aux/vc-list-files: In the replacement awk script, use
24015         substr with a second argument of 1, not zero.
24016         Report by Simon Josefsson.
24017
24018 2009-02-28  Bruno Haible  <bruno@clisp.org>
24019
24020         More support for FreeMiNT.
24021         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
24022         to FreeMiNT today.
24023         * lib/fwriting.c (fwriting): Likewise.
24024         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
24025
24026 2009-02-28  Bruno Haible  <bruno@clisp.org>
24027
24028         * tests/test-freadseek.c (main): Disable test beyond end of file on
24029         FreeMiNT.
24030         * tests/test-ftello.c (main): Likewise.
24031         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
24032
24033 2009-02-28  Bruno Haible  <bruno@clisp.org>
24034
24035         Add tentative support for FreeMiNT.
24036         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
24037         * lib/fpurge.c (fpurge): Likewise.
24038         * lib/freadable.c (freadable): Likewise.
24039         * lib/freading.c (freading): Likewise.
24040         * lib/freadptr.c (freadptr): Likewise.
24041         * lib/freadseek.c (freadptrinc): Likewise.
24042         * lib/fseeko.c (rpl_fseeko): Likewise.
24043         * lib/fseterr.c (fseterr): Likewise.
24044         * lib/fwritable.c (fwritable): Likewise.
24045         * lib/fwriting.c (fwriting): Likewise.
24046         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
24047         Hourihane.
24048         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24049
24050 2009-02-28  Bruno Haible  <bruno@clisp.org>
24051
24052         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
24053         SIGCHLD.
24054         Reported by Jim Meyering.
24055
24056 2009-02-28  Bruno Haible  <bruno@clisp.org>
24057
24058         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
24059         Mention the results of these tests on various platforms.
24060         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
24061         order.
24062         * doc/posix-functions/printf.texi: Likewise.
24063         * doc/posix-functions/snprintf.texi: Likewise.
24064         * doc/posix-functions/sprintf.texi: Likewise.
24065         * doc/posix-functions/vfprintf.texi: Likewise.
24066         * doc/posix-functions/vprintf.texi: Likewise.
24067         * doc/posix-functions/vsnprintf.texi: Likewise.
24068         * doc/posix-functions/vsprintf.texi: Likewise.
24069         * doc/glibc-functions/obstack_printf.texi: Likewise.
24070         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24071
24072 2009-02-28  Bruno Haible  <bruno@clisp.org>
24073
24074         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
24075         Reported by Loïc Minier <lool@dooz.org>.
24076
24077 2009-02-27  Bruno Haible  <bruno@clisp.org>
24078
24079         * gnulib-tool (func_import): Make the sed expression used to create the
24080         sed script for updating the .gitignore file POSIX compliant.
24081         Reported by Eric Blake.
24082
24083 2009-02-27  Bruno Haible  <bruno@clisp.org>
24084
24085         * gnulib-tool (sed): Don't alias as "sed --posix".
24086         Reported by Eric Blake.
24087
24088 2009-02-27  Bruno Haible  <bruno@clisp.org>
24089
24090         Avoid test link errors.
24091         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
24092         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
24093         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
24094         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
24095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24096
24097 2009-02-27  Bruno Haible  <bruno@clisp.org>
24098
24099         Avoid spurious "(cached)" in configure output.
24100         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
24101         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
24102         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
24103         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
24104         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
24105         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
24106         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
24107         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
24108         Reported by Eric Blake.
24109
24110 2009-02-27  Eric Blake  <ebb9@byu.net>
24111
24112         printf: fix regression in previous patch
24113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
24114
24115 2009-02-27  Bruno Haible  <bruno@clisp.org>
24116
24117         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
24118         value.
24119         * lib/stdint.in.h: Likewise.
24120         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
24121
24122 2009-02-27  Eric Blake  <ebb9@byu.net>
24123
24124         doc: mention more functions added in cygwin 1.7.0
24125         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
24126         addition.
24127         * doc/posix-functions/open_wmemstream.texi: Likewise.
24128         * doc/posix-functions/wcsnlen.texi: Likewise.
24129         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24130         * doc/posix-functions/wcstod.texi: Likewise.
24131         * doc/posix-functions/wcstof.texi: Likewise.
24132         * doc/posix-functions/wcstoimax.texi: Likewise.
24133         * doc/posix-functions/wcstok.texi: Likewise.
24134         * doc/posix-functions/wcstoumax.texi: Likewise.
24135
24136         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
24137         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
24138         * doc/posix-functions/fprintf.texi: Update.
24139         * doc/posix-functions/printf.texi: Update.
24140         * doc/posix-functions/snprintf.texi: Update.
24141         * doc/posix-functions/sprintf.texi: Update.
24142         * doc/posix-functions/vfprintf.texi: Update.
24143         * doc/posix-functions/vprintf.texi: Update.
24144         * doc/posix-functions/vsnprintf.texi: Update.
24145         * doc/posix-functions/vsprintf.texi: Update.
24146         * doc/glibc-functions/obstack_printf.texi: Update.
24147         * doc/glibc-functions/obstack_vprintf.texi: Update.
24148
24149 2009-02-26  Eric Blake  <ebb9@byu.net>
24150
24151         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
24152         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
24153         compilation bug by using runtime conversion.
24154         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24155         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
24156         * modules/ceill-tests (Files): Use nan.h.
24157         * modules/floorl-tests (Files): Likewise.
24158         * modules/frexpl-tests (Files): Likewise.
24159         * modules/isnanl-tests (Files): Likewise.
24160         * modules/ldexpl-tests (Files): Likewise.
24161         * modules/roundl-tests (Files): Likewise.
24162         * modules/truncl-tests (Files): Likewise.
24163         * tests/test-ceill.c (main): Use a working NaN.
24164         * tests/test-floorl.c (main): Likewise.
24165         * tests/test-frexpl.c (main): Likewise.
24166         * tests/test-isnan.c (test_long_double): Likewise.
24167         * tests/test-isnanl.h (main): Likewise.
24168         * tests/test-ldexpl.h (main): Likewise.
24169         * tests/test-roundl.h (main): Likewise.
24170         * tests/test-truncl.h (main): Likewise.
24171         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
24172
24173 2009-02-26  Eric Blake  <ebb9@byu.net>
24174             Bruno Haible  <bruno@clisp.org>
24175
24176         Work around a *printf bug with %ls on Solaris.
24177         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
24178         precision is specified, sprintf stops converting the wide string
24179         argument when the number of bytes that have been produced by this
24180         conversion equals or exceeds the precision.
24181         * doc/posix-functions/fprintf.texi: Update.
24182         * doc/posix-functions/printf.texi: Update.
24183         * doc/posix-functions/snprintf.texi: Update.
24184         * doc/posix-functions/sprintf.texi: Update.
24185         * doc/posix-functions/vfprintf.texi: Update.
24186         * doc/posix-functions/vprintf.texi: Update.
24187         * doc/posix-functions/vsnprintf.texi: Update.
24188         * doc/posix-functions/vsprintf.texi: Update.
24189         * doc/glibc-functions/obstack_printf.texi: Update.
24190         * doc/glibc-functions/obstack_vprintf.texi: Update.
24191
24192 2009-02-26  Eric Blake  <ebb9@byu.net>
24193
24194         stdlib: favor compiler check of random.h
24195         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
24196         to avoid an ObjC random.h installed by Swarm.
24197
24198 2009-02-26  Bruno Haible  <bruno@clisp.org>
24199
24200         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
24201         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
24202         Reported by Gary V. Vaughan <gary@gnu.org>.
24203
24204 2009-02-26  Bruno Haible  <bruno@clisp.org>
24205
24206         Fix *printf behaviour regarding the %ls directive.
24207         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
24208         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
24209         NEED_PRINTF_DIRECTIVE_LS.
24210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
24211         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
24212         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24213         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
24214         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
24215         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
24216         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24217         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24218         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24219         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24220         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24221         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
24222         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24223         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24224         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24225         * doc/posix-functions/fprintf.texi: Update.
24226         * doc/posix-functions/printf.texi: Update.
24227         * doc/posix-functions/snprintf.texi: Update.
24228         * doc/posix-functions/sprintf.texi: Update.
24229         * doc/posix-functions/vfprintf.texi: Update.
24230         * doc/posix-functions/vprintf.texi: Update.
24231         * doc/posix-functions/vsnprintf.texi: Update.
24232         * doc/posix-functions/vsprintf.texi: Update.
24233         * doc/glibc-functions/obstack_printf.texi: Update.
24234         * doc/glibc-functions/obstack_vprintf.texi: Update.
24235         Reported by Eric Blake.
24236
24237 2009-02-25  Bruno Haible  <bruno@clisp.org>
24238
24239         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
24240         with known value.
24241         Reported by Gary V. Vaughan <gary@gnu.org>.
24242
24243 2009-02-25  Bruno Haible  <bruno@clisp.org>
24244
24245         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
24246         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
24247         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
24248         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
24249         Reported by Gary V. Vaughan <gary@gnu.org>.
24250
24251 2009-02-25  Bruno Haible  <bruno@clisp.org>
24252
24253         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
24254         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
24255         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
24256         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
24257         Reported by Gary V. Vaughan <gary@gnu.org>.
24258
24259 2009-02-25  Eric Blake  <ebb9@byu.net>
24260
24261         tests: skip fseek/ftell tests if ungetc is broken
24262         * m4/ungetc.m4: New file.
24263         * modules/fseek-tests: Split test, so ungetc dependency is
24264         separate from rest of test.
24265         * modules/fseeko-tests: Likewise.
24266         * modules/ftell-tests: Likewise.
24267         * modules/ftello-tests: Likewise.
24268         * tests/test-fseek.c (main): Isolate ungetc dependency.
24269         * tests/test-fseeko.c (main): Likewise.
24270         * tests/test-ftell.c (main): Likewise.
24271         * tests/test-ftello.c (main): Likewise.
24272         * tests/test-fseek2.sh: New file.
24273         * tests/test-fseeko2.sh: Likewise.
24274         * tests/test-ftell2.sh: Likewise.
24275         * tests/test-ftello2.sh: Likewise.
24276
24277 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
24278
24279         test-getaddrinfo: fix usage of skip return code 77
24280         * tests/test-gettaddrinfo.c: Return skip code 77 only
24281         for first occurance of skip (4x77 is not 77)
24282
24283 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
24284
24285         strtod: avoid C99 decl-after-statement
24286         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
24287
24288 2009-02-24  Eric Blake  <ebb9@byu.net>
24289
24290         strtod: detect HP-UX 11.31 bug
24291         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
24292         Reported by Gary V. Vaughan.
24293
24294 2009-02-23  Bruno Haible  <bruno@clisp.org>
24295
24296         Fix invalid read past end of memory block.
24297         * lib/vasnprintf.c (DCHAR_SET): Define.
24298         (local_wcslen): Define only when needed.
24299         (local_strnlen, local_wcsnlen): New functions.
24300         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
24301         directives that involve a conversion ourselves.
24302         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
24303         wcsnlen, mbrtowc, wcrtomb.
24304         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
24305         * tests/test-vasprintf-posix.c (test_function): Likewise.
24306         * tests/test-snprintf-posix.h (test_function): Likewise.
24307         * tests/test-sprintf-posix.h (test_function): Likewise.
24308         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24309
24310 2009-02-22  Bruno Haible  <bruno@clisp.org>
24311
24312         Implement new clarified decomposition of Hangul syllables.
24313         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
24314         of type LTV, return only a pairwise decomposition.
24315         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
24316         Likewise.
24317         * tests/uninorm/test-decomposition.c (main): Updated expected result.
24318         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
24319         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
24320
24321 2009-02-22  Bruno Haible  <bruno@clisp.org>
24322
24323         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
24324         zero-length results and shrink excess allocated memory.
24325         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
24326         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
24327         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
24328         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
24329         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
24330         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
24331         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
24332         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
24333         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
24334         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
24335         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
24336         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
24337
24338 2009-02-21  Bruno Haible  <bruno@clisp.org>
24339
24340         * doc/gnulib.texi: Include safe-alloc.texi earlier.
24341         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
24342         spaces after a period. Put a space between a macro name and its
24343         argument list. Trivial rewordings.
24344         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
24345         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
24346         (main): Return 0 explicitly.
24347
24348 2009-02-21  Bruno Haible  <bruno@clisp.org>
24349
24350         Tests for module 'uninorm/filter'.
24351         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
24352         * modules/uninorm/filter-tests: New file.
24353
24354         New module 'uninorm/filter'.
24355         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
24356         uninorm_filter_flush, uninorm_filter_free): New declarations.
24357         * lib/uninorm/uninorm-filter.c: New file.
24358         * modules/uninorm/filter: New file.
24359
24360 2009-02-21  Bruno Haible  <bruno@clisp.org>
24361
24362         Tests for module 'uninorm/nfkc'.
24363         * tests/uninorm/test-nfkc.c: New file.
24364         * tests/uninorm/test-u8-nfkc.c: New file.
24365         * tests/uninorm/test-u16-nfkc.c: New file.
24366         * tests/uninorm/test-u32-nfkc.c: New file.
24367         * tests/uninorm/test-u32-nfkc-big.sh: New file.
24368         * tests/uninorm/test-u32-nfkc-big.c: New file.
24369         * modules/uninorm/nfkc-tests: New file.
24370
24371         New module 'uninorm/nfkc'.
24372         * lib/uninorm/nfkc.c: New file.
24373         * modules/uninorm/nfkc: New file.
24374
24375         Tests for module 'uninorm/nfkd'.
24376         * tests/uninorm/test-nfkd.c: New file.
24377         * tests/uninorm/test-u8-nfkd.c: New file.
24378         * tests/uninorm/test-u16-nfkd.c: New file.
24379         * tests/uninorm/test-u32-nfkd.c: New file.
24380         * tests/uninorm/test-u32-nfkd-big.sh: New file.
24381         * tests/uninorm/test-u32-nfkd-big.c: New file.
24382         * modules/uninorm/nfkd-tests: New file.
24383
24384         New module 'uninorm/nfkd'.
24385         * lib/uninorm/nfkd.c: New file.
24386         * modules/uninorm/nfkd: New file.
24387
24388         Tests for module 'uninorm/nfc'.
24389         * tests/uninorm/test-nfc.c: New file.
24390         * tests/uninorm/test-u8-nfc.c: New file.
24391         * tests/uninorm/test-u16-nfc.c: New file.
24392         * tests/uninorm/test-u32-nfc.c: New file.
24393         * tests/uninorm/test-u32-nfc-big.sh: New file.
24394         * tests/uninorm/test-u32-nfc-big.c: New file.
24395         * modules/uninorm/nfc-tests: New file.
24396
24397         New module 'uninorm/nfc'.
24398         * lib/uninorm/nfc.c: New file.
24399         * modules/uninorm/nfc: New file.
24400
24401         Tests for module 'uninorm/nfd'.
24402         * tests/uninorm/test-nfd.c: New file.
24403         * tests/uninorm/test-u8-nfd.c: New file.
24404         * tests/uninorm/test-u16-nfd.c: New file.
24405         * tests/uninorm/test-u32-nfd.c: New file.
24406         * tests/uninorm/test-u32-nfd-big.sh: New file.
24407         * tests/uninorm/test-u32-nfd-big.c: New file.
24408         * tests/uninorm/test-u32-normalize-big.h: New file.
24409         * tests/uninorm/test-u32-normalize-big.c: New file.
24410         * tests/uninorm/NormalizationTest.txt: New file, created from
24411         Unicode 5.1.0 NormalizationTest.txt.
24412         * modules/uninorm/nfd-tests: New file.
24413
24414         New module 'uninorm/nfd'.
24415         * lib/uninorm/nfd.c: New file.
24416         * modules/uninorm/nfd: New file.
24417
24418         New module 'uninorm/u32-normalize'.
24419         * lib/uninorm/u32-normalize.c: New file.
24420         * modules/uninorm/u32-normalize: New file.
24421
24422         New module 'uninorm/u16-normalize'.
24423         * lib/uninorm/u16-normalize.c: New file.
24424         * modules/uninorm/u16-normalize: New file.
24425
24426         New module 'uninorm/u8-normalize'.
24427         * lib/uninorm/u8-normalize.c: New file.
24428         * lib/uninorm/normalize-internal.h: New file.
24429         * lib/uninorm/u-normalize-internal.h: New file.
24430         * modules/uninorm/u8-normalize: New file.
24431
24432         New module 'uninorm/decompose-internal'.
24433         * lib/uninorm/decompose-internal.c: New file.
24434         * modules/uninorm/decompose-internal: New file.
24435
24436         Tests for module 'uninorm/composition'.
24437         * tests/uninorm/test-composition.c: New file.
24438         * modules/uninorm/composition-tests: New file.
24439
24440         New module 'uninorm/composition'.
24441         * lib/uninorm/composition.c: New file.
24442         * lib/uninorm/composition-table.gperf: New file, generated by
24443         gen-uni-tables.
24444         * modules/uninorm/composition: New file.
24445
24446         Tests for module 'uninorm/compat-decomposition'.
24447         * tests/uninorm/test-compat-decomposition.c: New file.
24448         * modules/uninorm/compat-decomposition-tests: New file.
24449
24450         New module 'uninorm/compat-decomposition'.
24451         * lib/uninorm/decompose-internal.h: New file.
24452         * lib/uninorm/compat-decomposition.c: New file.
24453         * modules/uninorm/compat-decomposition: New file.
24454
24455         Tests for module 'uninorm/canonical-decomposition'.
24456         * tests/uninorm/test-canonical-decomposition.c: New file.
24457         * modules/uninorm/canonical-decomposition-tests: New file.
24458
24459         New module 'uninorm/canonical-decomposition'.
24460         * lib/uninorm/canonical-decomposition.c: New file.
24461         * modules/uninorm/canonical-decomposition: New file.
24462
24463         Tests for module 'uninorm/decomposition'.
24464         * tests/uninorm/test-decomposition.c: New file.
24465         * modules/uninorm/decomposition-tests: New file.
24466
24467         New module 'uninorm/decomposition'.
24468         * lib/uninorm/decomposition.c: New file.
24469         * modules/uninorm/decomposition: New file.
24470
24471         New module 'uninorm/decomposition-table'.
24472         * lib/uninorm/decomposition-table.h: New file.
24473         * lib/uninorm/decomposition-table.c: New file.
24474         * lib/uninorm/decomposition-table1.h: New file, generated by
24475         gen-uni-tables.
24476         * lib/uninorm/decomposition-table2.h: New file, generated by
24477         gen-uni-tables.
24478         * modules/uninorm/decomposition-table: New file.
24479
24480         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
24481         (UC_DECOMP_*): New enumeration items.
24482         (get_decomposition): New function.
24483         (struct decomp_table): New type.
24484         (output_decomposition, output_decomposition_tables): New functions.
24485         (unicode_composition_exclusions): New variable.
24486         (fill_composition_exclusions, debug_output_composition_tables): New
24487         functions.
24488         (main): Accept one more argument. Invoke fill_composition_exclusions.
24489         Output decomposition and composition tables.
24490
24491         New module 'uninorm/base'.
24492         * lib/uninorm.h: New file.
24493         * lib/unictype.h: Update comment.
24494         * modules/uninorm/base: New file.
24495
24496 2009-02-21  David Lutterkort  <lutter@redhat.com>
24497
24498         Tests for module 'safe-alloc'.
24499         * tests/test-safe-alloc.c: New file.
24500         * modules/safe-alloc-tests: New file.
24501
24502         New module 'safe-alloc'.
24503         * lib/safe-alloc.h: New file.
24504         * lib/safe-alloc.c: New file.
24505         * m4/safe-alloc.m4: New file.
24506         * modules/safe-alloc: New file.
24507         * doc/safe-alloc.texi: New file.
24508         * doc/gnulib.texi: Include it.
24509         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
24510         safe-alloc.
24511
24512 2009-02-18  Bruno Haible  <bruno@clisp.org>
24513
24514         Fix link error on non-glibc systems.
24515         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
24516         variable.
24517         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24518
24519 2009-02-18  Jim Meyering  <meyering@redhat.com>
24520
24521         fts: avoid used-uninitialized error due to recent change
24522         * lib/fts.c (fts_read): Guard uses of the new member,
24523         parent->fts_n_dirs_remaining, since it's not relevant for
24524         the parent of a directory specified on the command-line.
24525
24526 2009-02-17  James Youngman  <jay@gnu.org>
24527             Bruno Haible  <bruno@clisp.org>
24528
24529         * m4/include_next.m4: Reformulate comment.
24530
24531 2009-02-16  Jim Meyering  <meyering@redhat.com>
24532
24533         fts: add #if guards so that the fts_lgpl module still builds
24534         * lib/fts.c: Guard just-added hash-table-using parts with
24535         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
24536         Reported by Simon Josefsson.
24537
24538 2009-02-15  Bruno Haible  <bruno@clisp.org>
24539
24540         * modules/array-mergesort-tests: New file.
24541         * tests/test-array-mergesort.c: New file.
24542
24543         New module 'array-mergesort'.
24544         * modules/array-mergesort: New file.
24545         * lib/array-mergesort.h: New file.
24546
24547 2009-02-15  Bruno Haible  <bruno@clisp.org>
24548
24549         Fix 2009-02-07 commit.
24550         * lib/gen-uni-tables.c (output_predicate, output_category,
24551         output_combclass, output_bidi_category, output_decimal_digit,
24552         output_digit, output_numeric, output_mirror, output_scripts,
24553         output_ident_category, output_simple_mapping): Fix format directives.
24554         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
24555
24556 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
24557
24558         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
24559         fixes are available from IBM.
24560
24561 2009-02-13  Jim Meyering  <meyering@redhat.com>
24562
24563         fts: arrange not to stat non-directories in more cases
24564         This makes GNU find (when it doesn't need to stat each file)
24565         *much* more efficient at traversing reiserfs file systems.
24566         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
24567         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
24568         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
24569         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
24570         (leaf_optimization_applies): New function.
24571         (LCO_hash, LCO_compare): New helper functions.
24572         (link_count_optimize_ok): New function.
24573         (fts_stat): Initialize new member (if dir).
24574         (fts_read): Decrement parent's fts_n_dirs_remaining count if
24575         we've just stat'ed a directory.  Skip the stat call when possible.
24576         ---
24577         Note this AFS-related exchange:
24578         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
24579         and note find's pioctl call in find/fstype.c.
24580         But that is necessary only if you want to enable the
24581         optimization for AFS, and for now, I don't.
24582
24583         fts: move a function definition "up" (no semantic change)
24584         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
24585         "up" to precede upcoming use of a related function.
24586
24587 2009-02-11  Jim Meyering  <meyering@redhat.com>
24588
24589         fts: correct internal computation of nlinks (optimization-related)
24590         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
24591         whether the current entry is a directory, so don't test it.
24592
24593 2009-02-10  Bruno Haible  <bruno@clisp.org>
24594
24595         Tests for module 'uniwbrk/ulc-wordbreaks'.
24596         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
24597         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
24598         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
24599
24600         Tests for module 'uniwbrk/u32-wordbreaks'.
24601         * modules/uniwbrk/u32-wordbreaks-tests: New file.
24602         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
24603
24604         Tests for module 'uniwbrk/u16-wordbreaks'.
24605         * modules/uniwbrk/u16-wordbreaks-tests: New file.
24606         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
24607
24608         Tests for module 'uniwbrk/u8-wordbreaks'.
24609         * modules/uniwbrk/u8-wordbreaks-tests: New file.
24610         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
24611
24612 2009-02-10  Bruno Haible  <bruno@clisp.org>
24613
24614         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
24615         property.
24616         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
24617         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
24618         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
24619
24620 2009-02-10  Simon Josefsson  <simon@josefsson.org>
24621
24622         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
24623         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
24624
24625 2009-02-10  Bruno Haible  <bruno@clisp.org>
24626
24627         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
24628         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
24629         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
24630         * lib/unilbrk/u8-possible-linebreaks.c: Update.
24631         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
24632         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
24633
24634 2009-02-09  Simon Josefsson  <simon@josefsson.org>
24635
24636         * lib/sockets.h (gl_fd_to_handle): New function.
24637
24638         * tests/test-sockets.c: Call gl_fd_to_handle.
24639
24640 2009-02-09  Bruno Haible  <bruno@clisp.org>
24641
24642         * doc/havelib.texi: Document the conventions on bi-arch systems.
24643
24644 2009-02-08  Bruno Haible  <bruno@clisp.org>
24645
24646         Document the AC_LIB_LINKFLAGS macro.
24647         * doc/havelib.texi: New file, mostly written on 2005-05-24.
24648         * doc/gnulib.texi: Include it.
24649
24650 2009-02-08  Bruno Haible  <bruno@clisp.org>
24651
24652         Fix wrong order of sections, compared to TOC.
24653         * doc/gnulib.texi: Include relocatable-maint.texi after the
24654         "Regular expressions" node, not before.
24655
24656 2009-02-08  Bruno Haible  <bruno@clisp.org>
24657
24658         Tests for module 'unicase/totitle'.
24659         * modules/unicase/totitle-tests: New file.
24660
24661         Tests for module 'unicase/tolower'.
24662         * modules/unicase/tolower-tests: New file.
24663
24664         Tests for module 'unicase/toupper'.
24665         * modules/unicase/toupper-tests: New file.
24666         * tests/unicase/test-mapping-part1.h: New file.
24667         * tests/unicase/test-mapping-part2.h: New file.
24668
24669         New module 'unicase/totitle'.
24670         * modules/unicase/totitle: New file.
24671         * lib/unicase/totitle.c: New file.
24672
24673         New module 'unicase/tolower'.
24674         * modules/unicase/tolower: New file.
24675         * lib/unicase/tolower.c: New file.
24676
24677         New module 'unicase/toupper'.
24678         * modules/unicase/toupper: New file.
24679         * lib/unicase/toupper.c: New file.
24680         * lib/unicase/simple-mapping.h: New file.
24681
24682         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
24683         (mapping_table): New structure.
24684         (output_simple_mapping): New function.
24685         (main): Invoke output_simple_mapping_test and output_simple_mapping.
24686         * modules/gen-uni-tables (Description): Update.
24687         * lib/unicase/toupper.h: New file, automatically generated by
24688         gen-uni-tables.
24689         * lib/unicase/tolower.h: New file, automatically generated by
24690         gen-uni-tables.
24691         * lib/unicase/totitle.h: New file, automatically generated by
24692         gen-uni-tables.
24693         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
24694         gen-uni-tables.
24695         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
24696         gen-uni-tables.
24697         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
24698         gen-uni-tables.
24699
24700         New module 'unicase/base'.
24701         * modules/unicase/base: New file.
24702         * lib/unicase.h: New file.
24703
24704 2009-02-08  Bruno Haible  <bruno@clisp.org>
24705
24706         New module 'uniwbrk/ulc-wordbreaks'.
24707         * modules/uniwbrk/ulc-wordbreaks: New file.
24708         * lib/uniwbrk/ulc-wordbreaks.c: New file.
24709
24710         New module 'uniwbrk/u32-wordbreaks'.
24711         * modules/uniwbrk/u32-wordbreaks: New file.
24712         * lib/uniwbrk/u32-wordbreaks.c: New file.
24713
24714         New module 'uniwbrk/u16-wordbreaks'.
24715         * modules/uniwbrk/u16-wordbreaks: New file.
24716         * lib/uniwbrk/u16-wordbreaks.c: New file.
24717
24718         New module 'uniwbrk/u8-wordbreaks'.
24719         * modules/uniwbrk/u8-wordbreaks: New file.
24720         * lib/uniwbrk/u8-wordbreaks.c: New file.
24721         * lib/uniwbrk/u-wordbreaks.h: New file.
24722
24723         New module 'uniwbrk/table'.
24724         * modules/uniwbrk/table: New file.
24725         * lib/uniwbrk/wbrktable.h: New file.
24726         * lib/uniwbrk/wbrktable.c: New file.
24727
24728         New module 'uniwbrk/wordbreak-property'.
24729         * modules/uniwbrk/wordbreak-property: New file.
24730         * lib/uniwbrk/wordbreak-property.c: New file.
24731
24732         * lib/gen-uni-tables.c (WBP_*): New enum items.
24733         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
24734         (unicode_org_wbp): New variable.
24735         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
24736         New functions.
24737         (wbp_table): New structure.
24738         (output_wbp, output_wbrk_tables): New functions.
24739         (main): Accept additional argument. Invoke fill_org_wbp,
24740         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
24741         output_wbrk_tables.
24742         * modules/gen-uni-tables (Description): Update.
24743         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
24744         gen-uni-tables.
24745
24746         New module 'uniwbrk/base'.
24747         * modules/uniwbrk/base: New file.
24748         * lib/uniwbrk.h: New file.
24749
24750 2009-02-08  Bruno Haible  <bruno@clisp.org>
24751
24752         Update to Unicode 5.1.0.
24753         * lib/gen-uni-tables.c (is_property_alphabetic): Include
24754         U+2185..U+2188.
24755         (is_property_default_ignorable_code_point): Don't include characters
24756         of category Cc or Cs and not-a-characters.
24757         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
24758         U+0D79, U+109E, U+109F, U+A60C.
24759         * lib/unictype/bidi_of.h: Regenerated.
24760         * lib/unictype/blocks.h: Regenerated.
24761         * lib/unictype/categ_C.h: Regenerated.
24762         * lib/unictype/categ_Cf.h: Regenerated.
24763         * lib/unictype/categ_Cn.h: Regenerated.
24764         * lib/unictype/categ_L.h: Regenerated.
24765         * lib/unictype/categ_Ll.h: Regenerated.
24766         * lib/unictype/categ_Lm.h: Regenerated.
24767         * lib/unictype/categ_Lo.h: Regenerated.
24768         * lib/unictype/categ_Lu.h: Regenerated.
24769         * lib/unictype/categ_M.h: Regenerated.
24770         * lib/unictype/categ_Mc.h: Regenerated.
24771         * lib/unictype/categ_Me.h: Regenerated.
24772         * lib/unictype/categ_Mn.h: Regenerated.
24773         * lib/unictype/categ_N.h: Regenerated.
24774         * lib/unictype/categ_Nd.h: Regenerated.
24775         * lib/unictype/categ_Nl.h: Regenerated.
24776         * lib/unictype/categ_No.h: Regenerated.
24777         * lib/unictype/categ_P.h: Regenerated.
24778         * lib/unictype/categ_Pd.h: Regenerated.
24779         * lib/unictype/categ_Pe.h: Regenerated.
24780         * lib/unictype/categ_Pf.h: Regenerated.
24781         * lib/unictype/categ_Pi.h: Regenerated.
24782         * lib/unictype/categ_Po.h: Regenerated.
24783         * lib/unictype/categ_Ps.h: Regenerated.
24784         * lib/unictype/categ_S.h: Regenerated.
24785         * lib/unictype/categ_Sk.h: Regenerated.
24786         * lib/unictype/categ_Sm.h: Regenerated.
24787         * lib/unictype/categ_So.h: Regenerated.
24788         * lib/unictype/categ_of.h: Regenerated.
24789         * lib/unictype/combining.h: Regenerated.
24790         * lib/unictype/ctype_alnum.h: Regenerated.
24791         * lib/unictype/ctype_alpha.h: Regenerated.
24792         * lib/unictype/ctype_graph.h: Regenerated.
24793         * lib/unictype/ctype_lower.h: Regenerated.
24794         * lib/unictype/ctype_print.h: Regenerated.
24795         * lib/unictype/ctype_punct.h: Regenerated.
24796         * lib/unictype/ctype_upper.h: Regenerated.
24797         * lib/unictype/decdigit.h: Regenerated.
24798         * lib/unictype/digit.h: Regenerated.
24799         * lib/unictype/mirror.h: Regenerated.
24800         * lib/unictype/numeric.h: Regenerated.
24801         * lib/unictype/pr_alphabetic.h: Regenerated.
24802         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
24803         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
24804         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
24805         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
24806         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
24807         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
24808         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
24809         * lib/unictype/pr_combining.h: Regenerated.
24810         * lib/unictype/pr_dash.h: Regenerated.
24811         * lib/unictype/pr_decimal_digit.h: Regenerated.
24812         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
24813         * lib/unictype/pr_deprecated.h: Regenerated.
24814         * lib/unictype/pr_diacritic.h: Regenerated.
24815         * lib/unictype/pr_extender.h: Regenerated.
24816         * lib/unictype/pr_format_control.h: Regenerated.
24817         * lib/unictype/pr_grapheme_base.h: Regenerated.
24818         * lib/unictype/pr_grapheme_extend.h: Regenerated.
24819         * lib/unictype/pr_grapheme_link.h: Regenerated.
24820         * lib/unictype/pr_id_continue.h: Regenerated.
24821         * lib/unictype/pr_id_start.h: Regenerated.
24822         * lib/unictype/pr_ideographic.h: Regenerated.
24823         * lib/unictype/pr_ignorable_control.h: Regenerated.
24824         * lib/unictype/pr_lowercase.h: Regenerated.
24825         * lib/unictype/pr_math.h: Regenerated.
24826         * lib/unictype/pr_numeric.h: Regenerated.
24827         * lib/unictype/pr_other_alphabetic.h: Regenerated.
24828         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
24829         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
24830         * lib/unictype/pr_other_id_continue.h: Regenerated.
24831         * lib/unictype/pr_other_lowercase.h: Regenerated.
24832         * lib/unictype/pr_other_math.h: Regenerated.
24833         * lib/unictype/pr_punctuation.h: Regenerated.
24834         * lib/unictype/pr_sentence_terminal.h: Regenerated.
24835         * lib/unictype/pr_soft_dotted.h: Regenerated.
24836         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
24837         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
24838         * lib/unictype/pr_unified_ideograph.h: Regenerated.
24839         * lib/unictype/pr_uppercase.h: Regenerated.
24840         * lib/unictype/pr_xid_continue.h: Regenerated.
24841         * lib/unictype/pr_xid_start.h: Regenerated.
24842         * lib/unictype/pr_zero_width.h: Regenerated.
24843         * lib/unictype/scripts.h: Regenerated.
24844         * lib/unictype/scripts_byname.gperf: Regenerated.
24845         * lib/unictype/sy_java_ident.h: Regenerated.
24846         * lib/unilbrk/lbrkprop1.h: Regenerated.
24847         * lib/unilbrk/lbrkprop2.h: Regenerated.
24848         * tests/unictype/test-categ_C.c: Regenerated.
24849         * tests/unictype/test-categ_Cf.c: Regenerated.
24850         * tests/unictype/test-categ_Cn.c: Regenerated.
24851         * tests/unictype/test-categ_L.c: Regenerated.
24852         * tests/unictype/test-categ_Ll.c: Regenerated.
24853         * tests/unictype/test-categ_Lm.c: Regenerated.
24854         * tests/unictype/test-categ_Lo.c: Regenerated.
24855         * tests/unictype/test-categ_Lu.c: Regenerated.
24856         * tests/unictype/test-categ_M.c: Regenerated.
24857         * tests/unictype/test-categ_Mc.c: Regenerated.
24858         * tests/unictype/test-categ_Me.c: Regenerated.
24859         * tests/unictype/test-categ_Mn.c: Regenerated.
24860         * tests/unictype/test-categ_N.c: Regenerated.
24861         * tests/unictype/test-categ_Nd.c: Regenerated.
24862         * tests/unictype/test-categ_Nl.c: Regenerated.
24863         * tests/unictype/test-categ_No.c: Regenerated.
24864         * tests/unictype/test-categ_P.c: Regenerated.
24865         * tests/unictype/test-categ_Pd.c: Regenerated.
24866         * tests/unictype/test-categ_Pe.c: Regenerated.
24867         * tests/unictype/test-categ_Pf.c: Regenerated.
24868         * tests/unictype/test-categ_Pi.c: Regenerated.
24869         * tests/unictype/test-categ_Po.c: Regenerated.
24870         * tests/unictype/test-categ_Ps.c: Regenerated.
24871         * tests/unictype/test-categ_S.c: Regenerated.
24872         * tests/unictype/test-categ_Sk.c: Regenerated.
24873         * tests/unictype/test-categ_Sm.c: Regenerated.
24874         * tests/unictype/test-categ_So.c: Regenerated.
24875         * tests/unictype/test-ctype_alnum.c: Regenerated.
24876         * tests/unictype/test-ctype_alpha.c: Regenerated.
24877         * tests/unictype/test-ctype_graph.c: Regenerated.
24878         * tests/unictype/test-ctype_lower.c: Regenerated.
24879         * tests/unictype/test-ctype_print.c: Regenerated.
24880         * tests/unictype/test-ctype_punct.c: Regenerated.
24881         * tests/unictype/test-ctype_upper.c: Regenerated.
24882         * tests/unictype/test-decdigit.h: Regenerated.
24883         * tests/unictype/test-digit.h: Regenerated.
24884         * tests/unictype/test-numeric.h: Regenerated.
24885         * tests/unictype/test-pr_alphabetic.c: Regenerated.
24886         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
24887         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
24888         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
24889         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
24890         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
24891         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
24892         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
24893         * tests/unictype/test-pr_combining.c: Regenerated.
24894         * tests/unictype/test-pr_dash.c: Regenerated.
24895         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
24896         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
24897         * tests/unictype/test-pr_deprecated.c: Regenerated.
24898         * tests/unictype/test-pr_diacritic.c: Regenerated.
24899         * tests/unictype/test-pr_extender.c: Regenerated.
24900         * tests/unictype/test-pr_format_control.c: Regenerated.
24901         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
24902         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
24903         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
24904         * tests/unictype/test-pr_id_continue.c: Regenerated.
24905         * tests/unictype/test-pr_id_start.c: Regenerated.
24906         * tests/unictype/test-pr_ideographic.c: Regenerated.
24907         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
24908         * tests/unictype/test-pr_lowercase.c: Regenerated.
24909         * tests/unictype/test-pr_math.c: Regenerated.
24910         * tests/unictype/test-pr_numeric.c: Regenerated.
24911         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
24912         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
24913         Regenerated.
24914         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
24915         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
24916         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
24917         * tests/unictype/test-pr_other_math.c: Regenerated.
24918         * tests/unictype/test-pr_punctuation.c: Regenerated.
24919         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
24920         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
24921         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
24922         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
24923         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
24924         * tests/unictype/test-pr_uppercase.c: Regenerated.
24925         * tests/unictype/test-pr_xid_continue.c: Regenerated.
24926         * tests/unictype/test-pr_xid_start.c: Regenerated.
24927         * tests/unictype/test-pr_zero_width.c: Regenerated.
24928
24929         Update to Unicode 5.1.0.
24930         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
24931         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
24932         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
24933         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
24934         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
24935         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
24936         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
24937         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
24938         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
24939         (nonspacing_table_ind): Update.
24940         * tests/uniwidth/test-uc_width2.sh: Update expected result.
24941
24942         Update to Unicode 5.1.0.
24943         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
24944         code transform.
24945         * lib/uniname/uniname.c (unicode_character_name,
24946         unicode_name_character): Add the range 0x1Fxxx to the code transform.
24947         * lib/uniname/uninames.h: Regenerated.
24948         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
24949
24950 2009-02-07  Bruno Haible  <bruno@clisp.org>
24951
24952         Merge gen-ctype and gen-lbrk into a single program.
24953         * lib/gen-uni-tables.c: New file, incorporating
24954         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
24955         Add directory prefixes to the names of the generated files.
24956         * lib/unictype/gen-ctype.c: Remove file.
24957         * lib/unilbrk/gen-lbrk.c: Remove file.
24958         * modules/gen-uni-tables: New file.
24959         * modules/unictype/gen-ctype: Remove file.
24960         * modules/unilbrk/gen-lbrk: Remove file.
24961
24962 2009-02-07  Bruno Haible  <bruno@clisp.org>
24963
24964         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
24965
24966         New module 'unistr/u32-strcoll'.
24967         * modules/unistr/u32-strcoll: New file.
24968         * lib/unistr/u32-strcoll.c: New file.
24969
24970         New module 'unistr/u16-strcoll'.
24971         * modules/unistr/u16-strcoll: New file.
24972         * lib/unistr/u16-strcoll.c: New file.
24973
24974         New module 'unistr/u8-strcoll'.
24975         * modules/unistr/u8-strcoll: New file.
24976         * lib/unistr/u8-strcoll.c: New file.
24977         * lib/unistr/u-strcoll.h: New file.
24978
24979 2009-02-07  Bruno Haible  <bruno@clisp.org>
24980
24981         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
24982         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24983         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24984         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
24985         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
24986         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
24987
24988 2009-02-07  Bruno Haible  <bruno@clisp.org>
24989
24990         Make 64-bit clean.
24991         * lib/unictype/gen-ctype.c (output_predicate, output_category,
24992         output_combclass, output_bidi_category, output_decimal_digit,
24993         output_digit, output_numeric, output_mirror, output_scripts,
24994         output_ident_category): Use proper width specifier in format strings.
24995
24996 2009-02-07  Bruno Haible  <bruno@clisp.org>
24997
24998         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
24999         failure behaviour.
25000
25001 2009-02-07  Jim Meyering  <meyering@redhat.com>
25002
25003         regex: avoid compilation failure with upcoming gcc-4.4
25004         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
25005         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
25006         "... error: integer overflow in preprocessor expression".
25007
25008 2009-02-05  Ben Pfaff  <blp@gnu.org>
25009
25010         Fix link errors on Windows when close module is used.
25011         * modules/close: Add $(LIB_CLOSE) to Link section.
25012         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
25013         $(LIB_CLOSE) on Windows.
25014
25015 2009-02-05  Jim Meyering  <meyering@redhat.com>
25016
25017         still avoid unused-parameter warnings, but do it cleanly
25018         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
25019         (get_fs_usage): Cast to void instead.
25020         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
25021         (dev_from_mount_options, read_file_system_list): Cast to void.
25022         Prompted by Bruno Haible.
25023
25024 2009-02-04  Jim Meyering  <meyering@redhat.com>
25025
25026         fsusage.c: correct copyright year
25027         * lib/fsusage.c: Reflect year in which the change is pushed into
25028
25029         avoid misc. warnings
25030         * lib/fsusage.c (UNUSED_PARAM): Define.
25031         (get_fs_usage): Mark parameter "disk" as unused.
25032         * lib/getugroups.c (getgrent): Use "void" in prototype.
25033         * lib/mountlist.c: Mark unused parameters.
25034         (read_file_system_list): Declare a local with "const".
25035         * lib/nanosleep.c (getnow): Declare static.
25036         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
25037
25038         dirfd: set errno upon failure
25039         * lib/dirfd.c: Include <errno.h>.
25040         Set errno to ENOTSUP when returning -1.
25041         * modules/dirfd (Depends-on): Add errno.
25042         Suggested by John Kodis <kodis@comcast.net>.
25043
25044 2009-02-01  Bruno Haible  <bruno@clisp.org>
25045
25046         Don't assume sizeof (long) >= sizeof (void *).
25047         * lib/memcmp.c: Include stdint.h.
25048         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
25049         srcp2 to 'const byte *'.
25050         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
25051         types to uintptr_t.
25052         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
25053         * modules/memcmp (Depends-on): Add stdint.
25054         Reported by Ozkan Sezer <sezeroz@gmail.com>.
25055
25056 2009-01-30  Eric Blake  <ebb9@byu.net>
25057
25058         fix more require-before-expand issues
25059         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
25060         expand, AC_PROG_AWK.
25061         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
25062
25063 2009-01-28  Eric Blake  <ebb9@byu.net>
25064
25065         version-etc: use consistent URL formatting
25066         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
25067         Improve formatting.  Use fputs for string without %.
25068
25069 2009-01-28  Jim Meyering  <meyering@redhat.com>
25070
25071         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
25072         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
25073         "underquoted definition of NAME" from autoconf-2.59.
25074
25075 2009-01-28  Bruno Haible  <bruno@clisp.org>
25076
25077         * doc/gnulib.texi: Add "Obsolete modules" to index.
25078
25079 2009-01-28  Jim Meyering  <meyering@redhat.com>
25080
25081         useless-if-before-free: recognize more variants
25082         * build-aux/useless-if-before-free: Also recognize e.g.,
25083         if (NULL != p) free (p);
25084
25085 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
25086
25087         test-getaddrinfo: skip (don't fail) this test when there's no network
25088         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
25089         on the presumption that it means you lack network access.
25090
25091 2009-01-26  Jim Meyering  <meyering@redhat.com>
25092
25093         fflush: avoid warnings on modern systems
25094         * lib/fflush.c (rpl_fflush): Move declarations of locals,
25095         pos and result, into scopes where they're used.
25096
25097 2009-01-26  Eric Blake  <ebb9@byu.net>
25098
25099         Silence warning reintroduced by recent extensions patch.
25100         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
25101         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
25102         autoconf.
25103
25104         Backport improved autoconf semantics of AC_DEFUN_ONCE.
25105         * m4/00gnulib.m4: New file.
25106         * gnulib-tool (func_get_filelist): Always use it.
25107         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
25108         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
25109
25110 2009-01-25  Bruno Haible  <bruno@clisp.org>
25111
25112         Make test-quotearg work on MacOS X and AIX.
25113         * tests/test-quotearg.sh: New file.
25114         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
25115         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
25116         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
25117         include <libintl.h>.
25118         (fake_locale): Remove variable.
25119         (gettext, dgettext, dcgettext): Remove functions.
25120         (main): Instead of setting a fake locale, set a real locale. Call
25121         textdomain and bindtextdomain.
25122         * modules/quotearg-tests (Files): Add the new files.
25123         (Depends-on): Add gettext, setenv, unsetenv.
25124         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
25125         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
25126         Augment TESTS_ENVIRONMENT.
25127
25128 2009-01-25  Bruno Haible  <bruno@clisp.org>
25129
25130         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
25131         fr_FR.ISO8859-1 locale on MacOS X.
25132         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
25133         ja_JP.eucJP locale on MacOS X.
25134         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
25135         zh_CN.GB18030 locale on MacOS X.
25136
25137 2009-01-25  Bruno Haible  <bruno@clisp.org>
25138
25139         Avoid link errors on MacOS X 10.3.
25140         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
25141         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
25142
25143 2009-01-25  Bruno Haible  <bruno@clisp.org>
25144
25145         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
25146         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
25147         * modules/pipe (Files): Remove m4/posix_spawn.m4.
25148         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
25149         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
25150         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
25151         posix_spawnattr_init, posix_spawnattr_setsigmask,
25152         posix_spawnattr_setflags, posix_spawnattr_destroy.
25153
25154         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
25155         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
25156         * modules/execute (Files): Remove m4/posix_spawn.m4.
25157         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
25158         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
25159         posix_spawnattr_init, posix_spawnattr_setsigmask,
25160         posix_spawnattr_setflags, posix_spawnattr_destroy.
25161
25162 2009-01-25  Bruno Haible  <bruno@clisp.org>
25163
25164         * lib/glthread/threadlib.c: Include <stdlib.h>.
25165
25166 2009-01-25  Bruno Haible  <bruno@clisp.org>
25167
25168         * lib/glthread/threadlib.c (dummy): New declaration.
25169
25170 2009-01-25  Bruno Haible  <bruno@clisp.org>
25171
25172         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
25173         multibyte characters also for the GB18030 encoding. Don't crash when
25174         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
25175
25176 2009-01-25  Bruno Haible  <bruno@clisp.org>
25177
25178         Avoid redefining 'struct random_data' on OSF/1 5.1.
25179         * lib/stdlib.in.h: Include <random.h> if it exists.
25180         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
25181         HAVE_RANDOM_H. Include <random.h> when testing whether
25182         'struct random_data' exists.
25183         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
25184
25185 2009-01-25  Bruno Haible  <bruno@clisp.org>
25186
25187         Don't install charset.alias on MacOS X >= 10.3.
25188         * lib/localcharset.c (DARWIN7): New macro.
25189         (get_charset_aliases): Hardcode the result for Darwin7.
25190         * modules/localcharset (install-exec-local): Don't install
25191         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
25192
25193 2009-01-25  Bruno Haible  <bruno@clisp.org>
25194
25195         Don't install charset.alias on mingw and Cygwin.
25196         * modules/localcharset (install-exec-local): Don't install
25197         charset.alias on mingw and Cygwin, if the file does not yet exist.
25198         The result for these platforms is hardcoded in localcharset.c.
25199
25200 2009-01-25  Bruno Haible  <bruno@clisp.org>
25201
25202         Make it possible again to use AC_GNU_SOURCE together with gnulib.
25203         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
25204         before requiring AC_USE_SYSTEM_EXTENSIONS.
25205
25206 2009-01-25  Jim Meyering  <meyering@redhat.com>
25207
25208         c-strtod: avoid warnings
25209         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
25210         "assignment discards qualifiers from pointer target type" warnings.
25211
25212 2009-01-24  Bruno Haible  <bruno@clisp.org>
25213
25214         Add support for non-UTF-8 locales on MacOS X.
25215         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
25216         canonical encodings. For Darwin 7 and newer, don't map traditional
25217         encodings to UTF-8.
25218         Reported by Vincent Lefevre <vincent@vinc17.org>
25219         at <http://savannah.gnu.org/bugs/?25235>.
25220
25221 2009-01-24  Bruno Haible  <bruno@clisp.org>
25222
25223         * doc/gnulib.texi (Obsolete modules): New section.
25224         Reported by Mike Frysinger <vapier@gentoo.org>.
25225
25226 2009-01-24  Bruno Haible  <bruno@clisp.org>
25227
25228         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
25229         (%.dvi): New rule.
25230
25231 2009-01-24  Bruno Haible  <bruno@clisp.org>
25232
25233         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
25234         Reported by Eric Blake.
25235
25236 2009-01-24  Bruno Haible  <bruno@clisp.org>
25237
25238         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
25239         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
25240         Reported by Gary V. Vaughan <gary@gnu.org>.
25241
25242 2009-01-24  Bruno Haible  <bruno@clisp.org>
25243
25244         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
25245
25246 2009-01-23  Bruno Haible  <bruno@clisp.org>
25247
25248         Make c-strtod, c-strtold usable in libraries.
25249         * lib/c-strtod.c: Include string.h instead of xalloc.h.
25250         (C_STRTOD): Call strdup instead of xstrdup.
25251         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
25252         * modules/c-strtold (Depends-on): Likewise.
25253         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
25254         * NEWS: Mention the change.
25255         Reported by Michael Gold <mgold@ncf.ca>.
25256
25257 2009-01-23  Jim Meyering  <meyering@redhat.com>
25258
25259         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
25260         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
25261         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
25262
25263 2009-01-23  Simon Josefsson  <simon@josefsson.org>
25264
25265         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
25266         GNU CoreUtils.
25267         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
25268         * modules/version-etc (Description): Update.
25269
25270 2009-01-22  Bruno Haible  <bruno@clisp.org>
25271
25272         Cache the C locale object.
25273         * lib/c-strtod.c (c_locale_cache): New variable.
25274         (c_locale): New function.
25275         (C_STRTOD): Use it, and don't call freelocale.
25276         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
25277         Suggested by Paolo Bonzini.
25278
25279 2009-01-21  Bruno Haible  <bruno@clisp.org>
25280
25281         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
25282         conditions other than overflow.
25283
25284 2009-01-21  Bruno Haible  <bruno@clisp.org>
25285
25286         * lib/c-strtod.c: Include errno.h.
25287         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
25288         value from STRTOD_L and STRTOD.
25289
25290 2009-01-21  Bruno Haible  <bruno@clisp.org>
25291         and Jim Meyering  <meyering@redhat.com>
25292
25293         nanosleep: skip configure test (fail it) for apple universal builds
25294         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
25295         universal builds, assume that nanosleep does not work.
25296         * modules/nanosleep (Depends-on): Add multiarch.
25297
25298         mktime: skip configure test (fail it) for apple universal builds
25299         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
25300         universal builds, assume that mktime does not work.
25301         * modules/mktime (Depends-on): Add multiarch.
25302
25303 2009-01-21  Eric Blake  <ebb9@byu.net>
25304
25305         multiarch: avoid expand-before-require warning
25306         * modules/multiarch (configure.ac): Require, rather than expand,
25307         gl_MULTIARCH.
25308         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
25309         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
25310         enforce that all clients require it.  Partial reversion of
25311         2008-12-29 patch.
25312
25313         error: avoid expand-before-require warning
25314         * modules/errno (configure.ac): Require, rather than expand,
25315         gl_HEADER_ERRNO_H.
25316         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
25317         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
25318         enforce that all clients require it.
25319
25320         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
25321         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
25322         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
25323         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
25324
25325 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
25326
25327         Revert:
25328         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
25329
25330         regex: do not depend on obsolete modules.
25331         * modules/regex: Remove memcmp and memmove.
25332
25333 2009-01-20  Bruno Haible  <bruno@clisp.org>
25334
25335         Make the 'link' module link on Windows NT 4.
25336         * lib/link.c (_WIN32_WINNT): Don't define.
25337         (CreateHardLinkFuncType): New type.
25338         (CreateHardLinkFunc, initialized): New variables.
25339         (initialize): New function.
25340         (link): Invoke CreateHardLink indirectly through the function pointer.
25341
25342 2009-01-20  Bruno Haible  <bruno@clisp.org>
25343
25344         Fix compilation failure on mingw.
25345         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
25346
25347 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
25348
25349         * doc/c-strtod.texi: Mention a couple of restrictions.
25350
25351 2009-01-20  Jim Meyering  <meyering@redhat.com>
25352
25353         gettimeofday: move more declarations out of functions
25354         * lib/gettimeofday.c: Move extern declarations of tzset and
25355         gmtime out of containing functions.  Prompted by Bruno Haible.
25356
25357 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
25358
25359         regex: do not depend on obsolete modules.
25360         * modules/regex: Remove memcmp and memmove.
25361
25362 2009-01-19  Bruno Haible  <bruno@clisp.org>
25363
25364         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
25365         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
25366         gl_BIGENDIAN, not AC_C_BIGENDIAN.
25367         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
25368         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
25369
25370 2009-01-19  Bruno Haible  <bruno@clisp.org>
25371
25372         * tests/test-link.c: Include <errno.h>.
25373         (main): Exit with code 77 when a hard link cannot be created due to
25374         the file system.
25375         * tests/test-link.sh: Skip test when a hard link cannot be created due
25376         to the file system.
25377         Suggested by Eric Blake.
25378
25379 2009-01-19  Martin Lambers  <marlam@marlam.de>
25380
25381         * modules/link-tests: New file.
25382         * tests/test-link.sh: New file.
25383         * tests/test-link.c: New file.
25384
25385 2009-01-19  Eric Blake  <ebb9@byu.net>
25386
25387         doc: mention another function added in cygwin 1.7.0
25388         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
25389         Another new function in cygwin 1.7.
25390
25391 2009-01-19  Bruno Haible  <bruno@clisp.org>
25392
25393         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
25394         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
25395         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
25396         gl_BIGENDIAN, not AC_C_BIGENDIAN.
25397         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25398         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
25399         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25400         * m4/md4.m4 (gl_MD4): Likewise.
25401         * m4/md5.m4 (gl_MD5): Likewise.
25402         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
25403         * m4/sha1.m4 (gl_SHA1): Likewise.
25404         * m4/sha256.m4 (gl_SHA256): Likewise.
25405         * m4/sha512.m4 (gl_SHA512): Likewise.
25406
25407 2009-01-19  Bruno Haible  <bruno@clisp.org>
25408
25409         * modules/uniname/uniname-tests (Depends-on): Add progname.
25410         * tests/uniname/test-uninames.c: Include progname.h.
25411         (main): Call set_program_name.
25412
25413         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
25414         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
25415         (main): Call set_program_name.
25416
25417         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
25418         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
25419         (main): Call set_program_name.
25420
25421         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
25422         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
25423         (main): Call set_program_name.
25424
25425         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
25426         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
25427         (main): Call set_program_name.
25428
25429         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
25430         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
25431         (main): Call set_program_name.
25432
25433         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
25434         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
25435         (main): Call set_program_name.
25436
25437         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
25438         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
25439         (main): Call set_program_name.
25440
25441         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
25442         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
25443         (main): Call set_program_name.
25444
25445 2009-01-19  Eric Blake  <ebb9@byu.net>
25446
25447         test-unistd: test previous patch
25448         * tests/test-unistd.c: Test *_FILENO macros.
25449
25450         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
25451         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25452         Guarantee a definition.
25453         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
25454         * modules/unistd-safer (Depends-on): Add dependency on unistd.
25455         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
25456         * lib/dup-safer.c (STDERR_FILENO): Likewise.
25457         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25458         Likewise.
25459         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
25460         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
25461         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
25462         Likewise.
25463         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
25464         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
25465         (STDERR_FILENO): Likewise.
25466         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
25467         (STDERR_FILENO): Likewise.
25468         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
25469         (STDERR_FILENO): Likewise.
25470         Reported by Elbert Pol.
25471
25472 2009-01-19  Eric Blake  <ebb9@byu.net>
25473
25474         doc: mention more functions added in cygwin 1.7.0
25475         * doc/posix-functions/abort.texi (abort): Update wording related
25476         to cygwin.
25477         * doc/posix-functions/daylight.texi (daylight): Likewise.
25478         * doc/posix-functions/optarg.texi (optarg): Likewise.
25479         * doc/posix-functions/optarg.texi (opterr): Likewise.
25480         * doc/posix-functions/optarg.texi (optind): Likewise.
25481         * doc/posix-functions/optarg.texi (optopt): Likewise.
25482         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
25483         worked in 1.5.x, and was withdrawn in 1.7.
25484         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
25485         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
25486         cygwin versions.
25487         * doc/posix-functions/perror.texi (perror): Likewise.
25488         * doc/posix-functions/printf.texi (printf): Likewise.
25489         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
25490         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
25491         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
25492         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
25493         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25494         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
25495         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
25496         Likewise.
25497         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
25498         Likewise.
25499         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
25500         this function.
25501         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
25502         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
25503         Likewise.
25504         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
25505         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
25506         * doc/posix-functions/confstr.texi (confstr): Likewise.
25507         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
25508         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
25509         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
25510         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
25511         * doc/posix-functions/fputws.texi (fputws): Likewise.
25512         * doc/posix-functions/fwide.texi (fwide): Likewise.
25513         * doc/posix-functions/getwc.texi (getwc): Likewise.
25514         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
25515         * doc/posix-functions/putwc.texi (putwc): Likewise.
25516         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
25517         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
25518         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
25519         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
25520         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
25521         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
25522         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
25523         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
25524         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
25525         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
25526         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
25527
25528 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
25529
25530         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
25531         * lib/ioctl.c: Include <sys/ioctl.h>.
25532
25533 2009-01-19  Simon Josefsson  <simon@josefsson.org>
25534
25535         * modules/getdate-tests (Depends-on): Add progname.
25536         * tests/test-getdate.c: Use progname module, to avoid link errors
25537         on non-glibc systems.
25538
25539 2009-01-18  Simon Josefsson  <simon@josefsson.org>
25540
25541         * modules/filenamecat-tests (Depends-on): Add progname.
25542         * modules/fstrcmp-tests (Depends-on): Likewise.
25543
25544         * tests/test-filenamecat.c: Use progname module, to avoid link
25545         errors on non-glibc systems.
25546         * tests/test-fstrcmp.c: Likewise.
25547
25548 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
25549
25550         gettimeofday: avoid warning: nested extern declaration of 'localtime'
25551         * lib/gettimeofday.c: Move extern declaration out of function.
25552
25553 2009-01-18  Bruno Haible  <bruno@clisp.org>
25554
25555         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
25556         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
25557         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
25558
25559 2009-01-18  Bruno Haible  <bruno@clisp.org>
25560
25561         * lib/strftime.c (MEMPCPY): Remove unused macro.
25562         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
25563
25564 2009-01-18  Martin Lambers  <marlam@marlam.de>
25565
25566         New module 'link'.
25567         * lib/unistd.in.h (link): New declaration.
25568         * lib/link.c: New file.
25569         * m4/link.m4: New file.
25570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
25571         HAVE_LINK.
25572         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
25573         * modules/link: New file.
25574         * doc/posix-functions/link.texi: Mention the new module.
25575
25576 2009-01-18  Bruno Haible  <bruno@clisp.org>
25577
25578         * tests/test-avltree_list.c (main): Call set_program_name.
25579         * tests/test-avltree_oset.c (main): Likewise.
25580         * tests/test-obstack-printf.c: Include progname.h.
25581         (main): Call set_program_name.
25582         * tests/test-quotearg.c: Include progname.h.
25583         (main): Call set_program_name.
25584         * tests/test-xmemdup0.c: Include progname.h.
25585         (main): Call set_program_name.
25586
25587 2009-01-18  Bruno Haible  <bruno@clisp.org>
25588
25589         New module 'alphasort'.
25590         * lib/dirent.in.h (alphasort): New declaration.
25591         * lib/alphasort.c: New file, from glibc with modifications.
25592         * m4/alphasort.m4: New file.
25593         * modules/alphasort: New file.
25594         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
25595         HAVE_ALPHASORT.
25596         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
25597         HAVE_ALPHASORT.
25598         * doc/posix-functions/alphasort.texi: Mention the new module and the
25599         portability problems.
25600
25601 2009-01-18  Bruno Haible  <bruno@clisp.org>
25602
25603         New module 'scandir'.
25604         * lib/dirent.in.h (scandir): New declaration.
25605         * lib/scandir.c: New file, from glibc with modifications.
25606         * m4/scandir.m4: New file.
25607         * modules/scandir: New file.
25608         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
25609         HAVE_SCANDIR.
25610         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
25611         HAVE_SCANDIR.
25612         * doc/posix-functions/scandir.texi: Mention the new module and the
25613         portability problems.
25614
25615 2009-01-17  Bruno Haible  <bruno@clisp.org>
25616
25617         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
25618         Update documentation.
25619         (func_remove_suffix): Escape all dots in the suffix. Update
25620         documentation.
25621         (func_filter_filelist): Update documentation.
25622         Reported by Ralf Wildenhues.
25623
25624 2009-01-17  Bruno Haible  <bruno@clisp.org>
25625
25626         * modules/dprintf-posix-tests: New file.
25627         * tests/test-dprintf-posix.sh: New file.
25628         * tests/test-dprintf-posix.c: New file.
25629
25630         New modules 'dprintf', 'dprintf-posix'.
25631         * lib/stdio.in.h (dprintf): New declaration.
25632         * lib/dprintf.c: New file.
25633         * m4/dprintf.m4: New file.
25634         * m4/dprintf-posix.m4: New file.
25635         * modules/dprintf: New file.
25636         * modules/dprintf-posix: New file.
25637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
25638         HAVE_DPRINTF, REPLACE_DPRINTF.
25639         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
25640         HAVE_DPRINTF, REPLACE_DPRINTF.
25641         * doc/posix-functions/dprintf.texi: Mention the new modules.
25642
25643 2009-01-17  Bruno Haible  <bruno@clisp.org>
25644
25645         * modules/vdprintf-posix-tests: New file.
25646         * tests/test-vdprintf-posix.sh: New file.
25647         * tests/test-vdprintf-posix.c: New file.
25648
25649         New modules 'vdprintf', 'vdprintf-posix'.
25650         * lib/stdio.in.h (vdprintf): New declaration.
25651         * lib/vdprintf.c: New file.
25652         * m4/vdprintf.m4: New file.
25653         * m4/vdprintf-posix.m4: New file.
25654         * modules/vdprintf: New file.
25655         * modules/vdprintf-posix: New file.
25656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
25657         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25658         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
25659         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25660         * doc/posix-functions/vdprintf.texi: Mention the new modules.
25661
25662 2009-01-17  Bruno Haible  <bruno@clisp.org>
25663
25664         Fix replacement of fopen on mingw.
25665         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
25666         mingw.
25667
25668 2009-01-17  Bruno Haible  <bruno@clisp.org>
25669
25670         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
25671         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
25672
25673 2009-01-17  Bruno Haible  <bruno@clisp.org>
25674
25675         Avoid test-fflush2.sh failure on mingw.
25676         * tests/test-fflush2.c: Include binary-io.h.
25677         (main): Put standard input into binary mode.
25678         * modules/fflush-tests (Depends-on): Add binary-io.
25679
25680 2009-01-17  Bruno Haible  <bruno@clisp.org>
25681
25682         * lib/wchar.in.h: In another particular situation, include only the
25683         system's <wchar.h> file.
25684         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
25685         Reported by Albert Chin-A-Young <china@thewrittenword.com>
25686         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
25687
25688 2009-01-17  Bruno Haible  <bruno@clisp.org>
25689
25690         Support for stripping executables in --enable-relocatable.
25691         * build-aux/install-reloc: Expect one more argument, or an environment
25692         variable RELOC_STRIP_PROG. If set, strip the destination program and
25693         its wrapper.
25694         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
25695         RELOC_STRIP_PROG.
25696         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
25697         to set RELOCATABLE_STRIP.
25698         * NEWS: Mention the new Makefile requirement.
25699
25700 2009-01-17  Bruno Haible  <bruno@clisp.org>
25701
25702         * build-aux/install-reloc: Remove debugging information left over by
25703         C compiler on MacOS X.
25704
25705 2009-01-17  Bruno Haible  <bruno@clisp.org>
25706
25707         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
25708         * lib/progreloc.c (find_executable): Fix type of pointer passed to
25709         _NSGetExecutablePath.
25710
25711 2009-01-16  Jim Meyering  <meyering@redhat.com>
25712
25713         strerror: avoid warnings about discarding "const"
25714         * lib/strerror.c (rpl_strerror): Instead of returning a const
25715         string from each and every "case", use a variable, and add a single
25716         cast after the switch.
25717
25718 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
25719
25720         * lib/arpa_inet.in.h: Add extern "C" block for C++.
25721
25722 2009-01-16  Bruno Haible  <bruno@clisp.org>
25723
25724         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
25725         array initializer syntax that also works in C++ mode.
25726         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25727
25728 2009-01-16  Jim Meyering  <meyering@redhat.com>
25729
25730         poll: suppress a warning
25731         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
25732         to ignore "...unsigned expression < 0 is always false" warnings.
25733
25734 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
25735
25736         poll: remove declarations of unused variables
25737         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
25738         sockbuf and optlen.
25739
25740 2009-01-15  Bruno Haible  <bruno@clisp.org>
25741
25742         Make fflush-after-ungetc POSIX compliant on BSD systems.
25743         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
25744         (clear_ungetc_buffer): Implement also for other systems.
25745         (rpl_fflush): On glibc systems, invoke
25746         clear_ungetc_buffer_preserving_position. Otherwise, invoke
25747         clear_ungetc_buffer after fetching the stream's position, not before.
25748
25749 2009-01-15  Bruno Haible  <bruno@clisp.org>
25750
25751         Make fflush-after-ungetc POSIX compliant on glibc systems.
25752         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
25753         after ungetc.
25754         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
25755         (rpl_fflush): On glibc systems, simply call the system's fflush
25756         function after clearing the ungetc buffer.
25757         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
25758         Instead, lseek only to the end of file, then use the system's fseeko
25759         for the rest. On glibc systems, reset the EOF indicator bit.
25760
25761 2009-01-15  Jim Meyering  <meyering@redhat.com>
25762
25763         openmp.m4: revert quote-adding change, for portability to older autoconf
25764         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
25765         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
25766         Simon Josefsson noticed the problem when using autoconf-2.61.
25767
25768 2009-01-15  Bruno Haible  <bruno@clisp.org>
25769
25770         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
25771         * tests/test-fflush2.c (ASSERT): Always fail.
25772         (main): Add two tests for fflush() after ungetc(), taking into account
25773         the Austin Group's clarification.
25774         Suggested by Eric Blake.
25775
25776 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
25777
25778         mktime.m4: remove K&R-style function prototypes
25779         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
25780         for the Sun C++ compiler.
25781
25782 2009-01-14  Bruno Haible  <bruno@clisp.org>
25783
25784         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
25785         while including <wchar.h>.
25786         * lib/wchar.in.h: In two particular situations on HP-UX, include only
25787         the system's <wchar.h> file.
25788         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25789
25790 2009-01-14  Bruno Haible  <bruno@clisp.org>
25791
25792         * m4/csharp.m4: Don't mention gettext on the serial number line.
25793         * m4/csharpexec.m4: Likewise.
25794         * m4/eaccess.m4: Likewise.
25795         * m4/javaexec.m4: Likewise.
25796         * m4/sig_atomic_t.m4: Likewise.
25797         * m4/tmpdir.m4: Likewise.
25798         * m4/intldir.m4: Bump gettext version.
25799         * m4/lib-ld.m4: Likewise.
25800
25801 2009-01-14  Bruno Haible  <bruno@clisp.org>
25802
25803         * lib/progname.c (set_program_name): Add more comments.
25804         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25805
25806 2009-01-14  Simon Josefsson  <simon@josefsson.org>
25807
25808         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
25809         were sys/stat.h does not define it.
25810
25811 2009-01-14  Jim Meyering  <meyering@redhat.com>
25812
25813         many *.m4 files: improve m4 quoting
25814         99% of this change was performed by running the following commands:
25815         git ls-files | grep '\.m4$' | xargs perl -pi \
25816           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
25817           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25818           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25819           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
25820         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
25821         The remainder were to add Copyright dates, increment serial numbers,
25822         undo some changes in comments, exclude m4/intl.m4, and add quotes
25823         around the "1" in ",1" where the unusual spacing prohibited the
25824         above regexps from doing the job.  For more details, see
25825         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
25826         * m4/acl.m4: Modified.
25827         * m4/afs.m4: Likewise.
25828         * m4/alloca.m4: Likewise.
25829         * m4/argp.m4: Likewise.
25830         * m4/argz.m4: Likewise.
25831         * m4/atexit.m4: Likewise.
25832         * m4/bison-i18n.m4: Likewise.
25833         * m4/bison.m4: Likewise.
25834         * m4/byteswap.m4: Likewise.
25835         * m4/c-stack.m4: Likewise.
25836         * m4/c-strtod.m4: Likewise.
25837         * m4/calloc.m4: Likewise.
25838         * m4/canonicalize-lgpl.m4: Likewise.
25839         * m4/chown.m4: Likewise.
25840         * m4/clock_time.m4: Likewise.
25841         * m4/codeset.m4: Likewise.
25842         * m4/copy-file.m4: Likewise.
25843         * m4/csharp.m4: Likewise.
25844         * m4/csharpcomp.m4: Likewise.
25845         * m4/csharpexec.m4: Likewise.
25846         * m4/d-ino.m4: Likewise.
25847         * m4/d-type.m4: Likewise.
25848         * m4/dirfd.m4: Likewise.
25849         * m4/double-slash-root.m4: Likewise.
25850         * m4/eaccess.m4: Likewise.
25851         * m4/eealloc.m4: Likewise.
25852         * m4/environ.m4: Likewise.
25853         * m4/errno_h.m4: Likewise.
25854         * m4/euidaccess.m4: Likewise.
25855         * m4/execute.m4: Likewise.
25856         * m4/fatal-signal.m4: Likewise.
25857         * m4/fchdir.m4: Likewise.
25858         * m4/fcntl_h.m4: Likewise.
25859         * m4/fileblocks.m4: Likewise.
25860         * m4/filenamecat.m4: Likewise.
25861         * m4/findprog.m4: Likewise.
25862         * m4/flexmember.m4: Likewise.
25863         * m4/fnmatch.m4: Likewise.
25864         * m4/fopen.m4: Likewise.
25865         * m4/fpending.m4: Likewise.
25866         * m4/fprintf-posix.m4: Likewise.
25867         * m4/free.m4: Likewise.
25868         * m4/frexp.m4: Likewise.
25869         * m4/frexpl.m4: Likewise.
25870         * m4/fsusage.m4: Likewise.
25871         * m4/ftruncate.m4: Likewise.
25872         * m4/gc-camellia.m4: Likewise.
25873         * m4/gc-random.m4: Likewise.
25874         * m4/gc.m4: Likewise.
25875         * m4/getaddrinfo.m4: Likewise.
25876         * m4/getcwd-abort-bug.m4: Likewise.
25877         * m4/getcwd-path-max.m4: Likewise.
25878         * m4/getdate.m4: Likewise.
25879         * m4/getdomainname.m4: Likewise.
25880         * m4/getgroups.m4: Likewise.
25881         * m4/gethostname.m4: Likewise.
25882         * m4/gethrxtime.m4: Likewise.
25883         * m4/getline.m4: Likewise.
25884         * m4/getloadavg.m4: Likewise.
25885         * m4/getndelim2.m4: Likewise.
25886         * m4/getpass.m4: Likewise.
25887         * m4/gettext.m4: Likewise.
25888         * m4/gettime.m4: Likewise.
25889         * m4/gettimeofday.m4: Likewise.
25890         * m4/gnulib-common.m4: Likewise.
25891         * m4/group-member.m4: Likewise.
25892         * m4/host-os.m4: Likewise.
25893         * m4/iconv.m4: Likewise.
25894         * m4/iconv_open.m4: Likewise.
25895         * m4/inet_ntop.m4: Likewise.
25896         * m4/inet_pton.m4: Likewise.
25897         * m4/inline.m4: Likewise.
25898         * m4/intldir.m4: Likewise.
25899         * m4/intlmacosx.m4: Likewise.
25900         * m4/intmax.m4: Likewise.
25901         * m4/intmax_t.m4: Likewise.
25902         * m4/inttypes.m4: Likewise.
25903         * m4/inttypes_h.m4: Likewise.
25904         * m4/inttypes-pri.m4: Likewise.
25905         * m4/isapipe.m4: Likewise.
25906         * m4/isnand.m4: Likewise.
25907         * m4/isnanf.m4: Likewise.
25908         * m4/isnanl.m4: Likewise.
25909         * m4/javacomp.m4: Likewise.
25910         * m4/javaexec.m4: Likewise.
25911         * m4/jm-winsz1.m4: Likewise.
25912         * m4/jm-winsz2.m4: Likewise.
25913         * m4/lchown.m4: Likewise.
25914         * m4/lcmessage.m4: Likewise.
25915         * m4/ldexpl.m4: Likewise.
25916         * m4/lib-ld.m4: Likewise.
25917         * m4/lib-link.m4: Likewise.
25918         * m4/libsigsegv.m4: Likewise.
25919         * m4/link-follow.m4: Likewise.
25920         * m4/localcharset.m4: Likewise.
25921         * m4/locale-fr.m4: Likewise.
25922         * m4/locale-ja.m4: Likewise.
25923         * m4/locale-tr.m4: Likewise.
25924         * m4/locale-zh.m4: Likewise.
25925         * m4/lock.m4: Likewise.
25926         * m4/longlong.m4: Likewise.
25927         * m4/ls-mntd-fs.m4: Likewise.
25928         * m4/lstat.m4: Likewise.
25929         * m4/malloc.m4: Likewise.
25930         * m4/mathl.m4: Likewise.
25931         * m4/mbrtowc.m4: Likewise.
25932         * m4/mbstate_t.m4: Likewise.
25933         * m4/mbswidth.m4: Likewise.
25934         * m4/memchr.m4: Likewise.
25935         * m4/memcmp.m4: Likewise.
25936         * m4/memcpy.m4: Likewise.
25937         * m4/memmem.m4: Likewise.
25938         * m4/memmove.m4: Likewise.
25939         * m4/mempcpy.m4: Likewise.
25940         * m4/memrchr.m4: Likewise.
25941         * m4/memset.m4: Likewise.
25942         * m4/minmax.m4: Likewise.
25943         * m4/mkdir-slash.m4: Likewise.
25944         * m4/mkdtemp.m4: Likewise.
25945         * m4/mktime.m4: Likewise.
25946         * m4/mmap-anon.m4: Likewise.
25947         * m4/mountlist.m4: Likewise.
25948         * m4/nanosleep.m4: Likewise.
25949         * m4/nls.m4: Likewise.
25950         * m4/nocrash.m4: Likewise.
25951         * m4/open.m4: Likewise.
25952         * m4/openat.m4: Likewise.
25953         * m4/openmp.m4: Likewise.
25954         * m4/pathmax.m4: Likewise.
25955         * m4/perl.m4: Likewise.
25956         * m4/physmem.m4: Likewise.
25957         * m4/pipe.m4: Likewise.
25958         * m4/po.m4: Likewise.
25959         * m4/poll.m4: Likewise.
25960         * m4/posixtm.m4: Likewise.
25961         * m4/posixver.m4: Likewise.
25962         * m4/printf-frexp.m4: Likewise.
25963         * m4/printf-frexpl.m4: Likewise.
25964         * m4/printf-posix.m4: Likewise.
25965         * m4/printf-posix-rpl.m4: Likewise.
25966         * m4/printf.m4: Likewise.
25967         * m4/progtest.m4: Likewise.
25968         * m4/putenv.m4: Likewise.
25969         * m4/readline.m4: Likewise.
25970         * m4/readlink.m4: Likewise.
25971         * m4/readutmp.m4: Likewise.
25972         * m4/realloc.m4: Likewise.
25973         * m4/regex.m4: Likewise.
25974         * m4/relocatable.m4: Likewise.
25975         * m4/relocatable-lib.m4: Likewise.
25976         * m4/rename-dest-slash.m4: Likewise.
25977         * m4/rename.m4: Likewise.
25978         * m4/rmdir-errno.m4: Likewise.
25979         * m4/rmdir.m4: Likewise.
25980         * m4/roundf.m4: Likewise.
25981         * m4/roundl.m4: Likewise.
25982         * m4/rpmatch.m4: Likewise.
25983         * m4/save-cwd.m4: Likewise.
25984         * m4/selinux-selinux-h.m4: Likewise.
25985         * m4/setenv.m4: Likewise.
25986         * m4/settime.m4: Likewise.
25987         * m4/sig2str.m4: Likewise.
25988         * m4/sig_atomic_t.m4: Likewise.
25989         * m4/signalblocking.m4: Likewise.
25990         * m4/signbit.m4: Likewise.
25991         * m4/sigpipe.m4: Likewise.
25992         * m4/sockets.m4: Likewise.
25993         * m4/sockpfaf.m4: Likewise.
25994         * m4/st_dm_mode.m4: Likewise.
25995         * m4/stat-time.m4: Likewise.
25996         * m4/stdbool.m4: Likewise.
25997         * m4/stdint.m4: Likewise.
25998         * m4/stdint_h.m4: Likewise.
25999         * m4/stpcpy.m4: Likewise.
26000         * m4/stpncpy.m4: Likewise.
26001         * m4/strcase.m4: Likewise.
26002         * m4/strchrnul.m4: Likewise.
26003         * m4/strcspn.m4: Likewise.
26004         * m4/strdup.m4: Likewise.
26005         * m4/strftime.m4: Likewise.
26006         * m4/strndup.m4: Likewise.
26007         * m4/strnlen.m4: Likewise.
26008         * m4/strpbrk.m4: Likewise.
26009         * m4/strptime.m4: Likewise.
26010         * m4/strsep.m4: Likewise.
26011         * m4/strtod.m4: Likewise.
26012         * m4/strtoimax.m4: Likewise.
26013         * m4/strtok_r.m4: Likewise.
26014         * m4/strtol.m4: Likewise.
26015         * m4/strtoll.m4: Likewise.
26016         * m4/strtoul.m4: Likewise.
26017         * m4/strtoull.m4: Likewise.
26018         * m4/strtoumax.m4: Likewise.
26019         * m4/strverscmp.m4: Likewise.
26020         * m4/threadlib.m4: Likewise.
26021         * m4/timegm.m4: Likewise.
26022         * m4/tm_gmtoff.m4: Likewise.
26023         * m4/tmpdir.m4: Likewise.
26024         * m4/tmpfile.m4: Likewise.
26025         * m4/tzset.m4: Likewise.
26026         * m4/uintmax_t.m4: Likewise.
26027         * m4/unlinkdir.m4: Likewise.
26028         * m4/unlocked-io.m4: Likewise.
26029         * m4/uptime.m4: Likewise.
26030         * m4/userspec.m4: Likewise.
26031         * m4/utimbuf.m4: Likewise.
26032         * m4/utime.m4: Likewise.
26033         * m4/utimes-null.m4: Likewise.
26034         * m4/utimes.m4: Likewise.
26035         * m4/vararrays.m4: Likewise.
26036         * m4/vasnprintf.m4: Likewise.
26037         * m4/vfprintf-posix.m4: Likewise.
26038         * m4/vprintf-posix.m4: Likewise.
26039         * m4/wait-process.m4: Likewise.
26040         * m4/wchar_t.m4: Likewise.
26041         * m4/wint_t.m4: Likewise.
26042         * m4/write-any-file.m4: Likewise.
26043         * m4/yield.m4: Likewise.
26044
26045 2009-01-13  Bruno Haible  <bruno@clisp.org>
26046
26047         Avoid test-copy-file.sh failures when ACL support insufficient.
26048         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
26049         TESTS_ENVIRONMENT.
26050         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
26051         Reported by Jim Meyering.
26052
26053 2009-01-13  Bruno Haible  <bruno@clisp.org>
26054
26055         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
26056         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
26057         * modules/unistdio/u8-printf-parse (Files): Likewise.
26058         * modules/unistdio/u32-printf-parse (Files): Likewise.
26059         * modules/unistdio/ulc-printf-parse (Files): Likewise.
26060
26061 2009-01-13  Simon Josefsson  <simon@josefsson.org>
26062
26063         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
26064         and m4/inttypes_h.m4 too.
26065
26066 2009-01-12  Eric Blake  <ebb9@byu.net>
26067
26068         tests: IRIX 6.2 cc can't compile -0.0 into .data
26069         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
26070         rather than at compile-time.
26071         * tests/test-floorl.c (minus_zero): Likewise.
26072         * tests/test-frexpl.c (minus_zero): Likewise.
26073         * tests/test-isnan.c (minus_zerol): Likewise.
26074         * tests/test-isnanl.h (minus_zero): Likewise.
26075         * tests/test-ldexpl.c (minus_zero): Likewise.
26076         * tests/test-roundl.c (minus_zero): Likewise.
26077         * tests/test-signbit.c (minus_zerol): Likewise.
26078         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
26079         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
26080         * tests/test-truncl.c (minus_zero): Likewise.
26081         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
26082         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
26083         Reported by Tom G. Christensen and Nelson H. F. Beebe.
26084
26085 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
26086
26087         regex: fix glibc bug 9697
26088         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
26089         handling.
26090
26091 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
26092
26093         regex: fix glibc bug 697
26094         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
26095         being NULL also if there are no backreferences.
26096
26097 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
26098
26099         regex: merge glibc changes
26100         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
26101         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
26102         re_string_skip_chars, re_string_reconstruct): Likewise.
26103         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
26104
26105 2009-01-07  Jim Meyering  <meyering@redhat.com>
26106
26107         poll: filter through cppi
26108         * lib/poll.c: Indent cpp directives to reflect nesting.
26109
26110 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
26111
26112         poll: don't return uninitialized
26113         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
26114
26115 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
26116
26117         avoid compile failure on AIX 6.1
26118         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
26119         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
26120
26121 2009-01-04  Jim Meyering  <meyering@redhat.com>
26122
26123         remove duplicate inclusion of <stdio.h>
26124         * tests/test-fprintf-posix.c: Likewise.
26125         * tests/test-printf-posix.c: Likewise.
26126         * tests/test-snprintf-posix.c: Likewise.
26127         * tests/test-sprintf-posix.c: Likewise.
26128         * tests/test-vasprintf-posix.c: Likewise.
26129         * tests/test-vfprintf-posix.c: Likewise.
26130         * tests/test-vprintf-posix.c: Likewise.
26131         * tests/test-vsnprintf-posix.c: Likewise.
26132         * tests/test-vsprintf-posix.c: Likewise.
26133
26134 2009-01-03  Jim Meyering  <meyering@redhat.com>
26135
26136         gnulib-tool: fix sed-based filtering
26137         * gnulib-tool (func_filter_filelist): Remove extra backslash
26138         in sed_fff_filter definition.
26139
26140 2009-01-02  Jim Meyering  <meyering@redhat.com>
26141
26142         strftime: avoid compilation failure on Solaris 2.6
26143         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
26144         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
26145         Don't #define mbrlen or mbsinit, since now they're guaranteed to
26146         be available.  Reported by Tom G. Christensen.  Details in
26147         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
26148
26149 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26150             Bruno Haible  <bruno@clisp.org>
26151
26152         Speed up gnulib-tool by doing more string processing through shell
26153         built-ins.
26154         * gnulib-tool (fast_func_append): New variable.
26155         (func_remove_prefix, func_remove_suffix): New functions.
26156         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
26157         (func_filter_filelist): New function.
26158         (func_get_dependencies): Use func_remove_suffix instead of sed.
26159         (func_get_automake_snippet): Use func_filter_filelist instead of a
26160         subshell and sed invocation.
26161
26162 2009-01-01  Bruno Haible  <bruno@clisp.org>
26163
26164         Fix a security bug.
26165         * gnulib-tool (func_import, import, update): Don't allow the characters
26166         '"', '$', '`', '\' in macro arguments that become part of commands that
26167         are evaluated.
26168
26169 2009-01-01  Bruno Haible  <bruno@clisp.org>
26170
26171         * gnulib-tool (func_reset_sigpipe): Add more comments.
26172
26173 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26174
26175         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
26176         func_emit_tests_Makefile_am, func_import): Abort loops early if we
26177         already know the answer.
26178
26179 2009-01-01  Jim Meyering  <meyering@redhat.com>
26180
26181         * lib/version-etc.c (version_etc_va): Update copyright year.
26182
26183 2008-12-30  Bruno Haible  <bruno@clisp.org>
26184
26185         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
26186         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
26187         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
26188
26189 2008-12-29  Eric Blake  <ebb9@byu.net>
26190
26191         multiarch: avoid autoconf AC_REQUIRE bug
26192         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
26193         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
26194         2.63 and older.
26195         Reported by Bruno Haible, and analyzed in
26196         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
26197
26198 2008-12-29  Bruno Haible  <bruno@clisp.org>
26199
26200         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
26201         files in subdirectories correctly.
26202         Reported by Ralf Wildenhues.
26203
26204 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26205
26206         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
26207         rather than 'join FILE -', for Solaris join.
26208
26209 2008-12-29  Bruno Haible  <bruno@clisp.org>
26210
26211         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
26212         quoting.
26213         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26214         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26215         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26216         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
26217         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26218         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26219         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26220         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26221         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26222         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26223         * m4/nls.m4 (AM_NLS): Likewise.
26224         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
26225         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26226         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26227         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26228         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26229         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26230         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
26231         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26232         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26233         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26234         * m4/xsize.m4 (gl_XSIZE): Likewise.
26235         Suggested by Jim Meyering.
26236
26237 2008-11-17  Bruce Korb  <bkorb@gnu.org>
26238
26239         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
26240         * lib/parse-duration.c: use a switch instead of cascading if's.
26241
26242 2008-12-29  Eric Blake  <ebb9@byu.net>
26243
26244         wchar.h: supply WEOF on Irix 5.3
26245         * lib/wchar.in.h (wint_t): Also supply WEOF.
26246         * lib/wctype.in.h (wint_t): Likewise.
26247         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
26248         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
26249         Reported by Tom G. Christensen.
26250
26251 2008-12-26  Bruno Haible  <bruno@clisp.org>
26252
26253         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
26254         i486, i586, i686.
26255
26256 2008-12-26  Bruno Haible  <bruno@clisp.org>
26257
26258         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
26259
26260 2008-12-26  Bruno Haible  <bruno@clisp.org>
26261
26262         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
26263         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
26264         not __STDC_CONSTANT_MACROS.
26265         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
26266
26267 2008-12-25  Bruno Haible  <bruno@clisp.org>
26268
26269         Add support for universal builds to vasnprintf.
26270         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
26271         universal builds, guess no.
26272         * modules/vasnprintf-posix (Depends-on): Add multiarch.
26273         * modules/vasprintf-posix (Depends-on): Likewise.
26274         * modules/fprintf-posix (Depends-on): Likewise.
26275         * modules/vfprintf-posix (Depends-on): Likewise.
26276         * modules/snprintf-posix (Depends-on): Likewise.
26277         * modules/vsnprintf-posix (Depends-on): Likewise.
26278         * modules/sprintf-posix (Depends-on): Likewise.
26279         * modules/vsprintf-posix (Depends-on): Likewise.
26280         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26281         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26282         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26283         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26284         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26285         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26286         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26287
26288         Add support for universal builds to <inttypes.h>.
26289         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
26290         _SCNu64_PREFIX): In Apple
26291         universal builds, define directly, using _LP64.
26292         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
26293         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
26294         * modules/inttypes (Depends-on): Add multiarch.
26295         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
26296
26297         Add support for universal builds to <stdint.h>.
26298         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
26299         universal builds, define directly, using _LP64.
26300         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
26301         Apple universal builds, don't test for the size and suffix of ptrdiff_t
26302         and size_t.
26303         * modules/stdint (Depends-on): Add multiarch.
26304         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
26305
26306         New module 'multiarch'.
26307         * modules/multiarch: New file.
26308         * m4/multiarch.m4: New file.
26309
26310 2008-12-25  Bruno Haible  <bruno@clisp.org>
26311
26312         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
26313
26314 2008-12-25  Bruno Haible  <bruno@clisp.org>
26315
26316         * modules/btowc (License): Relicense under LGPLv2+.
26317         * modules/mbsinit (License): Likewise.
26318         * modules/mbrtowc (License): Likewise.
26319         * modules/wcrtomb (License): Likewise.
26320         * modules/streq (License): Likewise.
26321         Reported by David Lutterkort <lutter@redhat.com>.
26322
26323 2008-12-23  Bruno Haible  <bruno@clisp.org>
26324
26325         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
26326
26327 2008-12-23  Bruno Haible  <bruno@clisp.org>
26328
26329         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
26330         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
26331         GETADDRINFO_LIB, not in LIBS.
26332         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
26333         * modules/canon-host (Link): Likewise.
26334         * NEWS: Mention the change.
26335         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
26336         GETADDRINFO_LIB.
26337
26338 2008-12-22  Bruno Haible  <bruno@clisp.org>
26339
26340         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
26341         * doc/posix-functions/iswalpha_l.texi: Likewise.
26342         * doc/posix-functions/iswblank_l.texi: Likewise.
26343         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26344         * doc/posix-functions/iswctype_l.texi: Likewise.
26345         * doc/posix-functions/iswdigit_l.texi: Likewise.
26346         * doc/posix-functions/iswgraph_l.texi: Likewise.
26347         * doc/posix-functions/iswlower_l.texi: Likewise.
26348         * doc/posix-functions/iswprint_l.texi: Likewise.
26349         * doc/posix-functions/iswpunct_l.texi: Likewise.
26350         * doc/posix-functions/iswspace_l.texi: Likewise.
26351         * doc/posix-functions/iswupper_l.texi: Likewise.
26352         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26353         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
26354         * doc/posix-functions/open_wmemstream.texi: Likewise.
26355         * doc/posix-functions/swscanf.texi: Likewise.
26356         * doc/posix-functions/towctrans_l.texi: Likewise.
26357         * doc/posix-functions/towlower.texi: Likewise.
26358         * doc/posix-functions/towlower_l.texi: Likewise.
26359         * doc/posix-functions/towupper.texi: Likewise.
26360         * doc/posix-functions/towupper_l.texi: Likewise.
26361         * doc/posix-functions/vfwprintf.texi: Likewise.
26362         * doc/posix-functions/vfwscanf.texi: Likewise.
26363         * doc/posix-functions/vswscanf.texi: Likewise.
26364         * doc/posix-functions/vwprintf.texi: Likewise.
26365         * doc/posix-functions/vwscanf.texi: Likewise.
26366         * doc/posix-functions/wcpcpy.texi: Likewise.
26367         * doc/posix-functions/wcpncpy.texi: Likewise.
26368         * doc/posix-functions/wcscasecmp.texi: Likewise.
26369         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
26370         * doc/posix-functions/wcscoll_l.texi: Likewise.
26371         * doc/posix-functions/wcsdup.texi: Likewise.
26372         * doc/posix-functions/wcsncasecmp.texi: Likewise.
26373         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
26374         * doc/posix-functions/wcsnlen.texi: Likewise.
26375         * doc/posix-functions/wcsnrtombs.texi: Likewise.
26376         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26377         * doc/posix-functions/wctrans_l.texi: Likewise.
26378         * doc/posix-functions/wctype_l.texi: Likewise.
26379         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
26380         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
26381         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
26382         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
26383         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
26384         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
26385         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
26386         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
26387         * doc/glibc-functions/wcschrnul.texi: Likewise.
26388         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26389         * doc/glibc-functions/wcstod_l.texi: Likewise.
26390         * doc/glibc-functions/wcstof_l.texi: Likewise.
26391         * doc/glibc-functions/wcstol_l.texi: Likewise.
26392         * doc/glibc-functions/wcstold_l.texi: Likewise.
26393         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26394         * doc/glibc-functions/wcstoq.texi: Likewise.
26395         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26396         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26397         * doc/glibc-functions/wcstouq.texi: Likewise.
26398         * doc/glibc-functions/wmempcpy.texi: Likewise.
26399
26400 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
26401             Eric Blake  <ebb9@byu.net>
26402             Paolo Bonzini  <bonzini@gnu.org>
26403             Bruno Haible  <bruno@clisp.org>
26404
26405         Make c-stack work on Haiku.
26406         * lib/c-stack.c (SA_ONSTACK): Define fallback.
26407         (c_stack_action): Use SA_ONSTACK flag.
26408
26409 2008-12-22  Bruno Haible  <bruno@clisp.org>
26410
26411         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
26412
26413 2008-12-22  Bruno Haible  <bruno@clisp.org>
26414
26415         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
26416         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
26417         being overridden.
26418         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
26419         New macros.
26420         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
26421         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
26422         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
26423         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
26424
26425 2008-12-22  Bruno Haible  <bruno@clisp.org>
26426
26427         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
26428         from test code.
26429
26430 2008-12-22  Eric Blake  <ebb9@byu.net>
26431
26432         Avoid gcc warnings on cygwin.
26433         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
26434         Avoid unused variable.
26435         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
26436         Likewise.
26437
26438 2008-12-22  Bruno Haible  <bruno@clisp.org>
26439
26440         Remove HAVE_MBRTOWC conditionals.
26441         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
26442         (mbscasecmp): Assume mbrtowc function.
26443         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
26444         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
26445         * lib/mbschr.c: Include mbuiter.h unconditionally.
26446         (mbschr): Assume mbrtowc function.
26447         * lib/mbscspn.c: Include mbuiter.h unconditionally.
26448         (mbscspn): Assume mbrtowc function.
26449         * lib/mbslen.c: Include mbuiter.h unconditionally.
26450         (mbslen): Assume mbrtowc function.
26451         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
26452         (mbsncasecmp): Assume mbrtowc function.
26453         * lib/mbsnlen.c: Include mbiter.h unconditionally.
26454         (mbsnlen): Assume mbrtowc function.
26455         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
26456         (mbspbrk): Assume mbrtowc function.
26457         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
26458         (mbspcasecmp): Assume mbrtowc function.
26459         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
26460         (mbsrchr): Assume mbrtowc function.
26461         * lib/mbssep.c: Include mbuiter.h unconditionally.
26462         (mbssep): Assume mbrtowc function.
26463         * lib/mbsspn.c: Include mbuiter.h unconditionally.
26464         (mbsspn): Assume mbrtowc function.
26465         * lib/mbsstr.c: Include mbuiter.h unconditionally.
26466         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
26467         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
26468         (mbstok_r): Assume mbrtowc function.
26469         * lib/propername.c: Include mbuiter.h unconditionally.
26470         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
26471         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
26472         (trim2): Assume mbrtowc function.
26473         * lib/mbswidth.c (mbsinit): Remove fallback definition.
26474         (mbsnwidth): Assume mbrtowc function.
26475         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
26476         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
26477         fallback definitions.
26478         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
26479
26480 2008-12-22  Bruno Haible  <bruno@clisp.org>
26481
26482         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
26483
26484 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
26485
26486         * modules/regex: Request emulations for the mb*/wc* functions we need.
26487         * m4/regex.m4: Don't look for those functions here.
26488         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
26489
26490 2008-12-22  Bruno Haible  <bruno@clisp.org>
26491
26492         * modules/fnmatch (Depends-on): Remove duplicated dependency.
26493
26494 2008-12-21  Bruno Haible  <bruno@clisp.org>
26495
26496         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
26497         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
26498         (Include): Remove conditionalization.
26499         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
26500         (Include): Remove conditionalization.
26501         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
26502         (Include): Remove conditionalization.
26503         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
26504         * m4/mbfile.m4 (gl_MBFILE): Likewise.
26505         * NEWS: Mention the change.
26506         Reported by Alan Hourihane <alanh@fairlite.co.uk>
26507         via Sergey Poznyakoff <gray@gnu.org.ua>.
26508
26509 2008-12-21  Bruno Haible  <bruno@clisp.org>
26510
26511         * MODULES.html.sh (Extended multibyte and wide character utilities
26512         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
26513         wcrtomb, wcsrtombs.
26514         (Support for systems lacking POSIX:2008): Add accept, bind, close,
26515         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
26516         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
26517         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
26518
26519 2008-12-21  Bruno Haible  <bruno@clisp.org>
26520
26521         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
26522
26523 2008-12-21  Bruno Haible  <bruno@clisp.org>
26524
26525         * modules/wcsnrtombs-tests: New file.
26526         * tests/test-wcsnrtombs1.sh: New file.
26527         * tests/test-wcsnrtombs2.sh: New file.
26528         * tests/test-wcsnrtombs3.sh: New file.
26529         * tests/test-wcsnrtombs4.sh: New file.
26530         * tests/test-wcsnrtombs.c: New file.
26531
26532         New module 'wcsnrtombs'.
26533         * lib/wchar.in.h (wcsnrtombs): New declaration.
26534         * lib/wcsnrtombs.c: New file.
26535         * lib/wcsrtombs-state.c: New file.
26536         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
26537         (internal_state): Remove variable.
26538         * m4/wcsnrtombs.m4: New file.
26539         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
26540         compilation units.
26541         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
26542         HAVE_WCSNRTOMBS.
26543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
26544         HAVE_WCSNRTOMBS.
26545         * modules/wcsnrtombs: New file.
26546         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
26547         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
26548
26549 2008-12-21  Bruno Haible  <bruno@clisp.org>
26550
26551         * modules/wcsrtombs-tests: New file.
26552         * tests/test-wcsrtombs1.sh: New file.
26553         * tests/test-wcsrtombs2.sh: New file.
26554         * tests/test-wcsrtombs3.sh: New file.
26555         * tests/test-wcsrtombs4.sh: New file.
26556         * tests/test-wcsrtombs.c: New file.
26557
26558         New module 'wcsrtombs'.
26559         * lib/wchar.in.h (wcsrtombs): New declaration.
26560         * lib/wcsrtombs.c: New file.
26561         * m4/wcsrtombs.m4: New file.
26562         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
26563         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
26564         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
26565         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
26566         * modules/wcsrtombs: New file.
26567         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
26568         bugs.
26569
26570 2008-12-21  Bruno Haible  <bruno@clisp.org>
26571
26572         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
26573         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
26574         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
26575         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
26576         if not correct.
26577         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
26578         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
26579         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26580         m4/locale-zh.m4, m4/codeset.m4.
26581         * doc/posix-functions/wcrtomb.texi: Document the bug.
26582
26583 2008-12-21  Bruno Haible  <bruno@clisp.org>
26584
26585         Work around a btowc() bug on IRIX 6.5.
26586         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
26587         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
26588         REPLACE_WTOBC if not.
26589         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
26590         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
26591         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
26592
26593 2008-12-21  Bruno Haible  <bruno@clisp.org>
26594
26595         * modules/wcrtomb-tests: New file.
26596         * tests/test-wcrtomb.sh: New file.
26597         * tests/test-wcrtomb.c: New file.
26598
26599         New module 'wcrtomb'.
26600         * lib/wchar.in.h (wcrtomb): New declaration.
26601         * lib/wcrtomb.c: New file.
26602         * m4/wcrtomb.m4: New file.
26603         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
26604         HAVE_WCRTOMB.
26605         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
26606         HAVE_WCRTOMB.
26607         * modules/wcrtomb: New file.
26608         * doc/posix-functions/wcrtomb.texi: Mention the new module.
26609
26610 2008-12-21  Bruno Haible  <bruno@clisp.org>
26611
26612         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
26613         * modules/mbsrtowcs (Files): Likewise.
26614         * modules/wctob (Files): Likewise.
26615         * modules/c-strcase-tests (Files): Likewise.
26616         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26617         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26618         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26619         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26620         * modules/vasnprintf-posix-tests (Files): Likewise.
26621
26622 2008-12-21  William Pursell  <bill.pursell@gmail.com>
26623
26624         gitlog-to-changelog: pass all command-line arguments to git-log
26625         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
26626         it is sometimes convenient to filter the commits in various ways.
26627         gitlog-to-changelog only allows --since to specify a start date,
26628         but git-log itself supports many other filtering mechanisms.
26629         At the moment, I want to filter by branch name.  Rather than
26630         adding a --branch option to gitlog-to-changelog, it seems more
26631         flexible to simply pass all options directly to git-log and let
26632         git do the work.  Notice that this effectively makes --since a
26633         redundant option for gitlog-to-changelog, but removing it would
26634         require current usage to change since calls would then require
26635         an additional '--'.
26636
26637 2008-12-21  Bruno Haible  <bruno@clisp.org>
26638
26639         * modules/mbsnrtowcs-tests: New file.
26640         * tests/test-mbsnrtowcs1.sh: New file.
26641         * tests/test-mbsnrtowcs2.sh: New file.
26642         * tests/test-mbsnrtowcs3.sh: New file.
26643         * tests/test-mbsnrtowcs4.sh: New file.
26644         * tests/test-mbsnrtowcs.c: New file.
26645
26646         New module 'mbsnrtowcs'.
26647         * lib/wchar.in.h (mbsnrtowcs): New declaration.
26648         * lib/mbsnrtowcs.c: New file.
26649         * lib/mbsrtowcs-state.c: New file.
26650         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
26651         (internal_state): Remove variable.
26652         * m4/mbsnrtowcs.m4: New file.
26653         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
26654         compilation units.
26655         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
26656         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26657         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
26658         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26659         * modules/mbsnrtowcs: New file.
26660         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
26661         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
26662         portability problem.
26663
26664 2008-12-21  Bruno Haible  <bruno@clisp.org>
26665
26666         Work around mbsrtowcs bug.
26667         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
26668         (gl_FUNC_MBSRTOWCS): Invoke it.
26669         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26670         m4/locale-zh.m4.
26671         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
26672
26673 2008-12-21  Bruno Haible  <bruno@clisp.org>
26674
26675         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
26676
26677 2008-12-21  Bruno Haible  <bruno@clisp.org>
26678
26679         Update doc for AIX.
26680         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
26681         16-bit wchar_t type.
26682         * doc/posix-functions/btowc.texi: Likewise.
26683         * doc/posix-functions/fgetwc.texi: Likewise.
26684         * doc/posix-functions/fgetws.texi: Likewise.
26685         * doc/posix-functions/fputwc.texi: Likewise.
26686         * doc/posix-functions/fputws.texi: Likewise.
26687         * doc/posix-functions/fwide.texi: Likewise.
26688         * doc/posix-functions/fwprintf.texi: Likewise.
26689         * doc/posix-functions/fwscanf.texi: Likewise.
26690         * doc/posix-functions/getwchar.texi: Likewise.
26691         * doc/posix-functions/getwc.texi: Likewise.
26692         * doc/posix-functions/iswalnum.texi: Likewise.
26693         * doc/posix-functions/iswalpha.texi: Likewise.
26694         * doc/posix-functions/iswblank.texi: Likewise.
26695         * doc/posix-functions/iswcntrl.texi: Likewise.
26696         * doc/posix-functions/iswctype.texi: Likewise.
26697         * doc/posix-functions/iswdigit.texi: Likewise.
26698         * doc/posix-functions/iswgraph.texi: Likewise.
26699         * doc/posix-functions/iswlower.texi: Likewise.
26700         * doc/posix-functions/iswprint.texi: Likewise.
26701         * doc/posix-functions/iswpunct.texi: Likewise.
26702         * doc/posix-functions/iswspace.texi: Likewise.
26703         * doc/posix-functions/iswupper.texi: Likewise.
26704         * doc/posix-functions/iswxdigit.texi: Likewise.
26705         * doc/posix-functions/mbrtowc.texi: Likewise.
26706         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26707         * doc/posix-functions/mbstowcs.texi: Likewise.
26708         * doc/posix-functions/mbtowc.texi: Likewise.
26709         * doc/posix-functions/putwchar.texi: Likewise.
26710         * doc/posix-functions/putwc.texi: Likewise.
26711         * doc/posix-functions/swprintf.texi: Likewise.
26712         * doc/posix-functions/tolower.texi: Likewise.
26713         * doc/posix-functions/toupper.texi: Likewise.
26714         * doc/posix-functions/towctrans.texi: Likewise.
26715         * doc/posix-functions/ungetwc.texi: Likewise.
26716         * doc/posix-functions/vswprintf.texi: Likewise.
26717         * doc/posix-functions/wcrtomb.texi: Likewise.
26718         * doc/posix-functions/wcscat.texi: Likewise.
26719         * doc/posix-functions/wcschr.texi: Likewise.
26720         * doc/posix-functions/wcscmp.texi: Likewise.
26721         * doc/posix-functions/wcscoll.texi: Likewise.
26722         * doc/posix-functions/wcscpy.texi: Likewise.
26723         * doc/posix-functions/wcscspn.texi: Likewise.
26724         * doc/posix-functions/wcsftime.texi: Likewise.
26725         * doc/posix-functions/wcslen.texi: Likewise.
26726         * doc/posix-functions/wcsncat.texi: Likewise.
26727         * doc/posix-functions/wcsncmp.texi: Likewise.
26728         * doc/posix-functions/wcsncpy.texi: Likewise.
26729         * doc/posix-functions/wcspbrk.texi: Likewise.
26730         * doc/posix-functions/wcsrchr.texi: Likewise.
26731         * doc/posix-functions/wcsrtombs.texi: Likewise.
26732         * doc/posix-functions/wcsspn.texi: Likewise.
26733         * doc/posix-functions/wcsstr.texi: Likewise.
26734         * doc/posix-functions/wcstod.texi: Likewise.
26735         * doc/posix-functions/wcstof.texi: Likewise.
26736         * doc/posix-functions/wcstoimax.texi: Likewise.
26737         * doc/posix-functions/wcstok.texi: Likewise.
26738         * doc/posix-functions/wcstold.texi: Likewise.
26739         * doc/posix-functions/wcstoll.texi: Likewise.
26740         * doc/posix-functions/wcstol.texi: Likewise.
26741         * doc/posix-functions/wcstombs.texi: Likewise.
26742         * doc/posix-functions/wcstoull.texi: Likewise.
26743         * doc/posix-functions/wcstoul.texi: Likewise.
26744         * doc/posix-functions/wcstoumax.texi: Likewise.
26745         * doc/posix-functions/wcswidth.texi: Likewise.
26746         * doc/posix-functions/wcsxfrm.texi: Likewise.
26747         * doc/posix-functions/wctob.texi: Likewise.
26748         * doc/posix-functions/wctomb.texi: Likewise.
26749         * doc/posix-functions/wctrans.texi: Likewise.
26750         * doc/posix-functions/wctype.texi: Likewise.
26751         * doc/posix-functions/wcwidth.texi: Likewise.
26752         * doc/posix-functions/wmemchr.texi: Likewise.
26753         * doc/posix-functions/wmemcmp.texi: Likewise.
26754         * doc/posix-functions/wmemcpy.texi: Likewise.
26755         * doc/posix-functions/wmemmove.texi: Likewise.
26756         * doc/posix-functions/wmemset.texi: Likewise.
26757         * doc/posix-functions/wprintf.texi: Likewise.
26758         * doc/posix-functions/wscanf.texi: Likewise.
26759
26760 2008-12-21  Bruno Haible  <bruno@clisp.org>
26761
26762         Update doc for HP-UX 11.11.
26763         * doc/posix-functions/btowc.texi: Clarify that the function is missing
26764         in HP-UX version 11.00, not in all versions of HP-UX 11.
26765         * doc/posix-functions/fwide.texi: Likewise.
26766         * doc/posix-functions/fwprintf.texi: Likewise.
26767         * doc/posix-functions/fwscanf.texi: Likewise.
26768         * doc/posix-functions/inet_ntop.texi: Likewise.
26769         * doc/posix-functions/inet_pton.texi: Likewise.
26770         * doc/posix-functions/mbrlen.texi: Likewise.
26771         * doc/posix-functions/mbrtowc.texi: Likewise.
26772         * doc/posix-functions/mbsinit.texi: Likewise.
26773         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26774         * doc/posix-functions/swprintf.texi: Likewise.
26775         * doc/posix-functions/swscanf.texi: Likewise.
26776         * doc/posix-functions/towctrans.texi: Likewise.
26777         * doc/posix-functions/vfwprintf.texi: Likewise.
26778         * doc/posix-functions/vswprintf.texi: Likewise.
26779         * doc/posix-functions/vwprintf.texi: Likewise.
26780         * doc/posix-functions/wcrtomb.texi: Likewise.
26781         * doc/posix-functions/wcsrtombs.texi: Likewise.
26782         * doc/posix-functions/wcsstr.texi: Likewise.
26783         * doc/posix-functions/wctob.texi: Likewise.
26784         * doc/posix-functions/wctrans.texi: Likewise.
26785         * doc/posix-functions/wmemchr.texi: Likewise.
26786         * doc/posix-functions/wmemcmp.texi: Likewise.
26787         * doc/posix-functions/wmemcpy.texi: Likewise.
26788         * doc/posix-functions/wmemmove.texi: Likewise.
26789         * doc/posix-functions/wmemset.texi: Likewise.
26790         * doc/posix-functions/wprintf.texi: Likewise.
26791         * doc/posix-functions/wscanf.texi: Likewise.
26792
26793 2008-12-21  Bruno Haible  <bruno@clisp.org>
26794
26795         Work around a portability problem.
26796         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
26797         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
26798
26799 2008-12-20  Bruno Haible  <bruno@clisp.org>
26800
26801         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
26802         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
26803         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
26804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
26805         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
26806
26807         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
26808         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
26809         set.
26810         (GNULIB_defined_mbstate_t): New macro.
26811         (mbsinit): Redefine if REPLACE_MBSINIT is set.
26812         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
26813         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
26814         reuses the system's mbrtowc function but works around the bugs.
26815         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
26816         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
26817         macros.
26818         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
26819         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
26820         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
26821         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
26822         REPLACE_MBSINIT if mbsinit needs to be overridden.
26823         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
26824         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26825         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
26826         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26827         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26828         m4/locale-zh.m4.
26829         (Depends): Add mbsinit.
26830         * modules/mbsinit (Depends): Add mbrtowc.
26831         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
26832
26833 2008-12-20  Bruno Haible  <bruno@clisp.org>
26834
26835         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
26836         so that there are no conversion errors on AIX.
26837         * tests/test-mbsrtowcs.c (main): LIkewise.
26838
26839 2008-12-20  Bruno Haible  <bruno@clisp.org>
26840
26841         Work around wctob bug on Solaris <= 9.
26842         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
26843         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
26844         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
26845         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
26846         * modules/wctob (Files): Add m4/locale-fr.m4.
26847         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
26848
26849 2008-12-20  Bruno Haible  <bruno@clisp.org>
26850
26851         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
26852         /dev/null.
26853         * tests/test-select-in.sh: Likewise.
26854         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26855
26856 2008-12-20  Bruno Haible  <bruno@clisp.org>
26857
26858         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
26859         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
26860         Cygwin 1.5.x.
26861
26862 2008-12-20  Bruno Haible  <bruno@clisp.org>
26863
26864         Ensure mbstate_t is defined on HP-UX 11.11.
26865         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
26866         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
26867         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
26868         AC_USE_SYSTEM_EXTENSIONS.
26869         * modules/fnmatch (Depends-on): Add extensions.
26870         * modules/mbrlen (Depends-on): Likewise.
26871         * modules/mbrtowc (Depends-on): Likewise.
26872         * modules/mbsinit (Depends-on): Likewise.
26873         * modules/mbsrtowcs (Depends-on): Likewise.
26874         * modules/mbswidth (Depends-on): Likewise.
26875         * modules/quotearg (Depends-on): Likewise.
26876         * modules/strftime (Depends-on): Likewise.
26877
26878 2008-12-20  Bruno Haible  <bruno@clisp.org>
26879
26880         Ensure wctob is declared on IRIX 6.5.
26881         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
26882         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
26883         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
26884         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
26885         of HAVE_WCTOB.
26886         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
26887         HAVE_WCTOB.
26888         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
26889
26890 2008-12-19  Bruno Haible  <bruno@clisp.org>
26891
26892         * modules/mbsrtowcs-tests: New file.
26893         * tests/test-mbsrtowcs1.sh: New file.
26894         * tests/test-mbsrtowcs2.sh: New file.
26895         * tests/test-mbsrtowcs3.sh: New file.
26896         * tests/test-mbsrtowcs4.sh: New file.
26897         * tests/test-mbsrtowcs.c: New file.
26898
26899         New module 'mbsrtowcs'.
26900         * lib/wchar.in.h (mbsrtowcs): New declaration.
26901         * lib/mbsrtowcs.c: New file.
26902         * m4/mbsrtowcs.m4: New file.
26903         * modules/mbsrtowcs: New file.
26904         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
26905         HAVE_MBSRTOWCS.
26906         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
26907         HAVE_MBSRTOWCS.
26908         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
26909
26910 2008-12-19  Bruno Haible  <bruno@clisp.org>
26911
26912         New module 'mbrlen'.
26913         * lib/wchar.in.h (mbrlen): New declaration.
26914         * lib/mbrlen.c: New file.
26915         * m4/mbrlen.m4: New file.
26916         * modules/mbrlen: New file.
26917         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
26918         HAVE_MBRLEN.
26919         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
26920         HAVE_MBRLEN.
26921         * doc/posix-functions/mbrlen.texi: Document the new module.
26922
26923 2008-12-19  Bruno Haible  <bruno@clisp.org>
26924
26925         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
26926         * modules/mbrtowc (Depends-on): Add verify.
26927         Suggested by Paul Eggert.
26928
26929 2008-12-18  Bruno Haible  <bruno@clisp.org>
26930
26931         * modules/mbsinit-tests: New file.
26932         * tests/test-mbsinit.sh: New file.
26933         * tests/test-mbsinit.c: New file.
26934
26935 2008-12-18  Bruno Haible  <bruno@clisp.org>
26936
26937         * modules/mbrtowc-tests: New file.
26938         * tests/test-mbrtowc1.sh: New file.
26939         * tests/test-mbrtowc2.sh: New file.
26940         * tests/test-mbrtowc3.sh: New file.
26941         * tests/test-mbrtowc4.sh: New file.
26942         * tests/test-mbrtowc.c: New file.
26943
26944         New module 'mbrtowc'.
26945         * lib/wchar.in.h (mbstate_t): Override when the system does not have
26946         mbsinit and mbrtowc.
26947         (mbrtowc): New declaration.
26948         * lib/mbrtowc.c: New file.
26949         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
26950         * modules/mbrtowc: New file.
26951         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
26952         HAVE_MBRTOWC.
26953         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
26954         HAVE_MBRTOWC.
26955         * doc/posix-functions/mbrtowc.texi: Document the new module.
26956
26957 2008-12-18  Bruno Haible  <bruno@clisp.org>
26958
26959         New module 'wctob'.
26960         * lib/wchar.in.h (wctob): New declaration.
26961         * lib/wctob.c: New file.
26962         * m4/wctob.m4: New file.
26963         * modules/wctob: New file.
26964         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
26965         HAVE_WCTOB.
26966         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
26967         * doc/posix-functions/wctob.texi: Document the new module.
26968
26969 2008-12-18  Bruno Haible  <bruno@clisp.org>
26970
26971         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
26972         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
26973
26974 2008-12-18  Simon Josefsson  <simon@josefsson.org>
26975
26976         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
26977         G. Christensen" <tgc@jupiterrise.com>.
26978
26979         * lib/flock.c: Need to include errno.h.  Reported by "Tom
26980         G. Christensen" <tgc@jupiterrise.com>.
26981
26982         * lib/flock.c: Need to include string.h.  Reported by "Tom
26983         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
26984         <ebb9@byu.net>.
26985
26986 2008-12-18  Bruno Haible  <bruno@clisp.org>
26987
26988         * m4/locale-ja.m4: New file, from GNU gettext.
26989
26990 2008-12-17  Bruno Haible  <bruno@clisp.org>
26991
26992         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
26993         Suggested by Eric Blake.
26994
26995 2008-12-17  Bruno Haible  <bruno@clisp.org>
26996
26997         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
26998
26999 2008-12-17  Bruno Haible  <bruno@clisp.org>
27000
27001         * lib/mbsinit.c: Include verify.h. Verify an assumption.
27002         * modules/mbsinit (Depends-on): Add verify.
27003         Suggested by Paul Eggert.
27004
27005 2008-12-17  Bruno Haible  <bruno@clisp.org>
27006
27007         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
27008         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
27009         gl_FUNC_MBRTOWC.
27010         * m4/mbiter.m4 (gl_MBITER): LIkewise.
27011         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
27012         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
27013         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
27014         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
27015         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
27016         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
27017         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
27018         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
27019         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
27020         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
27021         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
27022         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
27023         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
27024         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
27025         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27026         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
27027         * modules/trim (configure.ac): Likewise.
27028
27029 2008-12-17  Bruno Haible  <bruno@clisp.org>
27030
27031         * modules/btowc-tests: New file.
27032         * tests/test-btowc1.sh: New file.
27033         * tests/test-btowc2.sh: New file.
27034         * tests/test-btowc.c: New file.
27035
27036         New module 'btowc'.
27037         * lib/wchar.in.h (btowc): New declaration.
27038         * lib/btowc.c: New file.
27039         * m4/btowc.m4: New file.
27040         * modules/btowc: New file.
27041         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
27042         HAVE_BTOWC.
27043         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
27044         * doc/posix-functions/btowc.texi: Document the new module.
27045
27046 2008-12-17  Bruno Haible  <bruno@clisp.org>
27047
27048         New module 'mbsinit'.
27049         * lib/wchar.in.h (mbsinit): New declaration.
27050         * lib/mbsinit.c: New file.
27051         * m4/mbsinit.m4: New file.
27052         * modules/mbsinit: New file.
27053         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
27054         HAVE_MBSINIT.
27055         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
27056         HAVE_MBSINIT.
27057         * doc/posix-functions/mbsinit.texi: Document the new module.
27058
27059 2008-12-16  Bruno Haible  <bruno@clisp.org>
27060
27061         * lib/unistd.in.h: Add comment.
27062         * tests/test-environ.c: Don't include <stdlib.h>.
27063
27064 2008-12-16  Bruno Haible  <bruno@clisp.org>
27065
27066         * lib/parse-duration.h (parse_duration): Document return value
27067         convention.
27068         * lib/parse-duration.c: Include specification header first. Add
27069         comments.
27070         (_): Remove macro.
27071         (parse_year_month_day, parse_hour_minute_second): Move side effects
27072         outside of strchr call.
27073         (parse_non_iso8601): Move side effects outside of isspace call.
27074         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
27075         call.
27076
27077 2008-12-16  Bruno Haible  <bruno@clisp.org>
27078
27079         * tests/test-parse-duration.sh: Produce no output when the test
27080         succeeds.
27081
27082 2008-12-16  Bruno Haible  <bruno@clisp.org>
27083
27084         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
27085         expressions.
27086
27087 2008-12-15  Bruno Haible  <bruno@clisp.org>
27088
27089         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
27090         * doc/glibc-functions/flistxattr.texi: Likewise.
27091         * doc/glibc-functions/fopencookie.texi: Likewise.
27092         * doc/glibc-functions/fremovexattr.texi: Likewise.
27093         * doc/glibc-functions/fsetxattr.texi: Likewise.
27094         * doc/glibc-functions/getxattr.texi: Likewise.
27095         * doc/glibc-functions/lgetxattr.texi: Likewise.
27096         * doc/glibc-functions/listxattr.texi: Likewise.
27097         * doc/glibc-functions/llistxattr.texi: Likewise.
27098         * doc/glibc-functions/lremovexattr.texi: Likewise.
27099         * doc/glibc-functions/lsetxattr.texi: Likewise.
27100         * doc/glibc-functions/removexattr.texi: Likewise.
27101         * doc/glibc-functions/setxattr.texi: Likewise.
27102         * doc/posix-functions/open_memstream.texi: Likewise.
27103
27104 2008-12-15  Eric Blake  <ebb9@byu.net>
27105
27106         Update doc for cygwin 1.7.
27107         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
27108         functions.
27109         * doc/posix-functions/fchmodat.texi: Likewise.
27110         * doc/posix-functions/fchownat.texi: Likewise.
27111         * doc/posix-functions/fdopendir.texi: Likewise.
27112         * doc/posix-functions/fmemopen.texi: Likewise.
27113         * doc/posix-functions/freeaddrinfo.texi: Likewise.
27114         * doc/posix-functions/fstatat.texi: Likewise.
27115         * doc/posix-functions/futimens.texi: Likewise.
27116         * doc/posix-functions/gai_strerror.texi: Likewise.
27117         * doc/posix-functions/getaddrinfo.texi: Likewise.
27118         * doc/posix-functions/getnameinfo.texi: Likewise.
27119         * doc/posix-functions/if_freenameindex.texi: Likewise.
27120         * doc/posix-functions/if_indextoname.texi: Likewise.
27121         * doc/posix-functions/if_nameindex.texi: Likewise.
27122         * doc/posix-functions/if_nametoindex.texi: Likewise.
27123         * doc/posix-functions/insque.texi: Likewise.
27124         * doc/posix-functions/linkat.texi: Likewise.
27125         * doc/posix-functions/llrint.texi: Likewise.
27126         * doc/posix-functions/llrintf.texi: Likewise.
27127         * doc/posix-functions/llrintl.texi: Likewise.
27128         * doc/posix-functions/lockf.texi: Likewise.
27129         * doc/posix-functions/lrintl.texi: Likewise.
27130         * doc/posix-functions/mkdirat.texi: Likewise.
27131         * doc/posix-functions/mkfifoat.texi: Likewise.
27132         * doc/posix-functions/mknodat.texi: Likewise.
27133         * doc/posix-functions/mq_close.texi: Likewise.
27134         * doc/posix-functions/mq_getattr.texi: Likewise.
27135         * doc/posix-functions/mq_notify.texi: Likewise.
27136         * doc/posix-functions/mq_open.texi: Likewise.
27137         * doc/posix-functions/mq_receive.texi: Likewise.
27138         * doc/posix-functions/mq_send.texi: Likewise.
27139         * doc/posix-functions/mq_setattr.texi: Likewise.
27140         * doc/posix-functions/mq_timedreceive.texi: Likewise.
27141         * doc/posix-functions/mq_timedsend.texi: Likewise.
27142         * doc/posix-functions/mq_unlink.texi: Likewise.
27143         * doc/posix-functions/open_memstream.texi: Likewise.
27144         * doc/posix-functions/openat.texi: Likewise.
27145         * doc/posix-functions/posix_fadvise.texi: Likewise.
27146         * doc/posix-functions/posix_fallocate.texi: Likewise.
27147         * doc/posix-functions/posix_madvise.texi: Likewise.
27148         * doc/posix-functions/posix_memalign.texi: Likewise.
27149         * doc/posix-functions/posix_openpt.texi: Likewise.
27150         * doc/posix-functions/readlinkat.texi: Likewise.
27151         * doc/posix-functions/remque.texi: Likewise.
27152         * doc/posix-functions/renameat.texi: Likewise.
27153         * doc/posix-functions/rintl.texi: Likewise.
27154         * doc/posix-functions/sem_unlink.texi: Likewise.
27155         * doc/posix-functions/shm_open.texi: Likewise.
27156         * doc/posix-functions/shm_unlink.texi: Likewise.
27157         * doc/posix-functions/signgam.texi: Likewise.
27158         * doc/posix-functions/sigset.texi: Likewise.
27159         * doc/posix-functions/stpcpy.texi: Likewise.
27160         * doc/posix-functions/stpncpy.texi: Likewise.
27161         * doc/posix-functions/strerror.texi: Likewise.
27162         * doc/posix-functions/strtod.texi: Likewise.
27163         * doc/posix-functions/symlinkat.texi: Likewise.
27164         * doc/posix-functions/unlinkat.texi: Likewise.
27165         * doc/posix-functions/utimensat.texi: Likewise.
27166         * doc/glibc-functions/bindresvport.texi: Likewise.
27167         * doc/glibc-functions/dn_expand.texi: Likewise.
27168         * doc/glibc-functions/exp10.texi: Likewise.
27169         * doc/glibc-functions/exp10f.texi: Likewise.
27170         * doc/glibc-functions/fgetxattr.texi: Likewise.
27171         * doc/glibc-functions/flistxattr.texi: Likewise.
27172         * doc/glibc-functions/fopencookie.texi: Likewise.
27173         * doc/glibc-functions/freeifaddrs.texi: Likewise.
27174         * doc/glibc-functions/fremovexattr.texi: Likewise.
27175         * doc/glibc-functions/fsetxattr.texi: Likewise.
27176         * doc/glibc-functions/getifaddrs.texi: Likewise.
27177         * doc/glibc-functions/getxattr.texi: Likewise.
27178         * doc/glibc-functions/lgetxattr.texi: Likewise.
27179         * doc/glibc-functions/listxattr.texi: Likewise.
27180         * doc/glibc-functions/llistxattr.texi: Likewise.
27181         * doc/glibc-functions/lremovexattr.texi: Likewise.
27182         * doc/glibc-functions/lsetxattr.texi: Likewise.
27183         * doc/glibc-functions/pow10.texi: Likewise.
27184         * doc/glibc-functions/pow10f.texi: Likewise.
27185         * doc/glibc-functions/rcmd_af.texi: Likewise.
27186         * doc/glibc-functions/removexattr.texi: Likewise.
27187         * doc/glibc-functions/res_init.texi: Likewise.
27188         * doc/glibc-functions/res_mkquery.texi: Likewise.
27189         * doc/glibc-functions/res_query.texi: Likewise.
27190         * doc/glibc-functions/res_querydomain.texi: Likewise.
27191         * doc/glibc-functions/res_send.texi: Likewise.
27192         * doc/glibc-functions/rresvport_af.texi: Likewise.
27193         * doc/glibc-functions/setxattr.texi: Likewise.
27194         * doc/glibc-functions/strcasestr.texi: Likewise.
27195
27196 2008-12-15  Bruno Haible  <bruno@clisp.org>
27197
27198         Fix compilation error on OSF/1 4.0.
27199         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
27200         <sys/time.h>, simply delegate to the system header.
27201         Reported by Daniel Richard G. <oss@teragram.com>.
27202
27203 2008-12-15  Bruno Haible  <bruno@clisp.org>
27204
27205         * doc/posix-functions/openat.texi: Mention the 'openat' module.
27206         * doc/posix-functions/fchmodat.texi: Likewise.
27207         * doc/posix-functions/fchownat.texi: Likewise.
27208         * doc/posix-functions/fdopendir.texi: Likewise.
27209         * doc/posix-functions/fstatat.texi: Likewise.
27210         * doc/posix-functions/mkdirat.texi: Likewise.
27211         * doc/posix-functions/unlinkat.texi: Likewise.
27212
27213 2008-12-14  Bruno Haible  <bruno@clisp.org>
27214
27215         Update doc for POSIX:2008.
27216         * doc/posix-functions/faccessat.texi: New file.
27217         * doc/posix-functions/fchmodat.texi: New file.
27218         * doc/posix-functions/fchownat.texi: New file.
27219         * doc/posix-functions/fdopendir.texi: New file.
27220         * doc/posix-functions/fstatat.texi: New file.
27221         * doc/posix-functions/futimens.texi: New file.
27222         * doc/posix-functions/linkat.texi: New file.
27223         * doc/posix-functions/mkdirat.texi: New file.
27224         * doc/posix-functions/mkfifoat.texi: New file.
27225         * doc/posix-functions/mknodat.texi: New file.
27226         * doc/posix-functions/open_wmemstream.texi: New file.
27227         * doc/posix-functions/openat.texi: New file.
27228         * doc/posix-functions/psiginfo.texi: New file.
27229         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
27230         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
27231         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
27232         * doc/posix-functions/readlinkat.texi: New file.
27233         * doc/posix-functions/renameat.texi: New file.
27234         * doc/posix-functions/strerror_l.texi: New file.
27235         * doc/posix-functions/symlinkat.texi: New file.
27236         * doc/posix-functions/unlinkat.texi: New file.
27237         * doc/posix-functions/utimensat.texi: New file.
27238         * doc/gnulib.texi (Function Substitutes): Add these subsections.
27239
27240 2008-12-14  Bruno Haible  <bruno@clisp.org>
27241
27242         Update doc for POSIX:2008.
27243         * doc/posix-functions/alphasort.texi: Renamed from
27244         doc/glibc-functions/alphasort.texi.
27245         * doc/posix-functions/dirfd.texi: Renamed from
27246         doc/glibc-functions/dirfd.texi.
27247         * doc/posix-functions/dprintf.texi: Renamed from
27248         doc/glibc-functions/dprintf.texi.
27249         * doc/posix-functions/duplocale.texi: Renamed from
27250         doc/glibc-functions/duplocale.texi.
27251         * doc/posix-functions/fexecve.texi: Renamed from
27252         doc/glibc-functions/fexecve.texi.
27253         * doc/posix-functions/fmemopen.texi: Renamed from
27254         doc/glibc-functions/fmemopen.texi.
27255         * doc/posix-functions/freelocale.texi: Renamed from
27256         doc/glibc-functions/freelocale.texi.
27257         * doc/posix-functions/getdate_err.texi: Renamed from
27258         doc/glibc-functions/getdate_err.texi.
27259         * doc/posix-functions/isalnum_l.texi: Renamed from
27260         doc/glibc-functions/isalnum_l.texi.
27261         * doc/posix-functions/isalpha_l.texi: Renamed from
27262         doc/glibc-functions/isalpha_l.texi.
27263         * doc/posix-functions/isblank_l.texi: Renamed from
27264         doc/glibc-functions/isblank_l.texi.
27265         * doc/posix-functions/iscntrl_l.texi: Renamed from
27266         doc/glibc-functions/iscntrl_l.texi.
27267         * doc/posix-functions/isdigit_l.texi: Renamed from
27268         doc/glibc-functions/isdigit_l.texi.
27269         * doc/posix-functions/isgraph_l.texi: Renamed from
27270         doc/glibc-functions/isgraph_l.texi.
27271         * doc/posix-functions/islower_l.texi: Renamed from
27272         doc/glibc-functions/islower_l.texi.
27273         * doc/posix-functions/isprint_l.texi: Renamed from
27274         doc/glibc-functions/isprint_l.texi.
27275         * doc/posix-functions/ispunct_l.texi: Renamed from
27276         doc/glibc-functions/ispunct_l.texi.
27277         * doc/posix-functions/isspace_l.texi: Renamed from
27278         doc/glibc-functions/isspace_l.texi.
27279         * doc/posix-functions/isupper_l.texi: Renamed from
27280         doc/glibc-functions/isupper_l.texi.
27281         * doc/posix-functions/iswalnum_l.texi: Renamed from
27282         doc/glibc-functions/iswalnum_l.texi.
27283         * doc/posix-functions/iswalpha_l.texi: Renamed from
27284         doc/glibc-functions/iswalpha_l.texi.
27285         * doc/posix-functions/iswblank_l.texi: Renamed from
27286         doc/glibc-functions/iswblank_l.texi.
27287         * doc/posix-functions/iswcntrl_l.texi: Renamed from
27288         doc/glibc-functions/iswcntrl_l.texi.
27289         * doc/posix-functions/iswctype_l.texi: Renamed from
27290         doc/glibc-functions/iswctype_l.texi.
27291         * doc/posix-functions/iswdigit_l.texi: Renamed from
27292         doc/glibc-functions/iswdigit_l.texi.
27293         * doc/posix-functions/iswgraph_l.texi: Renamed from
27294         doc/glibc-functions/iswgraph_l.texi.
27295         * doc/posix-functions/iswlower_l.texi: Renamed from
27296         doc/glibc-functions/iswlower_l.texi.
27297         * doc/posix-functions/iswprint_l.texi: Renamed from
27298         doc/glibc-functions/iswprint_l.texi.
27299         * doc/posix-functions/iswpunct_l.texi: Renamed from
27300         doc/glibc-functions/iswpunct_l.texi.
27301         * doc/posix-functions/iswspace_l.texi: Renamed from
27302         doc/glibc-functions/iswspace_l.texi.
27303         * doc/posix-functions/iswupper_l.texi: Renamed from
27304         doc/glibc-functions/iswupper_l.texi.
27305         * doc/posix-functions/iswxdigit_l.texi: Renamed from
27306         doc/glibc-functions/iswxdigit_l.texi.
27307         * doc/posix-functions/isxdigit_l.texi: Renamed from
27308         doc/glibc-functions/isxdigit_l.texi.
27309         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
27310         doc/glibc-functions/mbsnrtowcs.texi.
27311         * doc/posix-functions/mkdtemp.texi: Renamed from
27312         doc/glibc-functions/mkdtemp.texi.
27313         * doc/posix-functions/newlocale.texi: Renamed from
27314         doc/glibc-functions/newlocale.texi.
27315         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
27316         doc/glibc-functions/nl_langinfo_l.texi.
27317         * doc/posix-functions/open_memstream.texi: Renamed from
27318         doc/glibc-functions/open_memstream.texi.
27319         * doc/posix-functions/opterr.texi: Renamed from
27320         doc/glibc-functions/opterr.texi.
27321         * doc/posix-functions/optind.texi: Renamed from
27322         doc/glibc-functions/optind.texi.
27323         * doc/posix-functions/optopt.texi: Renamed from
27324         doc/glibc-functions/optopt.texi.
27325         * doc/posix-functions/psignal.texi: Renamed from
27326         doc/glibc-functions/psignal.texi.
27327         * doc/posix-functions/scandir.texi: Renamed from
27328         doc/glibc-functions/scandir.texi.
27329         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
27330         doc/glibc-functions/sched_get_priority_min.texi.
27331         * doc/posix-functions/signgam.texi: Renamed from
27332         doc/glibc-functions/signgam.texi.
27333         * doc/posix-functions/stpcpy.texi: Renamed from
27334         doc/glibc-functions/stpcpy.texi.
27335         * doc/posix-functions/stpncpy.texi: Renamed from
27336         doc/glibc-functions/stpncpy.texi.
27337         * doc/posix-functions/strcasecmp_l.texi: Renamed from
27338         doc/glibc-functions/strcasecmp_l.texi.
27339         * doc/posix-functions/strcoll_l.texi: Renamed from
27340         doc/glibc-functions/strcoll_l.texi.
27341         * doc/posix-functions/strfmon_l.texi: Renamed from
27342         doc/glibc-functions/strfmon_l.texi.
27343         * doc/posix-functions/strftime_l.texi: Renamed from
27344         doc/glibc-functions/strftime_l.texi.
27345         * doc/posix-functions/strncasecmp_l.texi: Renamed from
27346         doc/glibc-functions/strncasecmp_l.texi.
27347         * doc/posix-functions/strndup.texi: Renamed from
27348         doc/glibc-functions/strndup.texi.
27349         * doc/posix-functions/strnlen.texi: Renamed from
27350         doc/glibc-functions/strnlen.texi.
27351         * doc/posix-functions/strsignal.texi: Renamed from
27352         doc/glibc-functions/strsignal.texi.
27353         * doc/posix-functions/strxfrm_l.texi: Renamed from
27354         doc/glibc-functions/strxfrm_l.texi.
27355         * doc/posix-functions/timer_gettime.texi: Renamed from
27356         doc/glibc-functions/timer_gettime.texi.
27357         * doc/posix-functions/tolower_l.texi: Renamed from
27358         doc/glibc-functions/tolower_l.texi.
27359         * doc/posix-functions/toupper_l.texi: Renamed from
27360         doc/glibc-functions/toupper_l.texi.
27361         * doc/posix-functions/towctrans_l.texi: Renamed from
27362         doc/glibc-functions/towctrans_l.texi.
27363         * doc/posix-functions/towlower_l.texi: Renamed from
27364         doc/glibc-functions/towlower_l.texi.
27365         * doc/posix-functions/towupper_l.texi: Renamed from
27366         doc/glibc-functions/towupper_l.texi.
27367         * doc/posix-functions/uselocale.texi: Renamed from
27368         doc/glibc-functions/uselocale.texi.
27369         * doc/posix-functions/vdprintf.texi: Renamed from
27370         doc/glibc-functions/vdprintf.texi.
27371         * doc/posix-functions/wcpcpy.texi:
27372         Renamed from doc/glibc-functions/wcpcpy.texi.
27373         * doc/posix-functions/wcpncpy.texi: Renamed from
27374         doc/glibc-functions/wcpncpy.texi.
27375         * doc/posix-functions/wcscasecmp.texi: Renamed from
27376         doc/glibc-functions/wcscasecmp.texi.
27377         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
27378         doc/glibc-functions/wcscasecmp_l.texi.
27379         * doc/posix-functions/wcscoll_l.texi: Renamed from
27380         doc/glibc-functions/wcscoll_l.texi.
27381         * doc/posix-functions/wcsdup.texi: Renamed from
27382         doc/glibc-functions/wcsdup.texi.
27383         * doc/posix-functions/wcsncasecmp.texi: Renamed from
27384         doc/glibc-functions/wcsncasecmp.texi.
27385         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
27386         doc/glibc-functions/wcsncasecmp_l.texi.
27387         * doc/posix-functions/wcsnlen.texi: Renamed from
27388         doc/glibc-functions/wcsnlen.texi.
27389         * doc/posix-functions/wcsnrtombs.texi: Renamed from
27390         doc/glibc-functions/wcsnrtombs.texi.
27391         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
27392         doc/glibc-functions/wcsxfrm_l.texi.
27393         * doc/posix-functions/wctrans_l.texi: Renamed from
27394         doc/glibc-functions/wctrans_l.texi.
27395         * doc/posix-functions/wctype_l.texi: Renamed from
27396         doc/glibc-functions/wctype_l.texi.
27397         * doc/gnulib.texi (Function Substitutes): Add these subsections.
27398         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
27399         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
27400         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
27401         these subsections.
27402         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
27403         Remove sections.
27404
27405 2008-12-14  Bruno Haible  <bruno@clisp.org>
27406
27407         Update doc for POSIX:2008.
27408         * doc/posix-functions/*.texi: Update URL of POSIX specification.
27409
27410 2008-12-14  Bruno Haible  <bruno@clisp.org>
27411
27412         Update doc for POSIX:2008.
27413         * doc/pastposix-functions/bcmp.texi: Renamed from
27414         doc/posix-functions/bcmp.texi.
27415         * doc/pastposix-functions/bcopy.texi: Renamed from
27416         doc/posix-functions/bcopy.texi.
27417         * doc/pastposix-functions/bsd_signal.texi: Renamed from
27418         doc/posix-functions/bsd_signal.texi.
27419         * doc/pastposix-functions/bzero.texi: Renamed from
27420         doc/posix-functions/bzero.texi.
27421         * doc/pastposix-functions/ecvt.texi: Renamed from
27422         doc/posix-functions/ecvt.texi.
27423         * doc/pastposix-functions/fcvt.texi: Renamed from
27424         doc/posix-functions/fcvt.texi.
27425         * doc/pastposix-functions/ftime.texi: Renamed from
27426         doc/posix-functions/ftime.texi.
27427         * doc/pastposix-functions/gcvt.texi: Renamed from
27428         doc/posix-functions/gcvt.texi.
27429         * doc/pastposix-functions/getcontext.texi: Renamed from
27430         doc/posix-functions/getcontext.texi.
27431         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
27432         doc/posix-functions/gethostbyaddr.texi.
27433         * doc/pastposix-functions/gethostbyname.texi: Renamed from
27434         doc/posix-functions/gethostbyname.texi.
27435         * doc/pastposix-functions/getwd.texi: Renamed from
27436         doc/posix-functions/getwd.texi.
27437         * doc/pastposix-functions/h_errno.texi: Renamed from
27438         doc/posix-functions/h_errno.texi.
27439         * doc/pastposix-functions/index.texi: Renamed from
27440         doc/posix-functions/index.texi.
27441         * doc/pastposix-functions/makecontext.texi: Renamed from
27442         doc/posix-functions/makecontext.texi.
27443         * doc/pastposix-functions/mktemp.texi: Renamed from
27444         doc/posix-functions/mktemp.texi.
27445         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
27446         doc/posix-functions/pthread_attr_getstackaddr.texi.
27447         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
27448         doc/posix-functions/pthread_attr_setstackaddr.texi.
27449         * doc/pastposix-functions/rindex.texi: Renamed from
27450         doc/posix-functions/rindex.texi.
27451         * doc/pastposix-functions/scalb.texi: Renamed from
27452         doc/posix-functions/scalb.texi.
27453         * doc/pastposix-functions/setcontext.texi: Renamed from
27454         doc/posix-functions/setcontext.texi.
27455         * doc/pastposix-functions/swapcontext.texi: Renamed from
27456         doc/posix-functions/swapcontext.texi.
27457         * doc/pastposix-functions/ualarm.texi: Renamed from
27458         doc/posix-functions/ualarm.texi.
27459         * doc/pastposix-functions/usleep.texi: Renamed from
27460         doc/posix-functions/usleep.texi.
27461         * doc/pastposix-functions/vfork.texi: Renamed from
27462         doc/posix-functions/vfork.texi.
27463         * doc/pastposix-functions/wcswcs.texi: Renamed from
27464         doc/posix-functions/wcswcs.texi.
27465         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
27466         (Function Substitutes): Update.
27467
27468 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27469
27470         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
27471         m4/strerror.m4.
27472
27473 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27474             Bruno Haible  <bruno@clisp.org>
27475
27476         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
27477
27478 2008-12-13  Bruno Haible  <bruno@clisp.org>
27479
27480         * modules/strtoull (Depends-on): Remove unistd.
27481
27482 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27483
27484         * modules/strtoull (Depends-on): Add stdlib.
27485
27486 2008-12-11  Simon Josefsson  <simon@josefsson.org>
27487
27488         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
27489
27490 2008-12-10  Jim Meyering  <meyering@redhat.com>
27491
27492         gl_ASSERT: don't say assertions are disabled when they're not
27493         * m4/assert.m4 (gl_ASSERT): Do not make configure report
27494         "checking whether to enable assertions... no", when they are in
27495         fact enabled.  This is solely a bug in the output of configure.
27496         In spite of saying "no", NDEBUG was not defined in that case.
27497         Also, as noted by Eric Blake, leave assertions enabled upon
27498         --enable-assert=INVALID.
27499
27500 2008-12-10  Bruno Haible  <bruno@clisp.org>
27501
27502         Change MODULES.html to refer to POSIX:2008 where possible.
27503         * MODULES.html.sh (POSIX2008_URL): New variable.
27504         (posix_headers): Remove sys/timeb, ucontext.
27505         (posix2001_headers): New variable.
27506         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
27507         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
27508         index, makecontext, mktemp, pthread_attr_getstackaddr,
27509         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
27510         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
27511         (posix2001_functions): New variable.
27512         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
27513         otherwise.
27514
27515 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27516
27517         add missing include to parse-duration.c
27518         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
27519         * modules/parse-duration (Depends-on): Add xalloc.
27520
27521         fix sed script reading maint.mk
27522         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
27523         (syntax-check-rules): Use it.
27524
27525 2008-12-09  Bruno Haible  <bruno@clisp.org>
27526
27527         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
27528         MacOS X 10.4/PowerPC.
27529         Reported by Simon Josefsson.
27530
27531 2008-12-08  Jim Meyering  <meyering@redhat.com>
27532
27533         work around mingw's lack of some S_IF definitions
27534         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
27535         Reported by Simon Josefsson.
27536
27537 2008-12-08  Bruno Haible  <bruno@clisp.org>
27538
27539         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
27540         applied to variables. Needed on MacOS X 10.4/PowerPC.
27541         Reported by Simon Josefsson.
27542
27543 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
27544         and Eric Blake  <ebb9@byu.net>
27545
27546         assert: honor --enable-assert
27547         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
27548         order to honor --enable-assert, rather than treating it as a
27549         synonym for --disable-assert.
27550
27551 2008-12-08  Jim Meyering  <meyering@redhat.com>
27552
27553         * lib/posixtm.c: Remove now-useless declaration of mktime.
27554
27555         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
27556
27557 2008-12-07  Bruno Haible  <bruno@clisp.org>
27558
27559         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
27560         test_once): Mark functions as static.
27561         * tests/test-tls.c (test_tls): Likewise.
27562
27563 2008-12-07  Bruno Haible  <bruno@clisp.org>
27564
27565         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
27566         iconv_register_autodetect.
27567
27568 2008-12-07  Jim Meyering  <meyering@redhat.com>
27569
27570         posixtm.c: avoid a warning
27571         * lib/posixtm.c (posixtime): Don't initialize tm0.
27572         It's no longer needed to placate gcc4's -Wuninitialized,
27573         and the attempt to placate would elicit a new warning.
27574
27575         unicodeio.c: mark unused parameters
27576         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
27577         (fallback_failure_callback): Likewise.
27578
27579 2008-12-07  Bruno Haible  <bruno@clisp.org>
27580
27581         * gnulib-tool (func_create_testdir): When building the tests
27582         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
27583         Reported by Simon Josefsson.
27584
27585 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27586
27587         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
27588
27589 2008-12-06  Bruno Haible  <bruno@clisp.org>
27590
27591         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
27592         Suggested by Eric Blake.
27593
27594 2008-12-06  Bruno Haible  <bruno@clisp.org>
27595
27596         Fix a c-stack test failure on MacOS X.
27597         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
27598         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
27599         handler for SIGBUS as well.
27600         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
27601         install a signal handler for SIGBUS as well.
27602         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
27603
27604 2008-12-06  Bruno Haible  <bruno@clisp.org>
27605
27606         Advocacy documentation.
27607         * doc/gnulib-intro.texi (Benefits): New section.
27608         * doc/gnulib.texi: Update.
27609
27610 2008-12-06  Bruno Haible  <bruno@clisp.org>
27611
27612         Document the 'manywarnings' module.
27613         * doc/manywarnings.texi: New file.
27614         * doc/gnulib.texi: Include it.
27615
27616 2008-12-05  Eric Blake  <ebb9@byu.net>
27617
27618         tests: silence some gcc warnings
27619         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
27620         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
27621         type mismatches.
27622
27623 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27624             Bruno Haible  <bruno@clisp.org>
27625
27626         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
27627
27628 2008-11-29  Jim Meyering  <meyering@redhat.com>
27629
27630         unicodeio.c: mark unused parameters
27631         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
27632         (fallback_failure_callback): Likewise.
27633
27634         fts: fix a thinko
27635         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
27636         (set_stat_type): Return S_IF*-valued "type" directly.
27637         Prompted by James Youngman's spotting a related bug.
27638         Confirmed by further testing through find.
27639
27640         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
27641         * lib/fts.c (D_TYPE): Define.
27642         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
27643         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
27644         (s_ifmt_shift_bits): New function.
27645         (set_stat_type): New function.
27646         (fts_build): When not calling fts_stat, call set_stat_type
27647         to propagate dirent.d_type info to fts_read caller.
27648         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
27649         fts_statp->st_mode type information may be valid.
27650
27651 2008-11-28  Simon Josefsson  <simon@josefsson.org>
27652
27653         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
27654         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
27655         <sds@gnu.org>.
27656
27657 2008-11-20  Bruno Haible  <bruno@clisp.org>
27658
27659         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
27660         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
27661         INCLUDE_NEXT.
27662         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
27663         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
27664         * modules/math (Makefile.am): Substitute
27665         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
27666         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27667
27668 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
27669             Bruno Haible  <bruno@clisp.org>
27670
27671         * lib/stdint.in.h: Define all type macros so that their expansion is
27672         a single typedef'ed token. Fixes a compilation failure in Boost which
27673         does "using ::int8_t;".
27674
27675 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27676
27677         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
27678         gl_MANYWARN_ALL_GCC.
27679         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
27680         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
27681         * modules/manywarnings: New file.
27682         * MODULES.html.sh: Mention manywarnings module.
27683
27684 2008-11-18  Bruno Haible  <bruno@clisp.org>
27685
27686         * doc/gnulib-tool.texi (Unit tests): New section.
27687
27688 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27689
27690         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
27691         paths like 'lib/po/foo.po'.
27692
27693 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27694
27695         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
27696         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
27697
27698 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27699
27700         * m4/warnings.m4: Use CPPFLAGS to really check whether the
27701         parameter works.
27702
27703 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27704
27705         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
27706
27707 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27708
27709         * modules/parse-duration-tests: New file.
27710         * tests/test-parse-duration.sh: New file.
27711         * tests/test-parse-duration.c: New file.
27712
27713         New module 'parse-duration'.
27714         * lib/parse-duration.h: New file.
27715         * lib/parse-duration.c: New file.
27716         * modules/parse-duration: New file.
27717
27718 2008-11-17  Bruno Haible  <bruno@clisp.org>
27719
27720         * tests/test-select-out.sh: Comment out the first pipe test.
27721         Reported by Simon Josefsson.
27722
27723 2008-11-17  Bruno Haible  <bruno@clisp.org>
27724
27725         * modules/getaddrinfo (Depends-on): Add servent, hostent.
27726         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
27727         gl_HOSTENT.
27728
27729 2008-11-17  Bruno Haible  <bruno@clisp.org>
27730
27731         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
27732         -lnetwork and -lnet. Needed for Haiku and BeOS.
27733
27734 2008-11-16  Bruno Haible  <bruno@clisp.org>
27735
27736         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
27737
27738 2008-11-16  Bruno Haible  <bruno@clisp.org>
27739
27740         Avoid test failure on Haiku.
27741         * tests/test-fsync.c: Include <errno.h>.
27742         (main): Don't require that fsync (0) fails.
27743
27744 2008-11-15  Bruno Haible  <bruno@clisp.org>
27745
27746         New module 'hostent'.
27747         * modules/hostent: New file.
27748         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
27749
27750 2008-11-15  Bruno Haible  <bruno@clisp.org>
27751
27752         New module 'servent'.
27753         * modules/servent: New file.
27754         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
27755
27756 2008-11-15  Bruno Haible  <bruno@clisp.org>
27757
27758         Avoid generating same test program with two different rules.
27759         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
27760         test-frexp to test-frexp-nolibm.
27761         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
27762         test-frexpl to test-frexpl-nolibm.
27763
27764 2008-11-15  Bruno Haible  <bruno@clisp.org>
27765
27766         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
27767         $(FREXPL_LIBM).
27768
27769 2008-11-15  Bruno Haible  <bruno@clisp.org>
27770
27771         * lib/netdb.in.h: Activate the definitions also when the system's
27772         <netdb.h> has 'struct addrinfo'.
27773         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
27774         EAI_OVERFLOW or AI_NUMERICSERV.
27775         * doc/posix-headers/netdb.texi: Document the problem.
27776
27777 2008-11-15  Bruno Haible  <bruno@clisp.org>
27778
27779         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
27780
27781         Make the 'sched' module work on platforms where <sched.h> exists but
27782         is incomplete (such as Haiku).
27783         * lib/sched.in.h; Include the system's <sched.h> if it exists.
27784         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
27785         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
27786         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
27787         HAVE_STRUCT_SCHED_PARAM.
27788         * modules/sched (Depends-on): Add include_next.
27789         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
27790         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
27791         * doc/posix-headers/sched.texi: Document the issue.
27792
27793 2008-11-13  Jim Meyering  <meyering@redhat.com>
27794
27795         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
27796         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
27797         test would fail due to the difference in the Report bugs to ...
27798         line.  The expected address is empty, "<>", while the actual
27799         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
27800
27801 2008-11-12  Bruno Haible  <bruno@clisp.org>
27802
27803         lstat: don't compile lstat.c on systems lacking lstat
27804         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
27805         which don't have lstat; this is handled by lib/sys_stat.in.h already.
27806         Reported by Daniel P. Berrange via Jim Meyering.
27807
27808 2008-11-12  Jim Meyering  <meyering@redhat.com>
27809
27810         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
27811
27812 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27813
27814         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
27815         instead.
27816
27817 2008-11-12  Bruno Haible  <bruno@clisp.org>
27818
27819         * lib/unicodeio.c: Include unistr.h.
27820         (utf8_wctomb): Remove function.
27821         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
27822
27823 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27824
27825         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
27826         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
27827         <bruno@clisp.org>.
27828         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
27829
27830 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27831
27832         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
27833         * doc/gnulib.texi: Add section for warnings.
27834
27835 2008-11-11  Bruno Haible  <bruno@clisp.org>
27836
27837         * lib/sockets.h: Add a comment.
27838
27839 2008-11-11  Karl Berry  <karl@gnu.org>
27840
27841         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
27842
27843 2008-11-11  Eric Blake  <ebb9@byu.net>
27844
27845         fdl.texi: avoid git symlinks
27846         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
27847
27848 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27849
27850         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
27851
27852 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27853
27854         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
27855         (gl_WARN_ADD): Substitute $2 if literal.
27856
27857 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27858
27859         * m4/warning.m4: Remove.
27860
27861 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27862
27863         * m4/warnings.m4: Almost complete rewrite. :-)
27864
27865 2008-11-10  Simon Josefsson  <simon@josefsson.org>
27866
27867         * modules/warnings: New module.
27868         * m4/warnings.m4: New file.
27869         * MODULES.html.sh: Mention warnings module.
27870         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
27871         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27872
27873 2008-11-10  Eric Blake  <ebb9@byu.net>
27874
27875         fdl.texi: make a symlink to the latest version
27876         * doc/standards.texi: Revert today's earlier change.
27877         * doc/fdl-1.2.texi: Rename from old fdl.texi...
27878         * doc/fdl.texi: ...and replace this with a symlink to the newer
27879         fdl-1.3.texi.
27880
27881 2008-11-10  Bruno Haible  <bruno@clisp.org>
27882
27883         * tests/test-select-fd.c (main): Accept the result file name as fourth
27884         argument.
27885         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
27886         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
27887
27888 2008-11-10  Bruno Haible  <bruno@clisp.org>
27889
27890         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
27891         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
27892         as autoconf-substituted macros.
27893         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
27894         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
27895         gl_NETDB_H_DEFAULTS. Set these variables.
27896         * modules/netdb (Makefile.am): Substitute these variables.
27897
27898 2008-11-10  Eric Blake  <ebb9@byu.net>
27899
27900         standards.texi: include correct file for FDL 1.3
27901         * doc/standards.texi (GNU Free Documentation License): Change
27902         include file to pull in FDL 1.3, not 1.2.
27903
27904         fdl.texi: revert accidental change to license
27905         * doc/fdl.texi: This is FDL 1.2, not 1.3.
27906
27907 2008-11-10  Bruno Haible  <bruno@clisp.org>
27908
27909         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
27910         cross-compiling guesses also when the native compile gives no result.
27911
27912 2008-11-10  Bruno Haible  <bruno@clisp.org>
27913
27914         * lib/spawni.c (__spawni): Force variable into the stack.
27915
27916 2008-11-10  Bruno Haible  <bruno@clisp.org>
27917
27918         Add support for Haiku.
27919         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
27920         glibc and BeOS, but also on Haiku.
27921         * lib/fpurge.c (fpurge): Likewise.
27922         * lib/freadable.c (freadable): Likewise.
27923         * lib/freadahead.c (freadahead): Likewise.
27924         * lib/freading.c (freading): Likewise.
27925         * lib/freadptr.c (freadptr): Likewise.
27926         * lib/freadseek.c (freadptrinc): Likewise.
27927         * lib/fseeko.c (rpl_fseeko): Likewise.
27928         * lib/fseterr.c (fseterr): Likewise.
27929         * lib/fwritable.c (fwritable): Likewise.
27930         * lib/fwriting.c (fwriting): Likewise.
27931         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
27932
27933 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27934
27935         * lib/config.charset: Treat Haiku like BeOS.
27936
27937 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27938
27939         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
27940         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
27941
27942 2008-11-08  Bruno Haible  <bruno@clisp.org>
27943
27944         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
27945         AC_CACHE_CHECK.
27946
27947 2008-11-08  Bruno Haible  <bruno@clisp.org>
27948
27949         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
27950
27951 2008-11-08  Bruno Haible  <bruno@clisp.org>
27952
27953         * tests/test-select-fd.c: New file.
27954         * tests/test-select-in.sh: New file.
27955         * tests/test-select-out.sh: New file.
27956         * tests/test-select-stdin.c: New file.
27957         * modules/select-tests (Files): Add the new files.
27958         (Depends-on): Add gettimeofday.
27959         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
27960         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
27961         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
27962
27963 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
27964             Bruno Haible  <bruno@clisp.org>
27965
27966         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
27967
27968 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
27969
27970         * build-aux/pmccabe2html: Added support for C++ source files.
27971
27972 2008-11-05  Ben Pfaff  <blp@gnu.org>
27973
27974         Fix lib/close.c build on Windows.
27975         * modules/close (Files): Add lib/w32sock.h.
27976
27977 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
27978
27979         Accept Bison's NEWS format.
27980         * build-aux/announce-gen (print_news_deltas): Tweak
27981         $re_prefix.
27982
27983 2008-11-04  Bruno Haible  <bruno@clisp.org>
27984
27985         * modules/random_r (Maintainer): Add glibc.
27986
27987 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27988
27989         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
27990         by karl@freefriends.org (Karl Berry).
27991         * doc/alloca.texi: Likewise.
27992         * doc/c-ctype.texi: Likewise.
27993         * doc/c-strcase.texi: Likewise.
27994         * doc/c-strcaseeq.texi: Likewise.
27995         * doc/c-strcasestr.texi: Likewise.
27996         * doc/c-strstr.texi: Likewise.
27997         * doc/c-strtod.texi: Likewise.
27998         * doc/c-strtold.texi: Likewise.
27999         * doc/ctime.texi: Likewise.
28000         * doc/error.texi: Likewise.
28001         * doc/fdl.texi: Likewise.
28002         * doc/gcd.texi: Likewise.
28003         * doc/getdate.texi: Likewise.
28004         * doc/gnulib-intro.texi: Likewise.
28005         * doc/gnulib-tool.texi: Likewise.
28006         * doc/gnulib.texi: Likewise.
28007         * doc/inet_ntoa.texi: Likewise.
28008         * doc/maintain.texi: Likewise.
28009         * doc/make-stds.texi: Likewise.
28010         * doc/quote.texi: Likewise.
28011         * doc/regexprops-generic.texi: Likewise.
28012         * doc/standards.texi: Likewise.
28013         * doc/verify.texi: Likewise.
28014         * doc/visibility.texi: Likewise.
28015         * doc/gnulib.texi (GNU Free Documentation License): Include
28016         fdl-1.3.texi instead of fdl.texi.
28017
28018 2008-11-04  Simon Josefsson  <simon@josefsson.org>
28019
28020         * doc/fdl-1.3.texi: New file, from
28021         <http://www.gnu.org/licenses/fdl-1.3.texi>.
28022         * modules/fdl-1.3: Add.
28023         * MODULES.html.sh: Add fdl-1.3.
28024
28025 2008-11-03  Bruno Haible  <bruno@clisp.org>
28026
28027         Make determination of absolute name of header file work with AIX xlc.
28028         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
28029         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
28030         preprocessing.
28031         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28032         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
28033
28034 2008-11-03  Simon Josefsson  <simon@josefsson.org>
28035
28036         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
28037         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
28038         <ludo@gnu.org>.
28039
28040 2008-11-02  Bruno Haible  <bruno@clisp.org>
28041
28042         Mark 'strpbrk' obsolete.
28043         * modules/strpbrk (Status, Notice): New sections.
28044         * modules/strtok_r (Depends-on): Add strpbrk.
28045
28046 2008-11-02  Bruno Haible  <bruno@clisp.org>
28047
28048         Mark 'strdup' obsolete.
28049         * modules/strdup (Status, Notice): New sections.
28050         * modules/findprog (Depends-on): Add strdup.
28051         * modules/getaddrinfo (Depends-on): Likewise.
28052         * modules/localename (Depends-on): Likewise.
28053         * modules/relocatable-lib (Depends-on): Likewise.
28054         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
28055         * modules/relocatable-prog (Depends-on): Likewise.
28056         * modules/trim (Depends-on): Likewise.
28057         * modules/unictype/gen-ctype (Depends-on): Likewise.
28058         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
28059
28060 2008-11-02  Bruno Haible  <bruno@clisp.org>
28061
28062         Mark 'strcspn' obsolete.
28063         * modules/strcspn (Status, Notice): New sections.
28064
28065 2008-11-02  Bruno Haible  <bruno@clisp.org>
28066
28067         Mark 'rmdir' obsolete.
28068         * modules/rmdir (Status, Notice): New sections.
28069         * modules/clean-temp (Depends-on): Add rmdir.
28070         * modules/openat (Depends-on): Likewise.
28071
28072 2008-11-02  Bruno Haible  <bruno@clisp.org>
28073
28074         Mark 'raise' obsolete.
28075         * modules/raise (Status, Notice): New sections.
28076         (Include): Specify <signal.h>.
28077         * modules/stdio (Depends-on): Add raise.
28078         * modules/write (Depends-on): Likewise.
28079
28080 2008-11-02  Bruno Haible  <bruno@clisp.org>
28081
28082         Mark 'memset' obsolete.
28083         * modules/memset (Status, Notice): New sections.
28084
28085 2008-11-02  Bruno Haible  <bruno@clisp.org>
28086
28087         Mark 'memmove' obsolete.
28088         * modules/memmove (Status, Notice): New sections.
28089         * modules/argp (Depends-on): Add memmove.
28090         * modules/argz (Depends-on): Likewise.
28091         * modules/canonicalize (Depends-on): Likewise.
28092         * modules/canonicalize-lgpl (Depends-on): Likewise.
28093         * modules/fts (Depends-on): Likewise.
28094         * modules/getcwd (Depends-on): Likewise.
28095         * modules/human (Depends-on): Likewise.
28096         * modules/regex (Depends-on): Likewise.
28097         * modules/striconveh (Depends-on): Likewise.
28098         * modules/trim (Depends-on): Likewise.
28099         * modules/unistr/u8-move (Depends-on): Likewise.
28100         * modules/unistr/u16-move (Depends-on): Likewise.
28101         * modules/unistr/u32-move (Depends-on): Likewise.
28102
28103 2008-11-02  Bruno Haible  <bruno@clisp.org>
28104
28105         Mark 'memcpy' obsolete.
28106         * modules/memcpy (Status, Notice): New sections.
28107
28108 2008-11-02  Bruno Haible  <bruno@clisp.org>
28109
28110         Mark 'memcmp' obsolete.
28111         * modules/memcmp (Status, Notice): New sections.
28112         * modules/argmatch (Depends-on): Add memchr.
28113         * modules/backupfile (Depends-on): Likewise.
28114         * modules/c-strcasestr (Depends-on): Likewise.
28115         * modules/crypto/des (Depends-on): Likewise.
28116         * modules/csharpcomp (Depends-on): Likewise.
28117         * modules/fnmatch (Depends-on): Likewise.
28118         * modules/git-merge-changelog (Depends-on): Likewise.
28119         * modules/isnand (Depends-on): Likewise.
28120         * modules/isnand-nolibm (Depends-on): Likewise.
28121         * modules/isnanf (Depends-on): Likewise.
28122         * modules/isnanf-nolibm (Depends-on): Likewise.
28123         * modules/isnanl (Depends-on): Likewise.
28124         * modules/isnanl-nolibm (Depends-on): Likewise.
28125         * modules/mbchar (Depends-on): Likewise.
28126         * modules/memcoll (Depends-on): Likewise.
28127         * modules/quotearg (Depends-on): Likewise.
28128         * modules/regex (Depends-on): Likewise.
28129         * modules/relocatable-prog (Depends-on): Likewise.
28130         * modules/same (Depends-on): Likewise.
28131         * modules/signbit (Depends-on): Likewise.
28132         * modules/strcasestr-simple (Depends-on): Likewise.
28133         * modules/unictype/gen-ctype (Depends-on): Likewise.
28134         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
28135         * modules/uniname/uniname (Depends-on): Likewise.
28136         * modules/unistr/u8-cmp (Depends-on): Likewise.
28137
28138 2008-11-02  Bruno Haible  <bruno@clisp.org>
28139
28140         Mark 'memchr' obsolete.
28141         * modules/memchr (Status, Notice): New sections.
28142         * modules/argp (Depends-on): Add memchr.
28143         * modules/base64 (Depends-on): Likewise.
28144         * modules/c-strcasestr (Depends-on): Likewise.
28145         * modules/chdir-long (Depends-on): Likewise.
28146         * modules/fnmatch (Depends-on): Likewise.
28147         * modules/getsubopt (Depends-on): Likewise.
28148         * modules/git-merge-changelog (Depends-on): Likewise.
28149         * modules/glob (Depends-on): Likewise.
28150         * modules/strcasestr-simple (Depends-on): Likewise.
28151         * modules/strnlen (Depends-on): Likewise.
28152
28153 2008-11-02  Bruno Haible  <bruno@clisp.org>
28154
28155         Mark 'atexit' obsolete.
28156         * modules/atexit (Status, Notice): New sections.
28157         * modules/chdir-long (Depends-on): Add atexit.
28158         * modules/wait-process (Depends-on): Likewise.
28159
28160 2008-11-02  Bruno Haible  <bruno@clisp.org>
28161
28162         * gnulib-tool: New option --with-obsolete.
28163         (func_usage): Document it.
28164         (func_modules_transitive_closure): Drop obsolete dependencies if
28165         incobsolete is not true.
28166         (func_import): Read and save the incobsolete variable to the cache.
28167
28168 2008-11-02  Bruno Haible  <bruno@clisp.org>
28169
28170         * modules/TEMPLATE-EXTENDED: New field 'Status'.
28171         * gnulib-tool: New option --extract-status.
28172         (func_usage): Document it.
28173         (sed_extract_prog): Recognize it.
28174         (func_get_status): New function.
28175
28176 2008-10-30  Simon Josefsson  <simon@josefsson.org>
28177
28178         * modules/sockets (License): Change from LGPL to LGPLv2+.
28179
28180 2008-10-28  Simon Josefsson  <simon@josefsson.org>
28181
28182         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
28183
28184 2008-10-28  Simon Josefsson  <simon@josefsson.org>
28185
28186         * MODULES.html.sh (Support for systems lacking POSIX:2001):
28187         Mention times and sys_times.
28188         * modules/sys_times, modules/sys_times-tests: New modules.
28189         * modules/times, modules/times-tests: Likewise
28190         * m4/sys_times_h.m4: New file.
28191         * lib/sys_times.in.h: Likewise
28192         * lib/times.c: Likewise.
28193         * tests/test-sys_times.c: Likewise.
28194         * tests/test-times.c: Likewise.
28195         * doc/posix-headers/sys_times.texi: Update.
28196         * doc/posix-functions/times.texi: Update.
28197
28198 2008-10-28  Jim Meyering  <meyering@redhat.com>
28199
28200         * modules/tempname (Depends-on): Add lstat.
28201
28202         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
28203
28204 2008-10-28  Simon Josefsson  <simon@josefsson.org>
28205
28206         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
28207         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
28208         using idiom used elsewhere in gnulib.
28209
28210 2008-10-27  Jim Meyering  <meyering@redhat.com>
28211
28212         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
28213
28214 2008-10-27  Simon Josefsson  <simon@josefsson.org>
28215
28216         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
28217         TESTS_ENVIRONMENT, for shell scripts that needs to call built
28218         programs.
28219         * tests/test-argp-2.sh: Use $EXEEXT when needed.
28220
28221 2008-10-27  Simon Josefsson  <simon@josefsson.org>
28222
28223         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
28224
28225 2008-10-27  Bruno Haible  <bruno@clisp.org>
28226
28227         * tests/test-lstat.c: Include <stdio.h>.
28228
28229 2008-10-27  Simon Josefsson  <simon@josefsson.org>
28230
28231         * modules/lstat-tests: New module.
28232         * tests/test-lstat.c: New file.
28233
28234 2008-10-26  Jim Meyering  <meyering@redhat.com>
28235
28236         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
28237
28238 2008-10-26  Simon Josefsson  <simon@josefsson.org>
28239             Bruno Haible  <bruno@clisp.org>
28240
28241         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
28242         * modules/configmake (Include): Add a note that the include must come
28243         after all system headers.
28244         * lib/javaversion.c: Include configmake.h after all other includes.
28245
28246 2008-10-26  Bruno Haible  <bruno@clisp.org>
28247
28248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
28249         HAVE_STRUCT_RANDOM_DATA to 1.
28250         (gl_STDLIB_H): Simplify.
28251
28252 2008-10-26  Simon Josefsson  <simon@josefsson.org>
28253
28254         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
28255         substitute HAVE_STRUCT_RANDOM_DATA.
28256         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
28257         random_data.
28258         * modules/stdlib (Makefile.am): Substitute
28259         HAVE_STRUCT_RANDOM_DATA.
28260
28261 2008-10-26  Simon Josefsson  <simon@josefsson.org>
28262
28263         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
28264         * doc/gnulib-intro.texi (Copyright): Likewise.
28265
28266 2008-10-26  Simon Josefsson  <simon@josefsson.org>
28267
28268         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
28269         findings.
28270
28271 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
28272             Bruno Haible  <bruno@clisp.org>
28273
28274         * lib/unistd.in.h: Include <winsock2.h>.
28275         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
28276         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
28277         Provide dummy declarations.
28278         (gethostname): Override.
28279         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
28280         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
28281         gl_PREREQ_SYS_H_WINSOCK2.
28282         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
28283         * doc/posix-functions/gethostname.texi: More details.
28284
28285 2008-10-25  Bruno Haible  <bruno@clisp.org>
28286
28287         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
28288         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
28289         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
28290
28291         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
28292         here ...
28293         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
28294         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
28295         gl_UNISTD_H_DEFAULTS.
28296
28297 2008-10-25  Eric Blake  <ebb9@byu.net>
28298
28299         signbit: avoid spurious compiler failure
28300         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
28301         declarations inside function.
28302
28303 2008-10-24  Simon Josefsson  <simon@josefsson.org>
28304             Bruno Haible  <bruno@clisp.org>
28305
28306         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
28307         * modules/random_r (Depends-on): Add stdint.
28308
28309 2008-10-24  Bruno Haible  <bruno@clisp.org>
28310
28311         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
28312         Eggert.
28313         * modules/strerror (License): Likewise.
28314
28315 2008-10-24  Jim Meyering  <meyering@redhat.com>
28316
28317         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
28318         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
28319
28320 2008-10-24  Eric Blake  <ebb9@byu.net>
28321
28322         getgroups: fix compilation when getgroups is available
28323         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
28324         but with <config.h> override of getgroups disabled.
28325
28326 2008-10-24  Simon Josefsson  <simon@josefsson.org>
28327
28328         * doc/gnulib.texi (Header files): Add note about C++ problems.
28329         Explained by Bruno Haible <bruno@clisp.org>.
28330
28331 2008-10-23  Bruno Haible  <bruno@clisp.org>
28332
28333         Define a dummy SA_NODEFER macro on Interix.
28334         * lib/signal.in.h (SA_NODEFER): Define fallback.
28335         Reported by Aleksey Cheusov <cheusov@tut.by> via
28336         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
28337
28338 2008-10-23  Bruno Haible  <bruno@clisp.org>
28339
28340         * modules/freadahead (License): Change to LGPLv2+.
28341         Suggested by Simon Josefsson.
28342
28343 2008-10-23  Jim Meyering  <meyering@redhat.com>
28344
28345         random_r: new module
28346         * modules/random_r: New file.
28347         * m4/random_r.m4: New file.
28348         * lib/random_r.c: New file, from glibc.
28349         * modules/random_r-tests: New file.
28350         * tests/test-random_r.c: New file.
28351         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
28352          Declare.
28353         (RAND_MAX): Define.
28354         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
28355         * modules/stdlib: Substitute them, too.
28356         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
28357         * doc/glibc-functions/initstate_r.texi: Mention the new module.
28358         * doc/glibc-functions/random_r.texi: Likewise.
28359         * doc/glibc-functions/setstate_r.texi: Likewise.
28360         * doc/glibc-functions/srandom_r.texi: Likewise.
28361         * config/srclist.txt: Mention it.
28362
28363 2008-10-23  David Lutterkort  <lutter@redhat.com>
28364
28365         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
28366         link requirement
28367
28368 2008-10-23  Jim Meyering  <meyering@redhat.com>
28369
28370         selinux-h: mark parameters of stub functions as intentionally unused
28371         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
28372         * lib/se-context.in.h: Likewise.
28373
28374 2008-10-22  Simon Josefsson  <simon@josefsson.org>
28375
28376         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
28377
28378 2008-10-22  Simon Josefsson  <simon@josefsson.org>
28379
28380         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
28381
28382 2008-10-22  Eric Blake  <ebb9@byu.net>
28383
28384         glthread/thread: avoid compiler warning
28385         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
28386         Add unreachable abort to silence compiler.
28387
28388 2008-10-22  Eric Blake  <ebb9@byu.net>
28389
28390         netdb: also supply struct addrinfo for cygwin 1.5.x
28391         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
28392         older cygwin.
28393         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
28394         cygwin.
28395         * doc/posix-headers/netdb.texi (netdb.h): Document this.
28396
28397 2008-10-22  Bruno Haible  <bruno@clisp.org>
28398
28399         * users.txt: Update entry about pspp.
28400
28401 2008-10-21  Bruno Haible  <bruno@clisp.org>
28402
28403         Simplification.
28404         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
28405         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
28406
28407         Simplification.
28408         * lib/ioctl.c (ioctl): Don't undefine.
28409         * lib/socket.c (socket): Don't undefine.
28410
28411         Remove unused module indicator macros.
28412         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
28413         GNULIB_$1 as a C macro.
28414
28415         * doc/posix-functions/close.texi: Undo last change.
28416         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
28417         Windows platforms.
28418
28419 2008-10-21  Bruno Haible  <bruno@clisp.org>
28420
28421         Add gethostname() declaration to <unistd.h>.
28422         * lib/unistd.in.h (gethostname): New declaration.
28423         * lib/gethostname.c: Include <unistd.h>.
28424         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
28425         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
28426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
28427         and HAVE_GETHOSTNAME.
28428         * modules/gethostname (Depends-on): Add unistd.
28429         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28430         (Include): Specify <unistd.h>.
28431         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
28432         HAVE_GETHOSTNAME.
28433         * tests/test-gethostname.c: Include <unistd.h> first.
28434
28435 2008-10-21  Bruno Haible  <bruno@clisp.org>
28436
28437         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
28438         * modules/select-tests (Depends-on): Likewise.
28439         Reported by Simon Josefsson.
28440
28441 2008-10-21  Simon Josefsson  <simon@josefsson.org>
28442
28443         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
28444         * lib/accept.c: New file, based on winsock.c.
28445         * lib/bind.c: New file, based on winsock.c.
28446         * lib/connect.c: New file, based on winsock.c.
28447         * lib/getpeername.c: New file, based on winsock.c.
28448         * lib/getsockname.c: New file, based on winsock.c.
28449         * lib/getsockopt.c: New file, based on winsock.c.
28450         * lib/ioctl.c: New file, based on winsock.c.
28451         * lib/listen.c: New file, based on winsock.c.
28452         * lib/recv.c: New file, based on winsock.c.
28453         * lib/recvfrom.c: New file, based on winsock.c.
28454         * lib/send.c: New file, based on winsock.c.
28455         * lib/sendto.c: New file, based on winsock.c.
28456         * lib/setsockopt.c: New file, based on winsock.c.
28457         * lib/shutdown.c: New file, based on winsock.c.
28458         * lib/socket.c: New file, based on winsock.c.
28459         * lib/w32sock.h: New file, based on winsock.c.
28460         * lib/winsock.c: Remove file.
28461         * modules/accept: Likewise.
28462         * modules/bind: Likewise.
28463         * modules/connect: Likewise.
28464         * modules/getpeername: Likewise.
28465         * modules/getsockname: Likewise.
28466         * modules/getsockopt: Likewise.
28467         * modules/ioctl: Likewise.
28468         * modules/listen: Likewise.
28469         * modules/recv: Likewise.
28470         * modules/recvfrom: Likewise.
28471         * modules/send: Likewise.
28472         * modules/sendto: Likewise.
28473         * modules/setsockopt: Likewise.
28474         * modules/shutdown: Likewise.
28475         * modules/socket: Use socket.c instead of winsock.c.
28476         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
28477         * doc/posix-functions/accept.texi: Doc fix.
28478         * doc/posix-functions/bind.texi: Doc fix.
28479         * doc/posix-functions/close.texi: Doc fix.
28480         * doc/posix-functions/connect.texi: Doc fix.
28481         * doc/posix-functions/getpeername.texi: Doc fix.
28482         * doc/posix-functions/getsockname.texi: Doc fix.
28483         * doc/posix-functions/getsockopt.texi: Doc fix.
28484         * doc/posix-functions/ioctl.texi: Doc fix.
28485         * doc/posix-functions/listen.texi: Doc fix.
28486         * doc/posix-functions/recv.texi: Doc fix.
28487         * doc/posix-functions/recvfrom.texi: Doc fix.
28488         * doc/posix-functions/send.texi: Doc fix.
28489         * doc/posix-functions/sendto.texi: Doc fix.
28490         * doc/posix-functions/setsockopt.texi: Doc fix.
28491         * doc/posix-functions/shutdown.texi: Doc fix.
28492         * doc/posix-functions/socket.texi: Doc fix.
28493
28494 2008-10-20  Bruno Haible  <bruno@clisp.org>
28495
28496         Take into account the role of SIGABRT_COMPAT on Windows 2008.
28497         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
28498         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
28499         as an alias for SIGABRT.
28500         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
28501         (sigaction): Map it to SIGABRT.
28502         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
28503
28504 2008-10-20  Bruno Haible  <bruno@clisp.org>
28505
28506         * lib/fts.c: Don't include lstat.h.
28507         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
28508
28509         Move the lstat() declaration to <sys/stat.h>.
28510         * lib/lstat.h: Remove file.
28511         * lib/sys_stat.in.h: Add special invocation convention.
28512         (lstat): New declaration.
28513         * lib/lstat.c (orig_lstat): New function.
28514         (rpl_lstat): Use orig_lstat instead of lstat.
28515         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
28516         AC_C_INLINE. Set REPLACE_LSTAT.
28517         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
28518         and REPLACE_LSTAT.
28519         * modules/lstat (Files): Remove lib/lstat.h.
28520         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
28521         (Include): Specify <sys/stat.h> instead of lstat.h.
28522         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
28523         REPLACE_LSTAT.
28524         * NEWS: Mention the change.
28525
28526 2008-10-20  Bruno Haible  <bruno@clisp.org>
28527
28528         * modules/posix_spawn-tests: New file.
28529         * tests/test-posix_spawn3.c: New file.
28530
28531 2008-10-20  Bruno Haible  <bruno@clisp.org>
28532
28533         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
28534         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
28535         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
28536         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
28537         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
28538
28539 2008-10-20  Bruno Haible  <bruno@clisp.org>
28540
28541         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
28542         of posix_spawn on AIX 5.3.
28543
28544 2008-10-20  Bruno Haible  <bruno@clisp.org>
28545
28546         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
28547
28548 2008-10-20  Bruno Haible  <bruno@clisp.org>
28549
28550         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
28551         of AC_LANG_PROGRAM.
28552
28553 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28554
28555         * lib/netdb.in.h: Don't define GNU specific constants until they
28556         are supported or needed.  Reported by Bruno Haible
28557         <bruno@clisp.org>.
28558
28559 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28560
28561         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
28562
28563 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28564
28565         * lib/getaddrinfo.h: Remove file.
28566         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
28567         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
28568         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
28569         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
28570         * modules/netdb: Substitute GNULIB_GETADDRINFO.
28571         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
28572         * tests/test-getaddrinfo.c: Likewise.
28573         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
28574         * NEWS: Mention change.
28575
28576 2008-10-19  Bruno Haible  <bruno@clisp.org>
28577
28578         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
28579
28580 2008-10-19  Bruno Haible  <bruno@clisp.org>
28581
28582         * lib/wait-process.c: Include simply <sys/wait.h>.
28583         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
28584         WIFSTOPPED): Remove fallback definitions.
28585         * modules/wait-process (Depends-on): Add sys_wait.
28586
28587         New module 'sys_wait'.
28588         * modules/sys_wait: New file.
28589         * lib/sys_wait.in.h: New file, partially copied from
28590         lib/wait-process.c.
28591         * m4/sys_wait_h.m4: New file.
28592         * doc/posix-headers/sys_wait.texi: Mention the new module.
28593
28594 2008-10-19  Bruno Haible  <bruno@clisp.org>
28595
28596         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
28597
28598 2008-10-19  Bruno Haible  <bruno@clisp.org>
28599
28600         Assume that waitpid() fills an 'int' status, not a 'union wait'.
28601         * lib/wait-process.c (WAIT_T): Remove type.
28602         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
28603         (wait_subprocess): Update.
28604
28605 2008-10-19  Bruno Haible  <bruno@clisp.org>
28606
28607         New module 'atoll'.
28608         * modules/atoll: New file.
28609         * lib/stdlib.in.h (atoll): New declaration.
28610         * lib/atoll.c: New file, from glibc with modifications.
28611         * m4/atoll.m4: New file.
28612         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
28613         HAVE_ATOLL.
28614         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
28615         * doc/posix-functions/atoll.texi: Mention the new module.
28616
28617 2008-10-19  Bruno Haible  <bruno@clisp.org>
28618
28619         Add strtoull() declaration to <stdlib.h>.
28620         * lib/stdlib.in.h (strtoull): New declaration.
28621         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28622         Set HAVE_STRTOULL.
28623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
28624         HAVE_STRTOULL.
28625         * modules/strtoull (Depends-on): Add stdlib.
28626         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28627         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
28628         HAVE_STRTOULL.
28629
28630 2008-10-19  Bruno Haible  <bruno@clisp.org>
28631
28632         Add strtoll() declaration to <stdlib.h>.
28633         * lib/stdlib.in.h (strtoll): New declaration.
28634         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28635         Set HAVE_STRTOLL.
28636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
28637         HAVE_STRTOLL.
28638         * modules/strtoll (Depends-on): Add stdlib.
28639         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28640         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
28641
28642 2008-10-19  Bruno Haible  <bruno@clisp.org>
28643
28644         * modules/bcopy (Depends-on): Add strings.
28645         (Include): Specify <strings.h>.
28646
28647 2008-10-19  Bruno Haible  <bruno@clisp.org>
28648
28649         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
28650
28651 2008-10-19  Bruno Haible  <bruno@clisp.org>
28652
28653         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
28654         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
28655         mingw.
28656
28657 2008-10-19  Bruno Haible  <bruno@clisp.org>
28658
28659         * lib/atanl.c: Don't include isnanl.h.
28660         * lib/cosl.c: Likewise.
28661         * lib/ldexpl.c: Likewise.
28662         * lib/logl.c: Likewise.
28663         * lib/sinl.c: Likewise.
28664         * lib/sqrtl.c: Likewise.
28665         * lib/tanl.c: Likewise.
28666
28667         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
28668         * lib/isnanf.h: Remove file.
28669         * lib/isnand.h: Remove file.
28670         * lib/isnanl.h: Remove file.
28671         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
28672         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
28673         macros.
28674         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
28675         HAVE_ISNANF, don't define it as a C macro.
28676         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
28677         HAVE_ISNAND, don't define it as a C macro.
28678         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
28679         HAVE_ISNANL, don't define it as a C macro.
28680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
28681         HAVE_ISNAN[FDL].
28682         * modules/isnanf (Files): Remove lib/isnanf.h.
28683         (Depends-on): Add math.
28684         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28685         (Include): Specify <math.h> instead of isnanf.h.
28686         * modules/isnand (Files): Remove lib/isnand.h.
28687         (Depends-on): Add math.
28688         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28689         (Include): Specify <math.h> instead of isnand.h.
28690         * modules/isnanl (Files): Remove lib/isnanl.h.
28691         (Depends-on): Add math.
28692         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28693         (Include): Specify <math.h> instead of isnanl.h.
28694         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
28695         HAVE_ISNAN[FDL].
28696         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
28697         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
28698         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
28699         * NEWS: Mention the change.
28700
28701 2008-10-18  Bruno Haible  <bruno@clisp.org>
28702
28703         Add getusershell(), setusershell(), endusershell() declarations to
28704         <unistd.h>.
28705         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
28706         declarations.
28707         * lib/getusershell.c: Include unistd.h.
28708         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
28709         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28710         HAVE_GETUSERSHELL.
28711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
28712         and HAVE_GETUSERSHELL.
28713         * modules/getusershell (Depends-on): Add unistd, extensions.
28714         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28715         (Include): Specify <unistd.h>.
28716         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
28717         HAVE_GETUSERSHELL.
28718
28719 2008-10-18  Bruno Haible  <bruno@clisp.org>
28720
28721         Add a getloadavg() declaration to <stdlib.h>.
28722         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
28723         getloadavg declaration.
28724         (getloadavg): New declaration.
28725         * lib/getloadavg.c: Include <stdlib.h> first.
28726         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
28727         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
28728         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
28729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
28730         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28731         * modules/getloadavg (Depends-on): Add stdlib, extensions.
28732         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28733         (Include): Specify <stdlib.h>.
28734         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
28735         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28736
28737 2008-10-18  Bruno Haible  <bruno@clisp.org>
28738
28739         * lib/dirchownmod.c: Don't include lchmod.h.
28740
28741         Move the lchmod() declaration to <sys/stat.h>.
28742         * lib/lchmod.h: Remove file.
28743         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
28744         (lchmod): New declaration, moved here from lib/lchown.h.
28745         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
28746         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
28747         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
28748         and HAVE_LCHMOD.
28749         * modules/lchmod (Files): Remove lib/lchmod.h.
28750         (Depends-on): Add sys_stat, extensions.
28751         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
28752         (Include): Specify <sys/stat.h> instead of lchmod.h.
28753         * modules/sys_stat (Depends-on): Add link-warning.
28754         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
28755         definition of GL_LINK_WARNING.
28756         * NEWS: Mention the change.
28757
28758 2008-10-18  Bruno Haible  <bruno@clisp.org>
28759
28760         * lib/fchdir.c: Don't include dirfd.h.
28761         * lib/fts.c: Likewise.
28762         * lib/getcwd.c: Likewise.
28763         * lib/glob.c: Likewise.
28764
28765         Move the dirfd() declaration to <dirent.h>.
28766         * lib/dirfd.h: Remove file.
28767         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
28768         (dirfd): New declaration.
28769         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
28770         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
28771         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
28772         HAVE_DECL_DIRFD.
28773         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
28774         HAVE_DECL_DIRFD.
28775         * modules/dirfd (Files): Remove lib/dirfd.h.
28776         (Depends-on): Add dirent, extensions.
28777         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
28778         (Include): Specify <dirent.h> instead of dirfd.h.
28779         * modules/dirent (Depends-on): Add link-warning.
28780         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
28781         definition of GL_LINK_WARNING.
28782         * NEWS: Mention the change.
28783
28784 2008-10-18  Bruno Haible  <bruno@clisp.org>
28785
28786         Move the euidaccess() declaration to <unistd.h>.
28787         * lib/euidaccess.h: Remove file.
28788         * lib/unistd.in.h (euidaccess): New declaration.
28789         * lib/euidaccess.c: Don't include euidaccess.h.
28790         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
28791         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
28792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
28793         and HAVE_EUIDACCESS.
28794         * modules/euidaccess (Files): Remove lib/euidaccess.h.
28795         (Depends-on): Add unistd.
28796         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28797         (Include): Specify <unistd.h> instead of euidaccess.h.
28798         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
28799         HAVE_EUIDACCESS.
28800         * NEWS: Mention the change.
28801
28802 2008-10-18  Bruno Haible  <bruno@clisp.org>
28803
28804         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
28805
28806         Move the getdomainname() declaration to <unistd.h>.
28807         * lib/getdomainname.h: Remove file.
28808         * lib/unistd.in.h (getdomainname): New declaration.
28809         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
28810         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28811         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28812         HAVE_GETDOMAINNAME.
28813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28814         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
28815         * modules/getdomainname (Files): Remove lib/getdomainname.h.
28816         (Depends-on): Add unistd, extensions.
28817         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28818         (Includes): Specify <unistd.h> instead of getdomainname.h.
28819         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
28820         HAVE_GETDOMAINNAME.
28821         * NEWS: Mention the change.
28822
28823 2008-10-18  Bruno Haible  <bruno@clisp.org>
28824
28825         * modules/dirent: New file.
28826         * m4/dirent_h.m4: New file.
28827         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
28828         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
28829         * modules/fchdir (Files): Remove lib/dirent.in.h.
28830         (Depends-on): Add dirent.
28831         (Makefile.am): Move rules to modules/dirent.
28832         * doc/posix-headers/dirent.texi: Mention the new module.
28833
28834 2008-10-18  Bruno Haible  <bruno@clisp.org>
28835
28836         Avoid -Wunused-parameter warnings in public gnulib header files.
28837         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
28838         macro.
28839         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
28840
28841 2008-10-18  Bruno Haible  <bruno@clisp.org>
28842
28843         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
28844         * doc/glibc-functions/error.texi: Mention the module 'error'.
28845         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
28846         * doc/glibc-functions/getdomainname.texi: Mention the module
28847         'getdomainname'.
28848         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
28849         * doc/glibc-functions/getpagesize.texi: Mention the module
28850         'getpagesize'.
28851         * doc/glibc-functions/getusershell.texi: Mention the module
28852         'getusershell'.
28853         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
28854         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
28855         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
28856         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
28857         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
28858         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
28859         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
28860         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
28861         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
28862         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
28863         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
28864         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
28865         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
28866         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
28867
28868 2008-10-17  Bruno Haible  <bruno@clisp.org>
28869
28870         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
28871         HP-UX and IRIX, use -0.0L.
28872         * tests/test-ceill.c (minus_zero): Likewise.
28873         * tests/test-floorl.c (minus_zero): Likewise.
28874         * tests/test-frexpl.c (minus_zero): Likewise.
28875         * tests/test-isnan.c (minus_zerol): Likewise.
28876         * tests/test-isnanl.h (minus_zero): Likewise.
28877         * tests/test-ldexpl.c (minus_zero): Likewise.
28878         * tests/test-roundl.c (minus_zero): Likewise.
28879         * tests/test-signbit.c (minus_zerol): Likewise.
28880         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28881         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28882         * tests/test-truncl.c (minus_zero): Likewise.
28883         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28884         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28885         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
28886         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28887
28888 2008-10-17  Bruno Haible  <bruno@clisp.org>
28889
28890         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
28891         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
28892         that it gets activated only for gcc >= 3.0.
28893         * lib/dirent.in.h: Likewise.
28894         * lib/errno.in.h: Likewise.
28895         * lib/fcntl.in.h: Likewise.
28896         * lib/float.in.h: Likewise.
28897         * lib/iconv.in.h: Likewise.
28898         * lib/inttypes.in.h: Likewise.
28899         * lib/locale.in.h: Likewise.
28900         * lib/math.in.h: Likewise.
28901         * lib/netdb.in.h: Likewise.
28902         * lib/netinet_in.in.h: Likewise.
28903         * lib/search.in.h: Likewise.
28904         * lib/signal.in.h: Likewise.
28905         * lib/spawn.in.h: Likewise.
28906         * lib/stdarg.in.h: Likewise.
28907         * lib/stdint.in.h: Likewise.
28908         * lib/stdio.in.h: Likewise.
28909         * lib/stdlib.in.h: Likewise.
28910         * lib/string.in.h: Likewise.
28911         * lib/strings.in.h: Likewise.
28912         * lib/sys_file.in.h: Likewise.
28913         * lib/sys_ioctl.in.h: Likewise.
28914         * lib/sys_select.in.h: Likewise.
28915         * lib/sys_socket.in.h: Likewise.
28916         * lib/sys_stat.in.h: Likewise.
28917         * lib/sys_time.in.h: Likewise.
28918         * lib/sysexits.in.h: Likewise.
28919         * lib/time.in.h: Likewise.
28920         * lib/unistd.in.h: Likewise.
28921         * lib/wchar.in.h: Likewise.
28922         * lib/wctype.in.h: Likewise.
28923         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28924
28925 2008-10-17  Jim Meyering  <meyering@redhat.com>
28926
28927         ignore-value: don't depend on inline module
28928         * modules/ignore-value (Depends-on): Remove 'inline'.
28929         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
28930         Suggestion from Bruno Haible.
28931
28932 2008-10-17  Bruno Haible  <bruno@clisp.org>
28933
28934         New implementation of condition variables for Win32.
28935         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
28936         (gl_linked_waitqueue_t): New type.
28937         (gl_cond_t): Use it.
28938         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
28939         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
28940         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
28941         (glthread_cond_init_func, glthread_cond_wait_func,
28942         glthread_cond_timedwait_func, glthread_cond_signal_func,
28943         glthread_cond_broadcast_func, glthread_cond_destroy_func):
28944         Reimplemented on the basis of gl_linked_waitqueue_t.
28945         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
28946         gl_waitqueue_t.
28947         (gl_rwlock_t): Update.
28948         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
28949
28950 2008-10-17  Simon Josefsson  <simon@josefsson.org>
28951
28952         * modules/recvfrom (Depends-on): Add dependency on getpeername.
28953         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28954
28955 2008-10-17  Jim Meyering  <meyering@redhat.com>
28956
28957         ignore-value: new module
28958         * modules/ignore-value: New file.
28959         * lib/ignore-value.h: New file.
28960         * MODULES.html.sh (Compiler warning management): New section,
28961         just for this module.  More to come.
28962
28963 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28964
28965         open-safer.c: avoid 'signed and unsigned in conditional...' warning
28966         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
28967         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
28968
28969 2008-10-16  Jim Meyering  <meyering@redhat.com>
28970
28971         openat-die.c: avoid 'no previous prototype' warning
28972         * lib/openat-die.c: Include "openat.h".
28973         Reported by Reuben Thomas <rrt@sc3d.org>.
28974
28975 2008-10-16  Simon Josefsson  <simon@josefsson.org>
28976
28977         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
28978         * lib/netdb.in.h: Fix typo.
28979         Reported by Bruno Haible  <bruno@clisp.org>
28980
28981         * lib/netdb.in.h: Include sys/socket.h for platforms without
28982         netdb.h, to get structures like hostent on MinGW.
28983         * modules/netdb (Depends-on): Add sys_socket.
28984
28985 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28986
28987         * modules/netdb, modules/netdb-tests: New file.
28988         * m4/netdb_h.m4: New file.
28989         * lib/netdb.in.h: Add, currently just an empty file pending
28990         definitions.
28991         * tests/test-netdb.c: New file.
28992         * doc/posix-headers/netdb.texi: Mention that we replace it if
28993         needed.
28994         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28995         netdb.
28996
28997 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28998
28999         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
29000         with code.
29001
29002 2008-10-13  Bruno Haible  <bruno@clisp.org>
29003
29004         * lib/glthread/cond.c (glthread_cond_wait_func,
29005         glthread_cond_timedwait_func): Add a comment.
29006
29007 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29008
29009         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
29010         * tests/test-select.c: Likewise,
29011
29012 2008-10-13  Bruno Haible  <bruno@clisp.org>
29013
29014         * lib/glthread/cond.c (glthread_cond_wait_func,
29015         glthread_cond_timedwait_func): Fix variable name.
29016         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29017
29018 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
29019
29020         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
29021         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
29022         struct sockaddr.sa_len.
29023         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
29024
29025 2008-10-13  Simon Josefsson  <simon@josefsson.org>
29026
29027         * build-aux/pmccabe2html: Add css and css_url parameters.
29028
29029 2008-10-12  Bruno Haible  <bruno@clisp.org>
29030
29031         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
29032         calling aclx_get.
29033         Reported by Rainer Tammer <tammer@tammer.net>.
29034
29035 2008-10-12  Bruno Haible  <bruno@clisp.org>
29036
29037         Use msvcrt aware primitives for creation/termination of Win32 threads.
29038         * lib/glthread/thread.c: Include <process.h>.
29039         (glthread_create_func): Use _beginthreadex instead of CreateThread.
29040         (wrapper_func): Update signature.
29041         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
29042
29043 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29044             Bruno Haible  <bruno@clisp.org>
29045
29046         Provide a Win32 implementation of the 'cond' module.
29047         * lib/glthread/cond.h [USE_WIN32]: New implementation.
29048         * lib/glthread/cond.c (glthread_cond_init_func,
29049         glthread_cond_wait_func, glthread_cond_timedwait_func,
29050         glthread_cond_signal_func, glthread_cond_broadcast_func,
29051         glthread_cond_destroy_func) [USE_WIN32]: New functions.
29052         * modules/cond (Dependencies): Add gettimeofday.
29053
29054 2008-10-11  Bruno Haible  <bruno@clisp.org>
29055
29056         Make sleep work on older versions of mingw.
29057         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
29058         only whether it exists.
29059         * doc/posix-functions/sleep.texi: Mention the problem with older
29060         versions of mingw.
29061
29062 2008-10-11  Bruno Haible  <bruno@clisp.org>
29063
29064         New module 'shutdown'.
29065         * modules/shutdown: New file.
29066         * lib/sys_socket.in.h (shutdown): New declaration.
29067         * lib/winsock.c (shutdown): New function.
29068         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29069         GNULIB_SHUTDOWN.
29070         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
29071         * doc/posix-functions/shutdown.texi: Document the new module.
29072
29073 2008-10-11  Jim Meyering  <meyering@redhat.com>
29074
29075         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
29076
29077 2008-10-11  Bruno Haible  <bruno@clisp.org>
29078
29079         New module 'fclose'.
29080         * modules/fclose: New file.
29081         * lib/stdio.in.h (fclose): New declaration.
29082         * lib/fclose.c: New file.
29083         * m4/fclose.m4: New file.
29084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
29085         REPLACE_FCLOSE.
29086         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
29087         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
29088         REPLACE_FCLOSE.
29089         * modules/close (Depends-on): fclose.
29090         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
29091
29092 2008-10-11  Bruno Haible  <bruno@clisp.org>
29093
29094         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
29095         set errno and don't call _close.
29096
29097 2008-10-10  Bruno Haible  <bruno@clisp.org>
29098
29099         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
29100         ACL, not afterwards. Fixes test failure on Cygwin.
29101
29102 2008-10-09  Ben Pfaff  <blp@gnu.org>
29103
29104         * build-aux/announce-gen: Fix gnulib version related part of usage
29105         message.  Die with a useful error message if no tarballs are
29106         found.
29107
29108 2008-10-10  Jim Meyering  <meyering@redhat.com>
29109
29110         bootstrap: use git's --depth=N option only if it's supported
29111         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
29112         recognize the --depth option.  Reported by Pádraig Brady.
29113
29114 2008-10-09  Bruno Haible  <bruno@clisp.org>
29115
29116         New module 'ioctl'.
29117         * modules/ioctl: New file.
29118         * lib/sys_socket.in.h (ioctl): Remove declaration.
29119         * lib/winsock.c: Include <sys/ioctl.h>.
29120         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
29121         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
29122         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
29123         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
29124         * doc/posix-functions/ioctl.texi: Mention the new module.
29125
29126 2008-10-09  Bruno Haible  <bruno@clisp.org>
29127
29128         New module 'sys_ioctl'.
29129         * lib/sys_ioctl.in.h: New file.
29130         * m4/sys_ioctl_h.m4: New file.
29131         * modules/sys_ioctl: New file.
29132         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
29133
29134 2008-10-09  Bruno Haible  <bruno@clisp.org>
29135
29136         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
29137         * lib/winsock.c: Include <stdarg.h>.
29138         (rpl_ioctl): Change to second argument 'int' and then varargs.
29139
29140 2008-10-09  Bruno Haible  <bruno@clisp.org>
29141
29142         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
29143         when the sys_socket module is present and the system has <winsock2.h>.
29144
29145 2008-10-09  Bruno Haible  <bruno@clisp.org>
29146
29147         * doc/posix-functions/close.texi: Mention module 'close' instead of
29148         module 'sys_socket'.
29149
29150 2008-10-09  Bruno Haible  <bruno@clisp.org>
29151
29152         * doc/glibc-headers/sys_ioctl.texi: New file.
29153         * doc/gnulib.texi: Include it.
29154
29155 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29156             Bruno Haible  <bruno@clisp.org>
29157
29158         Combine the two replacements of 'close'.
29159         * lib/sys_socket.in.h (close): Define to a reminder to include
29160         <unistd.h>.
29161         (_gl_close_fd_maybe_socket): New declaration.
29162         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
29163         * lib/winsock.c (close): Remove undefinition.
29164         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
29165         needed for the gnulib module 'close'.
29166         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
29167         define to an error symbol or to a warning, if suitable.
29168         * lib/close.c: Include <sys/socket.h>.
29169         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
29170         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
29171         UNISTD_H_HAVE_WINSOCK2_H.
29172         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
29173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29174         UNISTD_H_HAVE_WINSOCK2_H.
29175         * modules/sys_socket (Files): Add m4/unistd_h.m4.
29176         (configure.ac): Set a module indicator.
29177         (Makefile.am): Substitute GNULIB_CLOSE.
29178         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
29179         * modules/poll-tests (Depends-on): Add close.
29180         * modules/select-tests (Depends-on): Likewise.
29181
29182 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29183             Bruno Haible  <bruno@clisp.org>
29184
29185         New module 'close'.
29186         * modules/close: New file.
29187         * lib/unistd.in.h (close): Move declaration out of the
29188         FCHDIR_REPLACEMENT scope.
29189         (_gl_unregister_fd): New declaration.
29190         * lib/close.c: New file.
29191         * lib/fchdir.c (rpl_close): Remove function.
29192         * m4/close.m4: New file.
29193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
29194         close.
29195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
29196         REPLACE_CLOSE.
29197         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
29198         REPLACE_CLOSE.
29199         * modules/fchdir (Depends-on): Add close.
29200
29201 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29202             Bruno Haible  <bruno@clisp.org>
29203
29204         * lib/fcntl.in.h (open): Simplify conditionals.
29205         (_gl_register_fd): New declaration.
29206         * lib/fchdir.c (rpl_open): Remove function.
29207         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
29208         also.
29209         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
29210         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
29211         open.
29212
29213 2008-10-09  Jim Meyering  <meyering@redhat.com>
29214
29215         GNUmakefile: use the more name-space-friendly "_version"
29216         * top/GNUmakefile (_dummy): Update.
29217         (_version): Rename from "version".
29218
29219 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29220             Bruno Haible  <bruno@clisp.org>
29221
29222         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
29223         rpl_close.
29224         (_gl_register_fd): New function, extracted from rpl_open.
29225         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
29226         (rpl_open, rpl_opendir): Use _gl_register_fd.
29227
29228 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
29229
29230         Fix organization of 'open' replacement.
29231         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
29232         (gl_FUNC_OPEN): Use it.
29233         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
29234
29235 2008-10-08  Bruno Haible  <bruno@clisp.org>
29236
29237         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
29238
29239 2008-10-08  Simon Josefsson  <simon@josefsson.org>
29240
29241         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
29242         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
29243         listen).
29244
29245 2008-10-08  Eric Blake  <ebb9@byu.net>
29246
29247         GNUmakefile: add 'make version' target
29248         * top/GNUmakefile (_curr-ver): Split version update rules...
29249         (version): ...into a target.
29250
29251 2008-10-07  Bruno Haible  <bruno@clisp.org>
29252
29253         Use a more portable replacement expression for -0.0L.
29254         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
29255         instead of -0.0L. Fix m4 quotation.
29256
29257         * tests/test-signbit.c: Include <float.h>.
29258         (minus_zero): New variable.
29259         (test_signbitl): Use minus_zero instead of -zero.
29260         * modules/signbit-tests (Depends-on): Add float.
29261
29262         * tests/test-ceill.c: Include <float.h>.
29263         (zero): Remove variable.
29264         (minus_zero): New variable.
29265         (main): Use minus_zero instead of -zero.
29266         * modules/ceill-tests (Depends-on): Add float.
29267
29268         * tests/test-floorl.c: Include <float.h>.
29269         (zero): Remove variable.
29270         (minus_zero): New variable.
29271         (main): Use minus_zero instead of -zero.
29272         * modules/floorl-tests (Depends-on): Add float.
29273
29274         * tests/test-roundl.c: Include <float.h>.
29275         (zero): Remove variable.
29276         (minus_zero): New variable.
29277         (main): Use minus_zero instead of -zero.
29278         * modules/roundl-tests (Depends-on): Add float.
29279
29280         * tests/test-truncl.c: Include <float.h>.
29281         (zero): Remove variable.
29282         (minus_zero): New variable.
29283         (main): Use minus_zero instead of -zero.
29284         * modules/truncl-tests (Depends-on): Add float.
29285
29286         * tests/test-frexpl.c (zero): Remove variable.
29287         (minus_zero): New variable.
29288         (main): Use minus_zero instead of -zero.
29289         * modules/frexpl-tests (Depends-on): Add float.
29290
29291         * tests/test-isnan.c (zerol): Remove variable.
29292         (minus_zerol): New variable.
29293         (test_long_double): Use minus_zerol instead of -zerol.
29294         * modules/isnan-tests (Depends-on): Add float.
29295
29296         * tests/test-isnanl.h (zero): Remove variable.
29297         (minus_zero): New variable.
29298         (main): Use minus_zero instead of -zero.
29299         * modules/isnanl-nolibm-tests (Depends-on): Add float.
29300         * modules/isnanl-tests (Depends-on): Add float.
29301
29302         * tests/test-ldexpl.c (zero): Remove variable.
29303         (minus_zero): New variable.
29304         (main): Use minus_zero instead of -zero.
29305         * modules/ldexpl-tests (Depends-on): Add float.
29306
29307         * tests/test-snprintf-posix.h (zerol): Remove variable.
29308         (minus_zerol): New variable.
29309         (test_function): Use minus_zerol instead of -zerol.
29310         * modules/snprintf-posix-tests (Depends-on): Add float.
29311         * modules/vsnprintf-posix-tests (Depends-on): Add float.
29312
29313         * tests/test-sprintf-posix.h (zerol): Remove variable.
29314         (minus_zerol): New variable.
29315         (test_function): Use minus_zerol instead of -zerol.
29316         * modules/sprintf-posix-tests (Depends-on): Add float.
29317         * modules/vsprintf-posix-tests (Depends-on): Add float.
29318
29319         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
29320         (minus_zerol): New variable.
29321         (test_function): Use minus_zerol instead of -zerol.
29322         * modules/vasnprintf-posix-tests (Depends-on): Add float.
29323
29324         * tests/test-vasprintf-posix.c (zerol): Remove variable.
29325         (minus_zerol): New variable.
29326         (test_function): Use minus_zerol instead of -zerol.
29327         * modules/vasprintf-posix-tests (Depends-on): Add float.
29328
29329 2008-10-07  Simon Josefsson  <simon@josefsson.org>
29330
29331         * MODULES.html.sh (Support for building documentation): Mention
29332         pmccabe2html.  Sort entries.
29333
29334         Add pmccabe2html module, from gnupdf.
29335         * build-aux/pmccabe.css: New file.
29336         * build-aux/pmccabe2html: New file.
29337         * m4/pmccabe2html.m4: New file.
29338         * modules/pmccabe2html: New file.
29339
29340 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
29341
29342         flock: new module
29343         * MODULES.html.sh: Add to list of modules.
29344         * lib/flock.c: flock implementation for Windows and Unix systems
29345         which have fcntl.
29346         * doc/glibc-functions/flock.texi: Update documentation.
29347         * lib/sys_file.in.h: <sys/file.h> header file.
29348         * m4/flock.m4: M4 macros.
29349         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
29350         * modules/flock: flock module.
29351         * modules/flock-tests: flock tests module.
29352         * modules/sys_file: sys/file.h module.
29353         * tests/test-flock.c: test suite for flock.
29354
29355 2008-10-06  Jim Meyering  <meyering@redhat.com>
29356
29357         bootstrap: check for LT_INIT more portably still ;-)
29358         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
29359         Spotted by Bruno Haible.
29360
29361 2008-10-06  Eric Blake  <ebb9@byu.net>
29362
29363         test-signbit: avoid tripping Irix cc bug on -0.0L
29364         * tests/test-signbit.c (minus_zerol): Delete, and replace with
29365         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
29366         entire testsuite consistent and avoids an Irix 6.2 bug.
29367
29368 2008-10-05  Bruno Haible  <bruno@clisp.org>
29369             Jim Meyering  <jim@meyering.net>
29370
29371         Add an option for ignoring EPIPE during close_stdout.
29372         * lib/closeout.h: Include <stdbool.h>.
29373         (close_stdout_set_ignore_EPIPE): New declaration.
29374         * lib/closeout.c: Include <stdbool.h>.
29375         (ignore_EPIPE): New variable.
29376         (close_stdout_set_ignore_EPIPE): New function.
29377         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
29378         * lib/close-stream.c (close_stream): Mention the possible EPIPE
29379         failure.
29380         * modules/closeout (Depends-on): Add stdbool.
29381
29382 2008-10-05  Bruno Haible  <bruno@clisp.org>
29383
29384         * modules/accept: New file.
29385         * modules/bind: New file.
29386         * modules/connect: New file.
29387         * modules/getpeername: New file.
29388         * modules/getsockname: New file.
29389         * modules/getsockopt: New file.
29390         * modules/listen: New file.
29391         * modules/recv: New file.
29392         * modules/recvfrom: New file.
29393         * modules/send: New file.
29394         * modules/sendto: New file.
29395         * modules/setsockopt: New file.
29396         * modules/socket: New file.
29397         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
29398         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29399         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
29400         the particular module is requested. Add a link warning when the
29401         particular module is not requested.
29402         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
29403         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
29404         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
29405         the particular module is requested.
29406         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
29407         gl_SYS_SOCKET_H_DEFAULTS): New macros.
29408         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
29409         * modules/sys_socket (Depends-on): Add link-warning.
29410         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
29411         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
29412         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
29413         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
29414         GL_LINK_WARNING.
29415         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
29416         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
29417         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
29418         * doc/posix-functions/getpeername.texi: Mention the new module
29419         'getpeername'.
29420         * doc/posix-functions/getsockname.texi: Mention the new module
29421         'getsockname'.
29422         * doc/posix-functions/getsockopt.texi: Mention the new module
29423         'getsockopt'.
29424         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
29425         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
29426         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
29427         * doc/posix-functions/send.texi: Mention the new module 'send'.
29428         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
29429         * doc/posix-functions/setsockopt.texi: Mention the new module
29430         'setsockopt'.
29431         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
29432         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
29433         listen, connect, accept.
29434         * modules/select-tests (Depends-on): Likewise.
29435
29436 2008-10-05  Bruno Haible  <bruno@clisp.org>
29437
29438         * lib/winsock.c (strerror): Remove unused #undef.
29439         (rpl_close): Remove unused local variable.
29440
29441         * modules/sys_socket (Depends-on); Add errno.
29442
29443 2008-10-05  Bruno Haible  <bruno@clisp.org>
29444
29445         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
29446         (select): Add a link warning when the 'select' module is not used.
29447         * modules/sys_select (Depends-on): Add link-warning.
29448         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
29449         Suggested by Paolo Bonzini.
29450
29451 2008-10-05  Jim Meyering  <meyering@redhat.com>
29452
29453         bootstrap: check for LT_INIT more portably
29454         * build-aux/bootstrap: Avoid using grep -E, since it's not
29455         portable enough.  Suggestion from Bruno Haible.
29456
29457 2008-10-05  Bruno Haible  <bruno@clisp.org>
29458
29459         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
29460         as being fixed by gnulib.
29461
29462 2008-10-05  Bruno Haible  <bruno@clisp.org>
29463
29464         * modules/select-tests: New file, mostly copied from
29465         modules/sys_select-tests.
29466         * tests/test-select.c: New file, mostly copied from
29467         tests/test-sys_select.c.
29468         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
29469         * modules/sys_select-tests (Depends-on): Remove all dependencies.
29470         (Makefile.am): Remove test_sys_select_LDADD.
29471
29472         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
29473         to an undefined symbol, for an error message.
29474         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
29475         (gl_SYS_SELECT_H_DEFAULTS): New macro.
29476         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
29477         winsock-select.c here.
29478         * modules/sys_select (Files): Remove lib/winsock-select.c.
29479         (Depends-on): Remove alloca.
29480         (Makefile.am): Substitute GNULIB_SELECT.
29481         * modules/select: New file.
29482         * doc/posix-functions/select.texi: Update.
29483
29484 2008-10-05  Bruno Haible  <bruno@clisp.org>
29485
29486         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
29487         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
29488         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
29489         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
29490         getdtablesize.
29491         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
29492         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
29493
29494 2008-10-05  Bruno Haible  <bruno@clisp.org>
29495
29496         * modules/getdtablesize-tests: New file.
29497         * tests/test-getdtablesize.c: New file.
29498
29499         New module 'getdtablesize'.
29500         * lib/unistd.in.h (getdtablesize): New declaration.
29501         * lib/getdtablesize.c: New file.
29502         * m4/getdtablesize.m4: New file.
29503         * modules/getdtablesize: New file.
29504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29505         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
29506         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
29507         HAVE_GETDTABLESIZE.
29508         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
29509
29510 2008-10-05  Bruno Haible  <bruno@clisp.org>
29511
29512         * modules/sched (Makefile.am): Fix typo.
29513         Reported by Simon Josefsson.
29514
29515 2008-10-05  Jim Meyering  <meyering@redhat.com>
29516
29517         bootstrap: check for LT_INIT, too
29518         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
29519         are deprecated.  Suggestion from Ralf Wildenhues.
29520
29521 2008-10-05  Bruno Haible  <bruno@clisp.org>
29522
29523         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
29524         overriding them by ours.
29525         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
29526
29527 2008-10-05  Jim Meyering  <meyering@redhat.com>
29528
29529         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
29530         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
29531         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
29532
29533 2008-10-04  Bruno Haible  <bruno@clisp.org>
29534
29535         * modules/dup2 (License): Change to LGPLv2+.
29536         * modules/sleep (License): Likewise.
29537         * modules/perror (License): Likewise.
29538         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
29539         Blake.
29540         * modules/signal (License): Likewise.
29541         * modules/sigprocmask (License): Likewise.
29542         * modules/raise (License): Change to LGPLv2+, with approval by Jim
29543         Meyering.
29544
29545 2008-10-04  Bruno Haible  <bruno@clisp.org>
29546
29547         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
29548         Reported by Rainer Tammer <tammer@tammer.net>.
29549
29550 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
29551             Bruno Haible  <bruno@clisp.org>
29552
29553         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
29554         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
29555         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
29556
29557 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
29558
29559         filevercmp: new module
29560         * lib/filevercmp.h: New function filevercmp comparing version strings.
29561         * lib/filevercmp.c: Implementation of filevercmp function.
29562         * modules/filevercmp: Module metadata.
29563         * tests/test-filevercmp.c: Unit test for new module.
29564         * modules/filevercmp-tests: Unit test metadata.
29565         * MODULES.html.sh: Add filevercmp module.
29566
29567 2008-10-03  Bruno Haible  <bruno@clisp.org>
29568
29569         * lib/c-ctype.h: Add comment.
29570         Reported by Jim Meyering.
29571
29572 2008-10-02  Bruno Haible  <bruno@clisp.org>
29573
29574         * modules/posix_spawn-internal (Depends-on): Add 'open'.
29575
29576 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29577
29578         * build-aux/bootstrap: Allow renaming bootstrap, and change the
29579         name of bootstrap.conf accordingly.
29580
29581 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29582
29583         * build-aux/bootstrap: Install git-merge-changelog configuration
29584         items into .gitconfig if needed.
29585
29586 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29587
29588         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
29589         git repository, and initialize/update it accordingly.
29590
29591 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
29592
29593         * modules/fsync-tests: New file.
29594         * tests/test-fsync.c: New file.
29595
29596         New module 'fsync'.
29597         * lib/fsync.c: New file.
29598         * m4/fsync.m4: New file.
29599         * modules/fsync: New file.
29600         * lib/unistd.in.h (fsync): New declaration.
29601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
29602         GNULIB_FSYNC and HAVE_FSYNC.
29603         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
29604         * MODULES.html.sh (posix_functions): Add fsync.
29605         * doc/posix-functions/fsync.texi: Mention the new module.
29606
29607 2008-10-02  Jim Meyering  <meyering@redhat.com>
29608
29609         fts.c: sync with similar code from coreutils' remove.c
29610         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
29611         Guard also with "#if defined __linux__", since for now at least,
29612         this code is Linux-kernel-specific.
29613
29614 2008-10-02  Jim Meyering  <meyering@redhat.com>
29615
29616         fts: bug fixes
29617         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
29618         Include <sys/vfs.h>, not <sys/statfs.h>.
29619
29620         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
29621         Include <sys/vfs.h>, not <sys/statfs.h>.
29622
29623 2008-10-01  Bruno Haible  <bruno@clisp.org>
29624
29625         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
29626         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
29627         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
29628         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
29629         * doc/posix-functions/posix_spawnp.texi: Likewise.
29630         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
29631         whether posix_spawn actually works.
29632         * m4/pipe.m4 (gl_PIPE): Likewise.
29633         * modules/execute (Files): Add m4/posix_spawn.m4.
29634         * modules/pipe (Files): Add m4/posix_spawn.m4.
29635         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
29636
29637 2008-10-01  Jim Meyering  <meyering@redhat.com>
29638
29639         remove trailing spaces
29640         * NEWS: Likewise.
29641         * lib/poll.c (poll): Likewise.
29642         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
29643         * lib/winsock.c (rpl_close): Likewise.
29644         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
29645         * modules/yield: Likewise.
29646         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
29647         * tests/test-sys_select.c (connect_to_socket): Likewise.
29648
29649         fts.c: adjust a new interface to be more generally useful
29650         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
29651         (fts_build): Adjust caller.
29652
29653 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29654
29655         * modules/cond-tests: New file.
29656         * tests/test-cond.c: New file.
29657
29658 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29659             Bruno Haible  <bruno@clisp.org>
29660
29661         * modules/cond (Dependencies): Add errno, time.
29662         * lib/glthread/cond.h: Include <time.h>.
29663         (gl_cond_define, gl_cond_define_initialized): Use the same definition
29664         across platforms.
29665
29666 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29667             Bruno Haible  <bruno@clisp.org>
29668
29669         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
29670
29671 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29672             Bruno Haible  <bruno@clisp.org>
29673
29674         * modules/tls-tests (Depends-on): Add thread, yield.
29675         (configure.ac): Remove all checks.
29676         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
29677         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29678         gl_thread_self): Remove definitions. Include glthread/thread.h and
29679         glthread/yield.h instead.
29680         (test_tls): Pass an additional NULL argument to gl_thread_join.
29681
29682 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29683             Bruno Haible  <bruno@clisp.org>
29684
29685         * modules/lock-tests (Depends-on): Add thread, yield.
29686         (configure.ac): Remove all checks.
29687         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
29688         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29689         gl_thread_self): Remove definitions. Include glthread/thread.h and
29690         glthread/yield.h instead.
29691         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
29692         additional NULL argument to gl_thread_join.
29693
29694 2008-09-30  Bruno Haible  <bruno@clisp.org>
29695
29696         Fix the Win32 implementation of the 'thread' module.
29697         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
29698         pointer type.
29699         (gl_thread_self): Invoke gl_thread_self_func.
29700         (gl_thread_self_func): New declaration.
29701         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
29702         (do_init_self_key, init_self_key): New functions.
29703         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
29704         Remove some fields.
29705         (running_threads, running_lock): Remove variables.
29706         (get_current_thread_handle): New function.
29707         (gl_thread_self_func, wrapper_func, glthread_create_func,
29708         glthread_join_func, gl_thread_exit_func): Largely rewritten and
29709         simplified.
29710
29711 2008-09-30  Bruno Haible  <bruno@clisp.org>
29712
29713         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
29714         files.
29715
29716 2008-09-30  Jim Meyering  <meyering@redhat.com>
29717
29718         fts.m4: correct the test for statfs.f_type
29719         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
29720         when checking for statfs.f_type.
29721
29722 2008-09-15  Simon Josefsson  <simon@josefsson.org>
29723
29724         tests: avoid some compiler warnings
29725         * tests/test-memchr.c (main): Pass NULL indirectly.
29726         * tests/test-getdate.c (main): Remove unused variable 'ret'.
29727
29728 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
29729
29730         getdate.y: disallow countable dayshifts like "4 yesterday ago"
29731         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
29732         exactly specified dayshifts.
29733         (dayshift): New rule.
29734         (rel): Add dayshift.
29735         (relative_time_table) [tomorrow, yesterday, today, now]:
29736         Use tDAY_SHIFT in place of tDAY_UNIT.
29737         * tests/test-getdate.c: Add tests for now-disallowed countable
29738         dayshifts, e.g., "4 yesterday ago".
29739
29740 2008-09-29  Bruno Haible  <bruno@clisp.org>
29741
29742         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
29743         * tests/test-posix_spawn1.in.sh: Renamed from
29744         tests/test-posix_spawn.in.sh.
29745         * tests/test-posix_spawn2.c: New file.
29746         * tests/test-posix_spawn2.in.sh: New file.
29747         * modules/posix_spawnp-tests (Files): Update.
29748         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
29749
29750 2008-09-29  Bruno Haible  <bruno@clisp.org>
29751
29752         Propagate effects of putenv/setenv/unsetenv to child processes.
29753         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
29754         * lib/pipe.c (create_pipe): Likewise.
29755
29756 2008-09-29  Bruno Haible  <bruno@clisp.org>
29757
29758         Enable use of shell scripts as executables in mingw.
29759         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
29760         run the program as a shell script.
29761         * lib/pipe.c (create_pipe): Likewise.
29762         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
29763         resulting array.
29764
29765 2008-09-29  Eric Blake  <ebb9@byu.net>
29766
29767         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
29768
29769 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
29770
29771         * doc/posix-functions/accept.texi: Update mingw problems.
29772         * doc/posix-functions/bind.texi: Update mingw problems.
29773         * doc/posix-functions/close.texi: Update mingw problems.
29774         * doc/posix-functions/connect.texi: Update mingw problems.
29775         * doc/posix-functions/getpeername.texi: Update mingw problems.
29776         * doc/posix-functions/getsockname.texi: Update mingw problems.
29777         * doc/posix-functions/getsockopt.texi: Update mingw problems.
29778         * doc/posix-functions/ioctl.texi: Update mingw problems.
29779         * doc/posix-functions/listen.texi: Update mingw problems.
29780         * doc/posix-functions/recv.texi: Update mingw problems.
29781         * doc/posix-functions/recvfrom.texi: Update mingw problems.
29782         * doc/posix-functions/select.texi: Update mingw problems.
29783         * doc/posix-functions/send.texi: Update mingw problems.
29784         * doc/posix-functions/sendto.texi: Update mingw problems.
29785         * doc/posix-functions/setsockopt.texi: Update mingw problems.
29786         * doc/posix-functions/socket.texi: Update mingw problems.
29787
29788 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
29789             Bruno Haible  <bruno@clisp.org>
29790
29791         * lib/sys_select.in.h: Include sys/time.h.
29792         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
29793         * modules/sys_select: Depend on sys_time.
29794         * tests/test-sys_select.c: Test that sys/select.h defines struct
29795         timeval fully.
29796
29797 2008-09-29  Bruno Haible  <bruno@clisp.org>
29798
29799         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
29800         * lib/sys_select.in.h: Likewise.
29801
29802 2008-09-29  Bruno Haible  <bruno@clisp.org>
29803
29804         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
29805
29806 2008-09-29  Bruno Haible  <bruno@clisp.org>
29807
29808         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
29809         Set LIBSOCKET instead of augmenting LIBS.
29810         * modules/sockets (Link): New section.
29811         * modules/sockets-tests (test_sockets_LDADD): New variable.
29812         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
29813         * modules/poll-tests (test_poll_LDADD): New variable.
29814         * NEWS: Document the change.
29815
29816 2008-09-29  Bruno Haible  <bruno@clisp.org>
29817
29818         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
29819         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
29820         ARPA_INET_H directly.
29821         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29822
29823 2008-09-28  Bruno Haible  <bruno@clisp.org>
29824
29825         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
29826         from gl_HEADER_SYS_SOCKET.
29827         (gl_HEADER_SYS_SOCKET): Invoke it.
29828         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29829
29830 2008-09-28  Bruno Haible  <bruno@clisp.org>
29831
29832         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
29833         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
29834         Needed on OSF/1 4.0.
29835
29836 2008-09-28  Bruno Haible  <bruno@clisp.org>
29837
29838         Override open more carefully.
29839         * lib/open.c (orig_open): New function.
29840         (rpl_open): Use orig_open instead of open.
29841         * lib/fcntl.in.h: Add special invocation convention.
29842         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
29843         (gl_FUNC_OPEN): Invoke it.
29844
29845         Override freopen more carefully.
29846         * lib/freopen.c (orig_freopen): New function.
29847         (rpl_freopen): Use orig_freopen instead of freopen.
29848         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
29849         (gl_FUNC_FREOPEN): Invoke it.
29850
29851         Override fopen more carefully.
29852         * lib/fopen.c (orig_fopen): New function.
29853         (rpl_fopen): Use orig_fopen instead of fopen.
29854         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
29855         (gl_FUNC_FOPEN): Invoke it.
29856         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
29857
29858 2008-09-28  Bruno Haible  <bruno@clisp.org>
29859
29860         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
29861         SIGPIPE.
29862
29863 2008-09-28  Bruno Haible  <bruno@clisp.org>
29864
29865         * tests/test-sigaction.c (handler, main): Disable the check whether
29866         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
29867         glibc systems with LinuxThreads.
29868
29869 2008-09-28  Bruno Haible  <bruno@clisp.org>
29870
29871         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
29872
29873         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
29874         with AIX xlc.
29875         * lib/fcntl.in.h (open): Likewise.
29876         Reported by Rainer Tammer <tammer@tammer.net>.
29877
29878 2008-09-28  Bruno Haible  <bruno@clisp.org>
29879
29880         * modules/posix_spawnp-tests: New file.
29881         * tests/test-posix_spawn.c: New file.
29882         * tests/test-posix_spawn.in.sh: New file.
29883
29884         New module 'posix_spawnp'.
29885         * modules/posix_spawnp: New file.
29886         * lib/spawnp.c: New file, from GNU libc with modifications.
29887         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
29888
29889         New module 'posix_spawn'.
29890         * modules/posix_spawn: New file.
29891         * lib/spawn.c: New file, from GNU libc with modifications.
29892         * doc/posix-functions/posix_spawn.texi: Mention the new module.
29893
29894         New module 'posix_spawnattr_destroy'.
29895         * modules/posix_spawnattr_destroy: New file.
29896         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
29897         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
29898         module.
29899
29900         New module 'posix_spawnattr_setsigmask'.
29901         * modules/posix_spawnattr_setsigmask: New file.
29902         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
29903         modifications.
29904         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
29905         new module.
29906
29907         New module 'posix_spawnattr_getsigmask'.
29908         * modules/posix_spawnattr_getsigmask: New file.
29909         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
29910         modifications.
29911         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
29912         new module.
29913
29914         New module 'posix_spawnattr_setsigdefault'.
29915         * modules/posix_spawnattr_setsigdefault: New file.
29916         * lib/spawnattr_setdefault.c: New file, from GNU libc with
29917         modifications.
29918         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
29919         new module.
29920
29921         New module 'posix_spawnattr_getsigdefault'.
29922         * modules/posix_spawnattr_getsigdefault: New file.
29923         * lib/spawnattr_getdefault.c: New file, from GNU libc with
29924         modifications.
29925         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
29926         new module.
29927
29928         New module 'posix_spawnattr_setschedpolicy'.
29929         * modules/posix_spawnattr_setschedpolicy: New file.
29930         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
29931         modifications.
29932         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
29933         new module.
29934
29935         New module 'posix_spawnattr_getschedpolicy'.
29936         * modules/posix_spawnattr_getschedpolicy: New file.
29937         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
29938         modifications.
29939         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
29940         new module.
29941
29942         New module 'posix_spawnattr_setschedparam'.
29943         * modules/posix_spawnattr_setschedparam: New file.
29944         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
29945         modifications.
29946         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
29947         new module.
29948
29949         New module 'posix_spawnattr_getschedparam'.
29950         * modules/posix_spawnattr_getschedparam: New file.
29951         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
29952         modifications.
29953         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
29954         new module.
29955
29956         New module 'posix_spawnattr_setpgroup'.
29957         * modules/posix_spawnattr_setpgroup: New file.
29958         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
29959         modifications.
29960         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
29961         module.
29962
29963         New module 'posix_spawnattr_getpgroup'.
29964         * modules/posix_spawnattr_getpgroup: New file.
29965         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
29966         modifications.
29967         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
29968         module.
29969
29970         New module 'posix_spawnattr_setflags'.
29971         * modules/posix_spawnattr_setflags: New file.
29972         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
29973         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
29974         module.
29975
29976         New module 'posix_spawnattr_getflags'.
29977         * modules/posix_spawnattr_getflags: New file.
29978         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
29979         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
29980         module.
29981
29982         New module 'posix_spawnattr_init'.
29983         * modules/posix_spawnattr_init: New file.
29984         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
29985         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
29986         module.
29987
29988         New module 'posix_spawn_file_actions_destroy'.
29989         * modules/posix_spawn_file_actions_destroy: New file.
29990         * lib/spawn_faction_destroy.c: New file, from GNU libc with
29991         modifications.
29992         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
29993         the new module.
29994
29995         New module 'posix_spawn_file_actions_addopen'.
29996         * modules/posix_spawn_file_actions_addopen: New file.
29997         * lib/spawn_faction_addopen.c: New file, from GNU libc with
29998         modifications.
29999         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
30000         the new module.
30001
30002         New module 'posix_spawn_file_actions_adddup2'.
30003         * modules/posix_spawn_file_actions_adddup2: New file.
30004         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
30005         modifications.
30006         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
30007         the new module.
30008
30009         New module 'posix_spawn_file_actions_addclose'.
30010         * modules/posix_spawn_file_actions_addclose: New file.
30011         * lib/spawn_faction_addclose.c: New file, from GNU libc with
30012         modifications.
30013         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
30014         the new module.
30015
30016         New module 'posix_spawn_file_actions_init'.
30017         * modules/posix_spawn_file_actions_init: New file.
30018         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
30019         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
30020         new module.
30021
30022         New module 'posix_spawn-internal'.
30023         * modules/posix_spawn-internal: New file.
30024         * lib/spawn_int.h: New file, from GNU libc with modifications.
30025         * lib/spawni.c: New file, from GNU libc with modifications.
30026         * m4/posix_spawn.m4: New file.
30027
30028         New module 'spawn'.
30029         * modules/spawn: New file.
30030         * lib/spawn.in.h: New file, from GNU libc with modifications.
30031         * m4/spawn_h.m4: New file.
30032         * doc/posix-headers/spawn.texi: Mention the new module.
30033
30034 2008-09-28  Bruno Haible  <bruno@clisp.org>
30035
30036         * modules/sched-tests: New file.
30037         * tests/test-sched.c: New file.
30038
30039         New module 'sched'.
30040         * modules/sched: New file.
30041         * lib/sched.in.h: New file.
30042         * m4/sched_h.m4: New file.
30043         * doc/posix-headers/sched.texi: Mention the new module.
30044
30045 2008-09-27  Eric Blake  <ebb9@byu.net>
30046
30047         Fix previous patch, and tweak references to $0.
30048         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
30049         (func_version, func_gnulib_dir): Don't call this program
30050         gnulib-tool.
30051         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
30052         with using $0 in function.
30053         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
30054         (func_fatal_error): Reuse the name the user invoked us with.
30055
30056 2008-09-27  Bruno Haible  <bruno@clisp.org>
30057
30058         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
30059         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
30060         (gl_ICONV_H): Not here.
30061         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
30062         instead of assigning ICONV_H directly.
30063
30064         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
30065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
30066         WCHAR_H directly.
30067
30068 2008-09-27  Bruno Haible  <bruno@clisp.org>
30069
30070         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
30071         * modules/arpa_inet (Depends-on): Add link-warning.
30072         (Makefile.am): Insert the definition of GL_LINK-WARNING.
30073         * modules/unistd (Makefile.am): Likewise.
30074
30075 2008-09-26  Bruno Haible  <bruno@clisp.org>
30076
30077         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
30078         variables.
30079         (func_version): Essentially copied from gnulib-tool.
30080         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
30081         func_readlink): Copied from gnulib-tool.
30082
30083 2008-09-26  Bruno Haible  <bruno@clisp.org>
30084
30085         * gnulib-tool (func_version): Change directory to $gnulib_dir before
30086         invoking git-version-gen.
30087
30088 2008-09-26  Bruno Haible  <bruno@clisp.org>
30089
30090         * posix-modules: Update to directory names changed on 2008-01-19.
30091         Remove commas in output before splitting into words. No more need to
30092         avoid 'ftruncate' since 2007-02-19.
30093
30094 2008-09-26  Bruno Haible  <bruno@clisp.org>
30095
30096         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
30097
30098 2008-09-26  Bruno Haible  <bruno@clisp.org>
30099
30100         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
30101         * modules/fwriteerror (Depends-on): Add errno.
30102
30103 2008-09-26  Bruno Haible  <bruno@clisp.org>
30104
30105         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
30106         * tests/test-vc-list-files-cvs.sh: Likewise.
30107
30108 2008-09-26  Bruno Haible  <bruno@clisp.org>
30109
30110         * doc/posix-headers/sys_resource.texi: Reorder items.
30111
30112 2008-09-26  Jim Meyering  <meyering@redhat.com>
30113
30114         fts: tweak inode comparison function
30115         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
30116         inode numbers, as documented.
30117
30118         fts: sort dirent entries on inode number before traversing
30119         This avoids a quadratic, seek-related performance penalty when
30120         operating on a directory containing many entries (measurable at 10k;
30121         3.5 hours at 2 million entries with a cold cache) on certain types
30122         of file systems, including ext3 and ext4, but not tmpfs.
30123         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
30124         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
30125         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
30126         (fs_handles_readdir_ordered_dirents_efficiently): New function.
30127         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
30128         (fts_build): Set the stat.st_ino member from D_INO.
30129         If it is likely to be useful, sort dirent entries on inode number.
30130
30131         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
30132         and the struct statfs.f_type member.
30133         * modules/fts (Depends-on): Add d-ino.
30134
30135 2008-09-26  Bruno Haible  <bruno@clisp.org>
30136
30137         * modules/sigpipe-die (Depends-on): Add sigpipe.
30138
30139         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
30140         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
30141         and GNULIB_STDIO_H_SIGPIPE are set.
30142         * lib/stdio-write.c: New file.
30143         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
30144         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
30145         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
30146         REPLACE_STDIO_WRITE_FUNCS.
30147         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
30148         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
30149         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
30150         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
30151         * modules/stdio (Files): Add lib/stdio-write.c.
30152         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
30153         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
30154         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
30155         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
30156         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
30157         REPLACE_FPRINTF_POSIX.
30158         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
30159         REPLACE_PRINTF_POSIX.
30160         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
30161         REPLACE_VFPRINTF_POSIX.
30162         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
30163         REPLACE_VPRINTF_POSIX.
30164         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
30165         SIGPIPE issue.
30166         * doc/posix-functions/fputc.texi: Likewise.
30167         * doc/posix-functions/fputs.texi: Likewise.
30168         * doc/posix-functions/fwrite.texi: Likewise.
30169         * doc/posix-functions/printf.texi: Likewise.
30170         * doc/posix-functions/putc.texi: Likewise.
30171         * doc/posix-functions/putchar.texi: Likewise.
30172         * doc/posix-functions/puts.texi: Likewise.
30173         * doc/posix-functions/vfprintf.texi: Likewise.
30174         * doc/posix-functions/vprintf.texi: Likewise.
30175
30176         * modules/safe-write (Depends-on): Add write.
30177
30178         * modules/sigpipe-tests: New file.
30179         * tests/test-sigpipe.c: New file.
30180         * tests/test-sigpipe.sh: New file.
30181
30182         * modules/write: New file.
30183         * lib/unistd.in.h: Include <sys/types.h>.
30184         (write): New declaration.
30185         * lib/write.c: New file.
30186         * m4/write.m4: New file.
30187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30188         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
30189         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
30190         GNULIB_WRITE, REPLACE_WRITE.
30191         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
30192         and the SIGPIPE issue.
30193
30194         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
30195         (raise): New declaration.
30196         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
30197         (ext_signal): New function.
30198         (rpl_raise): New function.
30199         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
30200         GNULIB_SIGNAL_H_SIGPIPE.
30201         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
30202         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
30203
30204         * modules/sigpipe: New file.
30205         * m4/sigpipe.m4: New file.
30206
30207 2008-09-25  Derek Price  <derek@ximbiot.com>
30208             Bruno Haible  <bruno@clisp.org>
30209
30210         * gnulib-tool (func_import): Report all license incompatibilities, not
30211         just the first one.
30212
30213 2008-09-25  Bruno Haible  <bruno@clisp.org>
30214
30215         * gnulib-tool (func_import): When computing the edits, consider not
30216         only the Makefile.ams that exist but also those that will be generated.
30217
30218 2008-09-25  Simon Josefsson  <simon@josefsson.org>
30219
30220         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
30221         fixes gnulib-tool --test warning about duplicate dependency.
30222
30223 2008-09-25  Bruno Haible  <bruno@clisp.org>
30224
30225         * gnulib-tool: Don't ask the user to perform edits in the generated
30226         Makefile.ams.
30227         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
30228         apply to the Makefile.am being generated.
30229         (func_emit_tests_Makefile_am): Execute edits that apply to the
30230         Makefile.am being generated.
30231         (func_import): Setup list of Makefile.am edits before emitting the
30232         Makefile.ams, not at the end.
30233         (func_create_testdir): Update.
30234         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30235
30236 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30237
30238         * gnulib-tool (func_import): Store the --tests-base option in the
30239         comment in gnulib-cache.m4.
30240
30241 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
30242
30243         * NEWS: Document increased portability that sys_select now provides.
30244
30245         * lib/sys_select.in.h: Install select wrapper.
30246         * lib/sys_socket.in.h: Use more descriptive name when there is no
30247         select wrapper.
30248         * lib/winsock-select.c: New.
30249         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
30250         Require gl_HEADER_SYS_SOCKET.
30251         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
30252         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
30253         * tests/test-sys_select.c: Add functional tests.
30254
30255 2008-09-24  Eric Blake  <ebb9@byu.net>
30256
30257         open, fopen: close fd leak in last patch
30258         * lib/open.c (rpl_open): Close fd before returning error.
30259         * lib/fopen.c (rpl_fopen): Close fd before returning error.
30260         * doc/posix-functions/open.texi (open): Document that Irix also
30261         has the bug.
30262         * doc/posix-functions/fopen.texi (fopen): Likewise.
30263         Reported by Paolo Bonzini.
30264
30265 2008-09-24  Bruno Haible  <bruno@clisp.org>
30266
30267         Ensure that a filename ending in a slash cannot be used to access a
30268         non-directory.
30269         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
30270         to check whether it's really a directory.
30271         * lib/fopen.c: Include fcntl.h, unistd.h.
30272         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
30273         and fdopen().
30274         * modules/fopen (Depends-on): Add unistd.
30275         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
30276         * tests/test-fopen.c (main): Likewise.
30277         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
30278         * doc/posix-functions/fopen.texi: Likewise.
30279         Reported by Eric Blake.
30280
30281 2008-09-23  Eric Blake  <ebb9@byu.net>
30282
30283         c-stack: avoid compiler optimizations when provoking overflow
30284         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
30285         recursion harder to optimize, to ensure a stack overflow occurs.
30286         * tests/test-c-stack.c (recurse): Likewise.
30287         Borrowed from libsigsegv.
30288
30289         c-stack: work around Irix sigaltstack bug
30290         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
30291         whether sigaltstack uses wrong end of stack_t (copied in part from
30292         libsigsegv).
30293         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
30294         Irix bug, without requiring an over-allocation.
30295         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
30296         bug.
30297
30298         fopen: document mingw bug on directories
30299         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
30300         not allowing a stream visiting a directory, even though reading
30301         from such a stream is not portable.
30302
30303 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
30304
30305         * lib/poll.c: Rewrite.
30306         * modules/poll: Depend on alloca.
30307
30308 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
30309
30310         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
30311         instead define prototypes for a full set of wrappers.  Ensure
30312         that Cygwin does not use the compatibility code, which is only
30313         for MinGW.
30314         * lib/winsock.c: New.
30315         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
30316         * modules/sys_socket: Add lib/winsock.c.
30317
30318         * modules/poll-tests: Add errno and perror.
30319         * tests/test-poll.c: Use ioctl, not ioctlsocket.
30320
30321 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
30322
30323         * tests/test-poll.c: Downgrade minimum needed Winsock version.
30324
30325 2008-09-23  Bruno Haible  <bruno@clisp.org>
30326
30327         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
30328         * doc/glibc-functions/*: Likewise.
30329
30330 2008-09-23  Simon Josefsson  <simon@josefsson.org>
30331
30332         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
30333         success.
30334
30335 2008-09-22  Eric Blake  <ebb9@byu.net>
30336             Bruno Haible  <bruno@clisp.org>
30337
30338         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
30339         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
30340         supply %A but mishandle pseudo-NaN.
30341         Reported by Simon Josefsson.
30342
30343 2008-09-21  Bruno Haible  <bruno@clisp.org>
30344
30345         * tests/test-lock.c (main): Tweak skip message.
30346         * tests/test-tls.c (main): Likewise.
30347
30348 2008-09-21  Bruno Haible  <bruno@clisp.org>
30349
30350         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
30351         whether 'struct sigaction' has sa_sigaction here...
30352         (gl_PREREQ_SIG_HANDLER_H): ... not here.
30353         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
30354
30355 2008-09-21  Bruno Haible  <bruno@clisp.org>
30356
30357         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
30358         section.
30359         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
30360         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
30361         the new section.
30362         (Support for obsolete systems lacking POSIX:2001): New section.
30363         (String handling <string.h>): Move strdup to the new section.
30364         Suggested by Simon Josefsson and Paolo Bonzini.
30365
30366 2008-09-21  Bruno Haible  <bruno@clisp.org>
30367
30368         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
30369         exponents in %e and %g results on 'long double'. Needed for mingw's
30370         improved *printf functions.
30371         * tests/test-vasprintf-posix.c (test_function): Likewise.
30372         * tests/test-snprintf-posix.h (test_function): Likewise.
30373         * tests/test-sprintf-posix.h (test_function): Likewise.
30374         Reported by Eric Blake.
30375
30376 2008-09-21  Bruno Haible  <bruno@clisp.org>
30377
30378         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
30379         * tests/test-sprintf-posix.h (test_function): Likewise.
30380
30381 2008-09-21  Bruno Haible  <bruno@clisp.org>
30382
30383         * modules/getpass (Depends-on): Add strdup-posix.
30384
30385         New module 'strdup-posix'.
30386         * modules/strdup-posix: New file.
30387         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
30388         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
30389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30390         REPLACE_STRDUP.
30391         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
30392         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
30393         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30394         strdup-posix.
30395
30396         * modules/strdup (Depends-on): Remove malloc-posix.
30397
30398 2008-09-20  Bruno Haible  <bruno@clisp.org>
30399
30400         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
30401         Wildenhues.
30402
30403 2008-09-20  Bruno Haible  <bruno@clisp.org>
30404
30405         Ensure that wint_t gets defined on IRIX 5.3.
30406         * lib/wchar.in.h (wint_t): Define if not defined by the system.
30407         * lib/wctype.in.h (wint_t): Likewise.
30408         (__wctype_wint_t): Remove type.
30409         (isw*): Use wint_t instead of __wctype_wint_t.
30410         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
30411         * modules/wchar (Files): Add m4/wint_t.m4.
30412         (Makefile.am): Substitute HAVE_WINT_T.
30413         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
30414         * tests/test-wctype.c: Check that wint_t is defined.
30415         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
30416         * doc/posix-headers/wctype.texi: Likewise.
30417         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30418
30419 2008-09-18  Bruno Haible  <bruno@clisp.org>
30420
30421         * gnulib-tool (func_exit): Update comment.
30422
30423 2008-09-18  Simon Josefsson  <simon@josefsson.org>
30424
30425         * modules/getaddrinfo (Depends-on): Remove strdup, this module
30426         assumes strdup exists and does not depend on strdup to return
30427         ENOMEM on out of memory conditions.
30428
30429 2008-09-18  Bruno Haible  <bruno@clisp.org>
30430
30431         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
30432         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
30433         digits for the exponent.
30434
30435 2008-09-18  Jim Meyering  <meyering@redhat.com>
30436             Bruno Haible  <bruno@clisp.org>
30437
30438         * lib/vasnprintf.c (decimal_point_char): Define also if
30439         NEED_PRINTF_INFINITE_LONG_DOUBLE.
30440
30441 2008-09-16  Bruno Haible  <bruno@clisp.org>
30442         and Eric Blake  <ebb9@byu.net>
30443
30444         vasnprintf: support Irix 5.3
30445         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
30446         that mishandle long double infinity.
30447         Reported by Tom G. Christensen.
30448
30449 2008-09-16  Bruno Haible  <bruno@clisp.org>
30450
30451         * doc/glibc-functions/scandir.texi: Mention the function is missing on
30452         Solaris 9.
30453         * doc/glibc-functions/alphasort.texi: Likewise.
30454         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
30455
30456 2008-09-16  Jim Meyering  <meyering@redhat.com>
30457
30458         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
30459         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
30460         a umask modification leak out of a subshell.  Otherwise, the
30461         opensolaris /bin/sh would be accepted and thus cause unwarranted
30462         failures in the coreutils test suite.
30463
30464 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
30465
30466         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
30467         to succeed.
30468
30469 2008-09-16  Jim Meyering  <meyering@redhat.com>
30470
30471         avoid spurious test failure when library is built without ACL support
30472         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
30473         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
30474         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
30475         * tests/test-copy-acl.sh: Likewise.
30476
30477 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30478
30479         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
30480         based on character occurrence counts.
30481
30482 2008-09-15  Eric Blake  <ebb9@byu.net>
30483
30484         tests: avoid some compiler warnings
30485         * tests/test-memchr.c (main): Pass NULL indirectly.
30486         * tests/test-closein.c (main): Avoid unused variable.
30487
30488 2008-09-15  Bruno Haible  <bruno@clisp.org>
30489
30490         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
30491         are missing on OpenBSD 4.0 individually.
30492         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30493
30494 2008-09-15  Bruno Haible  <bruno@clisp.org>
30495
30496         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
30497         * doc/posix-functions/strerror.texi: Mention also Cygwin.
30498         * doc/posix-functions/perror.texi: Likewise.
30499         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
30500         is missing.
30501         Reported by Eric Blake.
30502
30503         * lib/errno.in.h: Use replacement values >= 2000.
30504         Reported by Eric Blake.
30505
30506 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30507
30508         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
30509         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
30510         limit.
30511         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
30512         compareseq was aborted.
30513
30514 2008-09-14  Bruno Haible  <bruno@clisp.org>
30515
30516         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
30517         yvec_edit_count.
30518         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
30519         (fstrcmp_bounded): Simplify result computation accordingly.
30520
30521 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30522
30523         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
30524         (fstrcmp): Define in terms of fstrcmp_bounded.
30525         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
30526         lower_bound argument.
30527         Return quickly if the result is certainly < lower_bound.
30528         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
30529
30530 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30531
30532         * lib/diffseq.h (EARLY_ABORT): New macro.
30533         (compareseq): Change return type to bool. Return true when EARLY_ABORT
30534         evaluates to true.
30535
30536 2008-09-14  Bruno Haible  <bruno@clisp.org>
30537
30538         * modules/perror-tests: New file.
30539         * tests/test-perror.sh: New file.
30540         * tests/test-perror.c: New file.
30541
30542         New module 'perror'.
30543         * lib/stdio.in.h (perror): New declaration.
30544         * lib/perror.c: New file.
30545         * m4/perror.m4: New file.
30546         * modules/perror: New file.
30547         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
30548         * doc/posix-functions/perror.texi: Mention the perror module.
30549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
30550         REPLACE_PERROR.
30551         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
30552         REPLACE_PERROR.
30553
30554 2008-09-14  Bruno Haible  <bruno@clisp.org>
30555
30556         * modules/stdio (Makefile.am): Reorder to match the order in
30557         lib/stdio.in.h.
30558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30559
30560 2008-09-13  Bruno Haible  <bruno@clisp.org>
30561
30562         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
30563
30564 2008-09-13  Bruno Haible  <bruno@clisp.org>
30565
30566         Extend strerror to cover the added errno values.
30567         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
30568         (rpl_strerror): Provide error messages for the added errno values and
30569         for the WSA* values.
30570         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
30571         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
30572         strerror.
30573         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
30574         * modules/strerror (Depends-on): Add errno.
30575         * doc/posix-functions/strerror.texi: Document the change.
30576         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
30577         and EOVERFLOW.
30578
30579 2008-09-13  Bruno Haible  <bruno@clisp.org>
30580
30581         * modules/EOVERFLOW: Remove file.
30582         * m4/eoverflow.m4: Remove file.
30583         * modules/EOVERFLOW-tests: Remove file.
30584         * tests/test-EOVERFLOW.c: Remove file.
30585         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
30586         * modules/ftell (Depends-on): Likewise.
30587         * modules/getdelim (Depends-on): Likewise.
30588         * modules/getugroups (Depends-on): Likewise.
30589         * modules/poll (Depends-on): Likewise.
30590         * modules/snprintf (Depends-on): Likewise.
30591         * modules/sprintf-posix (Depends-on): Likewise.
30592         * modules/vasnprintf (Depends-on): Likewise.
30593         * modules/vasprintf (Depends-on): Likewise.
30594         * modules/vfprintf-posix (Depends-on): Likewise.
30595         * modules/vsnprintf (Depends-on): Likewise.
30596         * modules/vsprintf-posix (Depends-on): Likewise.
30597         * modules/xvasprintf (Depends-on): Likewise.
30598         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30599         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
30600         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
30601         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
30602         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30603         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
30604         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
30605         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
30606         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30607         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
30608         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
30609         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
30610         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30611         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
30612         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
30613         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
30614         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30615         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
30616         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
30617         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
30618         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30619         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
30620         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
30621         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
30622         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
30623         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30624         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
30625         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
30626         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
30627         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
30628         * MODULES.html.sh: Remove EOVERFLOW.
30629         * NEWS: Mention the change.
30630
30631 2008-09-13  Bruno Haible  <bruno@clisp.org>
30632
30633         * modules/errno-tests: New file.
30634         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
30635
30636         * lib/errno.in.h: New file.
30637         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
30638         * modules/errno: New file.
30639         * doc/posix-headers/errno.texi: Update documentation.
30640         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
30641
30642 2008-09-13  Bruno Haible  <bruno@clisp.org>
30643
30644         * tests/test-poll.c: Use #if for native Windows, rather than testing
30645         __MSVCRT__.
30646
30647 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30648             Bruno Haible  <bruno@clisp.org>
30649
30650         * lib/glob.c: Don't include <pwd.h> on native Windows.
30651         (WINDOWS32): New macro.
30652         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
30653
30654 2008-09-13  Bruno Haible  <bruno@clisp.org>
30655
30656         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
30657         (ETIMEDOUT): Remove macro.
30658         (glthread_cond_timedwait_multithreaded): New declaration.
30659         (glthread_cond_timedwait): Use it.
30660         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
30661         (glthread_cond_timedwait_multithreaded): New function.
30662
30663 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30664
30665         * modules/poll-tests: Do not check for io.h.
30666         * tests/test-poll.c: Check for __MSVCRT__ instead.
30667
30668 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30669
30670         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
30671         * modules/poll-tests: Add inet_pton, stdbool, sockets.
30672         * tests/test-poll.c: Use them.  Use _pipe on Windows.
30673
30674 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30675
30676         * modules/poll-tests: New.
30677         * tests/test-poll.c: New.
30678
30679 2008-09-12  Eric Blake  <ebb9@byu.net>
30680
30681         frexp: test for NetBSD failure on -0.0
30682         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
30683         not all, bugs from NetBSD 3.0 have been fixed.
30684         * doc/posix-functions/frexp.texi (frexp): Document bug.
30685         Reported by Thomas Klausner.
30686
30687         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
30688         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
30689         literal -0.0.
30690         Reported by Jonathan C. Patschke <jp@centtech.com>.
30691
30692 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30693
30694         * lib/glthread/cond.h: Use dummy implementation also if
30695         USE_WIN32_THREADS.
30696
30697 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30698
30699         * modules/fnmatch-posix (License): Change to LGPLv2+.
30700         * modules/fnmatch-gnu (License): Likewise.
30701
30702 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30703
30704         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
30705
30706 2008-09-11  Jim Meyering  <meyering@redhat.com>
30707
30708         * users.txt: Add gtk-vnc.
30709
30710 2008-09-08  Simon Josefsson  <simon@josefsson.org>
30711
30712         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
30713         rotate amounts.
30714
30715         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
30716         required for 16-bit and 8-bit rotates.
30717         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
30718         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
30719         UINT8_MAX instead of hard-coded constants.
30720         Suggested by Paul Eggert.
30721
30722 2008-09-07  Bruno Haible  <bruno@clisp.org>
30723
30724         * tests/test-striconveh.c (main): Check behaviour when converting from
30725         UTF-7.
30726
30727         Make striconveh work better with stateful encodings.
30728         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
30729         that iconv does not increment the inptr when returning -1/EINVAL.
30730
30731 2008-09-07  Bruno Haible  <bruno@clisp.org>
30732
30733         * build-aux/config.rpath: Update according to libtool-2.2.6.
30734         * build-aux/config.libpath: Likewise.
30735
30736 2008-09-06  Bruno Haible  <bruno@clisp.org>
30737
30738         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
30739         * lib/freadptr.c (freadptr): Likewise.
30740         * lib/freadseek.c (freadptrinc): Likewise.
30741         Reported by Simon Josefsson.
30742
30743 2008-09-06  Bruno Haible  <bruno@clisp.org>
30744
30745         * modules/freadptr (License): Change to LGPLv2+.
30746         * modules/freadseek (License): Likewise.
30747         Suggested by Eric Blake.
30748
30749         * modules/memchr2 (License): Change to LGPLv2+.
30750         Approved by Eric Blake.
30751
30752 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30753             Bruno Haible  <bruno@clisp.org>
30754
30755         Make gnulib-tool work with native 'sed' on AIX.
30756         * gnulib-tool (sed_noop): New variable.
30757         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
30758         func_add_or_update, func_create_testdir): Use it to initialize sed
30759         script variables.
30760         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30761
30762 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
30763             Bruno Haible  <bruno@clisp.org>
30764
30765         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
30766         also works after #include directives.
30767
30768 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
30769
30770         getdate.y: reject an out-of-range timezone value
30771         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
30772         the range [-24...+24].  When specified with only one or two digits,
30773         * tests/test-getdate.c: Tests for the fix.
30774         * doc/getdate.texi: Document this change.
30775
30776 2008-09-03  Bruno Haible  <bruno@clisp.org>
30777
30778         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
30779
30780 2008-09-02  Simon Josefsson  <simon@josefsson.org>
30781
30782         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
30783         <bruce.korb@gmail.com> with ideas from Ben Pfaff
30784         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
30785         Blake <ebb9@byu.net>.
30786
30787         * tests/test-bitrotate.c: Add more test vectors.
30788
30789 2008-09-02  Eric Blake  <ebb9@byu.net>
30790
30791         vasnprintf-posix: handle large precision via %.*d
30792         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
30793         when handling it ourselves.
30794         * tests/test-vasnprintf-posix.c (test_function): Add test.
30795         * tests/test-snprintf-posix.h (test_function): Likewise.
30796         * tests/test-sprintf-posix.h (test_function): Likewise.
30797         * tests/test-vasprintf-posix.c (test_function): Likewise.
30798         Reported by Alain Guibert.
30799
30800 2008-09-01  Eric Blake  <ebb9@byu.net>
30801
30802         c-stack: make configure-time check more robust
30803         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
30804         successful sigaction call.
30805         Reported by Tom G. Christensen.
30806
30807 2008-09-01  Bruno Haible  <bruno@clisp.org>
30808
30809         New module 'findprog-lgpl'.
30810         * modules/findprog-lgpl: New file.
30811         * lib/findprog-lgpl.c: New file.
30812         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
30813         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
30814         to decide whether to use strdup or xstrdup, concatenated_filename or
30815         xconcatenated_filename.
30816
30817 2008-09-01  Bruno Haible  <bruno@clisp.org>
30818
30819         Split module 'concat-filename' into 'concat-filename' (LGPL) and
30820         'xconcat-filename' (GPL).
30821         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
30822         (License): Change to LGPLv2+.
30823         * modules/xconcat-filename: New file.
30824         * lib/concat-filename.h (concatenated_filename): Change specification.
30825         (xconcatenated_filename): New declaration.
30826         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
30827         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
30828         memory situations.
30829         * lib/xconcat-filename.c: New file.
30830         * NEWS: Mention the change.
30831         * lib/findprog.c: Include concat-filename.h, not filename.h.
30832         (find_in_path): Use xconcatenated_filename instead of
30833         concatenated_filename.
30834         * lib/javacomp.c: Include concat-filename.h, not filename.h.
30835         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
30836         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
30837         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
30838         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
30839         instead of concatenated_filename.
30840         * lib/javaexec.c: Include concat-filename.h, not filename.h.
30841         (execute_java_class): Use xconcatenated_filename instead of
30842         concatenated_filename.
30843         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
30844         * modules/javacomp (Depends-on): Likewise.
30845         * modules/javaexec (Depends-on): Likewise.
30846
30847 2008-09-01  Bruno Haible  <bruno@clisp.org>
30848
30849         Split module 'filename' into 'filename' and 'concat-filename'.
30850         * modules/filename: Keep only lib/filename.h.
30851         (License): Change to LGPLv2+.
30852         * modules/concat-filename: New file, extracted from modules/filename.
30853         * lib/filename.h (concatenated_filename): Remove declaration.
30854         * lib/concat-filename.h: New file, extracted from lib/filename.h.
30855         * lib/concat-filename.c: Include concat-filename.h.
30856         * NEWS: Mention the change.
30857
30858 2008-09-01  Simon Josefsson  <simon@josefsson.org>
30859
30860         * lib/bitrotate.h (rotl8, rotr8): Add.
30861
30862         * modules/bitrotate (configure.ac): Need
30863         AC_REQUIRE([AC_C_INLINE]).
30864         (Description): Mention stdint.h.  Reported by Bruno Haible
30865         <bruno@clisp.org>.
30866
30867         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
30868         Paolo Bonzini <bonzini@gnu.org>.
30869
30870 2008-08-31  Bruno Haible  <bruno@clisp.org>
30871
30872         Assume Solaris specific bi-arch conventions on Solaris systems.
30873         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
30874         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
30875         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
30876         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
30877         like acl_libdirstem.
30878         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
30879         acl_libdirstem.
30880         * NEWS: Mention the change.
30881         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
30882
30883 2008-08-31  Jim Meyering  <meyering@redhat.com>
30884
30885         * lib/strftime.h: Add comments describing the two added arguments.
30886
30887         remove duplicate #include directives
30888         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
30889         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
30890
30891 2008-08-31  Bruno Haible  <bruno@clisp.org>
30892
30893         New module 'sigpipe-die'.
30894         * modules/sigpipe-die: New file.
30895         * lib/sigpipe-die.h: New file.
30896         * lib/sigpipe-die.c: New file.
30897         * MODULES.html.sh (Signal handling): Add sigpipe-die.
30898
30899 2008-08-31  Bruno Haible  <bruno@clisp.org>
30900
30901         Don't override previously installed signal handlers.
30902         * lib/fatal-signal.c (saved_sigactions): New variable.
30903         (uninstall_handlers): Reset the signal to the saved handler, not
30904         to SIG_DFL (except when ignored).
30905         (install_handlers): Save the previous handlers.
30906
30907 2008-08-30  Bruno Haible  <bruno@clisp.org>
30908
30909         * gnulib-tool (func_reset_sigpipe): New function.
30910         (func_get_automake_snippet, func_modules_transitive_closure,
30911         func_import): Invoke it before a join command that reads from stdin,
30912         to avoid "echo: write error: Broken pipe" error messages on stderr.
30913         Reported by Sam Steingold <sds@gnu.org>.
30914
30915 2008-08-30  Bruno Haible  <bruno@clisp.org>
30916
30917         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
30918         Code copied from m4/open.m4.
30919         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
30920         access and the filename ends in a slash. Code copied from lib/open.c.
30921         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
30922         * tests/test-fopen.c (main): Check against bug with trailing slash.
30923
30924 2008-08-29  Bruno Haible  <bruno@clisp.org>
30925
30926         Avoid some "gcc -pedantic" warnings.
30927         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
30928         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
30929         * lib/dirent.in.h: Likewise.
30930         * lib/fcntl.in.h: Likewise.
30931         * lib/float.in.h: Likewise.
30932         * lib/iconv.in.h: Likewise.
30933         * lib/inttypes.in.h: Likewise.
30934         * lib/locale.in.h: Likewise.
30935         * lib/math.in.h: Likewise.
30936         * lib/netinet_in.in.h: Likewise.
30937         * lib/search.in.h: Likewise.
30938         * lib/signal.in.h: Likewise.
30939         * lib/stdarg.in.h: Likewise.
30940         * lib/stdint.in.h: Likewise.
30941         * lib/stdio.in.h: Likewise.
30942         * lib/stdlib.in.h: Likewise.
30943         * lib/string.in.h: Likewise.
30944         * lib/strings.in.h: Likewise.
30945         * lib/sys_select.in.h: Likewise.
30946         * lib/sys_socket.in.h: Likewise.
30947         * lib/sys_stat.in.h: Likewise.
30948         * lib/sys_time.in.h: Likewise.
30949         * lib/sysexits.in.h: Likewise.
30950         * lib/time.in.h: Likewise.
30951         * lib/unistd.in.h: Likewise.
30952         * lib/wchar.in.h: Likewise.
30953         * lib/wctype.in.h: Likewise.
30954         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
30955         * modules/fchdir (Makefile.am): Likewise.
30956         * modules/fcntl (Makefile.am): Likewise.
30957         * modules/float (Makefile.am): Likewise.
30958         * modules/iconv_open (Makefile.am): Likewise.
30959         * modules/inttypes (Makefile.am): Likewise.
30960         * modules/locale (Makefile.am): Likewise.
30961         * modules/math (Makefile.am): Likewise.
30962         * modules/netinet_in (Makefile.am): Likewise.
30963         * modules/search (Makefile.am): Likewise.
30964         * modules/signal (Makefile.am): Likewise.
30965         * modules/stdarg (Makefile.am): Likewise.
30966         * modules/stdint (Makefile.am): Likewise.
30967         * modules/stdio (Makefile.am): Likewise.
30968         * modules/stdlib (Makefile.am): Likewise.
30969         * modules/string (Makefile.am): Likewise.
30970         * modules/strings (Makefile.am): Likewise.
30971         * modules/sys_select (Makefile.am): Likewise.
30972         * modules/sys_socket (Makefile.am): Likewise.
30973         * modules/sys_stat (Makefile.am): Likewise.
30974         * modules/sys_time (Makefile.am): Likewise.
30975         * modules/sysexits (Makefile.am): Likewise.
30976         * modules/time (Makefile.am): Likewise.
30977         * modules/unistd (Makefile.am): Likewise.
30978         * modules/wchar (Makefile.am): Likewise.
30979         * modules/wctype (Makefile.am): Likewise.
30980         Reported by Reuben Thomas <rrt@sc3d.org>.
30981
30982 2008-08-29  Bruno Haible  <bruno@clisp.org>
30983
30984         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
30985         any more.
30986
30987 2008-08-29  Simon Josefsson  <simon@josefsson.org>
30988
30989         * MODULES.html.sh (Misc): Add bitrotate.
30990
30991         * modules/bitrotate: New file.
30992
30993         * lib/bitrotate.h: New file.
30994
30995         * modules/bitrotate-tests: New file.
30996
30997         * tests/test-bitrotate.c: New file.
30998
30999         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
31000         on the bitrotate module.
31001
31002         * lib/arctwo.c: Use new bitrotate module.
31003
31004 2008-08-29  Jim Meyering  <meyering@redhat.com>
31005
31006         bootstrap: merge changes from coreutils
31007         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
31008         of copied files.  Remove a kludge, now that this is fixed.
31009         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
31010         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
31011         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
31012
31013 2008-08-29  Bruno Haible  <bruno@clisp.org>
31014
31015         * MODULES.html.sh: Remove --cvs-urls option.
31016
31017 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
31018
31019         maint.mk: adjust to file name change
31020         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
31021
31022 2008-08-28  Jim Meyering  <meyering@redhat.com>
31023
31024         * modules/getndelim2 (License): Relicense to LGPLv2+.
31025         Approved by Richard Stallman for the version of 1995, and by
31026         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
31027
31028 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
31029
31030         * lib/getdelim.c (flockfile, funlockfile): Make all of them
31031         dummy if one is not available.  Do not touch them if
31032         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
31033         (getc_maybe_unlocked): New.
31034         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
31035
31036 2008-08-26  Eric Blake  <ebb9@byu.net>
31037
31038         doc/INSTALL: resync from autoconf
31039         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
31040         (INSTALL_PRELUDE): Delete; this is done more efficiently by
31041         moving...
31042         * install.texi [!autoconf]: ...here.  Resync from autoconf.
31043         * INSTALL: Regenerate.
31044         * INSTALL.ISO: New file.
31045         * INSTALL.UTF-8: Likewise.
31046
31047 2008-08-26  Jim Meyering  <meyering@redhat.com>
31048
31049         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
31050         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
31051         these definitions conditional, so that they may be overridden, too.
31052
31053 2008-08-26  Bruno Haible  <bruno@clisp.org>
31054
31055         Generate INSTALL file variants with prettier quotes.
31056         * doc/Makefile (INSTALL_PRELUDE): New macro.
31057         (INSTALL): Use it.
31058         (INSTALL.ISO, INSTALL.UTF-8): New rules.
31059
31060 2008-08-26  Bruno Haible  <bruno@clisp.org>
31061
31062         Run makeinfo in an English locale.
31063         * doc/Makefile (MAKEINFO): New variable.
31064
31065 2008-08-26  Bruno Haible  <bruno@clisp.org>
31066
31067         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
31068         Suggested by Eric Blake.
31069
31070 2008-08-25  Bruno Haible  <bruno@clisp.org>
31071
31072         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
31073
31074 2008-08-25  Eric Blake  <ebb9@byu.net>
31075
31076         c-stack: test that stack overflow can be caught
31077         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
31078         that platform allows handling stack overflow; at least OS/2 EMX
31079         has sigaltstack, but crashes before transferring control to
31080         handler on stack overflow.
31081         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
31082         check for HAVE_STACK_OVERFLOW_HANDLING.
31083         Reported by Elbert Pol.
31084
31085 2008-08-25  Bruno Haible  <bruno@clisp.org>
31086
31087         * doc/posix-functions/strftime.texi: Fix description of strftime
31088         module.
31089
31090 2008-08-24  Bruno Haible  <bruno@clisp.org>
31091
31092         * tests/uniwidth/test-uc_width2.c: New file.
31093         * tests/uniwidth/test-uc_width2.sh: New file.
31094         * modules/uniwidth/width-tests (Files): Add the new files.
31095         (TESTS): Add uniwidth/test-uc_width2.sh.
31096         (TESTS_ENVIRONMENT): New variable.
31097         (check_PROGRAMS): Add test-uc_width2.
31098         (test_uc_width2_SOURCES): New variable.
31099
31100         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
31101         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
31102         not 0x00AB.
31103         Reported by Alexander V. Lukyanov <lav@netis.ru>.
31104
31105 2008-08-22  Eric Blake  <ebb9@byu.net>
31106
31107         test-lock, test-tls: mention why a test is skipped
31108         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
31109         skipped.
31110         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
31111
31112         count-one-bits: relax license
31113         * modules/count-one-bits (License): Relicense to LGPLv2+.
31114         Suggested by Ludovic Courtès, approved by Ben Pfaff.
31115
31116 2008-08-22  Andreas Schwab  <schwab@suse.de>
31117
31118         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31119         Remove spurious space in assignment.
31120
31121 2008-08-21  Simon Josefsson  <simon@josefsson.org>
31122
31123         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
31124         Paul Eggert <eggert@CS.UCLA.EDU>.
31125
31126 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
31127
31128         * modules/gettext: Add m4/threadlib.m4.
31129
31130 2008-08-19  Eric Blake  <ebb9@byu.net>
31131
31132         test-c-stack: fix compilation failure on FreeBSD 5.0
31133         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
31134         headers before <sys/resource.h>.
31135         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
31136         the bug.
31137         Reported by Nelson H. F. Beebe.
31138
31139         strverscmp: migrate from "strverscmp.h" to <string.h>
31140         * modules/string (Makefile.am): Add new hooks.
31141         * modules/strverscmp (Files): Remove strverscmp.h.
31142         (Depends-on): Add string.
31143         (configure.ac): Add indicator.
31144         (Include): Mention new header.
31145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
31146         defaults.
31147         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
31148         results.
31149         * lib/strverscmp.h: Delete.
31150         * lib/string.in.h (strverscmp): Provide declaration, when needed.
31151         * tests/test-strverscmp.c (includes): Adjust client.
31152         * lib/check-version.c (includes): Likewise.
31153         * NEWS: Document the change.
31154
31155         strverscmp: add unit test
31156         * modules/strverscmp-tests: New file.
31157         * tests/test-strverscmp.c: Likewise.
31158
31159 2008-08-19  Simon Josefsson  <simon@josefsson.org>
31160
31161         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
31162         regarding Windows crypto stuff, from Mono.
31163
31164 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
31165
31166         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
31167         if present, for intel RND.  Return error on failures.
31168
31169 2008-08-18  Ben Pfaff  <blp@gnu.org>
31170
31171         gitlog-to-changelog: give better diagnostic for failed pipe-open
31172         * build-aux/gitlog-to-changelog: Improve error message: suggest
31173         that the version of Git may be too old.
31174
31175 2008-08-18  Simon Josefsson  <simon@josefsson.org>
31176
31177         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
31178         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
31179
31180 2008-08-18  Bruno Haible  <bruno@clisp.org>
31181
31182         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
31183         pthread_in_use().
31184
31185 2008-08-18  Bruno Haible  <bruno@clisp.org>
31186
31187         * lib/glthread/threadlib.c: Include <pthread.h>.
31188
31189 2008-08-18  Bruno Haible  <bruno@clisp.org>
31190
31191         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
31192         glthread_recursive_lock_* macros.
31193         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
31194         Fix syntax error.
31195
31196 2008-08-18  Bruno Haible  <bruno@clisp.org>
31197
31198         * lib/glthread/thread.c: Avoid forcing a context switch right after
31199         thread creation.
31200
31201 2008-08-17  Bruno Haible  <bruno@clisp.org>
31202
31203         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
31204         * lib/glthread/thread.h: Provide Win32 specific implementation.
31205         * modules/thread (Files): Add lib/glthread/thread.c.
31206         (Depends-on): Add lock.
31207         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
31208
31209 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31210
31211         New module 'yield'.
31212         * modules/yield: New file.
31213         * lib/glthread/yield.h: New file.
31214         * m4/yield.m4: New file.
31215         * MODULES.html.sh (Multithreading): Add yield.
31216
31217 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31218
31219         New module 'thread'.
31220         * modules/thread: New file.
31221         * lib/glthread/thread.h: New file.
31222         * m4/thread.m4: New file.
31223         * MODULES.html.sh (Multithreading): Add thread.
31224
31225 2008-08-17  Bruno Haible  <bruno@clisp.org>
31226
31227         * lib/glthread/lock.h: Include <stdlib.h> always.
31228         * lib/glthread/tls.h: Likewise.
31229         * lib/glthread/cond.h: Likewise.
31230
31231 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31232
31233         New module 'cond'.
31234         * modules/cond: New file.
31235         * lib/glthread/cond.h: New file.
31236         * lib/glthread/cond.c: New file.
31237         * m4/cond.m4: New file.
31238         * MODULES.html.sh (Multithreading): Add cond.
31239
31240 2008-08-16  Eric Blake  <ebb9@byu.net>
31241
31242         c-stack: fix regression on Irix 5.3 from 2008-06-21
31243         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
31244         sa_sigaction...
31245         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
31246         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
31247         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
31248         * modules/signal (Makefile.am): Use the value.
31249         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
31250         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
31251         * doc/posix-headers/signal.texi (signal.h): Document this
31252         portability issue.
31253         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
31254         Reported by Tom G. Christensen.
31255
31256 2008-08-17  Bruno Haible  <bruno@clisp.org>
31257
31258         New module 'threadlib'.
31259         * modules/threadlib: New file.
31260         * lib/glthread/threadlib.c: New file, extracted from
31261         lib/glthread/lock.c.
31262         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
31263         functions.
31264         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
31265         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
31266         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
31267         macros.
31268         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
31269         (gl_DISABLE_THREADS): Remove macro.
31270         * modules/lock (Files): Remove build-aux/config.rpath.
31271         (Depends-on): Remove havelib. Add threadlib.
31272         (configure.ac-early): Remove section.
31273         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
31274         * modules/tls (Depends-on): Remove lock. Add threadlib.
31275         (Link): New section, copied from threadlib.
31276         * MODULES.html.sh (Multithreading): Add threadlib.
31277
31278 2008-08-14  Bruno Haible  <bruno@clisp.org>
31279
31280         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
31281         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
31282         glthread_rwlock_unlock, glthread_rwlock_destroy,
31283         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
31284         glthread_recursive_lock_destroy): Define as macros always.
31285         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
31286         glthread_lock_lock.
31287         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
31288         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
31289         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
31290         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
31291         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
31292         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
31293         (glthread_recursive_lock_lock_func): Renamed from
31294         glthread_recursive_lock_lock.
31295         (glthread_recursive_lock_unlock_func): Renamed from
31296         glthread_recursive_lock_unlock.
31297         (glthread_recursive_lock_destroy_func): Renamed from
31298         glthread_recursive_lock_destroy.
31299
31300 2008-08-14  Bruno Haible  <bruno@clisp.org>
31301
31302         * lib/glthread/lock.h: Renamed from lib/lock.h.
31303         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
31304         * lib/glthread/tls.h: Renamed from lib/tls.h.
31305         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
31306         * lib/fstrcmp.c: Update includes.
31307         * lib/strsignal.c: Update includes.
31308         * modules/lock (Files, Makefile.am): Update.
31309         (Include): Change to "glthread/lock.h".
31310         * modules/tls (Files, Makefile.am): Update.
31311         (Include): Change to "glthread/tls.h".
31312         * tests/test-lock.c: Update includes.
31313         * tests/test-tls.c: Update includes.
31314         * NEWS: Mention the renamed header files.
31315
31316 2008-08-11  Jim Meyering  <meyering@redhat.com>
31317
31318         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
31319
31320 2008-08-11  Eric Blake  <ebb9@byu.net>
31321
31322         test-c-stack: avoid C99-ism
31323         * tests/test-c-stack.c (main): Fix whitespace, move declaration
31324         before statement.
31325         Reported by Alain Guibert.
31326
31327 2008-08-10  Jim Meyering  <meyering@redhat.com>
31328
31329         ensure that return value of uinttostr et al are not ignored
31330         * lib/inttostr.h (__GNUC_PREREQ): Define.
31331         (__attribute_warn_unused_result__): Define.
31332         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
31333
31334 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
31335
31336         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
31337         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
31338
31339 2008-08-07  Jim Meyering  <meyering@redhat.com>
31340
31341         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
31342
31343         * modules/mkstemp (License): Relicense under LGPLv2+.
31344         * modules/tempname (License): Likewise.
31345
31346 2008-08-06  Bruno Haible  <bruno@clisp.org>
31347
31348         * lib/poll.c (poll): Further micro-optimization.
31349
31350 2008-08-06  Jim Meyering  <meyering@redhat.com>
31351
31352         inet_pton.c: use locale-independent tolower
31353         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
31354         (inet_pton6): Use c_tolower rather than tolower.
31355         * modules/inet_pton (Depends-on): Add c-ctype.
31356
31357 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
31358
31359         * lib/poll.c (poll): Avoid division when timeout is 0, cache
31360         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
31361
31362 2008-08-06  Jim Meyering  <meyering@redhat.com>
31363
31364         * modules/inet_pton (License): Relicense under LGPLv2+.
31365
31366 2008-08-03  Bruno Haible  <bruno@clisp.org>
31367
31368         Additional non-aborting API for lock and tls.
31369         * lib/lock.h: Include <errno.h>.
31370         (glthread_lock_init): New macro/function.
31371         (gl_lock_init): Define as wrapper around glthread_lock_init.
31372         (glthread_lock_lock): New macro/function.
31373         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
31374         (glthread_lock_unlock): New macro/function.
31375         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
31376         (glthread_lock_destroy): New macro/function.
31377         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
31378         (glthread_rwlock_init): New macro/function.
31379         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
31380         (glthread_rwlock_rdlock): New macro/function.
31381         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
31382         (glthread_rwlock_wrlock): New macro/function.
31383         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
31384         (glthread_rwlock_unlock): New macro/function.
31385         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
31386         (glthread_rwlock_destroy): New macro/function.
31387         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
31388         (glthread_recursive_lock_init): New macro/function.
31389         (gl_recursive_lock_init): Define as wrapper around
31390         glthread_recursive_lock_init.
31391         (glthread_recursive_lock_lock): New macro/function.
31392         (gl_recursive_lock_lock): Define as wrapper around
31393         glthread_recursive_lock_lock.
31394         (glthread_recursive_lock_unlock): New macro/function.
31395         (gl_recursive_lock_unlock): Define as wrapper around
31396         glthread_recursive_lock_unlock.
31397         (glthread_recursive_lock_destroy): New macro/function.
31398         (gl_recursive_lock_destroy): Define as wrapper around
31399         glthread_recursive_lock_destroy.
31400         (glthread_once): New macro/function.
31401         (gl_once): Define as wrapper around glthread_once.
31402         Update function declarations.
31403         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
31404         glthread_rwlock_init. Return error code.
31405         (glthread_rwlock_rdlock_multithreaded): Renamed from
31406         glthread_rwlock_rdlock. Return error code.
31407         (glthread_rwlock_wrlock_multithreaded): Renamed from
31408         glthread_rwlock_wrlock. Return error code.
31409         (glthread_rwlock_unlock_multithreaded): Renamed from
31410         glthread_rwlock_unlock. Return error code.
31411         (glthread_rwlock_destroy_multithreaded): Renamed from
31412         glthread_rwlock_destroy. Return error code.
31413         (glthread_recursive_lock_init_multithreaded): Renamed from
31414         glthread_recursive_lock_init. Return error code.
31415         (glthread_recursive_lock_lock_multithreaded): Renamed from
31416         glthread_recursive_lock_lock. Return error code.
31417         (glthread_recursive_lock_unlock_multithreaded): Renamed from
31418         glthread_recursive_lock_unlock. Return error code.
31419         (glthread_recursive_lock_destroy_multithreaded): Renamed from
31420         glthread_recursive_lock_destroy. Return error code.
31421         (glthread_once_call): Make static.
31422         (glthread_once_multithreaded): Renamed from glthread_once.
31423         * lib/tls.h: Include <errno.h>.
31424         (glthread_tls_key_init): New macro/function.
31425         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
31426         (glthread_tls_set): New macro/function.
31427         (gl_tls_set): Define as wrapper around glthread_tls_set.
31428         (glthread_tls_key_destroy): New macro/function.
31429         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
31430         Update function declarations.
31431         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
31432         glthread_tls_get.
31433         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
31434
31435 2008-08-04  Eric Blake  <ebb9@byu.net>
31436
31437         gnumakefile: use space, not TAB, outside of targets
31438         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
31439
31440 2008-08-02  Jim Meyering  <meyering@redhat.com>
31441
31442         getdate.y: avoid locale-dependent date parsing failure
31443         In Turkish locales, getdate would fail to recognize keywords
31444         containing a lowercase "i".  The solution is not to rely on
31445         locale-sensitive case-conversion.
31446         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
31447         (lookup_word): Use c_toupper in place of toupper.
31448         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
31449         Reported by Vefa Bicakci <bicave@superonline.com> in
31450         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
31451         * modules/getdate (Depends-on): Add c-ctype.
31452
31453 2008-08-02  Bruno Haible  <bruno@clisp.org>
31454
31455         * gnulib-tool (func_import): When updating or creating a .gitignore
31456         file, prepend each added line with a slash, and ignore leading slashes
31457         from the existing lines.
31458         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31459
31460 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31461
31462         Portability fix for GNU make 3.79.1.
31463         * top/GNUmakefile: Avoid 'else COND', which older GNU make
31464         versions do not understand.
31465
31466 2008-08-01  Bruno Haible  <bruno@clisp.org>
31467
31468         Work around bug of HP-UX 10.20 cc with -0.0 literal.
31469         * tests/test-isnanf.h (zero): New variable.
31470         (main): Avoid literal -0.0f.
31471         * tests/test-isnand.h (zero): New variable.
31472         (main): Avoid literal -0.0.
31473         * tests/test-isnanl.h (zero): New variable.
31474         (main): Avoid literal -0.0L.
31475         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
31476         (test_float, test_double, test_long_double): Avoid literals -0.0f,
31477         -0.0, -0.0L.
31478         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
31479         (test_signbitd): Avoid literal -0.0.
31480         (test_signbitl): Avoid literal -0.0L.
31481         * tests/test-ceilf1.c (zero): New variable.
31482         (main): Avoid literal -0.0f.
31483         * tests/test-ceill.c (zero): New variable.
31484         (main): Avoid literal -0.0L.
31485         * tests/test-floorf1.c (zero): New variable.
31486         (main): Avoid literal -0.0f.
31487         * tests/test-floorl.c (zero): New variable.
31488         (main): Avoid literal -0.0L.
31489         * tests/test-roundf1.c (zero): New variable.
31490         (main): Avoid literal -0.0f.
31491         * tests/test-round1.c (zero): New variable.
31492         (main): Avoid literal -0.0.
31493         * tests/test-roundl.c (zero): New variable.
31494         (main): Avoid literal -0.0L.
31495         * tests/test-truncf1.c (zero): New variable.
31496         (main): Avoid literal -0.0f.
31497         * tests/test-trunc1.c (zero): New variable.
31498         (main): Avoid literal -0.0.
31499         * tests/test-truncl.c (zero): New variable.
31500         (main): Avoid literal -0.0L.
31501         * tests/test-frexp.c (zero): New variable.
31502         (main): Avoid literal -0.0.
31503         * tests/test-frexpl.c (zero): New variable.
31504         (main): Avoid literal -0.0L.
31505         * tests/test-ldexpl.c (zero): New variable.
31506         (main): Avoid literal -0.0L.
31507         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
31508         (zerod, zerol): New variables.
31509         (test_function): Avoid literals -0.0, -0.0L.
31510         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
31511         (zerod, zerol): New variables.
31512         (test_function): Avoid literals -0.0, -0.0L.
31513         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
31514         (zerod, zerol): New variables.
31515         (test_function): Avoid literals -0.0, -0.0L.
31516         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
31517         (zerod, zerol): New variables.
31518         (test_function): Avoid literals -0.0, -0.0L.
31519         * tests/test-strtod.c (zero): New variable.
31520         (main): Avoid literal -0.0.
31521         Reported by Jonathan C. Patschke <jp@centtech.com>.
31522
31523 2008-07-31  Jim Meyering  <meyering@redhat.com>
31524
31525         sha256.h: correct definition of SHA224_DIGEST_SIZE
31526         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
31527         Reported by Paulie Pena IV <paulie4@gmail.com>.
31528         Define as 224 / 8, rather than as a literal.
31529         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
31530         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
31531         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
31532
31533 2008-07-31  Bruno Haible  <bruno@clisp.org>
31534
31535         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
31536         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
31537         Reported by Jonathan Patschke <jp@centtech.com>.
31538
31539 2008-07-31  Bruno Haible  <bruno@clisp.org>
31540
31541         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
31542         Reported by Paolo Bonzini <bonzini@gnu.org>.
31543
31544 2008-07-30  Eric Blake  <ebb9@byu.net>
31545
31546         test-strtod: allow compilation without -lm
31547         * tests/test-strtod.c (main): Avoid link dependence on fabs.
31548         Reported by Dennis Clarke <blastwave@gmail.com>.
31549
31550 2008-07-28  Jim Meyering  <meyering@redhat.com>
31551
31552         bootstrap: work also when there are no .po files in po/
31553         * build-aux/bootstrap (update_po_files): Complete the change
31554         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
31555
31556 2008-07-27  Jim Meyering  <meyering@redhat.com>
31557
31558         * users.txt: Add zile.
31559
31560 2008-07-26  Ben Pfaff  <blp@gnu.org>
31561
31562         Add missing dependencies on new m4/exponent[fdl].m4 files.
31563         * modules/isnanf-nolibm: Add m4/exponentf.m4.
31564         * modules/isnand-nolibm: Add m4/exponentd.m4.
31565         * modules/isnanl-nolibm: Add m4/exponentl.m4.
31566         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
31567         m4/isnan[fdl].m4, because the macros actually used moved.
31568         Reported by Jim Meyering.
31569
31570 2008-07-14  Ben Pfaff  <blp@gnu.org>
31571
31572         Add isinf module.
31573         * lib/isinf.c: New file.
31574         * lib/math.in.h: Define isinf macro if we have decided to replace
31575         it.
31576         * m4/isinf.m4: New file.
31577         * m4/math_h.m4: Initialize and substitute variables for isinf
31578         module.
31579         * modules/isinf: New file.
31580         * modules/isinf-tests: New file.
31581         * modules/math: Add substitutions for new module.
31582         * tests/test-isinf.c: New file.
31583         * doc/posix-functions/isinf.texi: Mention new module.
31584         * MODULES.html.sh: Mention new module.
31585
31586 2008-07-14  Ben Pfaff  <blp@gnu.org>
31587
31588         Factor out some macros for use by additional modules.
31589         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
31590         exponentf.m4.
31591         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
31592         exponentd.m4.
31593         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
31594         file exponentl.m4.
31595         * m4/exponentf.m4: New file.
31596         * m4/exponentd.m4: New file.
31597         * m4/exponentl.m4: New file.
31598         * modules/isnanf: Use new file m4/exponentf.m4.
31599         * modules/isnand: Use new file m4/exponentd.m4.
31600         * modules/isnanl: Use new file m4/exponentl.m4.
31601
31602 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
31603
31604         mktime.c: normalize tp->tm_isdst value to -1/0/1.
31605         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
31606         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
31607         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
31608
31609         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
31610         readlink on platforms without PATH_MAX.
31611
31612 2008-07-21  Eric Blake  <ebb9@byu.net>
31613
31614         Warn, not fail, on stale version.
31615         * top/GNUmakefile (_curr-ver): Tone down previous patch.
31616
31617         Don't allow installation with stale devel version number.
31618         * top/GNUmakefile (_is-install-target): New macro.
31619         (_curr-ver): Forbid installation with stale version number.
31620
31621 2008-07-20  Bruno Haible  <bruno@clisp.org>
31622
31623         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
31624         TESTS_ENVIRONMENT.
31625         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
31626
31627 2008-07-20  Bruno Haible  <bruno@clisp.org>
31628
31629         * lib/c-stack.h (c_stack_action): Add documentation.
31630         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
31631
31632 2008-07-20  Bruno Haible  <bruno@clisp.org>
31633
31634         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
31635         * modules/readlink (License): Likewise.
31636
31637 2008-07-17  Eric Blake  <ebb9@byu.net>
31638
31639         * modules/c-stack (Link): Fix typo.
31640
31641         Make c-stack use libsigsegv, when available.
31642         * modules/c-stack (Depends-on): Add libsigsegv.
31643         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
31644         needed.
31645         * lib/c-stack.c (SIGSTKSZ): Define fallback.
31646         (segv_handler, overflow_handler, c_stack_action)
31647         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
31648         implementation when libsigsegv is available, but only when using
31649         the library is necessary.
31650         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
31651         comment, explaining why XSI check fails on Linux.
31652         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
31653         * tests/test-c-stack2.sh: Tweak skip message.
31654         * NEWS: Document new link-time requirements.
31655
31656 2008-07-16  Eric Blake  <ebb9@byu.net>
31657
31658         c-stack: Expose false positives when not using libsigsegv.
31659         * modules/c-stack-tests (Files): Expand test.
31660         * tests/test-c-stack.c (main): Add means to conditionally trigger
31661         non-overflow SIGSEGV.
31662         * tests/test-c-stack2.sh: New file.
31663
31664 2008-07-14  Bruno Haible  <bruno@clisp.org>
31665
31666         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
31667         Reported by Eric Blake.
31668
31669 2008-07-14  Sam Steingold  <sds@gnu.org>
31670             Bruno Haible  <bruno@clisp.org>
31671
31672         New module libsigsegv.
31673         * modules/libsigsegv: New file.
31674         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
31675         modifications.
31676         * MODULES.html.sh (Signal handling): New section.
31677
31678 2008-07-14  Bruno Haible  <bruno@clisp.org>
31679
31680         * modules/unictype/ctype-* (Description): Add the word "function".
31681         Improves the resulting doc in MODULES.html.
31682
31683 2008-07-12  Ben Pfaff  <blp@gnu.org>
31684
31685         Add longlong module.
31686         * modules/longlong: New file.
31687
31688 2008-07-12  Bruno Haible  <bruno@clisp.org>
31689
31690         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
31691         to empty.
31692
31693 2008-07-10  Ben Pfaff  <blp@gnu.org>
31694
31695         Add isnan module.
31696         * doc/posix-functions/isnan.texi: Mention new module.
31697         * lib/math.in.h: Define isnan macro if we have decided to replace
31698         it.
31699         * m4/isnan.m4: New file.
31700         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
31701         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
31702         also.
31703         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
31704         redundancy.
31705         * m4/math_h.m4: Initialize and substitute variables for isnan
31706         module.
31707         * modules/isnan: New file.
31708         * modules/isnan-tests: New file.
31709         * modules/math: Add substitutions for new module.
31710         * tests/test-isnan.c: New file.
31711         * MODULES.html.sh: Mention new module.
31712
31713 2008-07-10  Ben Pfaff  <blp@gnu.org>
31714
31715         Add isnanf module.
31716         * lib/isnanf.m4: New file.
31717         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
31718         (gl_HAVE_ISNANF_IN_LIBM): New macro.
31719         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
31720         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
31721         * modules/isnanf: New file.
31722         * modules/isnanf-tests: New file.
31723         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
31724         files.
31725         * tests/test-isnanf-nolibm.c: factored most of its contents into
31726         new file tests/test-isnanf.h.
31727         * tests/test-isnanf.h: New file.
31728         * tests/test-isnanf.c: New file.
31729         * MODULES.html.sh: Mention new module.
31730         * doc/glibc-functions/isnanf.texi: Mention new module.
31731
31732 2008-07-10  Ben Pfaff  <blp@gnu.org>
31733
31734         Add isnand module.
31735         * lib/isnand.h: New file.
31736         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
31737         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
31738         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
31739         functionality also.
31740         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
31741         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
31742         (gl_HAVE_ISNAND_IN_LIBM): New macro.
31743         * modules/isnand: New file.
31744         * modules/isnand-tests: New file.
31745         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
31746         files.
31747         * tests/test-isnand-nolibm.c: factored most of its contents into
31748         new file tests/test-isnand.h.
31749         * tests/test-isnand.h: New file.
31750         * tests/test-isnand.c: New file.
31751         * MODULES.html.sh: Mention new module.
31752
31753 2008-07-10  Ben Pfaff  <blp@gnu.org>
31754
31755         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
31756         * lib/isnand.h: Rename lib/isnand-nolibm.h.
31757         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
31758         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
31759         * modules/isnanf-nolibm: Update references to renamed files.
31760         * modules/isnand-nolibm: Likewise.
31761         * modules/isnanf-nolibm-tests: Likewise.
31762         * modules/isnand-nolibm-tests: Likewise.
31763         * lib/frexp.c: Likewise.
31764         * lib/isfinite.c: Likewise.
31765         * lib/signbitd.c: Likewise.
31766         * lib/signbitf.c: Likewise.
31767         * lib/vasnprintf.c: Likewise.
31768         * tests/test-ceilf1.c: Likewise.
31769         * tests/test-ceilf2.c: Likewise.
31770         * tests/test-floorf1.c: Likewise.
31771         * tests/test-floorf2.c: Likewise.
31772         * tests/test-frexp.c: Likewise.
31773         * tests/test-round1.c: Likewise.
31774         * tests/test-round2.c: Likewise.
31775         * tests/test-roundf1.c: Likewise.
31776         * tests/test-strtod.c: Likewise.
31777         * tests/test-trunc1.c: Likewise.
31778         * tests/test-trunc2.c: Likewise.
31779         * tests/test-truncf1.c: Likewise.
31780         * tests/test-truncf2.c: Likewise.
31781         * NEWS: Mention the renamed header files.
31782
31783 2008-07-11  Jim Meyering  <meyering@redhat.com>
31784
31785         vc-list-files: make the last-resort awk code more portable
31786         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
31787         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
31788         does not support it.
31789
31790 2008-07-10  Eric Blake  <ebb9@byu.net>
31791
31792         Work with tar's bootstrap.
31793         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
31794         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
31795         an m4 comment.
31796
31797 2008-07-09  Jim Meyering  <meyering@redhat.com>
31798
31799         posix-shell.m4: fix typo that made this test malfunction
31800         * m4/posix-shell.m4: Remove capitalization in variable name.
31801
31802 2008-07-08  Bruno Haible  <bruno@clisp.org>
31803
31804         * m4/onceonly.m4: Update comments.
31805         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31806
31807 2008-07-04  Jim Meyering  <meyering@redhat.com>
31808
31809         * users.txt: Add vc-dwim.
31810         (bison, coreutils): Use the gitweb URL.
31811
31812 2008-07-03  Jim Meyering  <meyering@redhat.com>
31813
31814         * users.txt: Add libffcall.  From Sam Steingold.
31815
31816 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
31817
31818         getdate.y: do not ignore TZ with relative day, month or year offset
31819         * lib/getdate.y (get_date): Move the tz-handling block to follow the
31820         relative-date-handling, since otherwise, the latter would clobber the
31821         sole output (an updated Start value) of the tz-handling block.
31822         * tests/test-getdate.c: Tests for the fix
31823
31824 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31825
31826         Recognize 'foo_LIBRARIES += libgnu.a'.
31827         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
31828         makefile snippet has already specified an installation location,
31829         also using '+='.
31830
31831 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
31832
31833         getdate.y: factor out common actions
31834         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
31835         Use them in place of open-coded actions.
31836
31837 2008-07-01  Simon Josefsson  <simon@josefsson.org>
31838
31839         Add self-test for getdate module.
31840         * modules/getdate-tests: New file.
31841         * tests/test-getdate.c: New file.
31842
31843 2008-06-29  Bruno Haible  <bruno@clisp.org>
31844
31845         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
31846         .gitignore.
31847         Reported by Sylvain Beucler <beuc@beuc.net>.
31848
31849 2008-06-29  Bruno Haible  <bruno@clisp.org>
31850
31851         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
31852         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
31853
31854 2008-06-29  Bruno Haible  <bruno@clisp.org>
31855
31856         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
31857         EXTRA_DIST.
31858         Reported by Sylvain Beucler <beuc@beuc.net>.
31859
31860 2008-06-26  Jim Meyering  <meyering@redhat.com>
31861
31862         make several modules depend on the "open" module
31863         This provides slightly increased consistency when opening-for-write
31864         the name of a non-directory spelled with a trailing slash.
31865         * modules/chdir-safer: Likewise.
31866         * modules/chown: Likewise.
31867         * modules/clean-temp: Likewise.
31868         * modules/copy-file: Likewise.
31869         * modules/fchdir: Likewise.
31870         * modules/fcntl-safer: Likewise.
31871         * modules/pipe: Likewise.
31872         * modules/utime: Likewise.
31873         Prompted by Eric Blake and Bruno Haible.
31874
31875 2008-06-24  Andreas Schwab  <schwab@suse.de>
31876
31877         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
31878         literals can be used as initializers for global variables.
31879
31880 2008-06-23  Eric Blake  <ebb9@byu.net>
31881
31882         Make gnulib-cache.m4 easier to diff.
31883         * gnulib-tool (func_import): Allow newlines when reading cached
31884         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
31885
31886 2008-06-23  Bruno Haible  <bruno@clisp.org>
31887
31888         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
31889         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
31890         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
31891         m4/signalblocking.m4.
31892         (gl_PREREQ_SIGACTION): Don't invoke it.
31893         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
31894         gl_PREREQ_SIG_HANDLER_H.
31895         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31896         Don't check for sigaction here.
31897
31898 2008-06-23  Bruno Haible  <bruno@clisp.org>
31899
31900         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
31901         (install_handlers): Don't set the SA_RESETHAND flag.
31902
31903 2008-06-23  Bruno Haible  <bruno@clisp.org>
31904
31905         * m4/sigaction.m4: Comment fixes.
31906         * lib/signal.in.h: Likewise.
31907
31908 2008-06-23  Eric Blake  <ebb9@byu.net>
31909
31910         Fix typo.
31911         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
31912
31913         Avoid SA_ namespace.
31914         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
31915         Reported by Ralf Wildenhues.
31916
31917         Avoid test failure due to SA_RESTORER.
31918         * tests/test-sigaction.c (SA_MASK): New macro.
31919         (main): Avoid failing due to extension flags being set.
31920         Reported by Jim Meyering.
31921
31922         Revert use of sig-handler.h in sigprocmask.c.
31923         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
31924         it requires the existence of struct sigaction.
31925         * lib/sigprocmask.c (handler_t): Restore typedef.
31926         (rpl_signal, old_handlers): Use local type.
31927
31928 2008-06-22  Bruno Haible  <bruno@clisp.org>
31929
31930         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
31931         conditionally.
31932         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31933
31934 2008-06-22  Bruno Haible  <bruno@clisp.org>
31935
31936         * doc/posix-functions/siginterrupt.texi: Move note.
31937
31938         * lib/signal.in.h (SA_RESTART): New macro.
31939         * lib/sigaction.c: Update comment.
31940
31941         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
31942
31943         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
31944         (gl_PREREQ_SIGPROCMASK): Invoke it.
31945         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
31946
31947         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
31948
31949         * lib/sigprocmask.c: Update a comment.
31950
31951 2008-06-21  Eric Blake  <ebb9@byu.net>
31952
31953         Use sigaction module rather than signal().
31954         * modules/c-stack (Depends-on): Add sigaction.
31955         * modules/fatal-signal (Depends-on): Likewise.
31956         * modules/nanosleep (Depends-on): Likewise.
31957         * modules/sigprocmask (Files): Add sig-handler.h.
31958         * modules/sigaction (Files): Likewise.
31959         * lib/sig-handler.h (get_handler): New file, suggested by Paul
31960         Eggert.
31961         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
31962         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
31963         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
31964         (init_fatal_signals): Likewise.
31965         * lib/nanosleep.c (rpl_nanosleep): Likewise.
31966         (siginterrupt): Delete fallback.
31967         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
31968         instead.
31969         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
31970         siginterrupt.
31971
31972         New module sigaction, for mingw.
31973         * modules/sigaction: New module...
31974         * modules/sigaction-tests: ...and its test.
31975         * m4/sigaction.m4: New file.
31976         * lib/sigaction.c: Likewise.
31977         * tests/test-sigaction.c: Likewise.
31978         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
31979         * modules/signal (Makefile.am): Likewise.
31980         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
31981         needed.
31982         * doc/posix-headers/signal.texi (signal.h): Mention provided
31983         types.
31984         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
31985         that sigaction is preferable.
31986         * doc/posix-functions/sigaction.texi (sigaction): Mention new
31987         module.
31988         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31989         sigaction.
31990
31991         Improve robustness of sigprocmask by overriding signal.
31992         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
31993         is in use.
31994         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
31995         (SIGKILL, SIGSTOP): Provide fallbacks.
31996         (rpl_signal): Implement.
31997         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
31998         signal can be called inside handlers.
31999
32000         Fix nanosleep module on mingw.
32001         * modules/nanosleep (Depends-on): Add sys_select.
32002         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
32003
32004         Fix licensing of sigprocmask.
32005         * modules/raise (License): Relicense as LGPL.
32006
32007 2008-06-21  Bruno Haible  <bruno@clisp.org>
32008
32009         * lib/propername.c (proper_name_utf8): Don't use the transliterated
32010         result if it contains question marks.
32011         Reported by Michael Geng <linux@michaelgeng.de>.
32012
32013 2008-06-19  Bruno Haible  <bruno@clisp.org>
32014
32015         Fix CVS-ism.
32016         * doc/gnulib.texi: Include updated-stamp.texi.
32017         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
32018         (updated-stamp.texi): New rule.
32019         (gnulib.info): Depend on it.
32020         * doc/.gitignore: Add updated-stamp.texi.
32021         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
32022
32023 2008-06-19  Bruno Haible  <bruno@clisp.org>
32024
32025         * doc/Makefile (gnulib.info): Update and simplify dependencies.
32026         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32027
32028 2008-06-19  Eric Blake  <ebb9@byu.net>
32029
32030         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
32031         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
32032         Reported by Stepan Kasal.
32033
32034 2008-06-18  Bruno Haible  <bruno@clisp.org>
32035
32036         * lib/fatal-signal.c (init_fatal_signals): Add comment.
32037         Reported by Eric Blake.
32038
32039 2008-06-18  Eric Blake  <ebb9@byu.net>
32040
32041         Work around cygwin 1.5.25 strsignal bug.
32042         * tests/test-strsignal.c: Allow for const char *.
32043         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
32044
32045 2008-06-18  Simon Josefsson  <simon@josefsson.org>
32046
32047         * users.txt: Update URL to article and add author/date
32048         information.
32049
32050 2008-06-17  Bruno Haible  <bruno@clisp.org>
32051
32052         New macro gl_DISABLE_THREADS.
32053         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
32054         if the user did not pass --enable-threads or --disable-threads option.
32055         (gl_DISABLE_THREADS): New macro.
32056         Reported by Eric Blake <ebb9@byu.net>.
32057
32058 2008-06-17  Bruno Haible  <bruno@clisp.org>
32059
32060         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
32061         when the macro ignores it.
32062         Based on a patch by Eric Blake <ebb9@byu.net>.
32063
32064 2008-06-17  Bruno Haible  <bruno@clisp.org>
32065
32066         * modules/tls (License): Change to LGPLv2+.
32067         Reported by Eric Blake.
32068
32069 2008-06-17  Eric Blake  <ebb9@byu.net>
32070
32071         Simplify c-stack prerequisites.
32072         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
32073         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
32074         no longer requires <ucontext.h> to exist.  Optimize setrlimit
32075         check.
32076         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
32077         <sys/resource.h>.
32078
32079         Move c-stack test into testsuite.
32080         * modules/c-stack-tests: New file.
32081         * lib/c-stack.c [DEBUG]: Move test program...
32082         * tests/test-c-stack.c: ...into this new file.  Skip rather than
32083         fail test if sigaltstack is lacking.
32084         * tests/test-c-stack.sh: New driver file.
32085
32086 2008-06-16  Eric Blake  <ebb9@byu.net>
32087
32088         Use raise module consistently.
32089         * modules/fatal-signal (Depends-on): Add raise.
32090         * modules/sigprocmask (Depends-on): Likewise.
32091         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
32092         * lib/sigprocmask.c (sigprocmask): Likewise.
32093         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32094         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
32095
32096         Fix compliance bug in sigpending.
32097         * lib/sigprocmask.c (sigpending): Return pending array via
32098         parameter, not return value.
32099
32100 2008-06-14  Eric Blake  <ebb9@byu.net>
32101
32102         Improve obstack-printf test code.
32103         * tests/test-obstack-printf.c (test_function): Fix comment, and
32104         simplify usage of obstack_* in macros.  Add a test for coverage.
32105         Reported by Bruno Haible.
32106
32107 2008-06-14  Bruno Haible  <bruno@clisp.org>
32108
32109         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
32110         array size as a constant, not as a const variable.
32111         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
32112         AC_USE_SYSTEM_EXTENSIONS.
32113         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32114         Test whether the obstack_printf function actually exists.
32115         * modules/obstack-printf (Depends-on): Add extensions.
32116         (Include): Remove obstack.h.
32117         * modules/obstack-printf-posix (Depends-on): Add extensions.
32118         (Include): Remove obstack.h.
32119
32120 2008-06-13  Eric Blake  <ebb9@byu.net>
32121
32122         Add obstack-printf and obstack-printf-posix modules.
32123         * modules/obstack-printf: New file.
32124         * modules/obstack-printf-posix: Likewise.
32125         * MODULES.html.sh (Misc): Mention them.
32126         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32127         Likewise.
32128         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32129         Likewise.
32130         * modules/stdio (Makefile.am): Accomodate new modules.
32131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32132         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
32133         Declare.
32134         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
32135         functions.
32136         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
32137         (gl_REPLACE_OBSTACK_PRINTF): New macros
32138         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
32139         * tests/test-obstack-printf.c: New file.
32140         * modules/obstack-printf-tests: Likewise.
32141         * modules/obstack-printf-posix-tests: Likewise.
32142
32143 2008-06-11  Bruno Haible  <bruno@clisp.org>
32144
32145         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
32146         * lib/open.c: Include errno.h.
32147         (open): Fail when attempting to write to a file that has a trailing
32148         slash.
32149         * tests/test-open.c (main): Test against trailing slash bug.
32150         * doc/posix-functions/open.texi: Mention the trailing slash bug.
32151
32152 2008-06-10  Bruno Haible  <bruno@clisp.org>
32153
32154         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
32155         for $? to work inside the trap command, with various /bin/sh-s.
32156         * tests/test-vc-list-files-cvs.sh: Likewise.
32157
32158 2008-06-10  Bruno Haible  <bruno@clisp.org>
32159
32160         * lib/acl-internal.h: Don't include gettext.h here.
32161         * lib/set-mode-acl.c: Include gettext.h here.
32162         * lib/copy-acl.c: Likewise.
32163
32164 2008-06-10  Bruno Haible  <bruno@clisp.org>
32165
32166         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
32167         * lib/wait-process.c (wait_subprocess): Likewise.
32168         * lib/execute.h (execute): Add termsigp argument.
32169         * lib/execute.c (execute): Likewise.
32170         * lib/csharpcomp.c (compile_csharp_using_pnet,
32171         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
32172         * lib/csharpexec.c (execute_csharp_using_pnet,
32173         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
32174         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
32175         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
32176         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
32177         is_jikes_present): Update.
32178         * lib/javaexec.c (execute_java_class): Update.
32179         * lib/javaversion.c (execute_and_read_line): Update.
32180         * NEWS: Document the changes.
32181         Reported by Eric Blake.
32182
32183 2008-06-10  Eric Blake  <ebb9@byu.net>
32184
32185         Add missing include.
32186         * tests/test-strstr.c (includes): Add <signal.h>.
32187         * tests/test-strcasestr.c (includes): Likewise.
32188         * tests/test-memmem.c (includes): Likewise.
32189
32190 2008-06-10  Bruno Haible  <bruno@clisp.org>
32191
32192         * lib/wait-process.c (wait_subprocess): Add an assertion.
32193
32194 2008-06-10  Bruno Haible  <bruno@clisp.org>
32195
32196         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
32197
32198 2008-06-10  Bruno Haible  <bruno@clisp.org>
32199
32200         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
32201         using alarm().
32202         * tests/test-strcasestr.c (main): Likewise.
32203         * tests/test-strstr.c (main): Likewise.
32204
32205 2008-06-09  Bruno Haible  <bruno@clisp.org>
32206
32207         Work around the Solaris 10 ACE ACLs ABI change.
32208         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
32209         declare if ACL_NO_TRIVIAL is present.
32210         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
32211         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
32212         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
32213         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
32214         define if ACL_NO_TRIVIAL is present.
32215         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
32216         and use the current ABI.
32217         (file_has_acl): Use same #if condition as elsewhere.
32218         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
32219         in use, and use the current ABI.
32220         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
32221         Reported by Jim Meyering.
32222
32223 2008-06-09  Eric Blake  <ebb9@byu.net>
32224
32225         Work around environments that (stupidly) ignore SIGALRM.
32226         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
32227         before using alarm().
32228         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32229         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32230         Reported by Ian Beckwith <ianb@erislabs.net>.
32231
32232         Produce autobuild blurb earlier in log.
32233         * modules/autobuild (configure.ac-early): Move AB_INIT here.
32234
32235 2008-06-09  Jim Meyering  <meyering@redhat.com>
32236         and OndÅ™ej Vašík  <ovasik@redhat.com>
32237
32238         utimens.c: correct kernel bug work-around
32239         OndÅ™ej Vašík found that the invalid return value of 280 indicates
32240         failure, not success, and the kernel bug we're trying to work
32241         around affects not just the utimensat call, but also the fallback
32242         futimens call.
32243         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
32244         not success.
32245         [HAVE_FUTIMENS]: Use the same work-around, here.
32246
32247 2008-06-09  Jim Meyering  <meyering@redhat.com>
32248
32249         add more guards around definition of ACE_-related code
32250         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
32251         ALLOW and ACE_OWNER are also defined.
32252
32253 2008-06-08  Bruno Haible  <bruno@clisp.org>
32254
32255         * lib/acl-internal.h: Add me as co-author.
32256         * lib/file-has-acl.c: Likewise.
32257         * lib/set-mode-acl.c: Likewise.
32258         * lib/copy-acl.c: Likewise.
32259
32260 2008-06-08  Bruno Haible  <bruno@clisp.org>
32261
32262         Add support for AIX ACLs.
32263         * lib/acl-internal.h (acl_nontrivial): New declaration.
32264         * lib/file-has-acl.c (acl_nontrivial): New function.
32265         (file_has_acl): Add implementation using AIX 4 ACL API.
32266         * lib/set-mode-acl.c (qset_acl): Likewise.
32267         * lib/copy-acl.c (qcopy_acl): Likewise.
32268
32269 2008-06-08  Bruno Haible  <bruno@clisp.org>
32270
32271         Add support for HP-UX ACLs.
32272         * lib/acl-internal.h (acl_nontrivial): New declaration.
32273         * lib/file-has-acl.c (acl_nontrivial): New function.
32274         (file_has_acl): Add implementation using HP-UX 11 ACL API.
32275         * lib/set-mode-acl.c (qset_acl): Likewise.
32276         * lib/copy-acl.c (qcopy_acl): Likewise.
32277
32278 2008-06-08  Bruno Haible  <bruno@clisp.org>
32279
32280         Add support for Cygwin ACLs.
32281         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
32282         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
32283         the chmod_or_fchmod call.
32284         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
32285
32286 2008-06-08  Bruno Haible  <bruno@clisp.org>
32287
32288         Fix bug with setuid modes in Solaris 10+ code.
32289         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
32290         succeeded, when the mode contains some special bits.
32291
32292 2008-06-08  Bruno Haible  <bruno@clisp.org>
32293
32294         Add support for Solaris 7..10 ACLs.
32295         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
32296         declarations.
32297         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
32298         functions.
32299         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
32300         * lib/set-mode-acl.c (qset_acl): Likewise.
32301         * lib/copy-acl.c (qcopy_acl): Likewise.
32302
32303 2008-06-08  Bruno Haible  <bruno@clisp.org>
32304
32305         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
32306         declaration.
32307         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
32308         (acl_access_nontrivial): Remove MacOS X case.
32309         (file_has_acl): Use acl_extended_nontrivial.
32310         * lib/copy-acl.c (qcopy_acl): Likewise.
32311
32312 2008-06-08  Bruno Haible  <bruno@clisp.org>
32313
32314         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
32315
32316 2008-06-08  Jim Meyering  <meyering@redhat.com>
32317
32318         * modules/acl (Maintainer): Add Bruno Haible.
32319
32320 2008-06-07  Bruno Haible  <bruno@clisp.org>
32321
32322         Improve support for Tru64 ACLs.
32323         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
32324         ACL on OSF/1.
32325
32326 2008-06-07  Bruno Haible  <bruno@clisp.org>
32327
32328         Add support for MacOS X ACLs.
32329         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
32330         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
32331         * lib/set-mode-acl.c (qset_acl): Likewise.
32332         * lib/copy-acl.c (qcopy_acl): Likewise.
32333
32334 2008-06-07  Bruno Haible  <bruno@clisp.org>
32335
32336         Fix memory leak introduced on 2008-05-22.
32337         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
32338         use.
32339
32340 2008-06-07  Bruno Haible  <bruno@clisp.org>
32341
32342         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
32343         to construct an empty ACL.
32344
32345 2008-06-07  Bruno Haible  <bruno@clisp.org>
32346
32347         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
32348         precisely.
32349         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
32350
32351 2008-06-07  Bruno Haible  <bruno@clisp.org>
32352
32353         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
32354         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
32355
32356 2008-06-07  Bruno Haible  <bruno@clisp.org>
32357
32358         * doc/posix-functions/_setjmp.texi: Explain the use of this function
32359         regardless of POSIX.
32360         * doc/posix-functions/_longjmp.texi: Likewise.
32361         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
32362         SystemV platform in this case.
32363
32364 2008-06-06  Eric Blake  <ebb9@byu.net>
32365
32366         Document abort() bugs.
32367         * doc/posix-functions/abort.texi (abort): Mention anomalies.
32368
32369         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
32370         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
32371         sigsetjmp.
32372         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
32373         siglongjmp, but only as a macro.
32374         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
32375         is obsolete.
32376         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
32377
32378         Tweak documentation to cover cygwin argz bugs.
32379         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
32380         argz bug fix; no code change needed since no cygwin releases
32381         occurred between the last fix and the bug being tested.
32382         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
32383         module and recently fixed cygwin bugs.
32384         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
32385         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
32386         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
32387         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
32388         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
32389         Likewise.
32390         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
32391         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
32392         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
32393         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
32394         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
32395         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
32396         Likewise.
32397
32398         Avoid gcc warning on cygwin.
32399         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
32400         !ACL_NO_TRIVIAL]: Avoid unused variable.
32401
32402 2008-06-05  Eric Blake  <ebb9@byu.net>
32403
32404         Be tolerant of UNKNOWN version in gnulib-tool test dir.
32405         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
32406         git-version-gen fails to come up with a version.
32407         Reported by Simon Josefsson.
32408
32409 2008-06-05  Jim Meyering  <meyering@redhat.com>
32410             Paul Eggert  <eggert@cs.ucla.edu>
32411
32412         utimens.c: work around a probable Linux kernel bug
32413         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
32414         appears to be a kernel bug that causes utimensat to return 280
32415         instead of 0, indicating success.
32416
32417 2008-06-04  Bruno Haible  <bruno@clisp.org>
32418
32419         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
32420         2008-06-01 commit.
32421
32422 2008-06-04  Bruno Haible  <bruno@clisp.org>
32423
32424         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
32425         * lib/file-has-acl.c (acl_access_nontrivial): New function.
32426         (file_has_acl): Use it. Save errno afterwards.
32427         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
32428
32429 2008-06-03  Bruno Haible  <bruno@clisp.org>
32430
32431         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
32432         draft code. Simplify #ifs.
32433         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
32434         Put Solaris code after POSIX-draft code. Fix comments regarding
32435         Solaris 10, HP-UX. Mention Cygwin.
32436         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
32437
32438 2008-06-03  Eric Blake  <ebb9@byu.net>
32439
32440         Provide fallback for older kernels.
32441         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
32442         Provide runtime fallback if kernel lacks support.
32443         Reported by Mike Frysinger.
32444
32445 2008-06-02  Bruno Haible  <bruno@clisp.org>
32446
32447         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
32448         it exists.
32449
32450 2008-06-02  Bruno Haible  <bruno@clisp.org>
32451
32452         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
32453         * lib/copy-acl.c (qcopy_acl): Update comment.
32454
32455 2008-06-02  Bruno Haible  <bruno@clisp.org>
32456
32457         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
32458         like ACL APIs.
32459
32460 2008-06-02  Bruno Haible  <bruno@clisp.org>
32461
32462         * tests/test-file-has-acl.sh: Use different code for Cygwin.
32463         * tests/test-set-mode-acl.sh: Likewise.
32464         * tests/test-copy-acl.sh: Likewise.
32465         * tests/test-copy-file.sh: Likewise.
32466
32467 2008-06-02  Bruno Haible  <bruno@clisp.org>
32468
32469         * tests/test-file-has-acl.sh: Remove unused code.
32470
32471 2008-06-01  Bruno Haible  <bruno@clisp.org>
32472
32473         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
32474         (copy_acl): Just a wrapper around qcopy_acl that emits the error
32475         messages.
32476         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
32477
32478 2008-06-01  Bruno Haible  <bruno@clisp.org>
32479
32480         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
32481         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
32482         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
32483         APIs.
32484         * modules/acl-tests (configure.ac): Remove tests now contained in
32485         m4/acl.m4.
32486
32487 2008-06-02  Jim Meyering  <meyering@redhat.com>
32488
32489         announce-gen: use a better key-server host name
32490         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
32491         it may be more consistently reliable.  Suggested by Werner Koch
32492         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
32493
32494 2008-06-01  Bruno Haible  <bruno@clisp.org>
32495
32496         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
32497         Reported by Voroskoi Andras <voroskoi@gmail.com>.
32498
32499 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
32500
32501         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
32502
32503 2008-06-01  Bruno Haible  <bruno@clisp.org>
32504
32505         New ACL tests.
32506         * tests/test-file-has-acl.sh: New file.
32507         * tests/test-file-has-acl.c: New file.
32508         * tests/test-set-mode-acl.sh: New file.
32509         * tests/test-set-mode-acl.c: New file.
32510         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
32511         * tests/test-copy-acl.c: New file.
32512         * modules/acl-tests: New file, based on modules/copy-file-tests.
32513         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
32514         (Depends-on): Add acl-tests.
32515         (configure.ac): Remove checks.
32516         (Makefile.am): Don't create test-sameacls program here any more.
32517
32518 2008-06-01  Bruno Haible  <bruno@clisp.org>
32519
32520         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
32521         * tests/test-sameacls.c: Include progname.h.
32522         (main): Invoke set_program_name. Portability fixes for MacOS X,
32523         Solaris, HP-UX.
32524
32525 2008-06-01  Bruno Haible  <bruno@clisp.org>
32526
32527         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
32528         function.
32529         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
32530
32531 2008-06-01  Bruno Haible  <bruno@clisp.org>
32532
32533         * modules/rpmatch (Depends-on): Add strdup.
32534
32535 2008-06-01  Bruno Haible  <bruno@clisp.org>
32536
32537         * lib/pipe.c: Include unistd-safer.h.
32538         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
32539         * modules/pipe (Depends-on): Add unistd-safer.
32540
32541 2008-05-30  Simon Josefsson  <simon@josefsson.org>
32542
32543         * modules/autobuild (configure.ac): Call AB_INIT.
32544
32545 2008-05-30  Simon Josefsson  <simon@josefsson.org>
32546
32547         * tests/test-getaddrinfo.c: Don't print debug messages by default.
32548         Suggested by Bruno Haible <bruno@clisp.org>.
32549
32550 2008-05-30  Simon Josefsson  <simon@josefsson.org>
32551
32552         * tests/test-base64.c: Cast size_t to unsigned long when invoking
32553         printf.  Use %lu instead of %d.  Reported by Bruno Haible
32554         <bruno@clisp.org>.
32555
32556 2008-05-29  Eric Blake  <ebb9@byu.net>
32557
32558         Prefer new POSIX 200x interfaces over futimesat.
32559         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
32560         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
32561         when available.
32562         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
32563
32564 2008-05-28  Bruno Haible  <bruno@clisp.org>
32565
32566         * modules/stpcpy (License): Change to LGPLv2+.
32567         Requested by David Lutterkort <dlutter@redhat.com>.
32568
32569 2008-05-27  Bruno Haible  <bruno@clisp.org>
32570
32571         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
32572         current mingw.
32573         Reported by Jose E. Marchesi <jemarch@gnu.org>.
32574
32575 2008-05-27  Bruno Haible  <bruno@clisp.org>
32576
32577         * modules/iconv_open (Link): New section, from module 'iconv'.
32578         * modules/striconv (Link): Likewise.
32579         * modules/striconveh (Link): Likewise.
32580         * modules/xstriconv (Link): Likewise.
32581         * modules/unicodeio (Link): Likewise.
32582         * modules/propername (Link): Likewise.
32583         Reported by Jim Meyering.
32584
32585 2008-05-26  Jim Meyering  <meyering@redhat.com>
32586
32587         sha256: do not artificially restrict buffer length to be < 2^32
32588         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
32589         uint32_t to size_t.
32590         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
32591         to match.
32592
32593         avoid unaligned access errors, e.g., on sparc
32594         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
32595         direct access through a possibly-unaligned uint64* pointer.
32596         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
32597         direct access through a possibly-unaligned uint32* pointer.
32598         Prompted by this patch from Tom "spot" Callaway:
32599         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
32600
32601         sha512.c: fix typo in comment
32602         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
32603
32604 2008-05-25  Bruno Haible  <bruno@clisp.org>
32605
32606         * lib/set-mode-acl.c: Renamed from lib/acl.c.
32607         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
32608         (Makefile.am): Update lib_SOURCES.
32609
32610 2008-05-25  Bruno Haible  <bruno@clisp.org>
32611
32612         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
32613
32614 2008-05-25  Jim Meyering  <meyering@redhat.com>
32615
32616         useless-if-before-free: freed expr may have white-space differences
32617         * build-aux/useless-if-before-free: Recognize cases in which the
32618         freed expression differs from the tested one in embedded white
32619         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
32620         $1 was used, so we can't make any regexp shy.  Improved tests now
32621         detect this.
32622
32623         useless-if-before-free: accept white space in the expression.
32624         * build-aux/useless-if-before-free: For now, any white space
32625         in the expression must be identical in the free argument.
32626
32627         useless-if-before-free: efficiency tweak
32628         * build-aux/useless-if-before-free: Make the expression-matching
32629         regexp "shy".
32630         Make the *outer* regexp shy, not the expr-matching one.
32631
32632         update code-in-comment to accept cast of free arg
32633         * build-aux/useless-if-before-free: Update regexp.
32634
32635 2008-05-25  Bruno Haible  <bruno@clisp.org>
32636
32637         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
32638         * modules/copy-file-tests (Files, Makefile.am): Update.
32639         * tests/test-copy-file.c (func_test_copy): Update.
32640
32641 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
32642
32643         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
32644
32645 2008-05-23  Bruno Haible  <bruno@clisp.org>
32646
32647         Improve support for ACLs on OSF/1.
32648         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
32649         Remove fallback for unknown flavors of ACLs.
32650
32651 2008-05-22  Bruno Haible  <bruno@clisp.org>
32652
32653         Add support for ACLs on OSF/1.
32654         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
32655         replacements.
32656         (acl_free_text): New macro fallback.
32657         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
32658         acl_free.
32659         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
32660         acl_free_text function. Require AC_C_INLINE.
32661
32662 2008-05-22  Bruno Haible  <bruno@clisp.org>
32663
32664         Make copy_acl work on MacOS X 10.5.
32665         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
32666         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
32667         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
32668         If MODE_INSIDE_ACL, don't assume that every system has the same text
32669         representation for ACLs as FreeBSD.
32670         * lib/copy-acl.c (copy_acl): Add support for platforms with
32671         !MODE_INSIDE_ACL.
32672         * lib/file-has-acl.c (file_has_acl): Likewise.
32673         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
32674         FreeBSD, MacOS X, or IRIX, respectively.
32675
32676 2008-05-22  Bruno Haible  <bruno@clisp.org>
32677
32678         * lib/acl.h: Don't include <sys/acl.h>.
32679         (GETACLCNT): Move fallback to lib/acl-internal.h.
32680         * lib/acl-internal.h: Include <sys/acl.h> here.
32681         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
32682
32683 2008-05-22  Bruno Haible  <bruno@clisp.org>
32684
32685         Split off copy_acl function to separate file.
32686         * lib/copy-acl.c: New file, extracted from lib/acl.c.
32687         * lib/acl.c (copy_acl): Moved function to separate file.
32688         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
32689         * modules/acl (Files): Add lib/copy-acl.c.
32690         (Makefiles.am): Augment lib_SOURCES.
32691
32692 2008-05-22  Bruno Haible  <bruno@clisp.org>
32693
32694         * modules/copy-file-tests: New file.
32695         * tests/test-copy-file.sh: New file.
32696         * tests/test-copy-file.c: New file.
32697         * tests/test-copy-file-sameacls.c: New file.
32698
32699 2008-05-22  Eric Blake  <ebb9@byu.net>
32700
32701         Avoid gcc warning.
32702         * tests/test-memcmp.c (main): Pass NULL indirectly.
32703
32704 2008-05-21  Bruno Haible  <bruno@clisp.org>
32705
32706         Add reference doc about ACLs.
32707         * doc/acl-resources.txt: New file.
32708         * doc/acl-cygwin.txt: New file.
32709
32710 2008-05-21  Bruno Haible  <bruno@clisp.org>
32711
32712         Avoid one more warning from gcc.
32713         * lib/vasnprintf.c (IF_LINT): Update comments.
32714         (VASNPRINTF): Use it also for the 'prefix' array initializer.
32715
32716 2008-05-21  Jim Meyering  <meyering@redhat.com>
32717
32718         avoid a warning from gcc
32719         * lib/vasnprintf.c (IF_LINT): Define.
32720         (scale10_round_decimal_long_double):
32721         Use it to avoid a "may be used uninitialized" warning.
32722         (scale10_round_decimal_double): Likewise.
32723
32724 2008-05-21  Simon Josefsson  <simon@josefsson.org>
32725
32726         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
32727         declared.
32728
32729 2008-05-20  Bruno Haible  <bruno@clisp.org>
32730
32731         * tests/test-memcmp.c (main): Test also the sign of the result. Test
32732         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
32733
32734 2008-05-20  Simon Josefsson  <simon@josefsson.org>
32735
32736         * modules/memcmp-tests: New file.
32737         * tests/test-memcmp.c: New file.
32738
32739 2008-05-19  Bruno Haible  <bruno@clisp.org>
32740
32741         * modules/propername (Notice, configure.ac): Put quoted "..." into
32742         --keyword option.
32743         * lib/propername.h: Update comments accordingly.
32744         Reported by Eric Blake.
32745
32746 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
32747
32748         * modules/getpass-gnu (Depends-on): Add fseeko.
32749
32750 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32751
32752         * modules/base64-tests: New file.
32753
32754 2008-05-19  Bo Borgerson <gigabo@gmail.com>
32755
32756         * lib/base64.c (base64_decode_ctx): If a decode context structure
32757         was passed in use it to ignore newlines.  If a context structure
32758         was _not_ passed in, continue to treat newlines as garbage (this
32759         is the historical behavior).  Formerly base64_decode.
32760         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32761         takes a decode context structure.
32762         * lib/base64.h (base64_decode): Macro for four-argument calls.
32763         (base64_decode_alloc): Likewise.
32764         * lib/base64.c (base64_decode_ctx): If a decode context structure
32765         was passed in use it to ignore newlines.  If a context structure
32766         was _not_ passed in, continue to treat newlines as garbage (this
32767         is the historical behavior).  Formerly base64_decode.
32768         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32769         takes a decode context structure.
32770         * lib/base64.h (base64_decode): Macro for four-argument calls.
32771         (base64_decode_alloc): Likewise.
32772
32773 2008-05-19  Jim Meyering  <meyering@redhat.com>
32774
32775         avoid a warning from gcc
32776         * lib/trim.c (IF_LINT): Define.
32777         (trim2): Use it to avoid a "may be used uninitialized" warning.
32778
32779         Fix doc typo.
32780         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
32781
32782 2008-05-19  Bruno Haible  <bruno@clisp.org>
32783
32784         * doc/glibc-functions/getpass.texi: Document limits of other
32785         implementations.
32786
32787 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32788             Bruno Haible <bruno@clisp.org>
32789
32790         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
32791
32792 2008-05-18  Bruno Haible  <bruno@clisp.org>
32793
32794         * modules/propername: New file, from GNU gettext.
32795         * lib/propername.h: New file, from GNU gettext.
32796         * lib/propername.c: New file, from GNU gettext.
32797         * MODULES.html.sh (Internationalization functions): Add propername.
32798
32799 2008-05-16  Jim Meyering  <meyering@redhat.com>
32800             Bruno Haible  <bruno@clisp.org>
32801
32802         Avoid some warnings from "gcc -Wshadow".
32803         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
32804
32805 2008-05-15  Eric Blake  <ebb9@byu.net>
32806
32807         Extend previous patch to cygwin 1.7.0.
32808         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
32809         fast implementation in cygwin >= 1.7.0.
32810         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32811         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32812
32813 2008-05-15  Bruno Haible  <bruno@clisp.org>
32814
32815         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
32816         implementation in glibc >= 2.9.
32817         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32818         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32819
32820 2008-05-15  Bruno Haible  <bruno@clisp.org>
32821
32822         * MODULES.html.sh (Internationalization functions): Remove linebreak.
32823         (Unicode string functions): Add unilbrk/*.
32824         Reported by Karl Berry.
32825
32826 2008-05-15  Eric Blake  <ebb9@byu.net>
32827
32828         Fix violation of <stdbool.h> replacement in regex.
32829         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
32830         * lib/regexec.c (re_search_internal): Likewise.
32831         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
32832
32833 2008-05-15  Jim Meyering  <meyering@redhat.com>
32834
32835         avoid distracting test output when git or cvs is not found
32836         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
32837         * tests/test-vc-list-files-git.sh: Likewise.
32838
32839 2008-05-15  Eric Blake  <ebb9@byu.net>
32840
32841         Glibc finally accepted the memmem speedup code, bugzilla #5514.
32842         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
32843         glibc version.
32844         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32845         * doc/posix-functions/strstr.texi (strstr): Likewise.
32846         * lib/str-two-way.h (MAX): Sychronize with glibc.
32847
32848 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
32849
32850         * lib/regcomp.c (optimize_utf8): Add a note on why we test
32851         opr.ctx_type.
32852         (calc_first): Initialize constraint field.
32853         (duplicate_node_closure): Use it instead of special casing ANCHORS.
32854         Fix grammar.
32855         (duplicate_node): Merge constraint field for all node types.
32856         (calc_eclosure_iter): Look at constraint field for all node types.
32857         * lib/regex_internal.c (create_cd_newstate): Don't look at
32858         opr.ctx_type.
32859
32860 2008-05-14  Bruno Haible  <bruno@clisp.org>
32861
32862         Help GCC to do better code generation.
32863         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
32864         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
32865         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
32866         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
32867         Declare with attribute 'malloc' if supported.
32868
32869 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
32870
32871         use "echo STR|wc -c" rather than unportable "expr length STR"
32872         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
32873         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
32874
32875 2008-05-14  Jim Meyering  <meyering@redhat.com>
32876
32877         use dd ibs=$n count=1 ... rather than less-portable head -c$n
32878         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
32879         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
32880         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
32881         via Collin Lasse.
32882
32883 2008-05-14  Eric Blake  <ebb9@byu.net>
32884
32885         Avoid quadratic growth in gl_LIBSOURCES.
32886         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
32887         Suggested by Bruno Haible.
32888
32889         Test xmemdup0.
32890         * modules/xmemdup0-tests: New file.
32891         * tests/test-xmemdup0.c: Likewise.
32892
32893 2008-05-13  Eric Blake  <ebb9@byu.net>
32894
32895         Split xmemdup0 into its own module.
32896         * modules/xmemdup0: New file.
32897         * lib/xmemdup0.h: Likewise.
32898         * lib/xmemdup0.c: Likewise.
32899         * MODULES.html.sh (Memory management functions): Add xmemdup0.
32900         * lib/xalloc.h (xmemdup0): Remove.
32901         * lib/xmalloc.c (xmemdup0): Likewise.
32902
32903 2008-05-13  Eric Blake  <ebb9@byu.net>
32904             Bruno Haible  <bruno@clisp.org>
32905
32906         Reduce number of forks required during autoconf.
32907         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
32908         and gl_LIBSOURCES_DIR.
32909         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
32910         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
32911         m4_syscmd per file.
32912         <m4_foreach_w>: Move...
32913         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
32914
32915 2008-05-13  Eric Blake  <ebb9@byu.net>
32916
32917         * gnulib-tool: Fix various comment typos.
32918
32919 2008-05-12  Bruno Haible  <bruno@clisp.org>
32920
32921         Tailor the linebreaking algorithm.
32922         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
32923
32924 2008-05-12  Bruno Haible  <bruno@clisp.org>
32925
32926         Update to Unicode 5.0.0.
32927         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32928         LBP_JV, LBP_JT. Redistribute values.
32929         (unilbrk_table): Change size.
32930         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
32931         Unicode TR#14 rev. 22.
32932         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32933         LBP_JV, LBP_JT. Redistribute values.
32934         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
32935         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
32936         Update.
32937         * lib/unilbrk/lbrkprop1.h: Regenerated.
32938         * lib/unilbrk/lbrkprop2.h: Regenerated.
32939         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
32940         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
32941         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
32942         Likewise.
32943         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
32944         Likewise.
32945         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
32946         result.
32947         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
32948         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
32949         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
32950         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
32951         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
32952         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
32953
32954 2008-05-11  Bruno Haible  <bruno@clisp.org>
32955
32956         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
32957
32958 2008-05-11  Bruno Haible  <bruno@clisp.org>
32959
32960         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
32961         * modules/unilbrk/gen-lbrk: New file.
32962
32963 2008-05-11  Bruno Haible  <bruno@clisp.org>
32964
32965         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
32966         * m4/sha512.m4 (gl_SHA512): Likewise.
32967
32968 2008-05-11  Jim Meyering  <meyering@redhat.com>
32969
32970         New modules: crypto/sha256, crypto/sha512 (from coreutils)
32971         * modules/crypto/sha256: New file.
32972         * modules/crypto/sha512: Likewise.
32973         * lib/sha256.c: Likewise.
32974         * lib/sha256.h: Likewise.
32975         * lib/sha512.c: Likewise.
32976         * lib/sha512.h: Likewise.
32977         * lib/u64.h: Likewise.
32978         * m4/sha256.m4: Likewise.
32979         * m4/sha512.m4: Likewise.
32980         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
32981
32982 2008-05-10  Bruno Haible  <bruno@clisp.org>
32983
32984         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
32985         (Input/Output <stdio.h>): Add xprintf.
32986         (Signal handling <signal.h>): Add strsignal.
32987         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
32988         (Core language properties): Add func.
32989         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
32990         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
32991         strings.
32992         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
32993         (Input/output): New section.
32994         (File system functions): Add openat-die, stat-macros.
32995         (Networking functions): Add sockets.
32996         (Unicode string functions): Add unictype/*.
32997         (Support for building libraries and executables): Add gperf.
32998         (Support for building documentation): Add agpl-3.0.
32999         (Misc): Add nocrash.
33000
33001 2008-05-10  Bruno Haible  <bruno@clisp.org>
33002
33003         * modules/unictype/gen-ctype: New file.
33004
33005 2008-05-10  Jim Meyering  <meyering@redhat.com>
33006
33007         Make chdir-safer.c more efficient on a system with no symlinks.
33008         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
33009         also if ELOOP is zero.  Suggested by Bruno Haible.
33010
33011         Make chdir-safer.c slightly safer.
33012         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
33013         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
33014
33015         Avoid compile failure on systems without ELOOP (like mingw).
33016         * lib/chdir-safer.c (ELOOP): Define if not already defined.
33017         Reported by Bruno Haible.
33018
33019 2008-05-10  Bruno Haible  <bruno@clisp.org>
33020
33021         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
33022         (is_utf8_encoding): Use a case-insensitive comparison.
33023         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
33024         streq.
33025
33026 2008-05-10  Bruno Haible  <bruno@clisp.org>
33027
33028         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
33029         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
33030         * lib/unilbrk/ulc-common.h (iconv_string_length,
33031         iconv_string_keeping_offsets): Remove declarations.
33032         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
33033         Don't include <iconv.h>, streq.h, xsize.h.
33034         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
33035         conversion.
33036         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
33037         <iconv.h>, streq.h, xsize.h.
33038         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
33039         conversion.
33040         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
33041         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
33042         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
33043         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
33044
33045 2008-05-10  Bruno Haible  <bruno@clisp.org>
33046
33047         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
33048         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
33049
33050         * modules/unilbrk/u32-width-linebreaks-tests: New file.
33051         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
33052
33053         * modules/unilbrk/u16-width-linebreaks-tests: New file.
33054         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
33055
33056         * modules/unilbrk/u8-width-linebreaks-tests: New file.
33057         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
33058
33059         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
33060         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
33061
33062         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
33063         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
33064
33065         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
33066         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
33067
33068         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
33069         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
33070
33071 2008-05-10  Bruno Haible  <bruno@clisp.org>
33072
33073         Split up 'linebreak' module.
33074         * lib/unilbrk.h: New file, based on lib/linebreak.h.
33075         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
33076         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
33077         modifications.
33078         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
33079         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
33080         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
33081         lib/linebreak.c.
33082         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
33083         lib/linebreak.c.
33084         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
33085         lib/linebreak.c.
33086         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
33087         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
33088         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
33089         lib/linebreak.c.
33090         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
33091         lib/linebreak.c.
33092         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
33093         lib/linebreak.c.
33094         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
33095         lib/linebreak.c.
33096         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
33097         lib/linebreak.c.
33098         * modules/unilbrk/base: New file.
33099         * modules/unilbrk/tables: New file.
33100         * modules/unilbrk/u8-possible-linebreaks: New file.
33101         * modules/unilbrk/u16-possible-linebreaks: New file.
33102         * modules/unilbrk/u32-possible-linebreaks: New file.
33103         * modules/unilbrk/ulc-common: New file.
33104         * modules/unilbrk/ulc-possible-linebreaks: New file.
33105         * modules/unilbrk/u8-width-linebreaks: New file.
33106         * modules/unilbrk/u16-width-linebreaks: New file.
33107         * modules/unilbrk/u32-width-linebreaks: New file.
33108         * modules/unilbrk/ulc-width-linebreaks: New file.
33109         * lib/linebreak.h: Remove file.
33110         * lib/linebreak.c: Remove file.
33111         * m4/linebreak.m4: Remove file.
33112         * modules/linebreak: Remove file.
33113         * NEWS: Mention the changes.
33114
33115 2008-05-09  Eric Blake  <ebb9@byu.net>
33116
33117         Add xmemdup0.
33118         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
33119         implementation.
33120         * lib/xmalloc.c (xmemdup0): New C implementation.
33121
33122 2008-05-08  Bruno Haible  <bruno@clisp.org>
33123
33124         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
33125
33126 2008-05-07  Eric Blake  <ebb9@byu.net>
33127
33128         Support cross-compilation of <wctype.h>.
33129         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
33130         AC_CACHE_CHECK.
33131
33132 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
33133
33134         * build-aux/vc-list-files: Add support for bzr.
33135
33136 2008-05-03  Jim Meyering  <meyering@redhat.com>
33137
33138         avoid failed assertion with tight malloc
33139         * tests/test-getndelim2.c: Correct an off-by-one assertion.
33140
33141 2008-05-03  Simon Josefsson  <simon@josefsson.org>
33142
33143         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
33144         are needed from arpa/inet.h.
33145         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
33146         Reported by Bruno Haible.
33147
33148 2008-05-02  Jim Meyering  <meyering@redhat.com>
33149
33150         avoid compilation error on FreeBSD 6
33151         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
33152
33153 2008-05-01  Jim Meyering  <meyering@redhat.com>
33154
33155         useless-if-before-free: correct --help's exit status description
33156         * build-aux/useless-if-before-free (usage): Like grep, exit 0
33157         for one or more matches, etc.  Reported by Bruno Haible.
33158
33159         vc-list-files: make the stand-alone gnulib test work
33160         * modules/vc-list-files-tests (configure.ac):
33161         Define and AC_SUBST abs_aux_dir.
33162         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
33163         $(abs_top_srcdir) to each script and having each of them
33164         duplicate the work of setting PATH, set PATH here, using
33165         the new variable, abs_aux_dir instead.
33166         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
33167         * tests/test-vc-list-files-git.sh: Likewise.
33168         Reported by Bruno Haible.
33169
33170 2008-05-01  Bruno Haible  <bruno@clisp.org>
33171
33172         * lib/getndelim2.c (getndelim2): Fix newsize computation during
33173         reallocation. Rename 'done' to 'found_delimiter'.
33174
33175 2008-05-01  Jim Meyering  <meyering@redhat.com>
33176
33177         vc-list-files: accommodate /bin/sh like the one from Solaris 10
33178         * build-aux/vc-list-files: Use `...`, not $(...).
33179
33180 2008-04-30  Jim Meyering  <meyering@redhat.com>
33181
33182         add tests for vc-list-files
33183         * modules/vc-list-files-tests: New module.
33184         * tests/test-vc-list-files-cvs.sh: New file.
33185         * tests/test-vc-list-files-git.sh: New file.
33186
33187         avoid a warning from gcc
33188         * lib/getndelim2.c (IF_LINT): Define.
33189         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
33190
33191         vc-list-files: work properly with build-aux/cvsu, too
33192         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
33193         to all cvs-based clauses.
33194
33195         vc-list-files: work properly in the CVS+awk case, too
33196         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
33197
33198         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
33199         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
33200         take more than one file argument, so .  Add quotes, just in case $dir
33201         ever contains a shell meta-character.  Prompted by Soren Hansen in
33202         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
33203
33204 2008-04-29  Eric Blake  <ebb9@byu.net>
33205
33206         Optimize getndelim2 to use block operations when possible.
33207         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
33208         freadseek, and memchr2.
33209         * lib/getndelim2.c (getndelim2): Use them for block reads.
33210
33211 2008-04-29  Bruno Haible  <bruno@clisp.org>
33212
33213         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
33214         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33215         * modules/inet_ntop (Depends-on): Add extensions.
33216         * modules/inet_pton (Depends-on): Likewise.
33217         Reported by Simon Josefsson.
33218
33219 2008-04-29  Jim Meyering  <meyering@redhat.com>
33220
33221         When the is more than one match in a block, match all of them.
33222         * build-aux/useless-if-before-free: Iterate through each block
33223         until there are no more matches.
33224
33225         Fix broken useless-if-before-free script.
33226         * build-aux/useless-if-before-free: Fix typo: missing "?" after
33227         the expression to match cast of argument to free-like function.
33228
33229 2008-04-29  Eric Blake  <ebb9@byu.net>
33230
33231         Use new header.
33232         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
33233
33234 2008-04-29  Jim Meyering  <meyering@redhat.com>
33235
33236         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
33237         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
33238         by gnulib to exist and to declare e.g., inet_ntop.
33239         Don't include "inet_ntop.h", now removed.
33240
33241         * m4/arpa_inet_h.m4: Remove trailing blanks.
33242
33243 2008-04-29  Eric Blake  <ebb9@byu.net>
33244
33245         Silence valgrind on safe reads beyond potential array bounds.
33246         * lib/rawmemchr.valgrind: New file.
33247         * lib/strchrnul.valgrind: Likewise.
33248         * modules/rawmemchr (Files): Distribute new file.
33249         * modules/strchrnul (Files): Likewise.
33250         Suggested by Bruno Haible.
33251
33252 2008-04-29  Bruno Haible  <bruno@clisp.org>
33253
33254         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
33255         (inet_ntop, inet_pton): Change portability warning's wording.
33256         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
33257         Invoke gl_CHECK_NEXT_HEADERS.
33258         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
33259         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
33260         set ARPA_INET_H.
33261         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33262         * modules/arpa_inet (Description): No longer only for systems that
33263         lack it.
33264         (Depends-on): Add include_next.
33265         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
33266         HAVE_ARPA_INET_H.
33267
33268 2008-04-29  Jim Meyering  <meyering@redhat.com>
33269
33270         * modules/mkdir (License): Re-license as LGPLv2+.
33271
33272 2008-04-29  Bruno Haible  <bruno@clisp.org>
33273
33274         * modules/rawmemchr (Maintainer): Set to Eric.
33275         * modules/strchrnul (Maintainer): Likewise.
33276
33277 2008-04-29  Simon Josefsson  <simon@josefsson.org>
33278
33279         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
33280         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
33281
33282         * modules/arpa_inet (arpa/inet.h): Use them.
33283
33284 2008-04-28  Eric Blake  <ebb9@byu.net>
33285
33286         Test getndelim2.
33287         * modules/getndelim2-tests: New file.
33288         * tests/test-getndelim2.c: Likewise.
33289         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
33290         stream.
33291         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
33292
33293         * MODULES.html.sh: Document new module.
33294
33295 2008-04-20  Bruno Haible  <bruno@clisp.org>
33296
33297         * lib/c-stack.c (die): Use raise.
33298         * modules/c-stack (Depends-on): Add raise.
33299
33300 2008-04-28  Bruno Haible  <bruno@clisp.org>
33301
33302         Expect rpmatch to be declared.
33303         * lib/yesno.c (rpmatch): Remove declaration.
33304
33305         Declare rpmatch.
33306         * lib/stdlib.in.h (rpmatch): New declaration.
33307         * lib/rpmatch.c: Include <stdlib.h> first.
33308         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
33309         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
33310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
33311         HAVE_RPMATCH.
33312         * modules/rpmatch (Depends-on): Add stdlib, extensions.
33313         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33314         (Include): Set to <stdlib.h>.
33315         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
33316         HAVE_RPMATCH.
33317         * NEWS: Document the change.
33318
33319 2008-04-28  Bruno Haible  <bruno@clisp.org>
33320
33321         Change rpmatch to use nl_langinfo when appropriate.
33322         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
33323         (N_): New macro.
33324         (localized_pattern): New function/macro.
33325         (try): Remove match, nomatch arguments. Copy the pattern into safe
33326         memory before caching it.
33327         (rpmatch): Use localized_pattern. Add translator comments.
33328         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
33329         Suggested by Eric Blake.
33330         * modules/rpmatch (Depends-on): Add stdbool.
33331
33332 2008-04-28  Eric Blake  <ebb9@byu.net>
33333
33334         Add rawmemchr module, matching glibc.
33335         * modules/string (Makefile.am): New indicator.
33336         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
33337         * lib/string.in.h (rawmemchr): Declare when appropriate.
33338         * modules/rawmemchr: New file.
33339         * m4/rawmemchr.m4: Likewise.
33340         * lib/rawmemchr.c: Likewise.
33341         * modules/rawmemchr-tests: Likewise.
33342         * tests/test-rawmemchr.c: Likewise.
33343         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
33344         module.
33345         * modules/strchrnul (Depends-on): Add rawmemchr.
33346         * lib/strchrnul.c (strchrnul): Optimize a corner case.
33347
33348         Whitespace cleanup.
33349         * tests/test-strchrnul.c: Reindent.
33350         * lib/strchrnul.c: Likewise.
33351
33352         Optimize and test strchrnul.
33353         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
33354         * modules/strchrnul-tests: New file.
33355         * tests/test-strchrnul.c: Likewise.
33356
33357         Remove intprops dependency.
33358         * modules/memchr (Depends-on): Remove intprops.
33359         * modules/memrchr (Depends-on): Likewise.
33360         * modules/memchr2 (Depends-on): Likewise.
33361         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
33362         * lib/memrchr.c (__memrchr): Likewise.
33363         * lib/memrchr2.c (memchr2): Likewise.
33364         Reported by Simon Josefsson.
33365
33366 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33367
33368         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
33369         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33370
33371 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33372
33373         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
33374
33375         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
33376
33377         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
33378
33379         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
33380         declarations.
33381         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
33382
33383         * m4/inet_pton.m4: Don't check for header files.
33384
33385         * m4/inet_ntop.m4: Don't check for header files.
33386
33387 2008-04-28  Simon Josefsson  <simon@josefsson.org>
33388
33389         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
33390         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
33391         trigger for cygwin).
33392         Reported by Bruno Haible  <bruno@clisp.org>.
33393
33394 2008-04-28  Bruno Haible  <bruno@clisp.org>
33395
33396         * doc/posix-functions/strdup.texi: Mention mingw problem.
33397
33398 2008-04-27  Bruno Haible  <bruno@clisp.org>
33399
33400         * modules/stat-time-tests (Depends-on): Add sleep.
33401         * tests/test-stat-time.c (force_unlink): New function.
33402         (cleanup): Use it.
33403         (test_mtime): Remove the ctime related tests.
33404         (test_ctime): New function, containing the ctime related tests.
33405         (main): Call test_ctime, except on native Windows platforms.
33406
33407 2008-04-27  Bruno Haible  <bruno@clisp.org>
33408
33409         * lib/rpmatch.c (rpmatch): Add some comments.
33410         Reported by James Youngman <jay@gnu.org>.
33411
33412 2008-04-27  Bruno Haible  <bruno@clisp.org>
33413
33414         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
33415         quiet NaNs.
33416
33417 2008-04-27  Bruno Haible  <bruno@clisp.org>
33418
33419         Make test-yesno.sh work on mingw.
33420         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
33421         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
33422         (main): Set stdin to binary mode.
33423         * modules/yesno-tests (Depends-on): Add binary-io.
33424
33425 2008-04-27  Bruno Haible  <bruno@clisp.org>
33426
33427         Fix 'isfinite' on x86, x86_64, ia64 platforms.
33428         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
33429         argument that lie outside the IEEE 854 domain.
33430         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
33431         (gl_ISFINITE): Use it.
33432         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
33433
33434 2008-04-27  Bruno Haible  <bruno@clisp.org>
33435
33436         Allow local renaming in config.h.
33437         * lib/memrchr.c (memrchr): Don't undefine outside libc.
33438
33439 2008-04-27  Bruno Haible  <bruno@clisp.org>
33440
33441         * lib/memchr.c (__memchr): Change type of 'i'.
33442         * lib/memchr2.c (memchr2): Likewise.
33443
33444 2008-04-26  Eric Blake  <ebb9@byu.net>
33445         and Bruno Haible  <bruno@clisp.org>
33446
33447         Optimize and test memrchr.
33448         * modules/memrchr (Depends-on): Add intprops.
33449         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
33450         * modules/memrchr-tests: New file.
33451         * tests/test-memrchr.c: New file.
33452
33453 2008-04-26  Bruno Haible  <bruno@clisp.org>
33454
33455         Add tentative support for DragonFly BSD.
33456         * lib/stdio-impl.h: Add macros for DragonFly BSD.
33457         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
33458         fp.
33459         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
33460         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
33461         * lib/fpurge.c (fpurge): Likewise.
33462         * lib/freadable.c (freaadable): Likewise.
33463         * lib/freadahead.c (freadahead): Likewise.
33464         * lib/freading.c (freading): Likewise.
33465         * lib/freadptr.c (freadptr): Likewise.
33466         * lib/freadseek.c (freadptrinc): Likewise.
33467         * lib/fseeko.c (fseeko): Likewise.
33468         * lib/fseterr.c (fseterr): Likewise.
33469         * lib/fwritable.c (fwritable): Likewise.
33470         * lib/fwriting.c (fwriting): Likewise.
33471
33472 2008-04-26  Bruno Haible  <bruno@clisp.org>
33473
33474         * lib/stdio-impl.h: New file.
33475         * lib/fbufmode.c: Include stdio-impl.h.
33476         (fbufmode): Use fp_, remove redundant #defines.
33477         * lib/fflush.c: Include stdio-impl.h.
33478         (clear_ungetc_buffer): Remove redundant #defines.
33479         * lib/fpurge.c: Include stdio-impl.h.
33480         (fpurge): Remove redundant #defines.
33481         * lib/freadable.c: Include stdio-impl.h.
33482         (freadable): Remove redundant #defines.
33483         * lib/freadahead.c: Include stdio-impl.h.
33484         (freadahead): Remove redundant #defines.
33485         * lib/freading.c: Include stdio-impl.h.
33486         (freading): Remove redundant #defines.
33487         * lib/freadptr.c: Include stdio-impl.h.
33488         (freadptr): Remove redundant #defines.
33489         * lib/freadseek.c: Include stdio-impl.h.
33490         (freadptrinc): Remove redundant #defines.
33491         * lib/fseeko.c: Include stdio-impl.h.
33492         (rpl_fseeko): Remove redundant #defines.
33493         * lib/fseterr.c: Include stdio-impl.h.
33494         (fseterr): Remove redundant #defines.
33495         * lib/fwritable.c: Include stdio-impl.h.
33496         (fwritable: Remove redundant #defines.
33497         * lib/fwriting.c: Include stdio-impl.h.
33498         (fwriting): Remove redundant #defines.
33499         * modules/fbufmode (Files): Add lib/stdio-impl.h.
33500         * modules/fflush (Files): Likewise.
33501         * modules/fpurge (Files): Likewise.
33502         * modules/freadable (Files): Likewise.
33503         * modules/freadahead (Files): Likewise.
33504         * modules/freading (Files): Likewise.
33505         * modules/freadptr (Files): Likewise.
33506         * modules/freadseek (Files): Likewise.
33507         * modules/fseeko (Files): Likewise.
33508         * modules/fseterr (Files): Likewise.
33509         * modules/fwritable (Files): Likewise.
33510         * modules/fwriting (Files): Likewise.
33511
33512 2008-04-26  Bruno Haible  <bruno@clisp.org>
33513
33514         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
33515         restore_seek_optimization, update_fpos_cache): New functions, extracted
33516         from rpl_fflush.
33517         (rpl_fflush): Use them.
33518         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
33519         (gl_REPLACE_FFLUSH): Use it.
33520
33521 2008-04-26  Bruno Haible  <bruno@clisp.org>
33522
33523         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
33524         on Solaris.
33525         * tests/test-xstrtoimax.sh: Likewise.
33526         * tests/test-xstrtoumax.sh: Likewise.
33527         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33528
33529 2008-04-26  Bruno Haible  <bruno@clisp.org>
33530
33531         * modules/memchr-tests: New file.
33532         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
33533
33534 2008-04-26  Eric Blake  <ebb9@byu.net>
33535             Bruno Haible  <bruno@clisp.org>
33536
33537         * lib/memchr.c: Include intprops.h.
33538         (__memchr): Optimize parallel detection of matching bytes. Rename local
33539         variables. Add explanatory comments.
33540
33541 2008-04-26  Bruno Haible  <bruno@clisp.org>
33542
33543         Fix module 'memchr', broken since 2000-10-28.
33544         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
33545
33546 2008-04-26  Bruno Haible  <bruno@clisp.org>
33547
33548         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
33549         comments.
33550
33551 2008-04-25  Eric Blake  <ebb9@byu.net>
33552
33553         Use native fstatat on cygwin 1.7.0.
33554         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
33555         first.
33556
33557 2008-04-23  Eric Blake  <ebb9@byu.net>
33558
33559         Improve memchr2 performance.
33560         * lib/memchr2.c (memchr2): Further optimize parallel detection of
33561         NUL bytes.
33562         * modules/memchr2 (Depends-on): Use intprops.h.
33563
33564 2008-04-23  Simon Josefsson  <simon@josefsson.org>
33565
33566         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
33567         an inline function instead of a CPP macro.  Patch by Ben Pfaff
33568         <blp@cs.stanford.edu>.
33569
33570 2008-04-23  Simon Josefsson  <simon@josefsson.org>
33571
33572         * lib/arpa_inet.in.h: New file.
33573
33574         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
33575         (Makefile.am): Sed in substitute header file.
33576
33577         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
33578         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
33579
33580         * modules/inet_ntop (configure.ac): Use
33581         gl_ARPA_INET_MODULE_INDICATOR.
33582
33583         * modules/inet_pton (configure.ac): Use
33584         gl_ARPA_INET_MODULE_INDICATOR.
33585
33586 2008-04-22  Jim Meyering  <meyering@redhat.com>
33587
33588         * modules/verify (License): Re-license as LGPLv2+.
33589
33590 2008-04-22  Simon Josefsson  <simon@josefsson.org>
33591
33592         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
33593         parameter to void* as per POSIX standard (MinGW uses char*).
33594
33595 2008-04-21  Bruno Haible  <bruno@clisp.org>
33596
33597         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
33598         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
33599         Define to replacements if REPLACE_ISWCNTRL is 1.
33600         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
33601         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
33602         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
33603         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
33604         what it fixes.
33605         * doc/posix-functions/iswalpha.texi: Likewise.
33606         * doc/posix-functions/iswblank.texi: Likewise.
33607         * doc/posix-functions/iswcntrl.texi: Likewise.
33608         * doc/posix-functions/iswdigit.texi: Likewise.
33609         * doc/posix-functions/iswgraph.texi: Likewise.
33610         * doc/posix-functions/iswlower.texi: Likewise.
33611         * doc/posix-functions/iswprint.texi: Likewise.
33612         * doc/posix-functions/iswpunct.texi: Likewise.
33613         * doc/posix-functions/iswspace.texi: Likewise.
33614         * doc/posix-functions/iswupper.texi: Likewise.
33615         * doc/posix-functions/iswxdigit.texi: Likewise.
33616         Reported by Alain Guibert.
33617
33618 2008-04-21  Bruno Haible  <bruno@clisp.org>
33619
33620         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
33621         Patch by Alain Guibert.
33622
33623 2008-04-21  Bruno Haible  <bruno@clisp.org>
33624
33625         Fix test failures on mingw.
33626         * tests/test-xstrtol.c (print_no_progname): New function.
33627         (main): Install it in error_print_progname hook.
33628         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
33629         * tests/test-xstrtoimax.sh: Likewise.
33630         * tests/test-xstrtoumax.sh: Likewise.
33631
33632 2008-04-21  Bruno Haible  <bruno@clisp.org>
33633
33634         Fix test failure on mingw.
33635         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
33636
33637 2008-04-21  Bruno Haible  <bruno@clisp.org>
33638
33639         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
33640         Actually assign a value.
33641
33642 2008-04-20  Bruno Haible  <bruno@clisp.org>
33643
33644         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
33645         take 2.
33646         * lib/canonicalize.c (canonicalize_file_name): Elide if the
33647         'canonicalize-lgpl' module is also used.
33648         * lib/canonicalize-lgpl.c: Undo last change.
33649         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
33650
33651 2008-04-20  Bruno Haible  <bruno@clisp.org>
33652
33653         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
33654         config.h. Provide _mkdir based fallback for mingw.
33655         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
33656         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
33657         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
33658         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
33659         rather than defining mkdir in config.h.
33660         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
33661         (gl_SYS_STAT_H_DEFAULTS): New macro.
33662         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
33663         HAVE_IO_H any more.
33664         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
33665         HAVE_DECL_MKDIR and HAVE_IO_H.
33666
33667 2008-04-20  Bruno Haible  <bruno@clisp.org>
33668
33669         * lib/isapipe.c: Port to native Windows platforms.
33670
33671 2008-04-20  Bruno Haible  <bruno@clisp.org>
33672
33673         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
33674
33675 2008-04-21  Eric Blake  <ebb9@byu.net>
33676
33677         Work around preprocessors that don't handle UINTMAX_MAX.
33678         * lib/memchr2.c (memchr2): Avoid embedded #if.
33679         Reported by Alain Guibert, fix suggested by Bruno Haible.
33680
33681 2008-04-21  Simon Josefsson  <simon@josefsson.org>
33682
33683         * doc/posix-functions/strftime.texi (strftime): Explain better
33684         Windows incompatibility.  Suggested by Micah Cowan
33685         <micah@cowan.name>.
33686
33687 2008-04-20  Bruno Haible  <bruno@clisp.org>
33688
33689         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
33690         unistr/u8-mblen.
33691
33692 2008-04-20  Bruno Haible  <bruno@clisp.org>
33693
33694         Fix test failure on platforms with non-GNU iconv.
33695         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
33696         (U_TO_U8): Use it, rather than u16_to_u8.
33697         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
33698         units at the end of the input string.
33699         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
33700
33701 2008-04-20  Bruno Haible  <bruno@clisp.org>
33702
33703         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
33704         when the resulting length is 0.
33705         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
33706
33707 2008-04-20  Bruno Haible  <bruno@clisp.org>
33708
33709         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
33710         works.
33711         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
33712
33713 2008-04-20  Bruno Haible  <bruno@clisp.org>
33714
33715         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
33716         * modules/tsearch-tests (configure.ac): Test for initstate function.
33717
33718 2008-04-20  Bruno Haible  <bruno@clisp.org>
33719
33720         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
33721         for nlink_t if missing.
33722         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
33723
33724 2008-04-19  Bruno Haible  <bruno@clisp.org>
33725
33726         Work around snprintf bug on Linux libc5.
33727         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
33728         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33729         gl_SNPRINTF_SIZE1.
33730         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33731         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
33732         that test failed.
33733         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
33734         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
33735         * modules/snprintf (Files): Add m4/printf.m4.
33736         * modules/vsnprintf (Files): Likewise.
33737         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
33738         * doc/posix-functions/vsnprintf.texi: Likewise.
33739
33740 2008-04-19  Bruno Haible  <bruno@clisp.org>
33741
33742         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
33743         from 0.0058 to less than 10^-7.
33744
33745 2008-04-19  Bruno Haible  <bruno@clisp.org>
33746
33747         Fix rounding when a precision is given.
33748         * lib/vasnprintf.c (is_borderline): New function.
33749         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
33750         9...9x.
33751         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
33752         %e, %g.
33753         * tests/test-vasprintf-posix.c (test_function): Likewise.
33754         * tests/test-snprintf-posix.h (test_function): Likewise.
33755         * tests/test-sprintf-posix.h (test_function): Likewise.
33756         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
33757         * tests/test-printf-posix.h (test_function): Likewise.
33758         * tests/test-printf-posix.output: Update.
33759         Reported by John Darrington <john@darrington.wattle.id.au> via
33760         Ben Pfaff <blp@cs.stanford.edu>.
33761
33762 2008-04-18  Simon Josefsson  <simon@josefsson.org>
33763
33764         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
33765         Suggested by Bruno Haible <bruno@clisp.org>.
33766
33767 2008-04-17  Bruno Haible  <bruno@clisp.org>
33768
33769         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
33770         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
33771         implementation.
33772         Patch by Bruce Merry <bmerry@gmail.com>.
33773
33774 2008-04-17  Simon Josefsson  <simon@josefsson.org>
33775
33776         * doc/posix-functions/strftime.texi (strftime): Mention that %e
33777         doesn't work under Windows.
33778
33779 2008-04-16  Bruno Haible  <bruno@clisp.org>
33780
33781         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
33782         New macros.
33783         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
33784         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
33785         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
33786         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
33787         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
33788         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
33789         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
33790         macros.
33791         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
33792         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
33793         Northern Sotho, Uighur.
33794
33795 2008-04-16  Bruno Haible  <bruno@clisp.org>
33796
33797         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
33798         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
33799         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
33800         Reported by Daniel Bergström <daniel@octocode.com>.
33801
33802 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
33803             Bruno Haible  <bruno@clisp.org>
33804
33805         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
33806         function.
33807         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
33808         New functions, mostly extracted from gl_locale_name_default.
33809         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
33810
33811 2008-04-16  Eric Blake  <ebb9@byu.net>
33812
33813         Adjust strtod detection to catch glibc 2.7 bug.
33814         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
33815         Reported by John Gatewood Ham.
33816
33817 2008-04-16  Bruno Haible  <bruno@clisp.org>
33818
33819         Add tentative support for Linux libc5.
33820         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
33821         * lib/fpurge.c (fpurge): Likewise.
33822         * lib/freadable.c (freadable): Likewise.
33823         * lib/freadahead.c (freadahead): Likewise.
33824         * lib/freading.c (freading): Likewise.
33825         * lib/freadptr.c (freadptr): Likewise.
33826         * lib/freadseek.c (freadptrinc): Likewise.
33827         * lib/fseeko.c (rpl_fseeko): Likewise.
33828         * lib/fseterr.c (fseterr): Likewise.
33829         * lib/fwritable.c (fwritable): Likewise.
33830         * lib/fwriting.c (fwriting): Likewise.
33831         Reported by Alain Guibert <alguibert+bts@free.fr>.
33832
33833 2008-04-15  Bruno Haible  <bruno@clisp.org>
33834
33835         * modules/mathl (configure.ac): Define module indicator.
33836
33837 2008-04-15  Bruno Haible  <bruno@clisp.org>
33838
33839         * lib/logl.c (logl): Remove unused variables.
33840
33841 2008-04-15  Bruno Haible  <bruno@clisp.org>
33842
33843         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
33844         fails.
33845
33846 2008-04-15  Bruno Haible  <bruno@clisp.org>
33847
33848         * lib/trim.c (trim2): Fix argument of isspace() macro.
33849
33850 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
33851
33852         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
33853         to 0.
33854         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
33855
33856 2008-04-14  Bruno Haible  <bruno@clisp.org>
33857
33858         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
33859         AC_LANG_PROGRAM argument.
33860         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
33861         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
33862         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33863         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33864         * m4/math_h.m4 (gl_MATH_H): Likewise.
33865         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
33866         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33867         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33868         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
33869         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
33870         * m4/regex.m4 (gl_REGEX): Likewise.
33871         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
33872         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
33873         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33874         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
33875         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
33876         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33877         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33878         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33879
33880 2008-04-14  Jim Meyering  <meyering@redhat.com>
33881
33882         test-strtod: fix typos: s/abs/fabs/
33883         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
33884
33885 2008-04-13  Bruno Haible  <bruno@clisp.org>
33886
33887         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
33888         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
33889         module is also used and while not building the reloc-wrapper.
33890
33891 2008-04-13  Bruno Haible  <bruno@clisp.org>
33892
33893         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
33894
33895 2008-04-13  Bruno Haible  <bruno@clisp.org>
33896
33897         Fix AIX compilation failure introduced on 2008-04-02.
33898         * tests/test-frexp.c (exp): Undefine before redefining.
33899         * tests/test-frexpl.c (exp): Likewise.
33900
33901 2008-04-13  Bruno Haible  <bruno@clisp.org>
33902
33903         Work around a HP-UX stdio bug.
33904         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
33905         * tests/test-ftello.c (main): Likewise.
33906         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
33907         * doc/posix-functions/ftello.texi: Likewise.
33908
33909 2008-04-13  Bruno Haible  <bruno@clisp.org>
33910
33911         Make test-signbit pass on HP-UX/hppa.
33912         * tests/test-signbit.c (minus_zerol): New variable.
33913         (test_signbitl): Use it.
33914
33915 2008-04-13  Bruno Haible  <bruno@clisp.org>
33916
33917         Make truncl work on OSF/1 4.0.
33918         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
33919         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33920         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
33922         HAVE_DECL_TRUNCL.
33923         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
33924         HAVE_DECL_TRUNCL.
33925         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
33926
33927 2008-04-13  Bruno Haible  <bruno@clisp.org>
33928
33929         * lib/unictype.h: Remove trailing comma from enumeration definitions.
33930
33931 2008-04-13  Bruno Haible  <bruno@clisp.org>
33932
33933         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
33934         expression, so as to avoid HP-UX 11 cc compiler bug.
33935
33936 2008-04-13  Bruno Haible  <bruno@clisp.org>
33937
33938         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
33939
33940 2008-04-13  Bruno Haible  <bruno@clisp.org>
33941
33942         * lib/git-merge-changelog.c: Remove empty declaration outside of
33943         functions.
33944
33945 2008-04-13  Bruno Haible  <bruno@clisp.org>
33946
33947         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
33948
33949 2008-04-13  Bruno Haible  <bruno@clisp.org>
33950
33951         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
33952         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
33953         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
33954         also if it exists but lacks definitions of the SHUT_* macros.
33955         * modules/sys_socket (Description): Update.
33956         Reported by Elbert Pol <e.pol@chello.nl>.
33957
33958 2008-04-13  Bruno Haible  <bruno@clisp.org>
33959
33960         * lib/localcharset.c (OS2): Don't redefine if already defined.
33961         Reported by Elbert Pol <e.pol@chello.nl>.
33962
33963 2008-04-13  Bruno Haible  <bruno@clisp.org>
33964
33965         * lib/binary-io.h [__EMX__]: Include <io.h>.
33966         Reported by Elbert Pol <e.pol@chello.nl>.
33967
33968 2008-04-12  Bruno Haible  <bruno@clisp.org>
33969
33970         * lib/fpucw.h: Enable the definitions also for x86_64.
33971         Needed for NetBSD/x86_64.
33972         Reported by Thomas Klausner <tk@giga.or.at>.
33973
33974 2008-04-12  Bruno Haible  <bruno@clisp.org>
33975
33976         * tests/test-strtod.c: Include isnand.h.
33977         (main): Use isnand instead of isnan.
33978         Reported by Jim Meyering.
33979
33980 2008-04-12  Bruno Haible  <bruno@clisp.org>
33981
33982         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
33983         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33984
33985 2008-04-12  Jim Meyering  <meyering@redhat.com>
33986
33987         * m4/math_h.m4 (gl_MATH_H): Fix typos.
33988
33989 2008-04-12  Bruno Haible  <bruno@clisp.org>
33990
33991         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
33992         Reported by Elbert Pol <e.pol@chello.nl>.
33993
33994 2008-04-12  Eric Blake  <ebb9@byu.net>
33995
33996         Work around Solaris 10 math.h bug.
33997         * m4/math_h.m4 (gl_MATH_H): Check for bug.
33998         (gl_MATH_H_DEFAULTS): Set up default.
33999         * modules/math (Makefile.am): Replace new indicators.
34000         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
34001         * tests/test-math.c (main): Test this.
34002         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
34003         * doc/posix-headers/math.texi (math.h): Mention bug.
34004         Reported by Nelson H. F. Beebe and Jim Meyering.
34005
34006 2008-04-11  Bruno Haible  <bruno@clisp.org>
34007
34008         Adapt to future versions of Apple GCC.
34009         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
34010         Reported by Peter O'Gorman <peter@pogma.com>.
34011
34012 2008-04-11  Bruno Haible  <bruno@clisp.org>
34013
34014         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
34015
34016 2008-04-11  Bruno Haible  <bruno@clisp.org>
34017
34018         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
34019
34020         * modules/getaddrinfo-tests (Makefile.am): Define
34021         test_getaddrinfo_LDADD.
34022
34023 2008-04-11  Bruno Haible  <bruno@clisp.org>
34024
34025         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
34026         (init): Fix syntax error.
34027         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
34028         is declared.
34029
34030 2008-04-11  Bruno Haible  <bruno@clisp.org>
34031
34032         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
34033         * modules/glob (Depends-on): Add stdbool.
34034
34035 2008-04-11  Bruno Haible  <bruno@clisp.org>
34036
34037         * lib/trim.c: Include <string.h>.
34038
34039 2008-04-11  Eric Blake  <ebb9@byu.net>
34040
34041         Avoid compile failure on OS/2.
34042         * lib/regex_internal.h (internal_function): Disable optimization
34043         on OS/2 (__EMX__), where it caused compiler error.
34044         Reported by Elbert Pol.
34045
34046 2008-04-11  Bruno Haible  <bruno@clisp.org>
34047
34048         Flush the standard error stream before aborting. Needed on mingw.
34049         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
34050         * tests/test-array_list.c (ASSERT): Likewise.
34051         * tests/test-array_oset.c (ASSERT): Likewise.
34052         * tests/test-avltree_list.c (ASSERT): Likewise.
34053         * tests/test-avltree_oset.c (ASSERT): Likewise.
34054         * tests/test-avltreehash_list.c (ASSERT): Likewise.
34055         * tests/test-binary-io.c (ASSERT): Likewise.
34056         * tests/test-byteswap.c (ASSERT): Likewise.
34057         * tests/test-c-ctype.c (ASSERT): Likewise.
34058         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
34059         * tests/test-c-strcasestr.c (ASSERT): Likewise.
34060         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
34061         * tests/test-c-strstr.c (ASSERT): Likewise.
34062         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
34063         * tests/test-canonicalize.c (ASSERT): Likewise.
34064         * tests/test-carray_list.c (ASSERT): Likewise.
34065         * tests/test-ceilf1.c (ASSERT): Likewise.
34066         * tests/test-ceilf2.c (ASSERT): Likewise.
34067         * tests/test-ceill.c (ASSERT): Likewise.
34068         * tests/test-count-one-bits.c (ASSERT): Likewise.
34069         * tests/test-fbufmode.c (ASSERT): Likewise.
34070         * tests/test-fflush2.c (ASSERT): Likewise.
34071         * tests/test-floorf1.c (ASSERT): Likewise.
34072         * tests/test-floorf2.c (ASSERT): Likewise.
34073         * tests/test-floorl.c (ASSERT): Likewise.
34074         * tests/test-fopen.c (ASSERT): Likewise.
34075         * tests/test-fpending.c (ASSERT): Likewise.
34076         * tests/test-fprintf-posix.c (ASSERT): Likewise.
34077         * tests/test-fpurge.c (ASSERT): Likewise.
34078         * tests/test-freadable.c (ASSERT): Likewise.
34079         * tests/test-freadahead.c (ASSERT): Likewise.
34080         * tests/test-freading.c (ASSERT): Likewise.
34081         * tests/test-freadptr.c (ASSERT): Likewise.
34082         * tests/test-freadptr2.c (ASSERT): Likewise.
34083         * tests/test-freadseek.c (ASSERT): Likewise.
34084         * tests/test-freopen.c (ASSERT): Likewise.
34085         * tests/test-frexp.c (ASSERT): Likewise.
34086         * tests/test-frexpl.c (ASSERT): Likewise.
34087         * tests/test-fseek.c (ASSERT): Likewise.
34088         * tests/test-fseeko.c (ASSERT): Likewise.
34089         * tests/test-fstrcmp.c (ASSERT): Likewise.
34090         * tests/test-ftell.c (ASSERT): Likewise.
34091         * tests/test-ftello.c (ASSERT): Likewise.
34092         * tests/test-func.c (ASSERT): Likewise.
34093         * tests/test-fwritable.c (ASSERT): Likewise.
34094         * tests/test-fwriting.c (ASSERT): Likewise.
34095         * tests/test-getdelim.c (ASSERT): Likewise.
34096         * tests/test-getline.c (ASSERT): Likewise.
34097         * tests/test-i-ring.c (ASSERT): Likewise.
34098         * tests/test-iconv-utf.c (ASSERT): Likewise.
34099         * tests/test-iconv.c (ASSERT): Likewise.
34100         * tests/test-isfinite.c (ASSERT): Likewise.
34101         * tests/test-isnand.c (ASSERT): Likewise.
34102         * tests/test-isnanf.c (ASSERT): Likewise.
34103         * tests/test-isnanl.h (ASSERT): Likewise.
34104         * tests/test-ldexpl.c (ASSERT): Likewise.
34105         * tests/test-linked_list.c (ASSERT): Likewise.
34106         * tests/test-linkedhash_list.c (ASSERT): Likewise.
34107         * tests/test-localename.c (ASSERT): Likewise.
34108         * tests/test-lseek.c (ASSERT): Likewise.
34109         * tests/test-mbscasecmp.c (ASSERT): Likewise.
34110         * tests/test-mbscasestr1.c (ASSERT): Likewise.
34111         * tests/test-mbscasestr2.c (ASSERT): Likewise.
34112         * tests/test-mbscasestr3.c (ASSERT): Likewise.
34113         * tests/test-mbscasestr4.c (ASSERT): Likewise.
34114         * tests/test-mbschr.c (ASSERT): Likewise.
34115         * tests/test-mbscspn.c (ASSERT): Likewise.
34116         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
34117         * tests/test-mbspbrk.c (ASSERT): Likewise.
34118         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
34119         * tests/test-mbsrchr.c (ASSERT): Likewise.
34120         * tests/test-mbsspn.c (ASSERT): Likewise.
34121         * tests/test-mbsstr1.c (ASSERT): Likewise.
34122         * tests/test-mbsstr2.c (ASSERT): Likewise.
34123         * tests/test-mbsstr3.c (ASSERT): Likewise.
34124         * tests/test-memchr2.c (ASSERT): Likewise.
34125         * tests/test-memmem.c (ASSERT): Likewise.
34126         * tests/test-open.c (ASSERT): Likewise.
34127         * tests/test-printf-frexp.c (ASSERT): Likewise.
34128         * tests/test-printf-frexpl.c (ASSERT): Likewise.
34129         * tests/test-printf-posix.c (ASSERT): Likewise.
34130         * tests/test-quotearg.c (ASSERT): Likewise.
34131         * tests/test-rbtree_list.c (ASSERT): Likewise.
34132         * tests/test-rbtree_oset.c (ASSERT): Likewise.
34133         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
34134         * tests/test-round1.c (ASSERT): Likewise.
34135         * tests/test-roundf1.c (ASSERT): Likewise.
34136         * tests/test-roundl.c (ASSERT): Likewise.
34137         * tests/test-signbit.c (ASSERT): Likewise.
34138         * tests/test-sleep.c (ASSERT): Likewise.
34139         * tests/test-snprintf-posix.c (ASSERT): Likewise.
34140         * tests/test-snprintf.c (ASSERT): Likewise.
34141         * tests/test-sprintf-posix.c (ASSERT): Likewise.
34142         * tests/test-stat-time.c (ASSERT): Likewise.
34143         * tests/test-strcasestr.c (ASSERT): Likewise.
34144         * tests/test-strerror.c (ASSERT): Likewise.
34145         * tests/test-striconv.c (ASSERT): Likewise.
34146         * tests/test-striconveh.c (ASSERT): Likewise.
34147         * tests/test-striconveha.c (ASSERT): Likewise.
34148         * tests/test-strsignal.c (ASSERT): Likewise.
34149         * tests/test-strstr.c (ASSERT): Likewise.
34150         * tests/test-strtod.c (ASSERT): Likewise.
34151         * tests/test-trunc1.c (ASSERT): Likewise.
34152         * tests/test-trunc2.c (ASSERT): Likewise.
34153         * tests/test-truncf1.c (ASSERT): Likewise.
34154         * tests/test-truncf2.c (ASSERT): Likewise.
34155         * tests/test-truncl.c (ASSERT): Likewise.
34156         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
34157         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
34158         * tests/test-vasnprintf.c (ASSERT): Likewise.
34159         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
34160         * tests/test-vasprintf.c (ASSERT): Likewise.
34161         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
34162         * tests/test-vprintf-posix.c (ASSERT): Likewise.
34163         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
34164         * tests/test-vsnprintf.c (ASSERT): Likewise.
34165         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
34166         * tests/test-wcwidth.c (ASSERT): Likewise.
34167         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
34168         * tests/test-xprintf-posix.c (ASSERT): Likewise.
34169         * tests/test-xvasprintf.c (ASSERT): Likewise.
34170         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
34171         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
34172         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
34173         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
34174         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
34175         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
34176         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
34177         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
34178         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
34179         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
34180         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
34181         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
34182         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
34183         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
34184         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
34185         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
34186         * tests/unictype/test-block_list.c (ASSERT): Likewise.
34187         * tests/unictype/test-block_of.c (ASSERT): Likewise.
34188         * tests/unictype/test-block_test.c (ASSERT): Likewise.
34189         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
34190         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
34191         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
34192         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
34193         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
34194         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
34195         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
34196         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
34197         * tests/unictype/test-combining.c (ASSERT): Likewise.
34198         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
34199         * tests/unictype/test-digit.c (ASSERT): Likewise.
34200         * tests/unictype/test-mirror.c (ASSERT): Likewise.
34201         * tests/unictype/test-numeric.c (ASSERT): Likewise.
34202         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
34203         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
34204         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
34205         * tests/unictype/test-scripts.c (ASSERT): Likewise.
34206         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
34207         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
34208         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
34209         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
34210         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
34211         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
34212         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
34213         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
34214         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
34215         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
34216         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
34217         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
34218         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
34219         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
34220         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
34221         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
34222         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
34223         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
34224         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
34225         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
34226         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
34227         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
34228         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
34229         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
34230         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
34231         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
34232         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
34233         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
34234         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
34235         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
34236         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
34237         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
34238         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
34239         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
34240         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
34241         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
34242         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
34243         Reported by Eric Blake.
34244
34245 2008-04-11  Bruno Haible  <bruno@clisp.org>
34246
34247         * lib/wchar.in.h: Tweak comment.
34248
34249 2008-04-11  Bruno Haible  <bruno@clisp.org>
34250
34251         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
34252         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
34253         gl_COMMON.
34254         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
34255
34256 2008-04-11  Bruno Haible  <bruno@clisp.org>
34257
34258         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
34259
34260 2008-04-11  Simon Josefsson  <simon@josefsson.org>
34261
34262         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
34263         of attempting to use non-existing /dev/*random.  Based on patch
34264         from Adam Strzelecki <ono@java.pl> in
34265         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
34266
34267 2008-04-08  Bruno Haible  <bruno@clisp.org>
34268
34269         Add tentative support for emx+gcc.
34270         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
34271         * lib/fpurge.c (fpurge): Likewise.
34272         * lib/freadable.c (freadable): Likewise.
34273         * lib/freadahead.c (freadahead): Likewise.
34274         * lib/freading.c (freading): Likewise.
34275         * lib/freadptr.c (freadptr): Likewise.
34276         * lib/freadseek.c (freadptrinc): Likewise.
34277         * lib/fseeko.c (rpl_fseeko): Likewise.
34278         * lib/fseterr.c (fseterr): Likewise.
34279         * lib/fwritable.c (fwritable): Likewise.
34280         * lib/fwriting.c (fwriting): Likewise.
34281         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
34282
34283 2008-04-09  Eric Blake  <ebb9@byu.net>
34284
34285         Avoid some autoconf warnings.
34286         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
34287         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
34288         * m4/afs.m4 (gl_AFS): Likewise.
34289         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
34290         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
34291         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34292         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
34293         (gl_INTEGER_TYPE_SUFFIX): Likewise.
34294         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
34295         (AC_CHECK_DECLS_ONCE): Likewise.
34296         Rename file...
34297         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
34298         gnulib-tool requires autoconf 2.59 or better.
34299         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
34300
34301 2008-04-08  Eric Blake  <ebb9@byu.net>
34302
34303         Use 'git describe --match' if present (added in git 1.5.5).
34304         * build-aux/git-version-gen: Limit result to tags that match 'v*'
34305         if possible.
34306
34307 2008-04-08  Bruno Haible  <bruno@clisp.org>
34308
34309         Add tentative support for OpenServer.
34310         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
34311         _ptr, _cnt.
34312         * lib/fpurge.c (fpurge): Likewise.
34313         * lib/freadable.c (freadable): Likewise.
34314         * lib/freadahead.c (freadahead): Likewise.
34315         * lib/freading.c (freading): Likewise.
34316         * lib/freadptr.c (freadptr): Likewise.
34317         * lib/freadseek.c (freadptrinc): Likewise.
34318         * lib/fseeko.c (rpl_fseeko): Likewise.
34319         * lib/fseterr.c (fseterr): Likewise.
34320         * lib/fwritable.c (fwritable): Likewise.
34321         * lib/fwriting.c (fwriting): Likewise.
34322         Reported by Roger Cornelius <rac@tenzing.org> and
34323         Brian K. White <brian@aljex.com>.
34324
34325 2008-04-06  Jim Meyering  <meyering@redhat.com>
34326
34327         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
34328
34329 2008-04-06  Bruno Haible  <bruno@clisp.org>
34330
34331         Avoid possible error with non-ASCII bytes in UTF-8 locales.
34332         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
34333         * tests/test-printf-posix.sh: Likewise.
34334         * tests/test-vfprintf-posix.sh: Likewise.
34335         * tests/test-vprintf-posix.sh: Likewise.
34336         * tests/test-xprintf-posix.sh: Likewise.
34337
34338 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34339
34340         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
34341         hide error from 'ls', needed on OS/2.
34342         Report by Elbert Pol <elbert.pol@gmail.com>.
34343
34344 2008-04-04  Eric Blake  <ebb9@byu.net>
34345
34346         Make test-fseeko.c failures meaningful.
34347         * tests/test-fseeko.c: Print line number on failure.
34348         * tests/test-fseek.c: Likewise.
34349         Reported by Nelson H. F. Beebe.
34350
34351         Improve strtod bug detection check.
34352         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
34353         required for Solaris 10.
34354         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
34355
34356 2008-04-04  Bruno Haible  <bruno@clisp.org>
34357
34358         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
34359         by m4/setenv.m4.
34360
34361 2008-04-03  Eric Blake  <ebb9@byu.net>
34362
34363         Ensure sane .version contents.
34364         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
34365         version string.
34366         * build-aux/git-version-gen: Improve documentation.
34367
34368         Make GNU make output nicer.
34369         * top/GNUmakefile [!_have-Makefile]: Add dependency on
34370         MAKECMDGOALS to enforce message for all command line targets.  Set
34371         srcdir for use in maint.mk.
34372
34373         Another maintainer tweak.
34374         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
34375         a target that regenerates version.
34376
34377 2008-04-03  Jim Meyering  <meyering@redhat.com>
34378
34379         vc-list-files: don't cause coreutils "make po-check" failure
34380         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
34381
34382 2008-04-03  Eric Blake  <ebb9@byu.net>
34383
34384         Allow VPATH usage of vc-list-files.
34385         * build-aux/vc-list-files (scriptversion): Add timestamp.
34386         (options): Add --help, --version, -C.
34387         (CVS): Support installed cvsu.
34388
34389 2008-04-02  Bruno Haible  <bruno@clisp.org>
34390
34391         Avoid some "statement with no effect" warnings from gcc.
34392         * tests/test-wctype.c (main): Explicitly ignore unused values.
34393         Reported by Jim Meyering.
34394
34395 2008-04-02  Jim Meyering  <meyering@redhat.com>
34396
34397         Avoid some warnings from "gcc -Wshadow".
34398         * tests/test-frexp.c (exp): Define to a different identifier.
34399         * tests/test-frexpl.c (exp): Likewise.
34400
34401 2008-04-03  Jim Meyering  <meyering@redhat.com>
34402
34403         bootstrap: remove dangling *.[ch] symlinks from lib
34404         * build-aux/bootstrap [dangling symlink removal]: Move find's
34405         -depth option to precede all others, to avoid a warning.
34406         Remove *.[ch] files too, and from "$source_base" (usually lib/).
34407
34408 2008-04-02  Bruno Haible  <bruno@clisp.org>
34409
34410         Avoid some warnings from "gcc -Wshadow".
34411         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
34412         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
34413         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
34414         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
34415         Reported by Jim Meyering.
34416
34417 2008-04-01  Bruno Haible  <bruno@clisp.org>
34418
34419         Fix test to work on IRIX 6.5 with cc.
34420         * tests/test-math.c (numeric_equal): New function.
34421         (main): Use it.
34422
34423 2008-04-01  Bruno Haible  <bruno@clisp.org>
34424
34425         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
34426
34427 2008-04-01  Bruno Haible  <bruno@clisp.org>
34428
34429         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
34430         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34431         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
34432         (Depends-on): Remove math.
34433
34434         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
34435         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34436         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
34437         (Depends-on): Remove math.
34438
34439         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
34440         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34441         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
34442         (Depends-on): Remove math.
34443         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
34444         (Depends-on): Remove math.
34445
34446         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
34447         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
34448         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
34449         (Depends-on): Remove math.
34450         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
34451         (Depends-on): Remove math.
34452
34453         * tests/test-round1.c: Include nan.h.
34454         (main): Use NaNd instead of NAN.
34455         * modules/round-tests (Files): Add tests/nan.h.
34456
34457         * tests/test-trunc1.c: Include nan.h.
34458         (main): Use NaNd instead of NAN.
34459         * modules/trunc-tests (Files): Add tests/nan.h.
34460
34461         * tests/test-roundf1.c: Include nan.h.
34462         (main): Use NaNf instead of NAN.
34463         * modules/roundf-tests (Files): Add tests/nan.h.
34464
34465         * tests/test-truncf1.c: Include nan.h.
34466         (main): Use NaNf instead of NAN.
34467         * modules/truncf-tests (Files): Add tests/nan.h.
34468
34469         * tests/test-ceilf1.c: Include nan.h.
34470         (main): Use NaNf instead of NAN.
34471         * modules/ceilf-tests (Files): Add tests/nan.h.
34472
34473         * tests/test-floorf1.c: Include nan.h.
34474         (main): Use NaNf instead of NAN.
34475         * modules/floorf-tests (Files): Add tests/nan.h.
34476
34477         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
34478         (main): Use NaNf instead of NAN.
34479         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
34480
34481         * tests/test-isnand.c: Include nan.h instead of <math.h>.
34482         (main): Use NaNd instead of NAN.
34483         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
34484
34485         * tests/test-frexp.c: Include nan.h.
34486         (main): Use NaNd instead of NAN.
34487         * modules/frexp-tests (Files): Add tests/nan.h.
34488
34489         * lib/isnan.c: Don't include <math.h>.
34490         (FUNC): Don't use NAN macro.
34491         * modules/isnand-nolibm (Depends-on): Remove math.
34492         * modules/isnanf-nolibm (Depends-on): Remove math.
34493         * modules/isnanl (Depends-on): Remove math.
34494         * modules/isnanl-nolibm (Depends-on): Remove math.
34495
34496         * tests/nan.h: New file.
34497
34498 2008-04-01  Eric Blake  <ebb9@byu.net>
34499
34500         Fix typos.
34501         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
34502         values to be the right type.
34503
34504         For now, cater to gnulib strtod inaccuracies.
34505         * tests/test-strtod.c (main): Allow 1-ulp error on expected
34506         fractional results.  While not as nice from a QoI perspective, it
34507         is a quicker patch than correctly implementing decimal to binary
34508         rounding.
34509
34510 2008-03-31  Eric Blake  <ebb9@byu.net>
34511
34512         Guarantee a definition of NAN.
34513         * lib/math.in.h (NAN): Define if missing.
34514         * tests/test-math.c (main): Test it.
34515         * doc/posix-headers/math.texi (math.h): Document this.
34516         * lib/isnan.c (rpl_isnand): Use it.
34517         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
34518         * tests/test-floorf1.c (NaN): Likewise.
34519         * tests/test-frexp.c (NaN): Likewise.
34520         * tests/test-isnand.c (NaN): Likewise.
34521         * tests/test-isnanf.c (NaN): Likewise.
34522         * tests/test-round1.c (NaN): Likewise.
34523         * tests/test-roundf1.c (NaN): Likewise.
34524         * tests/test-snprintf-posix.h (NaN): Likewise.
34525         * tests/test-sprintf-posix.h (NaN): Likewise.
34526         * tests/test-trunc1.c (NaN): Likewise.
34527         * tests/test-truncf1.c (NaN): Likewise.
34528         * tests/test-vasnprintf-posix.c (NaN): Likewise.
34529         * tests/test-vasprintf-posix.c (NaN): Likewise.
34530         * modules/isnand-nolibm (Depends-on): Add math.
34531         * modules/isnanf-nolibm (Depends-on): Likewise.
34532         * modules/isnanl (Depends-on): Likewise.
34533         * modules/isnanl-nolibm (Depends-on): Likewise.
34534         * modules/snprintf-posix-tests (Depends-on): Likewise.
34535         * modules/sprintf-posix-tests (Depends-on): Likewise.
34536         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
34537         * modules/vsprintf-posix-tests (Depends-on): Likewise.
34538         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
34539         * modules/vasprintf-posix-tests (Depends-on): Likewise.
34540
34541 2008-03-31  Bruno Haible  <bruno@clisp.org>
34542
34543         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
34544         * doc/posix-functions/strtod.texi: Likewise.
34545
34546 2008-03-31  Bruno Haible  <bruno@clisp.org>
34547
34548         * tests/test-strtod.c (main): Don't use C99 syntax.
34549
34550 2008-03-31  Bruno Haible  <bruno@clisp.org>
34551
34552         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
34553         Reported by Eric Blake.
34554
34555 2008-03-31  Jim Meyering  <meyering@redhat.com>
34556
34557         Don't compare actual signbit return values.
34558         * tests/test-strtod.c (main): Rather, compare only their
34559         zero/non-zero nature.
34560
34561 2008-03-31  Eric Blake  <ebb9@byu.net>
34562
34563         More strtod documentation.
34564         * doc/posix-functions/strtod.texi (strtod): Interpret more test
34565         failures as distinct bugs.
34566
34567 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34568
34569         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
34570         Problem reported by Erik Benada in
34571         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
34572
34573 2008-03-30  Bruno Haible  <bruno@clisp.org>
34574
34575         * tests/test-strtod.c: Add comments about which assertion fails on which
34576         platform.
34577         * doc/posix-functions/strtod.texi: Add info about many more platforms.
34578
34579 2008-03-30  Eric Blake  <ebb9@byu.net>
34580
34581         Test signbit behavior on zeros.
34582         * tests/test-signbit.c (test_signbitf): Add tests for zero.
34583         (test_signbitd, test_signbitl): Likewise.
34584
34585         More strtod touchups.
34586         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
34587         sign of negative underflow, for now.  Use .5, not .1.
34588         * doc/posix-functions/strtod.texi (strtod): Mention these
34589         limitations.
34590         Reported by Jim Meyering.
34591
34592 2008-03-30  Bruno Haible  <bruno@clisp.org>
34593
34594         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
34595         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
34596
34597 2008-03-30  Bruno Haible  <bruno@clisp.org>
34598
34599         Avoid failure when attempting to return empty iconv results on some
34600         platforms.
34601         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
34602         allocation, don't report ENOMEM when the resulting string is empty.
34603
34604 2008-03-30  Bruno Haible  <bruno@clisp.org>
34605
34606         Fix buffer overrun.
34607         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
34608         Don't consider the width for tmp_length. Check count against tmp_length
34609         before doing the padding. Ensure enough allocation during padding.
34610
34611 2008-03-30  Eric Blake  <ebb9@byu.net>
34612
34613         strtod touchups.
34614         * lib/strtod.c (strtod): Avoid compiler warnings.
34615         Reported by Jim Meyering.
34616
34617 2008-03-30  Bruno Haible  <bruno@clisp.org>
34618
34619         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
34620         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
34621         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
34622         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
34623         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
34624         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
34625         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
34626         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
34627
34628         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
34629         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
34630         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
34631         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
34632         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
34633         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
34634         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
34635         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
34636
34637         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
34638         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
34639         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
34640         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
34641         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
34642         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
34643         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
34644         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
34645
34646         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
34647         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
34648
34649         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
34650         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
34651
34652         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
34653         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
34654
34655         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
34656         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
34657         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
34658
34659         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
34660         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
34661         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
34662
34663         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
34664         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
34665         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
34666
34667         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
34668         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
34669         * modules/vasprintf (Depends-on): Add EOVERFLOW.
34670
34671         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
34672         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
34673         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
34674         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
34675         (Depends-on): Add EOVERFLOW.
34676         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
34677         (Depends-on): Add EOVERFLOW.
34678         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34679         (Depends-on): Add EOVERFLOW.
34680         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34681         (Depends-on): Add EOVERFLOW.
34682         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34683         (Depends-on): Add EOVERFLOW.
34684         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34685         (Depends-on): Add EOVERFLOW.
34686         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34687         (Depends-on): Add EOVERFLOW.
34688         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34689         (Depends-on): Add EOVERFLOW.
34690
34691         * lib/sprintf.c (EOVERFLOW): Remove fallback.
34692         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
34693         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
34694
34695         * lib/snprintf.c (EOVERFLOW): Remove fallback.
34696         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
34697         * modules/snprintf (Depends-on): Add EOVERFLOW.
34698
34699         * lib/poll.c (EOVERFLOW): Remove fallback.
34700         * modules/poll (Depends-on): Add EOVERFLOW.
34701
34702         * lib/getugroups.c (EOVERFLOW): Remove fallback.
34703         * modules/getugroups (Depends-on): Add EOVERFLOW.
34704
34705         * lib/getdelim.c (EOVERFLOW): Remove fallback.
34706         * modules/getdelim (Depends-on): Add EOVERFLOW.
34707
34708         * lib/ftell.c (EOVERFLOW): Remove fallback.
34709         * modules/ftell (Depends-on): Add EOVERFLOW.
34710
34711         * lib/fprintf.c (EOVERFLOW): Remove fallback.
34712         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
34713         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
34714
34715         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
34716
34717         * modules/EOVERFLOW-tests: New file.
34718         * tests/test-EOVERFLOW.c: New file.
34719
34720         * modules/EOVERFLOW: New file.
34721         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
34722
34723 2008-03-30  Bruno Haible  <bruno@clisp.org>
34724
34725         Fix bug introduced on 2007-06-10.
34726         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
34727         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
34728
34729 2008-03-30  Bruno Haible  <bruno@clisp.org>
34730
34731         Improve freadseek's efficiency after ungetc.
34732         * lib/freadseek.c: Include freadahead.h.
34733         (freadptrinc): New function, extracted from freadseek.
34734         (freadseek): Use it in a loop. Use freadahead to determine the number
34735         of loop iterations.
34736         * modules/freadseek (Depends-on): Add freadahead.
34737         (configure.ac): Require AC_C_INLINE.
34738
34739 2008-03-30  Bruno Haible  <bruno@clisp.org>
34740
34741         * lib/freadseek.c (freadseek): Don't ignore the return value of
34742         freadptr.
34743
34744 2008-03-29  Eric Blake  <ebb9@byu.net>
34745
34746         Add hex float support.
34747         * modules/strtod (Depends-on): Add c-ctype.
34748         (Link): Mention POW_LIB.
34749         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
34750         whitespace between 'e' and exponent.
34751         * tests/test-strtod.c (main): Enable hex float tests.
34752         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
34753         now provides.
34754
34755         Document various strtod bugs, with some fixes.
34756         * doc/posix-functions/strtod.texi (strtod): Document bugs with
34757         "-0x", "inf", "nan", and hex constants.
34758         * doc/posix-functions/atof.texi (atof): Likewise.
34759         * modules/stdlib (Makefile.am): Support strtod.
34760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34761         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
34762         detect additional strtod bugs.
34763         * lib/stdlib.in.h (rpl_strtod): Add declarations.
34764         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
34765         bool where appropriate.  Parse 'inf' and 'nan'.
34766         * tests/test-strtod.c: New file.
34767         * modules/strtod (Depends-on): Add stdbool, stdlib.
34768         (configure.ac): Turn on module indicator.
34769         * modules/strtod-tests: New module.
34770
34771 2008-03-29  Eric Blake  <ebb9@byu.net>
34772
34773         Fix ftell on mingw.
34774         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
34775         * modules/ftell-tests (Depends-on): Add binary-io.
34776         * modules/ftello-tests (Depends-on): Likewise.
34777         * tests/test-ftell.c (main): Enhance test to cover behavior after
34778         ungetc.  Enforce binary mode.
34779         * tests/test-ftello.c (main): Likewise.
34780
34781         Pass test-freadseek on cygwin.
34782         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
34783         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
34784         ungetc buffer.
34785
34786         * tests/test-fflush2.c (main): Fix typo.
34787
34788 2008-03-29  Bruno Haible  <bruno@clisp.org>
34789
34790         * tests/test-fflush2.c (main): Temporarily disable the contents of
34791         this test.
34792         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
34793         Reported by Eric Blake.
34794
34795 2008-03-28  Simon Josefsson  <simon@josefsson.org>
34796
34797         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
34798         (GC_SHA224_DIGEST_SIZE): Add.
34799
34800         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
34801         (gc_hash_digest_length): Likewise.
34802         (gc_hash_buffer): Likewise.
34803
34804 2008-03-25  Bruno Haible  <bruno@clisp.org>
34805
34806         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
34807         detail which gettext release to use.
34808         Reported by Simon Josefsson.
34809
34810 2008-03-26  Jim Meyering  <meyering@redhat.com>
34811
34812         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
34813         * modules/gnumakefile (clean-GNUmakefile): Also, use
34814         test ... && ... || : syntax rather than if-then ... fi.
34815
34816         gnumakefile: Don't double-quote-expand $(VPATH) value.
34817         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
34818
34819 2008-03-24  Eric Blake  <ebb9@byu.net>
34820
34821         Alter GNUmakefile to install into top directory.
34822         * modules/maintainer-makefile: Split, and add dependency...
34823         * modules/gnumakefile: to this new module.
34824         * build-aux/GNUmakefile: Move...
34825         * top/GNUmakefile: ...here.
34826         * build-aux/maint.mk: Move...
34827         * top/maint.mk: ...here.
34828         * MODULES.html.sh (Support for maintaining...): Document new
34829         module.
34830
34831 2008-03-23  Bruno Haible  <bruno@clisp.org>
34832
34833         * gnulib-tool: New options --vc-files, --no-vc-files.
34834         (func_usage): Document them.
34835         (vc_files): New variable.
34836         (func_import): Consider vc_files.
34837         (func_create_testdir): Set vc_files to empty.
34838         Suggested by Jim Meyering and Karl Berry.
34839
34840 2008-03-23  Bruno Haible  <bruno@clisp.org>
34841
34842         Fix regex compilation error on HP-UX 11.
34843         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
34844         * modules/regex (Files): Add m4/mbstate_t.m4.
34845         Reported by Ton Voon <ton.voon@altinity.com>.
34846
34847 2008-03-23  Bruno Haible  <bruno@clisp.org>
34848
34849         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
34850
34851 2008-03-23  Eric Blake  <ebb9@byu.net>
34852             Bruno Haible  <bruno@clisp.org>
34853
34854         Install files from top/ in the destination directory.
34855         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
34856         augmentation also for the files from top/.
34857         (func_import, func_create_testdir): Rewrite file names:
34858         top/filename -> filename.
34859
34860 2008-03-23  Bruno Haible  <bruno@clisp.org>
34861
34862         Tweak "gnulib --version" output.
34863         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
34864
34865 2008-03-23  Bruno Haible  <bruno@clisp.org>
34866
34867         Tweak "gnulib --version" output.
34868         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
34869         rather than contents of ChangeLog, when possible.
34870
34871 2008-03-21  Eric Blake  <ebb9@byu.net>
34872
34873         More --version tweaks.
34874         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
34875         date of last ChangeLog entry.
34876
34877 2008-03-21  Jim Meyering  <meyering@redhat.com>
34878
34879         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
34880
34881 2008-03-20  Eric Blake  <ebb9@byu.net>
34882
34883         VPATH fix.
34884         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
34885
34886 2008-03-20  Simon Josefsson  <simon@josefsson.org>
34887
34888         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
34889         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
34890
34891 2008-03-20  Eric Blake  <ebb9@byu.net>
34892
34893         Sync GNUmakefile with coreutils.
34894         * build-aux/GNUmakefile (have-Makefile): Rename...
34895         (_have-Makefile): ...to this, for namespace consideration.
34896         (GNUmakefile.cfg): Include, if present.
34897         (_autoreconf): Define a default.
34898         (_is-dist-target): New rule for rebuilds to pick up intra-release
34899         version.
34900         (maint-cfg.mk): Rename...
34901         (cfg.mk): ...to this.
34902
34903 2008-03-18  Jim Meyering  <meyering@redhat.com>
34904
34905         New script and module: mktempd
34906         * MODULES.html.sh (maint+release support): Add mktempd.
34907         * build-aux/mktempd: New file.
34908         * modules/mktempd: New file.
34909
34910 2008-03-15  Jim Meyering  <meyering@redhat.com>
34911
34912         Undo last change.
34913         * lib/sha1.c, lib/md5.c: 63 != ~63.
34914         Reported by Andreas Schwab.
34915
34916         sha1.c, md5.c: Hoist a redundant expression.
34917         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
34918         "ctx->buflen" only once, before calling *_process_block.
34919         * lib/md5.c (md5_process_bytes): Likewise.
34920
34921 2008-03-14  Eric Blake  <ebb9@byu.net>
34922
34923         Bump copyright year in files generated by gnulib-tool.
34924         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
34925         gnulib-tool, rather than hard-coding it.
34926
34927         Fix 'gnulib-tool --version' output to work with git.
34928         * gnulib-tool (func_gnulib_dir): New function, extracted from...
34929         (startup): ...here.
34930         (func_version): Use it to invoke git-version-gen, rather than
34931         relying on CVS keyword expansion.  Modernize wording.
34932         (cvsdatestamp, last_checkin_date, version): Kill unused
34933         variables.
34934
34935 2008-03-12  Jim Meyering  <meyering@redhat.com>
34936
34937         Recognize optional cast of the argument to free.
34938         * build-aux/useless-if-before-free: Update regexps.
34939
34940         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
34941
34942 2008-03-11  Bruno Haible  <bruno@clisp.org>
34943
34944         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
34945         by a single package.
34946         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
34947         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
34948         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
34949         Reported by Sam Steingold <sds@gnu.org>.
34950
34951 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34952
34953         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
34954         repositories.
34955
34956 2008-03-11  Bruno Haible  <bruno@clisp.org>
34957
34958         Avoid conflicts between local macro definitions.
34959         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
34960         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
34961
34962 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
34963             Bruno Haible  <bruno@clisp.org>
34964
34965         Make va_copy work with some version of xlc on AIX 5.1.
34966         * lib/stdarg.in.h: New file.
34967         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
34968         On AIX, use a <stdarg.h> file substitute.
34969         * modules/stdarg (Files): Add lib/stdarg.in.h.
34970         (Depends-on): Add include_next.
34971         (Makefile.am): Build a stdarg.h substitute if requested.
34972         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
34973
34974 2008-03-10  Bruno Haible  <bruno@clisp.org>
34975
34976         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
34977         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34978         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34979
34980 2008-03-10  Bruno Haible  <bruno@clisp.org>
34981
34982         * modules/stdlib (Depends-on): Add include_next, remove
34983         absolute-header.
34984
34985 2008-03-09  Bruno Haible  <bruno@clisp.org>
34986
34987         * lib/freadahead.h (freadahead): Document more precisely.
34988         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
34989         the sum of both buffer sizes.
34990         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
34991         * NEWS: Document the change.
34992
34993 2008-03-09  Bruno Haible  <bruno@clisp.org>
34994
34995         Extend freadptr to return also the buffer size.
34996         * lib/freadptr.h (freadptr): Add sizep argument.
34997         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
34998         (freadptr): Add sizep argument. Determine buffer size like freadahead
34999         does.
35000         * tests/test-freadptr.c: Don't include freadahead.h.
35001         (main): Adapt for new calling convention of freadptr.
35002         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
35003         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
35004         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
35005         tests/test-freadptr2.sh.
35006         (Depends): Remove freadahead.
35007         (TESTS): Add test-freadptr2.sh.
35008         (check_PROGRAMS): Add test-freadptr2.
35009
35010 2008-03-09  Bruno Haible  <bruno@clisp.org>
35011
35012         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
35013         Report and solution by Simon Josefsson.
35014
35015 2008-03-06  Bruno Haible  <bruno@clisp.org>
35016
35017         Make fflush after ungetc work on BSD platforms.
35018         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
35019         * tests/test-fflush2.c: New file.
35020         * tests/test-fflush2.sh: New file.
35021         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
35022         tests/test-fflush2.c.
35023         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
35024         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
35025
35026 2008-03-06  Eric Blake  <ebb9@byu.net>
35027
35028         Likewise for ftello.
35029         * modules/ftello (Dependencies): Add extensions.
35030         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
35031
35032 2008-03-06  Bruno Haible  <bruno@clisp.org>
35033
35034         * modules/fseeko (Dependencies): Add extensions.
35035         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
35036         Needed on glibc systems.
35037
35038 2008-03-06  Bruno Haible  <bruno@clisp.org>
35039
35040         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
35041         email address.
35042         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
35043
35044 2008-03-06  Bruno Haible  <bruno@clisp.org>
35045
35046         * users.txt: Add libgnupdf.
35047
35048 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35049
35050         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
35051         (Header File Substitutes, Function Substitutes,
35052         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
35053         (Build robot for gnulib): Fix typo.
35054
35055 2008-03-06  Bruno Haible  <bruno@clisp.org>
35056
35057         * doc/gnulib-tool.texi (VCS Issues): Small updates.
35058         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
35059
35060 2008-03-06  Bruno Haible  <bruno@clisp.org>
35061
35062         * doc/func.texi: New file, extracted from doc/gnulib.texi.
35063         * doc/gnulib.texi: Include it.
35064
35065 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35066
35067         * modules/func (License): Change license to unlimited; there was
35068         no LGPL parts in the module anyway.
35069
35070 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35071
35072         * modules/__func__: Renamed to modules/func.
35073         * modules/__func__-tests: Renamed to modules/func-tests.
35074         * tests/test-__func__.c: Renamed to tests/test-func.c.
35075         * m4/__func__.m4: Renamed to m4/func.m4.
35076         * doc/gnulib.texi (__func__): Section renamed to func.
35077         Suggested by Eric Blake <ebb9@byu.net>.
35078
35079 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35080
35081         * doc/gnulib.texi (__func__): Use C99 terminology when talking
35082         about __func__.  Make example self-contained.  Suggested by Eric
35083         Blake <ebb9@byu.net>.
35084
35085         * tests/test-__func__.c (main): Avoid extraneous () around __func.
35086         Suggested by Eric Blake <ebb9@byu.net>.
35087
35088 2008-03-06  Simon Josefsson  <simon@josefsson.org>
35089
35090         * modules/__func__: New file.
35091         * modules/__func__-tests: New file.
35092         * tests/test-__func__.c: New file.
35093         * m4/__func__.m4: New file.
35094         * doc/gnulib.texi (__func__): Document __func__ module.
35095
35096 2008-03-05  Simon Josefsson  <simon@josefsson.org>
35097
35098         * modules/byteswap (License): Re-license as LGPLv2+.
35099
35100 2008-03-05  Simon Josefsson  <simon@josefsson.org>
35101
35102         * doc/Makefile: Add pdf target.
35103
35104 2008-03-05  Simon Josefsson  <simon@josefsson.org>
35105
35106         * modules/inline (License): Use 'unlimited', since there are only
35107         *.m4 files in this module.
35108
35109 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
35110             Bruno Haible  <bruno@clisp.org>
35111
35112         Add support for HP C 7.1 on OpenVMS 8.3.
35113         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
35114
35115 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
35116
35117         Update VMS specifics.
35118         * lib/getopt.c [VMS]: Remove include of unixlib.h.
35119
35120 2008-03-02  Jim Meyering  <meyering@redhat.com>
35121
35122         Remove the last dependency on the "free" module.
35123         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
35124         Reported by Bob Proulx.
35125
35126         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
35127
35128         Remove useless "if" tests before free.  Deprecate "free" module.
35129         * doc/posix-functions/free.texi: Mention that this
35130         module is no longer useful.
35131         * modules/free (Notice): Say this module is obsolete.
35132         * modules/readutmp (Depends-on): Remove free.
35133         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
35134         * lib/putenv.c (putenv): Likewise.
35135         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
35136         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
35137         * tests/test-c-strcasestr.c (main): Likewise.
35138         * tests/test-c-strstr.c (main): Likewise.
35139         * tests/test-mbscasestr1.c (main): Likewise.
35140         * tests/test-mbscasestr2.c (main): Likewise.
35141         * tests/test-mbsstr1.c (main): Likewise.
35142         * tests/test-mbsstr2.c (main): Likewise.
35143         * tests/test-memmem.c (main): Likewise.
35144         * tests/test-strcasestr.c (main): Likewise.
35145         * tests/test-striconv.c (main): Likewise.
35146         * tests/test-striconveh.c (main): Likewise.
35147         * tests/test-striconveha.c (main): Likewise.
35148         * tests/test-strstr.c (main): Likewise.
35149
35150         * build-aux/git-version-gen: Adjust a comment and the Usage string.
35151
35152         bootstrap: sync from coreutils again
35153         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
35154
35155 2008-03-01  Jim Meyering  <meyering@redhat.com>
35156
35157         bootstrap: sync from coreutils
35158         * build-aux/bootstrap (update_po_files): Copy a .po file into place
35159         also when the target doesn't exist.
35160
35161 2008-03-01  Eric Blake  <ebb9@byu.net>
35162
35163         Fix bugs in last patch.
35164         * lib/memchr2.c (memchr2): Fix typo.
35165         * tests/test-memchr2.c: Test previous bug, and don't use GNU
35166         extension.
35167         Reported by Bruce Korb.
35168
35169         New module 'memchr2'.
35170         * modules/memchr2: New file.
35171         * modules/memchr2-tests: Likewise.
35172         * lib/memchr2.h: Likewise.
35173         * lib/memchr2.c: Likewise, based on memchr.c.
35174         * tests/test-memchr2.c: New test.
35175         * MODULES.html.sh (String handling): Add memchr2.
35176
35177 2008-02-29  Bruno Haible  <bruno@clisp.org>
35178
35179         * modules/freadseek-tests: New file.
35180         * tests/test-freadseek.sh: New file.
35181         * tests/test-freadseek.c: New file.
35182
35183         New module 'freadseek'.
35184         * modules/freadseek: New file.
35185         * lib/freadseek.h: New file.
35186         * lib/freadseek.c: New file.
35187         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
35188
35189 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35190
35191         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
35192         wydawca.
35193
35194         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
35195         program_invocation_name and program_invocation_short_name are
35196         present.
35197
35198 2008-02-28  Bruno Haible  <bruno@clisp.org>
35199
35200         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
35201         * tests/test-freadptr.sh: Also test non-seekable stdin.
35202
35203 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
35204
35205         * build-aux/bootstrap (source_base, m4_base)
35206         (doc_base, tests_base): New variables.
35207         (gnulib_tool_options): Do not hardcode base directories, use
35208         the above variables instead.
35209
35210 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
35211
35212         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
35213
35214 2008-02-28  Bruno Haible  <bruno@clisp.org>
35215
35216         * modules/freadptr-tests: New file.
35217         * tests/test-freadptr.sh: New file.
35218         * tests/test-freadptr.c: New file.
35219
35220         New module 'freadptr'.
35221         * modules/freadptr: New file.
35222         * lib/freadptr.h: New file.
35223         * lib/freadptr.c: New file.
35224         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
35225
35226 2008-02-26  Karl Berry  <karl@freefriends.org>
35227
35228         Sync from Libtool:
35229         * libltdl/argz.c (argz_add, argz_count): New functions.
35230         * libltdl/argz.in.h: Declare them.
35231         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
35232
35233 2008-02-22  Bruno Haible  <bruno@clisp.org>
35234
35235         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
35236         is a pointer type.  Needed for HP-UX 10.
35237         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
35238         * doc/posix-functions/gmtime_r.texi: Likewise.
35239         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
35240
35241 2008-02-24  Bruno Haible  <bruno@clisp.org>
35242
35243         * modules/environ-tests: New file.
35244         * tests/test-environ.c: New file.
35245
35246         New module 'environ'.
35247         * modules/environ: New file.
35248         * lib/unistd.in.h (environ): New declaration.
35249         * m4/environ.m4: New file.
35250         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
35251         after use.
35252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
35253         HAVE_DECL_ENVIRON.
35254         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
35255         HAVE_DECL_ENVIRON.
35256         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
35257         wrong claim that 'environ' is missing on some systems.
35258         * modules/execute (Depends-on): Add environ.
35259         * lib/execute.c (environ): Remove fallback declaration.
35260         * modules/pipe (Depends-on): Add environ.
35261         * lib/pipe.c (environ): Remove fallback declaration.
35262         * modules/setenv (Depends-on): Add environ.
35263         * lib/setenv.c (environ): Remove fallback declaration.
35264         * modules/unsetenv (Depends-on): Add environ.
35265         * lib/unsetenv.c (environ): Remove fallback declaration.
35266         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
35267         m4/environ.m4.
35268         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
35269         (gl_PREREQ_UNSETENV): Likewise.
35270
35271 2008-02-24  Bruno Haible  <bruno@clisp.org>
35272
35273         * doc/posix-functions/environ.texi: Document the MacOS X problem.
35274
35275 2008-02-20  Bob Proulx  <bob@proulx.com>
35276
35277         Enable use of older two part flavor 'git describe'.
35278         * build-aux/git-version-gen: If using the older two part flavor of
35279         git version then recreate the third part now present in the
35280         newer three part flavor of git describe.
35281
35282 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
35283
35284         * lib/fts.c (fts_build): Typo correction to comment.
35285
35286 2008-02-17  Bruno Haible  <bruno@clisp.org>
35287
35288         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
35289         generating no-op conflicts.
35290
35291 2008-02-17  Bruno Haible  <bruno@clisp.org>
35292
35293         Speed up by 10%.
35294         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
35295         result_entries, rather than an index-based loop.
35296
35297 2008-02-17  Bruno Haible  <bruno@clisp.org>
35298
35299         Speed up by 25%.
35300         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
35301         'hashcode_cached'.
35302         (entry_create): New function.
35303         (entry_hashcode): Use the cached hashcode if possible.
35304         (read_changelog_file, try_split_merged_entry): Use entry_create.
35305
35306 2008-02-17  Bruno Haible  <bruno@clisp.org>
35307
35308         Speed up from O(n^2) to O(n) for long ChangeLog files.
35309         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
35310         (read_changelog_file): Change implementation of entries_reversed list
35311         to rbtreehash.
35312         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
35313
35314 2008-02-17  Bruno Haible  <bruno@clisp.org>
35315
35316         New option --split-merged-entry.
35317         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
35318         (find_paragraph_end, try_split_merged_entry): New functions.
35319         (long_options): Add option --split-merged-entry.
35320         (usage): Document option --split-merged-entry.
35321         (main): Implement option --split-merged-entry.
35322         Reported by Eric Blake.
35323
35324 2008-02-17  Bruno Haible  <bruno@clisp.org>
35325
35326         * lib/git-merge-changelog.c: Include c-strstr.h.
35327         (main): Support the "git pull --rebase" situation.
35328         * modules/git-merge-changelog (Depends-on): Add c-strstr.
35329         Reported by Eric Blake.
35330
35331 2008-02-16  Eric Blake  <ebb9@byu.net>
35332
35333         Avoid doubling \ in common case of "c-maybe" quoting style.
35334         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
35335         eliding outer quotes.
35336         * lib/quotearg.h: Document this.
35337         * tests/test-quotearg.c (result_strings, inputs, results_g)
35338         (flag_results, locale_results): Test it by adding a new string to
35339         each test group.
35340         (compare_strings): Test new string.
35341
35342 2008-02-13  Eric Blake  <ebb9@byu.net>
35343
35344         Avoid trigraph quoting in default output.
35345         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
35346         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
35347         unless explicitly requested.
35348         * tests/test-quotearg.c (flag_results, main): Add additional tests.
35349
35350 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
35351
35352         Don't rely on signed integer overflowing to negative value.
35353         * lib/getugroups.c (getugroups): Include <limits.h>.
35354         Instead, compare against INT_MAX, and increment only if the test passes.
35355
35356 2008-02-13  Jim Meyering  <meyering@redhat.com>
35357         and Eric Blake  <ebb9@byu.net>
35358
35359         Avoid shadowing warning and compile errors on Linux.
35360         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
35361         forwarding macros on Linux.
35362         (dcgettext): Define a stub, for Linux.
35363         (results_g, main): Avoid warnings.
35364
35365 2008-02-12  Eric Blake  <ebb9@byu.net>
35366
35367         Silence warning in last patch.
35368         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
35369
35370         Quotearg part 4: add tests, fix c-maybe colon quoting.
35371         * lib/quotearg.h: Improve documentation.
35372         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
35373         escapes when adding outer quotes.  When quoting trigraphs, use
35374         valid C notation.  When quoting NUL, omit extra characters if next
35375         character is not digit.  Alter prototype.
35376         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
35377         callers.
35378         * modules/quotearg-tests: New module.
35379         * tests/test-quotearg.c: New test.
35380
35381 2008-02-07  Eric Blake  <ebb9@byu.net>
35382
35383         Quotearg part 3: add flag to control outer quote elision.
35384         * lib/quotearg.h (c_maybe_quoting_style): New style.
35385         (enum quoting_flags): Better documentation of flags.
35386         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
35387         c-maybe style.
35388         (quotearg_buffer_restyled): Handle new flag to elide outer
35389         quotes.
35390
35391         Quotearg part 2: add flag that can control NUL elision.
35392         * lib/quotearg.h (set_quoting_flags): New prototype.
35393         * lib/quotearg.c (struct quoting_options): Add flag field.
35394         (set_quoting_flags): New function.
35395         (quotearg_buffer_restyled): Add flags parameter.
35396         (quotearg_alloc_mem): Set the flag if length cannot be returned.
35397         (quotearg_n_options): Set the flag, since length cannot be
35398         returned.
35399         (quoting_options_from_style): Default flags correctly.
35400
35401         Quotearg part 1: more wrappers, restore quotearg_char state.
35402         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
35403         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
35404         (quotearg_colon_mem): New wrappers.
35405         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
35406         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
35407         functions.
35408         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
35409         (quotearg_colon_mem): New functions.
35410
35411 2008-02-11  Bruno Haible  <bruno@clisp.org>
35412
35413         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
35414         library in the current directory: it does not work with parallel make.
35415         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35416
35417 2008-02-11  Bruno Haible  <bruno@clisp.org>
35418
35419         * .gitattributes: New file.
35420
35421 2008-02-11  Jim Meyering  <meyering@redhat.com>
35422
35423         useless-if-before-free: Fix reversed exit values.
35424         * build-aux/useless-if-before-free: Use correct values
35425         for EXIT_MATCH and EXIT_NO_MATCH.
35426
35427         * build-aux/useless-if-before-free: Close stdout carefully.
35428
35429 2008-02-10  Bruno Haible  <bruno@clisp.org>
35430
35431         New module 'git-merge-changelog'.
35432         * modules/git-merge-changelog: New file.
35433         * lib/git-merge-changelog.c: New file.
35434
35435 2008-02-10  Jim Meyering  <meyering@redhat.com>
35436
35437         useless-if-before-free: New option: --list (-l).
35438
35439         useless-if-before-free: Don't exit immediately upon open failure.
35440         * build-aux/useless-if-before-free: Exit 2 for errors.
35441         Upon failure to open a file, don't exit immediately.
35442         Rather, just warn and continue with any remaining files.
35443
35444 2008-02-10  Bruno Haible  <bruno@clisp.org>
35445
35446         New abstract list operation 'node_set_value'.
35447         * lib/gl_list.h (gl_list_node_set_value): New function.
35448         (struct gl_list_implementation): New field node_set_value.
35449         * lib/gl_list.c (gl_list_node_set_value): New function.
35450         * lib/gl_array_list.c (gl_array_node_set_value): New function.
35451         (gl_array_list_implementation): Update.
35452         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
35453         (gl_carray_list_implementation): Update.
35454         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
35455         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
35456         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
35457         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
35458         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
35459         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
35460         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
35461         Update.
35462         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
35463         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
35464         (gl_sublist_list_implementation): Update.
35465
35466 2008-02-10  Bruno Haible  <bruno@clisp.org>
35467
35468         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
35469         Needed when ELEMENT is #defined to 'some_type *'.
35470
35471 2008-02-10  Jim Meyering  <meyering@redhat.com>
35472
35473         New script and module: useless-if-before-free
35474         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
35475         * build-aux/useless-if-before-free: New file.
35476         * modules/useless-if-before-free: New file.
35477
35478         * build-aux/gitlog-to-changelog: Use committer date, not author date.
35479
35480         xstrtol_error: Fix typo.
35481         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
35482         s/exit_failure/exit_status/.
35483
35484 2008-02-09  Jim Meyering  <meyering@redhat.com>
35485
35486         New script and module: gitlog-to-changelog
35487         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
35488         * modules/gitlog-to-changelog: New file.
35489         * build-aux/gitlog-to-changelog: New file.
35490
35491 2008-02-08  Jim Meyering  <meyering@redhat.com>
35492
35493         Avoid two "parameter unused" warnings.
35494         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
35495         Mark "st" as used.
35496
35497         Use "git COMMAND", not "git-COMMAND".
35498         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
35499         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
35500         * build-aux/git-version-gen: Use "git status", not "git-status".
35501
35502 2008-02-07  Bruno Haible  <bruno@clisp.org>
35503
35504         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
35505         Avoids a crash on Windows Vista.
35506         Reported by Adam Strzelecki <ono@java.pl> via
35507         Simon Josefsson <simon@josefsson.org>.
35508
35509 2008-02-06  Bruno Haible  <bruno@clisp.org>
35510
35511         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
35512         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
35513         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
35514         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
35515         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35516         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35517         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
35518         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
35519         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35520         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35521         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35522         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35523         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35526         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
35527         left-adjust flag.
35528         * tests/test-snprintf-posix.h (test_function): Likewise.
35529         * tests/test-sprintf-posix.h (test_function): Likewise.
35530         * tests/test-vasprintf-posix.c (test_function): Likewise.
35531         * doc/posix-functions/fprintf.texi: Update.
35532         * doc/posix-functions/printf.texi: Update.
35533         * doc/posix-functions/snprintf.texi: Update.
35534         * doc/posix-functions/sprintf.texi: Update.
35535         * doc/posix-functions/vfprintf.texi: Update.
35536         * doc/posix-functions/vprintf.texi: Update.
35537         * doc/posix-functions/vsnprintf.texi: Update.
35538         * doc/posix-functions/vsprintf.texi: Update.
35539         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35540
35541 2008-02-06  Bruno Haible  <bruno@clisp.org>
35542
35543         Fix bug introduced on 2008-01-26.
35544         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
35545
35546 2008-02-06  Bruno Haible  <bruno@clisp.org>
35547
35548         Fix bug introduced on 2007-06-10.
35549         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
35550         !NEED_PRINTF_FLAG_ZERO.
35551
35552 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
35553
35554         getloadavg: use libperfstat on AIX5
35555         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
35556
35557 2008-02-03  Bruno Haible  <bruno@clisp.org>
35558
35559         * lib/diffseq.h: Add comments about required #includes.
35560         Reported by Michael Biggs <gnulib@doubleplum.net>.
35561
35562 2008-02-01  Bruno Haible  <bruno@clisp.org>
35563
35564         * users.txt: Add gnuit.
35565
35566 2008-01-31  Bruno Haible  <bruno@clisp.org>
35567
35568         * lib/md4.c (set_uint32): Mark as inline.
35569         * lib/md5.c (set_uint32): Likewise.
35570         * lib/sha1.c (set_uint32): Likewise.
35571         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
35572         * m4/md5.m4 (gl_MD5): Likewise.
35573         * m4/sha1.m4 (gl_SHA1): Likewise.
35574
35575 2008-01-31  Jim Meyering  <meyering@redhat.com>
35576
35577         Use "sizeof VAR", rather than a literal "4".
35578         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
35579         * lib/md4.c (md4_read_ctx): Likewise.
35580         * lib/sha1.c (sha1_read_ctx): Likewise.
35581
35582 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35583
35584         * tests/test-sha1.c: New file, based on test-md5.c.
35585
35586         * modules/crypto/sha1-tests: New file.
35587
35588 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35589
35590         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
35591
35592 2008-01-31  Jim Meyering  <meyering@redhat.com>
35593
35594         Prefer "sizeof v" over the equivalent "4".
35595         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
35596         * lib/md5.c (set_uint32): Likewise.
35597         * lib/sha1.c (set_uint32): Likewise.
35598
35599 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35600
35601         * lib/sha1.c (set_uint32): Mark function as static.
35602
35603 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35604
35605         md2: clarify comments to say that alignment is not required.
35606         * lib/md2.h: Remove warning about alignment in comment.
35607         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
35608         never been required.
35609
35610 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35611
35612         md4: adapt alignment constraint fix from sha1.
35613         * lib/md4.c (set_uint32): New function, from sha1.c
35614         (md4_read_ctx): Use it.
35615         (md4_finish_ctx): Doc fix.
35616         * lib/md4.h: Doc fix.
35617
35618 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35619
35620         md5: adapt alignment constraint fix from sha1.
35621         * lib/md5.c (set_uint32): New function, from sha1.c
35622         (md5_read_ctx): Use it.
35623         (md5_finish_ctx): Doc fix.
35624         * lib/md5.h: Doc fix.
35625
35626 2008-01-30  Peter Palfrader  <weasel@debian.org>
35627
35628         sha1: remove the result buffer alignment constraint
35629         * lib/sha1.c (set_uint32): New function.
35630         (sha1_read_ctx): Rewrite to remove the result buffer alignment
35631         constraint.
35632         (sha1_finish_ctx): Remove comment warning about alignment constraint.
35633         * lib/sha1.h: Likewise.
35634
35635 2008-01-30  Andreas Schwab  <schwab@suse.de>
35636             Bruno Haible  <bruno@clisp.org>
35637
35638         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
35639         correct definition of LDBL_MIN_EXP.
35640
35641 2008-01-30  Karl Berry  <karl@gnu.org>
35642
35643         * config/srclist-update: try to preserve x bit on updates.
35644         * config/srclistvars.sh: update for karl.
35645
35646 2008-01-29  Jim Meyering  <meyering@redhat.com>
35647
35648         vasnprintf.c: Avoid warning about unused label
35649         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
35650         "overflow" label definition and associated code with the
35651         same cpp condition that guards the sole use of that label.
35652
35653 2008-01-26  Bruno Haible  <bruno@clisp.org>
35654
35655         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
35656         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
35657         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
35658         * lib/isnanl-nolibm.h (isnanl): Likewise.
35659         Reported by Paul Eggert <eggert@cs.ucla.edu>.
35660
35661 2008-01-26  Bruno Haible  <bruno@clisp.org>
35662
35663         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
35664         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
35665
35666 2008-01-26  Bruno Haible  <bruno@clisp.org>
35667
35668         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
35669         GCC >= 4.0 built-in.
35670         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
35671
35672 2008-01-26  Bruno Haible  <bruno@clisp.org>
35673
35674         Rename isnan, applicable to 'double' only, to isnand.
35675         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
35676         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
35677         (configure.ac): Update.
35678         (Include): Replace "isnan.h" with "isnand.h".
35679         * m4/isnand.m4: Renamed from m4/isnan.m4.
35680         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
35681         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
35682         instead of isnan.c.
35683         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
35684         instead of HAVE_ISNAN_IN_LIBC.
35685         (isnand): Renamed from isnan.
35686         * lib/isnand.c: New file.
35687         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
35688         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
35689         (Makefile.am): Update.
35690         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
35691         Include isnand.h instead of isnan.h.
35692         (main): Test isnand instead of isnan.
35693         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
35694         isnan-nolibm.
35695         * modules/frexp (Depends-on): Likewise.
35696         * modules/frexp-tests (Depends-on): Likewise.
35697         * modules/frexp-nolibm (Depends-on): Likewise.
35698         * modules/frexp-nolibm-tests (Depends-on): Likewise.
35699         * modules/isfinite (Depends-on): Likewise.
35700         * modules/round-tests (Depends-on): Likewise.
35701         * modules/signbit (Depends-on): Likewise.
35702         * modules/signbit-tests (Depends-on): Likewise.
35703         * modules/snprintf-posix (Depends-on): Likewise.
35704         * modules/sprintf-posix (Depends-on): Likewise.
35705         * modules/trunc-tests (Depends-on): Likewise.
35706         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35707         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35708         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35709         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35710         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35711         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35712         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35713         * modules/vasnprintf-posix (Depends-on): Likewise.
35714         * modules/vasprintf-posix (Depends-on): Likewise.
35715         * modules/vfprintf-posix (Depends-on): Likewise.
35716         * modules/vsnprintf-posix (Depends-on): Likewise.
35717         * modules/vsprintf-posix (Depends-on): Likewise.
35718         * lib/frexp.c: Include isnand.h instead of isnan.h.
35719         (ISNAN): Set to isnand instead of isnan.
35720         * lib/isfinite.c: Include isnand.h instead of isnan.h.
35721         (gl_isfinited): Use isnand instead of isnan.
35722         * lib/signbitd.c: Include isnand.h instead of isnan.h.
35723         (gl_signbitd): Use isnand instead of isnan.
35724         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
35725         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
35726         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
35727         (main): Use isnand instead of isnan.
35728         * tests/test-round1.c: Include isnand.h.
35729         (main): Use isnand instead of isnan.
35730         * tests/test-round2.c: Include isnand.h instead of isnan.h.
35731         (ISNAN): Set to isnand instead of isnan.
35732         * tests/test-trunc1.c: Include isnand.h.
35733         (main): Use isnand instead of isnan.
35734         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
35735         (equal): Use isnand instead of isnan.
35736         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
35737         isnand-nolibm.
35738         * NEWS: Mention the change.
35739
35740 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35741             Bruno Haible  <bruno@clisp.org>
35742
35743         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
35744         the GCC builtins for signbits are present and set
35745         REPLACE_SIGNBIT_USING_GCC if so.
35746         * lib/math.in.h (signbit): Define using GCC builtins if
35747         REPLACE_SIGNBIT_USING_GCC is set.
35748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
35749         REPLACE_SIGNBIT_USING_GCC.
35750         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
35751
35752 2008-01-25  Jim Meyering  <meyering@redhat.com>
35753
35754         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
35755         * lib/poll.c: Include <config.h>, not "config.h".
35756         * tests/test-getaddrinfo.c: Likewise.
35757
35758 2008-01-25  Simon Josefsson  <simon@josefsson.org>
35759
35760         * modules/sockets-tests: New file.
35761
35762 2008-01-24  Simon Josefsson  <simon@josefsson.org>
35763
35764         * modules/sockets: New module, can be used to call WSA_Startup and
35765         WSA_Cleanup when needed.
35766
35767         * lib/sockets.h, lib/sockets.c: New files.
35768
35769         * m4/sockets.m4: New file.
35770
35771         * tests/test-sockets.c: New file.
35772
35773 2008-01-19  Bruno Haible  <bruno@clisp.org>
35774
35775         * doc/posix-headers: Renamed from doc/headers.
35776         * doc/posix-functions: Renamed from doc/functions.
35777         * doc/gnulib.texi: Update.
35778
35779 2008-01-19  Bruno Haible  <bruno@clisp.org>
35780
35781         * doc/glibc-functions/strcasestr.texi: Include contents of
35782         doc/functions/strcasestr.texi, fixing the list of platforms.
35783         * doc/functions/strcasestr.texi: Remove file.
35784
35785 2008-01-19  Bruno Haible  <bruno@clisp.org>
35786
35787         * doc/glibc-functions/memmem.texi: Include contents of
35788         doc/functions/memmem.texi.
35789         * doc/functions/memmem.texi: Remove file.
35790
35791 2008-01-18  Bruno Haible  <bruno@clisp.org>
35792
35793         * doc/glibc-functions/*.texi: New files.
35794         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
35795         to use the new files.
35796
35797 2008-01-17  Bruno Haible  <bruno@clisp.org>
35798
35799         * tests/test-gethostname.c (main): Fix printf statement.
35800
35801 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35802
35803         * modules/gethostname-tests: New file.
35804
35805         * tests/test-gethostname.c: New file.
35806
35807 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35808
35809         * lib/gethostname.c: Include string.h unconditionally, strncpy is
35810         used by the UNAME case.  Reported by Bruno Haible
35811         <bruno@clisp.org>.
35812
35813 2008-01-17  Eric Blake  <ebb9@byu.net>
35814
35815         Convert c-strcasestr to be more efficient.
35816         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
35817         (Depends-on): Add c-strcase, remove malloca, strnlen.
35818         * tests/test-c-strcasestr.c (main): Enhance test.
35819         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
35820
35821 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
35822
35823         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
35824         Use it in creating po/Makevars.
35825
35826 2008-01-15  Simon Josefsson  <simon@josefsson.org>
35827
35828         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
35829         Applications that requires it should initialize libgcrypt
35830         manually.
35831
35832 2008-01-16  Simon Josefsson  <simon@josefsson.org>
35833
35834         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
35835
35836 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35837
35838         Fix problem with getdate on mingw32 reported by Simon Josefsson
35839         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
35840         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
35841         tzname", when deciding whether to declare tzname.
35842         * lib/strftime.c (tzname): Likewise.
35843
35844 2008-01-15  Bruno Haible  <bruno@clisp.org>
35845
35846         Work around a MacOS X 10.5 bug in frexpl().
35847         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
35848         * doc/functions/frexpl.texi: Document the bug.
35849         Reported by Elias Pipping <pipping@gentoo.org>.
35850
35851 2008-01-14  Eric Blake  <ebb9@byu.net>
35852
35853         Touch up previous patch.
35854         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
35855         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
35856
35857         Convert strcasestr module to use Two-Way algorithm.
35858         * modules/strcasestr-simple: New module, based on the old
35859         strcasestr, but with Two-Way rather than KMP.
35860         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
35861         * lib/string.in.h (rpl_strcasestr): Declare.
35862         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
35863         performance.
35864         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
35865         * modules/string (Makefile.am): Support strcasestr.
35866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35867         * modules/strcasestr-tests (Depends-on): Check for alarm.
35868         * tests/test-strcasestr.c: Augment test.
35869         * lib/str-two-way.h: Clean up stray macro.
35870         * NEWS: Document new module.
35871         * MODULES.html.sh (string handling): Likewise.
35872         * doc/functions/strcasestr.texi: New file.
35873         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
35874         here, since it is not a POSIX function.
35875
35876 2008-01-14  Colin Watson  <cjwatson@debian.org>
35877             Bruno Haible  <bruno@clisp.org>
35878
35879         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
35880         works fine; if not, set REPLACE_STRSIGNAL.
35881         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
35882         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35883         REPLACE_STRSIGNAL.
35884         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
35885         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
35886         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
35887
35888 2008-01-14  Bruno Haible  <bruno@clisp.org>
35889
35890         * modules/strsignal (Include): Change to <string.h>.
35891
35892 2008-01-14  Colin Watson  <cjwatson@debian.org>
35893
35894         * modules/argp (Notice): Add a notice recommending to change
35895         XGETTEXT_OPTIONS.
35896         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
35897
35898 2008-01-13  Colin Watson  <cjwatson@debian.org>
35899
35900         * modules/strsignal-tests: New file.
35901         * tests/test-strsignal.c: New file.
35902
35903         * lib/strsignal.c: New file, from glibc with modifications.
35904         * lib/siglist.h: New file, from glibc with modifications.
35905         * lib/string.in.h (strsignal): New declaration.
35906         * m4/strsignal.m4: New file.
35907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35908         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
35909         * modules/strsignal: New file.
35910         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
35911         HAVE_DECL_STRSIGNAL.
35912
35913 2008-01-13  Bruno Haible  <bruno@clisp.org>
35914
35915         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
35916         locale encoding is not ASCII. Needed for OpenBSD 4.0.
35917         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35918         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35919
35920 2008-01-13  Bruno Haible  <bruno@clisp.org>
35921
35922         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
35923         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
35924         * lib/argp.h (__attribute__): Likewise.
35925         * lib/c-stack.c (__attribute__): Likewise.
35926         * lib/error.h (__attribute__): Likewise.
35927         * lib/fts.c (__attribute__): Likewise.
35928         * lib/openat.h (__attribute__): Likewise.
35929         * lib/stdio.in.h (__attribute__): Likewise.
35930         * lib/string.in.h (__attribute__): Likewise.
35931         * lib/utimens.c (__attribute__): Likewise.
35932         * lib/vasnprintf.h (__attribute__): Likewise.
35933         * lib/xalloc.h (__attribute__): Likewise.
35934         * lib/xprintf.h (__attribute__): Likewise.
35935         * lib/xstrtol.h (__attribute__): Likewise.
35936         * lib/xvasprintf.h (__attribute__): Likewise.
35937
35938 2008-01-12  Bruno Haible  <bruno@clisp.org>
35939
35940         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
35941         * doc/glibc-headers/a.out.texi: New file.
35942         * doc/glibc-headers/aliases.texi: New file.
35943         * doc/glibc-headers/alloca.texi: New file.
35944         * doc/glibc-headers/ar.texi: New file.
35945         * doc/glibc-headers/argp.texi: New file.
35946         * doc/glibc-headers/argz.texi: New file.
35947         * doc/glibc-headers/byteswap.texi: New file.
35948         * doc/glibc-headers/crypt.texi: New file.
35949         * doc/glibc-headers/endian.texi: New file.
35950         * doc/glibc-headers/envz.texi: New file.
35951         * doc/glibc-headers/err.texi: New file.
35952         * doc/glibc-headers/error.texi: New file.
35953         * doc/glibc-headers/execinfo.texi: New file.
35954         * doc/glibc-headers/fpu_control.texi: New file.
35955         * doc/glibc-headers/fstab.texi: New file.
35956         * doc/glibc-headers/fts.texi: New file.
35957         * doc/glibc-headers/getopt.texi: New file.
35958         * doc/glibc-headers/ieee754.texi: New file.
35959         * doc/glibc-headers/ifaddrs.texi: New file.
35960         * doc/glibc-headers/libintl.texi: New file.
35961         * doc/glibc-headers/mcheck.texi: New file.
35962         * doc/glibc-headers/mntent.texi: New file.
35963         * doc/glibc-headers/obstack.texi: New file.
35964         * doc/glibc-headers/paths.texi: New file.
35965         * doc/glibc-headers/printf.texi: New file.
35966         * doc/glibc-headers/pty.texi: New file.
35967         * doc/glibc-headers/resolv.texi: New file.
35968         * doc/glibc-headers/shadow.texi: New file.
35969         * doc/glibc-headers/sysexits.texi: New file.
35970         * doc/glibc-headers/ttyent.texi: New file.
35971
35972 2008-01-12  Jim Meyering  <meyering@redhat.com>
35973
35974         announce-gen: emit Gnulib's git-based version string.
35975         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
35976         New option --gnulib-version=V, where V is expected to be
35977         the output of running git describe in the gnulib directory.
35978         (get_tool_versions): Request feedback on xdelta.  I suspect it's
35979         not useful, and plan to stop publishing an xdelta file with each
35980         coreutils release.
35981
35982         * build-aux/announce-gen: Also check for lzma-compressed files.
35983
35984 2008-01-11  Bruno Haible  <bruno@clisp.org>
35985
35986         * tests/test-memmem.c (main): Increase maximum allowed time.
35987         * tests/test-strstr.c (main): Likewise.
35988
35989 2008-01-11  Bruno Haible  <bruno@clisp.org>
35990
35991         * doc/functions/memmem.texi: Add more precisions about platforms.
35992         * doc/functions/strstr.texi: Likewise.
35993
35994 2008-01-10  Eric Blake  <ebb9@byu.net>
35995
35996         * m4/strstr.m4: Delete cruft from copy-n-paste.
35997         Reported by Bruno Haible.
35998
35999 2008-01-10  Bruno Haible  <bruno@clisp.org>
36000
36001         Make c-strstr rely on strstr.
36002         * lib/c-strstr.c: Don't include str-kmp.h.
36003         (c_strstr): Define in terms of strstr.
36004         * modules/c-strstr (Files): Remove lib/str-kmp.h.
36005         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
36006
36007 2008-01-10  Bruno Haible  <bruno@clisp.org>
36008
36009         * doc/gnulib.texi (String Functions in C Locale): New section.
36010         * doc/c-ctype.texi: New file.
36011         * doc/c-strcase.texi: New file.
36012         * doc/c-strcaseeq.texi: New file.
36013         * doc/c-strcasestr.texi: New file.
36014         * doc/c-strstr.texi: New file.
36015         * doc/c-strtod.texi: New file.
36016         * doc/c-strtold.texi: New file.
36017
36018 2008-01-10  Eric Blake  <ebb9@byu.net>
36019
36020         * lib/relocatable.h: Fix a comment.
36021
36022 2008-01-10  Eric Blake  <ebb9@byu.net>
36023
36024         Share two-way algorithm.
36025         * lib/str-two-way.h: New file, merged from...
36026         * lib/memmem.c: ...here...
36027         * lib/strstr.c: ...and here.
36028         * modules/memmem (Files): Use it.
36029         * modules/strstr (Files): Likewise.
36030
36031         Avoid quadratic strstr implementations.
36032         * lib/strstr.c: New file.
36033         * m4/strstr.m4: Likewise.
36034         * modules/strstr: Likewise.
36035         * modules/strstr-tests: Likewise.
36036         * tests/test-strstr.c: Likewise.
36037         * lib/string.in.h (rpl_strstr): Declare.
36038         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
36039         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
36040         * modules/string (Makefile.am): Likewise.
36041         * MODULES.html.sh (string handling): Mention new module.
36042         * doc/functions/strstr.texi (strstr): Document the bug.
36043
36044 2008-01-10  Bruno Haible  <bruno@clisp.org>
36045
36046         * lib/relocatable.h (relocate): State whether result is freshly
36047         allocated or not.
36048         * lib/relocatable.c (relocate): Return a freshly allocated string
36049         instead of a pointer to a privately held string.
36050         Reported by Sylvain Beucler <beuc@gnu.org>.
36051
36052 2008-01-10  Colin Watson  <cjwatson@debian.org>
36053
36054         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
36055         s/S_ISNLK/S_ISLNK/.
36056
36057 2008-01-09  Bruno Haible  <bruno@clisp.org>
36058
36059         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
36060         and other files.
36061         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
36062         if it's only a guess.
36063         * modules/memmem: Simplify by depending on memmem-simple.
36064
36065 2008-01-09  Bruno Haible  <bruno@clisp.org>
36066
36067         Work around OpenBSD 4.0 tdelete() bug.
36068         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
36069         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
36070         macros and don't redefine the enum values.
36071         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
36072         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
36073         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
36074
36075 2008-01-09  Bruno Haible  <bruno@clisp.org>
36076
36077         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
36078         (main): Don't perform the tests if setlocale did not install a UTF-8
36079         locale. Needed on OpenBSD 4.0.
36080         * modules/wcwidth-tests (Depends-on): Add localcharset.
36081
36082 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36083
36084         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
36085         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
36086         * NEWS: announce this.
36087         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
36088
36089 2008-01-09  Simon Josefsson  <simon@josefsson.org>
36090         and Eric Blake  <ebb9@byu.net>
36091
36092         Add memmem-simple module.
36093         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
36094         (gl_FUNC_MEMMEM): Separate performance from presence checks.
36095         * modules/memmem-simple: New file.
36096         * modules/memmem (Description): Tweak.
36097         * MODULES.html.sh (string handling): Mention new module.
36098         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
36099         addressed by memmem-simple.
36100         * NEWS: Document the difference.
36101
36102 2008-01-09  Eric Blake  <ebb9@byu.net>
36103
36104         Give gcc some memmem optimization hints.
36105         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
36106         (strcasestr): Declare as pure.
36107         * modules/memmem (Maintainer): Claim my implementation.
36108
36109 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36110
36111         Support AIX 6.1 and higher.
36112         * build-aux/config.libpath: Likewise.
36113         * build-aux/config.rpath: Likewise.
36114
36115 2008-01-08  Jim Meyering  <meyering@redhat.com>
36116             Bruno Haible  <bruno@clisp.org>
36117
36118         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
36119         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
36120         Reported by Peter Fales in
36121         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
36122
36123 2008-01-08  Bruno Haible  <bruno@clisp.org>
36124
36125         * modules/unictype/category-of (Depends-on): Add
36126         unictype/category-none.
36127         * modules/unictype/category-and-tests (Depends-on): Add
36128         unictype/category-{L,N,Lu,Nd}.
36129         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
36130         * modules/unictype/category-or-tests (Depends-on): Add
36131         unictype/category-{L,N}.
36132         * modules/unictype/category-name-tests (Depends-on): Add
36133         unictype/category-{Z,Nl}.
36134         Reported by Simon Josefsson.
36135
36136 2008-01-08  Bruno Haible  <bruno@clisp.org>
36137
36138         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
36139         convention better.
36140         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
36141         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
36142         Reported by Peter Miller <millerp@canb.auug.org.au>.
36143
36144 2008-01-08  Eric Blake  <ebb9@byu.net>
36145
36146         Rewrite memmem to guarantee linear complexity without malloc.
36147         * lib/memmem.c (memmem): Use Two-Way rather than
36148         Knuth-Morris-Pratt, to allow O(1) space usage.
36149         (critical_factorization, two_way_short_needle)
36150         (two_way_long_needle): New functions.
36151         (knuth_morris_pratt): Delete.
36152         * modules/memmem (Depends-on): No longer need malloca or stdbool.
36153         Add stdint.
36154         * tests/test-memmem.c (main): Add tests for periodic needle and
36155         sublinear performance.
36156         * doc/functions/memmem.texi (memmem): Document other deficiencies
36157         in cygwin and older glibc.
36158
36159 2008-01-08  Bruno Haible  <bruno@clisp.org>
36160
36161         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
36162         augmentation.
36163
36164 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
36165
36166         Add a configure time option: --disable-acl.
36167         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
36168         AC_ARG_ENABLE(acl).
36169
36170 2008-01-06  Simon Josefsson  <simon@josefsson.org>
36171
36172         * tests/test-localename.c: Don't include obsolete "setenv.h".
36173
36174         * modules/localename-tests (Depends-on): Need unsetenv.
36175
36176 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36177
36178         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
36179
36180 2008-01-06  Colin Watson  <cjwatson@debian.org>
36181
36182         * users.txt: Add man-db.
36183
36184 2008-01-07  Bruno Haible  <bruno@clisp.org>
36185
36186         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
36187         previous section name.
36188
36189 2008-01-07  Bruno Haible  <bruno@clisp.org>
36190
36191         * lib/progname.c (set_program_name): Don't strip off a leading
36192         "lt-" prefix outside a .libs directory.
36193         Suggested by Paul Eggert.
36194
36195 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
36196             Bruno Haible  <bruno@clisp.org>
36197
36198         Improve memory cleanup in 'relocatable' module.
36199         * lib/relocatable.h (compute_curr_prefix): Change return type to
36200         'char *'.
36201         * lib/relocatable.c (compute_curr_prefix): Change return type to
36202         'char *'. Free curr_installdir after use.
36203         (relocate): Free curr_prefix_better after use.
36204         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
36205
36206 2008-01-01  Bruno Haible  <bruno@clisp.org>
36207
36208         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
36209         failure on older glibc systems.
36210         Reported by Peter Fales <psfales@alcatel-lucent.com>.
36211
36212 2008-01-05  Eric Blake  <ebb9@byu.net>
36213
36214         Avoid quadratic system memmem.
36215         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
36216         Reported by Ralf Wildenhues.
36217
36218         Fix memmem test for mingw.
36219         * modules/memmem-tests (configure.ac): Check for alarm.
36220         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
36221         it.
36222         * doc/functions/memmem.texi: New file.
36223         * doc/gnulib.texi (Function Substitutes): Add memmem.
36224         Reported by Bruno Haible.
36225
36226 2008-01-04  Bruno Haible  <bruno@clisp.org>
36227
36228         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
36229         Require gl_HEADER_STRINGS_H_DEFAULTS, not
36230         gl_HEADER_STRING_H_DEFAULTS.
36231
36232 2008-01-04  Eric Blake  <ebb9@byu.net>
36233
36234         Shorten duration of memmem test.
36235         * tests/test-memmem.c (main): Use alarm to declare failure if test
36236         is taking too long.
36237         Reported by Ralf Wildenhues.
36238
36239 2007-12-21  Simon Josefsson  <simon@josefsson.org>
36240
36241         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
36242         string, needed by strerror.
36243
36244 2008-01-03  Colin Watson  <cjwatson@debian.org>
36245             Bruno Haible  <bruno@clisp.org>
36246
36247         * doc/gnulib-tool.texi (Localization): New section.
36248
36249 2008-01-02  Bruno Haible  <bruno@clisp.org>
36250
36251         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
36252         variables to 'unsigned char *' type.
36253         Reported by Paul Eggert.
36254
36255 2008-01-02  Jim Meyering  <jim@meyering.net>
36256
36257         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
36258
36259 2007-12-31  Jim Meyering  <jim@meyering.net>
36260
36261         Avoid use of private FTS type name.
36262         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
36263
36264 2007-12-30  Karl Berry  <karl@gnu.org>
36265
36266         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
36267         work around defect in Texinfo and/or the standalone Info browser.
36268
36269 2007-12-30  Bruno Haible  <bruno@clisp.org>
36270
36271         Unify 5 copies of the KMP code.
36272         * lib/str-kmp.h: New file.
36273         * lib/c-strcasestr.c: Include str-kmp.h.
36274         (knuth_morris_pratt): Remove function.
36275         (c_strcasestr): Update.
36276         * lib/c-strstr.c: Include str-kmp.h.
36277         (knuth_morris_pratt): Remove function.
36278         (c_strcasestr): Update.
36279         * lib/mbscasestr.c: Include str-kmp.h.
36280         (knuth_morris_pratt_unibyte): Remove function.
36281         * lib/mbsstr.c: Include str-kmp.h.
36282         (knuth_morris_pratt_unibyte): Remove function.
36283         * lib/strcasestr.c: Include str-kmp.h.
36284         (knuth_morris_pratt): Remove function.
36285         (strcasestr): Update.
36286         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
36287         * modules/c-strstr (Files): Likewise.
36288         * modules/mbscasestr (Files): Likewise.
36289         * modules/mbsstr (Files): Likewise.
36290         * modules/strcasestr (Files): Likewise.
36291         Suggested by Paul Eggert.
36292
36293 2007-12-30  Bruno Haible  <bruno@clisp.org>
36294
36295         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
36296         defined.
36297
36298 2007-12-30  Bruno Haible  <bruno@clisp.org>
36299
36300         * lib/xmalloca.h: Include xalloc.h.
36301         (xnmalloca): New macro.
36302
36303 2007-12-30  Bruno Haible  <bruno@clisp.org>
36304
36305         * lib/malloca.h (nmalloca): New macro.
36306         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
36307         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
36308         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
36309         knuth_morris_pratt_multibyte): Likewise.
36310         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
36311         knuth_morris_pratt_multibyte): Likewise.
36312         * lib/memmem.c (knuth_morris_pratt): Likewise.
36313         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
36314
36315 2007-12-25  Bruno Haible  <bruno@clisp.org>
36316
36317         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
36318         * lib/glob.c: Don't include openat.h.
36319         (link_exists2_p): Add back the code that deals with the
36320         !GLOB_ALTDIRFUNC case.
36321         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
36322         let it do the filename concatenation.
36323         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
36324         * modules/glob (Depends-on): Remove openat.
36325
36326 2007-12-31  Bruno Haible  <bruno@clisp.org>
36327
36328         * modules/dirfd (License): Change to LGPLv2+.
36329         Approved by Jim Meyering.
36330
36331 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36332
36333         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
36334         when multiplying M by sizeof (size_t).
36335
36336 2007-12-10  Martin Lambers  <marlam@marlam.de>
36337
36338         Override getpagesize on mingw.
36339         * lib/getpagesize.c: New file.
36340         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
36341         * modules/getpagesize (Files): Add lib/getpagesize.c.
36342         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
36343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36344         REPLACE_GETPAGESIZE.
36345         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
36346
36347 2007-12-25  Bruno Haible  <bruno@clisp.org>
36348
36349         * modules/localcharset (Notice): New field.
36350         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
36351         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
36352
36353 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
36354             Bruno Haible  <bruno@clisp.org>
36355
36356         Avoid using the syntax symbol() in formatted documentation.
36357         * MODULES.html.sh (func_module): When replacing symbol() with a
36358         hyperlink, remove the parentheses. Show an error if some remain.
36359         Recognize and render the '...' syntax.
36360         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
36361         Rework. Add paragraph about GCC's inlining.
36362         * doc/alloca.texi: Likewise.
36363         * doc/error.texi: Remove parentheses from symbol reference.
36364         * doc/gnulib-intro.texi: Likewise.
36365         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
36366         * modules/fnmatch (Description): Reword to say "the ... function".
36367         * modules/full-read (Description): Likewise.
36368         * modules/full-write (Description): Likewise.
36369         * modules/safe-read (Description): Likewise.
36370         * modules/safe-write (Description): Likewise.
36371         * modules/strchrnul (Description): Likewise.
36372         * modules/trim (Description): Likewise.
36373         * modules/error (Description): Remove parentheses from symbol
36374         references.
36375         * modules/verror (Description): Likewise.
36376         Reported by Karl Berry.
36377
36378 2007-12-25  Bruno Haible  <bruno@clisp.org>
36379
36380         Fixup after 2007-10-16 commit.
36381         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
36382
36383 2007-12-24  Bruno Haible  <bruno@clisp.org>
36384
36385         Make --enable-relocatable work with DESTDIR.
36386         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
36387         to compute installdir from destprog.
36388         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
36389         also set the RELOC_DESTDIR variable.
36390         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36391
36392 2007-12-24  Bruno Haible  <bruno@clisp.org>
36393
36394         Fix link error due to xalloc_die().
36395         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
36396         of xreadlink.
36397         * lib/relocwrapper.c: Update comments.
36398         * build-aux/install-reloc: Remove xreadlink.c from file list.
36399         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
36400         xreadlink.c.
36401         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36402
36403 2007-12-24  Bruno Haible  <bruno@clisp.org>
36404
36405         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
36406         * lib/setenv.h: Remove file.
36407         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
36408         lib/setenv.h.
36409         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
36410         (Depends-on): Add stdlib.
36411         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
36412         gl_FUNC_UNSETENV.
36413         (Include): Replace setenv.h with <stdlib.h>.
36414         * modules/unsetenv: New file.
36415         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
36416         * lib/unsetenv.c: Include <stdlib.h> first.
36417         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
36418         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
36419         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
36420         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
36421         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
36422         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
36423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
36424         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
36425         * doc/functions/unsetenv.texi: Update.
36426         * modules/xsetenv (Depends-on): Add unsetenv.
36427         * modules/getdate (Depends-on): Likewise.
36428         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
36429         * lib/xsetenv.c: Don't include setenv.h.
36430         * lib/getdate.y: Likewise.
36431         * lib/relocwrapper.c: Likewise.
36432         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
36433         (Depends-on): Add stdlib.
36434         * NEWS: Mention the changes.
36435         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
36436
36437 2007-12-23  Bruno Haible  <bruno@clisp.org>
36438
36439         * lib/memmem.c (memmem): Use lowercase variable names. Tab
36440         indentation.
36441
36442 2007-12-23  Bruno Haible  <bruno@clisp.org>
36443
36444         * lib/c-strcasestr.c: Add more comments.
36445         * lib/c-strstr.c: Likewise.
36446         * lib/mbscasestr.c: Likewise.
36447         * lib/mbsstr.c: Likewise.
36448         * lib/strcasestr.c: Likewise.
36449         * lib/memmem.c: Likewise.
36450
36451 2007-12-23  Bruno Haible  <bruno@clisp.org>
36452
36453         * tests/test-memmem.c: Include <string.h> first.
36454
36455 2007-12-22  Bruno Haible  <bruno@clisp.org>
36456
36457         * gnulib-tool (func_create_testdir): Change $auxdir while generating
36458         the contents of $testsbase.
36459         Reported by Ralf Wildenhues.
36460
36461 2007-12-22  Bruno Haible  <bruno@clisp.org>
36462
36463         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
36464         two variables local_ldadd_before, local_ldadd_last.
36465
36466 2007-12-20  Eric Blake  <ebb9@byu.net>
36467
36468         Work around circular library issue when cross-compiling.
36469         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
36470         that progname.o does not need to pull in rpl_memcmp.
36471
36472 2007-12-19  Eric Blake  <ebb9@byu.net>
36473
36474         Fix memmem to avoid O(n^2) worst-case complexity.
36475         * lib/memmem.c (knuth_morris_pratt): New function.
36476         (memmem): Use it if first few naive iterations fail.
36477         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
36478         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
36479         * modules/memchr (License): Likewise.
36480         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
36481         malloca.
36482         * tests/test-memmem.c: Rewrite, borrowing ideas from
36483         test-mbsstr1.c; the old version wouldn't even compile!
36484         * modules/memmem-tests: New file.
36485         * lib/string.in.h (rpl_memmem): Add declaration.
36486         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
36487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
36488         REPLACE_MEMMEM.
36489
36490 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36491
36492         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
36493         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
36494         before any system include files, and undef after them all.  This
36495         should fix a problem on VMS reported by John E. Malmberg in
36496         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
36497
36498 2007-12-17  Eric Blake  <ebb9@byu.net>
36499
36500         Revert addition of verify, for BSD/OS.
36501         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
36502         can't handle large files, for the sake of obsolete platforms.
36503         * modules/fseeko (Depends-on): Remove verify.
36504         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
36505         * doc/functions/ftello.texi (ftello): Likewise.
36506         * doc/functions/fgetpos.texi (fgetpos): Likewise.
36507         Reported by Larry Jones.
36508
36509 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
36510
36511         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
36512         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
36513
36514 2007-12-17  Jim Meyering  <meyering@redhat.com>
36515
36516         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
36517         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
36518         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
36519         * modules/getcwd (Depends-on): Add openat.
36520         Reported by Petr Salinger.
36521
36522 2007-12-17  Bruno Haible  <bruno@clisp.org>
36523
36524         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
36525         avoid a segmentation fault of the configure test on x86_64 systems.
36526
36527 2007-12-15  Jim Meyering  <meyering@redhat.com>
36528
36529         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
36530
36531 2007-12-13  Eric Blake  <ebb9@byu.net>
36532
36533         Another fseek test.
36534         * tests/test-fseek.c (main): Also test ungetc handling.
36535         * tests/test-fseeko.c (main): Likewise.
36536         * modules/fseeko (Depends-on): Add verify.
36537         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
36538         large.
36539         Reported by Larry Jones.
36540
36541         Fix fseeko on mingw.
36542         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
36543         seek.
36544
36545         Beef up fseek tests.
36546         * tests/test-fseek.c (main): Also test eof handling.
36547         * tests/test-fseeko.c (main): Likewise.
36548         Reported by Larry Jones.
36549
36550 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
36551
36552         Fix fseeko on BSD-based platforms.
36553         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
36554         successful seek.
36555
36556 2007-12-12  Eric Blake  <ebb9@byu.net>
36557
36558         Allow circular dependency of separate libtests.a
36559         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
36560         when use_libtests.
36561
36562 2007-12-11  Eric Blake  <ebb9@byu.net>
36563
36564         Fix bug with -0.0L in previous patch.
36565         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
36566         * tests/test-isnan.c (main): Also test on zeroes.
36567         * tests/test-isnanf.c (main): Likewise.
36568         * tests/test-isnanl.h (main): Likewise.
36569
36570         Detect pseudo-denormals on x86 even when cross-compiling.
36571         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
36572         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
36573         invalid bit patterns that happen to satisfy ==.
36574
36575         Avoid link failures with separate libtests.a.
36576         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
36577         last, to satisfy circular dependencies.
36578
36579 2007-12-11  Eric Blake  <ebb9@byu.net>
36580         and Bruno Haible  <bruno@clisp.org>
36581
36582         Fix OpenBSD 4.0 <float.h> handling of long double.
36583         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
36584         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
36585         * doc/headers/float.texi (float.h): Document OpenBSD bug.
36586
36587 2007-12-11  Jim Meyering  <meyering@redhat.com>
36588
36589         * users.txt: Add libvirt.
36590
36591         Support versions of autoconf prior to 2.59c.
36592         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
36593         if it is not already defined.
36594
36595 2007-12-09  Bruno Haible  <bruno@clisp.org>
36596
36597         Let 'gnulib-tool --import' collect sources needed for the tests in
36598         tests/ rather than in lib/.
36599         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
36600         argument. If true, add rules to generate libtests.a, and put libtests.a
36601         into $(LDADD). Consider source files in subdirectories and set
36602         uses_subdirs.
36603         (func_emit_initmacro_start, func_emit_initmacro_end,
36604         func_emit_initmacro_done): Pass all arguments explicitly.
36605         (func_import): Determine two module lists main_modules,
36606         testsrelated_modules. Determine use_libtests. Determine two variables
36607         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
36608         instead of just sed_transform_lib_file. Determine two variables
36609         main_files and testsrelated_files. Compute 'files' as the union of
36610         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
36611         func_add_or_update. In the generated gnulib-comp.m4, collect the
36612         object files for tests/ in different variables than those for lib/.
36613         Substitute LIBTESTS_LIBDEPS.
36614         (func_create_testdir): Combine the uses_subdirs results from
36615         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
36616
36617 2007-12-09  Bruno Haible  <bruno@clisp.org>
36618
36619         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
36620         the build-aux directory.
36621
36622 2007-12-09  Bruno Haible  <bruno@clisp.org>
36623
36624         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
36625         introduced on 2006-09-09.
36626
36627 2007-12-07  Jim Meyering  <meyering@redhat.com>
36628
36629         Let these macros work also with autoconf-2.59.
36630         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
36631         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
36632         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
36633
36634 2007-12-06  Jim Meyering  <meyering@redhat.com>
36635
36636         Avoid a configure-time syntax error in gl_FUNC_ACL.
36637         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
36638         function in each branch, before testing the cache variable.
36639
36640 2007-12-04  Eric Blake  <ebb9@byu.net>
36641
36642         Make scripts executable.
36643         * build-aux/config.guess: Add execute permissions.
36644         * build-aux/config.sub: Likewise.
36645         * build-aux/gendocs.sh: Likewise.
36646
36647         Fix frexp on mingw.
36648         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
36649         cross-compiling.
36650         * doc/functions/frexp.texi (frexp): Document the bug.
36651
36652         Make cygwin fseeko check more reliable.
36653         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
36654         version numbers, rather than unrelated feature check.
36655         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
36656         * doc/functions/ftello.texi (ftello): Likewise.
36657         Reported by Bruno Haible.
36658
36659         * m4/strerror.m4: Bump version number.
36660
36661 2007-12-03  Bruno Haible  <bruno@clisp.org>
36662
36663         * doc/functions/mprotect.texi: Mention the mingw problem.
36664
36665 2007-12-03  Eric Blake  <ebb9@byu.net>
36666
36667         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
36668         REPLACE_STRERROR is initialized before this macro.
36669
36670 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
36671
36672         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
36673         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
36674         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
36675         put -lsec in even for programs other than 'ls'.  This fixes a problem
36676         for gettext reported by Bruno Haible in
36677         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
36678         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
36679         Add support for Solaris 10.  This isn't efficient, but should get the
36680         job done for now.
36681
36682 2007-12-03  James Youngman  <jay@gnu.org>
36683
36684         * doc/regexprops-generic.texi: change "an close-group" to "a
36685         close-group" and "illegal" to "not allowed".
36686
36687 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36688
36689         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
36690         pr_byname.h. Needed for the rare case when the maintainer has done
36691         "make maintainer-clean" in the source directory and then attempts a
36692         build outside the source directory.
36693         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
36694         scripts_byname.h.
36695
36696 2007-12-02  Martin Lambers <marlam@marlam.de>
36697             Bruno Haible  <bruno@clisp.org>
36698
36699         * lib/getpagesize.h: Remove file.
36700         * lib/unistd.in.h: Include declaration of getpagesize here.
36701         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
36702         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
36703         HAVE_SYS_PARAM_H.
36704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
36705         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36706         * modules/getpagesize (Files): Remove lib/getpagesize.h.
36707         (Depends-on): Add unistd.
36708         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36709         (Include): Use <unistd.h> instead of getpagesize.h.
36710         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
36711         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36712         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
36713         gl_GETPAGESIZE invocation, already handled by module dependency.
36714         * lib/pagealign_alloc.c: Don't include getpagesize.h.
36715
36716 2007-12-02  Bruno Haible  <bruno@clisp.org>
36717
36718         * modules/strings-tests: New file.
36719         * tests/test-strings.c: New file.
36720
36721         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
36722         * lib/strings.in.h: New file.
36723         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
36724         * m4/strings_h.m4: New file.
36725         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
36726         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
36727         * modules/strings: New file.
36728         * modules/string (Makefile.am): Update.
36729         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
36730         Reported by Karl Berry.
36731
36732 2007-12-01  Eric Blake  <ebb9@byu.net>
36733
36734         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
36735         accomodate fix in cygwin 1.5.25.
36736
36737 2007-12-01  Jim Meyering  <meyering@redhat.com>
36738
36739         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
36740         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
36741         that would inhibit utf8-optimization of a regexp containing line-
36742         or buffer-anchors, e.g., `^', `$'.
36743
36744 2007-11-30  Bruno Haible  <bruno@clisp.org>
36745
36746         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
36747         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
36748         glthread_recursive_lock_init.
36749         * lib/lock.c (glthread_recursive_lock_init)
36750         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
36751         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36752
36753 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
36754
36755         New function qset_acl, like set_acl but with syscall semantics.
36756         * lib/acl.h (qset_acl): New decl.
36757         * lib/acl.c (qset_acl): New function.
36758         (set_acl): Use new function.  Use more-consistent diagnostics.
36759
36760 2007-11-28  Jim Meyering  <meyering@redhat.com>
36761
36762         * modules/physmem (License): Change from GPL to LGPLv2+.
36763
36764 2007-11-26  Bruno Haible  <bruno@clisp.org>
36765
36766         * lib/vasnprintf.c (decode_long_double): Don't abort if the
36767         'long double' type has excess precision.
36768         Reported by Jim Meyering in
36769         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
36770
36771 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36772
36773         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
36774         Sync from <http://gnu.org/licenses>.
36775         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
36776         with license text from same location.
36777         * doc/maintain.texi, doc/standards.texi:  Sync from
36778         <http://savannah.gnu.org/projects/gnustandards>.
36779
36780 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
36781         and Jim Meyering  <meyering@redhat.com>
36782
36783         Adjust getdate' grammar to accept a slightly more regular language.
36784         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
36785         Before, the former was rejected.
36786         * lib/getdate.y (digits_to_date_time): New function, factored
36787         out of ...
36788         (number): ...here.  Just call digits_to_date_time.
36789         (hybrid): New non-terminal to handle an <unsigned number,
36790         signed relative offset> sequence consistently.
36791
36792 2007-11-18  Jim Meyering  <meyering@redhat.com>
36793
36794         Pull my changes from coreutils:
36795         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
36796         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
36797         use of $gnulib_tool_option_extras, so that it's separated from the
36798         preceding argument.
36799
36800         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
36801         * build-aux/bootstrap (cp_mark_as_generated): Create any required
36802         parent destination directories before copying a file into place.
36803
36804 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
36805
36806         bootstrap: work also with 4-argument variant of AC_INIT
36807         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
36808
36809 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36810
36811         Port test-getaddrinfo to Solaris.
36812         Problem reported by Bruno Haible in
36813         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
36814         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
36815         explanation of setting 'hints'.
36816         Don't reject an implementation merely because it returns EAI_SERVICE.
36817         (EAI_SERVICE): Define to 0 if not defined.
36818
36819 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
36820
36821         The license of gnu-make and posix-shell is now "GPLed build tool".
36822         * modules/gnu-make (License): Likewise.
36823         * modules/posix-shell (License): Likewise.
36824
36825         New module posix-shell, for determining a POSIX shell
36826         or perhaps something that is close enough to a POSIX shell.
36827         * m4/posix-shell.m4: New file.
36828         * modules/posix-shell: New file.
36829
36830         * MODULES.html.sh: Mention new module.
36831
36832         New module gnu-make, for determining whether we're using GNU Make.
36833         * m4/gnu-make.m4: New file.
36834         * modules/gnu-make: New file.
36835         * MODULES.html.sh: Mention new module.
36836
36837 2007-11-14  Jim Meyering  <meyering@redhat.com>
36838
36839         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
36840         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
36841         use this macro to create a function _definition_.
36842         Remove useless "#undef ARGMATCH_DIE".
36843
36844 2007-11-14  Bruno Haible  <bruno@clisp.org>
36845
36846         * lib/config.charset: Update for OpenBSD 4.1.
36847         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
36848
36849 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
36850
36851         Document 64-bit #if problems in stdint.texi.
36852         * doc/headers/stdint.texi (stdint.h): Mention problems with
36853         64-bit-#if, and how to work around them.
36854
36855         Don't insist on 'long long int' support in the preprocessor.  It
36856         breaks too many things.  For example, PRIdMAX still uses a 'long
36857         long int' format with the latest Sun compiler, even though
36858         HAVE_LONG_LONG_INT isn't defined due to that compiler's
36859         preprocessor problem.  This causes the latest coreutils to dump
36860         core on Solaris 10 sparc with the Sun C compiler.
36861         Instead, fix the 2007-10-16 problem in a different way, by evaluating
36862         the troublesome expressions at configure-time, not at #if-time.
36863         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
36864         preprocessor.
36865         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
36866         compile-time C checks, done at 'configure'-time.
36867         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
36868         * modules/inttypes (Makefile): Substitute the new symbols that
36869         gl_INTTYPES_H now generates.
36870         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
36871
36872 2007-11-12  Bruno Haible  <bruno@clisp.org>
36873
36874         Tests for Unicode character classification functions.
36875
36876         * modules/unictype/bidicategory-byname-tests: New file.
36877         * modules/unictype/bidicategory-name-tests: New file.
36878         * modules/unictype/bidicategory-of-tests: New file.
36879         * modules/unictype/bidicategory-test-tests: New file.
36880         * modules/unictype/block-list-tests: New file.
36881         * modules/unictype/block-of-tests: New file.
36882         * modules/unictype/block-test-tests: New file.
36883         * modules/unictype/category-C-tests: New file.
36884         * modules/unictype/category-Cc-tests: New file.
36885         * modules/unictype/category-Cf-tests: New file.
36886         * modules/unictype/category-Cn-tests: New file.
36887         * modules/unictype/category-Co-tests: New file.
36888         * modules/unictype/category-Cs-tests: New file.
36889         * modules/unictype/category-L-tests: New file.
36890         * modules/unictype/category-Ll-tests: New file.
36891         * modules/unictype/category-Lm-tests: New file.
36892         * modules/unictype/category-Lo-tests: New file.
36893         * modules/unictype/category-Lt-tests: New file.
36894         * modules/unictype/category-Lu-tests: New file.
36895         * modules/unictype/category-M-tests: New file.
36896         * modules/unictype/category-Mc-tests: New file.
36897         * modules/unictype/category-Me-tests: New file.
36898         * modules/unictype/category-Mn-tests: New file.
36899         * modules/unictype/category-N-tests: New file.
36900         * modules/unictype/category-Nd-tests: New file.
36901         * modules/unictype/category-Nl-tests: New file.
36902         * modules/unictype/category-No-tests: New file.
36903         * modules/unictype/category-P-tests: New file.
36904         * modules/unictype/category-Pc-tests: New file.
36905         * modules/unictype/category-Pd-tests: New file.
36906         * modules/unictype/category-Pe-tests: New file.
36907         * modules/unictype/category-Pf-tests: New file.
36908         * modules/unictype/category-Pi-tests: New file.
36909         * modules/unictype/category-Po-tests: New file.
36910         * modules/unictype/category-Ps-tests: New file.
36911         * modules/unictype/category-S-tests: New file.
36912         * modules/unictype/category-Sc-tests: New file.
36913         * modules/unictype/category-Sk-tests: New file.
36914         * modules/unictype/category-Sm-tests: New file.
36915         * modules/unictype/category-So-tests: New file.
36916         * modules/unictype/category-Z-tests: New file.
36917         * modules/unictype/category-Zl-tests: New file.
36918         * modules/unictype/category-Zp-tests: New file.
36919         * modules/unictype/category-Zs-tests: New file.
36920         * modules/unictype/category-and-not-tests: New file.
36921         * modules/unictype/category-and-tests: New file.
36922         * modules/unictype/category-byname-tests: New file.
36923         * modules/unictype/category-name-tests: New file.
36924         * modules/unictype/category-none-tests: New file.
36925         * modules/unictype/category-of-tests: New file.
36926         * modules/unictype/category-or-tests: New file.
36927         * modules/unictype/category-test-withtable-tests: New file.
36928         * modules/unictype/combining-class-tests: New file.
36929         * modules/unictype/ctype-alnum-tests: New file.
36930         * modules/unictype/ctype-alpha-tests: New file.
36931         * modules/unictype/ctype-blank-tests: New file.
36932         * modules/unictype/ctype-cntrl-tests: New file.
36933         * modules/unictype/ctype-digit-tests: New file.
36934         * modules/unictype/ctype-graph-tests: New file.
36935         * modules/unictype/ctype-lower-tests: New file.
36936         * modules/unictype/ctype-print-tests: New file.
36937         * modules/unictype/ctype-punct-tests: New file.
36938         * modules/unictype/ctype-space-tests: New file.
36939         * modules/unictype/ctype-upper-tests: New file.
36940         * modules/unictype/ctype-xdigit-tests: New file.
36941         * modules/unictype/decimal-digit-tests: New file.
36942         * modules/unictype/digit-tests: New file.
36943         * modules/unictype/mirror-tests: New file.
36944         * modules/unictype/numeric-tests: New file.
36945         * modules/unictype/property-alphabetic-tests: New file.
36946         * modules/unictype/property-ascii-hex-digit-tests: New file.
36947         * modules/unictype/property-bidi-arabic-digit-tests: New file.
36948         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
36949         * modules/unictype/property-bidi-block-separator-tests: New file.
36950         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
36951         * modules/unictype/property-bidi-common-separator-tests: New file.
36952         * modules/unictype/property-bidi-control-tests: New file.
36953         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
36954         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
36955         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
36956         * modules/unictype/property-bidi-european-digit-tests: New file.
36957         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
36958         * modules/unictype/property-bidi-left-to-right-tests: New file.
36959         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
36960         * modules/unictype/property-bidi-other-neutral-tests: New file.
36961         * modules/unictype/property-bidi-pdf-tests: New file.
36962         * modules/unictype/property-bidi-segment-separator-tests: New file.
36963         * modules/unictype/property-bidi-whitespace-tests: New file.
36964         * modules/unictype/property-byname-tests: New file.
36965         * modules/unictype/property-combining-tests: New file.
36966         * modules/unictype/property-composite-tests: New file.
36967         * modules/unictype/property-currency-symbol-tests: New file.
36968         * modules/unictype/property-dash-tests: New file.
36969         * modules/unictype/property-decimal-digit-tests: New file.
36970         * modules/unictype/property-default-ignorable-code-point-tests: New file.
36971         * modules/unictype/property-deprecated-tests: New file.
36972         * modules/unictype/property-diacritic-tests: New file.
36973         * modules/unictype/property-extender-tests: New file.
36974         * modules/unictype/property-format-control-tests: New file.
36975         * modules/unictype/property-grapheme-base-tests: New file.
36976         * modules/unictype/property-grapheme-extend-tests: New file.
36977         * modules/unictype/property-grapheme-link-tests: New file.
36978         * modules/unictype/property-hex-digit-tests: New file.
36979         * modules/unictype/property-hyphen-tests: New file.
36980         * modules/unictype/property-id-continue-tests: New file.
36981         * modules/unictype/property-id-start-tests: New file.
36982         * modules/unictype/property-ideographic-tests: New file.
36983         * modules/unictype/property-ids-binary-operator-tests: New file.
36984         * modules/unictype/property-ids-trinary-operator-tests: New file.
36985         * modules/unictype/property-ignorable-control-tests: New file.
36986         * modules/unictype/property-iso-control-tests: New file.
36987         * modules/unictype/property-join-control-tests: New file.
36988         * modules/unictype/property-left-of-pair-tests: New file.
36989         * modules/unictype/property-line-separator-tests: New file.
36990         * modules/unictype/property-logical-order-exception-tests: New file.
36991         * modules/unictype/property-lowercase-tests: New file.
36992         * modules/unictype/property-math-tests: New file.
36993         * modules/unictype/property-non-break-tests: New file.
36994         * modules/unictype/property-not-a-character-tests: New file.
36995         * modules/unictype/property-numeric-tests: New file.
36996         * modules/unictype/property-other-alphabetic-tests: New file.
36997         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
36998         * modules/unictype/property-other-grapheme-extend-tests: New file.
36999         * modules/unictype/property-other-id-continue-tests: New file.
37000         * modules/unictype/property-other-id-start-tests: New file.
37001         * modules/unictype/property-other-lowercase-tests: New file.
37002         * modules/unictype/property-other-math-tests: New file.
37003         * modules/unictype/property-other-uppercase-tests: New file.
37004         * modules/unictype/property-paired-punctuation-tests: New file.
37005         * modules/unictype/property-paragraph-separator-tests: New file.
37006         * modules/unictype/property-pattern-syntax-tests: New file.
37007         * modules/unictype/property-pattern-white-space-tests: New file.
37008         * modules/unictype/property-private-use-tests: New file.
37009         * modules/unictype/property-punctuation-tests: New file.
37010         * modules/unictype/property-quotation-mark-tests: New file.
37011         * modules/unictype/property-radical-tests: New file.
37012         * modules/unictype/property-sentence-terminal-tests: New file.
37013         * modules/unictype/property-soft-dotted-tests: New file.
37014         * modules/unictype/property-space-tests: New file.
37015         * modules/unictype/property-terminal-punctuation-tests: New file.
37016         * modules/unictype/property-test-tests: New file.
37017         * modules/unictype/property-titlecase-tests: New file.
37018         * modules/unictype/property-unassigned-code-value-tests: New file.
37019         * modules/unictype/property-unified-ideograph-tests: New file.
37020         * modules/unictype/property-uppercase-tests: New file.
37021         * modules/unictype/property-variation-selector-tests: New file.
37022         * modules/unictype/property-white-space-tests: New file.
37023         * modules/unictype/property-xid-continue-tests: New file.
37024         * modules/unictype/property-xid-start-tests: New file.
37025         * modules/unictype/property-zero-width-tests: New file.
37026         * modules/unictype/scripts-tests: New file.
37027         * modules/unictype/syntax-c-ident-tests: New file.
37028         * modules/unictype/syntax-c-whitespace-tests: New file.
37029         * modules/unictype/syntax-java-ident-tests: New file.
37030         * modules/unictype/syntax-java-whitespace-tests: New file.
37031         * tests/unictype/test-bidi_byname.c: New file.
37032         * tests/unictype/test-bidi_name.c: New file.
37033         * tests/unictype/test-bidi_of.c: New file.
37034         * tests/unictype/test-bidi_test.c: New file.
37035         * tests/unictype/test-block_list.c: New file.
37036         * tests/unictype/test-block_of.c: New file.
37037         * tests/unictype/test-block_test.c: New file.
37038         * tests/unictype/test-categ_and.c: New file.
37039         * tests/unictype/test-categ_and_not.c: New file.
37040         * tests/unictype/test-categ_byname.c: New file.
37041         * tests/unictype/test-categ_name.c: New file.
37042         * tests/unictype/test-categ_none.c: New file.
37043         * tests/unictype/test-categ_of.c: New file.
37044         * tests/unictype/test-categ_or.c: New file.
37045         * tests/unictype/test-categ_test_withtable.c: New file.
37046         * tests/unictype/test-combining.c: New file.
37047         * tests/unictype/test-decdigit.c: New file.
37048         * tests/unictype/test-digit.c: New file.
37049         * tests/unictype/test-mirror.c: New file.
37050         * tests/unictype/test-numeric.c: New file.
37051         * tests/unictype/test-pr_byname.c: New file.
37052         * tests/unictype/test-pr_test.c: New file.
37053         * tests/unictype/test-predicate-part1.h: New file.
37054         * tests/unictype/test-predicate-part2.h: New file.
37055         * tests/unictype/test-scripts.c: New file.
37056         * tests/unictype/test-sy_c_ident.c: New file.
37057         * tests/unictype/test-sy_java_ident.c: New file.
37058
37059         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
37060         for Unicode 5.0.0.
37061         * tests/unictype/test-categ_Cc.c: Likewise.
37062         * tests/unictype/test-categ_Cf.c: Likewise.
37063         * tests/unictype/test-categ_Cn.c: Likewise.
37064         * tests/unictype/test-categ_Co.c: Likewise.
37065         * tests/unictype/test-categ_Cs.c: Likewise.
37066         * tests/unictype/test-categ_L.c: Likewise.
37067         * tests/unictype/test-categ_Ll.c: Likewise.
37068         * tests/unictype/test-categ_Lm.c: Likewise.
37069         * tests/unictype/test-categ_Lo.c: Likewise.
37070         * tests/unictype/test-categ_Lt.c: Likewise.
37071         * tests/unictype/test-categ_Lu.c: Likewise.
37072         * tests/unictype/test-categ_M.c: Likewise.
37073         * tests/unictype/test-categ_Mc.c: Likewise.
37074         * tests/unictype/test-categ_Me.c: Likewise.
37075         * tests/unictype/test-categ_Mn.c: Likewise.
37076         * tests/unictype/test-categ_N.c: Likewise.
37077         * tests/unictype/test-categ_Nd.c: Likewise.
37078         * tests/unictype/test-categ_Nl.c: Likewise.
37079         * tests/unictype/test-categ_No.c: Likewise.
37080         * tests/unictype/test-categ_P.c: Likewise.
37081         * tests/unictype/test-categ_Pc.c: Likewise.
37082         * tests/unictype/test-categ_Pd.c: Likewise.
37083         * tests/unictype/test-categ_Pe.c: Likewise.
37084         * tests/unictype/test-categ_Pf.c: Likewise.
37085         * tests/unictype/test-categ_Pi.c: Likewise.
37086         * tests/unictype/test-categ_Po.c: Likewise.
37087         * tests/unictype/test-categ_Ps.c: Likewise.
37088         * tests/unictype/test-categ_S.c: Likewise.
37089         * tests/unictype/test-categ_Sc.c: Likewise.
37090         * tests/unictype/test-categ_Sk.c: Likewise.
37091         * tests/unictype/test-categ_Sm.c: Likewise.
37092         * tests/unictype/test-categ_So.c: Likewise.
37093         * tests/unictype/test-categ_Z.c: Likewise.
37094         * tests/unictype/test-categ_Zl.c: Likewise.
37095         * tests/unictype/test-categ_Zp.c: Likewise.
37096         * tests/unictype/test-categ_Zs.c: Likewise.
37097         * tests/unictype/test-ctype_alnum.c: Likewise.
37098         * tests/unictype/test-ctype_alpha.c: Likewise.
37099         * tests/unictype/test-ctype_blank.c: Likewise.
37100         * tests/unictype/test-ctype_cntrl.c: Likewise.
37101         * tests/unictype/test-ctype_digit.c: Likewise.
37102         * tests/unictype/test-ctype_graph.c: Likewise.
37103         * tests/unictype/test-ctype_lower.c: Likewise.
37104         * tests/unictype/test-ctype_print.c: Likewise.
37105         * tests/unictype/test-ctype_punct.c: Likewise.
37106         * tests/unictype/test-ctype_space.c: Likewise.
37107         * tests/unictype/test-ctype_upper.c: Likewise.
37108         * tests/unictype/test-ctype_xdigit.c: Likewise.
37109         * tests/unictype/test-decdigit.h: Likewise.
37110         * tests/unictype/test-digit.h: Likewise.
37111         * tests/unictype/test-numeric.h: Likewise.
37112         * tests/unictype/test-pr_alphabetic.c: Likewise.
37113         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
37114         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
37115         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
37116         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
37117         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
37118         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
37119         * tests/unictype/test-pr_bidi_control.c: Likewise.
37120         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
37121         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
37122         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
37123         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
37124         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
37125         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
37126         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
37127         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
37128         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
37129         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
37130         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
37131         * tests/unictype/test-pr_combining.c: Likewise.
37132         * tests/unictype/test-pr_composite.c: Likewise.
37133         * tests/unictype/test-pr_currency_symbol.c: Likewise.
37134         * tests/unictype/test-pr_dash.c: Likewise.
37135         * tests/unictype/test-pr_decimal_digit.c: Likewise.
37136         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
37137         * tests/unictype/test-pr_deprecated.c: Likewise.
37138         * tests/unictype/test-pr_diacritic.c: Likewise.
37139         * tests/unictype/test-pr_extender.c: Likewise.
37140         * tests/unictype/test-pr_format_control.c: Likewise.
37141         * tests/unictype/test-pr_grapheme_base.c: Likewise.
37142         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
37143         * tests/unictype/test-pr_grapheme_link.c: Likewise.
37144         * tests/unictype/test-pr_hex_digit.c: Likewise.
37145         * tests/unictype/test-pr_hyphen.c: Likewise.
37146         * tests/unictype/test-pr_id_continue.c: Likewise.
37147         * tests/unictype/test-pr_id_start.c: Likewise.
37148         * tests/unictype/test-pr_ideographic.c: Likewise.
37149         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
37150         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
37151         * tests/unictype/test-pr_ignorable_control.c: Likewise.
37152         * tests/unictype/test-pr_iso_control.c: Likewise.
37153         * tests/unictype/test-pr_join_control.c: Likewise.
37154         * tests/unictype/test-pr_left_of_pair.c: Likewise.
37155         * tests/unictype/test-pr_line_separator.c: Likewise.
37156         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
37157         * tests/unictype/test-pr_lowercase.c: Likewise.
37158         * tests/unictype/test-pr_math.c: Likewise.
37159         * tests/unictype/test-pr_non_break.c: Likewise.
37160         * tests/unictype/test-pr_not_a_character.c: Likewise.
37161         * tests/unictype/test-pr_numeric.c: Likewise.
37162         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
37163         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
37164         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
37165         * tests/unictype/test-pr_other_id_continue.c: Likewise.
37166         * tests/unictype/test-pr_other_id_start.c: Likewise.
37167         * tests/unictype/test-pr_other_lowercase.c: Likewise.
37168         * tests/unictype/test-pr_other_math.c: Likewise.
37169         * tests/unictype/test-pr_other_uppercase.c: Likewise.
37170         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
37171         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
37172         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
37173         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
37174         * tests/unictype/test-pr_private_use.c: Likewise.
37175         * tests/unictype/test-pr_punctuation.c: Likewise.
37176         * tests/unictype/test-pr_quotation_mark.c: Likewise.
37177         * tests/unictype/test-pr_radical.c: Likewise.
37178         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
37179         * tests/unictype/test-pr_soft_dotted.c: Likewise.
37180         * tests/unictype/test-pr_space.c: Likewise.
37181         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
37182         * tests/unictype/test-pr_titlecase.c: Likewise.
37183         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
37184         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
37185         * tests/unictype/test-pr_uppercase.c: Likewise.
37186         * tests/unictype/test-pr_variation_selector.c: Likewise.
37187         * tests/unictype/test-pr_white_space.c: Likewise.
37188         * tests/unictype/test-pr_xid_continue.c: Likewise.
37189         * tests/unictype/test-pr_xid_start.c: Likewise.
37190         * tests/unictype/test-pr_zero_width.c: Likewise.
37191         * tests/unictype/test-sy_c_whitespace.c: Likewise.
37192         * tests/unictype/test-sy_java_whitespace.c: Likewise.
37193
37194 2007-11-12  Bruno Haible  <bruno@clisp.org>
37195
37196         Unicode character classification functions.
37197         * lib/unictype.h: New file.
37198         * modules/unictype/base: New file.
37199         * modules/unictype/category-L: New file.
37200         * modules/unictype/category-Lu: New file.
37201         * modules/unictype/category-Ll: New file.
37202         * modules/unictype/category-Lt: New file.
37203         * modules/unictype/category-Lm: New file.
37204         * modules/unictype/category-Lo: New file.
37205         * modules/unictype/category-M: New file.
37206         * modules/unictype/category-Mn: New file.
37207         * modules/unictype/category-Mc: New file.
37208         * modules/unictype/category-Me: New file.
37209         * modules/unictype/category-N: New file.
37210         * modules/unictype/category-Nd: New file.
37211         * modules/unictype/category-Nl: New file.
37212         * modules/unictype/category-No: New file.
37213         * modules/unictype/category-P: New file.
37214         * modules/unictype/category-Pc: New file.
37215         * modules/unictype/category-Pd: New file.
37216         * modules/unictype/category-Ps: New file.
37217         * modules/unictype/category-Pe: New file.
37218         * modules/unictype/category-Pi: New file.
37219         * modules/unictype/category-Pf: New file.
37220         * modules/unictype/category-Po: New file.
37221         * modules/unictype/category-S: New file.
37222         * modules/unictype/category-Sm: New file.
37223         * modules/unictype/category-Sc: New file.
37224         * modules/unictype/category-Sk: New file.
37225         * modules/unictype/category-So: New file.
37226         * modules/unictype/category-Z: New file.
37227         * modules/unictype/category-Zs: New file.
37228         * modules/unictype/category-Zl: New file.
37229         * modules/unictype/category-Zp: New file.
37230         * modules/unictype/category-C: New file.
37231         * modules/unictype/category-Cc: New file.
37232         * modules/unictype/category-Cf: New file.
37233         * modules/unictype/category-Cs: New file.
37234         * modules/unictype/category-Co: New file.
37235         * modules/unictype/category-Cn: New file.
37236         * modules/unictype/category-or: New file.
37237         * modules/unictype/category-of: New file.
37238         * modules/unictype/category-test: New file.
37239         * modules/unictype/category-test-withtable: New file.
37240         * modules/unictype/category-byname: New file.
37241         * modules/unictype/category-none: New file.
37242         * modules/unictype/category-and: New file.
37243         * modules/unictype/category-and-not: New file.
37244         * modules/unictype/category-name: New file.
37245         * modules/unictype/combining-class: New file.
37246         * modules/unictype/category-all: New file.
37247         * modules/unictype/bidicategory-all: New file.
37248         * modules/unictype/bidicategory-byname: New file.
37249         * modules/unictype/bidicategory-name: New file.
37250         * modules/unictype/bidicategory-of: New file.
37251         * modules/unictype/bidicategory-test: New file.
37252         * modules/unictype/decimal-digit: New file.
37253         * modules/unictype/digit: New file.
37254         * modules/unictype/numeric: New file.
37255         * modules/unictype/mirror: New file.
37256         * modules/unictype/property-white-space: New file.
37257         * modules/unictype/property-alphabetic: New file.
37258         * modules/unictype/property-other-alphabetic: New file.
37259         * modules/unictype/property-not-a-character: New file.
37260         * modules/unictype/property-default-ignorable-code-point: New file.
37261         * modules/unictype/property-other-default-ignorable-code-point: New
37262         file.
37263         * modules/unictype/property-deprecated: New file.
37264         * modules/unictype/property-logical-order-exception: New file.
37265         * modules/unictype/property-variation-selector: New file.
37266         * modules/unictype/property-private-use: New file.
37267         * modules/unictype/property-unassigned-code-value: New file.
37268         * modules/unictype/property-uppercase: New file.
37269         * modules/unictype/property-other-uppercase: New file.
37270         * modules/unictype/property-lowercase: New file.
37271         * modules/unictype/property-other-lowercase: New file.
37272         * modules/unictype/property-titlecase: New file.
37273         * modules/unictype/property-soft-dotted: New file.
37274         * modules/unictype/property-id-start: New file.
37275         * modules/unictype/property-other-id-start: New file.
37276         * modules/unictype/property-id-continue: New file.
37277         * modules/unictype/property-other-id-continue: New file.
37278         * modules/unictype/property-xid-start: New file.
37279         * modules/unictype/property-xid-continue: New file.
37280         * modules/unictype/property-pattern-white-space: New file.
37281         * modules/unictype/property-pattern-syntax: New file.
37282         * modules/unictype/property-join-control: New file.
37283         * modules/unictype/property-grapheme-base: New file.
37284         * modules/unictype/property-grapheme-extend: New file.
37285         * modules/unictype/property-other-grapheme-extend: New file.
37286         * modules/unictype/property-grapheme-link: New file.
37287         * modules/unictype/property-bidi-control: New file.
37288         * modules/unictype/property-bidi-left-to-right: New file.
37289         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
37290         * modules/unictype/property-bidi-arabic-right-to-left: New file.
37291         * modules/unictype/property-bidi-european-digit: New file.
37292         * modules/unictype/property-bidi-eur-num-separator: New file.
37293         * modules/unictype/property-bidi-eur-num-terminator: New file.
37294         * modules/unictype/property-bidi-arabic-digit: New file.
37295         * modules/unictype/property-bidi-common-separator: New file.
37296         * modules/unictype/property-bidi-block-separator: New file.
37297         * modules/unictype/property-bidi-segment-separator: New file.
37298         * modules/unictype/property-bidi-whitespace: New file.
37299         * modules/unictype/property-bidi-non-spacing-mark: New file.
37300         * modules/unictype/property-bidi-boundary-neutral: New file.
37301         * modules/unictype/property-bidi-pdf: New file.
37302         * modules/unictype/property-bidi-embedding-or-override: New file.
37303         * modules/unictype/property-bidi-other-neutral: New file.
37304         * modules/unictype/property-hex-digit: New file.
37305         * modules/unictype/property-ascii-hex-digit: New file.
37306         * modules/unictype/property-ideographic: New file.
37307         * modules/unictype/property-unified-ideograph: New file.
37308         * modules/unictype/property-radical: New file.
37309         * modules/unictype/property-ids-binary-operator: New file.
37310         * modules/unictype/property-ids-trinary-operator: New file.
37311         * modules/unictype/property-zero-width: New file.
37312         * modules/unictype/property-space: New file.
37313         * modules/unictype/property-non-break: New file.
37314         * modules/unictype/property-iso-control: New file.
37315         * modules/unictype/property-format-control: New file.
37316         * modules/unictype/property-dash: New file.
37317         * modules/unictype/property-hyphen: New file.
37318         * modules/unictype/property-punctuation: New file.
37319         * modules/unictype/property-line-separator: New file.
37320         * modules/unictype/property-paragraph-separator: New file.
37321         * modules/unictype/property-quotation-mark: New file.
37322         * modules/unictype/property-sentence-terminal: New file.
37323         * modules/unictype/property-terminal-punctuation: New file.
37324         * modules/unictype/property-currency-symbol: New file.
37325         * modules/unictype/property-math: New file.
37326         * modules/unictype/property-other-math: New file.
37327         * modules/unictype/property-paired-punctuation: New file.
37328         * modules/unictype/property-left-of-pair: New file.
37329         * modules/unictype/property-combining: New file.
37330         * modules/unictype/property-composite: New file.
37331         * modules/unictype/property-decimal-digit: New file.
37332         * modules/unictype/property-numeric: New file.
37333         * modules/unictype/property-diacritic: New file.
37334         * modules/unictype/property-extender: New file.
37335         * modules/unictype/property-ignorable-control: New file.
37336         * modules/unictype/property-test: New file.
37337         * modules/unictype/property-byname: New file.
37338         * modules/unictype/property-all: New file.
37339         * modules/unictype/scripts: New file.
37340         * modules/unictype/scripts-all: New file.
37341         * modules/unictype/block-of: New file.
37342         * modules/unictype/block-test: New file.
37343         * modules/unictype/block-list: New file.
37344         * modules/unictype/block-all: New file.
37345         * modules/unictype/syntax-c-whitespace: New file.
37346         * modules/unictype/syntax-java-whitespace: New file.
37347         * modules/unictype/syntax-c-ident: New file.
37348         * modules/unictype/syntax-java-ident: New file.
37349         * modules/unictype/ctype-alnum: New file.
37350         * modules/unictype/ctype-alpha: New file.
37351         * modules/unictype/ctype-cntrl: New file.
37352         * modules/unictype/ctype-digit: New file.
37353         * modules/unictype/ctype-graph: New file.
37354         * modules/unictype/ctype-lower: New file.
37355         * modules/unictype/ctype-print: New file.
37356         * modules/unictype/ctype-punct: New file.
37357         * modules/unictype/ctype-space: New file.
37358         * modules/unictype/ctype-upper: New file.
37359         * modules/unictype/ctype-xdigit: New file.
37360         * modules/unictype/ctype-blank: New file.
37361         * lib/unictype/bidi_byname.c: New file.
37362         * lib/unictype/bidi_name.c: New file.
37363         * lib/unictype/bidi_of.c: New file.
37364         * lib/unictype/bidi_test.c: New file.
37365         * lib/unictype/bitmap.h: New file.
37366         * lib/unictype/block_test.c: New file.
37367         * lib/unictype/blocks.c: New file.
37368         * lib/unictype/categ_C.c: New file.
37369         * lib/unictype/categ_Cc.c: New file.
37370         * lib/unictype/categ_Cf.c: New file.
37371         * lib/unictype/categ_Cn.c: New file.
37372         * lib/unictype/categ_Co.c: New file.
37373         * lib/unictype/categ_Cs.c: New file.
37374         * lib/unictype/categ_L.c: New file.
37375         * lib/unictype/categ_Ll.c: New file.
37376         * lib/unictype/categ_Lm.c: New file.
37377         * lib/unictype/categ_Lo.c: New file.
37378         * lib/unictype/categ_Lt.c: New file.
37379         * lib/unictype/categ_Lu.c: New file.
37380         * lib/unictype/categ_M.c: New file.
37381         * lib/unictype/categ_Mc.c: New file.
37382         * lib/unictype/categ_Me.c: New file.
37383         * lib/unictype/categ_Mn.c: New file.
37384         * lib/unictype/categ_N.c: New file.
37385         * lib/unictype/categ_Nd.c: New file.
37386         * lib/unictype/categ_Nl.c: New file.
37387         * lib/unictype/categ_No.c: New file.
37388         * lib/unictype/categ_P.c: New file.
37389         * lib/unictype/categ_Pc.c: New file.
37390         * lib/unictype/categ_Pd.c: New file.
37391         * lib/unictype/categ_Pe.c: New file.
37392         * lib/unictype/categ_Pf.c: New file.
37393         * lib/unictype/categ_Pi.c: New file.
37394         * lib/unictype/categ_Po.c: New file.
37395         * lib/unictype/categ_Ps.c: New file.
37396         * lib/unictype/categ_S.c: New file.
37397         * lib/unictype/categ_Sc.c: New file.
37398         * lib/unictype/categ_Sk.c: New file.
37399         * lib/unictype/categ_Sm.c: New file.
37400         * lib/unictype/categ_So.c: New file.
37401         * lib/unictype/categ_Z.c: New file.
37402         * lib/unictype/categ_Zl.c: New file.
37403         * lib/unictype/categ_Zp.c: New file.
37404         * lib/unictype/categ_Zs.c: New file.
37405         * lib/unictype/categ_and.c: New file.
37406         * lib/unictype/categ_and_not.c: New file.
37407         * lib/unictype/categ_byname.c: New file.
37408         * lib/unictype/categ_name.c: New file.
37409         * lib/unictype/categ_none.c: New file.
37410         * lib/unictype/categ_of.c: New file.
37411         * lib/unictype/categ_or.c: New file.
37412         * lib/unictype/categ_test.c: New file.
37413         * lib/unictype/combining.c: New file.
37414         * lib/unictype/ctype_alnum.c: New file.
37415         * lib/unictype/ctype_alpha.c: New file.
37416         * lib/unictype/ctype_blank.c: New file.
37417         * lib/unictype/ctype_cntrl.c: New file.
37418         * lib/unictype/ctype_digit.c: New file.
37419         * lib/unictype/ctype_graph.c: New file.
37420         * lib/unictype/ctype_lower.c: New file.
37421         * lib/unictype/ctype_print.c: New file.
37422         * lib/unictype/ctype_punct.c: New file.
37423         * lib/unictype/ctype_space.c: New file.
37424         * lib/unictype/ctype_upper.c: New file.
37425         * lib/unictype/ctype_xdigit.c: New file.
37426         * lib/unictype/decdigit.c: New file.
37427         * lib/unictype/digit.c: New file.
37428         * lib/unictype/identsyntaxmap.h: New file.
37429         * lib/unictype/mirror.c: New file.
37430         * lib/unictype/numeric.c: New file.
37431         * lib/unictype/pr_alphabetic.c: New file.
37432         * lib/unictype/pr_ascii_hex_digit.c: New file.
37433         * lib/unictype/pr_bidi_arabic_digit.c: New file.
37434         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
37435         * lib/unictype/pr_bidi_block_separator.c: New file.
37436         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
37437         * lib/unictype/pr_bidi_common_separator.c: New file.
37438         * lib/unictype/pr_bidi_control.c: New file.
37439         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
37440         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
37441         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
37442         * lib/unictype/pr_bidi_european_digit.c: New file.
37443         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
37444         * lib/unictype/pr_bidi_left_to_right.c: New file.
37445         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
37446         * lib/unictype/pr_bidi_other_neutral.c: New file.
37447         * lib/unictype/pr_bidi_pdf.c: New file.
37448         * lib/unictype/pr_bidi_segment_separator.c: New file.
37449         * lib/unictype/pr_bidi_whitespace.c: New file.
37450         * lib/unictype/pr_byname.c: New file.
37451         * lib/unictype/pr_byname.gperf: New file.
37452         * lib/unictype/pr_combining.c: New file.
37453         * lib/unictype/pr_composite.c: New file.
37454         * lib/unictype/pr_currency_symbol.c: New file.
37455         * lib/unictype/pr_dash.c: New file.
37456         * lib/unictype/pr_decimal_digit.c: New file.
37457         * lib/unictype/pr_default_ignorable_code_point.c: New file.
37458         * lib/unictype/pr_deprecated.c: New file.
37459         * lib/unictype/pr_diacritic.c: New file.
37460         * lib/unictype/pr_extender.c: New file.
37461         * lib/unictype/pr_format_control.c: New file.
37462         * lib/unictype/pr_grapheme_base.c: New file.
37463         * lib/unictype/pr_grapheme_extend.c: New file.
37464         * lib/unictype/pr_grapheme_link.c: New file.
37465         * lib/unictype/pr_hex_digit.c: New file.
37466         * lib/unictype/pr_hyphen.c: New file.
37467         * lib/unictype/pr_id_continue.c: New file.
37468         * lib/unictype/pr_id_start.c: New file.
37469         * lib/unictype/pr_ideographic.c: New file.
37470         * lib/unictype/pr_ids_binary_operator.c: New file.
37471         * lib/unictype/pr_ids_trinary_operator.c: New file.
37472         * lib/unictype/pr_ignorable_control.c: New file.
37473         * lib/unictype/pr_iso_control.c: New file.
37474         * lib/unictype/pr_join_control.c: New file.
37475         * lib/unictype/pr_left_of_pair.c: New file.
37476         * lib/unictype/pr_line_separator.c: New file.
37477         * lib/unictype/pr_logical_order_exception.c: New file.
37478         * lib/unictype/pr_lowercase.c: New file.
37479         * lib/unictype/pr_math.c: New file.
37480         * lib/unictype/pr_non_break.c: New file.
37481         * lib/unictype/pr_not_a_character.c: New file.
37482         * lib/unictype/pr_numeric.c: New file.
37483         * lib/unictype/pr_other_alphabetic.c: New file.
37484         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
37485         * lib/unictype/pr_other_grapheme_extend.c: New file.
37486         * lib/unictype/pr_other_id_continue.c: New file.
37487         * lib/unictype/pr_other_id_start.c: New file.
37488         * lib/unictype/pr_other_lowercase.c: New file.
37489         * lib/unictype/pr_other_math.c: New file.
37490         * lib/unictype/pr_other_uppercase.c: New file.
37491         * lib/unictype/pr_paired_punctuation.c: New file.
37492         * lib/unictype/pr_paragraph_separator.c: New file.
37493         * lib/unictype/pr_pattern_syntax.c: New file.
37494         * lib/unictype/pr_pattern_white_space.c: New file.
37495         * lib/unictype/pr_private_use.c: New file.
37496         * lib/unictype/pr_punctuation.c: New file.
37497         * lib/unictype/pr_quotation_mark.c: New file.
37498         * lib/unictype/pr_radical.c: New file.
37499         * lib/unictype/pr_sentence_terminal.c: New file.
37500         * lib/unictype/pr_soft_dotted.c: New file.
37501         * lib/unictype/pr_space.c: New file.
37502         * lib/unictype/pr_terminal_punctuation.c: New file.
37503         * lib/unictype/pr_test.c: New file.
37504         * lib/unictype/pr_titlecase.c: New file.
37505         * lib/unictype/pr_unassigned_code_value.c: New file.
37506         * lib/unictype/pr_unified_ideograph.c: New file.
37507         * lib/unictype/pr_uppercase.c: New file.
37508         * lib/unictype/pr_variation_selector.c: New file.
37509         * lib/unictype/pr_white_space.c: New file.
37510         * lib/unictype/pr_xid_continue.c: New file.
37511         * lib/unictype/pr_xid_start.c: New file.
37512         * lib/unictype/pr_zero_width.c: New file.
37513         * lib/unictype/scripts.c: New file.
37514         * lib/unictype/sy_c_ident.c: New file.
37515         * lib/unictype/sy_c_whitespace.c: New file.
37516         * lib/unictype/sy_java_ident.c: New file.
37517         * lib/unictype/sy_java_whitespace.c: New file.
37518
37519         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
37520         Unicode 5.0.0.
37521         * lib/unictype/blocks.h: Likewise.
37522         * lib/unictype/categ_C.h: Likewise.
37523         * lib/unictype/categ_Cc.h: Likewise.
37524         * lib/unictype/categ_Cf.h: Likewise.
37525         * lib/unictype/categ_Cn.h: Likewise.
37526         * lib/unictype/categ_Co.h: Likewise.
37527         * lib/unictype/categ_Cs.h: Likewise.
37528         * lib/unictype/categ_L.h: Likewise.
37529         * lib/unictype/categ_Ll.h: Likewise.
37530         * lib/unictype/categ_Lm.h: Likewise.
37531         * lib/unictype/categ_Lo.h: Likewise.
37532         * lib/unictype/categ_Lt.h: Likewise.
37533         * lib/unictype/categ_Lu.h: Likewise.
37534         * lib/unictype/categ_M.h: Likewise.
37535         * lib/unictype/categ_Mc.h: Likewise.
37536         * lib/unictype/categ_Me.h: Likewise.
37537         * lib/unictype/categ_Mn.h: Likewise.
37538         * lib/unictype/categ_N.h: Likewise.
37539         * lib/unictype/categ_Nd.h: Likewise.
37540         * lib/unictype/categ_Nl.h: Likewise.
37541         * lib/unictype/categ_No.h: Likewise.
37542         * lib/unictype/categ_P.h: Likewise.
37543         * lib/unictype/categ_Pc.h: Likewise.
37544         * lib/unictype/categ_Pd.h: Likewise.
37545         * lib/unictype/categ_Pe.h: Likewise.
37546         * lib/unictype/categ_Pf.h: Likewise.
37547         * lib/unictype/categ_Pi.h: Likewise.
37548         * lib/unictype/categ_Po.h: Likewise.
37549         * lib/unictype/categ_Ps.h: Likewise.
37550         * lib/unictype/categ_S.h: Likewise.
37551         * lib/unictype/categ_Sc.h: Likewise.
37552         * lib/unictype/categ_Sk.h: Likewise.
37553         * lib/unictype/categ_Sm.h: Likewise.
37554         * lib/unictype/categ_So.h: Likewise.
37555         * lib/unictype/categ_Z.h: Likewise.
37556         * lib/unictype/categ_Zl.h: Likewise.
37557         * lib/unictype/categ_Zp.h: Likewise.
37558         * lib/unictype/categ_Zs.h: Likewise.
37559         * lib/unictype/categ_of.h: Likewise.
37560         * lib/unictype/combining.h: Likewise.
37561         * lib/unictype/ctype_alnum.h: Likewise.
37562         * lib/unictype/ctype_alpha.h: Likewise.
37563         * lib/unictype/ctype_blank.h: Likewise.
37564         * lib/unictype/ctype_cntrl.h: Likewise.
37565         * lib/unictype/ctype_digit.h: Likewise.
37566         * lib/unictype/ctype_graph.h: Likewise.
37567         * lib/unictype/ctype_lower.h: Likewise.
37568         * lib/unictype/ctype_print.h: Likewise.
37569         * lib/unictype/ctype_punct.h: Likewise.
37570         * lib/unictype/ctype_space.h: Likewise.
37571         * lib/unictype/ctype_upper.h: Likewise.
37572         * lib/unictype/ctype_xdigit.h: Likewise.
37573         * lib/unictype/decdigit.h: Likewise.
37574         * lib/unictype/digit.h: Likewise.
37575         * lib/unictype/mirror.h: Likewise.
37576         * lib/unictype/numeric.h: Likewise.
37577         * lib/unictype/pr_alphabetic.h: Likewise.
37578         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
37579         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
37580         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
37581         * lib/unictype/pr_bidi_block_separator.h: Likewise.
37582         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
37583         * lib/unictype/pr_bidi_common_separator.h: Likewise.
37584         * lib/unictype/pr_bidi_control.h: Likewise.
37585         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
37586         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
37587         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
37588         * lib/unictype/pr_bidi_european_digit.h: Likewise.
37589         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
37590         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
37591         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
37592         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
37593         * lib/unictype/pr_bidi_pdf.h: Likewise.
37594         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
37595         * lib/unictype/pr_bidi_whitespace.h: Likewise.
37596         * lib/unictype/pr_combining.h: Likewise.
37597         * lib/unictype/pr_composite.h: Likewise.
37598         * lib/unictype/pr_currency_symbol.h: Likewise.
37599         * lib/unictype/pr_dash.h: Likewise.
37600         * lib/unictype/pr_decimal_digit.h: Likewise.
37601         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
37602         * lib/unictype/pr_deprecated.h: Likewise.
37603         * lib/unictype/pr_diacritic.h: Likewise.
37604         * lib/unictype/pr_extender.h: Likewise.
37605         * lib/unictype/pr_format_control.h: Likewise.
37606         * lib/unictype/pr_grapheme_base.h: Likewise.
37607         * lib/unictype/pr_grapheme_extend.h: Likewise.
37608         * lib/unictype/pr_grapheme_link.h: Likewise.
37609         * lib/unictype/pr_hex_digit.h: Likewise.
37610         * lib/unictype/pr_hyphen.h: Likewise.
37611         * lib/unictype/pr_id_continue.h: Likewise.
37612         * lib/unictype/pr_id_start.h: Likewise.
37613         * lib/unictype/pr_ideographic.h: Likewise.
37614         * lib/unictype/pr_ids_binary_operator.h: Likewise.
37615         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
37616         * lib/unictype/pr_ignorable_control.h: Likewise.
37617         * lib/unictype/pr_iso_control.h: Likewise.
37618         * lib/unictype/pr_join_control.h: Likewise.
37619         * lib/unictype/pr_left_of_pair.h: Likewise.
37620         * lib/unictype/pr_line_separator.h: Likewise.
37621         * lib/unictype/pr_logical_order_exception.h: Likewise.
37622         * lib/unictype/pr_lowercase.h: Likewise.
37623         * lib/unictype/pr_math.h: Likewise.
37624         * lib/unictype/pr_non_break.h: Likewise.
37625         * lib/unictype/pr_not_a_character.h: Likewise.
37626         * lib/unictype/pr_numeric.h: Likewise.
37627         * lib/unictype/pr_other_alphabetic.h: Likewise.
37628         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
37629         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
37630         * lib/unictype/pr_other_id_continue.h: Likewise.
37631         * lib/unictype/pr_other_id_start.h: Likewise.
37632         * lib/unictype/pr_other_lowercase.h: Likewise.
37633         * lib/unictype/pr_other_math.h: Likewise.
37634         * lib/unictype/pr_other_uppercase.h: Likewise.
37635         * lib/unictype/pr_paired_punctuation.h: Likewise.
37636         * lib/unictype/pr_paragraph_separator.h: Likewise.
37637         * lib/unictype/pr_pattern_syntax.h: Likewise.
37638         * lib/unictype/pr_pattern_white_space.h: Likewise.
37639         * lib/unictype/pr_private_use.h: Likewise.
37640         * lib/unictype/pr_punctuation.h: Likewise.
37641         * lib/unictype/pr_quotation_mark.h: Likewise.
37642         * lib/unictype/pr_radical.h: Likewise.
37643         * lib/unictype/pr_sentence_terminal.h: Likewise.
37644         * lib/unictype/pr_soft_dotted.h: Likewise.
37645         * lib/unictype/pr_space.h: Likewise.
37646         * lib/unictype/pr_terminal_punctuation.h: Likewise.
37647         * lib/unictype/pr_titlecase.h: Likewise.
37648         * lib/unictype/pr_unassigned_code_value.h: Likewise.
37649         * lib/unictype/pr_unified_ideograph.h: Likewise.
37650         * lib/unictype/pr_uppercase.h: Likewise.
37651         * lib/unictype/pr_variation_selector.h: Likewise.
37652         * lib/unictype/pr_white_space.h: Likewise.
37653         * lib/unictype/pr_xid_continue.h: Likewise.
37654         * lib/unictype/pr_xid_start.h: Likewise.
37655         * lib/unictype/pr_zero_width.h: Likewise.
37656         * lib/unictype/scripts.h: Likewise.
37657         * lib/unictype/scripts_byname.gperf: Likewise.
37658         * lib/unictype/sy_c_ident.h: Likewise.
37659         * lib/unictype/sy_c_whitespace.h: Likewise.
37660         * lib/unictype/sy_java_ident.h: Likewise.
37661         * lib/unictype/sy_java_whitespace.h: Likewise.
37662
37663         * lib/unictype/Makefile: New file.
37664         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
37665         glibc.
37666         * lib/unictype/3level.h: New file, copied from glibc.
37667         * lib/unictype/3levelbit.h: New file.
37668
37669 2007-11-11  Bruno Haible  <bruno@clisp.org>
37670
37671         * modules/gperf: New file.
37672         * modules/iconv_open (Depends-on): Add it.
37673         (Makefile.am): Remove the GPERF definition.
37674
37675 2007-11-11  Bruno Haible  <bruno@clisp.org>
37676
37677         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
37678         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
37679
37680 2007-11-11  Bruno Haible  <bruno@clisp.org>
37681
37682         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
37683         (usage): Remove function.
37684
37685 2007-11-11  Bruno Haible  <bruno@clisp.org>
37686
37687         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
37688         gl_FUNC_CEILF_LIBS.
37689         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
37690         gl_FUNC_CEIL_LIBS.
37691         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
37692         gl_FUNC_CEILL_LIBS.
37693         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
37694         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
37695         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
37696
37697 2007-11-11  Bruno Haible  <bruno@clisp.org>
37698
37699         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
37700         roundf were declared but do not exist on functions.
37701         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
37702         roundl were declared but do not exist on functions.
37703         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
37704         HAVE_FLOORL_AND_CEILL, respectively.
37705         Needed for Sun C on Solaris 10.
37706
37707 2007-11-11  Bruno Haible  <bruno@clisp.org>
37708
37709         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
37710         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
37711         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
37712         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
37713         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
37714         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
37715         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
37716         HAVE_DECL_ROUNDF.
37717         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
37718         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
37719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
37720         of HAVE_DECL_ROUND*.
37721         * modules/math (Makefile.am): Update.
37722
37723 2007-11-10  Bruno Haible  <bruno@clisp.org>
37724
37725         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
37726         ptrdiff_t as m4/intl.m4.
37727
37728 2007-11-10  Jim Meyering  <meyering@redhat.com>
37729
37730         Avoid link failure for the argmatch test.
37731         * tests/test-argmatch.c (usage): Define function to avoid a link
37732         failure: argmatch_die requires a usage function.
37733
37734 2007-11-09  Bruno Haible  <bruno@clisp.org>
37735
37736         * doc/functions/snprintf.texi: Mention BeOS deficiency.
37737         * doc/functions/vsnprintf.texi: Likewise.
37738         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
37739         with a size argument < 2.
37740
37741 2007-11-09  Bruno Haible  <bruno@clisp.org>
37742
37743         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
37744         buffer. Fixes an inefficiency introduced on 2007-11-03.
37745
37746 2007-11-09  Bruno Haible  <bruno@clisp.org>
37747
37748         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
37749         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
37750
37751 2007-11-08  Jim Meyering  <meyering@redhat.com>
37752
37753         Change cache variable name prefix "jm_" to "gl_" everywhere.
37754         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
37755         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
37756         * m4/uptime.m4: s/gl_/jm_/
37757
37758 2007-11-07  Bruno Haible  <bruno@clisp.org>
37759
37760         Update to GNU gettext 0.17.
37761         * m4/intl.m4: Update to GNU gettext 0.17.
37762         * m4/po.m4: Likewise.
37763         * modules/gettext (Files): Remove m4/ulonglong.m4.
37764         (configure.ac): Require gettext infrastructure from version 0.17.
37765
37766 2007-11-06  Bruno Haible  <bruno@clisp.org>
37767
37768         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
37769         symbolic values are not defined in a public header.
37770         * lib/freadable.c (freadable) [QNX]: Likewise.
37771         * lib/freadahead.c (freadahead) [QNX]: Likewise.
37772         * lib/freading.c (freading) [QNX]: Likewise.
37773         * lib/fseterr.c (fseterr) [QNX]: Likewise.
37774         * lib/fwritable.c (fwritable) [QNX]: Likewise.
37775         * lib/fwriting.c (fwriting) [QNX]: Likewise.
37776         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
37777         Reported by Alain Magloire.
37778
37779         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
37780
37781 2007-11-05  Bruno Haible  <bruno@clisp.org>
37782
37783         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
37784         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
37785         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
37786         Reported by Eric Blake.
37787
37788 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37789             Bruno Haible  <bruno@clisp.org>
37790
37791         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
37792         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
37793         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
37794         (malloc): Undefine also before including <stdlib.h>.
37795         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
37796         Needed on OSF/1 4.0.
37797
37798 2007-11-05  Jim Meyering  <meyering@redhat.com>
37799
37800         git-version-gen: sync from coreutils.
37801         * build-aux/git-version-gen: Add comments.
37802         Change the first '-' to '.' in the snapshot version string,
37803         e.g., 6.9-377-08144 -> 6.9.377-08144
37804         Remove first parameter.
37805         Don't declare a version "-dirty" merely because a time
37806         stamp has changed.
37807
37808 2007-11-04  Bruno Haible  <bruno@clisp.org>
37809
37810         * lib/lock.h: Protect all macro definitions containing an 'if'
37811         statement through a "do { ... } while (0)".
37812         * lib/tls.h: Likewise.
37813
37814 2007-11-04  Bruno Haible  <bruno@clisp.org>
37815
37816         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
37817
37818 2007-11-04  Bruno Haible  <bruno@clisp.org>
37819
37820         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
37821         * modules/fprintf-posix (Depends-on): Add nocrash.
37822         * modules/snprintf-posix (Depends-on): Likewise.
37823         * modules/sprintf-posix (Depends-on): Likewise.
37824         * modules/vasnprintf-posix (Depends-on): Likewise.
37825         * modules/vasprintf-posix (Depends-on): Likewise.
37826         * modules/vfprintf-posix (Depends-on): Likewise.
37827         * modules/vsnprintf-posix (Depends-on): Likewise.
37828         * modules/vsprintf-posix (Depends-on): Likewise.
37829         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37830         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37831         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37832         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37833         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37834         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37835         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37836
37837 2007-11-04  Bruno Haible  <bruno@clisp.org>
37838
37839         * modules/nocrash: New file.
37840         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
37841         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
37842
37843 2007-11-04  Bruno Haible  <bruno@clisp.org>
37844
37845         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
37846         precision handling.
37847         * tests/test-vasprintf-posix.c (test_function): Likewise.
37848         * tests/test-snprintf-posix.h (test_function): Likewise.
37849         * tests/test-sprintf-posix.h (test_function): Likewise.
37850
37851         Fix *printf behaviour for large precisions on mingw and BeOS.
37852         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
37853         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
37854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
37855         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37856         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37857         gl_PRINTF_PRECISION and test its result. Invoke
37858         gl_PREREQ_VASNPRINTF_PRECISION.
37859         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37860         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37861         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37862         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37863         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37864         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37865         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37866         * doc/functions/fprintf.texi: Update.
37867         * doc/functions/printf.texi: Update.
37868         * doc/functions/snprintf.texi: Update.
37869         * doc/functions/sprintf.texi: Update.
37870         * doc/functions/vfprintf.texi: Update.
37871         * doc/functions/vprintf.texi: Update.
37872         * doc/functions/vsnprintf.texi: Update.
37873         * doc/functions/vsprintf.texi: Update.
37874
37875 2007-11-04  Bruno Haible  <bruno@clisp.org>
37876
37877         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
37878
37879 2007-11-04  Bruno Haible  <bruno@clisp.org>
37880
37881         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
37882         Reported by Sylvain Beucler <beuc@gnu.org>.
37883
37884 2007-11-03  Bruno Haible  <bruno@clisp.org>
37885
37886         * tests/test-fprintf-posix2.sh: New file.
37887         * tests/test-fprintf-posix2.c: New file.
37888         * modules/fprintf-posix-tests (Files): Add them.
37889         (TESTS): Add test-fprintf-posix2.sh.
37890         (configure.ac): Check for getrlimit and setrlimit.
37891         (check_PROGRAMS): Add test-fprintf-posix2.
37892
37893         * tests/test-printf-posix2.sh: New file.
37894         * tests/test-printf-posix2.c: New file.
37895         * modules/printf-posix-tests (Files): Add them.
37896         (TESTS): Add test-printf-posix2.sh.
37897         (configure.ac): Check for getrlimit and setrlimit.
37898         (check_PROGRAMS): Add test-printf-posix2.
37899
37900         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
37901         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
37902         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
37903         (decode_double): New function, copied from decode_long_double.
37904         (scale10_round_decimal_decoded): New function, extracted from
37905         scale10_round_decimal_long_double.
37906         (scale10_round_decimal_long_double): Use it.
37907         (scale10_round_decimal_double): New function.
37908         (floorlog10): New function.
37909         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
37910         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
37911         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37912         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37913         gl_PRINTF_ENOMEM and test its result. Invoke
37914         gl_PREREQ_VASNPRINTF_ENOMEM.
37915         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37916         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37917         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37918         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37919         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37920         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37921         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37922         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
37923         * modules/snprintf-posix (Depends-on): Likewise.
37924         * modules/sprintf-posix (Depends-on): Likewise.
37925         * modules/vasnprintf-posix (Depends-on): Likewise.
37926         * modules/vasprintf-posix (Depends-on): Likewise.
37927         * modules/vfprintf-posix (Depends-on): Likewise.
37928         * modules/vsnprintf-posix (Depends-on): Likewise.
37929         * modules/vsprintf-posix (Depends-on): Likewise.
37930         * doc/functions/fprintf.texi: Update.
37931         * doc/functions/printf.texi: Update.
37932         * doc/functions/snprintf.texi: Update.
37933         * doc/functions/sprintf.texi: Update.
37934         * doc/functions/vfprintf.texi: Update.
37935         * doc/functions/vprintf.texi: Update.
37936         * doc/functions/vsnprintf.texi: Update.
37937         * doc/functions/vsprintf.texi: Update.
37938
37939 2007-11-03  Bruno Haible  <bruno@clisp.org>
37940
37941         * modules/frexp-nolibm-tests: New file.
37942
37943         * modules/frexp-nolibm: New file.
37944         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
37945
37946 2007-11-03  Bruno Haible  <bruno@clisp.org>
37947
37948         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
37949         value is C99 compliant.
37950         Needed for OSF/1 5.1.
37951
37952 2007-11-03  Bruno Haible  <bruno@clisp.org>
37953
37954         Fix out-of-memory handling of vasnprintf.
37955         * lib/printf-parse.c: Include <errno.h>.
37956         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
37957         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
37958         is already set.
37959
37960 2007-11-02  Eric Blake  <ebb9@byu.net>
37961
37962         Fix tests on cygwin.
37963         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
37964
37965 2007-11-01  Bruno Haible  <bruno@clisp.org>
37966
37967         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
37968         warning.
37969         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
37970         needed for POSIX compatibility.
37971
37972 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37973
37974         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
37975         for compatibility with GNU.
37976
37977 2007-11-01  Bruno Haible  <bruno@clisp.org>
37978
37979         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
37980         (putenv): Renamed from rpl_putenv. Change argument type from
37981         'const char *' to 'char *'.
37982         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
37983         of defining putenv in config.h, just set REPLACE_PUTENV.
37984         * modules/putenv (Depends-on): Add stdlib.
37985         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37986         (Include): Use <stdlib.h>.
37987         * lib/stdlib.in.h (putenv): New declaration.
37988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
37989         REPLACE_PUTENV.
37990         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
37991         REPLACE_PUTENV.
37992         Needed for MacOS X 10.5.0.
37993         Reported by Peter O'Gorman <peter@pogma.com>.
37994
37995 2007-11-01  Jim Meyering  <meyering@redhat.com>
37996
37997         Treat an empty date string exactly like "0".
37998         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
37999         if the remaining date string (to be parsed) is empty, use "0".
38000         Reported by Mischa Molhoek and discussed in this thread:
38001         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
38002
38003 2007-10-31  Bruno Haible  <bruno@clisp.org>
38004
38005         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
38006         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
38007         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
38008         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
38009         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
38010         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
38011
38012 2007-10-31  Bruno Haible  <bruno@clisp.org>
38013
38014         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
38015         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
38016         (AC_TYPE_LONG_LONG_INT): Use it.
38017         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
38018         it as well.
38019         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
38020         to m4/longlong.m4.
38021         * modules/stdint (Files): Remove m4/ulonglong.m4.
38022         * modules/strtoull (Files): Use m4/longlong.m4 instead of
38023         m4/ulonglong.m4.
38024         * modules/strtoumax (Files): Likewise.
38025
38026 2007-10-30  Bruno Haible  <bruno@clisp.org>
38027
38028         * modules/xvasprintf-posix: New file.
38029         Suggested by Eric Blake.
38030
38031 2007-10-30  Bruno Haible  <bruno@clisp.org>
38032
38033         * modules/xprintf-posix-tests: New file.
38034         * tests/test-xprintf-posix.sh: New file.
38035         * tests/test-xprintf-posix.c: New file.
38036         * tests/test-xfprintf-posix.c: New file.
38037
38038         * modules/xprintf-posix: New file.
38039
38040 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38041
38042         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
38043         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
38044         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
38045
38046 2007-10-29  Bruno Haible  <bruno@clisp.org>
38047
38048         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
38049         contain the special marker '_cv_'.
38050         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
38051         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
38052         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
38053         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
38054         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
38055         Reported by Ralf Wildenhues.
38056
38057 2007-10-29  Bruno Haible  <bruno@clisp.org>
38058
38059         * gnulib-tool (func_import): When --lgpl is not specified, set
38060         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
38061         GPLv3.
38062         Reported by Simon Josefsson.
38063
38064 2007-10-28  Bruno Haible  <bruno@clisp.org>
38065
38066         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
38067         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
38068         HAVE_DECL_ISFINITE.
38069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
38070         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
38071         HAVE_DECL_ISFINITE.
38072
38073 2007-10-28  Bruno Haible  <bruno@clisp.org>
38074
38075         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
38076         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
38077
38078 2007-10-28  Bruno Haible  <bruno@clisp.org>
38079
38080         Fix link errors with Sun C 5.0 on Solaris 10.
38081         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
38082         function is declared but not present in the compiler's libm.
38083         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
38084         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
38085         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
38086         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
38087         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
38088         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
38089         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
38090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
38091         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
38092         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
38093         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
38094         HAVE_DECL_FLOORL.
38095
38096 2007-10-28  Bruno Haible  <bruno@clisp.org>
38097
38098         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
38099         gl_FUNC_FLOORL. Cache the result.
38100         (gl_FUNC_FLOORL): Use it.
38101         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
38102         gl_FUNC_CEILL. Cache the result.
38103         (gl_FUNC_CEILL): Use it.
38104
38105         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
38106         gl_FUNC_FLOOR. Cache the result.
38107         (gl_FUNC_FLOOR): Use it.
38108         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
38109         gl_FUNC_CEIL. Cache the result.
38110         (gl_FUNC_CEIL): Use it.
38111
38112         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
38113         gl_FUNC_FLOORF. Cache the result.
38114         (gl_FUNC_FLOORF): Use it.
38115         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
38116         gl_FUNC_CEILF. Cache the result.
38117         (gl_FUNC_CEILF): Use it.
38118
38119 2007-10-28  Bruno Haible  <bruno@clisp.org>
38120
38121         * gnulib-tool: Allow specifying the LGPL version number through
38122         --lgpl=2 or --lgpl=3.
38123         (func_usage): Document --lgpl with argument.
38124         Handle --lgpl=... arguments.
38125         (func_import): Recognize also gl_LGPL calls with an argument. When
38126         --lgpl=2 is used and the module's license is just LGPL, report an
38127         error. Set sed_transform_lib_file according to the lgpl variable. In
38128         the generated files, use --lgpl or gl_LGPL invocations with argument,
38129         if necessary.
38130         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
38131         an LGPv2+ license.
38132         * doc/gnulib-tool.texi (Modified imports): Update explanation of
38133         gl_LGPL macro.
38134
38135 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38136             Bruno Haible  <bruno@clisp.org>
38137
38138         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
38139         (u16_uctomb_aux): Likewise.
38140         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
38141         !HAVE_INLINE.
38142         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
38143
38144 2007-10-28  Bruno Haible  <bruno@clisp.org>
38145
38146         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
38147         Invoke AM_GETTEXT_OPTION if it exists.
38148         * modules/vasprintf: Likewise.
38149         * modules/verror: Likewise.
38150         * modules/xprintf: Likewise.
38151         * modules/xvasprintf: Likewise.
38152
38153 2007-10-27  Ben Pfaff  <blp@gnu.org>
38154
38155         * lib/math.in.h: Define isfinite macro and prototypes for
38156         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
38157         implementations.
38158         * m4/math_h.m4: New substitutions for isfinite module.
38159         * lib/isfinite.c: New file.
38160         * m4/isfinite.m4: New file.
38161         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
38162         * modules/isfinite: New file.
38163         * modules/isfinite-tests: New file.
38164         * tests/tests-isfinite.c: New file.
38165         * doc/functions/isfinite.texi: Mention isfinite module.
38166         * MODULES.html.sh: Mention new module.
38167
38168 2007-10-27  Ben Pfaff  <blp@gnu.org>
38169
38170         Ralf Wildenhues reported that Tru64 4.0D declares the round
38171         functions but does not have definitions.
38172         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
38173         cannot be found in any library, set the output variable to
38174         "missing" instead of "".
38175         * m4/round.m4: Also use our substitute if we cannot find round in
38176         any library, even if it is declared.
38177         * m4/roundf.m4: Likewise for roundf.
38178         * m4/roundl.m4: Likewise for roundl.
38179         * lib/math.in.h: Undefine roundf, round, roundl before defining
38180         their replacements, to allow for hypothetical systems where these
38181         may be defined as macros but not available in libraries.
38182
38183 2007-10-27  Bruno Haible  <bruno@clisp.org>
38184
38185         * doc/gnulib.texi: Invoke @firstparagraphindent.
38186         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
38187         changes in gnulib.
38188         (Source changes): New section.
38189
38190 2007-10-26  Bruno Haible  <bruno@clisp.org>
38191
38192         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
38193         borrowed from autoconf.
38194
38195 2007-10-26  Bruno Haible  <bruno@clisp.org>
38196
38197         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
38198         strerror returned the empty string. Needed on HP-UX 11.00.
38199
38200 2007-10-24  Micah Cowan  <micah@cowan.name>
38201
38202         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
38203         * build-aux/bootstrap: Remove support for now-unnecessary option,
38204         --cvs-user, and envvars CVS_USER, CVS_RSH.
38205
38206 2007-10-24  Jim Meyering  <meyering@redhat.com>
38207
38208         Avoid diagnostics from sha1sum when there is no cached checksum.
38209         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
38210         if the po.s1 file hasn't been created yet.
38211
38212         * build-aux/bootstrap: Sync from coreutils:
38213         2007-10-24  Jim Meyering  <meyering@redhat.com>
38214         Get gnulib from the git repository, not from an obsolete cvs one.
38215         * build-aux/bootstrap: Suggestion from Micah Cowan.
38216         2007-10-04  Jim Meyering  <jim@meyering.net>
38217         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
38218         (update_po_files): Work also when there are no .po files in po/.
38219
38220 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38221
38222         * README: Append ".git" to git and cg examples.
38223         Problem reported by Benoit Sigoure.
38224
38225 2007-10-23  Micah Cowan  <micah@cowan.name>
38226
38227         * users.txt: Add wget.
38228
38229 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38230
38231         Fix linking of some unistdio tests on FreeBSD.
38232         * modules/unistdio/u16-vsnprintf-tests
38233         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
38234         * modules/unistdio/u16-vsprintf-tests
38235         (test_u16_vsnprintf1_LDADD): Likewise.
38236         * modules/unistdio/u32-vsnprintf-tests
38237         (test_u32_vsnprintf1_LDADD): Likewise.
38238         * modules/unistdio/u32-vsprintf-tests
38239         (test_u32_vsprintf1_LDADD): Likewise.
38240         * modules/unistdio/u8-vsnprintf-tests
38241         (test_u8_vsnprintf1_LDADD): Likewise.
38242         * modules/unistdio/u8-vsprintf-tests
38243         (test_u8_vsprintf1_LDADD): Likewise.
38244         * modules/unistdio/ulc-vsnprintf-tests
38245         (test_ulc_vsnprintf1_LDADD): Likewise.
38246         * modules/unistdio/ulc-vsprintf-tests
38247         (test_ulc_vsprintf1_LDADD): Likewise.
38248
38249         Fix linking of some uniconv tests on FreeBSD.
38250         * modules/uniconv/u16-conv-from-enc-tests
38251         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
38252         * modules/uniconv/u16-conv-to-enc-tests
38253         (test_u16_conv_to_enc_LDADD): Likewise.
38254         * modules/uniconv/u16-strconv-from-enc-tests
38255         (test_u16_strconv_from_enc_LDADD): Likewise.
38256         * modules/uniconv/u16-strconv-to-enc-tests
38257         (test_u16_strconv_to_enc_LDADD): Likewise.
38258         * modules/uniconv/u32-conv-from-enc-tests
38259         (test_u32_conv_from_enc_LDADD): Likewise.
38260         * modules/uniconv/u32-conv-to-enc-tests
38261         (test_u32_conv_to_enc_LDADD): Likewise.
38262         * modules/uniconv/u32-strconv-from-enc-tests
38263         (test_u32_strconv_from_enc_LDADD): Likewise.
38264         * modules/uniconv/u32-strconv-to-enc-tests
38265         (test_u32_strconv_to_enc_LDADD): Likewise.
38266         * modules/uniconv/u8-conv-from-enc-tests
38267         (test_u8_conv_from_enc_LDADD): Likewise.
38268         * modules/uniconv/u8-conv-to-enc-tests
38269         (test_u8_conv_to_enc_LDADD): Likewise.
38270         * modules/uniconv/u8-strconv-from-enc-tests
38271         (test_u8_strconv_from_enc_LDADD): Likewise.
38272         * modules/uniconv/u8-strconv-to-enc-tests
38273         (test_u8_strconv_to_enc_LDADD): Likewise.
38274
38275 2007-10-22  Bruno Haible  <bruno@clisp.org>
38276
38277         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
38278         size.
38279
38280 2007-10-22  Eric Blake  <ebb9@byu.net>
38281
38282         Tweak x*printf documentation.
38283         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
38284         variable name and comments.
38285         Suggested by Bruno Haible.
38286
38287 2007-10-22  Bruno Haible  <bruno@clisp.org>
38288
38289         * lib/acl.c (copy_acl): Fix file name in comment.
38290
38291 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
38292
38293         Fix Tru64 problem with stdbool.h.
38294         * lib/stdbool.in.h (false, true):
38295         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
38296         Don't declare as an enum in this situation; it runs afoul of Tru64.
38297         Problem reported by Steven M. Schweda in
38298         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
38299
38300 2007-10-22  Eric Blake  <ebb9@byu.net>
38301
38302         Also wrap vf?printf.
38303         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
38304         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
38305         (xvprintf, xvfprintf): New functions.
38306
38307 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38308
38309         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
38310         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
38311
38312         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
38313         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
38314
38315 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
38316
38317         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
38318         by Bruno Haible.
38319
38320 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38321
38322         * lib/getloadavg.c
38323         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
38324         Undef `sys' after including sys/table.h, for Tru64 4.0D.
38325
38326         * tests/test-i-ring.c: Work for C89.
38327
38328 2007-10-22  Bruno Haible  <bruno@clisp.org>
38329
38330         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
38331         -1u, in preprocessor expression, so that we don't test for the bug
38332         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
38333         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
38334
38335 2007-10-22  Eric Blake  <ebb9@byu.net>
38336
38337         * tests/test-yesno.sh: Silence stderr during test.
38338
38339 2007-10-22  Simon Josefsson  <simon@josefsson.org>
38340
38341         * modules/crypto/gc-camellia: New file.
38342
38343         * m4/gc-camellia.m4: New file.
38344
38345         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
38346
38347         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
38348
38349 2007-10-22  Simon Josefsson  <simon@josefsson.org>
38350
38351         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
38352         --help to stdout.  Reported by sms@antinode.org (Steven
38353         M. Schweda).
38354
38355 2007-10-22  Simon Josefsson  <simon@josefsson.org>
38356
38357         * users.txt: Fix link to libksba.
38358
38359 2007-10-21  Ben Pfaff  <blp@gnu.org>
38360
38361         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
38362         round.c roundf implementation that depends on floorf and ceilf to
38363         be tested unconditionally.
38364
38365 2007-10-21  Ben Pfaff  <blp@gnu.org>
38366
38367         * m4/check-libm-func.m4: Removed.
38368         * m4/check-math-lib.m4: New file.
38369         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
38370         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
38371         definition and lack of AC_LIBOBJ([roundf]).
38372         * m4/roundl.m4: Ditto, and similarly for roundl.
38373         * modules/round: Reference new m4 file.
38374         * modules/roundf: Ditto.
38375         * modules/roundl: Ditto.
38376         * tests/test-round2.c (main): Use ROUND instead of round.
38377         Bug report from Bruno Haible.
38378
38379 2007-10-21  Bruno Haible  <bruno@clisp.org>
38380
38381         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
38382         context.
38383
38384 2007-10-21  Bruno Haible  <bruno@clisp.org>
38385
38386         * tests/test-wcwidth.c (main): Allow negative result for some control
38387         characters.
38388
38389         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
38390         Needed on OSF/1 5.1.
38391
38392 2007-10-21  Bruno Haible  <bruno@clisp.org>
38393
38394         * tests/test-floorf1.c: Include isnanf.h.
38395         (main): Use isnanf() instead of isnan().
38396         * tests/test-ceilf1.c: Include isnanf.h.
38397         (main): Use isnanf() instead of isnan().
38398         * tests/test-truncf1.c: Include isnanf.h.
38399         (main): Use isnanf() instead of isnan().
38400         * tests/test-roundf1.c: Include isnanf.h.
38401         (main): Use isnanf() instead of isnan().
38402
38403 2007-10-21  Eric Blake  <ebb9@byu.net>
38404
38405         * users.txt: Update URL for m4.
38406
38407 2007-10-21  Bruno Haible  <bruno@clisp.org>
38408
38409         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
38410
38411 2007-10-21  Bruno Haible  <bruno@clisp.org>
38412
38413         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
38414         Git's management files if the CVS files are not present.
38415
38416 2007-10-20  Bruno Haible  <bruno@clisp.org>
38417
38418         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
38419         gcc-3.4.x.
38420
38421 2007-10-20  Ben Pfaff  <blp@gnu.org>
38422
38423         * lib/math.in.h: Declare round, roundf, roundl if we are providing
38424         implementations.
38425         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
38426         * lib/round.c: New file.
38427         * lib/roundf.c: New file.
38428         * lib/roundl.c: New file.
38429         * m4/round.m4: New file.
38430         * m4/roundf.m4: New file.
38431         * m4/roundl.m4: New file.
38432         * m4/check-libm-func-m4: New file.
38433         * modules/math: Replace round, roundf, roundl related @VARS@ in
38434         math.in.h.
38435         * modules/round: New file.
38436         * modules/round-tests: New file.
38437         * modules/roundf: New file.
38438         * modules/roundf-tests: New file.
38439         * modules/roundl: New file.
38440         * modules/roundl-tests: New file.
38441         * tests/test-round1.c: New file.
38442         * tests/test-round2.c: New file.
38443         * tests/test-roundf1.c: New file.
38444         * tests/test-roundf2.c: New file.
38445         * tests/test-roundl.c: New file.
38446         * doc/functions/round.texi: Mention round module.
38447         * doc/functions/roundf.texi: Mention roundf module.
38448         * doc/functions/roundl.texi: Mention roundl module.
38449         * MODULES.html.sh: Mention new modules.
38450         Thanks to Bruno Haible for suggestions.
38451
38452 2007-10-20  Jim Meyering  <meyering@redhat.com>
38453
38454         * lib/xprintf.c: Include <config.h> unconditionally.
38455
38456         Change xprintf's license to GPL.
38457         * modules/xprintf (License): s/LGPL/GPL/, since this module
38458         depends on modules (exit and exitfail) which are GPL.
38459         Suggestion from Bruno Haible.
38460
38461         xprintf fixes.
38462         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
38463         Use a clearer diagnostic.
38464         Patch from Bruno Haible.
38465
38466 2007-10-20  Bruno Haible  <bruno@clisp.org>
38467
38468         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
38469         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
38470         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38471
38472 2007-10-20  Bruno Haible  <bruno@clisp.org>
38473
38474         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
38475         precision in the comparison result > x - 1 or similar.
38476         * tests/test-ceilf2.c (correct_result_p): Likewise.
38477         * tests/test-truncf2.c (correct_result_p): Likewise.
38478         * tests/test-trunc2.c (correct_result_p): Likewise.
38479         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38480
38481 2007-10-20  Bruno Haible  <bruno@clisp.org>
38482
38483         * modules/ceil: New file.
38484         * m4/ceil.m4: New file.
38485         * doc/functions/ceil.texi: Mention the 'ceil' module.
38486
38487 2007-10-20  Bruno Haible  <bruno@clisp.org>
38488
38489         * modules/floor: New file.
38490         * m4/floor.m4: New file.
38491         * doc/functions/floor.texi: Mention the 'floor' module.
38492
38493 2007-10-20  Bruno Haible  <bruno@clisp.org>
38494
38495         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
38496         of %a.
38497         * modules/floorf-tests (Depends-on): Likewise.
38498         * modules/truncf-tests (Depends-on): Likewise.
38499         * modules/trunc-tests (Depends-on): Likewise.
38500         Reported by Ben Pfaff.
38501
38502 2007-10-19  Jim Meyering  <meyering@redhat.com>
38503
38504         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
38505         Don't bother testing specific errno values.  Just test ferror.
38506
38507         New module: xprintf
38508         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
38509
38510 2007-10-19  Bruno Haible  <bruno@clisp.org>
38511
38512         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
38513         syntax.
38514         * modules/javaexec (Makefile.am): Likewise.
38515         * modules/relocatable-prog (Makefile.am): Likewise.
38516         Suggested by Jim Meyering.
38517
38518 2007-10-18  Bruno Haible  <bruno@clisp.org>
38519
38520         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
38521         Reported by Jim Meyering.
38522
38523 2007-10-18  Eric Blake  <ebb9@byu.net>
38524
38525         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
38526
38527 2007-10-18  Bruno Haible  <bruno@clisp.org>
38528
38529         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
38530         the format string into writable memory. Needed in Fortify conditions.
38531
38532 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
38533             Bruno Haible  <bruno@clisp.org>
38534
38535         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
38536         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
38537         * modules/trim (Depends-on): Add mbchar.
38538         (configure.ac): Add gl_FUNC_MBRTOWC.
38539         (Makefile.am): Augment lib_SOURCES.
38540
38541 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
38542
38543         Modify glob.c to use fstatat and dirfd, to simplify it.
38544         Suggested by Eric Blake.
38545         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
38546         Don't include <stdbool.h>; not used.
38547         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
38548         (link_exists_p): Simplify implementation, since we can now assume
38549         dirfd and fstatat.
38550         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
38551
38552 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38553
38554         * gnulib-tool (func_get_dependencies): Fix sed script to
38555         match only tests.
38556
38557 2007-10-17  Bruno Haible  <bruno@clisp.org>
38558
38559         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
38560         allow locale names without encoding suffix.
38561         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
38562         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38563
38564 2007-10-16  Bruno Haible  <bruno@clisp.org>
38565
38566         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
38567         * lib/getgroups.c (getgroups): Likewise.
38568         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
38569
38570 2007-10-16  Bruno Haible  <bruno@clisp.org>
38571
38572         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
38573         * modules/malloc-posix (License): Likewise.
38574         * modules/realloc-posix (License): Likewise.
38575         * modules/calloc-posix (License): Likewise.
38576         * modules/intprops (License): Change from GPL to LGPL, with
38577         Paul Eggert's approval.
38578
38579 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38580
38581         Merge glibc changes into lib/glob.c.
38582
38583         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
38584         2007-10-15 04:59:03 UTC.  Here are the changes:
38585
38586         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
38587
38588         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
38589
38590         * lib/glob.c: Add some branch prediction throughout.
38591
38592         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
38593
38594         [BZ #5103]
38595         * lib/glob.c (glob): Recognize patterns starting \/.
38596
38597         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
38598
38599         [BZ #3996]
38600         * lib/glob.c (attribute_hidden): Define if not defined.
38601         (glob): Unescape dirname, filename or username when needed and not
38602         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
38603         is NULL.  Handle unescaped [ in pattern without closing ].
38604         Don't pass GLOB_CHECK down to recursive glob for directories.
38605         (__glob_pattern_type): New function.
38606         (__glob_pattern_p): Implement using __glob_pattern_type.
38607         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
38608         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
38609         Remove unreachable code.
38610
38611         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
38612
38613         * lib/glob.c (glob_in_dir): Add some comments and asserts to
38614         explain why there are no leaks.
38615
38616         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
38617
38618         [BZ #3253]
38619         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
38620         time, rather allocate increasingly bigger arrays of pointers, if
38621         possible with alloca, if too large with malloc.
38622
38623 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38624
38625         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
38626         Problem reported by H.Merijn Brand in
38627         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
38628         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
38629         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
38630
38631 2007-10-15  Bruno Haible  <bruno@clisp.org>
38632
38633         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
38634         with explicit rpl_ prefix.
38635         * lib/fopen.c (fopen): Likewise.
38636         * lib/freopen.c (freopen): Likewise.
38637         * lib/iconv.c (iconv): Likewise.
38638         * lib/iconv_close.c (iconv_close): Likewise.
38639
38640 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38641
38642         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
38643
38644 2007-10-15  Bruno Haible  <bruno@clisp.org>
38645
38646         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
38647         <stddef.h> instead of <stdlib.h> since we only need NULL.
38648         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38649
38650 2007-10-15  Bruno Haible  <bruno@clisp.org>
38651
38652         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
38653         Replace paragraph talking about LIBOBJS.
38654         Reported by Colin Watson <cjwatson@debian.org>.
38655
38656 2007-10-15  Bruno Haible  <bruno@clisp.org>
38657
38658         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
38659         <stdlib.h> before using NULL.
38660
38661 2007-10-15  Simon Josefsson  <simon@josefsson.org>
38662
38663         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
38664         Reported by Albert Chin <china@thewrittenword.com>.
38665
38666 2007-10-14  Bruno Haible  <bruno@clisp.org>
38667
38668         * modules/iconv_open-utf-tests: New file.
38669         * tests/test-iconv-utf.c: New file.
38670
38671         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
38672         * modules/iconv_open-utf: New file.
38673         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
38674         (iconv, iconv_close): New declarations.
38675         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
38676         be defined.
38677         (iconv_open): Add special handling of conversion between UTF-8 and
38678         UTF-{16,32}{BE,LE}.
38679         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
38680         * lib/iconv_close.c: New file.
38681         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
38682         gl_FUNC_ICONV_OPEN.
38683         (gl_FUNC_ICONV_OPEN): Use it.
38684         (gl_FUNC_ICONV_OPEN_UTF): New macro.
38685         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
38686         and REPLACE_ICONV_UTF.
38687         * modules/iconv_open (Depends-on): Add c-strcase.
38688         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
38689         ICONV_CONST.
38690         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
38691
38692 2007-10-13  Albert Chin  <china@thewrittenword.com>
38693             Bruno Haible  <bruno@clisp.org>
38694
38695         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
38696         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
38697
38698 2007-10-13  Bruno Haible  <bruno@clisp.org>
38699
38700         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
38701         defined, use the ISO C99 inline semantics.
38702         * lib/argp.h (ARGP_EI): Likewise.
38703
38704 2007-10-13  Bruno Haible  <bruno@clisp.org>
38705
38706         Handle 'inline' change in gcc 4.3.0.
38707         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
38708         argp_fmtstream_write, argp_fmtstream_set_lmargin,
38709         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
38710         argp_fmtstream_point): Disable 'extern' declaration if the function
38711         definition is going to be provided inline.
38712         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
38713         semantics, not the ISO C99 inline semantics.
38714         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
38715         'extern' declaration if the function definition is going to be provided
38716         inline.
38717         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
38718         the GNU C inline semantics, not the ISO C99 inline semantics. With
38719         GCC 4.2, avoid a warning.
38720
38721 2007-10-13  Bruno Haible  <bruno@clisp.org>
38722
38723         * lib/freading.h (freading): Enable the use of __freading for
38724         glibc >= 2.7.
38725         * lib/freading.c (freading): Likewise.
38726
38727 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38728
38729         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
38730         "warning: C99 inline functions are not supported; using GNU89".
38731
38732 2007-10-12  Bruno Haible  <bruno@clisp.org>
38733
38734         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
38735         of 2.
38736         * tests/test-ceilf2.c: New file.
38737         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
38738
38739         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
38740         * modules/ceilf-tests: Update.
38741
38742 2007-10-12  Bruno Haible  <bruno@clisp.org>
38743
38744         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
38745         of 2.
38746         * tests/test-floorf2.c: New file.
38747         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
38748
38749         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
38750         * modules/floorf-tests: Update.
38751
38752 2007-10-12  Bruno Haible  <bruno@clisp.org>
38753
38754         * tests/test-trunc2.c: New file.
38755         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
38756
38757         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
38758         * modules/trunc-tests: Update.
38759
38760 2007-10-12  Bruno Haible  <bruno@clisp.org>
38761
38762         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
38763         of 2.
38764         * tests/test-truncf2.c: New file.
38765         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
38766
38767         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
38768         * modules/truncf-tests: Update.
38769
38770 2007-10-11  Eric Blake  <ebb9@byu.net>
38771
38772         Don't claim strerror is broken on Interix.
38773         * doc/functions/strerror.texi (strerror): Known broken systems are
38774         now Solaris 8, and not Interix.
38775         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
38776         Interix on cross-compile.
38777         Reported by Martin Koeppe in
38778         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
38779
38780 2007-10-11  Bruno Haible  <bruno@clisp.org>
38781
38782         * modules/i-ring-tests: New file.
38783         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
38784         instead of assert.
38785
38786 2007-10-11  Bruno Haible  <bruno@clisp.org>
38787
38788         * modules/filenamecat-tests: New file.
38789         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
38790         * lib/filenamecat.c: Remove test code.
38791
38792 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38793
38794         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
38795
38796         * lib/strerror.c: Include <string.h> always, to test interface,
38797         and to remove the need for the dummy.
38798         Include intprops.h to compute width instead of doing it ourselves
38799         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
38800         (strerror): Define it to return NULL if there's no system strerror.
38801         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
38802         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
38803         ancient pre-strerror Unix systems well any more.  Saying "unknown
38804         system error" is enough.
38805         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
38806         simpler strerror.c implementation.
38807         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
38808         Simplify the tests to reflect the simpler strerror implementation.
38809         * modules/strerror (Depends-on): Add intprops.
38810
38811 2007-10-09  Eric Blake  <ebb9@byu.net>
38812
38813         Silence test-fpending.
38814         * modules/fpending-tests (Files): Add wrapper script.
38815         * tests/test-fpending.sh: New file.
38816
38817 2007-10-09  Bruno Haible  <bruno@clisp.org>
38818
38819         * MODULES.html.sh (func_module): Don't create a hyperlink for
38820         function names like 'printf_frexp'.
38821         (Misc): Add crc, memxor.
38822         (Characteristics of floating types): New section.
38823         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
38824         isnanf-nolibm, signbit, trunc, truncf, truncl.
38825         (Enhancements for ISO C 99 functions): New subsection Input/output.
38826         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
38827         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
38828         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
38829         (Compatibility checks for POSIX:2001 functions): Add clock-time.
38830         (Enhancements for POSIX:2001 functions): Add chdir-long.
38831         (File system functions): Add areadlink, chdir-safer, read-file.
38832         Remove cycle-check.
38833         (File system as inode set): New section.
38834         (Date and time): Add gethrxtime.
38835         (Multithreading): Add openmp.
38836         (Internationalization functions): Add localename.
38837         (Unicode string functions): Add unistr/u*-mbsnlen.
38838         (Support for maintaining and releasing projects): Add git-version-gen.
38839         (Lone files): Remove directories.
38840
38841 2007-10-08  Ben Pfaff  <blp@gnu.org>
38842
38843         * lib/xmalloca.h: Fix typo in comment.
38844
38845 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38846
38847         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
38848         when avoiding problems with integer overflow.  Use a portable test
38849         instead.
38850
38851 2007-10-08  Simon Josefsson  <simon@josefsson.org>
38852
38853         * modules/dummy (License): Change to LGPLv2+.
38854         * modules/float (License): Likewise
38855         * modules/realloc (License): Likewise
38856         * modules/stdlib (License): Likewise
38857
38858 2007-10-07  Bruno Haible  <bruno@clisp.org>
38859
38860         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
38861         * floor.c (TWO_MANT_DIG): Likewise.
38862         * ceil.c (TWO_MANT_DIG): Likewise.
38863         Reported by Ben Pfaff.
38864
38865 2007-10-07  Bruno Haible  <bruno@clisp.org>
38866
38867         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
38868         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
38869         * lib/frexp.c (FUNC): Likewise.
38870         * lib/printf-frexp.h (printf_frexp): Likewise.
38871         * lib/printf-frexpl.h (printf_frexpl): Likewise.
38872         * lib/printf-frexp.c (FUNC): Likewise.
38873         Suggested by Jim Meyering.
38874
38875 2007-10-07  Jim Meyering  <meyering@redhat.com>
38876
38877         Make xnanosleep's integer overflow test more robust.
38878         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
38879         so that gcc-4.3.0 doesn't optimize away this test for overflow.
38880
38881 2007-10-07  Bruno Haible  <bruno@clisp.org>
38882
38883         * NEWS: Mention the license change.
38884
38885         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
38886         abbreviations in the modules files.
38887
38888         Change copyright notice from GPLv2+ to GPLv3+.
38889         * README: Change copyright notice.
38890         * MODULES.html.sh: Likewise.
38891         * build-aux/bootstrap.conf: Likewise.
38892         * build-aux/config.libpath: Likewise.
38893         * build-aux/csharpcomp.sh.in: Likewise.
38894         * build-aux/csharpexec.sh.in: Likewise.
38895         * build-aux/install-reloc: Likewise.
38896         * build-aux/javacomp.sh.in: Likewise.
38897         * build-aux/javaexec.sh.in: Likewise.
38898         * build-aux/ldd.sh.in: Likewise.
38899         * build-aux/reloc-ldflags: Likewise.
38900         * build-aux/relocatable.sh.in: Likewise.
38901         * build-aux/x-to-1.in: Likewise.
38902         * check-module: Likewise.
38903         * config/srclistvars.sh: Likewise.
38904         * gnulib-tool: Likewise.
38905         * lib/acl-internal.h: Likewise.
38906         * lib/acl.c: Likewise.
38907         * lib/acl.h: Likewise.
38908         * lib/acl_entries.c: Likewise.
38909         * lib/areadlink-with-size.c: Likewise.
38910         * lib/areadlink.c: Likewise.
38911         * lib/areadlink.h: Likewise.
38912         * lib/argmatch.c: Likewise.
38913         * lib/argmatch.h: Likewise.
38914         * lib/argp-ba.c: Likewise.
38915         * lib/argp-eexst.c: Likewise.
38916         * lib/argp-fmtstream.c: Likewise.
38917         * lib/argp-fmtstream.h: Likewise.
38918         * lib/argp-fs-xinl.c: Likewise.
38919         * lib/argp-help.c: Likewise.
38920         * lib/argp-namefrob.h: Likewise.
38921         * lib/argp-parse.c: Likewise.
38922         * lib/argp-pin.c: Likewise.
38923         * lib/argp-pv.c: Likewise.
38924         * lib/argp-pvh.c: Likewise.
38925         * lib/argp-xinl.c: Likewise.
38926         * lib/argp.h: Likewise.
38927         * lib/at-func.c: Likewise.
38928         * lib/atanl.c: Likewise.
38929         * lib/backupfile.c: Likewise.
38930         * lib/backupfile.h: Likewise.
38931         * lib/basename.c: Likewise.
38932         * lib/binary-io.h: Likewise.
38933         * lib/byteswap.in.h: Likewise.
38934         * lib/c-stack.c: Likewise.
38935         * lib/c-stack.h: Likewise.
38936         * lib/c-strcasestr.c: Likewise.
38937         * lib/c-strcasestr.h: Likewise.
38938         * lib/c-strstr.c: Likewise.
38939         * lib/c-strstr.h: Likewise.
38940         * lib/c-strtod.c: Likewise.
38941         * lib/calloc.c: Likewise.
38942         * lib/canon-host.c: Likewise.
38943         * lib/canon-host.h: Likewise.
38944         * lib/canonicalize-lgpl.c: Likewise.
38945         * lib/canonicalize.c: Likewise.
38946         * lib/canonicalize.h: Likewise.
38947         * lib/ceil.c: Likewise.
38948         * lib/ceilf.c: Likewise.
38949         * lib/ceill.c: Likewise.
38950         * lib/chdir-long.c: Likewise.
38951         * lib/chdir-long.h: Likewise.
38952         * lib/chdir-safer.c: Likewise.
38953         * lib/chdir-safer.h: Likewise.
38954         * lib/chown.c: Likewise.
38955         * lib/classpath.c: Likewise.
38956         * lib/classpath.h: Likewise.
38957         * lib/clean-temp.c: Likewise.
38958         * lib/clean-temp.h: Likewise.
38959         * lib/cloexec.c: Likewise.
38960         * lib/close-stream.c: Likewise.
38961         * lib/closein.c: Likewise.
38962         * lib/closein.h: Likewise.
38963         * lib/closeout.c: Likewise.
38964         * lib/closeout.h: Likewise.
38965         * lib/concat-filename.c: Likewise.
38966         * lib/copy-file.c: Likewise.
38967         * lib/copy-file.h: Likewise.
38968         * lib/count-one-bits.h: Likewise.
38969         * lib/crc.c: Likewise.
38970         * lib/crc.h: Likewise.
38971         * lib/creat-safer.c: Likewise.
38972         * lib/csharpcomp.c: Likewise.
38973         * lib/csharpcomp.h: Likewise.
38974         * lib/csharpexec.c: Likewise.
38975         * lib/csharpexec.h: Likewise.
38976         * lib/cycle-check.c: Likewise.
38977         * lib/cycle-check.h: Likewise.
38978         * lib/diacrit.c: Likewise.
38979         * lib/diacrit.h: Likewise.
38980         * lib/diffseq.h: Likewise.
38981         * lib/dirchownmod.c: Likewise.
38982         * lib/dirent.in.h: Likewise.
38983         * lib/dirfd.c: Likewise.
38984         * lib/dirfd.h: Likewise.
38985         * lib/dirname.c: Likewise.
38986         * lib/dirname.h: Likewise.
38987         * lib/dummy.c: Likewise.
38988         * lib/dup-safer.c: Likewise.
38989         * lib/dup2.c: Likewise.
38990         * lib/eealloc.h: Likewise.
38991         * lib/error.c: Likewise.
38992         * lib/error.h: Likewise.
38993         * lib/euidaccess.c: Likewise.
38994         * lib/exclude.c: Likewise.
38995         * lib/exclude.h: Likewise.
38996         * lib/execute.c: Likewise.
38997         * lib/execute.h: Likewise.
38998         * lib/exitfail.c: Likewise.
38999         * lib/exitfail.h: Likewise.
39000         * lib/expl.c: Likewise.
39001         * lib/fatal-signal.c: Likewise.
39002         * lib/fatal-signal.h: Likewise.
39003         * lib/fbufmode.c: Likewise.
39004         * lib/fbufmode.h: Likewise.
39005         * lib/fchdir.c: Likewise.
39006         * lib/fchmodat.c: Likewise.
39007         * lib/fchownat.c: Likewise.
39008         * lib/fcntl--.h: Likewise.
39009         * lib/fcntl-safer.h: Likewise.
39010         * lib/fcntl.in.h: Likewise.
39011         * lib/fd-safer.c: Likewise.
39012         * lib/fflush.c: Likewise.
39013         * lib/file-has-acl.c: Likewise.
39014         * lib/file-set.c: Likewise.
39015         * lib/file-type.c: Likewise.
39016         * lib/file-type.h: Likewise.
39017         * lib/fileblocks.c: Likewise.
39018         * lib/filemode.c: Likewise.
39019         * lib/filemode.h: Likewise.
39020         * lib/filename.h: Likewise.
39021         * lib/filenamecat.c: Likewise.
39022         * lib/filenamecat.h: Likewise.
39023         * lib/findprog.c: Likewise.
39024         * lib/findprog.h: Likewise.
39025         * lib/float.in.h: Likewise.
39026         * lib/floor.c: Likewise.
39027         * lib/floorf.c: Likewise.
39028         * lib/floorl.c: Likewise.
39029         * lib/fopen-safer.c: Likewise.
39030         * lib/fopen.c: Likewise.
39031         * lib/fpending.c: Likewise.
39032         * lib/fpending.h: Likewise.
39033         * lib/fprintf.c: Likewise.
39034         * lib/fprintftime.h: Likewise.
39035         * lib/fpucw.h: Likewise.
39036         * lib/fpurge.c: Likewise.
39037         * lib/fpurge.h: Likewise.
39038         * lib/freadable.c: Likewise.
39039         * lib/freadable.h: Likewise.
39040         * lib/freadahead.c: Likewise.
39041         * lib/freadahead.h: Likewise.
39042         * lib/freading.c: Likewise.
39043         * lib/freading.h: Likewise.
39044         * lib/free.c: Likewise.
39045         * lib/freopen.c: Likewise.
39046         * lib/frexp.c: Likewise.
39047         * lib/frexpl.c: Likewise.
39048         * lib/fseek.c: Likewise.
39049         * lib/fseterr.c: Likewise.
39050         * lib/fseterr.h: Likewise.
39051         * lib/fstatat.c: Likewise.
39052         * lib/fstrcmp.c: Likewise.
39053         * lib/fstrcmp.h: Likewise.
39054         * lib/fsusage.c: Likewise.
39055         * lib/fsusage.h: Likewise.
39056         * lib/ftell.c: Likewise.
39057         * lib/ftello.c: Likewise.
39058         * lib/fts-cycle.c: Likewise.
39059         * lib/fts.c: Likewise.
39060         * lib/fts_.h: Likewise.
39061         * lib/full-read.c: Likewise.
39062         * lib/full-read.h: Likewise.
39063         * lib/full-write.c: Likewise.
39064         * lib/full-write.h: Likewise.
39065         * lib/fwritable.c: Likewise.
39066         * lib/fwritable.h: Likewise.
39067         * lib/fwriteerror.c: Likewise.
39068         * lib/fwriteerror.h: Likewise.
39069         * lib/fwriting.c: Likewise.
39070         * lib/fwriting.h: Likewise.
39071         * lib/gcd.c: Likewise.
39072         * lib/gcd.h: Likewise.
39073         * lib/getcwd.c: Likewise.
39074         * lib/getdate.h: Likewise.
39075         * lib/getdate.y: Likewise.
39076         * lib/getdomainname.c: Likewise.
39077         * lib/getdomainname.h: Likewise.
39078         * lib/getgroups.c: Likewise.
39079         * lib/gethostname.c: Likewise.
39080         * lib/gethrxtime.c: Likewise.
39081         * lib/gethrxtime.h: Likewise.
39082         * lib/getloadavg.c: Likewise.
39083         * lib/getndelim2.c: Likewise.
39084         * lib/getndelim2.h: Likewise.
39085         * lib/getnline.c: Likewise.
39086         * lib/getnline.h: Likewise.
39087         * lib/getopt.c: Likewise.
39088         * lib/getopt.in.h: Likewise.
39089         * lib/getopt1.c: Likewise.
39090         * lib/getopt_int.h: Likewise.
39091         * lib/getpagesize.h: Likewise.
39092         * lib/getsubopt.c: Likewise.
39093         * lib/gettime.c: Likewise.
39094         * lib/getugroups.c: Likewise.
39095         * lib/getugroups.h: Likewise.
39096         * lib/getusershell.c: Likewise.
39097         * lib/gl_anyavltree_list1.h: Likewise.
39098         * lib/gl_anyavltree_list2.h: Likewise.
39099         * lib/gl_anyhash_list1.h: Likewise.
39100         * lib/gl_anyhash_list2.h: Likewise.
39101         * lib/gl_anylinked_list1.h: Likewise.
39102         * lib/gl_anylinked_list2.h: Likewise.
39103         * lib/gl_anyrbtree_list1.h: Likewise.
39104         * lib/gl_anyrbtree_list2.h: Likewise.
39105         * lib/gl_anytree_list1.h: Likewise.
39106         * lib/gl_anytree_list2.h: Likewise.
39107         * lib/gl_anytree_oset.h: Likewise.
39108         * lib/gl_anytreehash_list1.h: Likewise.
39109         * lib/gl_anytreehash_list2.h: Likewise.
39110         * lib/gl_array_list.c: Likewise.
39111         * lib/gl_array_list.h: Likewise.
39112         * lib/gl_array_oset.c: Likewise.
39113         * lib/gl_array_oset.h: Likewise.
39114         * lib/gl_avltree_list.c: Likewise.
39115         * lib/gl_avltree_list.h: Likewise.
39116         * lib/gl_avltree_oset.c: Likewise.
39117         * lib/gl_avltree_oset.h: Likewise.
39118         * lib/gl_avltreehash_list.c: Likewise.
39119         * lib/gl_avltreehash_list.h: Likewise.
39120         * lib/gl_carray_list.c: Likewise.
39121         * lib/gl_carray_list.h: Likewise.
39122         * lib/gl_linked_list.c: Likewise.
39123         * lib/gl_linked_list.h: Likewise.
39124         * lib/gl_linkedhash_list.c: Likewise.
39125         * lib/gl_linkedhash_list.h: Likewise.
39126         * lib/gl_list.c: Likewise.
39127         * lib/gl_list.h: Likewise.
39128         * lib/gl_oset.c: Likewise.
39129         * lib/gl_oset.h: Likewise.
39130         * lib/gl_rbtree_list.c: Likewise.
39131         * lib/gl_rbtree_list.h: Likewise.
39132         * lib/gl_rbtree_oset.c: Likewise.
39133         * lib/gl_rbtree_oset.h: Likewise.
39134         * lib/gl_rbtreehash_list.c: Likewise.
39135         * lib/gl_rbtreehash_list.h: Likewise.
39136         * lib/gl_sublist.c: Likewise.
39137         * lib/gl_sublist.h: Likewise.
39138         * lib/group-member.c: Likewise.
39139         * lib/group-member.h: Likewise.
39140         * lib/hard-locale.c: Likewise.
39141         * lib/hard-locale.h: Likewise.
39142         * lib/hash-pjw.c: Likewise.
39143         * lib/hash-pjw.h: Likewise.
39144         * lib/hash-triple.c: Likewise.
39145         * lib/hash.c: Likewise.
39146         * lib/hash.h: Likewise.
39147         * lib/human.c: Likewise.
39148         * lib/human.h: Likewise.
39149         * lib/i-ring.c: Likewise.
39150         * lib/i-ring.h: Likewise.
39151         * lib/idcache.c: Likewise.
39152         * lib/imaxabs.c: Likewise.
39153         * lib/imaxdiv.c: Likewise.
39154         * lib/inet_pton.c: Likewise.
39155         * lib/inet_pton.h: Likewise.
39156         * lib/intprops.h: Likewise.
39157         * lib/inttostr.c: Likewise.
39158         * lib/inttostr.h: Likewise.
39159         * lib/inttypes.in.h: Likewise.
39160         * lib/isapipe.c: Likewise.
39161         * lib/isdir.c: Likewise.
39162         * lib/isnan.c: Likewise.
39163         * lib/isnan.h: Likewise.
39164         * lib/isnanf.c: Likewise.
39165         * lib/isnanf.h: Likewise.
39166         * lib/isnanl-nolibm.h: Likewise.
39167         * lib/isnanl.c: Likewise.
39168         * lib/isnanl.h: Likewise.
39169         * lib/javacomp.c: Likewise.
39170         * lib/javacomp.h: Likewise.
39171         * lib/javaexec.c: Likewise.
39172         * lib/javaexec.h: Likewise.
39173         * lib/javaversion.c: Likewise.
39174         * lib/javaversion.h: Likewise.
39175         * lib/javaversion.java: Likewise.
39176         * lib/lbrkprop.h: Likewise.
39177         * lib/lchmod.h: Likewise.
39178         * lib/lchown.c: Likewise.
39179         * lib/ldexpl.c: Likewise.
39180         * lib/linebreak.c: Likewise.
39181         * lib/linebreak.h: Likewise.
39182         * lib/linebuffer.c: Likewise.
39183         * lib/linebuffer.h: Likewise.
39184         * lib/locale.in.h: Likewise.
39185         * lib/logl.c: Likewise.
39186         * lib/long-options.c: Likewise.
39187         * lib/long-options.h: Likewise.
39188         * lib/lstat.c: Likewise.
39189         * lib/lstat.h: Likewise.
39190         * lib/math.in.h: Likewise.
39191         * lib/mbchar.c: Likewise.
39192         * lib/mbchar.h: Likewise.
39193         * lib/mbfile.h: Likewise.
39194         * lib/mbiter.h: Likewise.
39195         * lib/mbscasecmp.c: Likewise.
39196         * lib/mbscasestr.c: Likewise.
39197         * lib/mbschr.c: Likewise.
39198         * lib/mbscspn.c: Likewise.
39199         * lib/mbslen.c: Likewise.
39200         * lib/mbsncasecmp.c: Likewise.
39201         * lib/mbsnlen.c: Likewise.
39202         * lib/mbspbrk.c: Likewise.
39203         * lib/mbspcasecmp.c: Likewise.
39204         * lib/mbsrchr.c: Likewise.
39205         * lib/mbssep.c: Likewise.
39206         * lib/mbsspn.c: Likewise.
39207         * lib/mbsstr.c: Likewise.
39208         * lib/mbstok_r.c: Likewise.
39209         * lib/mbswidth.c: Likewise.
39210         * lib/mbswidth.h: Likewise.
39211         * lib/mbuiter.h: Likewise.
39212         * lib/memcasecmp.c: Likewise.
39213         * lib/memcasecmp.h: Likewise.
39214         * lib/memchr.c: Likewise.
39215         * lib/memcmp.c: Likewise.
39216         * lib/memcoll.c: Likewise.
39217         * lib/memcoll.h: Likewise.
39218         * lib/memcpy.c: Likewise.
39219         * lib/memrchr.c: Likewise.
39220         * lib/mkancesdirs.c: Likewise.
39221         * lib/mkdir-p.c: Likewise.
39222         * lib/mkdir-p.h: Likewise.
39223         * lib/mkdir.c: Likewise.
39224         * lib/mkdirat.c: Likewise.
39225         * lib/mkdtemp.c: Likewise.
39226         * lib/mkstemp-safer.c: Likewise.
39227         * lib/mkstemp.c: Likewise.
39228         * lib/modechange.c: Likewise.
39229         * lib/modechange.h: Likewise.
39230         * lib/mountlist.c: Likewise.
39231         * lib/mountlist.h: Likewise.
39232         * lib/mpsort.c: Likewise.
39233         * lib/nanosleep.c: Likewise.
39234         * lib/obstack.c: Likewise.
39235         * lib/obstack.h: Likewise.
39236         * lib/open-safer.c: Likewise.
39237         * lib/open.c: Likewise.
39238         * lib/openat-die.c: Likewise.
39239         * lib/openat-priv.h: Likewise.
39240         * lib/openat-proc.c: Likewise.
39241         * lib/openat.c: Likewise.
39242         * lib/openat.h: Likewise.
39243         * lib/pagealign_alloc.c: Likewise.
39244         * lib/pagealign_alloc.h: Likewise.
39245         * lib/physmem.c: Likewise.
39246         * lib/physmem.h: Likewise.
39247         * lib/pipe-safer.c: Likewise.
39248         * lib/pipe.c: Likewise.
39249         * lib/pipe.h: Likewise.
39250         * lib/posixtm.c: Likewise.
39251         * lib/posixtm.h: Likewise.
39252         * lib/posixver.c: Likewise.
39253         * lib/printf-frexp.c: Likewise.
39254         * lib/printf-frexp.h: Likewise.
39255         * lib/printf-frexpl.c: Likewise.
39256         * lib/printf-frexpl.h: Likewise.
39257         * lib/printf.c: Likewise.
39258         * lib/progname.c: Likewise.
39259         * lib/progname.h: Likewise.
39260         * lib/progreloc.c: Likewise.
39261         * lib/putenv.c: Likewise.
39262         * lib/quote.c: Likewise.
39263         * lib/quote.h: Likewise.
39264         * lib/quotearg.c: Likewise.
39265         * lib/quotearg.h: Likewise.
39266         * lib/raise.c: Likewise.
39267         * lib/readline.c: Likewise.
39268         * lib/readline.h: Likewise.
39269         * lib/readlink.c: Likewise.
39270         * lib/readtokens.c: Likewise.
39271         * lib/readtokens.h: Likewise.
39272         * lib/readtokens0.c: Likewise.
39273         * lib/readtokens0.h: Likewise.
39274         * lib/readutmp.c: Likewise.
39275         * lib/readutmp.h: Likewise.
39276         * lib/realloc.c: Likewise.
39277         * lib/relocwrapper.c: Likewise.
39278         * lib/rename-dest-slash.c: Likewise.
39279         * lib/rename.c: Likewise.
39280         * lib/rmdir.c: Likewise.
39281         * lib/rpmatch.c: Likewise.
39282         * lib/safe-read.c: Likewise.
39283         * lib/safe-read.h: Likewise.
39284         * lib/safe-write.c: Likewise.
39285         * lib/safe-write.h: Likewise.
39286         * lib/same-inode.h: Likewise.
39287         * lib/same.c: Likewise.
39288         * lib/same.h: Likewise.
39289         * lib/save-cwd.c: Likewise.
39290         * lib/save-cwd.h: Likewise.
39291         * lib/savedir.c: Likewise.
39292         * lib/savedir.h: Likewise.
39293         * lib/savewd.c: Likewise.
39294         * lib/savewd.h: Likewise.
39295         * lib/search.in.h: Likewise.
39296         * lib/setenv.c: Likewise.
39297         * lib/setenv.h: Likewise.
39298         * lib/settime.c: Likewise.
39299         * lib/sh-quote.c: Likewise.
39300         * lib/sh-quote.h: Likewise.
39301         * lib/sig2str.c: Likewise.
39302         * lib/sig2str.h: Likewise.
39303         * lib/signal.in.h: Likewise.
39304         * lib/signbitd.c: Likewise.
39305         * lib/signbitf.c: Likewise.
39306         * lib/signbitl.c: Likewise.
39307         * lib/sigprocmask.c: Likewise.
39308         * lib/sincosl.c: Likewise.
39309         * lib/sleep.c: Likewise.
39310         * lib/sprintf.c: Likewise.
39311         * lib/sqrtl.c: Likewise.
39312         * lib/stat-time.h: Likewise.
39313         * lib/stdio--.h: Likewise.
39314         * lib/stdio-safer.h: Likewise.
39315         * lib/stdlib--.h: Likewise.
39316         * lib/stdlib-safer.h: Likewise.
39317         * lib/stdlib.in.h: Likewise.
39318         * lib/stpcpy.c: Likewise.
39319         * lib/stpncpy.c: Likewise.
39320         * lib/strchrnul.c: Likewise.
39321         * lib/strcspn.c: Likewise.
39322         * lib/strerror.c: Likewise.
39323         * lib/strftime.c: Likewise.
39324         * lib/strftime.h: Likewise.
39325         * lib/striconveh.c: Likewise.
39326         * lib/striconveh.h: Likewise.
39327         * lib/striconveha.c: Likewise.
39328         * lib/striconveha.h: Likewise.
39329         * lib/stripslash.c: Likewise.
39330         * lib/strnlen1.c: Likewise.
39331         * lib/strnlen1.h: Likewise.
39332         * lib/strtod.c: Likewise.
39333         * lib/strtoimax.c: Likewise.
39334         * lib/strtok_r.c: Likewise.
39335         * lib/strtol.c: Likewise.
39336         * lib/strtoll.c: Likewise.
39337         * lib/strtoul.c: Likewise.
39338         * lib/strtoull.c: Likewise.
39339         * lib/sysexits.in.h: Likewise.
39340         * lib/tempname.c: Likewise.
39341         * lib/tempname.h: Likewise.
39342         * lib/timespec.h: Likewise.
39343         * lib/tls.c: Likewise.
39344         * lib/tls.h: Likewise.
39345         * lib/tmpdir.c: Likewise.
39346         * lib/tmpdir.h: Likewise.
39347         * lib/tmpfile-safer.c: Likewise.
39348         * lib/tmpfile.c: Likewise.
39349         * lib/trigl.c: Likewise.
39350         * lib/trigl.h: Likewise.
39351         * lib/trim.c: Likewise.
39352         * lib/trim.h: Likewise.
39353         * lib/trunc.c: Likewise.
39354         * lib/truncf.c: Likewise.
39355         * lib/truncl.c: Likewise.
39356         * lib/tsearch.c: Likewise.
39357         * lib/unicodeio.c: Likewise.
39358         * lib/unicodeio.h: Likewise.
39359         * lib/unistd--.h: Likewise.
39360         * lib/unistd-safer.h: Likewise.
39361         * lib/unistdio/ulc-fprintf.c: Likewise.
39362         * lib/unistdio/ulc-vfprintf.c: Likewise.
39363         * lib/unlinkdir.c: Likewise.
39364         * lib/unlinkdir.h: Likewise.
39365         * lib/unlocked-io.h: Likewise.
39366         * lib/unsetenv.c: Likewise.
39367         * lib/userspec.c: Likewise.
39368         * lib/utime.c: Likewise.
39369         * lib/utimecmp.c: Likewise.
39370         * lib/utimecmp.h: Likewise.
39371         * lib/utimens.c: Likewise.
39372         * lib/verify.h: Likewise.
39373         * lib/verror.c: Likewise.
39374         * lib/verror.h: Likewise.
39375         * lib/version-etc-fsf.c: Likewise.
39376         * lib/version-etc.c: Likewise.
39377         * lib/version-etc.h: Likewise.
39378         * lib/vfprintf.c: Likewise.
39379         * lib/vprintf.c: Likewise.
39380         * lib/vsprintf.c: Likewise.
39381         * lib/w32spawn.h: Likewise.
39382         * lib/wait-process.c: Likewise.
39383         * lib/wait-process.h: Likewise.
39384         * lib/wcwidth.c: Likewise.
39385         * lib/write-any-file.c: Likewise.
39386         * lib/xalloc-die.c: Likewise.
39387         * lib/xalloc.h: Likewise.
39388         * lib/xasprintf.c: Likewise.
39389         * lib/xgetcwd.c: Likewise.
39390         * lib/xgetcwd.h: Likewise.
39391         * lib/xgetdomainname.c: Likewise.
39392         * lib/xgetdomainname.h: Likewise.
39393         * lib/xgethostname.c: Likewise.
39394         * lib/xmalloc.c: Likewise.
39395         * lib/xmalloca.c: Likewise.
39396         * lib/xmalloca.h: Likewise.
39397         * lib/xmemcoll.c: Likewise.
39398         * lib/xnanosleep.c: Likewise.
39399         * lib/xreadlink.c: Likewise.
39400         * lib/xreadlink.h: Likewise.
39401         * lib/xsetenv.c: Likewise.
39402         * lib/xsetenv.h: Likewise.
39403         * lib/xstriconv.c: Likewise.
39404         * lib/xstriconv.h: Likewise.
39405         * lib/xstrndup.c: Likewise.
39406         * lib/xstrndup.h: Likewise.
39407         * lib/xstrtod.c: Likewise.
39408         * lib/xstrtod.h: Likewise.
39409         * lib/xstrtol-error.c: Likewise.
39410         * lib/xstrtol.c: Likewise.
39411         * lib/xstrtol.h: Likewise.
39412         * lib/xtime.h: Likewise.
39413         * lib/xvasprintf.c: Likewise.
39414         * lib/xvasprintf.h: Likewise.
39415         * lib/yesno.c: Likewise.
39416         * lib/yesno.h: Likewise.
39417         * posix-modules: Likewise.
39418         * tests/test-alloca-opt.c: Likewise.
39419         * tests/test-arcfour.c: Likewise.
39420         * tests/test-arctwo.c: Likewise.
39421         * tests/test-argmatch.c: Likewise.
39422         * tests/test-argp-2.sh: Likewise.
39423         * tests/test-argp.c: Likewise.
39424         * tests/test-arpa_inet.c: Likewise.
39425         * tests/test-array_list.c: Likewise.
39426         * tests/test-array_oset.c: Likewise.
39427         * tests/test-atexit.c: Likewise.
39428         * tests/test-avltree_list.c: Likewise.
39429         * tests/test-avltree_oset.c: Likewise.
39430         * tests/test-avltreehash_list.c: Likewise.
39431         * tests/test-base64.c: Likewise.
39432         * tests/test-binary-io.c: Likewise.
39433         * tests/test-byteswap.c: Likewise.
39434         * tests/test-c-ctype.c: Likewise.
39435         * tests/test-c-strcasecmp.c: Likewise.
39436         * tests/test-c-strcasestr.c: Likewise.
39437         * tests/test-c-strncasecmp.c: Likewise.
39438         * tests/test-c-strstr.c: Likewise.
39439         * tests/test-canonicalize-lgpl.c: Likewise.
39440         * tests/test-canonicalize.c: Likewise.
39441         * tests/test-carray_list.c: Likewise.
39442         * tests/test-ceilf.c: Likewise.
39443         * tests/test-ceill.c: Likewise.
39444         * tests/test-count-one-bits.c: Likewise.
39445         * tests/test-crc.c: Likewise.
39446         * tests/test-dirname.c: Likewise.
39447         * tests/test-fbufmode.c: Likewise.
39448         * tests/test-fcntl.c: Likewise.
39449         * tests/test-fflush.c: Likewise.
39450         * tests/test-floorf.c: Likewise.
39451         * tests/test-floorl.c: Likewise.
39452         * tests/test-fopen.c: Likewise.
39453         * tests/test-fprintf-posix.c: Likewise.
39454         * tests/test-fprintf-posix.h: Likewise.
39455         * tests/test-fpurge.c: Likewise.
39456         * tests/test-freadable.c: Likewise.
39457         * tests/test-freadahead.c: Likewise.
39458         * tests/test-freading.c: Likewise.
39459         * tests/test-freopen.c: Likewise.
39460         * tests/test-frexp.c: Likewise.
39461         * tests/test-frexpl.c: Likewise.
39462         * tests/test-fseek.c: Likewise.
39463         * tests/test-fseeko.c: Likewise.
39464         * tests/test-fseterr.c: Likewise.
39465         * tests/test-fstrcmp.c: Likewise.
39466         * tests/test-ftell.c: Likewise.
39467         * tests/test-ftello.c: Likewise.
39468         * tests/test-fwritable.c: Likewise.
39469         * tests/test-fwriting.c: Likewise.
39470         * tests/test-getaddrinfo.c: Likewise.
39471         * tests/test-getpass.c: Likewise.
39472         * tests/test-gettimeofday.c: Likewise.
39473         * tests/test-hmac-md5.c: Likewise.
39474         * tests/test-hmac-sha1.c: Likewise.
39475         * tests/test-iconv.c: Likewise.
39476         * tests/test-iconvme.c: Likewise.
39477         * tests/test-inttypes.c: Likewise.
39478         * tests/test-isnan.c: Likewise.
39479         * tests/test-isnanf.c: Likewise.
39480         * tests/test-isnanl-nolibm.c: Likewise.
39481         * tests/test-isnanl.c: Likewise.
39482         * tests/test-isnanl.h: Likewise.
39483         * tests/test-ldexpl.c: Likewise.
39484         * tests/test-linked_list.c: Likewise.
39485         * tests/test-linkedhash_list.c: Likewise.
39486         * tests/test-locale.c: Likewise.
39487         * tests/test-localename.c: Likewise.
39488         * tests/test-lock.c: Likewise.
39489         * tests/test-lseek.c: Likewise.
39490         * tests/test-malloca.c: Likewise.
39491         * tests/test-math.c: Likewise.
39492         * tests/test-mbscasecmp.c: Likewise.
39493         * tests/test-mbscasestr1.c: Likewise.
39494         * tests/test-mbscasestr2.c: Likewise.
39495         * tests/test-mbscasestr3.c: Likewise.
39496         * tests/test-mbscasestr4.c: Likewise.
39497         * tests/test-mbschr.c: Likewise.
39498         * tests/test-mbscspn.c: Likewise.
39499         * tests/test-mbsncasecmp.c: Likewise.
39500         * tests/test-mbspbrk.c: Likewise.
39501         * tests/test-mbspcasecmp.c: Likewise.
39502         * tests/test-mbsrchr.c: Likewise.
39503         * tests/test-mbsspn.c: Likewise.
39504         * tests/test-mbsstr1.c: Likewise.
39505         * tests/test-mbsstr2.c: Likewise.
39506         * tests/test-mbsstr3.c: Likewise.
39507         * tests/test-md5.c: Likewise.
39508         * tests/test-memmem.c: Likewise.
39509         * tests/test-netinet_in.c: Likewise.
39510         * tests/test-open.c: Likewise.
39511         * tests/test-printf-frexp.c: Likewise.
39512         * tests/test-printf-frexpl.c: Likewise.
39513         * tests/test-printf-posix.c: Likewise.
39514         * tests/test-printf-posix.h: Likewise.
39515         * tests/test-rbtree_list.c: Likewise.
39516         * tests/test-rbtree_oset.c: Likewise.
39517         * tests/test-rbtreehash_list.c: Likewise.
39518         * tests/test-read-file.c: Likewise.
39519         * tests/test-rijndael.c: Likewise.
39520         * tests/test-search.c: Likewise.
39521         * tests/test-signbit.c: Likewise.
39522         * tests/test-sleep.c: Likewise.
39523         * tests/test-snprintf-posix.c: Likewise.
39524         * tests/test-snprintf-posix.h: Likewise.
39525         * tests/test-snprintf.c: Likewise.
39526         * tests/test-sprintf-posix.c: Likewise.
39527         * tests/test-sprintf-posix.h: Likewise.
39528         * tests/test-stat-time.c: Likewise.
39529         * tests/test-stdbool.c: Likewise.
39530         * tests/test-stdint.c: Likewise.
39531         * tests/test-stdio.c: Likewise.
39532         * tests/test-stdlib.c: Likewise.
39533         * tests/test-stpncpy.c: Likewise.
39534         * tests/test-strcasestr.c: Likewise.
39535         * tests/test-striconv.c: Likewise.
39536         * tests/test-striconveh.c: Likewise.
39537         * tests/test-striconveha.c: Likewise.
39538         * tests/test-string.c: Likewise.
39539         * tests/test-sys_select.c: Likewise.
39540         * tests/test-sys_socket.c: Likewise.
39541         * tests/test-sys_stat.c: Likewise.
39542         * tests/test-sys_time.c: Likewise.
39543         * tests/test-sysexits.c: Likewise.
39544         * tests/test-time.c: Likewise.
39545         * tests/test-tls.c: Likewise.
39546         * tests/test-trunc.c: Likewise.
39547         * tests/test-truncf.c: Likewise.
39548         * tests/test-truncl.c: Likewise.
39549         * tests/test-unistd.c: Likewise.
39550         * tests/test-vasnprintf-posix.c: Likewise.
39551         * tests/test-vasnprintf-posix2.c: Likewise.
39552         * tests/test-vasnprintf.c: Likewise.
39553         * tests/test-vasprintf-posix.c: Likewise.
39554         * tests/test-vasprintf.c: Likewise.
39555         * tests/test-verify.c: Likewise.
39556         * tests/test-vfprintf-posix.c: Likewise.
39557         * tests/test-vprintf-posix.c: Likewise.
39558         * tests/test-vsnprintf-posix.c: Likewise.
39559         * tests/test-vsnprintf.c: Likewise.
39560         * tests/test-vsprintf-posix.c: Likewise.
39561         * tests/test-wchar.c: Likewise.
39562         * tests/test-wctype.c: Likewise.
39563         * tests/test-wcwidth.c: Likewise.
39564         * tests/test-xstrtol.c: Likewise.
39565         * tests/test-xvasprintf.c: Likewise.
39566         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39567         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39568         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39569         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39570         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39571         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39572         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39573         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39574         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39575         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39576         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39577         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39578         * tests/uniname/test-uninames.c: Likewise.
39579         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39580         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
39581         * tests/unistdio/test-u16-printf1.h: Likewise.
39582         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39583         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39584         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39585         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39586         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39587         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39588         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39589         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
39590         * tests/unistdio/test-u32-printf1.h: Likewise.
39591         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39592         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39593         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39594         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39595         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39596         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39597         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39598         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
39599         * tests/unistdio/test-u8-printf1.h: Likewise.
39600         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39601         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39602         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39603         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39604         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39605         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39606         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39607         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
39608         * tests/unistdio/test-ulc-printf1.h: Likewise.
39609         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39610         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39611         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39612         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39613         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39614         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39615         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39616         * tests/uniwidth/test-u16-width.c: Likewise.
39617         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39618         * tests/uniwidth/test-u32-width.c: Likewise.
39619         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39620         * tests/uniwidth/test-u8-width.c: Likewise.
39621         * tests/uniwidth/test-uc_width.c: Likewise.
39622         * config/srclist-update: Likewise.
39623         (fixlicense): Update to GPLv3+.
39624
39625         Change copyright notice from LGPLv2.1+ to LGPLv3+.
39626         * tests/test-tsearch.c: Change copyright notice.
39627
39628         Change copyright notice from LGPLv2.0+ to LGPLv3+.
39629         * lib/c-strcaseeq.h: Change copyright notice.
39630         * lib/streq.h: Likewise.
39631         * lib/uniconv.h: Likewise.
39632         * lib/uniconv/u-conv-from-enc.h: Likewise.
39633         * lib/uniconv/u-conv-to-enc.h: Likewise.
39634         * lib/uniconv/u-strconv-from-enc.h: Likewise.
39635         * lib/uniconv/u-strconv-to-enc.h: Likewise.
39636         * lib/uniconv/u16-conv-from-enc.c: Likewise.
39637         * lib/uniconv/u16-conv-to-enc.c: Likewise.
39638         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
39639         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
39640         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
39641         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
39642         * lib/uniconv/u32-conv-from-enc.c: Likewise.
39643         * lib/uniconv/u32-conv-to-enc.c: Likewise.
39644         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
39645         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
39646         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
39647         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
39648         * lib/uniconv/u8-conv-from-enc.c: Likewise.
39649         * lib/uniconv/u8-conv-to-enc.c: Likewise.
39650         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
39651         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
39652         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
39653         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
39654         * lib/uniname.h: Likewise.
39655         * lib/uniname/uniname.c: Likewise.
39656         * lib/unistdio.h: Likewise.
39657         * lib/unistdio/u-asnprintf.h: Likewise.
39658         * lib/unistdio/u-asprintf.h: Likewise.
39659         * lib/unistdio/u-printf-args.c: Likewise.
39660         * lib/unistdio/u-printf-args.h: Likewise.
39661         * lib/unistdio/u-printf-parse.h: Likewise.
39662         * lib/unistdio/u-snprintf.h: Likewise.
39663         * lib/unistdio/u-sprintf.h: Likewise.
39664         * lib/unistdio/u-vasprintf.h: Likewise.
39665         * lib/unistdio/u-vsnprintf.h: Likewise.
39666         * lib/unistdio/u-vsprintf.h: Likewise.
39667         * lib/unistdio/u16-asnprintf.c: Likewise.
39668         * lib/unistdio/u16-asprintf.c: Likewise.
39669         * lib/unistdio/u16-printf-parse.c: Likewise.
39670         * lib/unistdio/u16-snprintf.c: Likewise.
39671         * lib/unistdio/u16-sprintf.c: Likewise.
39672         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
39673         * lib/unistdio/u16-u16-asprintf.c: Likewise.
39674         * lib/unistdio/u16-u16-snprintf.c: Likewise.
39675         * lib/unistdio/u16-u16-sprintf.c: Likewise.
39676         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
39677         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
39678         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
39679         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
39680         * lib/unistdio/u16-vasnprintf.c: Likewise.
39681         * lib/unistdio/u16-vasprintf.c: Likewise.
39682         * lib/unistdio/u16-vsnprintf.c: Likewise.
39683         * lib/unistdio/u16-vsprintf.c: Likewise.
39684         * lib/unistdio/u32-asnprintf.c: Likewise.
39685         * lib/unistdio/u32-asprintf.c: Likewise.
39686         * lib/unistdio/u32-printf-parse.c: Likewise.
39687         * lib/unistdio/u32-snprintf.c: Likewise.
39688         * lib/unistdio/u32-sprintf.c: Likewise.
39689         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
39690         * lib/unistdio/u32-u32-asprintf.c: Likewise.
39691         * lib/unistdio/u32-u32-snprintf.c: Likewise.
39692         * lib/unistdio/u32-u32-sprintf.c: Likewise.
39693         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
39694         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
39695         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
39696         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
39697         * lib/unistdio/u32-vasnprintf.c: Likewise.
39698         * lib/unistdio/u32-vasprintf.c: Likewise.
39699         * lib/unistdio/u32-vsnprintf.c: Likewise.
39700         * lib/unistdio/u32-vsprintf.c: Likewise.
39701         * lib/unistdio/u8-asnprintf.c: Likewise.
39702         * lib/unistdio/u8-asprintf.c: Likewise.
39703         * lib/unistdio/u8-printf-parse.c: Likewise.
39704         * lib/unistdio/u8-snprintf.c: Likewise.
39705         * lib/unistdio/u8-sprintf.c: Likewise.
39706         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
39707         * lib/unistdio/u8-u8-asprintf.c: Likewise.
39708         * lib/unistdio/u8-u8-snprintf.c: Likewise.
39709         * lib/unistdio/u8-u8-sprintf.c: Likewise.
39710         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
39711         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
39712         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
39713         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
39714         * lib/unistdio/u8-vasnprintf.c: Likewise.
39715         * lib/unistdio/u8-vasprintf.c: Likewise.
39716         * lib/unistdio/u8-vsnprintf.c: Likewise.
39717         * lib/unistdio/u8-vsprintf.c: Likewise.
39718         * lib/unistdio/ulc-asnprintf.c: Likewise.
39719         * lib/unistdio/ulc-asprintf.c: Likewise.
39720         * lib/unistdio/ulc-printf-parse.c: Likewise.
39721         * lib/unistdio/ulc-snprintf.c: Likewise.
39722         * lib/unistdio/ulc-sprintf.c: Likewise.
39723         * lib/unistdio/ulc-vasnprintf.c: Likewise.
39724         * lib/unistdio/ulc-vasprintf.c: Likewise.
39725         * lib/unistdio/ulc-vsnprintf.c: Likewise.
39726         * lib/unistdio/ulc-vsprintf.c: Likewise.
39727         * lib/unistr.h: Likewise.
39728         * lib/unistr/u-cpy-alloc.h: Likewise.
39729         * lib/unistr/u-cpy.h: Likewise.
39730         * lib/unistr/u-endswith.h: Likewise.
39731         * lib/unistr/u-move.h: Likewise.
39732         * lib/unistr/u-set.h: Likewise.
39733         * lib/unistr/u-startswith.h: Likewise.
39734         * lib/unistr/u-stpcpy.h: Likewise.
39735         * lib/unistr/u-stpncpy.h: Likewise.
39736         * lib/unistr/u-strcat.h: Likewise.
39737         * lib/unistr/u-strcpy.h: Likewise.
39738         * lib/unistr/u-strcspn.h: Likewise.
39739         * lib/unistr/u-strdup.h: Likewise.
39740         * lib/unistr/u-strlen.h: Likewise.
39741         * lib/unistr/u-strncat.h: Likewise.
39742         * lib/unistr/u-strncpy.h: Likewise.
39743         * lib/unistr/u-strnlen.h: Likewise.
39744         * lib/unistr/u-strpbrk.h: Likewise.
39745         * lib/unistr/u-strspn.h: Likewise.
39746         * lib/unistr/u-strstr.h: Likewise.
39747         * lib/unistr/u-strtok.h: Likewise.
39748         * lib/unistr/u16-check.c: Likewise.
39749         * lib/unistr/u16-chr.c: Likewise.
39750         * lib/unistr/u16-cmp.c: Likewise.
39751         * lib/unistr/u16-cpy-alloc.c: Likewise.
39752         * lib/unistr/u16-cpy.c: Likewise.
39753         * lib/unistr/u16-endswith.c: Likewise.
39754         * lib/unistr/u16-mblen.c: Likewise.
39755         * lib/unistr/u16-mbsnlen.c: Likewise.
39756         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39757         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39758         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39759         * lib/unistr/u16-mbtouc.c: Likewise.
39760         * lib/unistr/u16-mbtoucr.c: Likewise.
39761         * lib/unistr/u16-move.c: Likewise.
39762         * lib/unistr/u16-next.c: Likewise.
39763         * lib/unistr/u16-prev.c: Likewise.
39764         * lib/unistr/u16-set.c: Likewise.
39765         * lib/unistr/u16-startswith.c: Likewise.
39766         * lib/unistr/u16-stpcpy.c: Likewise.
39767         * lib/unistr/u16-stpncpy.c: Likewise.
39768         * lib/unistr/u16-strcat.c: Likewise.
39769         * lib/unistr/u16-strchr.c: Likewise.
39770         * lib/unistr/u16-strcmp.c: Likewise.
39771         * lib/unistr/u16-strcpy.c: Likewise.
39772         * lib/unistr/u16-strcspn.c: Likewise.
39773         * lib/unistr/u16-strdup.c: Likewise.
39774         * lib/unistr/u16-strlen.c: Likewise.
39775         * lib/unistr/u16-strmblen.c: Likewise.
39776         * lib/unistr/u16-strmbtouc.c: Likewise.
39777         * lib/unistr/u16-strncat.c: Likewise.
39778         * lib/unistr/u16-strncmp.c: Likewise.
39779         * lib/unistr/u16-strncpy.c: Likewise.
39780         * lib/unistr/u16-strnlen.c: Likewise.
39781         * lib/unistr/u16-strpbrk.c: Likewise.
39782         * lib/unistr/u16-strrchr.c: Likewise.
39783         * lib/unistr/u16-strspn.c: Likewise.
39784         * lib/unistr/u16-strstr.c: Likewise.
39785         * lib/unistr/u16-strtok.c: Likewise.
39786         * lib/unistr/u16-to-u32.c: Likewise.
39787         * lib/unistr/u16-to-u8.c: Likewise.
39788         * lib/unistr/u16-uctomb-aux.c: Likewise.
39789         * lib/unistr/u16-uctomb.c: Likewise.
39790         * lib/unistr/u32-check.c: Likewise.
39791         * lib/unistr/u32-chr.c: Likewise.
39792         * lib/unistr/u32-cmp.c: Likewise.
39793         * lib/unistr/u32-cpy-alloc.c: Likewise.
39794         * lib/unistr/u32-cpy.c: Likewise.
39795         * lib/unistr/u32-endswith.c: Likewise.
39796         * lib/unistr/u32-mblen.c: Likewise.
39797         * lib/unistr/u32-mbsnlen.c: Likewise.
39798         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39799         * lib/unistr/u32-mbtouc.c: Likewise.
39800         * lib/unistr/u32-mbtoucr.c: Likewise.
39801         * lib/unistr/u32-move.c: Likewise.
39802         * lib/unistr/u32-next.c: Likewise.
39803         * lib/unistr/u32-prev.c: Likewise.
39804         * lib/unistr/u32-set.c: Likewise.
39805         * lib/unistr/u32-startswith.c: Likewise.
39806         * lib/unistr/u32-stpcpy.c: Likewise.
39807         * lib/unistr/u32-stpncpy.c: Likewise.
39808         * lib/unistr/u32-strcat.c: Likewise.
39809         * lib/unistr/u32-strchr.c: Likewise.
39810         * lib/unistr/u32-strcmp.c: Likewise.
39811         * lib/unistr/u32-strcpy.c: Likewise.
39812         * lib/unistr/u32-strcspn.c: Likewise.
39813         * lib/unistr/u32-strdup.c: Likewise.
39814         * lib/unistr/u32-strlen.c: Likewise.
39815         * lib/unistr/u32-strmblen.c: Likewise.
39816         * lib/unistr/u32-strmbtouc.c: Likewise.
39817         * lib/unistr/u32-strncat.c: Likewise.
39818         * lib/unistr/u32-strncmp.c: Likewise.
39819         * lib/unistr/u32-strncpy.c: Likewise.
39820         * lib/unistr/u32-strnlen.c: Likewise.
39821         * lib/unistr/u32-strpbrk.c: Likewise.
39822         * lib/unistr/u32-strrchr.c: Likewise.
39823         * lib/unistr/u32-strspn.c: Likewise.
39824         * lib/unistr/u32-strstr.c: Likewise.
39825         * lib/unistr/u32-strtok.c: Likewise.
39826         * lib/unistr/u32-to-u16.c: Likewise.
39827         * lib/unistr/u32-to-u8.c: Likewise.
39828         * lib/unistr/u32-uctomb.c: Likewise.
39829         * lib/unistr/u8-check.c: Likewise.
39830         * lib/unistr/u8-chr.c: Likewise.
39831         * lib/unistr/u8-cmp.c: Likewise.
39832         * lib/unistr/u8-cpy-alloc.c: Likewise.
39833         * lib/unistr/u8-cpy.c: Likewise.
39834         * lib/unistr/u8-endswith.c: Likewise.
39835         * lib/unistr/u8-mblen.c: Likewise.
39836         * lib/unistr/u8-mbsnlen.c: Likewise.
39837         * lib/unistr/u8-mbtouc-aux.c: Likewise.
39838         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39839         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39840         * lib/unistr/u8-mbtouc.c: Likewise.
39841         * lib/unistr/u8-mbtoucr.c: Likewise.
39842         * lib/unistr/u8-move.c: Likewise.
39843         * lib/unistr/u8-next.c: Likewise.
39844         * lib/unistr/u8-prev.c: Likewise.
39845         * lib/unistr/u8-set.c: Likewise.
39846         * lib/unistr/u8-startswith.c: Likewise.
39847         * lib/unistr/u8-stpcpy.c: Likewise.
39848         * lib/unistr/u8-stpncpy.c: Likewise.
39849         * lib/unistr/u8-strcat.c: Likewise.
39850         * lib/unistr/u8-strchr.c: Likewise.
39851         * lib/unistr/u8-strcmp.c: Likewise.
39852         * lib/unistr/u8-strcpy.c: Likewise.
39853         * lib/unistr/u8-strcspn.c: Likewise.
39854         * lib/unistr/u8-strdup.c: Likewise.
39855         * lib/unistr/u8-strlen.c: Likewise.
39856         * lib/unistr/u8-strmblen.c: Likewise.
39857         * lib/unistr/u8-strmbtouc.c: Likewise.
39858         * lib/unistr/u8-strncat.c: Likewise.
39859         * lib/unistr/u8-strncmp.c: Likewise.
39860         * lib/unistr/u8-strncpy.c: Likewise.
39861         * lib/unistr/u8-strnlen.c: Likewise.
39862         * lib/unistr/u8-strpbrk.c: Likewise.
39863         * lib/unistr/u8-strrchr.c: Likewise.
39864         * lib/unistr/u8-strspn.c: Likewise.
39865         * lib/unistr/u8-strstr.c: Likewise.
39866         * lib/unistr/u8-strtok.c: Likewise.
39867         * lib/unistr/u8-to-u16.c: Likewise.
39868         * lib/unistr/u8-to-u32.c: Likewise.
39869         * lib/unistr/u8-uctomb-aux.c: Likewise.
39870         * lib/unistr/u8-uctomb.c: Likewise.
39871         * lib/unitypes.h: Likewise.
39872         * lib/uniwidth.h: Likewise.
39873         * lib/uniwidth/cjk.h: Likewise.
39874         * lib/uniwidth/u16-strwidth.c: Likewise.
39875         * lib/uniwidth/u16-width.c: Likewise.
39876         * lib/uniwidth/u32-strwidth.c: Likewise.
39877         * lib/uniwidth/u32-width.c: Likewise.
39878         * lib/uniwidth/u8-strwidth.c: Likewise.
39879         * lib/uniwidth/u8-width.c: Likewise.
39880         * lib/uniwidth/width.c: Likewise.
39881
39882 2007-10-07  Bruno Haible  <bruno@clisp.org>
39883
39884         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
39885         The file is still under LGPL (see modules/inttypes).
39886
39887 2007-10-06  Bruno Haible  <bruno@clisp.org>
39888
39889         * modules/trunc (Dependencies): Add 'extensions'.
39890         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
39891         Reported by Ben Pfaff <blp@gnu.org>.
39892
39893 2007-10-06  Bruno Haible  <bruno@clisp.org>
39894
39895         * modules/freopen-tests: New file.
39896         * tests/test-freopen.c: New file.
39897
39898         * modules/fopen-tests: New file.
39899         * tests/test-fopen.c: New file.
39900
39901         * modules/fopen: New file.
39902         * lib/fopen.c: New file.
39903         * m4/fopen.m4: New file.
39904         * modules/freopen: New file.
39905         * lib/freopen.c: New file.
39906         * m4/freopen.m4: New file.
39907         * lib/stdio.in.h (fopen, freopen): New declarations.
39908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
39909         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39910         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
39911         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39912         * doc/functions/fopen.texi: Mention the 'fopen' module.
39913         * doc/functions/freopen.texi: Mention the 'freopen' module.
39914
39915 2007-10-06  Bruno Haible  <bruno@clisp.org>
39916
39917         * modules/open-tests: New file.
39918         * tests/test-open.c: New file.
39919
39920         * modules/open: New file.
39921         * lib/open.c: New file.
39922         * m4/open.m4: New file.
39923         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
39924         lib/open.c does.
39925         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
39926         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
39927         macros.
39928         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
39929         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
39930         REPLACE_OPEN.
39931         * doc/functions/open.texi: Mention the 'open' module.
39932
39933 2007-10-04  Bruno Haible  <bruno@clisp.org>
39934
39935         * modules/ceill-tests: New file.
39936         * tests/test-ceill.c: New file.
39937
39938         * modules/ceill: New file.
39939         * lib/ceill.c: Replace entire file.
39940         * m4/ceill.m4: New file.
39941         * lib/math.in.h (ceill): Replace declaration.
39942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
39943         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
39944         * doc/functions/ceill.texi: Mention the 'ceill' module.
39945         * modules/mathl (Files): Remove lib/ceill.c.
39946         (Depends-on): Add ceill.
39947
39948 2007-10-04  Bruno Haible  <bruno@clisp.org>
39949
39950         * modules/ceilf-tests: New file.
39951         * tests/test-ceilf.c: New file.
39952
39953         * modules/ceilf: New file.
39954         * lib/ceil.c: New file.
39955         * lib/ceilf.c: New file.
39956         * m4/ceilf.m4: New file.
39957         * lib/math.in.h (ceilf): New declaration.
39958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
39959         HAVE_DECL_CEILF.
39960         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
39961         HAVE_DECL_CEILF.
39962         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
39963
39964 2007-10-04  Bruno Haible  <bruno@clisp.org>
39965
39966         * modules/floorl-tests: New file.
39967         * tests/test-floorl.c: New file.
39968
39969         * modules/floorl: New file.
39970         * lib/floorl.c: Replace entire file.
39971         * m4/floorl.m4: New file.
39972         * lib/math.in.h (floorl): Replace declaration.
39973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
39974         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
39975         * doc/functions/floorl.texi: Mention the 'floorl' module.
39976         * modules/mathl (Files): Remove lib/floorl.c.
39977         (Depends-on): Add floorl.
39978
39979 2007-10-04  Bruno Haible  <bruno@clisp.org>
39980
39981         * modules/floorf-tests: New file.
39982         * tests/test-floorf.c: New file.
39983
39984         * modules/floorf: New file.
39985         * lib/floor.c: New file.
39986         * lib/floorf.c: New file.
39987         * m4/floorf.m4: New file.
39988         * lib/math.in.h (floorf): New declaration.
39989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
39990         HAVE_DECL_FLOORF.
39991         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
39992         HAVE_DECL_FLOORF.
39993         * doc/functions/floorf.texi: Mention the 'floorf' module.
39994
39995 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
39996             Bruno Haible  <bruno@clisp.org>
39997
39998         Advertise for the Git server instead of the CVS server.
39999         * doc/gnulib-intro.texi (Steady Development): Mention the Git
40000         repository instead of the CVS one.
40001         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
40002         about all VCS systems generically.
40003         * doc/gnulib.texi (Introduction): Capitalize `Git'.
40004
40005 2007-10-04  Bruno Haible  <bruno@clisp.org>
40006
40007         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
40008         means.
40009         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
40010
40011 2007-10-04  Bruno Haible  <bruno@clisp.org>
40012
40013         * modules/truncl-tests: New file.
40014         * tests/test-truncl.c: New file.
40015
40016         * modules/truncl: New file.
40017         * lib/truncl.c: New file.
40018         * m4/truncl.m4: New file.
40019         * lib/math.in.h (truncl): New declaration.
40020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
40021         HAVE_DECL_TRUNCL.
40022         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
40023         HAVE_DECL_TRUNCL.
40024         * doc/functions/truncl.texi: Mention the 'truncl' module.
40025
40026 2007-10-04  Bruno Haible  <bruno@clisp.org>
40027
40028         * modules/truncf-tests: New file.
40029         * tests/test-truncf.c: New file.
40030
40031         * modules/truncf: New file.
40032         * lib/trunc.c: Make paramerizable through USE_* macros.
40033         * lib/truncf.c: New file.
40034         * m4/truncf.m4: New file.
40035         * lib/math.in.h (truncf): New declaration.
40036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
40037         HAVE_DECL_TRUNCF.
40038         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
40039         HAVE_DECL_TRUNCF.
40040         * doc/functions/truncf.texi: Mention the 'truncf' module.
40041
40042 2007-10-03  Bruno Haible  <bruno@clisp.org>
40043
40044         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
40045         augmentation also for tests modules.
40046         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
40047         * modules/atexit-tests (Makefile.am): Likewise.
40048         * modules/binary-io-tests (Makefile.am): Likewise.
40049         * modules/c-strcase-tests (Makefile.am): Likewise.
40050         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
40051         * modules/canonicalize-tests (Makefile.am): Likewise.
40052         * modules/closein-tests (Makefile.am): Likewise.
40053         * modules/fprintf-posix-tests (Makefile.am): Likewise.
40054         * modules/freadahead-tests (Makefile.am): Likewise.
40055         * modules/fseek-tests (Makefile.am): Likewise.
40056         * modules/fseeko-tests (Makefile.am): Likewise.
40057         * modules/ftell-tests (Makefile.am): Likewise.
40058         * modules/ftello-tests (Makefile.am): Likewise.
40059         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
40060         * modules/isnanl-tests (Makefile.am): Likewise.
40061         * modules/lseek-tests (Makefile.am): Likewise.
40062         * modules/mbscasecmp-tests (Makefile.am): Likewise.
40063         * modules/mbscasestr-tests (Makefile.am): Likewise.
40064         * modules/mbschr-tests (Makefile.am): Likewise.
40065         * modules/mbscspn-tests (Makefile.am): Likewise.
40066         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
40067         * modules/mbspbrk-tests (Makefile.am): Likewise.
40068         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
40069         * modules/mbsrchr-tests (Makefile.am): Likewise.
40070         * modules/mbsspn-tests (Makefile.am): Likewise.
40071         * modules/mbsstr-tests (Makefile.am): Likewise.
40072         * modules/printf-posix-tests (Makefile.am): Likewise.
40073         * modules/snprintf-posix-tests (Makefile.am): Likewise.
40074         * modules/sprintf-posix-tests (Makefile.am): Likewise.
40075         * modules/tsearch-tests (Makefile.am): Likewise.
40076         * modules/uniname/uniname-tests (Makefile.am): Likewise.
40077         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
40078         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
40079         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
40080         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
40081         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
40082         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
40083         * modules/vprintf-posix-tests (Makefile.am): Likewise.
40084         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
40085         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
40086         * modules/xstrtoimax-tests (Makefile.am): Likewise.
40087         * modules/xstrtol-tests (Makefile.am): Likewise.
40088         * modules/xstrtoumax-tests (Makefile.am): Likewise.
40089         * modules/yesno-tests (Makefile.am): Likewise.
40090
40091 2007-10-03  Bruno Haible  <bruno@clisp.org>
40092
40093         * modules/trunc-tests: New file.
40094         * tests/test-trunc.c: New file.
40095
40096         * modules/trunc: New file.
40097         * lib/trunc.c: New file.
40098         * m4/trunc.m4: New file.
40099         * lib/math.in.h (trunc): New declaration.
40100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
40101         HAVE_DECL_TRUNC.
40102         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
40103         HAVE_DECL_TRUNC.
40104         * doc/functions/trunc.texi: Mention the 'trunc' module.
40105
40106 2007-10-03  Bruno Haible  <bruno@clisp.org>
40107
40108         * tests/test-fpending.c: New file, mostly copied
40109         from coreutils/lib/t-fpending.c.
40110         * modules/fpending-tests: New file.
40111
40112 2007-10-03  Bruno Haible  <bruno@clisp.org>
40113
40114         Port the stdio extensions to QNX (untested).
40115         * lib/fseterr.c (fseterr): Add support for QNX.
40116         * lib/fbufmode.c (fbufmode): Likewise.
40117         * lib/freadable.c (freadable): Likewise.
40118         * lib/fwritable.c (fwritable): Likewise.
40119         * lib/freading.c (freading): Likewise.
40120         * lib/fwriting.c (fwriting): Likewise.
40121         * lib/freadahead.c (freadahed): Likewise.
40122         * lib/fpurge.c (fpurge): Likewise.
40123         * lib/fseeko.c (rpl_fseeko): Likewise.
40124
40125 2007-10-03  Bruno Haible  <bruno@clisp.org>
40126             Jim Meyering  <jim@meyering.net>
40127             Eric Blake  <ebb9@byu.net>
40128
40129         * doc/relocatable.texi: Use @command instead of @program.
40130
40131 2007-10-02  Jim Meyering  <jim@meyering.net>
40132
40133         Perform one more "_.h" -> ".in.h" substitution.
40134         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
40135         instead of unistd_.h here, too.
40136
40137 2007-10-01  Bruno Haible  <bruno@clisp.org>
40138
40139         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
40140         Needed for the alloca-opt module.
40141
40142 2007-09-30  Bruno Haible  <bruno@clisp.org>
40143
40144         * lib/alloca.in.h: Renamed from lib/alloca_.h.
40145         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
40146         alloca_.h.
40147         * lib/argz.in.h: Renamed from lib/argz_.h.
40148         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
40149         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
40150         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
40151         byteswap_.h.
40152         * lib/dirent.in.h: Renamed from lib/dirent_.h.
40153         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
40154         dirent_.h.
40155         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
40156         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
40157         fcntl_.h.
40158         * lib/float.in.h: Renamed from lib/float_.h.
40159         * modules/float (Files, Makefile.am): Use float.in.h instead of
40160         float_.h.
40161         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
40162         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
40163         fnmatch_.h.
40164         * lib/getopt.in.h: Renamed from lib/getopt_.h.
40165         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
40166         getopt_.h.
40167         * lib/glob.in.h: Renamed from lib/glob_.h.
40168         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
40169         * lib/iconv.in.h: Renamed from lib/iconv_.h.
40170         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
40171         iconv_.h.
40172         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
40173         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
40174         inttypes_.h.
40175         * lib/locale.in.h: Renamed from lib/locale_.h.
40176         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
40177         locale_.h.
40178         * lib/math.in.h: Renamed from lib/math_.h.
40179         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
40180         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
40181         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
40182         of netinet_in_.h. Add dependency.
40183         * lib/poll.in.h: Renamed from lib/poll_.h.
40184         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
40185         * lib/search.in.h: Renamed from lib/search_.h.
40186         * modules/search (Files, Makefile.am): Use search.in.h instead of
40187         search_.h.
40188         * lib/signal.in.h: Renamed from lib/signal_.h.
40189         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
40190         _signal.h.
40191         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
40192         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
40193         stdbool_.h.
40194         * lib/stdint.in.h: Renamed from lib/stdint_.h.
40195         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
40196         stdint_.h.
40197         * lib/stdio.in.h: Renamed from lib/stdio_.h.
40198         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
40199         stdio_.h.
40200         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
40201         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
40202         stdlib_.h.
40203         * lib/string.in.h: Renamed from lib/string_.h.
40204         * modules/string (Files, Makefile.am): Use string.in.h instead of
40205         string_.h.
40206         * doc/gnulib-tool.texi (Initial import): Update.
40207         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
40208         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
40209         of sys_select_.h. Add dependency.
40210         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
40211         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
40212         of sys_socket_.h.
40213         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
40214         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
40215         sys_stat_.h.
40216         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
40217         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
40218         sys_time_.h.
40219         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
40220         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
40221         sysexits_.h.
40222         * lib/time.in.h: Renamed from lib/time_.h.
40223         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
40224         * lib/unistd.in.h: Renamed from lib/unistd_.h.
40225         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
40226         unistd_.h.
40227         * lib/wchar.in.h: Renamed from lib/wchar_.h.
40228         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
40229         wchar_.h.
40230         * lib/wctype.in.h: Renamed from lib/wctype_.h.
40231         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
40232         wctype_.h.
40233         * build-aux/bootstrap (slurp): Update.
40234         * lib/.cppi-disable: Update.
40235
40236 2007-09-30  Bruno Haible  <bruno@clisp.org>
40237
40238         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
40239         Needed on BeOS.
40240
40241 2007-09-30  Bruno Haible  <bruno@clisp.org>
40242
40243         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
40244
40245 2007-09-29  Bruno Haible  <bruno@clisp.org>
40246
40247         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
40248
40249 2007-09-29  Bruno Haible  <bruno@clisp.org>
40250
40251         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
40252         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
40253         * build-aux/install-reloc: Compile also areadlink.c.
40254         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
40255
40256 2007-09-29  Bruno Haible  <bruno@clisp.org>
40257
40258         * gnulib-tool (func_emit_initmacro_done): Indentation.
40259
40260 2007-09-29  Bruno Haible  <bruno@clisp.org>
40261
40262         * README: Add CVS checkout update instructions.
40263         Info from Bob Proulx <bob@proulx.com>.
40264
40265 2007-09-28  Eric Blake  <ebb9@byu.net>
40266
40267         Provide move-if-change.
40268         * build-aux/move-if-change: New file, based on best practice
40269         rather than any canonical upstream location.
40270
40271 2007-09-28  Jim Meyering  <jim@meyering.net>
40272
40273         Fix canonicalize loop-detection corner case.
40274         Do not attempt to stat the symlink values stored via seen_triple.
40275         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
40276         on linux-2.6.18, (but not 2.6.22).
40277         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
40278         triple_compare.  The former compares dev,ino,filename, while the latter
40279         would actually stat dirname(filename) when dev and ino were equal.
40280         * lib/hash-triple.c: Install <string.h>.
40281         (STREQ): Define.
40282         (triple_compare_ino_str): New function.
40283         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
40284
40285 2007-09-28  Eric Blake  <ebb9@byu.net>
40286
40287         Enforce that AC_REPLACE_FUNCS files exist.
40288         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
40289         override check for typos.
40290
40291         Fix test-closein on Solaris 10.
40292         * tests/test-closein.c (main): Don't assume stdin can be inherited
40293         closed on all systems.
40294         * tests/test-closein.sh: Likewise.
40295         Reported by Piotr Tarnowski.
40296
40297 2007-09-28  Jim Meyering  <jim@meyering.net>
40298
40299         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
40300
40301 2007-09-27  Jim Meyering  <jim@meyering.net>
40302
40303         canonicalize: Avoid a false-positive cycle failure.
40304         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
40305         Sort.  Remove cycle-check.
40306         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
40307         not cycle-check.h.
40308         (seen_triple): New function.
40309         (canonicalize_filename_mode): Use it instead of cycle-check.
40310         * tests/test-canonicalize.c: Add a test for this bug.
40311         * tests/test-canonicalize.sh: Set up and run the test.
40312
40313         New module, file-set, from coreutils.
40314         * modules/file-set: Define it.
40315         * lib/file-set.c, lib/file-set.h: Implement.
40316
40317         New module, hash-triple, from coreutils.
40318         * modules/hash-triple: Define it.
40319         * lib/hash-triple.c, lib/hash-triple.h: Implement.
40320
40321 2007-09-25  Eric Blake  <ebb9@byu.net>
40322
40323         Fix strerror on Interix.
40324         * lib/string_.h (strerror): Declare replacement.
40325         * doc/functions/strerror.texi (strerror): Document the Interix
40326         shortcoming.
40327         * modules/string (Makefile.am): Support new hooks.
40328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
40329         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
40330         gl_FUNC_STRERROR_SEPARATE.
40331         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
40332         * lib/strerror.c (rpl_strerror): Provide replacement.
40333         * modules/strerror (Depends-on): Add string.
40334         (configure.ac): Detect use of module.
40335         * tests/test-strerror.c: New file.
40336         * modules/strerror-tests: New test module.
40337         * modules/argp (Depends-on): Add strerror.
40338         * modules/error (Depends-on): Likewise.
40339         Reported by Martin Koeppe.
40340
40341 2007-09-24  Bruno Haible  <bruno@clisp.org>
40342
40343         * README: Update git instructions.
40344
40345 2007-09-24  Eric Blake  <ebb9@byu.net>
40346
40347         Revert fpending breakage from 2007-09-08.
40348         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
40349         __fpending.c.
40350
40351 2007-09-24  Jim Meyering  <jim@meyering.net>
40352
40353         filenamecat.c: Add a test.
40354         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
40355         showing how the function works when DIR is the empty string.
40356
40357 2007-09-21  Simon Josefsson  <simon@josefsson.org>
40358
40359         * tests/test-canonicalize.sh: Turn on executable bit.
40360
40361 2007-09-19  Eric Blake  <ebb9@byu.net>
40362
40363         * README: Update CVS instructions.
40364
40365 2007-09-18  Bruno Haible  <bruno@clisp.org>
40366
40367         * modules/areadlink: New file.
40368         * lib/areadlink.h (areadlink): New declaration.
40369         * lib/areadlink.c: New file, based on lib/xreadlink.c.
40370
40371 2007-09-17  Jim Meyering  <jim@meyering.net>
40372
40373         * lib/savewd.c (ESTALE) [!defined]: Define.
40374         Reported to be required on Interix by Martin Koeppe.
40375
40376 2007-09-17  Bruno Haible  <bruno@clisp.org>
40377
40378         * gnulib-tool (func_version): Use $version.
40379
40380 2007-09-16  Bruno Haible  <bruno@clisp.org>
40381
40382         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
40383         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
40384         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
40385         Reported by Greg Schafer <gschafer@zip.com.au>.
40386
40387 2007-09-15  Bruno Haible  <bruno@clisp.org>
40388
40389         * gnulib-tool (sed): Try a little harder to make bash understand the
40390         alias.
40391         Reported by Bruce Korb <bruce.korb@gmail.com>.
40392
40393 2007-09-13  Eric Blake  <ebb9@byu.net>
40394
40395         * ChangeLog: Remove conflict markers.
40396
40397 2007-09-13  Simon Josefsson  <simon@josefsson.org>
40398
40399         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
40400         Reported by Bruno Haible <bruno@clisp.org>.
40401
40402 2007-09-12  Bruno Haible  <bruno@clisp.org>
40403
40404         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
40405         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
40406         is not defined.
40407
40408 2007-09-12  Eric Blake  <ebb9@byu.net>
40409
40410         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
40411         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
40412         Autoconf definition.
40413         * modules/euidaccess (Depends-on): Add extensions, for
40414         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
40415         * modules/fnmatch (Depends-on): Likewise.
40416         * modules/getaddrinfo (Depends-on): Likewise.
40417         * modules/getdelim (Depends-on): Likewise.
40418         * modules/getline (Depends-on): Likewise.
40419         * modules/getsubopt (Depends-on): Likewise.
40420         * modules/gettext (Depends-on): Likewise.
40421         * modules/group-member (Depends-on): Likewise.
40422         * modules/mbchar (Depends-on): Likewise.
40423         * modules/memmem (Depends-on): Likewise.
40424         * modules/mempcpy (Depends-on): Likewise.
40425         * modules/memrchr (Depends-on): Likewise.
40426         * modules/pagealign_alloc (Depends-on): Likewise.
40427         * modules/readutmp (Depends-on): Likewise.
40428         * modules/stpcpy (Depends-on): Likewise.
40429         * modules/stpncpy (Depends-on): Likewise.
40430         * modules/strchrnul (Depends-on): Likewise.
40431         * modules/strndup (Depends-on): Likewise.
40432         * modules/strsep (Depends-on): Likewise.
40433         * modules/strverscmp (Depends-on): Likewise.
40434         * modules/vasprintf (Depends-on): Likewise.
40435         * modules/wcwidth (Depends-on): Likewise.
40436         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
40437         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
40438         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
40439         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
40440         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
40441         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40442         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
40443         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
40444         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
40445         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40446         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40447         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
40448         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
40449         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
40450         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
40451         * m4/readutmp.m4 (gl_READUTMP): Likewise.
40452         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40453         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
40454         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40455         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
40456         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40457         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
40458         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
40459         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
40460         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
40461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40462         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
40463         so that lock.m4 can be used in gettext without extensions module.
40464
40465 2007-09-11  Bruno Haible  <bruno@clisp.org>
40466
40467         * m4/isc-posix.m4: Remove file.
40468         Suggested by Eric Blake.
40469
40470 2007-09-11  Eric Blake  <ebb9@byu.net>
40471
40472         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
40473
40474 2007-09-10  Bruno Haible  <bruno@clisp.org>
40475
40476         * posix-modules: Fix typo in error message.
40477         Reported by Matt <mkraai@beckman.com>.
40478
40479 2007-09-09  Bruno Haible  <bruno@clisp.org>
40480
40481         * doc/functions/getdelim.texi: Update list of platforms lacking the
40482         function.
40483         * doc/functions/getline.texi: Likewise.
40484
40485 2007-09-09  Jim Meyering  <jim@meyering.net>
40486
40487         * lib/hash.c (hash_initialize): Detect calloc failure.
40488         Reported by Bruno Haible.
40489
40490 2007-09-09  Bruno Haible  <bruno@clisp.org>
40491
40492         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
40493         malloc or realloc fails.
40494
40495 2007-09-09  Bruno Haible  <bruno@clisp.org>
40496
40497         * modules/getcwd (Depends-on): Add malloc-posix.
40498         * modules/glob (Depends-on): Likewise.
40499         * modules/putenv (Depends-on): Likewise.
40500         * modules/strdup (Depends-on): Likewise.
40501         * modules/getdelim (Depends-on): Add realloc-posix.
40502         * modules/read-file (Depends-on): Likewise.
40503
40504 2007-09-09  Bruno Haible  <bruno@clisp.org>
40505
40506         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
40507         (gl_FUNC_MALLOC_POSIX): Require it.
40508         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
40509         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
40510         * modules/realloc (Files): Add m4/malloc.m4.
40511         * modules/calloc (Files): Likewise.
40512
40513 2007-09-09  Bruno Haible  <bruno@clisp.org>
40514
40515         * modules/malloc-posix: New file.
40516         * modules/malloc (Depends-on): Add malloc-posix.
40517         * lib/malloc.c: Include errno.h.
40518         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
40519         and a POSIX-compatible malloc into a single function. Set ENOMEM
40520         when returning NULL.
40521         * m4/malloc.m4: New file.
40522         * doc/functions/malloc.texi: Mention the malloc-posix module.
40523         * lib/stdlib_.h (malloc): New declaration.
40524         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
40525         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
40526         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
40527         and HAVE_MALLOC_POSIX.
40528
40529 2007-09-09  Bruno Haible  <bruno@clisp.org>
40530
40531         * modules/realloc-posix: New file.
40532         * modules/realloc (Depends-on): Add realloc-posix.
40533         * lib/realloc.c: Include errno.h.
40534         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
40535         and a POSIX-compatible realloc into a single function. Set ENOMEM
40536         when returning NULL.
40537         * m4/realloc.m4: New file.
40538         * doc/functions/realloc.texi: Mention the realloc-posix module.
40539         * lib/stdlib_.h (realloc): New declaration.
40540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
40541         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
40542         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
40543         and HAVE_REALLOC_POSIX.
40544
40545 2007-09-09  Bruno Haible  <bruno@clisp.org>
40546
40547         * modules/calloc-posix: New file.
40548         * modules/calloc (Depends-on): Add calloc-posix.
40549         * lib/calloc.c: Include errno.h.
40550         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
40551         and a POSIX-compatible calloc into a single function. Set ENOMEM
40552         when returning NULL.
40553         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
40554         * doc/functions/calloc.texi: Mention the calloc-posix module.
40555         * lib/stdlib_.h (calloc): New declaration.
40556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
40557         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
40558         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
40559         and HAVE_CALLOC_POSIX.
40560
40561 2007-09-09  Bruno Haible  <bruno@clisp.org>
40562
40563         Allow for modules to show an arbitrary notice.
40564         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
40565         * gnulib-tool: New option --extract-notice.
40566         (func_usage): Document it.
40567         (sed_extract_prog): Update.
40568         (func_get_notice): New function.
40569         (func_modules_notice): New function.
40570         (func_import, func_create_testdir): Invoke it.
40571         Suggested by Jim Meyering.
40572
40573 2007-09-09  Bruno Haible  <bruno@clisp.org>
40574
40575         * gnulib-tool: New options --verbose, --quiet.
40576         (func_usage): Document them.
40577         (verbose): New variable.
40578         (func_execute_command): New function.
40579         (func_import): Don't show the module list and the file list if
40580         $verbose < 0.
40581         (func_create_testdir): Likewise. Use func_execute_command.
40582         (func_create_megatestdir): Use func_execute_command.
40583
40584 2007-09-08  Bruno Haible  <bruno@clisp.org>
40585
40586         * gnulib-tool (func_import): Prefer rsync over wget when available,
40587         for fetching the PO files.
40588
40589 2007-09-08  Bruno Haible  <bruno@clisp.org>
40590
40591         * posix-modules: New file. Portions copied from gnulib-tool.
40592         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
40593
40594 2007-09-08  Jim Meyering  <jim@meyering.net>
40595
40596         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
40597         * lib/fpending.h: Rename from __fpending.h.
40598         * lib/fpending.c: Rename from __fpending.c.
40599         Include "fpending.h", not "__fpending.h".
40600         * lib/__fpending.h, lib/__fpending.c: Remove files.
40601         * modules/fpending (Files): Reflect new file names.
40602         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
40603
40604 2007-09-08  Bruno Haible  <bruno@clisp.org>
40605
40606         * m4/inttypes-h.m4: Remove stub file.
40607
40608 2007-09-07  Simon Josefsson  <simon@josefsson.org>
40609
40610         * doc/headers/stdint.texi: Discuss #include_next issue.
40611
40612 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
40613
40614         * build-aux/bootstrap: Remove obsolete comment about wget --help.
40615
40616 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40617
40618         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
40619         in variable name.
40620
40621 2007-09-03  Jim Meyering  <jim@meyering.net>
40622
40623         New module: git-version-gen.
40624         * modules/git-version-gen: New file.
40625
40626         Import changes from coreutils for bootstrap script.
40627
40628         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
40629
40630         bootstrap: uses rsync to download the .po files
40631         * build-aux/bootstrap (po_download_command_format): New global.
40632         (download_po_files): Use rsync.
40633         (update_po_files): Don't remove .po files after download,
40634         so future rsync runs can take advantage of the copies.
40635
40636         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
40637
40638         Solve the unnecessary-.po-file-regeneration problem once and for all.
40639         * build-aux/bootstrap (download_po_files): New function, renamed from
40640         get_translations.  Now, downloads, but doesn't update LINGUAS.
40641         (update_po_files): New function.
40642
40643         bootstrap: Ignore more.
40644         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
40645         uniwidth to e.g., lib/.gitignore.
40646         (slurp): Handle the sys_stat_.h -> sys mapping, too.
40647
40648         * build-aux/bootstrap: New setting: vc_ignore.
40649         (insert_sorted_if_absent): Create $file if absent.
40650         Adapt to new, possibly empty, list: $vc_ignore.
40651
40652         bootstrap: generate more ignorable names
40653         * build-aux/bootstrap (slurp): When generating ignorable names,
40654         also map .sin to .sed, .gperf to .c, and .y to .c.
40655
40656 2007-09-03  Jim Meyering  <jim@meyering.net>
40657
40658         * build-aux/git-version-gen: New file, from coreutils.  For details, see
40659         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
40660
40661 2007-09-02  Bruno Haible  <bruno@clisp.org>
40662
40663         Fix mis-recognition of 'mcs' on QNX 6.
40664         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
40665         output contains the string "Mono".
40666         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
40667         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
40668
40669 2007-09-01  Bruno Haible  <bruno@clisp.org>
40670
40671         Fix collision between uniwidth/* and linebreak modules.
40672         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
40673         u32_width): Remove declarations.
40674         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
40675         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
40676         streq3, streq2, streq1, streq0): Remove functions.
40677         (STREQ): Remove macro.
40678         (is_cjk_encoding): Remove function.
40679         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
40680         (uc_width, u8_width, u16_width, u32_width): Remove functions.
40681         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
40682         * NEWS: Document the change.
40683
40684 2007-09-01  Bruno Haible  <bruno@clisp.org>
40685
40686         * lib/streq.h: Add double-inclusion guard.
40687
40688 2007-09-01  Karl Berry  <karl@gnu.org>
40689
40690         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
40691
40692 2007-08-28  Jim Meyering  <jim@meyering.net>
40693
40694         Rename mreadlink_with_size to areadlink_with_size.
40695         * NEWS: Document the change.
40696         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
40697         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
40698         * lib/mreadlink.h: Rename this to...
40699         * lib/areadlink.h: ...this.
40700         * modules/mreadlink-with-size: Rename this to...
40701         * modules/areadlink-with-size: ...this.
40702         * lib/canonicalize.c: Reflect the renaming.
40703         * modules/canonicalize: Likewise.
40704
40705 2007-08-26  Bruno Haible  <bruno@clisp.org>
40706
40707         * gnulib-tool (func_import): When deciding which files to remove,
40708         consider also dangling symbolic links.
40709         Reported by Eric Blake.
40710
40711 2007-08-26  Bruno Haible  <bruno@clisp.org>
40712
40713         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
40714
40715 2007-08-23  Simon Josefsson  <simon@josefsson.org>
40716
40717         * lib/readline.c: Don't include getline.h, the prototype is now
40718         found in stdio.h.
40719
40720 2007-08-23  Jim Meyering  <jim@meyering.net>
40721
40722         Getdelim touchup.
40723         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
40724         around the funlockfile call, since funlockfile never sets errno.
40725         Don't set errno upon failed realloc.
40726
40727 2007-08-22  Eric Blake  <ebb9@byu.net>
40728
40729         Getline touchups.
40730         * lib/getdelim.c (getdelim): Revert regression that required *n to
40731         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
40732         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
40733         getdelim, rather than whether implementation is missing.
40734         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
40735         * lib/stdio_.h (getline): Also declare if replacement is
40736         required.
40737         * doc/functions/getdelim.texi: New file.
40738         * doc/functions/getline.texi: Likewise.
40739         * doc/gnulib.texi (Function Substitutes): Add new files.
40740         Reported by Bruno Haible.
40741
40742 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
40743
40744         * users.txt: Add Guile.
40745
40746 2007-08-22  Eric Blake  <ebb9@byu.net>
40747
40748         * tests/test-getdelim.c (main): Use remove, not unlink.
40749         * tests/test-getline.c (main): Likewise.
40750
40751         Move getline and getdelim into stdio.h, per POSIX 200x.
40752         * modules/getline (Files): Remove getline.h.
40753         (Depends-on): Add stdio.
40754         (configure.ac): Add module indicator.
40755         * modules/getdelim (Files): Remove getdelim.h.
40756         (Depends-on): Add stdio.
40757         (configure.ac): Add module indicator.
40758         * modules/stdio (Makefile.am): Work with new indicators.
40759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40760         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
40761         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40762         * lib/getdelim.h: Delete.
40763         * lib/getline.h: Delete.
40764         * lib/stdio_.h (getdelim, getline): Declare.
40765         * modules/getdelim-tests: New module.
40766         * modules/getline-tests: Likewise.
40767         * tests/test-getdelim.c: New file.
40768         * tests/test-getline.c: Likewise.
40769         * NEWS: Document the change.
40770         * lib/getline.c: Update choice of header.
40771         * lib/csharpcomp.c: Likewise.
40772         * lib/getpass.c: Likewise.
40773         * lib/javacomp.c: Likewise.
40774         * lib/javaversion.c: Likewise.
40775         * lib/yesno.c: Likewise.
40776         * lib/getdelim.c: Likewise.
40777         (getdelim): Set errno on failure, and avoid memory leak.
40778
40779 2007-08-19  Bruno Haible  <bruno@clisp.org>
40780
40781         * modules/closein (Depends-on): Add freadahead.
40782         * lib/closein.c: Include freadahead.h.
40783         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
40784         is zero.
40785
40786 2007-08-19  Bruno Haible  <bruno@clisp.org>
40787
40788         * modules/freadahead-tests: New file.
40789         * tests/test-freadahead.sh: New file.
40790         * tests/test-freadahead.c: New file.
40791
40792         * modules/freadahead: New file.
40793         * lib/freadahead.h: New file.
40794         * lib/freadahead.c: New file.
40795         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
40796         fbufmode, fpurge, freadable, fwritable.
40797
40798 2007-08-19  Eric Blake  <ebb9@byu.net>
40799
40800         Test yesno in combination with closein.
40801         * lib/yesno.c (yesno): Document use of stdin.
40802         * modules/yesno-tests (Files): New module.
40803         * tests/test-yesno.c (main): New file.
40804         * tests/test-yesno.sh: Likewise.
40805
40806 2007-08-19  Bruno Haible  <bruno@clisp.org>
40807
40808         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
40809         * lib/fseeko.c (rpl_fseeko): Likewise.
40810         * lib/fseterr.c (fseterr): Likewise.
40811
40812 2007-08-19  Bruno Haible  <bruno@clisp.org>
40813
40814         * tests/test-lseek.c (main): Disable a test for BeOS.
40815         * doc/functions/lseek.texi: Document the BeOS bug.
40816
40817 2007-08-19  Bruno Haible  <bruno@clisp.org>
40818             Eric Blake  <ebb9@byu.net>
40819
40820         * lib/lseek.c: Include <sys/stat.h>.
40821         (rpl_lseek): Add workaround code also for Unix platforms.
40822         Needed for BeOS.
40823         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
40824         * doc/functions/lseek.texi: Document BeOS definiency.
40825
40826 2007-08-18  Bruno Haible  <bruno@clisp.org>
40827
40828         * modules/fstrcmp-tests: New file.
40829         * tests/test-fstrcmp.c: New file.
40830
40831 2007-08-18  Bruno Haible  <bruno@clisp.org>
40832
40833         * modules/fstrcmp: New file, from GNU gettext with modifications.
40834         * lib/fstrcmp.h: New file, from GNU gettext.
40835         * lib/fstrcmp.c: New file, from GNU gettext.
40836         * MODULES.html.sh (String handling): Add fstrcmp.
40837
40838 2007-08-18  Bruno Haible  <bruno@clisp.org>
40839
40840         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
40841         'bool'.
40842         (diag, compareseq): Remove const from the ctxt argument.
40843         (USE_HEURISTIC): Undefine at the end.
40844
40845 2007-08-18  Jim Meyering  <jim@meyering.net>
40846
40847         New file: lib/idcache.h
40848         * NEWS: Mention the addition.
40849         * modules/idcache (Files): Add lib/idcache.h
40850         * lib/idcache.c: Include "idcache.h".
40851         Don't include <sys/types.h>.
40852         Add a FIXME comment.
40853         Move file-scoped "static" declarations to the top.
40854         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
40855
40856 2007-08-17  Bruno Haible  <bruno@clisp.org>
40857         and Paul Eggert  <eggert@cs.ucla.edu>
40858
40859         * MODULES.html.sh: Add diffseq.
40860         * modules/diffseq: New file.
40861         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
40862         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
40863
40864 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40865
40866         Import changes from coreutils for bootstrap script.
40867
40868         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
40869
40870         * build-aux/bootstrap (slurp): Work even in environments where
40871         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
40872         current code does not slurp files whose names start with ".", and
40873         this looks like it might be a troublesome area.
40874
40875         2007-07-11  Jim Meyering  <jim@meyering.net>
40876
40877         If there's a GPL vN copyright comment, require that N == 3.
40878
40879         2007-07-08  Jim Meyering  <jim@meyering.net>
40880
40881         Run the coreutils-specific code only if tests/Makefile.am.in exists.
40882         * build-aux/bootstrap (mam_template): Move definition out of loop.
40883
40884         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
40885
40886         * build-aux/bootstrap (symlink_to_dir): Rename function from
40887         symlink_to_gnulib.  Add a directory parameter.  Update all
40888         callers.
40889         (cp_mark_as_generated): Also check for -- and link to -- files in
40890         gl/.
40891
40892         2007-07-08  Jim Meyering  <jim@meyering.net>
40893
40894         Adapt to deeper hierarchy in gnulib.
40895         * build-aux/bootstrap (symlink_to_dir): If the destination
40896         directory doesn't exist, create it. This is required at least for
40897         "lib/uniwidth/cjk.h".
40898
40899         2007-05-15  Jim Meyering  <jim@meyering.net>
40900
40901         * build-aux/bootstrap: Now that generated Makefile.am files
40902         are no longer under version control, they must be created at
40903         bootstrap time.
40904
40905 2007-08-14  Ben Pfaff  <blp@gnu.org>
40906
40907         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
40908
40909 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40910
40911         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
40912         given the changes below.
40913         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
40914         even on hosts that have padding bits beyond the supported 64.
40915
40916 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
40917
40918         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
40919         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
40920         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
40921         depends on it.
40922         (xstrtol_error): Remove.
40923         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
40924         but with a different signature.
40925         (ATTRIBUTE_NORETURN, __attribute__): New macros.
40926         * lib/xstrtol-error.c: Include exitfail.h.
40927         (xstrtol_fatal): New function, with a different signature from the
40928         old xstrtol_error, so that the caller need not worry about passing
40929         in an exit status, or about storage management of the option argument.
40930         (xstrtol_error): Now a static function.  Redo signature to
40931         implement xstrtol_fatal.  Output the correct number of hyphens in
40932         front of the option so that the caller need not worry about
40933         storage management.
40934         (N_): New macro.
40935         (_): Remove; not used now.
40936         * modules/xstrtol: Depend on getopt.
40937         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
40938         of old STRTOL_FATAL_ERROR macro.
40939         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
40940         of test program.
40941         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
40942         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
40943
40944 2007-08-08  Eric Blake  <ebb9@byu.net>
40945
40946         * lib/xstrtol-error.c: Add missing include.
40947
40948         Move xstrtol messages into gnulib domain, when --pobase is used.
40949         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
40950         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
40951         * modules/xstrtol (Files): Distribute new file.
40952         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
40953         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
40954         * tests/test-xstrtol.c: ...into new file.
40955         * tests/test-xstrtoul.c: Also test xstrtoul.
40956         * tests/test-xstrtoimax.c: Also test xstrtoimax.
40957         * tests/test-xstrtoumax.c: Also test xstrtoumax.
40958         * tests/test-xstrtol.sh: Drive the tests.
40959         * tests/test-xstrtoimax.sh: Likewise.
40960         * tests/test-xstrtoumax.sh: Likewise.
40961         * modules/xstrtol-tests: New module.
40962         * modules/xstrtoimax-tests: Likewise.
40963         * modules/xstrtoumax-tests: Likewise.
40964
40965 2007-08-08  Jim Meyering  <jim@meyering.net>
40966
40967         New function: mfile_name_concat.
40968         * lib/filenamecat.c (mfile_name_concat): New function, just like
40969         file_name_concat, but return NULL upon failure rather than exiting
40970         with a diagnostic.
40971         * lib/filenamecat.h: Declare it.
40972
40973 2007-08-07  Bruno Haible  <bruno@clisp.org>
40974
40975         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
40976         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
40977         warning from gcc.
40978         Reported by Eric Blake.
40979
40980 2007-08-07  Simon Josefsson  <simon@josefsson.org>
40981
40982         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
40983         * modules/crypto/arcfour (License): Likewise.
40984         * modules/crypto/des-tests (License): Likewise.
40985         * modules/crypto/gc-arctwo-tests (License): Likewise.
40986         * modules/crypto/gc-des-tests (License): Likewise.
40987         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
40988         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
40989         * modules/crypto/gc-md2-tests (License): Likewise.
40990         * modules/crypto/gc-md4-tests (License): Likewise.
40991         * modules/crypto/gc-md5-tests (License): Likewise.
40992         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
40993         * modules/crypto/gc-rijndael-tests (License): Likewise.
40994         * modules/crypto/gc-sha1-tests (License): Likewise.
40995         * modules/crypto/gc-tests (License): Likewise.
40996         * modules/crypto/hmac-md5 (License): Likewise.
40997         * modules/crypto/hmac-sha1 (License): Likewise.
40998         * modules/crypto/md2-tests (License): Likewise.
40999         * modules/crypto/md4-tests (License): Likewise.
41000         * modules/crypto/md5 (License): Likewise.
41001         * modules/crypto/rijndael (License): Likewise.
41002         * modules/crypto/sha1 (License): Likewise.
41003         * modules/memxor (License): Likewise.
41004
41005 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
41006         and Bruno Haible  <bruno@clisp.org>
41007
41008         * NEWS: Describe interface changes to human, xstrtol.
41009         * lib/human.h: Include <xstrtol.h>.
41010         (human_options): Return enum strtol_error, not int.  Remove
41011         bool arg; take int * instead.
41012         * lib/human.c: Don't include "gettext.h".
41013         (_): Remove; no longer used.
41014         Don't include <xstrtol.h>, since human.h does it.
41015         (human_options): Adjust to abovementioned interface changes.
41016         Do not report error to stderr; that's now the caller's
41017         responsibility.
41018         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
41019         interface change.
41020         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
41021         Str, Argument_type_string.  All uses changed.  Put " argument"
41022         in diagnostics to make them clearer.  Change wording of suffix
41023         message for clarity.
41024         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
41025         Argument_type_string.
41026         (STRTOL_FATAL_WARN): Remove; no longer used.
41027         * modules/human (Depends-on): Remove gettext-h.
41028
41029 2007-08-06  Simon Josefsson  <simon@josefsson.org>
41030
41031         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
41032
41033 2007-07-31  Bruno Haible  <bruno@clisp.org>
41034
41035         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
41036         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
41037         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
41038
41039 2007-07-31  Bruno Haible  <bruno@clisp.org>
41040
41041         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
41042         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
41043
41044 2007-07-30  Bruno Haible  <bruno@clisp.org>
41045
41046         * modules/base64 (License): Use the synonymous term "LGPLv2+".
41047         * modules/c-ctype (License): Likewise.
41048         * modules/c-strcase (License): Likewise.
41049         * modules/check-version (License): Likewise.
41050         * modules/iconv (License): Likewise.
41051         * modules/iconv_open (License): Likewise.
41052         * modules/read-file (License): Likewise.
41053         * modules/striconv (License): Likewise.
41054         * modules/strverscmp (License): Likewise.
41055         * modules/vasprintf (License): Likewise.
41056         * modules/crypto/des (License): Likewise.
41057         * modules/crypto/gc (License): Likewise.
41058         * modules/crypto/gc-arcfour (License): Likewise.
41059         * modules/crypto/gc-arctwo (License): Likewise.
41060         * modules/crypto/gc-des (License): Likewise.
41061         * modules/crypto/gc-hmac-md5 (License): Likewise.
41062         * modules/crypto/gc-hmac-sha1 (License): Likewise.
41063         * modules/crypto/gc-md2 (License): Likewise.
41064         * modules/crypto/gc-md4 (License): Likewise.
41065         * modules/crypto/gc-md5 (License): Likewise.
41066         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
41067         * modules/crypto/gc-random (License): Likewise.
41068         * modules/crypto/gc-rijndael (License): Likewise.
41069         * modules/crypto/gc-sha1 (License): Likewise.
41070         * modules/crypto/md2 (License): Likewise.
41071         * modules/crypto/md4 (License): Likewise.
41072
41073 2007-07-30  Jim Meyering  <jim@meyering.net>
41074
41075         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
41076         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
41077         it has valid stat data.  This bug would cause du not to count the
41078         sizes of inaccessible directories.
41079         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
41080         in <http://bugzilla.redhat.com/250077>.
41081
41082 2007-07-25  Peter O'Gorman  <peter@pogma.com>
41083             Bruno Haible  <bruno@clisp.org>
41084
41085         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
41086         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
41087         #include_next, gives a diagnostic about it, but reports no error in
41088         the exit code.
41089         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41090
41091 2007-07-24  Ben Pfaff  <blp@gnu.org>
41092
41093         Improve name: "count-one-bits" is better than "popcount".
41094         * MODULES.html.sh: Update name.
41095         * lib/popcount.h: Renamed lib/count-one-bits.h.
41096         (popcount): Renamed count_one_bits.
41097         (popcountl): Renamed count_one_bits_l.
41098         (popcountll): Renamed count_one_bits_ll.
41099         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
41100         * modules/popcount: Renamed module/count-one-bits.
41101         * modules/popcount-tests: Renamed module/count-one-bits-tests.
41102         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
41103
41104 2007-07-23  Ben Pfaff  <blp@gnu.org>
41105
41106         * lib/popcount.h (popcount32): Reduce size of constants, to allow
41107         better code generation, and add U to large constants to avoid
41108         warnings, in non-GCC case.
41109         Suggested by Bruno Haible.
41110
41111 2007-07-23  Ben Pfaff  <blp@gnu.org>
41112
41113         * lib/popcount.h: Use verify_true instead of if...abort.
41114         * modules/popcount: Depend on verify module.
41115         Suggested by Jim Meyering.
41116
41117 2007-07-23  Bruno Haible  <bruno@clisp.org>
41118
41119         * gnulib-tool (func_import): Create a .cvsignore file also when the
41120         directory is not yet in CVS but the toplevel directory is. When
41121         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
41122         Reported by Karl Berry.
41123
41124 2007-07-22  Ben Pfaff  <blp@gnu.org>
41125
41126         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
41127         case.
41128         Suggested by Eric Blake.
41129
41130 2007-07-22  Ben Pfaff  <blp@gnu.org>
41131
41132         New module: popcount.
41133         * MODULES.html.sh: Add popcount.
41134         * modules/popcount: New file.
41135         * modules/popcount-tests: New file.
41136         * tests/test-popcount.c: New file.
41137         * lib/popcount.h: New file.
41138         * m4/popcount.m4: New file.
41139
41140 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41141
41142         * build-aux/announce-gen: Update to GPLv3.
41143
41144         * build-aux/config.guess: Update from config.
41145
41146 2007-07-21  Bruno Haible  <bruno@clisp.org>
41147
41148         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
41149         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
41150
41151 2007-07-20  Jim Meyering  <jim@meyering.net>
41152
41153         * check-module: Diagnose a self-dependency.
41154
41155 2007-07-19  Bruno Haible  <bruno@clisp.org>
41156
41157         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
41158         empty.
41159         Reported by Eric Blake.
41160
41161 2007-07-18  Bruno Haible  <bruno@clisp.org>
41162
41163         * gnulib-tool: New options --po-base, --po-domain.
41164         (func_usage): Document them.
41165         (pobase, po_domain): New variables.
41166         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
41167         DEFAULT_TEXT_DOMAIN.
41168         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
41169         (func_import): Consider pobase and po_domain. Create a po/ directory.
41170         (func_create_testdir): Set pobase and po_domain to empty.
41171         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
41172         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
41173
41174 2007-07-18  Bruno Haible  <bruno@clisp.org>
41175
41176         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41177         EXTRA_DIST augmentation for files in build-aux/.
41178
41179 2007-07-16  Bruno Haible  <bruno@clisp.org>
41180
41181         * modules/lseek (License): Use the synonymous term "LGPLv2+".
41182         * modules/getdelim (License): Likewise.
41183
41184 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41185
41186         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
41187         * modules/d-type (License): Likewise.
41188         * modules/extensions (License): Likewise.
41189         * modules/fnmatch (License): Likewise.
41190         * modules/fseeko (License): Likewise.
41191         * modules/getaddrinfo (License): Likewise.
41192         * modules/getline (License): Likewise.
41193         * modules/getlogin_r (License): Likewise.
41194         * modules/getpass (License): Likewise.
41195         * modules/gettimeofday (License): Likewise.
41196         * modules/glob (License): Likewise.
41197         * modules/inet_ntop (License): Likewise.
41198         * modules/malloc (License): Likewise.
41199         * modules/malloca (License): Likewise.
41200         * modules/memmem (License): Likewise.
41201         * modules/mempcpy (License): Likewise.
41202         * modules/memset (License): Likewise.
41203         * modules/minmax (License): Likewise.
41204         * modules/mktime (License): Likewise.
41205         * modules/netinet_in (License): Likewise.
41206         * modules/pathmax (License): Likewise.
41207         * modules/poll (License): Likewise.
41208         * modules/regex (License): Likewise.
41209         * modules/snprintf (License): Likewise.
41210         * modules/stdbool (License): Likewise.
41211         * modules/stdint (License): Likewise.
41212         * modules/stdio (License): Likewise.
41213         * modules/strcase (License): Likewise.
41214         * modules/strcasestr (License): Likewise.
41215         * modules/strdup (License): Likewise.
41216         * modules/string (License): Likewise.
41217         * modules/strndup (License): Likewise.
41218         * modules/strnlen (License): Likewise.
41219         * modules/strpbrk (License): Likewise.
41220         * modules/strptime (License): Likewise.
41221         * modules/strsep (License): Likewise.
41222         * modules/sys_select (License): Likewise.
41223         * modules/sys_socket (License): Likewise.
41224         * modules/sys_stat (License): Likewise.
41225         * modules/sys_time (License): Likewise.
41226         * modules/time (License): Likewise.
41227         * modules/time_r (License): Likewise.
41228         * modules/timegm (License): Likewise.
41229         * modules/unistd (License): Likewise.
41230         * modules/vsnprintf (License): Likewise.
41231         * modules/wctype (License): Likewise.
41232
41233 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41234
41235         * modules/argz (License): LGPLv2+.
41236
41237 2007-07-15  Karl Berry  <karl@gnu.org>
41238
41239         * doc/gnulib.texi: revise node structure per new fdl.texi.
41240
41241 2007-07-14  Bruno Haible  <bruno@clisp.org>
41242
41243         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
41244         the output file.
41245         * lib/uniname/uninames.h: Regenerated.
41246
41247 2007-07-14  Karl Berry  <karl@gnu.org>
41248
41249         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
41250         omitting sectioning and index commands.
41251
41252 2007-07-13  Bruno Haible  <bruno@clisp.org>
41253
41254         New gnulib-tool option --more-symlinks.
41255         * gnulib-tool (func_usage): Document --more-symlinks.
41256         (do_copyrights): New variable.
41257         Recognize option --more-symlinks.
41258         (func_import): Don't add a copyright notice transform to
41259         sed_transform_lib_file if do_copyrights is empty.
41260
41261 2007-07-13  Bruno Haible  <bruno@clisp.org>
41262
41263         * lib/vasnprintf.c (decimal_point_char): Define also if
41264         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
41265         && !NEED_PRINTF_DIRECTIVE_A.
41266         Reported by Clemens Koller <clemens.koller@anagramm.de> via
41267         Gary V. Vaughan <gary@gnu.org>.
41268
41269 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
41270
41271         * lib/inttypes_.h: Undo previous change, since it was fixed
41272         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
41273
41274 2007-07-13  Bruno Haible  <bruno@clisp.org>
41275
41276         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
41277         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
41278
41279 2007-07-13  Jim Meyering  <jim@meyering.net>
41280
41281         df: Don't fail for Tru64's "file-on-file mount".
41282         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
41283         so we fall through and use statfs instead.  Details here:
41284         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
41285         Reported by Albert Chin.
41286
41287 2007-07-13  Bruno Haible  <bruno@clisp.org>
41288
41289         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
41290         * modules/configmake (License): Likewise.
41291         * modules/gettext (License): Likewise.
41292         * modules/gettext-h (License): Likewise.
41293         * modules/include_next (License): Likewise.
41294         * modules/link-warning (License): Likewise.
41295         * modules/localcharset (License): Likewise.
41296         * modules/localename (License): Likewise.
41297         * modules/lock (License): Likewise.
41298         * modules/relocatable-lib-lgpl (License): Likewise.
41299         * modules/size_max (License): Likewise.
41300         * modules/vasnprintf (License): Likewise.
41301         * modules/wchar (License): Likewise.
41302         * modules/xsize (License): Likewise.
41303
41304 2007-07-13  Bruno Haible  <bruno@clisp.org>
41305
41306         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
41307         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
41308
41309 2007-07-12  Bruno Haible  <bruno@clisp.org>
41310
41311         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
41312         in the modules files.
41313
41314 2007-07-11  Karl Berry  <karl@gnu.org>
41315
41316         * MODULES.html.sh (func_module): use
41317          sed -e '\|^'"${includefile}"'$|d'
41318          instead of /.../d, to avoid errors on $includefile's containing /.
41319
41320 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
41321
41322         * gnulib-tool (func_import): Avoid duplication of --avoid
41323         statements
41324         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
41325         names to `_' in variable names.
41326
41327 2007-07-10  Eric Blake  <ebb9@byu.net>
41328
41329         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
41330         * NEWS: Document this change.
41331
41332 2007-07-08  Bruno Haible  <bruno@clisp.org>
41333
41334         Update to Unicode 5.0.
41335         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
41336         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
41337         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
41338         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
41339         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
41340         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
41341         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
41342         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
41343         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
41344         U+10A3F, U+1D242..U+1D244.
41345         (nonspacing_table_ind): Update.
41346         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
41347         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
41348
41349 2007-07-08  Bruno Haible  <bruno@clisp.org>
41350
41351         Update to Unicode 5.0.
41352         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
41353         code transform. Extend the name index field of unicode_name_to_code and
41354         unicode_code_to_name from 16 to 24 bits.
41355         * lib/uniname/uniname.c (unicode_character_name,
41356         unicode_name_character): Add the range 0x12xxx to the code transform.
41357         * lib/uniname/uninames.h: Regenerated.
41358         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
41359
41360 2007-07-07  Bruno Haible  <bruno@clisp.org>
41361
41362         * modules/wcwidth-tests: New file.
41363         * tests/test-wcwidth.c: New file.
41364
41365         Work around MacOS X wcwidth() bug.
41366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
41367         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
41368         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
41369         original wcwidth in non-UTF-8 locales.
41370         * modules/wcwidth (Depends-on): Add localcharset, streq,
41371         uniwidth/width.
41372         * doc/functions/wcwidth.texi: Update.
41373
41374 2007-07-07  Bruno Haible  <bruno@clisp.org>
41375
41376         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
41377         (wcwidth): New declaration.
41378         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
41379         macros.
41380         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
41381         here. Prepare for creating <wchar.h> unconditionally.
41382         * modules/wchar (Depends-on): Add link-warning.
41383         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
41384         REPLACE_WCWIDTH, and GL_LINK_WARNING.
41385         * lib/wcwidth.h: Remove file.
41386         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
41387         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
41388         * modules/wcwidth (Files): Remove lib/wcwidth.h.
41389         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
41390         (Include): Replace wcwidth.h with <wchar.h>.
41391         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
41392         * lib/mbchar.h: Don't include wcwidth.h.
41393         * lib/mbswidth.c: Likewise.
41394         * NEWS: Mention the change.
41395
41396 2007-07-07  Bruno Haible  <bruno@clisp.org>
41397
41398         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
41399         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
41400         definition with an external declaration.
41401         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
41402         defined as a function. Remove AC_C_INLINE requirement.
41403         * modules/wcwidth (Files): Add lib/wcwidth.c.
41404         (Makefile.am): Remove redundant statement.
41405
41406 2007-07-07  Bruno Haible  <bruno@clisp.org>
41407
41408         * MODULES.html.sh (Unicode string functions): Add the new modules.
41409
41410         * tests/uniwidth/test-u32-strwidth.c: New file.
41411         * modules/uniwidth/u32-strwidth-tests: New file.
41412
41413         * lib/uniwidth/u32-strwidth.c: New file.
41414         * modules/uniwidth/u32-strwidth: New file.
41415
41416         * tests/uniwidth/test-u16-strwidth.c: New file.
41417         * modules/uniwidth/u16-strwidth-tests: New file.
41418
41419         * lib/uniwidth/u16-strwidth.c: New file.
41420         * modules/uniwidth/u16-strwidth: New file.
41421
41422         * tests/uniwidth/test-u8-strwidth.c: New file.
41423         * modules/uniwidth/u8-strwidth-tests: New file.
41424
41425         * lib/uniwidth/u8-strwidth.c: New file.
41426         * modules/uniwidth/u8-strwidth: New file.
41427
41428         * tests/uniwidth/test-u32-width.c: New file.
41429         * modules/uniwidth/u32-width-tests: New file.
41430
41431         * lib/uniwidth/u32-width.c: New file.
41432         * modules/uniwidth/u32-width: New file.
41433
41434         * tests/uniwidth/test-u16-width.c: New file.
41435         * modules/uniwidth/u16-width-tests: New file.
41436
41437         * lib/uniwidth/u16-width.c: New file.
41438         * modules/uniwidth/u16-width: New file.
41439
41440         * tests/uniwidth/test-u8-width.c: New file.
41441         * modules/uniwidth/u8-width-tests: New file.
41442
41443         * lib/uniwidth/u8-width.c: New file.
41444         * modules/uniwidth/u8-width: New file.
41445
41446         * tests/uniwidth/test-uc_width.c: New file.
41447         * modules/uniwidth/width-tests: New file.
41448
41449         * lib/uniwidth/width.c: New file, from GNU libiconv.
41450         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
41451         * modules/uniwidth/width: New file.
41452
41453         * lib/uniwidth.h: New file, from GNU libiconv.
41454         * modules/uniwidth/base: New file.
41455
41456 2007-07-07  Bruno Haible  <bruno@clisp.org>
41457
41458         * lib/uniname.h: New file, from GNU gettext.
41459         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
41460         * lib/uniname/uninames.h: New file, from GNU gettext.
41461         * lib/uniname/uniname.c: New file, from GNU gettext.
41462         * tests/uniname/test-uninames.sh: New file.
41463         * tests/uniname/test-uninames.c: New file, from GNU gettext.
41464         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
41465         * modules/uniname/base: New file.
41466         * modules/uniname/uniname: New file.
41467         * modules/uniname/uniname-tests: New file.
41468         * MODULES.html.sh (Unicode string functions): Add the new modules.
41469
41470 2007-07-06  Bruno Haible  <bruno@clisp.org>
41471
41472         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
41473
41474 2007-07-06  Bruno Haible  <bruno@clisp.org>
41475
41476         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
41477         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
41478         includes <cygwin/sys_time.h> which includes <sys/select.h> which
41479         include <sys/time.h>.
41480         Reported by Eric Blake.
41481
41482 2007-07-06  Eric Blake  <ebb9@byu.net>
41483
41484         Fix testing canonicalize on cygwin.
41485         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
41486         Revert patch from 2007-06-19.
41487         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
41488         canonicalize module is also in use.
41489         * tests/test-canonicalize.c: New file.
41490         * tests/test-canonicalize.sh: Likewise.
41491         * modules/canonicalize-tests: Likewise.
41492
41493 2007-07-06  Jim Meyering  <jim@meyering.net>
41494
41495         * lib/getugroups.c (getugroups): Detect getgrent failure.
41496         Adjust comment to reflect reality: this function may return -1.
41497
41498 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
41499
41500         * build-aux/bootstrap (TP_URL,get_translations): Update to use
41501         the new TP address.
41502         (usage): Fix typo
41503         (gnulib_mk): New variable.
41504
41505 2007-07-05  Jim Meyering  <jim@meyering.net>
41506
41507         Don't let endgrent clobber errno, no matter how improbable.
41508         * lib/getugroups.c (getugroups): Save and restore errno around
41509         endgrent call.
41510
41511         Close the group DB even when failing with 2^31 or more members.
41512         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
41513
41514 2007-07-04  Jim Meyering  <jim@meyering.net>
41515
41516         * lib/getugroups.h: New file.
41517         * lib/getugroups.c: Include "getugroups.h".
41518         Remove uses of "register" keyword.
41519         Move local variable, "cp", down into scope where used.
41520         Give "username" parameter the "const" attribute.
41521         * modules/getugroups (Files): Add lib/getugroups.h
41522
41523 2007-07-04  Karl Berry  <karl@gnu.org>
41524
41525         * MODULES.html.sh (func_all_modules): Complete rename of
41526         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
41527
41528 2007-07-02  Bruno Haible  <bruno@clisp.org>
41529
41530         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
41531         mode, when inttypes.h comes from gnulib.
41532         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41533
41534 2007-07-02  Simon Josefsson  <simon@josefsson.org>
41535
41536         * NEWS: Mention lgpl module name change.
41537
41538         * modules/lgpl-2.1: Renamed from lgpl.
41539
41540         * NEWS: Mention gpl module name change.
41541
41542         * modules/gpl-3.0: New file, based on gpl-2.0.
41543
41544         * modules/gpl-2.0: Renamed from gpl.
41545
41546         * modules/gpl: Fix filename, doc/gpl.texi is now found at
41547         doc/gpl-2.0.texi.
41548
41549 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
41550
41551         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
41552         #define __STDC_LIMIT_MACROS temporarily while including
41553         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
41554         Problem reported by Joel E. Denny in
41555         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
41556
41557 2007-07-01  Bruno Haible  <bruno@clisp.org>
41558
41559         * lib/unistdio.h: New file.
41560         * lib/unistdio/u-asnprintf.h: New file.
41561         * lib/unistdio/u-asprintf.h: New file.
41562         * lib/unistdio/u-printf-args.c: New file.
41563         * lib/unistdio/u-printf-args.h: New file.
41564         * lib/unistdio/u-printf-parse.h: New file.
41565         * lib/unistdio/u-snprintf.h: New file.
41566         * lib/unistdio/u-sprintf.h: New file.
41567         * lib/unistdio/u-vasprintf.h: New file.
41568         * lib/unistdio/u-vsnprintf.h: New file.
41569         * lib/unistdio/u-vsprintf.h: New file.
41570         * lib/unistdio/ulc-asnprintf.c: New file.
41571         * lib/unistdio/ulc-asprintf.c: New file.
41572         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
41573         * lib/unistdio/ulc-printf-parse.c: New file.
41574         * lib/unistdio/ulc-snprintf.c: New file.
41575         * lib/unistdio/ulc-sprintf.c: New file.
41576         * lib/unistdio/ulc-vasnprintf.c: New file.
41577         * lib/unistdio/ulc-vasprintf.c: New file.
41578         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
41579         * lib/unistdio/ulc-vsnprintf.c: New file.
41580         * lib/unistdio/ulc-vsprintf.c: New file.
41581         * lib/unistdio/u8-asnprintf.c: New file.
41582         * lib/unistdio/u8-asprintf.c: New file.
41583         * lib/unistdio/u8-printf-parse.c: New file.
41584         * lib/unistdio/u8-snprintf.c: New file.
41585         * lib/unistdio/u8-sprintf.c: New file.
41586         * lib/unistdio/u8-vasnprintf.c: New file.
41587         * lib/unistdio/u8-vasprintf.c: New file.
41588         * lib/unistdio/u8-vsnprintf.c: New file.
41589         * lib/unistdio/u8-vsprintf.c: New file.
41590         * lib/unistdio/u8-u8-asnprintf.c: New file.
41591         * lib/unistdio/u8-u8-asprintf.c: New file.
41592         * lib/unistdio/u8-u8-snprintf.c: New file.
41593         * lib/unistdio/u8-u8-sprintf.c: New file.
41594         * lib/unistdio/u8-u8-vasnprintf.c: New file.
41595         * lib/unistdio/u8-u8-vasprintf.c: New file.
41596         * lib/unistdio/u8-u8-vsnprintf.c: New file.
41597         * lib/unistdio/u8-u8-vsprintf.c: New file.
41598         * lib/unistdio/u16-asnprintf.c: New file.
41599         * lib/unistdio/u16-asprintf.c: New file.
41600         * lib/unistdio/u16-printf-parse.c: New file.
41601         * lib/unistdio/u16-snprintf.c: New file.
41602         * lib/unistdio/u16-sprintf.c: New file.
41603         * lib/unistdio/u16-vasnprintf.c: New file.
41604         * lib/unistdio/u16-vasprintf.c: New file.
41605         * lib/unistdio/u16-vsnprintf.c: New file.
41606         * lib/unistdio/u16-vsprintf.c: New file.
41607         * lib/unistdio/u16-u16-asnprintf.c: New file.
41608         * lib/unistdio/u16-u16-asprintf.c: New file.
41609         * lib/unistdio/u16-u16-snprintf.c: New file.
41610         * lib/unistdio/u16-u16-sprintf.c: New file.
41611         * lib/unistdio/u16-u16-vasnprintf.c: New file.
41612         * lib/unistdio/u16-u16-vasprintf.c: New file.
41613         * lib/unistdio/u16-u16-vsnprintf.c: New file.
41614         * lib/unistdio/u16-u16-vsprintf.c: New file.
41615         * lib/unistdio/u32-asnprintf.c: New file.
41616         * lib/unistdio/u32-asprintf.c: New file.
41617         * lib/unistdio/u32-printf-parse.c: New file.
41618         * lib/unistdio/u32-snprintf.c: New file.
41619         * lib/unistdio/u32-sprintf.c: New file.
41620         * lib/unistdio/u32-vasnprintf.c: New file.
41621         * lib/unistdio/u32-vasprintf.c: New file.
41622         * lib/unistdio/u32-vsnprintf.c: New file.
41623         * lib/unistdio/u32-vsprintf.c: New file.
41624         * lib/unistdio/u32-u32-asnprintf.c: New file.
41625         * lib/unistdio/u32-u32-asprintf.c: New file.
41626         * lib/unistdio/u32-u32-snprintf.c: New file.
41627         * lib/unistdio/u32-u32-sprintf.c: New file.
41628         * lib/unistdio/u32-u32-vasnprintf.c: New file.
41629         * lib/unistdio/u32-u32-vasprintf.c: New file.
41630         * lib/unistdio/u32-u32-vsnprintf.c: New file.
41631         * lib/unistdio/u32-u32-vsprintf.c: New file.
41632         * tests/unistdio/test-ulc-asnprintf1.c: New file.
41633         * tests/unistdio/test-ulc-asnprintf1.h: New file.
41634         * tests/unistdio/test-ulc-printf1.h: New file.
41635         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
41636         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
41637         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
41638         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
41639         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
41640         * tests/unistdio/test-ulc-vasprintf1.c: New file.
41641         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
41642         * tests/unistdio/test-ulc-vsprintf1.c: New file.
41643         * tests/unistdio/test-u8-asnprintf1.c: New file.
41644         * tests/unistdio/test-u8-asnprintf1.h: New file.
41645         * tests/unistdio/test-u8-printf1.h: New file.
41646         * tests/unistdio/test-u8-vasnprintf1.c: New file.
41647         * tests/unistdio/test-u8-vasnprintf2.c: New file.
41648         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
41649         * tests/unistdio/test-u8-vasnprintf3.c: New file.
41650         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
41651         * tests/unistdio/test-u8-vasprintf1.c: New file.
41652         * tests/unistdio/test-u8-vsnprintf1.c: New file.
41653         * tests/unistdio/test-u8-vsprintf1.c: New file.
41654         * tests/unistdio/test-u16-asnprintf1.c: New file.
41655         * tests/unistdio/test-u16-asnprintf1.h: New file.
41656         * tests/unistdio/test-u16-printf1.h: New file.
41657         * tests/unistdio/test-u16-vasnprintf1.c: New file.
41658         * tests/unistdio/test-u16-vasnprintf2.c: New file.
41659         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
41660         * tests/unistdio/test-u16-vasnprintf3.c: New file.
41661         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
41662         * tests/unistdio/test-u16-vasprintf1.c: New file.
41663         * tests/unistdio/test-u16-vsnprintf1.c: New file.
41664         * tests/unistdio/test-u16-vsprintf1.c: New file.
41665         * tests/unistdio/test-u32-asnprintf1.c: New file.
41666         * tests/unistdio/test-u32-asnprintf1.h: New file.
41667         * tests/unistdio/test-u32-printf1.h: New file.
41668         * tests/unistdio/test-u32-vasnprintf1.c: New file.
41669         * tests/unistdio/test-u32-vasnprintf2.c: New file.
41670         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
41671         * tests/unistdio/test-u32-vasnprintf3.c: New file.
41672         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
41673         * tests/unistdio/test-u32-vasprintf1.c: New file.
41674         * tests/unistdio/test-u32-vsnprintf1.c: New file.
41675         * tests/unistdio/test-u32-vsprintf1.c: New file.
41676         * modules/unistdio/base: New file.
41677         * modules/unistdio/u-printf-args: New file.
41678         * modules/unistdio/ulc-asnprintf: New file.
41679         * modules/unistdio/ulc-asprintf: New file.
41680         * modules/unistdio/ulc-fprintf: New file.
41681         * modules/unistdio/ulc-printf-parse: New file.
41682         * modules/unistdio/ulc-snprintf: New file.
41683         * modules/unistdio/ulc-sprintf: New file.
41684         * modules/unistdio/ulc-vasnprintf: New file.
41685         * modules/unistdio/ulc-vasprintf: New file.
41686         * modules/unistdio/ulc-vfprintf: New file.
41687         * modules/unistdio/ulc-vsnprintf: New file.
41688         * modules/unistdio/ulc-vsprintf: New file.
41689         * modules/unistdio/u8-asnprintf: New file.
41690         * modules/unistdio/u8-asprintf: New file.
41691         * modules/unistdio/u8-printf-parse: New file.
41692         * modules/unistdio/u8-snprintf: New file.
41693         * modules/unistdio/u8-sprintf: New file.
41694         * modules/unistdio/u8-vasnprintf: New file.
41695         * modules/unistdio/u8-vasprintf: New file.
41696         * modules/unistdio/u8-vsnprintf: New file.
41697         * modules/unistdio/u8-vsprintf: New file.
41698         * modules/unistdio/u8-u8-asnprintf: New file.
41699         * modules/unistdio/u8-u8-asprintf: New file.
41700         * modules/unistdio/u8-u8-snprintf: New file.
41701         * modules/unistdio/u8-u8-sprintf: New file.
41702         * modules/unistdio/u8-u8-vasnprintf: New file.
41703         * modules/unistdio/u8-u8-vasprintf: New file.
41704         * modules/unistdio/u8-u8-vsnprintf: New file.
41705         * modules/unistdio/u8-u8-vsprintf: New file.
41706         * modules/unistdio/u16-asnprintf: New file.
41707         * modules/unistdio/u16-asprintf: New file.
41708         * modules/unistdio/u16-printf-parse: New file.
41709         * modules/unistdio/u16-snprintf: New file.
41710         * modules/unistdio/u16-sprintf: New file.
41711         * modules/unistdio/u16-vasnprintf: New file.
41712         * modules/unistdio/u16-vasprintf: New file.
41713         * modules/unistdio/u16-vsnprintf: New file.
41714         * modules/unistdio/u16-vsprintf: New file.
41715         * modules/unistdio/u16-u16-asnprintf: New file.
41716         * modules/unistdio/u16-u16-asprintf: New file.
41717         * modules/unistdio/u16-u16-snprintf: New file.
41718         * modules/unistdio/u16-u16-sprintf: New file.
41719         * modules/unistdio/u16-u16-vasnprintf: New file.
41720         * modules/unistdio/u16-u16-vasprintf: New file.
41721         * modules/unistdio/u16-u16-vsnprintf: New file.
41722         * modules/unistdio/u16-u16-vsprintf: New file.
41723         * modules/unistdio/u32-asnprintf: New file.
41724         * modules/unistdio/u32-asprintf: New file.
41725         * modules/unistdio/u32-printf-parse: New file.
41726         * modules/unistdio/u32-snprintf: New file.
41727         * modules/unistdio/u32-sprintf: New file.
41728         * modules/unistdio/u32-vasnprintf: New file.
41729         * modules/unistdio/u32-vasprintf: New file.
41730         * modules/unistdio/u32-vsnprintf: New file.
41731         * modules/unistdio/u32-vsprintf: New file.
41732         * modules/unistdio/u32-u32-asnprintf: New file.
41733         * modules/unistdio/u32-u32-asprintf: New file.
41734         * modules/unistdio/u32-u32-snprintf: New file.
41735         * modules/unistdio/u32-u32-sprintf: New file.
41736         * modules/unistdio/u32-u32-vasnprintf: New file.
41737         * modules/unistdio/u32-u32-vasprintf: New file.
41738         * modules/unistdio/u32-u32-vsnprintf: New file.
41739         * modules/unistdio/u32-u32-vsprintf: New file.
41740         * modules/unistdio/ulc-asnprintf-tests: New file.
41741         * modules/unistdio/ulc-vasnprintf-tests: New file.
41742         * modules/unistdio/ulc-vasprintf-tests: New file.
41743         * modules/unistdio/ulc-vsnprintf-tests: New file.
41744         * modules/unistdio/ulc-vsprintf-tests: New file.
41745         * modules/unistdio/u8-asnprintf-tests: New file.
41746         * modules/unistdio/u8-vasnprintf-tests: New file.
41747         * modules/unistdio/u8-vasprintf-tests: New file.
41748         * modules/unistdio/u8-vsnprintf-tests: New file.
41749         * modules/unistdio/u8-vsprintf-tests: New file.
41750         * modules/unistdio/u16-asnprintf-tests: New file.
41751         * modules/unistdio/u16-vasnprintf-tests: New file.
41752         * modules/unistdio/u16-vasprintf-tests: New file.
41753         * modules/unistdio/u16-vsnprintf-tests: New file.
41754         * modules/unistdio/u16-vsprintf-tests: New file.
41755         * modules/unistdio/u32-asnprintf-tests: New file.
41756         * modules/unistdio/u32-vasnprintf-tests: New file.
41757         * modules/unistdio/u32-vasprintf-tests: New file.
41758         * modules/unistdio/u32-vsnprintf-tests: New file.
41759         * modules/unistdio/u32-vsprintf-tests: New file.
41760         * MODULES.html.sh (Unicode string functions): Add the new modules.
41761
41762 2007-07-01  Bruno Haible  <bruno@clisp.org>
41763
41764         * lib/sprintf.c (sprintf): Limit the available length estimation,
41765         to avoid address wraparound.
41766         * lib/vsprintf.c (vsprintf): Likewise.
41767         * modules/sprintf-posix (Dependencies): Add stdint.
41768         * modules/vsprintf-posix (Dependencies): Likewise.
41769
41770 2007-07-01  Bruno Haible  <bruno@clisp.org>
41771
41772         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
41773         Windows PATH as well. Conservative double-quoting. Comments.
41774
41775 2007-07-01  Bruno Haible  <bruno@clisp.org>
41776             Eric Blake  <ebb9@byu.net>
41777             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41778
41779         * gnulib-tool (self_abspathname): Fix algorithm to cope with
41780         empty components in $PATH, denoting '.'.
41781
41782 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41783
41784         * gnulib-tool: Fix indentation.
41785         (func_create_megatestdir): Likewise.
41786         Report by Bruno Haible.
41787
41788 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41789
41790         Sync from Automake.
41791         * build-aux/gnupload: Fix shell portability issues with for loops.
41792         Report by Karl Berry.
41793
41794 2007-06-29  Simon Josefsson  <simon@josefsson.org>
41795
41796         * build-aux/maint.mk (POURL): Use translationproject.org.
41797
41798 2007-06-27  Simon Josefsson  <simon@josefsson.org>
41799             Bruno Haible  <bruno@clisp.org>
41800
41801         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
41802         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
41803         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
41804         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
41805         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
41806
41807 2007-06-27  Bruno Haible  <bruno@clisp.org>
41808
41809         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
41810         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
41811
41812 2007-06-26  Karl Berry  <karl@gnu.org>
41813
41814         * MODULES.html.sh: remove xreadlink-with-size.
41815
41816 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41817
41818         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
41819         method that I hope also handles the double-include problem noted
41820         by Bruno Haible in
41821         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
41822
41823 2007-06-23  Bruno Haible  <bruno@clisp.org>
41824
41825         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41826         Don't let the 'mostlyclean' target fail if the last subdirectory could
41827         not be removed.
41828         Reported by Karl Berry.
41829
41830 2007-06-23  Bruno Haible  <bruno@clisp.org>
41831
41832         * gnulib-tool (echo): Add a speedier workaround for ksh.
41833         * tests/test-echo.sh: Likewise.
41834
41835 2007-06-23  Bruno Haible  <bruno@clisp.org>
41836
41837         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
41838         * tests/test-echo.sh: Likewise.
41839
41840 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41841
41842         * gnulib-tool (IFS): Initialize early, so we don't set it to
41843         empty later.
41844         (self_abspathname): Rewrite algorithm to set it, reindent.
41845         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
41846         (func_create_megatestdir): Merge some sed scripts.
41847
41848 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41849
41850         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
41851         exposed by Sun Studio 11 cc on Solaris 8.
41852
41853 2007-06-22  Bruno Haible  <bruno@clisp.org>
41854
41855         * gnulib-tool (echo): Ensure the echo primitive does not interpret
41856         backslashes.
41857         * tests/test-echo.sh: New file.
41858
41859 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41860
41861         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
41862         simplify `sed_replace_build_aux' scripts, they are portable but
41863         echoing them with `echo' is not.
41864         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
41865
41866 2007-06-21  Karl Berry  <karl@gnu.org>
41867
41868         * config/srclist.txt: guess we can't handle the licenses via
41869         srclist at the moment.
41870
41871 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
41872
41873         * MODULES.html.sh: Add include_next.
41874         * modules/include_next: New file.
41875
41876 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
41877
41878         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
41879         INCLUDE_NEXT.
41880         (gl_CHECK_NEXT_HEADERS): New macro.
41881         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
41882         the obsolescent gl_ABSOLUTE_HEADER.
41883         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
41884         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
41885         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41886         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41887         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
41888         * m4/math_h.m4 (gl_MATH_H): Likewise.
41889         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41890         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
41891         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
41892         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41893         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
41894         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
41895         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
41896         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41897         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41898         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
41899         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
41900         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41901         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
41902         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41903         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41904         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41905         * m4/inttypes.m4 (gl_INTTYPES_H): Define
41906         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
41907         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
41908         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
41909         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
41910         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
41911         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
41912         * lib/float_.h: Likewise.
41913         * lib/inttypes_.h: Likewise.
41914         * lib/math_.h: Likewise.
41915         * lib/search_.h: Likewise.
41916         * lib/signal_.h: Likewise.
41917         * lib/stdint_.h: Likewise.
41918         * lib/stdio_.h: Likewise.
41919         * lib/stdlib_.h: Likewise.
41920         * lib/string_.h: Likewise.
41921         * lib/sys_stat_.h: Likewise.
41922         * lib/sys_time_.h: Likewise.
41923         * lib/time_.h: Likewise.
41924         * lib/unistd_.h: Likewise.
41925         * lib/wchar_.h: Likewise.
41926         * lib/wctype_.h: Likewise.
41927         * lib/dirent_.h: Likewise.
41928         * lib/iconv_.h: Likewise.
41929         * lib/locale_.h: Likewise.
41930         * lib/netinet_in_.h: Likewise.
41931         * lib/sys_select_.h: Likewise.
41932         * lib/sys_socket_.h: Likewise.
41933         * lib/sysexits_.h: Likewise.
41934         * modules/fcntl (Depends-on): Depend on include_next, not
41935         absolute_header.
41936         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
41937         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
41938         * modules/fchdir: Likewise.
41939         * modules/float: Likewise.
41940         * modules/iconv_open: Likewise.
41941         * modules/inttypes: Likewise.
41942         * modules/locale: Likewise.
41943         * modules/math: Likewise.
41944         * modules/netinet_in: Likewise.
41945         * modules/search: Likewise.
41946         * modules/signal: Likewise.
41947         * modules/stdint: Likewise.
41948         * modules/stdio: Likewise.
41949         * modules/stdlib: Likewise.
41950         * modules/string: Likewise.
41951         * modules/sys_select: Likewise.
41952         * modules/sys_socket: Likewise.
41953         * modules/sys_stat: Likewise.
41954         * modules/sys_time: Likewise.
41955         * modules/sysexits: Likewise.
41956         * modules/time: Likewise.
41957         * modules/unistd: Likewise.
41958         * modules/wchar: Likewise.
41959         * modules/wctype: Likewise.
41960         * modules/sys_stat: Change maintainer to "all".
41961         * modules/unistd: Likewise.
41962
41963 2007-06-20  Karl Berry  <karl@gnu.org>
41964
41965         * config/srclist.txt: track www changes in license files.
41966
41967 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
41968
41969         * build-aux/bootstrap: Remove stray dot.
41970         Make sure build_aux settings are honored when linking
41971         gnulib_extra_files.
41972
41973 2007-06-19  Eric Blake  <ebb9@byu.net>
41974
41975         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
41976         Allow compilation on cygwin.
41977
41978 2007-06-19  Jim Meyering  <jim@meyering.net>
41979
41980         xreadlink-with-size: Remove module.  No longer used.
41981         Ex-callers now use xreadlink or mreadlink-with-size.
41982         * modules/xreadlink-with-size: Remove module.
41983         * lib/xreadlink-with-size.c: Remove file.
41984         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
41985         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
41986         just before the function definition *is* accurate.
41987
41988         Eliminate one way canonicalize_filename_mode could exit.
41989         * lib/canonicalize.c (canonicalize_filename_mode):
41990         Use mreadlink_with_size, not xreadlink_with_size.
41991
41992 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
41993
41994         Detect porting problems to FreeBSD/arm, which has time_t wider than
41995         long int.  Original problem reported for GNU diff by Xin Li in
41996         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
41997         * modules/getdate (Depends-on): Add intprops, verify.
41998         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
41999         is an integer type no wider than long int.
42000
42001 2007-06-18  Jim Meyering  <jim@meyering.net>
42002
42003         New module: mreadlink-with-size.
42004         * MODULES.html.sh: Add mreadlink-with-size.
42005         * modules/mreadlink-with-size: New module
42006         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
42007         not xreadlink-with-size.
42008         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
42009
42010 2007-06-16  Bruno Haible  <bruno@clisp.org>
42011
42012         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
42013         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
42014         Reported by Gary V. Vaughan <gary@gnu.org>.
42015
42016 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
42017
42018         Revamp lchown so that it lives in unistd.h where it belongs.
42019         * lib/lchown.h: Remove.
42020         * lib/dirchownmod.c: Don't include lib/lchown.h.
42021         * lib/fchownat.c: Likewise.
42022         * lib/openat.c: Likewise.
42023         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
42024         does not follow symlinks.
42025         (EOPNOTSUPP): Define if not defined.
42026         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
42027         is defined to 0.
42028         (lchown): New decl.
42029         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
42030         Do not check for lchown decl.
42031         Set REPLACE_LCHOWN.
42032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
42033         REPLACE_LCHOWN.
42034         * modules/chown: Make it clear it follows symlinks.
42035         * modules/lchown: Make it clear it doesn't follow symlinks.
42036         (Files): Remove lib/lchown.h
42037         (Depends-on): Add unistd.
42038         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
42039         (Include): Include <unistd.h>, not "lchown.h".
42040         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
42041         REPLACE_LCHOWN.
42042
42043 2007-06-15  Jim Meyering  <jim@meyering.net>
42044
42045         Change license (GPL to LGPL) of fsusage and dependents.
42046         * modules/fsusage (License): Change to LGPL.
42047         * modules/full-read (License): Likewise.
42048         * modules/full-write (License): Likewise.
42049         * modules/safe-read (License): Likewise.
42050         * modules/safe-write (License): Likewise.
42051
42052 2007-06-14  Ben Pfaff  <blp@gnu.org>
42053
42054         Missing part of allocsa -> malloca transition.
42055         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
42056         gl_MALLOCA.
42057
42058 2007-06-12  Bruno Haible  <bruno@clisp.org>
42059
42060         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
42061         to ia64, x86_64, i386.
42062         Reported by Eric Blake.
42063
42064 2007-06-12  Bruno Haible  <bruno@clisp.org>
42065
42066         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
42067         cross-compiling to x86_64.
42068
42069 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
42070
42071         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
42072         glitch reported by Ralf Wildenhues in
42073         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
42074
42075         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
42076         Vin Shelton.
42077
42078 2007-06-11  Bruno Haible  <bruno@clisp.org>
42079
42080         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
42081         replacement string.
42082         Reported by Eric Blake.
42083
42084 2007-06-10  Bruno Haible  <bruno@clisp.org>
42085
42086         Prepare vasnprintf code for use with Unicode strings.
42087         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
42088         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
42089         TYPE_U32_STRING.
42090         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
42091         a_u32_string variants.
42092         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
42093         * lib/printf-args.c: Don't include config.h and the specification
42094         header if PRINTF_FETCHARGS is already defined.
42095         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
42096         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
42097         TYPE_U16_STRING, TYPE_U32_STRING.
42098         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
42099         u16_directive, u16_directives, u32_directive, u32_directives): New
42100         types.
42101         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
42102         New declarations.
42103         * lib/printf-parse.c: Don't include config.h and the specification
42104         header if PRINTF_PARSE is already defined. Eliminate the set of
42105         parameters for WIDE_CHAR_VERSION; the user of this file must provide
42106         them now. Include c-ctype.h.
42107         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
42108         directive and CHAR_T_ONLY_ASCII.
42109         * lib/vasnprintf.c: Don't include config.h and the specification header
42110         if VASNPRINTF is already defined.
42111         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
42112         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
42113         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
42114         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
42115         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
42116         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
42117         code accordingly.
42118         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
42119         pad_ourselves also in this case, with the 'c' and 's' directives, and
42120         with a different notion of "width".
42121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
42122
42123 2007-06-10  Bruno Haible  <bruno@clisp.org>
42124
42125         * modules/unistr/u32-mbsnlen: New file.
42126         * lib/unistr/u32-mbsnlen.c: New file.
42127
42128         * modules/unistr/u16-mbsnlen: New file.
42129         * lib/unistr/u16-mbsnlen.c: New file.
42130
42131         * modules/unistr/u8-mbsnlen: New file.
42132         * lib/unistr/u8-mbsnlen.c: New file.
42133
42134         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
42135         declarations.
42136
42137 2007-06-10  Bruno Haible  <bruno@clisp.org>
42138
42139         * lib/string_.h (mbsnlen): New declaration.
42140         * lib/mbsnlen.c: New file.
42141         * m4/mbsnlen.m4: New file.
42142         * modules/mbsnlen: New file.
42143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
42144         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
42145         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
42146
42147 2007-06-10  Bruno Haible  <bruno@clisp.org>
42148
42149         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
42150
42151 2007-06-10  Bruno Haible  <bruno@clisp.org>
42152
42153         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
42154         * lib/mbuiter.h: Likewise.
42155
42156 2007-06-10  Bruno Haible  <bruno@clisp.org>
42157
42158         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
42159         declaration.
42160
42161 2007-06-10  Karl Berry  <karl@gnu.org>
42162
42163         * config/srclist.txt: remove gettext entries, Bruno prefers
42164         to update individually.
42165
42166 2007-06-10  Bruno Haible  <bruno@clisp.org>
42167
42168         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
42169         'maxlen'. Ensure only length + width bytes are allocated, not
42170         length + 1 + width.
42171
42172 2007-06-09  Bruno Haible  <bruno@clisp.org>
42173
42174         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
42175         (CHAR_T): Remove macro.
42176         (VASNPRINTF): Update.
42177
42178 2007-06-09  Bruno Haible  <bruno@clisp.org>
42179
42180         * MODULES.html.sh (Unicode string functions): Add the new modules.
42181
42182         * modules/uniconv/u32-conv-to-enc: New file.
42183         * lib/uniconv/u32-conv-to-enc.c: New file.
42184         * modules/uniconv/u32-conv-to-enc-tests: New file.
42185         * tests/uniconv/test-u32-conv-to-enc.c: New file.
42186
42187         * modules/uniconv/u16-conv-to-enc: New file.
42188         * lib/uniconv/u16-conv-to-enc.c: New file.
42189         * lib/uniconv/u-conv-to-enc.h: New file.
42190         * modules/uniconv/u16-conv-to-enc-tests: New file.
42191         * tests/uniconv/test-u16-conv-to-enc.c: New file.
42192
42193         * modules/uniconv/u8-conv-to-enc: New file.
42194         * lib/uniconv/u8-conv-to-enc.c: New file.
42195         * modules/uniconv/u8-conv-to-enc-tests: New file.
42196         * tests/uniconv/test-u8-conv-to-enc.c: New file.
42197
42198         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
42199         u32_conv_to_encoding): New declarations.
42200
42201 2007-06-09  Bruno Haible  <bruno@clisp.org>
42202
42203         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
42204
42205 2007-06-09  Bruno Haible  <bruno@clisp.org>
42206
42207         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
42208         * modules/malloca: Renamed from modules/allocsa, updated.
42209         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
42210         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
42211         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
42212         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
42213         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
42214         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
42215         * modules/xmalloca: Renamed from modules/xallocsa, updated.
42216         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
42217         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
42218         * modules/c-strcasestr (Depends-on): Update.
42219         * lib/c-strcasestr.c: Update.
42220         * modules/c-strstr (Depends-on): Update.
42221         * lib/c-strstr.c: Update.
42222         * modules/canonicalize-lgpl (Depends-on): Update.
42223         * lib/canonicalize-lgpl.c: Update.
42224         * modules/clean-temp (Depends-on): Update.
42225         * lib/clean-temp.c: Update.
42226         * modules/csharpcomp (Depends-on): Update.
42227         * lib/csharpcomp.c: Update.
42228         * modules/csharpexec (Depends-on): Update.
42229         * lib/csharpexec.c: Update.
42230         * modules/javacomp (Depends-on): Update.
42231         * lib/javacomp.c: Update.
42232         * modules/javaexec (Depends-on): Update.
42233         * lib/javaexec.c: Update.
42234         * modules/mbscasestr (Depends-on): Update.
42235         * lib/mbscasestr.c: Update.
42236         * modules/mbsstr (Depends-on): Update.
42237         * lib/mbsstr.c: Update.
42238         * modules/setenv (Depends-on): Update.
42239         * lib/setenv.c: Update.
42240         * modules/strcasestr (Depends-on): Update.
42241         * lib/strcasestr.c: Update.
42242         * modules/striconveha (Depends-on): Update.
42243         * lib/striconveha.c: Update.
42244         * modules/relocatable-prog-wrapper (Files): Update.
42245         * lib/relocwrapper.c: Update.
42246         * build-aux/install-reloc: Update.
42247         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
42248
42249 2007-06-08  Bruno Haible  <bruno@clisp.org>
42250
42251         Port to uClibc.
42252         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
42253         * lib/fpurge.c (fpurge): Likewise.
42254         * lib/freading.c (freading): Likewise.
42255         * lib/fseeko.c (rpl_fseeko): Likewise.
42256         * lib/fseterr.c (fseterr): Likewise.
42257         * lib/fwriting.c (fwriting): Likewise.
42258         * tests/test-fflush.c (main): Avoid a failure on uClibc.
42259
42260 2007-06-08  Bruno Haible  <bruno@clisp.org>
42261
42262         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
42263         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
42264         * modules/gettext (Files): Add m4/intlmacosx.m4.
42265
42266 2007-06-07  Bruno Haible  <bruno@clisp.org>
42267
42268         * modules/localename-tests: New file.
42269         * tests/test-localename.c: New file.
42270
42271         New module 'localename'.
42272         * lib/localename.h: New file.
42273         * lib/localename.c: New file, from GNU gettext.
42274         * m4/localename.m4: New file.
42275         * modules/localename: New file.
42276
42277 2007-06-07  Bruno Haible  <bruno@clisp.org>
42278
42279         Work around the lack of <wchar.h> on some builds of uClibc.
42280         * doc/headers/wchar.texi: Update.
42281         * lib/wchar_.h: Include <wchar.h> only if it exists.
42282         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
42283         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
42284         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
42285         doesn't exist.
42286         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
42287         * modules/mbfile (Depends-on): Add wchar.
42288         * modules/mbiter (Depends-on): Likewise.
42289         * modules/mbuiter (Depends-on): Likewise.
42290         Reported by Simon Josefsson.
42291
42292 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
42293
42294         Work around problem reported by Steven M. Schweda in
42295         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
42296         Tru64 5.1B with the Compaq compiler environment installed declares
42297         an 'isblank' function but does not define it in the C library.
42298         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
42299         * lib/regex_internal.h (isblank): Likewise.
42300         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
42301         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
42302
42303 2007-06-05  Bruno Haible  <bruno@clisp.org>
42304
42305         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
42306         ia64.
42307         * modules/printf-safe: New file.
42308         * modules/fprintf-posix (Depends-on): Add printf-safe.
42309         * modules/printf-posix (Depends-on): Likewise.
42310         * modules/snprintf-posix (Depends-on): Likewise.
42311         * modules/sprintf-posix (Depends-on): Likewise.
42312         * modules/vasnprintf-posix (Depends-on): Likewise.
42313         * modules/vasprintf-posix (Depends-on): Likewise.
42314         * modules/vfprintf-posix (Depends-on): Likewise.
42315         * modules/vprintf-posix (Depends-on): Likewise.
42316         * modules/vsnprintf-posix (Depends-on): Likewise.
42317         * modules/vsprintf-posix (Depends-on): Likewise.
42318         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
42319         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
42320         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
42321         "no" on i386, x86_64, ia64.
42322         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
42323         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42324         on i386, x86_64, ia64.
42325         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
42326         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42327         on i386, x86_64, ia64.
42328         * tests/test-vasnprintf-posix.c: Include float.h.
42329         (LDBL80_WORDS): New macro.
42330         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42331         on i386, x86_64, ia64.
42332         * tests/test-vasprintf-posix.c: Include float.h.
42333         (LDBL80_WORDS): New macro.
42334         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
42335         on i386, x86_64, ia64.
42336         * tests/test-snprintf-posix.c: Include float.h.
42337         * tests/test-sprintf-posix.c: Likewise.
42338         * tests/test-vsnprintf-posix.c: Likewise.
42339         * tests/test-vsprintf-posix.c: Likewise.
42340
42341 2007-06-05  Bruno Haible  <bruno@clisp.org>
42342
42343         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
42344         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
42345         non-IEEE numbers on i386, x86_64, ia64.
42346         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
42347         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
42348         * tests/test-isnanl.h: Include float.h.
42349         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
42350
42351 2007-06-05  Bruno Haible  <bruno@clisp.org>
42352
42353         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
42354         also the %a / %A. Handle the %a / %A code before this extra handling.
42355
42356 2007-06-05  Bruno Haible  <bruno@clisp.org>
42357
42358         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
42359         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
42360
42361 2007-06-05  Bruno Haible  <bruno@clisp.org>
42362
42363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
42364         typo in variable name.
42365
42366 2007-06-05  Eric Blake  <ebb9@byu.net>
42367
42368         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
42369         Reported by Simon Josefsson.
42370
42371 2007-06-04  Bruno Haible  <bruno@clisp.org>
42372
42373         Avoid test failures on some PowerPC platforms.
42374         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
42375         Define differently for PowerPC.
42376         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
42377         Reported by Gary V. Vaughan <gary@gnu.org>.
42378
42379 2007-06-02  Bruno Haible  <bruno@clisp.org>
42380
42381         Fix test-stdint failure on FreeBSD/ia64.
42382         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
42383         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
42384         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
42385         * doc/headers/stdint.texi: Update.
42386
42387 2007-06-01  Bruno Haible  <bruno@clisp.org>
42388
42389         * tests/test-binary-io.c (main): Pass a third argument to open().
42390         Reported by Gary V. Vaughan <gary@gnu.org>.
42391
42392 2007-06-01  Bruno Haible  <bruno@clisp.org>
42393
42394         * doc/functions/frexpl.texi: Update for mingw.
42395
42396 2007-06-01  Bruno Haible  <bruno@clisp.org>
42397
42398         * tests/test-lseek.c (main): Disable test of errno for invalid third
42399         argument.
42400         * doc/functions/lseek.texi: Update.
42401         Reported by Gary V. Vaughan <gary@gnu.org>.
42402
42403 2007-05-28  Bruno Haible  <bruno@clisp.org>
42404
42405         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
42406
42407 2007-05-31  Eric Blake  <ebb9@byu.net>
42408
42409         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
42410         cross compiling.
42411
42412 2007-05-30  Eric Blake  <ebb9@byu.net>
42413         and Bruno Haible  <bruno@clisp.org>
42414
42415         Work around mingw test failures exposed by m4-1.4.9b.
42416         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
42417         * tests/test-unistd.c: Disable uid_t and git_t tests for the
42418         moment.
42419
42420 2007-05-30  Bruno Haible  <bruno@clisp.org>
42421
42422         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
42423         assuming that they are closed. Needed on HP-UX 11.
42424
42425 2007-05-29  Bruno Haible  <bruno@clisp.org>
42426
42427         Fix a problem with #include_next.
42428         * lib/dirent_.h: Split the double-inclusion guard.
42429         * lib/fcntl_.h: Likewise.
42430         * lib/float_.h: Likewise.
42431         * lib/iconv_.h: Likewise.
42432         * lib/inttypes_.h: Likewise.
42433         * lib/locale_.h: Likewise.
42434         * lib/math_.h: Likewise.
42435         * lib/netinet_in_.h: Likewise.
42436         * lib/search_.h: Likewise.
42437         * lib/signal_.h: Likewise.
42438         * lib/stdint_.h: Likewise.
42439         * lib/stdio_.h: Likewise.
42440         * lib/stdlib_.h: Likewise.
42441         * lib/string_.h: Likewise.
42442         * lib/sys_select_.h: Likewise.
42443         * lib/sys_socket_.h: Likewise.
42444         * lib/sys_stat_.h: Likewise.
42445         * lib/sys_time_.h: Likewise.
42446         * lib/sysexits_.h: Likewise.
42447         * lib/time_.h: Likewise.
42448         * lib/unistd_.h: Likewise.
42449         * lib/wchar_.h: Likewise.
42450         * lib/wctype_.h: Likewise.
42451
42452 2007-05-29  Bruno Haible  <bruno@clisp.org>
42453
42454         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
42455         for the moment.
42456
42457 2007-05-29  Bruno Haible  <bruno@clisp.org>
42458
42459         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
42460         invocation.
42461         Reported by Eric Blake.
42462
42463 2007-05-29  Bruno Haible  <bruno@clisp.org>
42464
42465         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
42466         compiling case.
42467
42468 2007-05-29  Eric Blake  <ebb9@byu.net>
42469             Bruno Haible  <bruno@clisp.org>
42470
42471         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
42472         cross compiles.
42473
42474 2007-05-28  Eric Blake  <ebb9@byu.net>
42475
42476         * modules/closein-tests (test_closein_LDADD): Support test on
42477         cygwin with libtool.
42478
42479 2007-05-28  Bruno Haible  <bruno@clisp.org>
42480
42481         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
42482         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
42483         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
42484         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
42485         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
42486         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
42487         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
42488         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
42489         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
42490
42491 2007-05-28  Eric Blake  <ebb9@byu.net>
42492
42493         Unconditionally include <config.h> in unit tests.
42494         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
42495         * tests/test-allocsa.c, tests/test-arcfour.c,
42496         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
42497         tests/test-array_list.c, tests/test-array_oset.c,
42498         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
42499         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
42500         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
42501         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
42502         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
42503         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
42504         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
42505         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
42506         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
42507         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
42508         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
42509         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
42510         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
42511         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
42512         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
42513         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
42514         test-md5.c, test-memmem.c, test-printf-posix.c,
42515         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
42516         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
42517         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
42518         test-strcasestr.c, test-striconv.c, test-striconveh.c,
42519         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
42520         test-vasnprintf-posix2.c, test-vasnprintf.c,
42521         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
42522         test-vfprintf-posix.c, test-vprintf-posix.c,
42523         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
42524         test-xvasprintf.c: Likewise.
42525
42526 2007-05-28  Bruno Haible  <bruno@clisp.org>
42527
42528         * gnulib-tool (func_import): Remember the --with-tests command-line
42529         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
42530         Reported by Eric Blake.
42531
42532 2007-05-28  Bruno Haible  <bruno@clisp.org>
42533
42534         * modules/ftell-tests: New file.
42535         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
42536         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
42537
42538         * lib/ftell.c: New file.
42539         * modules/ftell: New file.
42540         * m4/ftell.m4: New file.
42541         * doc/functions/ftell.texi: Update.
42542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
42543         REPLACE_FTELL.
42544         * lib/stdio_.h (rpl_ftell): New declaration.
42545         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
42546         REPLACE_FTELL.
42547
42548 2007-05-28  Eric Blake  <ebb9@byu.net>
42549
42550         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
42551
42552 2007-05-28  Bruno Haible  <bruno@clisp.org>
42553
42554         * modules/fseek-tests: New file.
42555         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
42556         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
42557
42558         * lib/fseek.c: New file.
42559         * modules/fseek: New file.
42560         * m4/fseek.m4: New file.
42561         * doc/functions/fseek.texi: Update.
42562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
42563         REPLACE_FSEEK.
42564         * lib/stdio_.h (rpl_fseek): New declaration.
42565         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
42566         REPLACE_FSEEK.
42567
42568 2007-05-28  Bruno Haible  <bruno@clisp.org>
42569
42570         * lib/stdio_.h (fflush): More comments.
42571
42572 2007-05-28  Bruno Haible  <bruno@clisp.org>
42573
42574         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
42575         runtime test.
42576
42577 2007-05-28  Eric Blake  <ebb9@byu.net>
42578
42579         Improve lseek module.
42580         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
42581         * lib/unistd_.h (lseek): Scale back link warning message.
42582         * tests/test-lseek.c: Beef up test.
42583         * tests/test-lseek.sh: Exercise more facets of lseek.
42584         Reported by Bruno Haible.
42585
42586 2007-05-28  Bruno Haible  <bruno@clisp.org>
42587
42588         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
42589         to define.
42590
42591 2007-05-27  Bruno Haible  <bruno@clisp.org>
42592
42593         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
42594
42595 2007-05-27  Bruno Haible  <bruno@clisp.org>
42596
42597         * modules/openmp: New file.
42598         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
42599         Noah Misch.
42600
42601 2007-05-26  Bruno Haible  <bruno@clisp.org>
42602
42603         * modules/chdir-long (Depends-on): Add fchdir.
42604         * modules/chdir-safer (Depends-on): Likewise.
42605         * modules/fts (Depends-on): Likewise.
42606         * modules/fts-lgpl (Depends-on): Likewise.
42607         * modules/openat (Depends-on): Likewise.
42608         * modules/savewd (Depends-on): Likewise.
42609
42610 2007-05-24  Eric Blake  <ebb9@byu.net>
42611
42612         Fix lseek on mingw.
42613         * modules/lseek: New module.
42614         * m4/lseek.m4: New file.
42615         * lib/lseek.c: New file.
42616         * modules/lseek-tests: New file.
42617         * tests/test-lseek.c: New file.
42618         * tests/test-lseek.sh: New file.
42619         * MODULES.html.sh: Document lseek module.
42620         * modules/fflush (Depends-on): Add lseek, fseeko.
42621         * modules/fseeko (Depends-on): Likewise.
42622         * modules/ftello (Depends-on): Likewise.
42623         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
42624         broken.
42625         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
42626         broken.
42627         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
42628         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
42629         * lib/ftello.c (rpl_ftello): Likewise.
42630         * tests/test-fseeko.c (main): Test this.
42631         * tests/test-fseeko.sh: Likewise.
42632         * tests/test-ftello.c (main): Likewise.
42633         * tests/test-ftello.sh: Likewise.
42634         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
42635         implies replacing fseek.
42636         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
42637         HAVE_FTELLO.
42638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
42639         * modules/unistd (Makefile.am): Likewise.
42640         * lib/unistd_.h (lseek): Declare a replacement.
42641         * doc/functions/lseek.texi (lseek): Document this fix.
42642         * doc/functions/fseek.texi (fseek): Likewise.
42643         * doc/functions/ftell.texi (ftell): Likewise.
42644
42645 2007-05-24  Bruno Haible  <bruno@clisp.org>
42646
42647         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
42648         in the printed representation of a NaN.
42649         * tests/test-vasprintf-posix.c (test_function): Likewise.
42650         * tests/test-snprintf-posix.h (test_function): Likewise.
42651         * tests/test-sprintf-posix.h (test_function): Likewise.
42652         Reported by Eric Blake.
42653
42654 2007-05-23  Eric Blake  <ebb9@byu.net>
42655
42656         Fix fseeko/ftello on cygwin 1.5.24.
42657         * doc/functions/fseeko.texi (fseeko): Document the fix.
42658         * doc/functions/ftello.texi (ftello): Document the fix.
42659         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
42660         * doc/functions/stdout.text (stdout): New file.
42661         * doc/functions/stderr.text (stderr): New file.
42662         * doc/gnulib.texi (Function Substitutes): Use new files.
42663         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
42664         prior to 1.7.0.
42665         * tests/test-ftello.c (main): Likewise for ftello.
42666         * tests/test-fseeko.sh: New file.
42667         * tests/test-ftello.sh: New file.
42668         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
42669         with seekable stdin.
42670         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
42671         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
42672         (gl_REPLACE_FSEEKO): New macro.
42673         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
42674         * modules/fseeko (Files): Distribute fseeko.c.
42675         * modules/ftello (Files): Distribute ftello.c.
42676         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
42677         mode.
42678         * lib/ftello.c (rpl_ftello): New file.
42679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
42680         fseeko, ftello.
42681         (gl_STDIN_LARGE_OFFSET): New macro.
42682         * modules/stdio (Makefile.am): Perform the replacement.
42683         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
42684
42685 2007-05-23  Bruno Haible  <bruno@clisp.org>
42686
42687         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
42688         GNULIB_POSIXCHECK is defined.
42689
42690 2007-05-21  Bruno Haible  <bruno@clisp.org>
42691
42692         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
42693         Check also the output for NaN arguments. When cross-compiling, guess
42694         no on IRIX.
42695         * lib/vasnprintf.c: Update comments.
42696         * tests/test-vasnprintf-posix.c (strisnan): New function.
42697         (test_function): Use it.
42698         * tests/test-vasprintf-posix.c (strisnan): New function.
42699         (test_function): Use it.
42700         * tests/test-snprintf-posix.h (strisnan): New function.
42701         (test_function): Use it.
42702         * tests/test-sprintf-posix.h (strisnan): New function.
42703         (test_function): Use it.
42704         Reported by Eric Blake.
42705
42706 2007-05-20  Bruno Haible  <bruno@clisp.org>
42707
42708         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
42709         numbers that fails on BeOS.
42710         * doc/functions/frexpl.texi: Update.
42711
42712 2007-05-20  Jim Meyering  <jim@meyering.net>
42713
42714         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
42715         forced upon us by glibc-2.6.
42716
42717 2007-05-20  Bruno Haible  <bruno@clisp.org>
42718
42719         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
42720         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
42721         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
42722         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
42723         NEED_PRINTF_INFINITE.
42724         (is_infinitel): New function.
42725         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
42726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
42727         gl_PREREQ_VASNPRINTF_INFINITE.
42728         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
42729         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42730         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
42731         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
42732         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
42733         gl_PREREQ_VASNPRINTF_INFINITE.
42734         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42735         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42736         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42737         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42738         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42739         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42740         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42741         * doc/functions/fprintf.texi: Update.
42742         * doc/functions/printf.texi: Update.
42743         * doc/functions/snprintf.texi: Update.
42744         * doc/functions/sprintf.texi: Update.
42745         * doc/functions/vfprintf.texi: Update.
42746         * doc/functions/vprintf.texi: Update.
42747         * doc/functions/vsnprintf.texi: Update.
42748         * doc/functions/vsprintf.texi: Update.
42749
42750 2007-05-20  Bruno Haible  <bruno@clisp.org>
42751
42752         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
42753         was not found in libc.
42754         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
42755
42756 2007-05-20  Bruno Haible  <bruno@clisp.org>
42757
42758         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42759         printed as "-nan" instead of "nan".
42760         * tests/test-vasprintf-posix.c (test_function): Likewise.
42761         * tests/test-snprintf-posix.h (test_function): Likewise.
42762         * tests/test-sprintf-posix.h (test_function): Likewise.
42763         Needed for HP-UX 11.
42764
42765 2007-05-20  Jim Meyering  <jim@meyering.net>
42766
42767         Fix buggy test for the fchownat-deref bug.
42768         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
42769         symlink required for the run-test.  Without it, this test would
42770         always declare that fchownat doesn't work, and client code would
42771         unnecessarily use the replacement function with fixed libc.
42772         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
42773         Reported by Greg Schafer.
42774
42775 2007-05-19  Bruno Haible  <bruno@clisp.org>
42776
42777         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
42778         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
42779         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
42780         Needed for IRIX 6.5 and Solaris 2.5.1.
42781
42782 2007-05-19  Bruno Haible  <bruno@clisp.org>
42783
42784         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
42785         (test_function): Skip tests involving -0.0 on platforms where
42786         -0.0 = 0.0.
42787         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
42788         (test_function): Skip tests involving -0.0 on platforms where
42789         -0.0 = 0.0.
42790         * tests/test-snprintf-posix.h (have_minus_zero): New function.
42791         (test_function): Skip tests involving -0.0 on platforms where
42792         -0.0 = 0.0.
42793         * tests/test-sprintf-posix.h (have_minus_zero): New function.
42794         (test_function): Skip tests involving -0.0 on platforms where
42795         -0.0 = 0.0.
42796         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
42797         tests.
42798         * tests/test-printf-posix.h (test_function): Likewise.
42799         * tests/test-printf-posix.output: Remove all -0.0 related results.
42800         Needed for IRIX 6.5.
42801
42802 2007-05-19  Bruno Haible  <bruno@clisp.org>
42803
42804         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42805         printed as "nan0x7fffffff" instead of "nan".
42806         * tests/test-vasprintf-posix.c (test_function): Likewise.
42807         * tests/test-snprintf-posix.h (test_function): Likewise.
42808         * tests/test-sprintf-posix.h (test_function): Likewise.
42809         * tests/test-fprintf-posix.h (NaN): Remove macro.
42810         (test_function): Remove all NaN related tests.
42811         * tests/test-printf-posix.h (NaN): Remove macro.
42812         (test_function): Remove all NaN related tests.
42813         * tests/test-printf-posix.output: Remove all NaN related results.
42814         Needed for IRIX 6.5.
42815
42816 2007-05-19  Bruno Haible  <bruno@clisp.org>
42817
42818         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
42819         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42820
42821 2007-05-19  Bruno Haible  <bruno@clisp.org>
42822
42823         * lib/float_.h: New file.
42824         * m4/float_h.m4: New file.
42825         * modules/float: New file.
42826         * modules/isnanl (Dependencies): Add float.
42827         * modules/isnanl-nolibm (Dependencies): Likewise.
42828         * modules/mathl (Dependencies): Likewise.
42829         * modules/printf-frexpl (Dependencies): Likewise.
42830         * modules/signbit (Dependencies): Likewise.
42831         * modules/vasnprintf (Dependencies): Likewise.
42832         * doc/headers/float.texi: Update.
42833
42834 2007-05-19  Jim Meyering  <jim@meyering.net>
42835
42836         * lib/utimens.c (gl_futimens): Rename from futimens,
42837         now that glibc-2.6 declares futimens.
42838         * lib/utimens.h: Likewise.
42839
42840 2007-05-19  Bruno Haible  <bruno@clisp.org>
42841
42842         Avoid test failures on mingw.
42843         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
42844         * tests/test-printf-posix.sh: Likewise.
42845         * tests/test-vfprintf-posix.sh: Likewise.
42846         * tests/test-vprintf-posix.sh: Likewise.
42847
42848 2007-05-19  Bruno Haible  <bruno@clisp.org>
42849
42850         Fix *printf result for NaN, Inf, -0.0 on mingw.
42851         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
42852         * lib/vasnprintf.c: Include math.h and isnan.h.
42853         (is_infinite_or_zero): New function.
42854         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
42855         values in the %f, %F, %e, %E, %g, %G directives.
42856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
42857         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42858         gl_PRINTF_INFINITE and test its result. Invoke
42859         gl_PREREQ_VASNPRINTF_INFINITE.
42860         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42861         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42862         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42863         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42864         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42865         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42866         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42867         * doc/functions/fprintf.texi: Update.
42868         * doc/functions/printf.texi: Update.
42869         * doc/functions/snprintf.texi: Update.
42870         * doc/functions/sprintf.texi: Update.
42871         * doc/functions/vfprintf.texi: Update.
42872         * doc/functions/vprintf.texi: Update.
42873         * doc/functions/vsnprintf.texi: Update.
42874         * doc/functions/vsprintf.texi: Update.
42875
42876 2007-05-19  Bruno Haible  <bruno@clisp.org>
42877
42878         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
42879         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
42880         Instead of multiplying with 10^k, set extra_zeroes to k.
42881         (scale10_round_long_double): Remove function.
42882
42883 2007-05-18  Bruno Haible  <bruno@clisp.org>
42884
42885         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
42886         introduced on 2007-05-06.
42887
42888 2007-05-18  Bruno Haible  <bruno@clisp.org>
42889
42890         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
42891         %g directives.
42892         * tests/test-vasprintf-posix.c (test_function): Likewise.
42893         * tests/test-snprintf-posix.h (test_function): Likewise.
42894         * tests/test-sprintf-posix.h (test_function): Likewise.
42895
42896 2007-05-18  Bruno Haible  <bruno@clisp.org>
42897
42898         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
42899         (strmatch): New function.
42900         (test_function): Test the %f directive on numbers of various exponents.
42901         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
42902         (strmatch): New function.
42903         (test_function): Test the %f directive on numbers of various exponents.
42904         * tests/test-snprintf-posix.h (strmatch): New function.
42905         (test_function): Test the %f directive on numbers of various exponents.
42906         * tests/test-sprintf-posix.h (strmatch): New function.
42907         (test_function): Test the %f directive on numbers of various exponents.
42908         * tests/test-snprintf-posix.c (SIZEOF): New macro.
42909         * tests/test-sprintf-posix.c (SIZEOF): New macro.
42910         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
42911         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
42912
42913 2007-05-18  Bruno Haible  <bruno@clisp.org>
42914
42915         Add support for 'long double' number output.
42916         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
42917         * lib/vasnprintf.c: Include math.h and float+.h.
42918         (mp_limb_t): New type.
42919         (GMP_LIMB_BITS): New macro.
42920         (mp_twolimb_t): New type.
42921         (GMP_TWOLIMB_BITS): New macro.
42922         (mpn_t): New type.
42923         (multiply, divide, convert_to_decimal, decode_long_double,
42924         scale10_round_long_double, scale10_round_decimal_long_double,
42925         floorlog10l): New functions.
42926         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
42927         for the %f, %F, %e, %E, %g, %G directives.
42928         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
42929         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42930         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
42931         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
42932         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42933         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42934         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42935         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42936         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42937         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42938         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42939         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
42940         * modules/snprintf-posix (Depends-on): Likewise.
42941         * modules/sprintf-posix (Depends-on): Likewise.
42942         * modules/vasnprintf-posix (Depends-on): Likewise.
42943         * modules/vasprintf-posix (Depends-on): Likewise.
42944         * modules/vfprintf-posix (Depends-on): Likewise.
42945         * modules/vsnprintf-posix (Depends-on): Likewise.
42946         * modules/vsprintf-posix (Depends-on): Likewise.
42947         * modules/vasnprintf (Files): Add lib/float+.h.
42948         * doc/functions/fprintf.texi: Update.
42949         * doc/functions/printf.texi: Update.
42950         * doc/functions/snprintf.texi: Update.
42951         * doc/functions/sprintf.texi: Update.
42952         * doc/functions/vfprintf.texi: Update.
42953         * doc/functions/vprintf.texi: Update.
42954         * doc/functions/vsnprintf.texi: Update.
42955         * doc/functions/vsprintf.texi: Update.
42956
42957 2007-05-18  Bruno Haible  <bruno@clisp.org>
42958
42959         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
42960
42961 2007-05-18  Bruno Haible  <bruno@clisp.org>
42962
42963         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
42964         for printing 64-bit integers. Needed for mingw.
42965
42966 2007-05-18  Bruno Haible  <bruno@clisp.org>
42967
42968         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42969         gl_FUNC_FREXPL_WORKS.
42970         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
42971
42972 2007-05-18  Bruno Haible  <bruno@clisp.org>
42973
42974         * modules/frexpl-nolibm-tests: New file.
42975
42976         * modules/frexpl-nolibm: New file.
42977         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
42978
42979 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
42980
42981         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
42982         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42983         GCC 4.2, which otherwise issues a lot of warnings.
42984         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
42985         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
42986         Likewise.
42987         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
42988         * modules/iconv_open (iconv.h): Likewise.
42989         * modules/locale (locale.h): Likewise.
42990         * modules/netinet_in (netinet/in.h): Likewise.
42991         * modules/sys_select (sys_select.h): Likewise.
42992         * modules/sys_socket (sys/socket.h): Likewise.
42993         * modules/sys_stat (sys/stat.h): Likewise.
42994         * modules/sysexits (sysexits.h): Likewise.
42995         * modules/unistd (unistd.h): Likewise.
42996
42997 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42998
42999         * modules/closein-tests (Makefile.am): Distribute
43000         `test-closein.sh'.
43001
43002 2007-05-17  Bruno Haible  <bruno@clisp.org>
43003
43004         * tests/test-printf-posix.output: Renamed from
43005         tests/test-fprintf-posix.out.
43006         * modules/fprintf-posix-tests: Update.
43007         * modules/printf-posix-tests: Update.
43008         * modules/vfprintf-posix-tests: Update.
43009         * modules/vprintf-posix-tests: Update.
43010         * tests/test-fprintf-posix.sh: Update.
43011         * tests/test-printf-posix.sh: Update.
43012         * tests/test-vfprintf-posix.sh: Update.
43013         * tests/test-vprintf-posix.sh: Update.
43014         Reported by Ralf Wildenhues.
43015
43016 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
43017
43018         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
43019         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
43020         GCC 4.2, which otherwise issues a lot of warnings.
43021         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
43022         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
43023         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
43024         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
43025         it should no longer be needed.
43026         * lib/string_.h: Likewise.
43027         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
43028         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
43029         * modules/inttypes (inttypes.h): Likewise.
43030         * modules/math (math.h): Likewise.
43031         * modules/search (search.h): Likewise.
43032         * modules/signal (signal.h): Likewise.
43033         * modules/stdint (stdint.h): Likewise.
43034         * modules/stdio (stdio.h): Likewise.
43035         * modules/stdlib (stdlib.h): Likewise.
43036         * modules/string (string.h): Likewise.
43037         * modules/sys_time (sys/time.h): Likewise.
43038         * modules/time (time.h): Likewise.
43039         * modules/wchar (wchar.h): Likewise.
43040         * modules/wctype (wtype.h): Likewise.
43041
43042 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43043
43044         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
43045
43046 2007-05-13  Bruno Haible  <bruno@clisp.org>
43047
43048         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
43049         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
43050         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
43051         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43052         (gl_PREREQ_STRTOK_R): Don't require it here.
43053
43054 2007-05-13  Bruno Haible  <bruno@clisp.org>
43055
43056         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
43057         when used in C++ mode.
43058
43059 2007-05-12  Bruno Haible  <bruno@clisp.org>
43060
43061         * lib/linebuffer.h: Tweak doc.
43062         * lib/linebuffer.c: Likewise.
43063
43064 2007-05-12  James Youngman  <jay@gnu.org>
43065
43066         * lib/linebuffer.c (readlinebuffer_delim): New function,
43067         like readlinebuffer, but use a caller-specified delimiter.
43068         (readlinebuffer): Just call readlinebuffer_delim with '\n'
43069         as the delimiter.
43070         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
43071
43072 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43073
43074         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
43075         * modules/openat (Files): Remove openat-die.c.
43076         (Depends-on): Add openat-die.
43077         * modules/openat-die: New module.
43078
43079 2007-05-06  Bruno Haible  <bruno@clisp.org>
43080
43081         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
43082         Update with info about Cygwin.
43083         * doc/functions/fprintf.texi: Update.
43084         * doc/functions/printf.texi: Update.
43085         * doc/functions/snprintf.texi: Update.
43086         * doc/functions/sprintf.texi: Update.
43087         * doc/functions/vfprintf.texi: Update.
43088         * doc/functions/vprintf.texi: Update.
43089         * doc/functions/vsnprintf.texi: Update.
43090         * doc/functions/vsprintf.texi: Update.
43091         Reported by Eric Blake.
43092
43093 2007-05-06  Bruno Haible  <bruno@clisp.org>
43094
43095         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
43096         padding ourselves for the floating-point directives.
43097         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
43098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
43099         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43100         gl_PRINTF_FLAG_ZERO and test its result. Invoke
43101         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
43102         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43103         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
43104         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43105         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43106         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43107         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43108         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43109         * tests/test-snprintf-posix.h (test_function): Also check the width
43110         and some flags in the %f directive.
43111         * tests/test-sprintf-posix.h (test_function): Likewise.
43112         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43113         * tests/test-vasprintf-posix.c (test_function): Likewise.
43114         * doc/functions/fprintf.texi: Update.
43115         * doc/functions/printf.texi: Update.
43116         * doc/functions/snprintf.texi: Update.
43117         * doc/functions/sprintf.texi: Update.
43118         * doc/functions/vfprintf.texi: Update.
43119         * doc/functions/vprintf.texi: Update.
43120         * doc/functions/vsnprintf.texi: Update.
43121         * doc/functions/vsprintf.texi: Update.
43122
43123 2007-05-06  Bruno Haible  <bruno@clisp.org>
43124
43125         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
43126         pass the ' flag character to sprintf or snprintf.
43127         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
43128         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
43129         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43130         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
43131         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
43132         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43133         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
43134         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43135         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43136         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43137         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43138         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43139         * tests/test-snprintf-posix.h (test_function): Also check the grouping
43140         flag.
43141         * tests/test-sprintf-posix.h (test_function): Likewise.
43142         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43143         * tests/test-vasprintf-posix.c (test_function): Likewise.
43144         * doc/functions/fprintf.texi: Update.
43145         * doc/functions/printf.texi: Update.
43146         * doc/functions/snprintf.texi: Update.
43147         * doc/functions/sprintf.texi: Update.
43148         * doc/functions/vfprintf.texi: Update.
43149         * doc/functions/vprintf.texi: Update.
43150         * doc/functions/vsnprintf.texi: Update.
43151         * doc/functions/vsprintf.texi: Update.
43152
43153 2007-05-01  Bruno Haible  <bruno@clisp.org>
43154
43155         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
43156
43157 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
43158
43159         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
43160         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
43161
43162 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43163
43164         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
43165         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
43166         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
43167
43168 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
43169
43170         * lib/argp-help.c (struct hol_entry): New member `ord'.
43171         (HOL_ENTRY_PTRCMP): Use ord for comparison
43172         (hol_sort): Initialize ord.
43173
43174 2007-05-01  Bruno Haible  <bruno@clisp.org>
43175
43176         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
43177         Reported by Eric Blake.
43178         * doc/gnulib.texi (Function Substitutes): Update.
43179
43180 2007-05-01  Bruno Haible  <bruno@clisp.org>
43181
43182         * doc/functions.texi: Remove file, now redundant through
43183         doc/functions/*.texi.
43184
43185 2007-05-01  Bruno Haible  <bruno@clisp.org>
43186
43187         * modules/argp (Depends-on): Add sleep.
43188
43189 2007-05-01  Bruno Haible  <bruno@clisp.org>
43190
43191         * modules/sleep-tests: New file.
43192         * tests/test-sleep.c: New file.
43193
43194         * modules/sleep: New file.
43195         * lib/sleep.c: New file.
43196         * m4/sleep.m4: New file.
43197         * lib/unistd_.h (sleep): New declaration.
43198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
43199         HAVE_SLEEP.
43200         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
43201         * doc/functions/sleep.texi: Document the sleep module.
43202
43203 2007-05-01  Bruno Haible  <bruno@clisp.org>
43204
43205         * lib/sigprocmask.h: Remove file.
43206         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
43207         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
43208         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
43209         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
43210         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
43211         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
43212         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
43213         HAVE_SIGSET_T as a shell variable.
43214         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
43215         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
43216         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
43217         (Depends-on): Add signal. Remove verify.
43218         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
43219         (Include): Mention <signal.h> instead of sigprocmask.h.
43220         * NEWS: Mention the change.
43221         * lib/fatal-signal.c: Don't include sigprocmask.h.
43222
43223 2007-05-01  Bruno Haible  <bruno@clisp.org>
43224
43225         * modules/signal: New file.
43226         * lib/signal_.h: New file.
43227         * m4/signal_h.m4: New file.
43228
43229 2007-05-01  Bruno Haible  <bruno@clisp.org>
43230
43231         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
43232         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
43233         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
43234         HAVE_WCTYPE_CTMP_BUG into wctype.h.
43235
43236 2007-05-01  Bruno Haible  <bruno@clisp.org>
43237
43238         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
43239         configure time.
43240         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
43241         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
43242         * modules/sys_stat (Makefile.am): Substitute their values into
43243         sys/stat.h.
43244
43245 2007-05-01  Bruno Haible  <bruno@clisp.org>
43246
43247         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
43248         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
43249         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
43250
43251 2007-05-01  Bruno Haible  <bruno@clisp.org>
43252
43253         * doc/header/assert.texi: Undo last change: don't mention the gnulib
43254         'assert' module here.
43255
43256 2007-05-01  Bruno Haible  <bruno@clisp.org>
43257
43258         * doc/functions/*.texi: New files.
43259         * doc/functions/google-ranking.txt: New file.
43260         * doc/gnulib.texi (Function Substitutes): New chapter.
43261         (ctime, inet_ntoa): Remove sections.
43262         * doc/ctime.texi: Remove file.
43263         * doc/inet_ntoa.texi: Remove file.
43264         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
43265         dependencies.
43266         (%.info): New rule, specifying a --reference-limit.
43267
43268 2007-05-01  Bruno Haible  <bruno@clisp.org>
43269
43270         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
43271
43272 2007-05-01  Bruno Haible  <bruno@clisp.org>
43273
43274         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
43275         the portability of 'mkdir' to mingw systems.
43276
43277 2007-05-01  Bruno Haible  <bruno@clisp.org>
43278
43279         * doc/headers/google-ranking.txt: New file.
43280
43281 2007-04-30  Eric Blake  <ebb9@byu.net>
43282
43283         Prefer fseeko to fseek.
43284         * modules/getpass (Depends-on): Add fseeko.
43285         * lib/getpass.c (getpass): Use fseeko, not fseek.
43286
43287 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
43288
43289         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
43290         assumes the sorting is stable, while most qsort implementations
43291         are not.  Use argument addresses to ensure they never compare as
43292         equal.
43293
43294         * tests/test-argp-2.sh (usage-indent test): Fix output
43295         (func_compare): Restore diff options
43296         * tests/test-argp.c: Restore #include "progname.h"
43297
43298 2007-04-29  Bruno Haible  <bruno@clisp.org>
43299
43300         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
43301         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43302         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
43303         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43304         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
43305         (configure.ac): Define CHECK_SNPRINTF_POSIX.
43306         (TESTS, check_PROGRAMS): Add test-snprintf.
43307         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
43308         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
43309         (TESTS, check_PROGRAMS): Add test-vsnprintf.
43310         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
43311         assertions that fail on HP-UX, OSF/1, or IRIX.
43312         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
43313
43314 2007-04-29  Bruno Haible  <bruno@clisp.org>
43315
43316         * MODULES.html.sh (posix_functions): Remove 'contents'.
43317
43318 2007-04-29  Karl Berry  <karl@gnu.org>
43319
43320         * config/srclist.txt (gendocs_template_min): new entry.
43321
43322 2007-04-29  Bruno Haible  <bruno@clisp.org>
43323
43324         Work around fpurge bug on BSD systems.
43325         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
43326         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
43327         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
43328         fpurge to rpl_fpurge if the system already has this function.
43329         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
43330         the case where the system already has this function. Correct invariants
43331         on BSD systems.
43332         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
43333         BSD systems.
43334
43335 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43336
43337         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
43338         proposed by Sven Verdoolaege.
43339
43340         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
43341         options.
43342         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
43343         (usage and help tests): Update
43344
43345 2007-04-29  Bruno Haible  <bruno@clisp.org>
43346
43347         * tests/test-fflush.c (main): Use a file of size 17, not 10.
43348         Print more information in case of failure. Disable a test on BeOS.
43349
43350 2007-04-29  Bruno Haible  <bruno@clisp.org>
43351
43352         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
43353         This helps debugging on systems on which no gdb is available.
43354
43355 2007-04-29  Bruno Haible  <bruno@clisp.org>
43356
43357         * lib/freading.h: Improve comments.
43358         * lib/fwriting.h: Likewise.
43359         * tests/test-freading.c (main): Don't check freading immediately after
43360         repositioning. Needed for glibc.
43361
43362 2007-04-29  Bruno Haible  <bruno@clisp.org>
43363
43364         * lib/freading.c (freading): Trivial simplification.
43365
43366 2007-04-28  Bruno Haible  <bruno@clisp.org>
43367
43368         * tests/test-fwriting.c (main): Also test the interaction between
43369         fflush and fwriting.
43370         * modules/fwriting-tests (Depends-on): Add fflush.
43371
43372         * tests/test-freading.c (main): Also test the interaction between
43373         fflush and freading.
43374         * modules/freading-tests (Depends-on): Add fflush.
43375
43376 2007-04-28  Bruno Haible  <bruno@clisp.org>
43377
43378         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
43379         fseeko and ftello.
43380         Suggested by Eric Blake.
43381
43382 2007-04-28  Jim Meyering  <jim@meyering.net>
43383
43384         Avoid false-negative in gl_STDINT_H's C99 conformance test.
43385         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
43386         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
43387
43388 2007-04-27  Eric Blake  <ebb9@byu.net>
43389
43390         * doc/headers/assert.texi (assert.h): Document assert module use.
43391
43392 2007-04-27  Bruno Haible  <bruno@clisp.org>
43393
43394         * doc/headers/*.texi: New files.
43395         * doc/gnulib.texi (Header File Substitutes): New chapter.
43396         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
43397         dependencies.
43398         (standards.info ,standards.html, standards.dvi): Update dependencies.
43399         (mostlyclean, clean): New targets.
43400
43401 2007-04-27  Bruno Haible  <bruno@clisp.org>
43402
43403         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
43404         * modules/sysexits (Files, Makefile.am): Update.
43405
43406         * lib/sys_socket_.h: Renamed from lib/socket_.h.
43407         * modules/sys_socket (Files, Makefile.am): Update.
43408
43409         * lib/sys_stat_.h: Renamed from lib/stat_.h.
43410         * modules/sys_stat (Files, Makefile.am): Update.
43411
43412 2007-04-27  Eric Blake  <ebb9@byu.net>
43413
43414         * lib/freading.h: Improve comments.
43415         * lib/fwriting.h: Likewise.
43416         * lib/fflush.c: Likewise.
43417
43418         Fix closein for mingw.
43419         * modules/closein-tests: Add tests for closein.
43420         * tests/test-closein.c: New file.
43421         * tests/test-closein.sh: Likewise.
43422         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
43423         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
43424
43425 2007-04-27  Bruno Haible  <bruno@clisp.org>
43426
43427         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
43428         version is < 6.
43429         * lib/math_.h [__DECC]: Likewise.
43430         * lib/stdio_.h [__DECC]: Likewise.
43431         * lib/stdlib_.h [__DECC]: Likewise.
43432         * lib/string_.h [__DECC]: Likewise.
43433         * lib/time_.h [__DECC]: Likewise.
43434         * lib/wchar_.h [__DECC]: Likewise.
43435         * lib/wctype_.h [__DECC]: Likewise.
43436
43437 2007-04-27  Bruno Haible  <bruno@clisp.org>
43438
43439         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
43440
43441 2007-04-27  Bruno Haible  <bruno@clisp.org>
43442
43443         * lib/fflush.c: Add comments.
43444         * modules/fpurge-tests (Depends-on): Add fflush.
43445         * modules/freadable-tests (Depends-on): Likewise.
43446         * modules/fwritable-tests (Depends-on): Likewise.
43447
43448 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
43449
43450         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
43451         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
43452         Report by Bruno Haible <bruno@clisp.org>.
43453
43454 2007-04-26  Eric Blake  <ebb9@byu.net>
43455
43456         Fix fflush on mingw.
43457         * modules/fflush (Depends-on): Add freading.
43458         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
43459         but unread data.
43460
43461 2007-04-26  Eric Blake  <ebb9@byu.net>
43462         and Bruno Haible  <bruno@clisp.org>
43463
43464         Implement freading and fwriting.
43465         * lib/freading.c: New file.
43466         * lib/freading.h: Likewise.
43467         * m4/freading.m4: Likewise.
43468         * modules/freading: Likewise.
43469         * modules/freading-tests: Likewise.
43470         * tests/test-freading.c: Likewise.
43471         * lib/fwriting.c: New file.
43472         * lib/fwriting.h: Likewise.
43473         * m4/fwriting.m4: Likewise.
43474         * modules/fwriting: Likewise.
43475         * modules/fwriting-tests: Likewise.
43476         * tests/test-fwriting.c: Likewise.
43477         * MODULES.html.sh (File stream based Input/Output): Mention them.
43478
43479 2007-04-26  Bruno Haible  <bruno@clisp.org>
43480
43481         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
43482         'long' when we assume it.
43483         Suggested by Eric Blake.
43484
43485 2007-04-26  Bruno Haible  <bruno@clisp.org>
43486
43487         Ensure fseeko, ftello are declared on glibc systems.
43488         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
43489         * modules/fseeko (configure.ac-early): Likewise.
43490         * modules/ftello (configure.ac-early): Likewise.
43491         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
43492         AC_FUNC_FSEEKO for this.
43493         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
43494         (gl_CHECK_FSEEKO): Remove macro.
43495
43496 2007-04-26  Bruno Haible  <bruno@clisp.org>
43497
43498         * tests/test-fflush.c (main): Also check the ftell result after
43499         fflush and fseek/fseeko.
43500         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
43501         file descriptor position cache in the stream.
43502         * lib/fseeko.c (rpl_fseeko): Likewise.
43503
43504 2007-04-26  Bruno Haible  <bruno@clisp.org>
43505
43506         * modules/fflush-tests (Depends-on): Add fseeko.
43507
43508 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
43509             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43510
43511         * lib/argz_.h: ensure error_t definition is obtained in same
43512         mechanism system argz.h would have.
43513         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
43514         argz facilities are known bad.  Err on the side of caution if
43515         cross-compiling.
43516
43517 2007-04-25  Eric Blake  <ebb9@byu.net>
43518
43519         * lib/fpurge.c (includes): Use stdlib.h for free.
43520         * tests/test-fflush.c (main): Also test fflush-fseeko.
43521
43522 2007-04-25  Bruno Haible  <bruno@clisp.org>
43523
43524         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
43525         * lib/fseeko.c: New file.
43526         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
43527         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
43528         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
43529         gl_FUNC_FSEEKO.
43530         (gl_FUNC_FSEEKO): Invoke it.
43531         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
43532         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
43533         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
43534
43535 2007-04-25  Bruno Haible  <bruno@clisp.org>
43536
43537         * modules/fflush (Depends-on): Add ftello.
43538
43539 2007-04-25  Bruno Haible  <bruno@clisp.org>
43540
43541         * modules/ftello-tests: New file.
43542         * tests/test-ftello.c: New file.
43543
43544         * modules/ftello: New file.
43545         * m4/ftello.m4: New file.
43546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
43547         HAVE_FTELLO.
43548         * lib/stdio_.h (ftello): New declaration.
43549         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
43550         HAVE_FTELLO.
43551
43552 2007-04-25  Bruno Haible  <bruno@clisp.org>
43553
43554         * modules/fseeko-tests: New file.
43555         * tests/test-fseeko.c: New file.
43556
43557         * modules/fseeko: New file.
43558         * m4/fseeko.m4: New file.
43559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
43560         HAVE_FSEEKO.
43561         * lib/stdio_.h (fseeko): New declaration.
43562         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
43563         HAVE_FSEEKO.
43564
43565 2007-04-25  Bruno Haible  <bruno@clisp.org>
43566
43567         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
43568
43569 2007-04-25  Bruno Haible  <bruno@clisp.org>
43570
43571         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
43572         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
43573         * tests/test-unistd.c: Likewise.
43574         * tests/test-fcntl.c: Likewise.
43575
43576 2007-04-23  Eric Blake  <ebb9@byu.net>
43577
43578         * lib/fflush.c: Fix missing include.
43579         Reported by Bruno Haible.
43580
43581 2007-04-23  Bruno Haible  <bruno@clisp.org>
43582
43583         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
43584         Reported by Eric Blake.
43585
43586 2007-04-23  Bruno Haible  <bruno@clisp.org>
43587
43588         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
43589
43590 2007-04-23  Bruno Haible  <bruno@clisp.org>
43591
43592         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
43593
43594 2007-04-23  Bruno Haible  <bruno@clisp.org>
43595
43596         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
43597         Needed on HP-UX 11.
43598
43599 2007-04-16  Eric Blake  <ebb9@byu.net>
43600
43601         Make fflush rely on fpurge.
43602         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
43603         open coding all variants.
43604         * modules/fflush (Depends-on): Add fpurge and unistd.
43605         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
43606         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
43607
43608         Fix --with-tests compilation on cygwin.
43609         * modules/argmatch-tests (Makefile.am): List gnulib library first
43610         in LDADD.
43611         * modules/argp-tests (Makefile.am): Likewise.
43612         * modules/array-list-tests (Makefile.am): Likewise.
43613         * modules/array-oset-tests (Makefile.am): Likewise.
43614         * modules/avltree-list-tests (Makefile.am): Likewise.
43615         * modules/avltree-oset-tests (Makefile.am): Likewise.
43616         * modules/avltreehash-list-tests (Makefile.am): Likewise.
43617         * modules/carray-list-tests (Makefile.am): Likewise.
43618         * modules/dirname-tests (Makefile.am): Likewise.
43619         * modules/frexp-tests (Makefile.am): Likewise.
43620         * modules/isnanl-tests (Makefile.am): Likewise.
43621         * modules/linked-list-tests (Makefile.am): Likewise.
43622         * modules/linkedhash-list-tests (Makefile.am): Likewise.
43623         * modules/lock-tests (Makefile.am): Likewise.
43624         * modules/rbtree-list-tests (Makefile.am): Likewise.
43625         * modules/rbtree-oset-tests (Makefile.am): Likewise.
43626         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
43627         * modules/tls-tests (Makefile.am): Likewise.
43628         * modules/tsearch-tests (Makefile.am): Likewise.
43629         * modules/xvasprintf-tests (Makefile.am): Likewise.
43630
43631         Fix fpurge for cygwin.
43632         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
43633         value.
43634         * modules/fpurge-tests (Depends-on): Clean up trash.
43635
43636 2007-04-16  Simon Josefsson  <simon@josefsson.org>
43637
43638         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
43639
43640         * m4/autobuild.m4: Re-indent.
43641
43642 2007-04-13  Bruno Haible  <bruno@clisp.org>
43643
43644         * modules/fpurge-tests: New file.
43645         * tests/test-fpurge.c: New file.
43646
43647         * modules/fpurge: New file.
43648         * lib/fpurge.h: New file.
43649         * lib/fpurge.c: New file.
43650         * m4/fpurge.m4: New file.
43651
43652 2007-04-13  Bruno Haible  <bruno@clisp.org>
43653
43654         * modules/fbufmode-tests: New file.
43655         * tests/test-fbufmode.c: New file.
43656
43657         * modules/fbufmode: New file.
43658         * lib/fbufmode.h: New file.
43659         * lib/fbufmode.c: New file.
43660         * m4/fbufmode.m4: New file.
43661
43662 2007-04-13  Bruno Haible  <bruno@clisp.org>
43663
43664         * modules/fwritable-tests: New file.
43665         * tests/test-fwritable.c: New file.
43666
43667         * modules/fwritable: New file.
43668         * lib/fwritable.h: New file.
43669         * lib/fwritable.c: New file.
43670         * m4/fwritable.m4: New file.
43671
43672 2007-04-13  Bruno Haible  <bruno@clisp.org>
43673
43674         * modules/freadable-tests: New file.
43675         * tests/test-freadable.c: New file.
43676
43677         * modules/freadable: New file.
43678         * lib/freadable.h: New file.
43679         * lib/freadable.c: New file.
43680         * m4/freadable.m4: New file.
43681
43682 2007-04-13  Bruno Haible  <bruno@clisp.org>
43683
43684         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
43685         MOSTLYCLEANFILES.
43686
43687 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43688
43689         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
43690         gzip bootstrap.conf to avoid dragging in i18n machinery.
43691         (gnulib_tool_option): Use it.
43692
43693 2007-04-13  Bruno Haible  <bruno@clisp.org>
43694
43695         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
43696         %F directives.
43697         * tests/test-vasprintf-posix.c (test_function): Likewise.
43698         * tests/test-snprintf-posix.h (test_function): Likewise.
43699         * tests/test-sprintf-posix.h (test_function): Likewise.
43700         * tests/test-fprintf-posix.h (test_function): Likewise.
43701         * tests/test-printf-posix.h (test_function): Likewise.
43702         * tests/test-fprintf-posix.out: Likewise.
43703
43704 2007-04-13  Bruno Haible  <bruno@clisp.org>
43705
43706         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
43707         * modules/tls-tests (configure.ac): Likewise.
43708         Reported by Arto C. Nirkko <anirkko@insel.ch>.
43709
43710 2007-04-13  Bruno Haible  <bruno@clisp.org>
43711
43712         * lib/tls.c (glthread_tls_get): Fix return type.
43713         Patch by Arto C. Nirkko <anirkko@insel.ch>.
43714
43715 2007-04-12  Eric Blake  <ebb9@byu.net>
43716
43717         * modules/gettime (Depends-on): Remove gettime.
43718         Reported by Dmitry V. Levin.
43719
43720 2007-04-12  Bruno Haible  <bruno@clisp.org>
43721
43722         * modules/fflush (Include): Mention <stdio.h>.
43723         * modules/strtoimax (Include): Mention <inttypes.h>.
43724         * modules/strtoumax (Include): Likewise.
43725
43726 2007-04-12  Eric Blake  <ebb9@byu.net>
43727
43728         * .cvsignore: New file.
43729         * .gitignore: Likewise.
43730
43731 2007-04-12  Bruno Haible  <bruno@clisp.org>
43732
43733         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
43734         not before, since $(LDADD) often contains libgnu.a.
43735         * modules/striconv-tests (test_striconv_LDADD): Likewise.
43736         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
43737         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
43738         Needed on Cygwin.
43739
43740 2007-04-12  Eric Blake  <ebb9@byu.net>
43741
43742         Work around glibc's failure to flush stdin on fclose.
43743         * lib/closein.c (close_stdin): Flush stdin before closing.
43744
43745         Work around glibc's failure to reset seekable stdin on exit.
43746         * modules/closein: New module.
43747         * lib/closein.c: New file.
43748         * lib/closein.h: Likewise.
43749         * m4/closein.m4: Likewise.
43750         * MODULES.html.sh (File stream based Input/Output): Document it.
43751
43752 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43753
43754         * gnulib-tool: Rename generated 'autobuild' script to
43755         'do-autobuild' in --create-megatestdir output.
43756
43757         * doc/gnulib.texi (Build robot for gnulib): Fix.
43758
43759 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43760
43761         * modules/sysexits (Depends-on): Add absolute-header.
43762
43763 2007-04-12  Eric Blake  <ebb9@byu.net>
43764
43765         No need to preserve errno on success.
43766         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
43767         Reported by Bruno Haible.
43768
43769 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43770
43771         * MODULES.html.sh (Support for maintaining and releasing
43772         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
43773
43774 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43775
43776         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
43777
43778 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43779
43780         * modules/autobuild: New module.
43781
43782         * m4/autobuild.m4: New file.
43783
43784 2007-04-11  Bruno Haible  <bruno@clisp.org>
43785
43786         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
43787         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
43788         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
43789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
43790         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43791         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43792         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43794         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43795         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43796         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
43797         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43798         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43799         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
43800         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43801         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43802         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
43803         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43804         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43805         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
43806         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43807         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43808         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
43809         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43810         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43811         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
43812         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43813         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43814         Reported by Eric Blake.
43815
43816 2007-04-11  Bruno Haible  <bruno@clisp.org>
43817
43818         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
43819
43820 2007-04-10  Bruno Haible  <bruno@clisp.org>
43821
43822         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
43823         for NaN and Infinity. Needed on FreeBSD 6.1.
43824         * tests/test-vasnprintf-posix.c (test_function): Undo last change
43825         regarding results for "%010a" of Infinity and NaN.
43826         * tests/test-vasprintf-posix.c (test_function): Likewise.
43827         * tests/test-snprintf-posix.h (test_function): Likewise.
43828         * tests/test-sprintf-posix.h (test_function): Likewise.
43829         * tests/test-fprintf-posix.h (test_function): Likewise.
43830         * tests/test-printf-posix.h (test_function): Likewise.
43831         * tests/test-fprintf-posix.out: Likewise.
43832
43833 2007-04-10  Bruno Haible  <bruno@clisp.org>
43834
43835         * modules/locale-tests: New file.
43836         * tests/test-locale.c: New file.
43837
43838         * modules/locale: New file.
43839         * lib/locale_.h: New file.
43840         * m4/locale_h.m4: New file.
43841
43842 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
43843             Bruno Haible  <bruno@clisp.org>
43844
43845         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
43846         be determined, test for availability of the copysignf, copysign,
43847         copysignl functions.
43848         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
43849         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
43850         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
43851
43852 2007-04-09  Eric Blake  <ebb9@byu.net>
43853
43854         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
43855         * modules/stdio (Makefile.am): Support fflush.
43856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43857         * modules/fflush: New file.
43858         * lib/fflush.c: Likewise.
43859         * m4/fflush.m4: Likewise.
43860         * modules/fflush-tests: New test.
43861         * tests/test-fflush.c: Likewise.
43862         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
43863
43864 2007-04-06  Bruno Haible  <bruno@clisp.org>
43865
43866         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
43867         (VASNPRINTF): Use signbit for faster determination whether to print a
43868         minus sign.
43869         * modules/vasnprintf (Files): Remove lib/float+.h.
43870         * modules/fprintf-posix (Depends-on): Add signbit.
43871         * modules/snprintf-posix (Depends-on): Likewise.
43872         * modules/sprintf-posix (Depends-on): Likewise.
43873         * modules/vasnprintf-posix (Depends-on): Likewise.
43874         * modules/vasprintf-posix (Depends-on): Likewise.
43875         * modules/vfprintf-posix (Depends-on): Likewise.
43876         * modules/vsnprintf-posix (Depends-on): Likewise.
43877         * modules/vsprintf-posix (Depends-on): Likewise.
43878
43879 2007-04-06  Bruno Haible  <bruno@clisp.org>
43880
43881         * tests/test-frexp.c (main): Test also the sign bit of zero results.
43882         * tests/test-frexpl.c (main): Likewise.
43883         * tests/test-ldexpl.c (main): Likewise.
43884         * modules/frexp-tests (Depends-on): Add signbit.
43885         * modules/frexpl-tests (Depdends-on): Likewise.
43886         * modules/ldexpl-tests (Depdends-on): Likewise.
43887
43888 2007-04-06  Bruno Haible  <bruno@clisp.org>
43889
43890         * modules/signbit-tests: New file.
43891         * tests/test-signbit.c: New file.
43892
43893         * modules/signbit: New file.
43894         * lib/signbitf.c: New file.
43895         * lib/signbitd.c: New file.
43896         * lib/signbitl.c: New file.
43897         * m4/signbit.m4: New file.
43898         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
43899         (signbit): New macro.
43900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
43901         REPLACE_SIGNBIT.
43902         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
43903         REPLACE_FREXPL into math.h.
43904
43905 2007-04-06  Bruno Haible  <bruno@clisp.org>
43906
43907         * modules/isnanf-nolibm-tests: New file.
43908         * tests/test-isnanf.c: New file.
43909
43910         * modules/isnanf-nolibm: New file.
43911         * lib/isnanf.h: New file.
43912         * lib/isnanf.c: New file.
43913         * lib/isnan.c: Consider the USE_FLOAT macro.
43914         * m4/isnanf.m4: New file.
43915
43916 2007-04-06  Bruno Haible  <bruno@clisp.org>
43917
43918         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
43919         (Link): New section.
43920
43921         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
43922
43923 2007-04-06  Bruno Haible  <bruno@clisp.org>
43924
43925         Assume the 'long double' type.
43926         * m4/longdouble.m4: Remove file.
43927         * config/srclist.txt: Don't mention longdouble.m4.
43928         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
43929         * lib/float+.h: Likewise.
43930         * lib/frexp.c: Likewise.
43931         * lib/printf-args.h: Likewise.
43932         * lib/printf-args.c: Likewise.
43933         * lib/printf-frexp.c: Likewise.
43934         * lib/printf-parse.c: Likewise.
43935         * lib/vasnprintf.c: Likewise.
43936         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
43937         * m4/intl.m4: Likewise.
43938         * m4/isnanl.m4: Likewise.
43939         * m4/printf.m4: Likewise.
43940         * m4/printf-frexpl.m4: Likewise.
43941         * m4/vasnprintf.m4: Likewise.
43942         * modules/allocsa (Files): Remove m4/longdouble.m4.
43943         * modules/gettext (Files): Likewise.
43944         * modules/relocatable-prog-wrapper (Files): Likewise.
43945         * modules/vasnprintf (Files): Likewise.
43946         * modules/isnanl (Files): Likewise.
43947         (Include): Simplify.
43948         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
43949         (Include): Simplify.
43950         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
43951         (Include): Simplify.
43952         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
43953         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43954         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
43955         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43956         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43957         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43958         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
43959         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43960         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43961         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43962         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
43963         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43964         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
43965         * tests/test-isnanl.c: Likewise.
43966         * tests/test-snprintf-posix.h: Likewise.
43967         * tests/test-sprintf-posix.h: Likewise.
43968         * tests/test-vasnprintf-posix.c: Likewise.
43969         * tests/test-vasnprintf-posix2.c: Likewise.
43970         * tests/test-vasprintf-posix.c: Likewise.
43971
43972 2007-04-06  Bruno Haible  <bruno@clisp.org>
43973
43974         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
43975         * lib/math_.h [__DECC]: Include the overridden include file through
43976         #include_next, outside the double-inclusion guard.
43977         * lib/stdio_.h [__DECC]: Likewise.
43978         * lib/stdlib_.h [__DECC]: Likewise.
43979         * lib/string_.h [__DECC]: Likewise.
43980         * lib/time_.h [__DECC]: Likewise.
43981         * lib/wchar_.h [__DECC]: Likewise.
43982         * lib/wctype_.h [__DECC]: Likewise.
43983         * lib/inttypes_.h [__DECC]: Likewise.
43984         Reported by Albert Chin <china@thewrittenword.com> in
43985         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
43986
43987 2007-04-04  Eric Blake  <ebb9@byu.net>
43988
43989         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
43990         1.5.x.
43991
43992 2007-04-04  Bruno Haible  <bruno@clisp.org>
43993
43994         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
43995         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
43996
43997 2007-04-04  Bruno Haible  <bruno@clisp.org>
43998
43999         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
44000         results for "%010a" of Infinity and NaN.
44001         * tests/test-vasprintf-posix.c (test_function): Likewise.
44002         * tests/test-snprintf-posix.h (test_function): Likewise.
44003         * tests/test-sprintf-posix.h (test_function): Likewise.
44004         * tests/test-fprintf-posix.h (test_function): Remove these tests.
44005         * tests/test-printf-posix.h (test_function): Likewise.
44006         * tests/test-fprintf-posix.out: Update.
44007         Needed for FreeBSD 6.1.
44008
44009 2007-04-04  Bruno Haible  <bruno@clisp.org>
44010
44011         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
44012         directly used by the gnulib modules nor by gnulib-tool.
44013
44014 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
44015
44016         * DEPENDENCIES: Give overall description of version dependency
44017         desirability.  Use more-typical names for apps.
44018         Add shell, coreutils, diffutils, grep, tar, gzip.
44019
44020 2007-04-04  Simon Josefsson  <simon@josefsson.org>
44021
44022         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
44023
44024 2007-04-04  Karl Berry  <karl@gnu.org>
44025
44026         * MODULES.html.sh (func_module): missing '.
44027
44028 2007-04-03  Bruno Haible  <bruno@clisp.org>
44029
44030         * modules/argmatch-tests (Makefile.am): New variable
44031         test_argmatch_LDADD.
44032         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
44033         * modules/array-list-tests (Makefile.am): New variable
44034         test_array_list_LDADD.
44035         * modules/array-oset-tests (Makefile.am): New variable
44036         test_array_oset_LDADD.
44037         * modules/avltree-list-tests (Makefile.am): New variable
44038         test_avltree_list_LDADD.
44039         * modules/avltree-oset-tests (Makefile.am): New variable
44040         test_avltree_oset_LDADD.
44041         * modules/avltreehash-list-tests (Makefile.am): New variable
44042         test_avltreehash_list_LDADD.
44043         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
44044         test_canonicalize_lgpl_LDADD.
44045         * modules/carray-list-tests (Makefile.am): New variable
44046         test_carray_list_LDADD.
44047         * modules/dirname-tests (Makefile.am): New variable
44048         test_dirname_LDADD.
44049         * modules/linked-list-tests (Makefile.am): New variable
44050         test_linked_list_LDADD.
44051         * modules/linkedhash-list-tests (Makefile.am): New variable
44052         test_linkedhash_list_LDADD.
44053         * modules/rbtree-list-tests (Makefile.am): New variable
44054         test_rbtree_list_LDADD.
44055         * modules/rbtree-oset-tests (Makefile.am): New variable
44056         test_rbtree_oset_LDADD.
44057         * modules/rbtreehash-list-tests (Makefile.am): New variable
44058         test_rbtreehash_list_LDADD.
44059         * modules/xvasprintf-tests (Makefile.am): New variable
44060         test_xvasprintf_LDADD.
44061         Reported by Eric Blake.
44062
44063 2007-04-03  Eric Blake  <ebb9@byu.net>
44064
44065         * DEPENDENCIES: Weaken m4 requirements.
44066
44067 2007-04-03  Bruno Haible  <bruno@clisp.org>
44068
44069         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
44070         * modules/isnanl-tests (configure.ac): Likewise.
44071
44072 2007-04-03  Ben Pfaff  <blp@gnu.org>
44073
44074         * modules/iconv_open: Add $(srcdir)/ to source directory
44075         references in Makefile fragments that call gperf, to fix VPATH
44076         builds.
44077
44078 2007-04-03  Bruno Haible  <bruno@clisp.org>
44079
44080         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
44081         * lib/ldexpl.c: Undo last change.
44082
44083 2007-04-03  Bruno Haible  <bruno@clisp.org>
44084
44085         * modules/printf-frexpl (Depends-on): Undo last change.
44086         (Files): Add m4/ldexpl.m4.
44087
44088 2007-04-03  Bruno Haible  <bruno@clisp.org>
44089
44090         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
44091         * modules/isnanl (Link): New section.
44092
44093         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
44094         * modules/frexp (Link): New section.
44095
44096         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
44097         * modules/frexpl (Link): New section.
44098
44099         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
44100         * modules/ldexpl (Link): New section.
44101
44102 2007-04-03  Bruno Haible  <bruno@clisp.org>
44103
44104         * modules/TEMPLATE-EXTENDED: New file.
44105         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
44106
44107 2007-04-03  Bruno Haible  <bruno@clisp.org>
44108
44109         * DEPENDENCIES: New file.
44110         Suggested by Simon Josefsson.
44111
44112 2007-04-03  Bruno Haible  <bruno@clisp.org>
44113
44114         * doc/gnulib.texi: Escape @.
44115
44116 2007-04-03  James Youngman  <jay@gnu.org>
44117         and Paul Eggert  <eggert@cs.ucla.edu>
44118
44119         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
44120         birthtime on all systems that have birthtime, not just those which
44121         use st_birthtimensec rather than st_birthtim.  Putting zero in
44122         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
44123         that the birth time is not available for files on an NFS mount.
44124
44125 2007-04-03  Simon Josefsson  <simon@josefsson.org>
44126
44127         * modules/memxor: Move back from crypto/, suggested by Bruno.
44128         * modules/crypto/hmac-sha1: Fix memxor dependency.
44129
44130         * modules/crypto/gc: Moved from ../.
44131
44132 2007-04-02  Eric Blake  <ebb9@byu.net>
44133
44134         * lib/ldexpl.c (includes): Avoid libm.
44135
44136         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
44137
44138 2007-04-02  Bruno Haible  <bruno@clisp.org>
44139
44140         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
44141         on IRIX.
44142
44143 2007-04-02  Bruno Haible  <bruno@clisp.org>
44144
44145         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
44146         x86 or x86_64 platforms running MacOS X.
44147         Reported by Ryan Schmidt <@ryandesign.com>.
44148
44149 2007-04-02  Bruno Haible  <bruno@clisp.org>
44150
44151         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
44152         i386.
44153
44154 2007-04-01  Simon Josefsson  <simon@josefsson.org>
44155
44156         * modules/crypto/arcfour: Moved from ../.
44157         * modules/crypto/arcfour-tests: Moved from ../.
44158         * modules/crypto/arctwo: Moved from ../.
44159         * modules/crypto/arctwo-tests: Moved from ../.
44160         * modules/crypto/des: Moved from ../.
44161         * modules/crypto/des-tests: Moved from ../.
44162         * modules/crypto/gc-arcfour: Moved from ../.
44163         * modules/crypto/gc-arcfour-tests: Moved from ../.
44164         * modules/crypto/gc-arctwo: Moved from ../.
44165         * modules/crypto/gc-arctwo-tests: Moved from ../.
44166         * modules/crypto/gc-des: Moved from ../.
44167         * modules/crypto/gc-des-tests: Moved from ../.
44168         * modules/crypto/gc-hmac-md5: Moved from ../.
44169         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
44170         * modules/crypto/gc-hmac-sha1: Moved from ../.
44171         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
44172         * modules/crypto/gc-md2: Moved from ../.
44173         * modules/crypto/gc-md2-tests: Moved from ../.
44174         * modules/crypto/gc-md4: Moved from ../.
44175         * modules/crypto/gc-md4-tests: Moved from ../.
44176         * modules/crypto/gc-md5: Moved from ../.
44177         * modules/crypto/gc-md5-tests: Moved from ../.
44178         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
44179         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
44180         * modules/crypto/gc-random: Moved from ../.
44181         * modules/crypto/gc-rijndael: Moved from ../.
44182         * modules/crypto/gc-rijndael-tests: Moved from ../.
44183         * modules/crypto/gc-sha1: Moved from ../.
44184         * modules/crypto/gc-sha1-tests: Moved from ../.
44185         * modules/crypto/gc-tests: Moved from ../.
44186         * modules/crypto/hmac-md5: Moved from ../.
44187         * modules/crypto/hmac-md5-tests: Moved from ../.
44188         * modules/crypto/hmac-sha1: Moved from ../.
44189         * modules/crypto/hmac-sha1-tests: Moved from ../.
44190         * modules/crypto/md2: Moved from ../.
44191         * modules/crypto/md2-tests: Moved from ../.
44192         * modules/crypto/md4: Moved from ../.
44193         * modules/crypto/md4-tests: Moved from ../.
44194         * modules/crypto/md5: Moved from ../.
44195         * modules/crypto/md5-tests: Moved from ../.
44196         * modules/crypto/memxor: Moved from ../.
44197         * modules/crypto/rijndael: Moved from ../.
44198         * modules/crypto/rijndael-tests: Moved from ../.
44199         * modules/crypto/sha1: Moved from ../.
44200
44201 2007-03-30  James Youngman  <jay@gnu.org>
44202
44203         * tests/test-stat-time.c (prepare_test): use chmod() rather than
44204         rename() to change the ctime of a file (because ctime is unaffected
44205         by rename on jfs2 on AIX 5.1).
44206         (main): Start by doing cleanup, in case a previous run failed leaving
44207         test files behind.
44208
44209 2007-03-31  Bruno Haible  <bruno@clisp.org>
44210
44211         Support old proprietary implementations of iconv.
44212         * modules/iconv_open: New file.
44213         * lib/iconv_.h: New file.
44214         * m4/iconv_h.m4: New file.
44215         * lib/iconv_open.c: New file.
44216         * lib/iconv_open-aix.gperf: New file.
44217         * lib/iconv_open-hpux.gperf: New file.
44218         * lib/iconv_open-irix.gperf: New file.
44219         * lib/iconv_open-osf.gperf: New file.
44220         * m4/iconv_open.m4: New file.
44221         * modules/linebreak (Depends-on): Add iconv_open.
44222         * modules/striconv (Depends-on): Likewise.
44223         * modules/striconveh (Depends-on): Likewise.
44224         * modules/unicodeio (Depends-on): Likewise.
44225         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
44226         (iconv_t)(-1).
44227         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
44228         conversion if cd is (iconv_t)(-1).
44229         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
44230         is not possible.
44231
44232 2007-03-31  Bruno Haible  <bruno@clisp.org>
44233
44234         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
44235         work on Solaris either. Protect also second use of "autodetect_jp".
44236
44237 2007-03-31  Bruno Haible  <bruno@clisp.org>
44238
44239         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
44240         the function is not present.
44241
44242 2007-03-31  Bruno Haible  <bruno@clisp.org>
44243
44244         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
44245         the function is not present.
44246
44247 2007-03-31  Bruno Haible  <bruno@clisp.org>
44248
44249         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
44250         a bug in HP-UX iconv_open().
44251
44252 2007-03-31  Bruno Haible  <bruno@clisp.org>
44253
44254         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
44255         (Mathematics <math.h>): New section, add fpieee.
44256         (Input/output <stdio.h>): Add fseterr.
44257         (Mathematics <math.h>): New section, add printf-frexp.
44258         (Container data structures): Add sublist.
44259         (Core language properties): Add fpucw, inline.
44260         (Functions for greatest-width integer types <inttypes.h>): Add
44261         imaxabs, imaxdiv, inttypes.
44262         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
44263         isnanl-nolibm, ldexp.
44264         (Mathematics <math.h>): New section, add printf-frexpl.
44265         (Support for systems lacking POSIX:2001): Add fprintf-posix,
44266         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
44267         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
44268         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
44269         (Unicode string functions): Add unistr/u*-mbtoucr.
44270         (Java): Add javacomp-script, javaexec-script.
44271         (C#): Add csharpcomp-script, csharpexec-script.
44272         (Support for building libraries and executables): Add havelib,
44273         relocatable-*.
44274         (Support for maintaining and releasing projects): Renamed from
44275         'Support for maintaining and release projects'. Add announce-gen.
44276
44277 2007-03-31  Bruno Haible  <bruno@clisp.org>
44278
44279         * README: Talk primarily about git.
44280         (git and CVS): Renamed from CVS.
44281         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
44282         gnulib is available through git.
44283         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
44284
44285 2007-03-30  Bruno Haible  <bruno@clisp.org>
44286
44287         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
44288         * lib/poll_.h: Likewise.
44289         * lib/stat_.h: Likewise.
44290         * lib/sys_time_.h: Likewise.
44291         * lib/sysexit_.h: Likewise.
44292         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
44293         * lib/stdbool_.h: Likewise.
44294         * lib/byteswap_.h: Add double-inclusion guard.
44295
44296 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
44297
44298         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
44299
44300 2007-03-30  Karl Berry  <karl@gnu.org>
44301
44302         * config/srclist-update: double space after USA in the license
44303         substitution, since that's how it's usually (?) written.
44304
44305 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
44306
44307         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
44308         reported by Bruno Haible.
44309
44310 2007-03-29  Bruno Haible  <bruno@clisp.org>
44311
44312         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
44313         a bug in AIX iconv().
44314
44315 2007-03-29  Bruno Haible  <bruno@clisp.org>
44316
44317         * modules/ldexpl-tests: New file.
44318         * tests/test-ldexpl.c: New file.
44319
44320 2007-03-29  Bruno Haible  <bruno@clisp.org>
44321
44322         * lib/ldexpl.c: Include fpucw.h.
44323         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
44324         multiplication.
44325         * modules/ldexpl (Depends-on): Add fpucw.
44326
44327 2007-03-29  Bruno Haible  <bruno@clisp.org>
44328
44329         * modules/ldexpl: New file.
44330         * m4/ldexpl.m4: New file.
44331         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
44332         set.
44333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
44334         REPLACE_LDEXPL.
44335         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
44336         REPLACE_LDEXPL.
44337         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
44338         gl_FUNC_LDEXPL_WORKS.
44339         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
44340         * modules/mathl (Files): Remove lib/ldexpl.c.
44341         (Depends-on): Add ldexpl.
44342
44343 2007-03-29  Bruno Haible  <bruno@clisp.org>
44344
44345         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
44346
44347 2007-03-29  Bruno Haible  <bruno@clisp.org>
44348
44349         * tests/test-striconveh.c (main): Don't assume that a direct conversion
44350         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
44351         and possibly also HP-UX.
44352         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
44353         work on AIX, IRIX, HP-UX, OSF/1.
44354         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44355         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44356         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44357         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44358         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
44359         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44360
44361 2007-03-29  Bruno Haible  <bruno@clisp.org>
44362
44363         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
44364
44365 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
44366
44367         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
44368         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
44369
44370 2007-03-29  Eric Blake  <ebb9@byu.net>
44371
44372         * lib/acl-internal.h: Remove redundant include.
44373         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
44374         Cygwin when a file is locked.
44375
44376 2007-03-29  Bruno Haible  <bruno@clisp.org>
44377
44378         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
44379         file.
44380         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
44381
44382 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
44383
44384         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
44385         try to remove a parent directory if the child couldn't be removed
44386         (except for the first rmdir, which could fail because the child
44387         doesn't exist).  Problem reported by Jeff Blaine in
44388         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
44389
44390 2007-03-28  Bruno Haible  <bruno@clisp.org>
44391
44392         * lib/striconveh.c (utf8conv_carefully): New function.
44393         (mem_cd_iconveh_internal): Invoke it.
44394
44395 2007-03-28  Bruno Haible  <bruno@clisp.org>
44396
44397         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
44398         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
44399         input.
44400         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
44401         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
44402         unistr/u8-uctomb.
44403
44404 2007-03-28  Bruno Haible  <bruno@clisp.org>
44405
44406         * modules/unistr/u8-mbtoucr: New file.
44407         * lib/unistr/u8-mbtoucr.c: New file.
44408         * modules/unistr/u16-mbtoucr: New file.
44409         * lib/unistr/u16-mbtoucr.c: New file.
44410         * modules/unistr/u16-mbtoucr: New file.
44411         * lib/unistr/u16-mbtoucr.c: New file.
44412         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
44413
44414 2007-03-27  Simon Josefsson  <simon@josefsson.org>
44415             Bruno Haible  <bruno@clisp.org>
44416
44417         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
44418         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
44419         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
44420
44421         * m4/stdio_h.m4: Add stubs for vasprintf too.
44422
44423         * modules/stdio: Support vasprintf in sed command.
44424
44425         * modules/vasprintf: Depend on stdio for prototypes.  Remove
44426         vasprintf.h.  Add stdio module indicator.
44427
44428         * lib/stdio_.h: Declare asprintf and vasprintf, based on
44429         vasprintf.h.
44430
44431         * lib/vasprintf.h: File removed.
44432
44433         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
44434         * lib/vasprintf.c: Ditto.
44435         * lib/xvasprintf.c: Ditto.
44436         * tests/test-vasprintf-posix.c: Ditto.
44437         * tests/test-vasprintf.c: Ditto.
44438
44439 2007-03-27  Bruno Haible  <bruno@clisp.org>
44440
44441         Make vasnprintf multithread-safe.
44442         * lib/vasnprintf.c (decimal_point_char): New function.
44443         (VASNPRINTF): Use it.
44444         Suggested by Simon Josefsson.
44445
44446 2007-03-27  Eric Blake  <ebb9@byu.net>
44447
44448         Support sub-second birthtime on cygwin.
44449         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
44450         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
44451         (get_stat_birthtime): Also work with st_birthtim.
44452
44453 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
44454
44455         * lib/stat-time.h (USE_BIRTHTIME): Remove.
44456         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
44457         (get_stat_birthtime_ns): Do not try to use "spare" fields.
44458         (get_stat_birthtime_ns): Simplify compile-time tests.
44459         (get_stat_birthtime): Change the API to look like
44460         get_stat_mtime etc., except return a negative tv_nsec on error.
44461         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
44462         Don't check for "spare" fields.
44463         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
44464         or for struct stat.st_birthtime, as these tests aren't used.
44465         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
44466
44467 2007-03-27  Bruno Haible  <bruno@clisp.org>
44468
44469         * lib/stat-time.h: Include <sys/stat.h>.
44470
44471 2007-03-27  James Youngman  <jay@gnu.org>
44472
44473         * lib/stat-time.h (get_stat_birthtime): New function for
44474           retrieving st_birthtime as provided by UFS2 (hence *BSD).
44475         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
44476           and its variants.
44477         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
44478         * modules/stat-time-test: New file.
44479         * tests/test-stat-time.c: New test, devised by Bruno Haible.
44480
44481 2007-03-26  Bruno Haible  <bruno@clisp.org>
44482
44483         Better support of signalling NaNs.
44484         * lib/atanl.c: Include isnanl.h.
44485         (atanl): Perform test for NaN at the beginning of the function and
44486         through a call to isnanl.
44487         * lib/cosl.c: Include isnanl.h.
44488         (cosl): Perform test for NaN at the beginning of the function and
44489         through a call to isnanl.
44490         * lib/ldexpl.c: Include isnanl.h.
44491         (ldexpl): Perform test for NaN through a call to isnanl.
44492         * lib/logl.c: Include isnanl.h.
44493         (logl): Perform test for NaN at the beginning of the function and
44494         through a call to isnanl.
44495         * lib/sinl.c: Include isnanl.h.
44496         (sinl): Perform test for NaN at the beginning of the function and
44497         through a call to isnanl.
44498         * lib/sqrtl.c: Include isnanl.h.
44499         (sqrtl): Perform test for NaN at the beginning of the function and
44500         through a call to isnanl.
44501         * lib/tanl.c: Include isnanl.h.
44502         (tanl): Perform test for NaN at the beginning of the function and
44503         through a call to isnanl.
44504         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
44505         * modules/mathl (Depends-on): Add isnanl.
44506
44507 2007-03-26  Eric Blake  <ebb9@byu.net>
44508
44509         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
44510         regression in logic sense of previous patch.
44511
44512 2007-03-26  Bruno Haible  <bruno@clisp.org>
44513
44514         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
44515         unportable shell command "if ! ...".
44516         Reported by Ralf Wildenhues.
44517
44518 2007-03-25  Bruno Haible  <bruno@clisp.org>
44519
44520         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
44521         <sysexits.h> file, and only add EX_CONFIG.
44522         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
44523         absolute file name and whether it is sufficient. Substitute also
44524         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
44525         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
44526         ABSOLUTE_SYSEXITS_H into sysexits.h.
44527
44528 2007-03-25  Bruno Haible  <bruno@clisp.org>
44529
44530         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
44531         hints is NULL.
44532
44533 2007-03-25  Bruno Haible  <bruno@clisp.org>
44534
44535         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
44536         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
44537
44538 2007-03-25  Bruno Haible  <bruno@clisp.org>
44539
44540         * lib/vasnprintf.c: Include langinfo.h.
44541         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
44542         multithread-safe.
44543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
44544         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
44545         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44546         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44547         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44549         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44550         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
44551         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44552         Reported by Simon Josefsson.
44553
44554 2007-03-25  Bruno Haible  <bruno@clisp.org>
44555
44556         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
44557         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
44558         * modules/vasnprintf (Depends-on): Add stdint.
44559
44560 2007-03-25  Bruno Haible  <bruno@clisp.org>
44561
44562         * modules/fpieee: New file.
44563         * m4/fpieee.m4: New file.
44564         * modules/isnan-nolibm (Depends-on): Add fpieee.
44565         * modules/isnanl-nolibm (Depends-on): Add fpieee.
44566         * modules/isnanl (Depends-on): Add fpieee.
44567
44568 2007-03-25  Bruno Haible  <bruno@clisp.org>
44569
44570         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
44571
44572 2007-03-25  Bruno Haible  <bruno@clisp.org>
44573
44574         Avoid test failures on IRIX 6.5.
44575         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
44576         (main): Use it.
44577         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
44578         macros.
44579         (main): Use them.
44580
44581 2007-03-25  Bruno Haible  <bruno@clisp.org>
44582
44583         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
44584         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
44585         exists but doesn't work.
44586         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
44587         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
44588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
44589         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
44590
44591 2007-03-25  Bruno Haible  <bruno@clisp.org>
44592
44593         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
44594         returns inf. Needed on IRIX 6.5.
44595
44596 2007-03-25  Bruno Haible  <bruno@clisp.org>
44597
44598         * tests/test-frexpl.c: Include isnanl-nolibm.h.
44599         (main): Use isnanl instead of x != x idiom.
44600         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
44601
44602         * tests/test-frexp.c: Include isnan.h.
44603         (main): Use isnan instead of x != x idiom.
44604         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
44605
44606 2007-03-25  Bruno Haible  <bruno@clisp.org>
44607
44608         * tests/test-frexp.c (NaN): New function/macro.
44609         (main): Use it instead of 0.0 / 0.0.
44610         * tests/test-isnan.c (NaN): New function/macro.
44611         (main): Use it instead of 0.0 / 0.0.
44612         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
44613         (test_function): Use it instead of 0.0 / 0.0.
44614         * tests/test-vasprintf-posix.c (NaN): New function/macro.
44615         (test_function): Use it instead of 0.0 / 0.0.
44616         * tests/test-snprintf-posix.h (NaN): New function/macro.
44617         (test_function): Use it instead of 0.0 / 0.0.
44618         * tests/test-sprintf-posix.h (NaN): New function/macro.
44619         (test_function): Use it instead of 0.0 / 0.0.
44620         * tests/test-fprintf-posix.h (NaN): New function/macro.
44621         (test_function): Use it instead of 0.0 / 0.0.
44622         * tests/test-printf-posix.h (NaN): New function/macro.
44623         (test_function): Use it instead of 0.0 / 0.0.
44624
44625         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
44626
44627 2007-03-25  Bruno Haible  <bruno@clisp.org>
44628
44629         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
44630
44631 2007-03-25  Bruno Haible  <bruno@clisp.org>
44632
44633         * lib/regexec.c (merge_state_with_log): Make static.
44634
44635 2007-03-25  Bruno Haible  <bruno@clisp.org>
44636
44637         * lib/trigl.c (kernel_rem_pio2): Make static.
44638
44639 2007-03-25  Bruno Haible  <bruno@clisp.org>
44640
44641         * lib/sincosl.c (sincosl_table): Make static.
44642
44643 2007-03-25  Bruno Haible  <bruno@clisp.org>
44644
44645         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
44646         if the compiler does not support C99.
44647
44648 2007-03-25  Bruno Haible  <bruno@clisp.org>
44649
44650         * modules/time (Makefile.am): Ensure all rule action lines start with a
44651         tab.
44652
44653 2007-03-24  Bruno Haible  <bruno@clisp.org>
44654
44655         * modules/tsearch-tests: New file.
44656         * tests/test-tsearch.sh: New file.
44657         * tests/test-tsearch.c: New file, mostly copied from glibc.
44658
44659         * modules/search-tests: New file.
44660         * tests/test-search.c: New file.
44661
44662         * modules/search: New file.
44663         * lib/search_.h: New file, incorporating lib/tsearch.h.
44664         * m4/search_h.m4: New file.
44665         * lib/tsearch.h: Remove file.
44666         * lib/tsearch.c: Include search.h instead of tsearch.h.
44667         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
44668         HAVE_TSEARCH.
44669         * modules/tsearch (Files): Remove lib/tsearch.h.
44670         (Depends-on): Add search.
44671         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
44672         (Include): Change tsearch.h into search.h.
44673
44674 2007-03-24  Bruno Haible  <bruno@clisp.org>
44675
44676         * modules/fpucw: New file.
44677         * lib/fpucw.h: New file.
44678         * lib/frexp.c: Include fpucw.h.
44679         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44680         (FUNC): Use them.
44681         * lib/printf-frexp.c: Include fpucw.h.
44682         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44683         (FUNC): Use them.
44684         * lib/vasnprintf.c: Include fpucw.h.
44685         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
44686         'long double' calculations.
44687         * tests/test-frexpl.c: Include fpucw.h.
44688         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44689         * tests/test-printf-frexpl.c: Include fpucw.h.
44690         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44691         * modules/frexpl (Depends-on): Add fpucw.
44692         * modules/printf-frexpl (Depends-on): Likewise.
44693         * modules/fprintf-posix (Depends-on): Likewise.
44694         * modules/snprintf-posix (Depends-on): Likewise.
44695         * modules/sprintf-posix (Depends-on): Likewise.
44696         * modules/vasnprintf-posix (Depends-on): Likewise.
44697         * modules/vasprintf-posix (Depends-on): Likewise.
44698         * modules/vfprintf-posix (Depends-on): Likewise.
44699         * modules/vsnprintf-posix (Depends-on): Likewise.
44700         * modules/vsprintf-posix (Depends-on): Likewise.
44701         * modules/frexpl-tests (Depends-on): Likewise.
44702         * modules/printf-frexpl-tests (Depends-on): Likewise.
44703
44704 2007-03-24  Bruno Haible  <bruno@clisp.org>
44705
44706         * lib/float+.h: New file.
44707         * lib/isnan.c: Include float+.h.
44708         (SIZE): New macro.
44709         (FUNC): Compare only SIZE bytes of the value.
44710         * lib/vasnprintf.c: Include float+.h.
44711         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
44712         SIZEOF_LDBL or SIZEOF_DBL bytes.
44713         * modules/isnan-nolibm (Files): Add lib/float+.h.
44714         * modules/isnanl-nolibm (Files): Add lib/float+.h.
44715         * modules/isnanl (Files): Add lib/float+.h.
44716         * modules/vasnprintf (Files): Add lib/float+.h.
44717
44718 2007-03-24  Bruno Haible  <bruno@clisp.org>
44719
44720         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
44721         include isnanl-nolibm.h.
44722
44723 2007-03-24  Bruno Haible  <bruno@clisp.org>
44724
44725         * tests/test-read-file.c (main): Don't produce spurious output for
44726         expected situations. Make the test fail if it encountered unexpected
44727         results.
44728
44729 2007-03-24  Bruno Haible  <bruno@clisp.org>
44730
44731         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
44732         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
44733
44734 2007-03-24  Bruno Haible  <bruno@clisp.org>
44735
44736         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
44737
44738 2007-03-24  Bruno Haible  <bruno@clisp.org>
44739
44740         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
44741         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
44742
44743         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
44744         * modules/utf8-ucs4: Turn into a symbolic link to module
44745         unistr/u8-mbtouc.
44746
44747         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
44748         utf8-ucs4-unsafe.
44749         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
44750         unistr/u8-mbtouc-unsafe.
44751
44752         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
44753         * modules/utf16-ucs4: Turn into a symbolic link to module
44754         unistr/u16-mbtouc.
44755
44756         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
44757         utf16-ucs4-unsafe.
44758         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
44759         unistr/u16-mbtouc-unsafe.
44760
44761         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
44762         * modules/ucs4-utf8: Turn into a symbolic link to module
44763         unistr/u8-ubtomb.
44764
44765         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
44766         * modules/ucs4-utf16: Turn into a symbolic link to module
44767         unistr/u16-ubtomb.
44768
44769 2007-03-24  Bruno Haible  <bruno@clisp.org>
44770
44771         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
44772         Enable the function only if HAVE_INLINE.
44773         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
44774         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44775         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
44776         Enable the function only if HAVE_INLINE.
44777         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
44778         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44779         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
44780         Enable the function only if HAVE_INLINE.
44781         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
44782         Enable the function only if HAVE_INLINE.
44783         * modules/utf8-ucs4: Update.
44784         * modules/utf8-ucs4-unsafe: Update.
44785         * modules/utf16-ucs4: Update.
44786         * modules/utf16-ucs4-unsafe: Update.
44787         * modules/ucs4-utf8: Update.
44788         * modules/ucs4-utf16: Update.
44789
44790 2007-03-24  Bruno Haible  <bruno@clisp.org>
44791
44792         * lib/utf8-ucs4.h: Remove file.
44793         * lib/utf8-ucs4-unsafe.h: Remove file.
44794         * lib/utf16-ucs4.h: Remove file.
44795         * lib/utf16-ucs4-unsafe.h: Remove file.
44796         * lib/ucs4-utf8.h: Remove file.
44797         * lib/ucs4-utf16.h: Remove file.
44798         * lib/unistr.h: Include their previous contents.
44799         * m4/utf-ucs4.m4: Remove file.
44800         * m4/ucs4-utf.m4: Remove file.
44801         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
44802         (Depends-on): Add unistr/base.
44803         (configure.ac): Remove gl_UTF_UCS4.
44804         (Makefile.am): Update.
44805         (Include): Change to unistr.h.
44806         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
44807         (Depends-on): Add unistr/base.
44808         (configure.ac): Remove gl_UTF_UCS4.
44809         (Makefile.am): Update.
44810         (Include): Change to unistr.h.
44811         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
44812         (Depends-on): Add unistr/base.
44813         (configure.ac): Remove gl_UTF_UCS4.
44814         (Makefile.am): Update.
44815         (Include): Change to unistr.h.
44816         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
44817         (Depends-on): Add unistr/base.
44818         (configure.ac): Remove gl_UTF_UCS4.
44819         (Makefile.am): Update.
44820         (Include): Change to unistr.h.
44821         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
44822         (Depends-on): Add unistr/base.
44823         (configure.ac): Remove gl_UCS4_UTF.
44824         (Makefile.am): Update.
44825         (Include): Change to unistr.h.
44826         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
44827         (Depends-on): Add unistr/base.
44828         (configure.ac): Remove gl_UCS4_UTF.
44829         (Makefile.am): Update.
44830         (Include): Change to unistr.h.
44831         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
44832         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
44833         utf8-ucs4-unsafe.h.
44834         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
44835         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
44836         utf16-ucs4-unsafe.h.
44837         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
44838         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
44839         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
44840         * lib/unistr/u8-strchr.c: Likewise.
44841         * lib/unistr/u8-strrchr.c: Likewise.
44842         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
44843         * lib/unistr/u16-strchr.c: Likewise.
44844         * lib/unistr/u16-strrchr.c: Likewise.
44845         * lib/striconveh.c: Update.
44846         * lib/linebreak.c: Update.
44847
44848 2007-03-24  Bruno Haible  <bruno@clisp.org>
44849
44850         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
44851         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
44852
44853 2007-03-22  Bruno Haible  <bruno@clisp.org>
44854
44855         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
44856
44857 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
44858
44859         * MODULES.html.sh (File system functions): New module write-any-file.
44860         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
44861         * m4/write-any-file.m4: New files.
44862
44863 2007-03-23  Eric Blake  <ebb9@byu.net>
44864
44865         * gnulib-tool: Rearrange space-tab sequences, since some editors
44866         like to eat them.
44867
44868 2007-03-23  Eric Blake  <ebb9@byu.net>
44869
44870         * lib/version-etc.c (version_etc_va): Update license wording to
44871         be more concise.  Recommended by Richard Stallman.
44872
44873 2007-03-22  Bruno Haible  <bruno@clisp.org>
44874
44875         * lib/poll.c (MSG_PEEK): New fallback definition.
44876
44877 2007-03-22  Bruno Haible  <bruno@clisp.org>
44878
44879         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
44880         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
44881         (main): Update.
44882         Fixes a compilation error on BeOS.
44883
44884 2007-03-22  Bruno Haible  <bruno@clisp.org>
44885
44886         * modules/frexpl-tests: New file.
44887         * tests/test-frexpl.c: New file.
44888
44889         * modules/frexpl: New file.
44890         * m4/frexpl.m4: New file.
44891         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
44892         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
44893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
44894         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
44895         (Depends-on): Add frexpl. Remove isnanl-nolibm.
44896         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
44897
44898 2007-03-22  Bruno Haible  <bruno@clisp.org>
44899
44900         * lib/frexpl.c: Share code with lib/frexp.c.
44901         * modules/mathl (Files): Add lib/frexp.c.
44902         (Depends-on): Add isnanl-nolibm.
44903
44904 2007-03-22  Bruno Haible  <bruno@clisp.org>
44905
44906         * modules/printf-frexp (Files): Add m4/frexp.m4.
44907         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
44908         only if the found frexp function actually works.
44909
44910 2007-03-22  Bruno Haible  <bruno@clisp.org>
44911
44912         * lib/frexp.c: Remove older implementation that uses divisions.
44913
44914 2007-03-21  Bruno Haible  <bruno@clisp.org>
44915
44916         * modules/frexp-tests: New file.
44917         * tests/test-frexp.c: New file.
44918
44919         * modules/frexp: New file.
44920         * lib/frexp.c: New file.
44921         * m4/frexp.m4: New file.
44922         * lib/math_.h (frexp): New declaration.
44923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
44924         REPLACE_FREXP.
44925         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
44926
44927 2007-03-21  Bruno Haible  <bruno@clisp.org>
44928
44929         * modules/isnanl-tests: New file.
44930         * tests/test-isnanl.c: New file.
44931
44932         * modules/isnanl: New file.
44933         * lib/isnanl.h: New file.
44934         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
44935         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
44936         gl_FUNC_ISNANL_WORKS.
44937         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
44938         New macros.
44939
44940 2007-03-21  Bruno Haible  <bruno@clisp.org>
44941
44942         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
44943         lib/isnanl.h.
44944         (Include): Update.
44945         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
44946         * lib/vasnprintf.c: Update.
44947         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
44948         tests/test-isnanl.h, remove tests/test-isnanl.c.
44949         (Makefile.am): Update.
44950         * tests/test-isnanl-nolibm.c: New file.
44951         * tests/test-isnanl.h: New file.
44952         * tests/test-isnanl.c: Remove file.
44953
44954 2007-03-21  Jim Meyering  <jim@meyering.net>
44955
44956         When trying to open ".", treat ESTALE like EACCES.
44957         * lib/savewd.c (savewd_save): Resort to forking not just upon
44958         failure with EACCES, but also when errno is ESTALE.
44959
44960 2007-03-20  Bruno Haible  <bruno@clisp.org>
44961
44962         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
44963         Needed on AIX 5.1. Reported by Matthew Woehlke.
44964
44965 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44966
44967         Suggestions by Bruno Haible:
44968         * lib/acl-internal.h: Include "gettext.h" rather than rolling
44969         our own.
44970         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
44971         * modules/acl (Depends-on): Add gettext.
44972
44973 2007-03-19  Bruno Haible  <bruno@clisp.org>
44974
44975         * modules/iconvme: Remove file.
44976         * lib/iconvme.h: Remove file.
44977         * lib/iconvme.c: Remove file.
44978         * m4/iconvme.m4: Remove file.
44979
44980 2007-03-19  Bruno Haible  <bruno@clisp.org>
44981
44982         * doc/relocatable-maint.texi: Break long shell script line.
44983         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44984
44985 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44986
44987         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
44988         handle file_has_acl.
44989         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
44990         * lib/acl.c: Move header inclusions and related macro defns into
44991         lib/acl-internal.h.
44992         (S_ISLNK): Remove defn, since that's now done for us.
44993         (file_has_acl): Move to lib/file-has-acl.c.
44994         Call acl_trivial if available.  This is the crucial part of the fix.
44995         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
44996         shared within the library.  Rewrite a bit, partly to make it compatible
44997         with the GNU coding style.
44998         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
44999         Remove unnecessary double-quotes.
45000         Don't test for acl_to_text; the build will catch that.
45001         Replace acl_entries if it doesn't exist and it is needed.
45002         Check for -lsec and acl_trivial (as used on Solaris 10).
45003         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
45004         lib/file-has-acl.c.
45005         (Depends-on): Add sys_stat, for S_ISLNK.
45006
45007 2007-03-19  Ben Pfaff  <blp@gnu.org>
45008
45009         * doc/gnulib.texi: Fix typos.
45010         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
45011
45012 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
45013
45014         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
45015         If size is zero here, buf must be zero.
45016
45017 2007-03-19  Simon Josefsson  <simon@josefsson.org>
45018
45019         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
45020         <bruno@clisp.org>.
45021
45022 2007-03-18  Bruno Haible  <bruno@clisp.org>
45023
45024         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
45025         Suggested by Eric Blake.
45026
45027 2007-03-18  Ben Pfaff  <blp@gnu.org>
45028
45029         * doc/relocatable.texi: Recommend using as prefix a directory
45030         that does not exist and will never be created.  Based on
45031         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
45032         and others.
45033
45034 2007-03-17  Bruno Haible  <bruno@clisp.org>
45035
45036         * lib/fchownat.c: Include lchown.h.
45037
45038 2007-03-17  Bruno Haible  <bruno@clisp.org>
45039
45040         Fix endless loop when the given allocated size was > INT_MAX.
45041         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
45042         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
45043         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
45044         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
45045         * lib/sprintf.c (sprintf): Likewise.
45046
45047 2007-03-17  Bruno Haible  <bruno@clisp.org>
45048
45049         * tests/test-argp-2.sh (func_compare): Output a context diff.
45050
45051 2007-03-17  Bruno Haible  <bruno@clisp.org>
45052
45053         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
45054         locale's decimal-point character.
45055
45056 2007-03-17  Bruno Haible  <bruno@clisp.org>
45057
45058         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
45059         before comparing it. Needed because on some platforms (e.g. x86) a
45060         'long double' occupies less bytes than sizeof (long double).
45061
45062 2007-03-17  Bruno Haible  <bruno@clisp.org>
45063
45064         * tests/test-crc.c (main): Make printf statements 64-bit clean.
45065         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
45066         * tests/test-getaddrinfo.c (simple): Likewise.
45067         * tests/test-read-file.c (main): Likewise.
45068
45069 2007-03-17  Bruno Haible  <bruno@clisp.org>
45070
45071         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
45072
45073 2007-03-17  Bruno Haible  <bruno@clisp.org>
45074
45075         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
45076         unused variable.
45077
45078 2007-03-17  Bruno Haible  <bruno@clisp.org>
45079
45080         * tests/test-c-strcasecmp.c: Include c-strcase.h.
45081         * tests/test-c-strncasecmp.c: Likewise.
45082
45083 2007-03-17  Bruno Haible  <bruno@clisp.org>
45084
45085         * modules/stdlib (Depends-on): Add unistd.
45086         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
45087         Needed for MacOS X 10.3.
45088
45089 2007-03-17  Bruno Haible  <bruno@clisp.org>
45090
45091         * lib/unistr/u-strdup.h: Include <stdlib.h>.
45092
45093 2007-03-17  Bruno Haible  <bruno@clisp.org>
45094
45095         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
45096
45097 2007-03-17  Bruno Haible  <bruno@clisp.org>
45098
45099         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
45100         to reflect files copied from gnulib (with or without modifications).
45101         Suggested by Jim Meyering.
45102
45103 2007-03-17  Eric Blake  <ebb9@byu.net>
45104
45105         * NEWS: Document stdlib change from 2007-02-18.
45106
45107 2007-03-17  Jim Meyering  <jim@meyering.net>
45108
45109         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
45110         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
45111         someone uses a name containing shell meta-characters.
45112         Reported by Alfred M. Szmidt.
45113
45114         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
45115
45116 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
45117
45118         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
45119         and copy gettext configuration files only if configure.ac contains
45120         a use of AM_GNU_GETTEXT_VERSION.
45121
45122 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
45123
45124         * build-aux/bootstrap (gnulib_name): New variable.
45125         (gnulib_tool_options): Use it.
45126
45127 2007-03-13  Simon Josefsson  <simon@josefsson.org>
45128
45129         * tests/test-des.c: Use new namespace.
45130
45131 2007-03-15  Bruno Haible  <bruno@clisp.org>
45132
45133         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
45134         Reported by James Youngman <jay@gnu.org>.
45135
45136 2007-03-15  Bruno Haible  <bruno@clisp.org>
45137
45138         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
45139         declared prototype. Needed with cc on OSF/1 5.1.
45140
45141 2007-03-15  Bruno Haible  <bruno@clisp.org>
45142
45143         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
45144         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
45145         (struct gl_list_implementation): Add dispose_fn argument to the
45146         'create_empty', 'create' methods.
45147         (struct gl_list_impl_base): Add field 'dispose_fn'.
45148         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
45149         argument.
45150         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
45151         dispose_fn argument.
45152         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
45153         dispose_fn on the dropped values.
45154         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
45155         dispose_fn argument.
45156         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
45157         dropped values.
45158         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
45159         (gl_tree_remove_node): Call dispose_fn on the dropped value.
45160         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
45161         (gl_tree_remove_node): Call dispose_fn on the dropped value.
45162         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
45163         argument.
45164         (gl_tree_list_free): Call dispose_fn on the dropped values.
45165         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
45166         the dropped values.
45167         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
45168         Add dispose_fn argument.
45169         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
45170         Call dispose_fn on the dropped values.
45171         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
45172         Add dispose_fn argument.
45173         (gl_sublist_create): Initialize the 'dispose_fn' field.
45174         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
45175         * tests/test-array_list.c (main): Update.
45176         * tests/test-carray_list.c (main): Update.
45177         * tests/test-avltree_list.c (main): Update.
45178         * tests/test-rbtree_list.c (main): Update.
45179         * tests/test-avltreehash_list.c (main): Update.
45180         * tests/test-rbtreehash_list.c (main): Update.
45181         * tests/test-linked_list.c (main): Update.
45182         * tests/test-linkedhash_list.c (main): Update.
45183         * tests/test-array_oset.c (main): Update.
45184
45185 2007-03-15  Bruno Haible  <bruno@clisp.org>
45186
45187         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
45188         (gl_oset_create_empty): Add dispose_fn argument.
45189         (struct gl_oset_implementation): Add dispose_fn argument to
45190         'create_empty' method.
45191         (struct gl_oset_impl_base): Add dispose_fn field.
45192         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
45193         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
45194         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
45195         values.
45196         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
45197         (gl_tree_oset_free): Call dispose_fn on the dropped values.
45198         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
45199         dropped value.
45200         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
45201         dropped value.
45202         * tests/test-array_oset.c (main): Update.
45203         * tests/test-avltree_oset.c (main): Update.
45204         * tests/test-rbtree_oset.c (main): Update.
45205         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
45206
45207 2007-03-13  Bruno Haible  <bruno@clisp.org>
45208
45209         * tests/test-stdbool.c (i): Update after last patch.
45210
45211 2007-03-12  Bruno Haible  <bruno@clisp.org>
45212
45213         * lib/quotearg.c: Include <wctype.h> early, before the definition of
45214         the iswprint macro. Needed on Solaris 2.5.1.
45215
45216 2007-03-12  Bruno Haible  <bruno@clisp.org>
45217
45218         * tests/test-printf-frexp.c (main): Declare x as volatile.
45219
45220 2007-03-12  Simon Josefsson  <simon@josefsson.org>
45221
45222         * doc/gnulib.texi (Build robot for gnulib): New section.
45223
45224 2007-03-12  Jim Meyering  <jim@meyering.net>
45225
45226         * build-aux/bootstrap: New file.
45227         * build-aux/bootstrap.conf: New file, from coreutils.
45228
45229 2007-03-11  Bruno Haible  <bruno@clisp.org>
45230
45231         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
45232
45233 2007-03-12  Simon Josefsson  <simon@josefsson.org>
45234
45235         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
45236         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
45237         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
45238
45239 2007-03-11  Bruno Haible  <bruno@clisp.org>
45240
45241         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
45242         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
45243
45244 2007-03-11  Bruno Haible  <bruno@clisp.org>
45245
45246         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
45247         formula. Needed for SunPRO C 5.0.
45248
45249 2007-03-11  Bruno Haible  <bruno@clisp.org>
45250
45251         * modules/long-options (Depends-on): Add getopt.
45252
45253 2007-03-11  Bruno Haible  <bruno@clisp.org>
45254
45255         * modules/modechange (Depends-on): Add stdbool.
45256
45257 2007-03-11  Bruno Haible  <bruno@clisp.org>
45258
45259         * modules/i-ring (Depends-on): Add stdbool.
45260
45261 2007-03-11  Bruno Haible  <bruno@clisp.org>
45262
45263         * modules/gc-des (Depends-on): Add stdbool.
45264
45265 2007-03-11  Bruno Haible  <bruno@clisp.org>
45266
45267         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
45268
45269 2007-03-11  Bruno Haible  <bruno@clisp.org>
45270
45271         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
45272
45273 2007-03-11  Bruno Haible  <bruno@clisp.org>
45274
45275         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
45276
45277 2007-03-11  Bruno Haible  <bruno@clisp.org>
45278
45279         * lib/vasnprintf.c (sprintf): Undefine.
45280
45281 2007-03-11  Bruno Haible  <bruno@clisp.org>
45282
45283         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
45284         initializers in SunPRO C and Compaq C compilers.
45285
45286 2007-03-11  Bruno Haible  <bruno@clisp.org>
45287
45288         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
45289         decrementing code ANSI C compliant.
45290
45291 2007-03-11  Bruno Haible  <bruno@clisp.org>
45292
45293         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
45294         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
45295
45296 2007-03-11  Bruno Haible  <bruno@clisp.org>
45297
45298         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
45299         <stdbool.h> substitute doesn't pass.
45300
45301 2007-03-11  Bruno Haible  <bruno@clisp.org>
45302
45303         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
45304
45305 2007-03-11  Bruno Haible  <bruno@clisp.org>
45306
45307         * gnulib-tool (func_create_megatestdir): Create also an autobuild
45308         script, for submission to autobuild.josefsson.org.
45309
45310 2007-03-10  Bruno Haible  <bruno@clisp.org>
45311
45312         * modules/canonicalize-lgpl-tests: New file.
45313         * tests/test-canonicalize-lgpl.sh: New file.
45314         * tests/test-canonicalize-lgpl.c: New file.
45315
45316         * modules/c-strcase-tests: New file.
45317         * tests/test-c-strcase.sh: New file.
45318         * tests/test-c-strcasecmp.c: New file.
45319         * tests/test-c-strncasecmp.c: New file.
45320
45321         * modules/atexit-tests: New file.
45322         * tests/test-atexit.sh: New file.
45323         * tests/test-atexit.c: New file.
45324
45325 2007-03-10  Bruno Haible  <bruno@clisp.org>
45326
45327         * tests/test-binary-io.sh: Use temporary filenames that are not so
45328         likely to clash with those of other tests (in a parallel make).
45329         * tests/test-binary-io.c: Likewise.
45330
45331 2007-03-10  Bruno Haible  <bruno@clisp.org>
45332
45333         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
45334         fallback; use #error instead.
45335         Suggested by Simon Josefsson.
45336
45337 2007-03-10  Bruno Haible  <bruno@clisp.org>
45338
45339         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
45340         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
45341         first and the last.
45342
45343 2007-03-10  Bruno Haible  <bruno@clisp.org>
45344
45345         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
45346
45347 2007-03-10  Bruno Haible  <bruno@clisp.org>
45348
45349         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
45350         "make distcheck".
45351         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
45352         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
45353         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
45354
45355 2007-03-10  Bruno Haible  <bruno@clisp.org>
45356
45357         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
45358         variable.
45359         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
45360         variable.
45361
45362 2007-03-09  Eric Blake  <ebb9@byu.net>
45363         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
45364
45365         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
45366         types are not being provided by gnulib.
45367         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
45368         types are supported.
45369
45370 2007-03-10  Bruno Haible  <bruno@clisp.org>
45371
45372         * lib/stdio_.h (__attribute__): New macro.
45373         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
45374         vsprintf): Specify __attribute__ __format__ for GCC.
45375         Suggested by Eric Blake.
45376
45377 2007-03-09  Bruno Haible  <bruno@clisp.org>
45378
45379         * modules/printf-posix-tests: New file.
45380         * tests/test-printf-posix.sh: New file.
45381         * tests/test-printf-posix.c: New file.
45382
45383         * modules/printf-posix: New file.
45384         * lib/printf.c: New file.
45385         * m4/printf-posix-rpl.m4: New file.
45386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
45387         REPLACE_PRINTF.
45388         * lib/stdio_.h (printf): New declaration.
45389         (format, __format__, ____printf____, ____scanf____, ____strftime____,
45390         ____strfmon____): New macros.
45391         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
45392         REPLACE_PRINTF.
45393
45394 2007-03-09  Bruno Haible  <bruno@clisp.org>
45395
45396         * tests/test-vasnprintf-posix2.sh: New file.
45397         * tests/test-vasnprintf-posix2.c: New file.
45398         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
45399         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
45400         (Makefile.am): Activate test-vasnprintf-posix2.sh.
45401
45402         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
45403         a locale dependent decimal point, rather than always '.'.
45404
45405 2007-03-09  Eric Blake  <ebb9@byu.net>
45406
45407         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
45408         spite of platforms like Tandem/NSK that define it to -1.
45409
45410 2007-03-08  Bruno Haible  <bruno@clisp.org>
45411
45412         * modules/vprintf-posix-tests: New file.
45413         * tests/test-vprintf-posix.sh: New file.
45414         * tests/test-vprintf-posix.c: New file.
45415         * tests/test-printf-posix.h: New file.
45416
45417         * modules/vprintf-posix: New file.
45418         * lib/vprintf.c: New file.
45419         * m4/vprintf-posix.m4: New file.
45420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
45421         REPLACE_VPRINTF.
45422         * lib/stdio_.h (vprintf): New declaration.
45423         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
45424         REPLACE_VPRINTF.
45425
45426 2007-03-08  Bruno Haible  <bruno@clisp.org>
45427
45428         * modules/fprintf-posix-tests: New file.
45429         * tests/test-fprintf-posix.sh: New file.
45430         * tests/test-fprintf-posix.c: New file.
45431
45432         * modules/fprintf-posix: New file.
45433         * lib/fprintf.c: New file.
45434         * m4/fprintf-posix.m4: New file.
45435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
45436         REPLACE_FPRINTF.
45437         * lib/stdio_.h (fprintf): New declaration.
45438         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
45439         REPLACE_FPRINTF.
45440
45441 2007-03-08  Bruno Haible  <bruno@clisp.org>
45442
45443         * modules/vfprintf-posix-tests: New file.
45444         * tests/test-vfprintf-posix.sh: New file.
45445         * tests/test-vfprintf-posix.c: New file.
45446         * tests/test-fprintf-posix.h: New file.
45447         * tests/test-fprintf-posix.out: New file.
45448
45449         * modules/vfprintf-posix: New file.
45450         * lib/vfprintf.c: New file.
45451         * m4/vfprintf-posix.m4: New file.
45452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
45453         REPLACE_VFPRINTF.
45454         * lib/stdio_.h (vfprintf): New declaration.
45455         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
45456         REPLACE_VFPRINTF.
45457
45458 2007-03-08  Bruno Haible  <bruno@clisp.org>
45459
45460         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
45461
45462 2007-03-08  Bruno Haible  <bruno@clisp.org>
45463
45464         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
45465         instead of 'expr' invocations.
45466         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45467         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45468         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45469         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45470         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45471         Suggested by Paul Eggert.
45472
45473 2007-03-08  Bruno Haible  <bruno@clisp.org>
45474
45475         * modules/fseterr-tests: New file.
45476         * tests/test-fseterr.c: New file.
45477
45478         * modules/fseterr: New file.
45479         * lib/fseterr.h: New file.
45480         * lib/fseterr.c: New file.
45481
45482 2007-03-08  Bruno Haible  <bruno@clisp.org>
45483
45484         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
45485         * lib/getopt_.h: Likewise.
45486         * lib/mbswidth.h: Likewise.
45487         * lib/setenv.h: Likewise.
45488         * lib/vasnprintf.h: Likewise.
45489         * lib/vasprintf.h: Likewise.
45490         * lib/verror.h: Likewise.
45491         * lib/xsetenv.h: Likewise.
45492         * lib/xvasprintf.h: Likewise.
45493
45494 2007-03-08  Jim Meyering  <jim@meyering.net>
45495
45496         * users.txt: Add parted.
45497
45498         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
45499
45500 2007-03-07  Bruno Haible  <bruno@clisp.org>
45501
45502         * m4/printf.m4: Make the shell script snippets copy&pastable.
45503
45504 2007-03-02  Bruno Haible  <bruno@clisp.org>
45505
45506         * lib/netinet_in_.h: New file.
45507         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
45508         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
45509         * modules/netinet_in (Files): Add lib/netinet_in_.h.
45510         (Depends-on): Add absolute-header.
45511         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
45512         into netinet/in.h.
45513
45514 2007-03-03  Bruno Haible  <bruno@clisp.org>
45515
45516         * lib/sys_select_.h: New file.
45517         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
45518         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
45519         * modules/sys_select (Files): Add lib/sys_select_.h.
45520         (Depends-on): Add absolute-header.
45521         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
45522         into sys/select.h.
45523
45524 2007-03-02  Bruno Haible  <bruno@clisp.org>
45525
45526         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
45527         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
45528         values.
45529         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
45530         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
45531         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
45532         * modules/sys_socket (Depends-on): Add absolute-header.
45533         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
45534         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
45535         (Include): Remove requirement of inclusion of <sys/types.h>.
45536
45537 2007-03-02  Bruno Haible  <bruno@clisp.org>
45538
45539         * lib/byteswap_.h (bswap_32): Fix formula.
45540
45541 2007-03-06  Bruno Haible  <bruno@clisp.org>
45542
45543         * modules/sprintf-posix-tests: New file.
45544         * tests/test-sprintf-posix.c: New file.
45545
45546         * modules/sprintf-posix: New file.
45547         * lib/sprintf.c: New file.
45548         * m4/sprintf-posix.m4: New file.
45549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
45550         REPLACE_SPRINTF.
45551         * lib/stdio_.h (sprintf): New declaration.
45552         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
45553         REPLACE_SPRINTF.
45554
45555 2007-03-06  Bruno Haible  <bruno@clisp.org>
45556
45557         * modules/vsprintf-posix-tests: New file.
45558         * tests/test-vsprintf-posix.c: New file.
45559         * tests/test-sprintf-posix.h: New file.
45560
45561         * modules/vsprintf-posix: New file.
45562         * lib/vsprintf.c: New file.
45563         * m4/vsprintf-posix.m4: New file.
45564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
45565         REPLACE_VSPRINTF.
45566         * lib/stdio_.h (vsprintf): New declaration.
45567         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
45568         REPLACE_VSPRINTF.
45569
45570 2007-03-06  Bruno Haible  <bruno@clisp.org>
45571
45572         * modules/vsnprintf (Depend-on): Remove minmax.
45573
45574 2007-03-06  Bruno Haible  <bruno@clisp.org>
45575
45576         * modules/snprintf-posix-tests: New file.
45577         * tests/test-snprintf-posix.c: New file.
45578
45579         * modules/snprintf-posix: New file.
45580         * m4/snprintf-posix.m4: New file.
45581         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
45582         gl_FUNC_SNPRINTF.
45583         (gl_FUNC_SNPRINTF): Invoke it.
45584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
45585         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
45586         is set.
45587         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
45588
45589 2007-03-06  Bruno Haible  <bruno@clisp.org>
45590
45591         * modules/vsnprintf-posix-tests: New file.
45592         * tests/test-vsnprintf-posix.c: New file.
45593         * tests/test-snprintf-posix.h: New file.
45594
45595         * modules/vsnprintf-posix: New file.
45596         * m4/vsnprintf-posix.m4: New file.
45597         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
45598         gl_FUNC_VSNPRINTF.
45599         (gl_FUNC_VSNPRINTF): Invoke it.
45600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
45601         * lib/stdio_.h (vsnprintf): Define as a replacement if
45602         REPLACE_VSNPRINTF is set.
45603         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
45604
45605 2007-03-06  Bruno Haible  <bruno@clisp.org>
45606
45607         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
45608         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
45609
45610 2007-03-06  Bruno Haible  <bruno@clisp.org>
45611
45612         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
45613         (asinl): Declare also if HAVE_DECL_ASINL is set.
45614         (atanl): Declare also if HAVE_DECL_ATANL is set.
45615         (ceill): Declare also if HAVE_DECL_CEILL is set.
45616         (cosl): Declare also if HAVE_DECL_COSL is set.
45617         (expl): Declare also if HAVE_DECL_EXPL is set.
45618         (floorl): Declare also if HAVE_DECL_FLOORL is set.
45619         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
45620         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
45621         (logl): Declare also if HAVE_DECL_LOGL is set.
45622         (sinl): Declare also if HAVE_DECL_SINL is set.
45623         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
45624         (tanl): Declare also if HAVE_DECL_TANL is set.
45625         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
45626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
45627         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
45628         declaration of frexpl, ldexpl.
45629         * modules/printf-frexpl (Depends-on): Add math.
45630         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
45631
45632 2007-03-05  Bruno Haible  <bruno@clisp.org>
45633
45634         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
45635         frexpl and ldexpl are declared.
45636         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
45637
45638 2007-03-05  Bruno Haible  <bruno@clisp.org>
45639
45640         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
45641         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
45642
45643 2007-03-05  Bruno Haible  <bruno@clisp.org>
45644
45645         * lib/stdio_.h: Include <stddef.h>.
45646
45647 2007-03-05  Bruno Haible  <bruno@clisp.org>
45648
45649         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
45650
45651 2007-03-05  Bruno Haible  <bruno@clisp.org>
45652
45653         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
45654         NetBSD 4, from Ralf Wildenhues.
45655
45656 2007-03-04  Bruno Haible  <bruno@clisp.org>
45657
45658         * lib/vasprintf.h: Update #if logic for the case when the functions
45659         exist but are overridden.
45660
45661 2007-03-04  Bruno Haible  <bruno@clisp.org>
45662
45663         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
45664         implementations: glibc-2.4 and MacOS X 10.3.
45665         * tests/test-vasnprintf-posix.c (test_function): Test also the case
45666         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
45667         * tests/test-vasprintf-posix.c (test_function): Likewise.
45668
45669 2007-03-04  Bruno Haible  <bruno@clisp.org>
45670
45671         * modules/vasprintf-posix-tests: New file.
45672         * tests/test-vasprintf-posix.c: New file.
45673
45674         * modules/vasprintf-posix: New file.
45675         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
45676         defined.
45677         * m4/vasprintf-posix.m4: New file.
45678         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
45679         gl_FUNC_VASPRINTF.
45680         (gl_FUNC_VASPRINTF): Invoke it.
45681         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
45682         here.
45683         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
45684
45685 2007-03-04  Bruno Haible  <bruno@clisp.org>
45686
45687         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
45688         REPLACE_GETTIMEOFDAY.
45689         * modules/sys_time (Makefile.am): Likewise.
45690         * m4/sys_time_h.m4: Likewise.
45691         * m4/gettimeofday.m4: Likewise.
45692
45693 2007-03-04  Bruno Haible  <bruno@clisp.org>
45694
45695         * modules/vasnprintf-posix-tests: New file.
45696         * tests/test-vasnprintf-posix.c: New file.
45697
45698         * modules/vasnprintf-posix: New file.
45699         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
45700         printf-frexpl.h.
45701         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
45702         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
45703         REPLACE_VASNPRINTF is defined.
45704         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
45705         gl_FUNC_VASNPRINTF.
45706         (gl_FUNC_VASNPRINTF): Invoke it.
45707         * m4/vasnprintf-posix.m4: New file.
45708         * m4/printf.m4: New file.
45709
45710 2007-03-04  Bruno Haible  <bruno@clisp.org>
45711
45712         Compile progreloc.c only if --enable-relocatable is specified.
45713         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
45714         if --enable-relocatable was specified.
45715         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
45716         lib_SOURCES.
45717
45718 2007-03-04  Jim Meyering  <jim@meyering.net>
45719
45720         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
45721         Use it consistently, rather than enumerating errno constants.
45722
45723 2007-03-04  Bruno Haible  <bruno@clisp.org>
45724
45725         * modules/xvasprintf-tests: New file.
45726         * tests/test-xvasprintf.c: New file.
45727
45728         * modules/vasprintf-tests: New file.
45729         * tests/test-vasprintf.c: New file.
45730
45731         * modules/vasnprintf-tests: New file.
45732         * tests/test-vasnprintf.c: New file.
45733
45734         * modules/vsnprintf-tests: New file.
45735         * tests/test-vsnprintf.c: New file.
45736
45737         * modules/snprintf-tests: New file.
45738         * tests/test-snprintf.c: New file.
45739
45740 2007-03-04  Bruno Haible  <bruno@clisp.org>
45741
45742         Compile relocatable.c only if --enable-relocatable is specified.
45743         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
45744         gl_RELOCATABLE_LIBRARY.
45745         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
45746         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
45747         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
45748         gl_RELOCATABLE_LIBRARY.
45749         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
45750         (Makefile.am): Remove lib_SOURCES.
45751         * modules/relocatable-lib-lgpl (configure.ac): Invoke
45752         gl_RELOCATABLE_LIBRARY.
45753         (Makefile.am): Remove lib_SOURCES.
45754         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
45755         always.
45756         * modules/relocatable-prog-wrapper (configure.ac): Invoke
45757         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
45758
45759 2007-03-04  Bruno Haible  <bruno@clisp.org>
45760
45761         * modules/argmatch-tests: New file.
45762         * tests/test-argmatch.c: New file.
45763
45764         * tests/test-allocsa.c (main): Halve the number of loop runs.
45765
45766         * modules/alloca-opt-tests: New file.
45767         * tests/test-alloca-opt.c: New file.
45768
45769 2007-03-04  Jim Meyering  <jim@meyering.net>
45770
45771         Work around difference between Linux ACLs and Solaris 10 ZFS.
45772         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
45773         for EINVAL.
45774
45775 2007-03-03  Bruno Haible  <bruno@clisp.org>
45776
45777         * modules/relocatable-prog (Depends-on): Add back progreloc's
45778         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
45779
45780 2007-03-03  Bruno Haible  <bruno@clisp.org>
45781
45782         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
45783         * modules/relocatable-lib: New file.
45784
45785 2007-03-03  Bruno Haible  <bruno@clisp.org>
45786
45787         * modules/relocatable-prog: Renamed from modules/relocatable.
45788         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
45789
45790 2007-03-03  Bruno Haible  <bruno@clisp.org>
45791
45792         * modules/relocatable-script (Files): Add doc/relocatable.texi,
45793         m4/relocatable-lib.m4.
45794         (Depends-on): Remove 'relocatable'.
45795         (configure.ac): Add gl_RELOCATABLE_NOP.
45796
45797 2007-03-03  Bruno Haible  <bruno@clisp.org>
45798
45799         * modules/relocatable-prog-wrapper: New file.
45800         * modules/relocatable (Depends-on): Add it. Remove all other
45801         dependencies except progname.
45802         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
45803
45804         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
45805         (gl_FUNC_STRERROR): Nop.
45806         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
45807
45808         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
45809         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
45810
45811         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
45812         (gl_FUNC_READLINK): Update.
45813
45814         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
45815
45816 2007-03-03  Bruno Haible  <bruno@clisp.org>
45817
45818         * lib/xreadlink.c: Include <unistd.h> unconditionally.
45819         * modules/xreadlink (Depends-on): Add unistd.
45820         * modules/xreadlink-with-size (Depends-on): Likewise.
45821
45822 2007-03-03  Bruno Haible  <bruno@clisp.org>
45823
45824         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
45825         extracted from gt_FUNC_SETENV.
45826         (gt_FUNC_SETENV): Remove macro.
45827         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
45828         remove gt_FUNC_SETENV.
45829
45830 2007-03-03  Bruno Haible  <bruno@clisp.org>
45831
45832         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
45833         ENABLE_RELOCATABLE here.
45834         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
45835
45836 2007-03-03  Bruno Haible  <bruno@clisp.org>
45837
45838         * modules/rbtreehash-list-tests (Depends-on): Add progname.
45839         * tests/test-rbtreehash_list.c: Include progname.h.
45840         (main): Call set_program_name.
45841
45842         * modules/rbtree-oset-tests (Depends-on): Add progname.
45843         * tests/test-rbtree_oset.c: Include progname.h.
45844         (main): Call set_program_name.
45845
45846         * modules/rbtree-list-tests (Depends-on): Add progname.
45847         * tests/test-rbtree_list.c: Include progname.h.
45848         (main): Call set_program_name.
45849
45850         * modules/linked-list-tests (Depends-on): Add progname.
45851         * tests/test-linked_list.c: Include progname.h.
45852         (main): Call set_program_name.
45853
45854 2007-03-03  Bruno Haible  <bruno@clisp.org>
45855
45856         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
45857         All uses of __restrict changed to _Restrict_.
45858         * lib/glob_.h (__restrict): Remove macro.
45859
45860 2007-03-02  Bruno Haible  <bruno@clisp.org>
45861
45862         * modules/gettext (configure.ac): Require gettext infrastructure
45863         from version 0.16.1.
45864
45865 2007-03-02  Bruno Haible  <bruno@clisp.org>
45866
45867         * modules/linkedhash-list-tests (Depends-on): Add progname.
45868         * tests/test-linkedhash_list.c: Include progname.h.
45869         (main): Call set_program_name.
45870
45871         * modules/carray-list-tests (Depends-on): Add progname.
45872         * tests/test-carray_list.c: Include progname.h.
45873         (main): Call set_program_name.
45874
45875         * modules/avltreehash-list-tests (Depends-on): Add progname.
45876         * tests/test-avltreehash_list.c: Include progname.h.
45877         (main): Call set_program_name.
45878
45879         * modules/avltree-oset-tests (Depends-on): Add progname.
45880         * tests/test-avltree_oset.c: Include progname.h.
45881         (main): Call set_program_name.
45882
45883         * modules/avltree-list-tests (Depends-on): Add progname.
45884         * tests/test-avltree_list.c: Include progname.h.
45885         (main): Call set_program_name.
45886
45887         * modules/array-oset-tests (Depends-on): Add progname.
45888         * tests/test-array_oset.c: Include progname.h.
45889         (main): Call set_program_name.
45890
45891         * modules/array-list-tests (Depends-on): Add progname.
45892         * tests/test-array_list.c: Include progname.h.
45893         (main): Call set_program_name.
45894
45895         * modules/argp-tests (Depends-on): Add progname.
45896         * tests/test-argp.c: Include argp.h first. Include progname.h.
45897         (main): Call set_program_name.
45898
45899 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
45900
45901         * doc/gnulib-tool.texi (Initial import): Reword description of
45902         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
45903         limited effect even if defined after the first system include.
45904
45905 2007-03-01  Bruno Haible  <bruno@clisp.org>
45906
45907         * build-aux/config.libpath: Update to libtool-1.5.22.
45908         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45909
45910 2007-03-01  Bruno Haible  <bruno@clisp.org>
45911
45912         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
45913         foo_CFLAGS.
45914         Reported by Ralf Wildenhues.
45915
45916 2007-03-01  Bruno Haible  <bruno@clisp.org>
45917
45918         * build-aux/install-reloc: Remove object files left over by some
45919         compilers.
45920         Reported by Ralf Wildenhues.
45921
45922 2007-03-01  Bruno Haible  <bruno@clisp.org>
45923
45924         * build-aux/install-reloc: Break long lines.
45925
45926 2007-03-01  Bruno Haible  <bruno@clisp.org>
45927
45928         * doc/relocatable.texi: Document that it may not work on OpenBSD.
45929         Reported by Ralf Wildenhues.
45930
45931 2007-03-01  Bruno Haible  <bruno@clisp.org>
45932
45933         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
45934         include ordering constraints.
45935
45936 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45937
45938         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
45939         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
45940         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
45941         as another example.
45942         * lib/time_.h: Fix misspelling.
45943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45944         Require gl_HEADER_TIME_H_DEFAULTS.
45945         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
45946         * m4/time_r.m4 (gl_TIME_R): Likewise.
45947         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
45948
45949 2007-03-01  Bruno Haible  <bruno@clisp.org>
45950
45951         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
45952         * m4/utimens.m4 (gl_UTIMENS): Likewise.
45953
45954 2007-03-01  Jim Meyering  <jim@meyering.net>
45955
45956         * modules/xreadlink (Maintainer): Add my name.
45957         * modules/xreadlink-with-size (Depends-on): Alphabetize.
45958
45959 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
45960             Bruno Haible  <bruno@clisp.org>
45961
45962         * build-aux/install-reloc: Compile also c-ctype.c.
45963         * build-aux/relocatable.sh.in: New file.
45964         * doc/relocatable.texi: New file.
45965         * doc/relocatable-maint.texi: New file.
45966         * doc/gnulib.texi: Include relocatable-maint.texi.
45967         * lib/progreloc.c: Include unistd.h unconditionally.
45968         * lib/relocwrapper.c: Include unistd.h unconditionally.
45969         Include c-ctype.h.
45970         (add_dotbin): Use c_tolower.
45971         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
45972         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
45973         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
45974         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
45975         to m4/relocatable-lib.m4.
45976         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
45977         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
45978         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
45979         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
45980         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
45981         * modules/relocatable: New file.
45982         * modules/relocatable-lib: New file.
45983         * modules/relocatable-script: New file.
45984
45985 2007-02-28  Bruno Haible  <bruno@clisp.org>
45986
45987         Import --enable-relocatable infrastructure.
45988         * build-aux/config.libpath: New file, from GNU gettext.
45989         * build-aux/install-reloc: New file, from GNU gettext.
45990         * build-aux/reloc-ldflags: New file, from GNU gettext.
45991         * lib/relocatable.h: New file, from GNU gettext.
45992         * lib/relocatable.c: New file, from GNU gettext.
45993         * lib/relocwrapper.c: New file, from GNU gettext.
45994         * m4/relocatable.m4: New file, from GNU gettext.
45995
45996 2007-02-28  Bruno Haible  <bruno@clisp.org>
45997
45998         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
45999
46000         * modules/xreadlink: New file, from GNU gettext with modifications.
46001         * lib/xreadlink.c: New file, from GNU gettext.
46002         * lib/xreadlink.h: Add comments.
46003         (xreadlink): New declaration.
46004
46005         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
46006         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
46007         lib/xreadlink-with-size.c.
46008         (configure.ac): Remove gl_XREADLINK invocation.
46009         (Makefile.am): Augment lib_SOURCES.
46010         * m4/xreadlink.m4: Remove file.
46011         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
46012         (xreadlink_with_size): Renamed from xreadink.
46013         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
46014         * modules/canonicalize (Depends-on): Replace xreadlink with
46015         xreadlink-with-size.
46016         * lib/canonicalize.c (canonicalize_filename_mode): Update.
46017
46018 2007-02-25  Jim Meyering  <jim@meyering.net>
46019
46020         * build-aux/announce-gen: When complaining about excess arguments,
46021         list them.
46022
46023 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
46024
46025         * README: Document signed integer overflow situation more
46026         accurately.
46027
46028 2007-02-25  Bruno Haible  <bruno@clisp.org>
46029
46030         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
46031         'a' or 'A' conversion.
46032
46033 2007-02-25  Bruno Haible  <bruno@clisp.org>
46034
46035         * modules/filename: Renamed from modules/pathname.
46036         (Files): Replace lib/pathname.h with lib/filename.h. Replace
46037         lib/concatpath.c with lib/concat-filename.c.
46038         (Makefile.am): Update.
46039         (Include): Replace pathname.h with filename.h.
46040         * lib/filename.h: Renamed from lib/pathname.h.
46041         (concatenated_filename): Renamed from concatenated_pathname.
46042         * lib/concat-filename.c: Renamed from lib/concatpath.c.
46043         (concatenated_filename): Renamed from concatenated_pathname.
46044         * lib/findprog.c: Include filename.h instead of pathname.h.
46045         (find_in_path): Update.
46046         * lib/javacomp.c: Include filename.h instead of pathname.h.
46047         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46048         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46049         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46050         is_oldgcj_14_13_usable, is_javac_usable): Update.
46051         * lib/javaexec.c: Include filename.h instead of pathname.h.
46052         (execute_java_class): Update.
46053         * modules/findprog: Update.
46054         * modules/javacomp: Update.
46055         * modules/javaexec: Update.
46056         * MODULES.html.sh (File system functions): Add 'filename', remove
46057         'pathname'.
46058
46059 2007-02-25  Bruno Haible  <bruno@clisp.org>
46060
46061         * modules/printf-frexpl-tests: New file.
46062         * tests/test-printf-frexpl.c: New file.
46063
46064         * modules/printf-frexpl: New file.
46065         * lib/printf-frexpl.h: New file.
46066         * lib/printf-frexpl.c: New file.
46067         * m4/printf-frexpl.m4: New file.
46068
46069 2007-02-25  Bruno Haible  <bruno@clisp.org>
46070
46071         * modules/printf-frexp-tests: New file.
46072         * tests/test-printf-frexp.c: New file.
46073
46074         * modules/printf-frexp: New file.
46075         * lib/printf-frexp.h: New file.
46076         * lib/printf-frexp.c: New file.
46077         * m4/printf-frexp.m4: New file.
46078
46079 2007-02-25  Bruno Haible  <bruno@clisp.org>
46080
46081         Assume automake >= 1.10 for the tests.
46082         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
46083         * modules/arctwo-tests: Likewise.
46084         * modules/argp-tests: Likewise.
46085         * modules/avltree-list-tests: Likewise.
46086         * modules/avltree-oset-tests: Likewise.
46087         * modules/avltreehash-list-tests: Likewise.
46088         * modules/carray-list-tests: Likewise.
46089         * modules/crc-tests: Likewise.
46090         * modules/des-tests: Likewise.
46091         * modules/gc-arcfour-tests: Likewise.
46092         * modules/gc-arctwo-tests: Likewise.
46093         * modules/gc-des-tests: Likewise.
46094         * modules/gc-hmac-md5-tests: Likewise.
46095         * modules/gc-hmac-sha1-tests: Likewise.
46096         * modules/gc-md2-tests: Likewise.
46097         * modules/gc-md4-tests: Likewise.
46098         * modules/gc-md5-tests: Likewise.
46099         * modules/gc-pbkdf2-sha1-tests: Likewise.
46100         * modules/gc-rijndael-tests: Likewise.
46101         * modules/gc-sha1-tests: Likewise.
46102         * modules/gc-tests: Likewise.
46103         * modules/getaddrinfo-tests: Likewise.
46104         * modules/hmac-md5-tests: Likewise.
46105         * modules/hmac-sha1-tests: Likewise.
46106         * modules/linked-list-tests: Likewise.
46107         * modules/linkedhash-list-tests: Likewise.
46108         * modules/lock-tests: Likewise.
46109         * modules/md2-tests: Likewise.
46110         * modules/md4-tests: Likewise.
46111         * modules/md5-tests: Likewise.
46112         * modules/rbtree-list-tests: Likewise.
46113         * modules/rbtree-oset-tests: Likewise.
46114         * modules/rbtreehash-list-tests: Likewise.
46115         * modules/read-file-tests: Likewise.
46116         * modules/rijndael-tests: Likewise.
46117         * modules/stdint-tests: Likewise.
46118         * modules/tls-tests: Likewise.
46119
46120 2007-02-24  Bruno Haible  <bruno@clisp.org>
46121
46122         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
46123         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
46124         function; instead check whether isnan with a double argument links.
46125         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
46126         function; instead check whether isnan with a 'long double' argument
46127         links.
46128         Reported by Eric Blake <ebb9@byu.net>.
46129
46130 2007-02-24  Bruno Haible  <bruno@clisp.org>
46131
46132         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
46133         defined.
46134         * lib/isnanl.c: Remove all code. Just include isnan.c.
46135         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
46136
46137 2007-02-25  Jim Meyering  <jim@meyering.net>
46138
46139         Avoid conflicting types for 'unsetenv' on FreeBSD.
46140         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
46141         conflicting with FreeBSD's (5.0 and 6.1) function declaration
46142         in stdlib.h.
46143
46144 2007-02-24  Bruno Haible  <bruno@clisp.org>
46145
46146         * modules/isnanl-nolibm-tests: New file.
46147         * tests/test-isnanl.c: New file.
46148
46149         * modules/isnanl-nolibm: New file.
46150         * lib/isnanl.h: New file.
46151         * lib/isnanl.c: New file.
46152         * m4/isnanl.m4: New file.
46153
46154 2007-02-24  Bruno Haible  <bruno@clisp.org>
46155
46156         * modules/isnan-nolibm-tests: New file.
46157         * tests/test-isnan.c: New file.
46158
46159         * modules/isnan-nolibm: New file.
46160         * lib/isnan.h: New file.
46161         * lib/isnan.c: New file.
46162         * m4/isnan.m4: New file.
46163
46164 2007-02-24  Bruno Haible  <bruno@clisp.org>
46165
46166         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
46167         assume that an exponent fits in 20 bits.
46168
46169 2007-02-24  Jim Meyering  <jim@meyering.net>
46170
46171         * m4/regex.m4: Update the description of the configure-time option,
46172         --without-included-regex, to state accurately what the defaults are,
46173         and perhaps to give people an idea why using this option is risky.
46174
46175 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
46176
46177         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
46178         loops on small arguments.  This attempts to avoid the problem
46179         Bruno Haible reported for AIX 4.3.2 in
46180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
46181
46182 2007-02-23  Bruno Haible  <bruno@clisp.org>
46183
46184         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
46185         Needed for help2man.
46186
46187 2007-02-23  Karl Berry  <karl@gnu.org>
46188
46189         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
46190         exists, foo.h should be cvs-ignored, not committed.
46191
46192 2007-02-23  Eric Blake  <ebb9@byu.net>
46193
46194         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
46195         * lib/stat-time.h (includes): Likewise.
46196         * lib/utimecmp.c (includes): Likewise.
46197         * lib/utimens.h (includes): Likewise.
46198         * lib/getdate.y (includes): Also include "timespec.h" for use
46199         internal to the module.
46200         * modules/utimens (Depends-on): Revert yesterday's patch.
46201         * modules/nanosleep (Depends-on): Add missing dependency.
46202
46203 2007-02-22  Bruno Haible  <bruno@clisp.org>
46204
46205         * lib/glob.c: Don't include getlogin_r.h.
46206
46207 2007-02-22  Jim Meyering  <jim@meyering.net>
46208
46209         * modules/utimens (Depends-on): Add timespec, required for
46210         utimens.h's inclusion of timespec.h.
46211
46212 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
46213
46214         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
46215         long unreadable paths in GNU/Linux.  Problem reported by Andreas
46216         Schwab in
46217         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
46218         I'll try to think of a better way to fix the Solaris problem.
46219
46220         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
46221         like glibc; on Solaris 10, it fails with errno == EINVAL.
46222         POSIX says the behavior is unspecified if the first argument is NULL,
46223         so play it safe and never pass NULL to the system getcwd.
46224
46225 2007-02-21  Jim Meyering  <jim@meyering.net>
46226
46227         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
46228         of gettimeofday.  It would conflict with the one now always
46229         provided via sys_time_.h.  Reported by Matthew Woehlke, as
46230         an IRIX 6.5 build failure.
46231
46232 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
46233
46234         Minor fixups to port to Solaris 10 with Sun C 5.8.
46235         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
46236         * modules/getcwd (Depends-on): Add dirfd.
46237         * lib/putenv.c (putenv): #undef it.
46238         (rpl_putenv): New decl.
46239         (malloc, free): Include <stdlib.h> rather than prototyping separately.
46240
46241 2007-02-20  Bruno Haible  <bruno@clisp.org>
46242
46243         * modules/stdio-tests: New file.
46244         * tests/test-stdio.c: New file.
46245
46246         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
46247         (Depends-on): Add stdio.
46248         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
46249         (Include): Use <stdio.h> instead of vsnprintf.h.
46250         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
46251         HAVE_DECL_VSNPRINTF.
46252         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
46253
46254         * modules/snprintf (Files): Remove lib/snprintf.h.
46255         (Depends-on): Add stdio.
46256         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
46257         (Include): Use <stdio.h> instead of snprintf.h.
46258         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
46259         HAVE_DECL_SNPRINTF.
46260         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
46261         * lib/getaddrinfo.c: Likewise.
46262
46263         * modules/stdio: New file.
46264         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
46265         * lib/snprintf.h: Remove file.
46266         * lib/vsnprintf.h: Remove file.
46267         * lib/.cppi-disable: Remove snprintf.h.
46268         * m4/stdio_h.m4: New file.
46269         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
46270
46271 2007-02-20  Jim Meyering  <jim@meyering.net>
46272
46273         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
46274         used by e.g., mingw.  From Bruno Haible.
46275
46276 2007-02-19  Bruno Haible  <bruno@clisp.org>
46277
46278         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
46279         warnings.
46280         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46281
46282 2007-02-19  Bruno Haible  <bruno@clisp.org>
46283
46284         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
46285         from mingw users.
46286
46287 2007-02-19  Bruno Haible  <bruno@clisp.org>
46288
46289         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
46290         warnings.
46291         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
46292
46293 2007-02-19  Jim Meyering  <jim@meyering.net>
46294
46295         Don't use FD after a successful "fdopendir (fd)".
46296         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
46297         Reset it by calling dirfd on the just-obtained DIR*.
46298
46299         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
46300         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
46301
46302 2007-02-18  Bruno Haible  <bruno@clisp.org>
46303
46304         * lib/readlink.c: Include <unistd.h>.
46305         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
46306         HAVE_READLINK.
46307         * modules/readlink (Depends-on): Add unistd.
46308         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46309         (Include): Add <unistd.h>.
46310
46311         * lib/getlogin_r.h: Remove file.
46312         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
46313         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
46314         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
46315         HAVE_DECL_GETLOGIN_R.
46316         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
46317         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46318         (Include): Use <unistd.h> instead of getlogin_r.h.
46319
46320         * lib/getcwd.h: Remove file.
46321         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
46322         * lib/xgetcwd.c: Likewise.
46323         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
46324         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
46325         * modules/getcwd (Files): Remove lib/getcwd.h.
46326         (Depends-on): Add unistd.
46327         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46328         (Include): Use <unistd.h> instad of getcwd.h.
46329
46330         * lib/ftruncate.c: Include <unistd.h> first.
46331         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
46332         Set HAVE_FTRUNCATE.
46333         * modules/ftruncate (Depends-on): Add unistd.
46334         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46335
46336         * lib/fchdir.c: Include <unistd.h> first.
46337         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
46338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
46339         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
46340         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46341         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
46342
46343         * lib/dup2.c: Include <unistd.h> first.
46344         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
46345         HAVE_DUP2.
46346         * modules/dup2 (Depends-on): Add unistd.
46347         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46348
46349         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
46350         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
46351         REPLACE_CHOWN. Don't define chown as a macro here.
46352         * modules/chown (Depends-on): Add unistd.
46353         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46354
46355         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
46356         Add definition for GL_LINK_WARNING.
46357         (chown, dup2): New declarations.
46358         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
46359         link warning.
46360         (ftruncate): New declaration.
46361         (getcwd): New declaration, taken from old getcwd.h.
46362         (getlogin_r): New declaration, taken from old getlogin_r.h.
46363         (readlink): New declaration.
46364         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
46365         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
46366         (gl_PREREQ_UNISTD): Remove macro.
46367         (gl_UNISTD_MODULE_INDICATOR): New macro.
46368         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
46369         many new variables. Don't set UNISTD_H.
46370         * modules/unistd (Description): Change.
46371         (Depends-on): Add link-warning.
46372         (configure.ac): Update.
46373         (Makefile.am): Create unistd.h always. Substitute many new variables
46374         into it.
46375
46376 2007-02-18  Bruno Haible  <bruno@clisp.org>
46377
46378         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
46379         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
46380         HAVE_GETSUBOPT.
46381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
46382         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
46383         * lib/getsubopt.h: Remove file.
46384         * modules/getsubopt (Files): Remove lib/getsubopt.h.
46385         (Depends-on): Add stdlib.
46386         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46387         (Includes): Use <stdlib.h> instead of getsubopt.h.
46388         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
46389         Set HAVE_GETSUBOPT.
46390         * lib/getsubopt.c: Don't include getsubopt.h.
46391
46392 2007-02-18  Bruno Haible  <bruno@clisp.org>
46393
46394         * modules/fchdir (Depends-on): Add dup2.
46395
46396 2007-02-18  Bruno Haible  <bruno@clisp.org>
46397
46398         * lib/stdlib_.h: Handle glibc's special invocation convention
46399         specially.
46400
46401 2007-02-18  Bruno Haible  <bruno@clisp.org>
46402
46403         * modules/stdlib-tests: New file.
46404         * tests/test-stdlib.c: New file.
46405
46406         * modules/mkstemp (Files): Remove lib/mkstemp.h.
46407         (Depends-on): Add stdlib.
46408         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46409         (Includes): Use <stdlib.h> instead of mkstemp.h.
46410         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
46411         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
46412         * lib/mkstemp.c: Don't include mkstemp.h.
46413         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
46414         * lib/stdlib--.h: Don't include mkstemp.h.
46415
46416         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
46417         (Depends-on): Add stdlib.
46418         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46419         (Includes): Use <stdlib.h> instead of mkdtemp.h.
46420         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
46421         HAVE_MKDTEMP.
46422         * lib/mkdtemp.c: Don't include mkdtemp.h.
46423         * lib/clean-temp.c: Don't include mkdtemp.h.
46424
46425         * modules/exit (Files): Remove lib/exit.h.
46426         (Depends-on): Add stdlib.
46427         (Makefile.am): Remove lib_SOURCES.
46428         (Include): Use <stdlib.h> instead of exit.h.
46429         * lib/argmatch.c: Don't include exit.h.
46430         * lib/execute.c: Likewise.
46431         * lib/pagealign_alloc.c: Likewise.
46432         * lib/pipe.c: Likewise.
46433         * lib/wait-process.c: Likewise.
46434         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
46435         * lib/exitfail.c: Likewise.
46436         * lib/savewd.c: Likewise.
46437         * lib/xsetenv.c: Likewise.
46438
46439         * modules/stdlib: New file.
46440         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
46441         and extra comments about mkstemp().
46442         * lib/exit.h: Remove file.
46443         * lib/mkdtemp.h: Remove file.
46444         * lib/mkstemp.h: Remove file.
46445         * m4/stdlib_h.m4: New file.
46446         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
46447
46448 2007-02-18  Bruno Haible  <bruno@clisp.org>
46449
46450         * modules/math-tests: New file.
46451         * tests/test-math.c: New file.
46452
46453         * modules/math: New file.
46454         * modules/mathl (Files): Remove lib/mathl.h.
46455         (Depends-on): Add math.
46456         (Makefile.am): Don't mention mathl.h.
46457         (Include): Use <math.h> instead of mathl.h.
46458         * lib/math_.h: New file.
46459         * lib/mathl.h: Remove file.
46460         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
46461         mathl.h.
46462         * lib/asinl.c: Likewise.
46463         * lib/atanl.c: Likewise.
46464         * lib/ceill.c: Likewise.
46465         * lib/cosl.c: Likewise.
46466         * lib/expl.c: Likewise.
46467         * lib/floorl.c: Likewise.
46468         * lib/frexpl.c: Likewise.
46469         * lib/ldexpl.c: Likewise.
46470         * lib/logl.c: Likewise.
46471         * lib/sincosl.c: Likewise.
46472         * lib/sinl.c: Likewise.
46473         * lib/sqrtl.c: Likewise.
46474         * lib/tanl.c: Likewise.
46475         * lib/trigl.c: Likewise.
46476         * m4/math_h.m4: New file.
46477         * MODULES.html.sh (Mathematics): Add math.
46478
46479 2007-02-17  Bruno Haible  <bruno@clisp.org>
46480
46481         * modules/wctype-tests: New file.
46482         * tests/test-wctype.c: New file.
46483
46484         * modules/wchar-tests: New file.
46485         * tests/test-wchar.c: New file.
46486
46487         * modules/unistd-tests: New file.
46488         * tests/test-unistd.c: New file.
46489
46490         * modules/time-tests: New file.
46491         * tests/test-time.c: New file.
46492
46493         * modules/sysexits-tests: New file.
46494         * tests/test-sysexits.c: New file.
46495
46496         * modules/sys_time-tests: New file.
46497         * tests/test-sys_time.c: New file.
46498
46499         * modules/sys_stat-tests: New file.
46500         * tests/test-sys_stat.c: New file.
46501
46502         * modules/sys_socket-tests: New file.
46503         * tests/test-sys_socket.c: New file.
46504
46505         * modules/sys_select-tests: New file.
46506         * tests/test-sys_select.c: New file.
46507
46508         * modules/string-tests: New file.
46509         * tests/test-string.c: New file.
46510
46511         * modules/stdbool-tests: New file.
46512         * tests/test-stdbool.c: New file.
46513
46514         * modules/netinet_in-tests: New file.
46515         * tests/test-netinet_in.c: New file.
46516
46517         * modules/inttypes-tests: New file.
46518         * tests/test-inttypes.c: New file.
46519
46520         * modules/fcntl-tests: New file.
46521         * tests/test-fcntl.c: New file.
46522
46523         * modules/byteswap-tests: New file.
46524         * tests/test-byteswap.c: New file.
46525
46526         * modules/arpa_inet-tests: New file.
46527         * tests/test-arpa_inet.c: New file.
46528
46529 2007-02-17  Bruno Haible  <bruno@clisp.org>
46530
46531         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
46532         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
46533         if the corresponding module is not enabled. Emit link warnings if
46534         the function is used nevertheless.
46535         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
46536         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
46537         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
46538         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
46539         * modules/inttypes (Depends-on): Add link-warning.
46540         (Makefile.am): Copy the contents of build-aux/link-warning.h into
46541         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
46542         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
46543         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
46544         * modules/imaxdiv (configure.ac): Likewise.
46545         * modules/strtoimax (configure.ac): Likewise.
46546         * modules/strtoumax (configure.ac): Likewise.
46547
46548 2007-02-17  Bruno Haible  <bruno@clisp.org>
46549
46550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
46551         gl_STRING_MODULE_INDICATOR_DEFAULTS.
46552         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
46553         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
46554
46555 2007-02-17  Bruno Haible  <bruno@clisp.org>
46556
46557         * modules/link-warning: New file.
46558         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
46559         * lib/string_.h (GL_LINK_WARNING): Remove definition.
46560         * modules/string (Depends-on): Add link-warning.
46561         (Makefile.am): Copy the contents of build-aux/link-warning.h into
46562         string.h.
46563         * MODULES.html.sh (Support for building libraries and executables): Add
46564         link-warning.
46565
46566 2007-02-17  Bruno Haible  <bruno@clisp.org>
46567
46568         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
46569         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
46570         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
46571         long lines.
46572
46573 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
46574             Bruno Haible  <bruno@clisp.org>
46575
46576         * modules/tmpfile: New file.
46577         * lib/tmpfile.c: New file.
46578         * m4/tmpfile.m4: New file.
46579         * MODULES.html.sh (func_all_modules): New section "Input/output".
46580
46581 2007-02-15  Bruno Haible  <bruno@clisp.org>
46582
46583         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
46584         (supports_delete_on_close): New function.
46585         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
46586
46587 2007-02-14  Bruno Haible  <bruno@clisp.org>
46588
46589         * modules/mbspcasecmp-tests: New file.
46590         * tests/test-mbspcasecmp.sh: New file.
46591         * tests/test-mbspcasecmp.c: New file.
46592
46593         New module mbspcasecmp.
46594         * modules/mbspcasecmp: New file.
46595         * lib/mbspcasecmp.c: New file.
46596         * lib/string_.h (strncasecmp): Change warning message.
46597         (mbspcasecmp): New declaration.
46598         * m4/mbspcasecmp.m4: New file.
46599         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46600         GNULIB_MBSPCASECMP.
46601         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
46602         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
46603
46604 2007-02-14  Bruno Haible  <bruno@clisp.org>
46605
46606         * modules/mbsncasecmp-tests: New file.
46607         * tests/test-mbsncasecmp.sh: New file.
46608         * tests/test-mbsncasecmp.c: New file.
46609
46610         New module mbsncasecmp.
46611         * modules/mbsncasecmp: New file.
46612         * lib/mbsncasecmp.c: New file.
46613         * lib/string_.h (mbsncasecmp): New declaration.
46614         * m4/mbsncasecmp.m4: New file.
46615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46616         GNULIB_MBSNCASECMP.
46617         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
46618         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
46619
46620 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46621
46622         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
46623         Verify that it doesn't overlap with our flags.
46624         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
46625         do not have the desired effect in multibyte locales; instead, use
46626         mbscasecmp.
46627         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
46628         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
46629         we don't require GNU fnmatch ourselves (if our users require it, they
46630         should do so explicitly).
46631
46632         Fix regex code so it doesn't rely on strcasecmp.
46633         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
46634         Otherwise, include gnulib's langinfo.h.
46635         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
46636         undesirable behavior in non-C locales.  Instead, rely on localecharset.
46637         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
46638         * modules/regex (FILES): Remove m4/codeset.m4.
46639         (Depends-on): Add localcharset.  Remove strcase.
46640
46641 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46642
46643         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
46644         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
46645
46646 2007-02-13  Bruno Haible  <bruno@clisp.org>
46647
46648         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
46649         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46650
46651 2007-02-12  Bruno Haible  <bruno@clisp.org>
46652
46653         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46654         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
46655         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
46656         time warning rather than a link error.
46657
46658 2007-02-12  Bruno Haible  <bruno@clisp.org>
46659
46660         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
46661         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46662         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46663
46664 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46665
46666         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
46667         args, not 2.
46668
46669 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46670
46671         New module 'time', so that apps can include <time.h> as per
46672         POSIX and GNU instead of separate include files like time_r.h
46673         and timegm.h.  This implementation tries out a simpler approach
46674         for replacing decls in standard include files (as compared to
46675         the string module), somewhat as an experiment.
46676
46677         * config/srclist.txt: Comment out mktime.c for now.
46678         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
46679         since it doesn't apply any more.  Use generic wording instead.
46680         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
46681         'time'.
46682         * lib/time_.h, m4/time_h.m4, modules/time: New files.
46683         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
46684         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
46685         Don't include <sys/types.h>; no longer needed since we assume C89.
46686         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
46687         * lib/strftime.c: Likewise.
46688         * lib/time_r.c: Likewise.
46689         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
46690         * lib/nanosleep.c: Include <time.h> first, to check interface.
46691         * lib/strptime.c: Likewise.
46692         * lib/time_r.c: Likewise.
46693         * lib/timegm.c: Likewise.
46694         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
46695         needed.
46696         * lib/timegm.c: Don't include timegm.h; no longer needed.
46697         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
46698         time.h now handles any problems in that area.
46699         (struct timespec, nanosleep): Remove; time.h now arranges for these.
46700         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
46701         that time.h defines struct timespec.
46702         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
46703         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
46704         handles that.
46705         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
46706         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
46707         needed.  Set REPLACE_LOCALTIME.
46708         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
46709         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
46710         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
46711         nanosleep; time_h.m4 now does that.  Don't require
46712         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
46713         module handles this now.
46714         * modules/getdate (Depends-on): Remove timespec.  Add time.
46715         * modules/nanosleep (Depends-on): Likewise.
46716         * modules/stat-time (Depends-on): Likewise.
46717         * modules/nanosleep (Include): Include time.h, not timespec.h.
46718         * modules/strptime (Files): Remove lib/strptime.h.
46719         (Depends-on): Add extensions, time.
46720         (Include): Include time.h, not strptime.h.
46721         * modules/time_r (Files): Remove lib/time_r.h.
46722         (Depends-on): Add time.
46723         (Include): Include time.h, not time_r.h.
46724         * modules/timegm: Likewise.
46725         * modules/timespec (Description): Now does timespec-related decls
46726         of our own, instead of struct timespec itself.
46727         (Depends-on): Add time; remove extensions.
46728         (Maintainer): Add self.
46729         * modules/utimecmp (Depends-on): Add time; remove timespec.
46730         * modules/utimens (Depends-on): Likewise.
46731         * modules/xnanosleep (Depends-on): Likewise.
46732
46733 2007-02-11  Bruno Haible  <bruno@clisp.org>
46734
46735         * lib/c-strstr.c: Include allocsa.h.
46736         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46737         * lib/c-strcasestr.c: Include allocsa.h.
46738         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46739         * lib/strcasestr.c: Include allocsa.h.
46740         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46741         * lib/mbsstr.c: Include allocsa.h.
46742         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46743         allocsa/freesa instead of malloc/free.
46744         * lib/mbscasestr.c: Include allocsa.h.
46745         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46746         allocsa/freesa instead of malloc/free.
46747         * modules/c-strstr (Depends-on): Add allocsa.
46748         * modules/c-strcasestr (Depends-on): Likewise.
46749         * modules/strcasestr (Depends-on): Likewise.
46750         * modules/mbsstr (Depends-on): Likewise.
46751         * modules/mbscasestr (Depends-on): Likewise.
46752
46753 2007-02-11  Bruno Haible  <bruno@clisp.org>
46754
46755         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
46756
46757         * modules/mbsspn-tests: New file.
46758         * tests/test-mbsspn.sh: New file.
46759         * tests/test-mbsspn.c: New file.
46760
46761 2007-02-11  Bruno Haible  <bruno@clisp.org>
46762
46763         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
46764
46765         * modules/mbspbrk-tests: New file.
46766         * tests/test-mbspbrk.sh: New file.
46767         * tests/test-mbspbrk.c: New file.
46768
46769 2007-02-11  Bruno Haible  <bruno@clisp.org>
46770
46771         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
46772         unneeded cast.
46773
46774         * modules/mbscspn-tests: New file.
46775         * tests/test-mbscspn.sh: New file.
46776         * tests/test-mbscspn.c: New file.
46777
46778 2007-02-11  Bruno Haible  <bruno@clisp.org>
46779
46780         * modules/mbscasecmp-tests: New file.
46781         * tests/test-mbscasecmp.sh: New file.
46782         * tests/test-mbscasecmp.c: New file.
46783
46784 2007-02-11  Bruno Haible  <bruno@clisp.org>
46785
46786         Ensure O(n) worst-case complexity of mbscasestr.
46787         * lib/mbscasestr.c: Include stdbool.h.
46788         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46789         functions.
46790         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
46791         the bookkeeping indicates that it's worth it.
46792         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
46793
46794         * modules/mbscasestr-tests: New file.
46795         * tests/test-mbscasestr1.c: New file.
46796         * tests/test-mbscasestr2.sh: New file.
46797         * tests/test-mbscasestr2.c: New file.
46798         * tests/test-mbscasestr3.sh: New file.
46799         * tests/test-mbscasestr3.c: New file.
46800         * tests/test-mbscasestr4.sh: New file.
46801         * tests/test-mbscasestr4.c: New file.
46802         * m4/locale-tr.m4: New file.
46803
46804 2007-02-11  Bruno Haible  <bruno@clisp.org>
46805
46806         Ensure O(n) worst-case complexity of mbsstr.
46807         * lib/mbsstr.c: Include stdbool.h.
46808         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46809         functions.
46810         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
46811         bookkeeping indicates that it's worth it.
46812         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
46813
46814         * modules/mbsstr-tests: New file.
46815         * tests/test-mbsstr1.c: New file.
46816         * tests/test-mbsstr2.sh: New file.
46817         * tests/test-mbsstr2.c: New file.
46818         * tests/test-mbsstr3.sh: New file.
46819         * tests/test-mbsstr3.c: New file.
46820         * m4/locale-fr.m4: New file.
46821
46822 2007-02-11  Bruno Haible  <bruno@clisp.org>
46823
46824         * lib/mbsrchr.c (mbsrchr): Fix bug.
46825
46826         * modules/mbsrchr-tests: New file.
46827         * tests/test-mbsrchr.sh: New file.
46828         * tests/test-mbsrchr.c: New file.
46829
46830 2007-02-11  Bruno Haible  <bruno@clisp.org>
46831
46832         * lib/mbschr.c (mbschr): Fix bug.
46833
46834         * modules/mbschr-tests: New file.
46835         * tests/test-mbschr.sh: New file.
46836         * tests/test-mbschr.c: New file.
46837         * m4/locale-zh.m4: New file.
46838
46839 2007-02-11  Bruno Haible  <bruno@clisp.org>
46840
46841         Support for copying multibyte string iterators.
46842         * lib/mbiter.h: Include <string.h>.
46843         (mbiter_multi_copy): New function.
46844         (mbi_copy): New macro.
46845         * lib/mbuiter.h: Include <string.h>.
46846         (mbuiter_multi_copy): New function.
46847         (mbui_copy): New macro.
46848
46849 2007-02-11  Bruno Haible  <bruno@clisp.org>
46850
46851         New module mbslen.
46852         * modules/mbslen: New file.
46853         * lib/mbslen.c: New file.
46854         * lib/string_.h (mbslen): New declaration.
46855         * m4/mbslen.m4: New file.
46856         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46857         GNULIB_MBSLEN.
46858         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
46859         * MODULES.html.sh (Internationalization functions): Add mbslen.
46860
46861 2007-02-11  Bruno Haible  <bruno@clisp.org>
46862
46863         Ensure O(n) worst-case complexity of strcasestr substitute.
46864         * lib/strcasestr.c: Include stdbool.h.
46865         (knuth_morris_pratt): New function.
46866         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46867         bookkeeping indicates that it's worth it.
46868         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
46869
46870         * modules/strcasestr-tests: New file.
46871         * tests/test-strcasestr.c: New file.
46872
46873 2007-02-11  Bruno Haible  <bruno@clisp.org>
46874
46875         Ensure O(n) worst-case complexity of c_strcasestr.
46876         * lib/c-strcasestr.c: Include stdbool.h, string.h.
46877         (knuth_morris_pratt): New function.
46878         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
46879         the bookkeeping indicates that it's worth it.
46880         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
46881
46882         * modules/c-strcasestr-tests: New file.
46883         * tests/test-c-strcasestr.c: New file.
46884
46885 2007-02-11  Bruno Haible  <bruno@clisp.org>
46886
46887         Ensure O(n) worst-case complexity of c_strstr.
46888         * lib/c-strstr.c: Include stdbool.h, string.h.
46889         (knuth_morris_pratt): New function.
46890         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46891         bookkeeping indicates that it's worth it.
46892         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
46893
46894         * lib/c-strstr.c: Complete rewrite for maintainability.
46895
46896         * modules/c-strstr-tests: New file.
46897         * tests/test-c-strstr.c: New file.
46898
46899 2007-02-11  Bruno Haible  <bruno@clisp.org>
46900
46901         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
46902         5.2.1 and earlier, whereby \055 was treated just like the range
46903         delimiter '-'.
46904         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46905
46906 2007-02-08  Bruno Haible  <bruno@clisp.org>
46907
46908         * modules/regex (Depends-on): Add stdbool.
46909         Reported by Dalibor Topic <robilad@kaffe.org>.
46910
46911 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46912
46913         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
46914         Prefer returning from main to exiting from it.
46915         Remove unnecessary parens after sizeof.
46916
46917 2007-02-05  Bruno Haible  <bruno@clisp.org>
46918
46919         New module mbssep.
46920         * modules/mbssep: New file.
46921         * lib/mbssep.c: New file.
46922         * lib/string_.h (strsep): Add a conditional link warning.
46923         (mbssep): New declaration.
46924         * m4/mbssep.m4: New file.
46925         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46926         GNULIB_MBSSEP.
46927         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
46928         * MODULES.html.sh (Internationalization functions): Add mbssep.
46929
46930 2007-02-05  Bruno Haible  <bruno@clisp.org>
46931
46932         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
46933         Optimize search in case of 1 delimiter.
46934
46935 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46936
46937         * lib/acl.h: Include sys/types.h before sys/acl.h.
46938
46939 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46940
46941         Merge upstream fix for glibc bugzilla #3957:
46942
46943         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
46944
46945         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
46946         bit for RE_HAT_LISTS_NOT_NEWLINE.
46947         (build_charclass_op): Remove bogus comment.
46948
46949 2007-02-05  Simon Josefsson  <simon@josefsson.org>
46950
46951         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
46952
46953 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46954
46955         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
46956         * lib/memmem.c [!defined _LIBC]: Include config.h.
46957
46958 2007-02-04  Bruno Haible  <bruno@clisp.org>
46959
46960         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
46961         warning message.
46962
46963 2007-02-04  Bruno Haible  <bruno@clisp.org>
46964
46965         New module mbstok_r.
46966         * modules/mbstok_r: New file.
46967         * lib/mbstok_r.c: New file.
46968         * lib/string_.h (strtok_r): Change argument names to match the
46969         comments. Add a conditional link warning.
46970         (mbstok_r): New declaration.
46971         * m4/mbstok_r.m4: New file.
46972         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46973         GNULIB_MBSTOK_R.
46974         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
46975         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
46976
46977 2007-02-04  Bruno Haible  <bruno@clisp.org>
46978
46979         New module mbsspn.
46980         * modules/mbsspn: New file.
46981         * lib/mbsspn.c: New file.
46982         * lib/string_.h (strspn): Add a conditional link warning.
46983         (mbsspn): New declaration.
46984         * m4/mbsspn.m4: New file.
46985         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46986         GNULIB_MBSSPN.
46987         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
46988         * MODULES.html.sh (Internationalization functions): Add mbsspn.
46989
46990 2007-02-04  Bruno Haible  <bruno@clisp.org>
46991
46992         New module mbspbrk.
46993         * modules/mbspbrk: New file.
46994         * lib/mbspbrk.c: New file.
46995         * lib/string_.h (strpbrk): Add a conditional link warning.
46996         (mbspbrk): New declaration.
46997         * m4/mbspbrk.m4: New file.
46998         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46999         GNULIB_MBSPBRK.
47000         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
47001         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
47002
47003 2007-02-04  Bruno Haible  <bruno@clisp.org>
47004
47005         New module mbscspn.
47006         * modules/mbscspn: New file.
47007         * lib/mbscspn.c: New file.
47008         * lib/string_.h (strcspn): Add a conditional link warning.
47009         (mbscspn): New declaration.
47010         * m4/mbscspn.m4: New file.
47011         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47012         GNULIB_MBSCSPN.
47013         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
47014         * MODULES.html.sh (Internationalization functions): Add mbscspn.
47015
47016 2007-02-04  Bruno Haible  <bruno@clisp.org>
47017
47018         New module mbscasestr, reduced goal of strcasestr.
47019         * modules/mbscasestr: New file.
47020         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
47021         (mbscasestr): Renamed from strcasestr.
47022         * lib/strcasestr.c: Don't include mbuiter.h.
47023         (strcasestr): Remove support for multibyte locales.
47024         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
47025         Change the conditional link warning.
47026         (mbscasestr): New declaration.
47027         * m4/mbscasestr.m4: New file.
47028         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
47029         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
47030         REPLACE_STRCASESTR.
47031         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
47032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47033         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
47034         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
47035         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
47036         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
47037         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
47038         (Depends-on): Remove mbuiter.
47039         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
47040
47041 2007-02-04  Bruno Haible  <bruno@clisp.org>
47042
47043         Simplify handling of strncasecmp.
47044         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
47045         the conditional link warning.
47046         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47047         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
47048         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
47049         * modules/strcase (configure.ac): Don't invoke
47050         gl_STRING_MODULE_INDICATOR.
47051         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
47052
47053 2007-02-04  Bruno Haible  <bruno@clisp.org>
47054
47055         New module mbscasecmp, reduced goal of strcasecmp.
47056         * modules/mbscasecmp: New file.
47057         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
47058         (mbscasecmp): Renamed from strcasecmp.
47059         * lib/strcasecmp.c: Don't include mbuiter.h.
47060         (strcasecmp): Remove support for multibyte locales.
47061         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
47062         Change the conditional link warning.
47063         (mbscasecmp): New declaration.
47064         * m4/mbscasecmp.m4: New file.
47065         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
47066         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
47067         REPLACE_STRCASECMP.
47068         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
47069         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47070         GNULIB_MBSCASECMP.
47071         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
47072         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
47073         * modules/strcase (Files): Remove m4/mbrtowc.m4.
47074         (Depends-on): Remove mbuiter.
47075         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
47076
47077 2007-02-04  Bruno Haible  <bruno@clisp.org>
47078
47079         New module mbsstr. Remove module strstr.
47080         * modules/mbsstr: New file.
47081         * modules/strstr: Remove file.
47082         * lib/mbsstr.c: Renamed from lib/strstr.c.
47083         (mbsstr): Renamed from strstr.
47084         * lib/string_.h (strstr): Remove declaration. Change the conditional
47085         link warning.
47086         (mbsstr): New declaration.
47087         * m4/mbsstr.m4: New file.
47088         * m4/strstr.m4: Remove file.
47089         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
47090         REPLACE_STRSTR.
47091         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
47092         Don't initialize GNULIB_STRSTR.
47093         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
47094         substitute GNULIB_STRSTR and REPLACE_STRSTR.
47095         * MODULES.html.sh (Internationalization functions): Add mbsstr.
47096         (Support for systems lacking ANSI C 89): Remove strstr.
47097
47098 2007-02-04  Bruno Haible  <bruno@clisp.org>
47099
47100         New module mbsrchr.
47101         * modules/mbsrchr: New file.
47102         * lib/mbsrchr.c: New file.
47103         * lib/string_.h (strrchr): Add a conditional link warning.
47104         (mbsrchr): New declaration.
47105         * m4/mbsrchr.m4: New file.
47106         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47107         GNULIB_MBSRCHR.
47108         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
47109         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
47110
47111 2007-02-04  Bruno Haible  <bruno@clisp.org>
47112
47113         New module mbschr.
47114         * modules/mbschr: New file.
47115         * lib/mbschr.c: New file.
47116         * lib/string_.h (strchr): Add a conditional link warning.
47117         (mbschr): New declaration.
47118         * m4/mbschr.m4: New file.
47119         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
47120         GNULIB_MBSCHR.
47121         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
47122         * MODULES.html.sh (Internationalization functions): Add mbschr.
47123
47124 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
47125
47126         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
47127
47128         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
47129
47130 2007-02-04  Bruno Haible  <bruno@clisp.org>
47131
47132         New module description section 'configure.ac-early'.
47133         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
47134         (func_get_autoconf_early_snippet): New function.
47135         (func_import, func_create_testdir): Use it. Remove special cases for
47136         modules 'extensions' and 'lock'.
47137         * modules/extensions (configure.ac-early): Require
47138         gl_USE_SYSTEM_EXTENSIONS.
47139         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
47140
47141 2007-02-04  Bruno Haible  <bruno@clisp.org>
47142
47143         Make use of gcj-4.3's -fsource and -ftarget option.
47144         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
47145         and if so try the options -fsource and -ftarget.
47146         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
47147         source_version, ftarget_option, target_version arguments.
47148         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
47149         (is_envjavac_oldgcj_14_14_usable): Renamed from
47150         is_envjavac_gcj_14_14_usable.
47151         (is_envjavac_oldgcj_14_13_usable): Renamed from
47152         is_envjavac_gcj_14_13_usable.
47153         (is_gcj_present): Update.
47154         (is_gcj_43, is_gcj43_usable): New functions.
47155         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
47156         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
47157         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
47158         try the options -fsource and -ftarget.
47159
47160 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
47161
47162         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
47163         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
47164         larger value.
47165
47166 2007-02-03  Jim Meyering  <jim@meyering.net>
47167
47168         Give tools a better chance to allocate space for very large buffers.
47169         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
47170
47171         Make pwd and readlink work also when run with an unreadable parent dir
47172         on systems with openat support.
47173         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
47174         provided getcwd function, even when we have openat support.
47175         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
47176
47177 2007-02-02  Bruno Haible  <bruno@clisp.org>
47178
47179         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
47180         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
47181         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
47182         portability problems if one of these functions is only used on specific
47183         platforms.
47184         Reported by Paul Eggert.
47185
47186 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
47187
47188         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
47189         is causing more trouble than it's curing.
47190         * lib/regex_internal.h (__mempcpy): Remove.
47191         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
47192         (and make the code a tad smaller to boot).
47193         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
47194
47195 2007-02-02  Jim Meyering  <jim@meyering.net>
47196
47197         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
47198         section, not in the Makefile.am: one.
47199
47200 2007-02-02  Eric Blake  <ebb9@byu.net>
47201
47202         * lib/strchrnul.c: Always include config.h first.
47203
47204         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
47205         gnulib strstr is not necessary here.
47206
47207 2007-02-02  Simon Josefsson  <simon@josefsson.org>
47208
47209         * m4/socklen.m4: Fix typo.
47210
47211 2007-02-02  Eric Blake  <ebb9@byu.net>
47212
47213         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
47214         * modules/netinet_in (Makefile.am): Likewise.
47215
47216 2007-02-01  Bruno Haible  <bruno@clisp.org>
47217
47218         * lib/string_.h (GL_LINK_WARNING): New macro.
47219         (strcasecmp, strstr, strcasestr): If provided by the system,
47220         conditionally define as a macro that leads to a warning instead of to
47221         an error.
47222         (strncasecmp): Conditionally define as a macro that leads to a warning.
47223
47224 2007-02-01  Karl Berry  <karl@gnu.org>
47225
47226         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
47227
47228 2007-02-01  Bruno Haible  <bruno@clisp.org>
47229
47230         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
47231         renamings.
47232
47233 2007-02-01  Eric Blake  <ebb9@byu.net>
47234
47235         * modules/regex (Depends-on): Revert dependence on mempcpy.
47236         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
47237         module's definition of mempcpy.
47238         Reported by Paul Eggert.
47239
47240 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
47241
47242         * lib/string_.h: If the gnulib module XYZ is not present, undefine
47243         the symbol XYZ before redefining it.  This fixes a problem with
47244         programs that don't use XYZ, when compiled on systems that define
47245         XYZ to something else.
47246
47247 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
47248
47249         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
47250         occurs when "mkdir -m foo" creates a setgid directory that is (1)
47251         writeable to group or other and (2) is intended to have a special
47252         mode bit that is set or cleared.  In such a case, the directory
47253         should be neither group- nor other-writeable until the special
47254         mode bits are right.
47255
47256 2007-01-31  Eric Blake  <ebb9@byu.net>
47257
47258         * modules/mountlist (Depends-on): Add strstr.
47259
47260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
47261         bug.
47262         * modules/string (Makefile.am): Remove redundant replacement.
47263         * modules/regex (Depends-on): Add mempcpy.
47264
47265 2007-01-31  Bruno Haible  <bruno@clisp.org>
47266
47267         New module description field 'Link'.
47268         * gnulib-tool (func_usage): Document --extract-link-directive.
47269         (sed_extract_prog): Recognize 'Link' directive.
47270         (func_get_link_directive): New function.
47271         (func_import): Show summary of link directives.
47272         Handle --extract-link-directive option.
47273         * modules/acl (Link): New section.
47274         * modules/clock-time (Link): New section.
47275         * modules/euidaccess (Link): New section.
47276         * modules/gettext (Link): New section.
47277         * modules/iconv (Link): New section.
47278         * modules/lock (Link): New section.
47279         * modules/nanosleep (Link): New section.
47280         * modules/readline (Link): New section.
47281
47282 2007-01-27  Bruno Haible  <bruno@clisp.org>
47283
47284         Enforce the use of gnulib modules for unportable <string.h> functions.
47285         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
47286         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
47287         (gl_HEADER_STRING_H_BODY): Require it.
47288         * lib/string_.h: If the gnulib module XYZ is not present, redefine
47289         the symbol XYZ to one that gives a link error.
47290         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
47291         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
47292         * modules/mempcpy (configure.ac): Likewise.
47293         * modules/memrchr (configure.ac): Likewise.
47294         * modules/stpcpy (configure.ac): Likewise.
47295         * modules/stpncpy (configure.ac): Likewise.
47296         * modules/strcase (configure.ac): Likewise.
47297         * modules/strcasestr (configure.ac): Likewise.
47298         * modules/strchrnul (configure.ac): Likewise.
47299         * modules/strdup (configure.ac): Likewise.
47300         * modules/strndup (configure.ac): Likewise.
47301         * modules/strnlen (configure.ac): Likewise.
47302         * modules/strpbrk (configure.ac): Likewise.
47303         * modules/strsep (configure.ac): Likewise.
47304         * modules/strstr (configure.ac): Likewise.
47305         * modules/strtok_r (configure.ac): Likewise.
47306
47307 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
47308
47309         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
47310
47311 2007-01-30  Jim Meyering  <jim@meyering.net>
47312
47313         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
47314
47315 2007-01-29  Bruno Haible  <bruno@clisp.org>
47316
47317         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
47318         * lib/execute.c: Likewise.
47319         * lib/pipe.c: Likewise.
47320         * lib/printf-args.h: Likewise.
47321         * lib/printf-args.c: Likewise.
47322         * lib/printf-parse.c: Likewise.
47323         * lib/vasnprintf.c: Likewise.
47324
47325 2007-01-29  Eric Blake  <ebb9@byu.net>
47326
47327         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
47328         declaration.
47329
47330 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
47331
47332         * lib/strptime.h (strptime): Use 'restrict' for args where
47333         POSIX requires this.
47334         * lib/strptime.c (strptime): Likewise.
47335         Change license notice from LGPL to GPL, since gnulib-tool will
47336         change this as needed.
47337         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
47338         defined.
47339         Include "strptime.h" first, to check interface.
47340         Do not #undef _LIBC and _NL_CURRENT.
47341         Do not include <stdlib.h>; no longer needed.
47342         Include "time_r.h" and declare ptime_locale_status
47343         only if _LIBC is not defined.
47344         (__P): Remove unused macro.
47345         (match_string): Bring back glibc version, but use it only if _LIBC
47346         is defined.
47347         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
47348         Remove unnecessary assertion and abort() call.
47349         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
47350         * m4/strptime.m4: Fix serial number comment.
47351         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
47352         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
47353         (Depends-on): Add time_r.
47354
47355 2007-01-29  Bruno Haible  <bruno@clisp.org>
47356
47357         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47358         strptime.
47359         * modules/strptime (Depends-on): Add stdbool.
47360         * lib/strptime.h: Include <time.h> always. Add comments.
47361
47362 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47363
47364         * modules/strptime: New file.
47365         * lib/strptime.h: New file.
47366         * lib/strptime.c: New file.
47367         * m4/strptime.m4: New file.
47368
47369 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
47370
47371         * MODULES.html.sh: New module mpsort.
47372         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
47373
47374         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
47375         a circularity problem with HP-UX ia64 reported by Bob Proulx in
47376         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
47377         All uses changed.
47378         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
47379         All uses changed.
47380         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
47381         to _Restrict_.
47382         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
47383         the parameter matches the prototype.
47384
47385 2007-01-28  Jim Meyering  <jim@meyering.net>
47386
47387         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
47388         sys/time.h here, reverting that part of the previous patch:
47389         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
47390
47391 2007-01-28  Bruno Haible  <bruno@clisp.org>
47392
47393         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
47394         value of $(SYS_TIME_H).
47395         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
47396         remove it conditionally, too. [added by Jim Meyering]
47397         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
47398         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
47399         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
47400         GETTIMEOFDAY_REPLACEMENT to 1.
47401
47402 2007-01-28  Bruno Haible  <bruno@clisp.org>
47403
47404         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
47405         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
47406         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
47407         Set UNISTD_H instead of UNISTD_H2.
47408         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
47409
47410 2007-01-28  Bruno Haible  <bruno@clisp.org>
47411
47412         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
47413         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
47414
47415 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47416
47417         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
47418         (func_create_testdir): Ensure C locale for `grep' and `tr'
47419         character ranges.
47420         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
47421         ACLOCAL_AMFLAGS parsing state machine.
47422
47423 2007-01-27  Bruno Haible  <bruno@clisp.org>
47424
47425         * modules/unistr/base: Update.
47426
47427 2007-01-27  Bruno Haible  <bruno@clisp.org>
47428
47429         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
47430         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
47431         * modules/unistr/u32-mbtouc-unsafe: Renamed from
47432         modules/unistr/u32-mbtouc.
47433         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
47434         * lib/unistr.h: Update.
47435         * lib/linebreak.c: Update.
47436         * modules/unistr/u32-mbtouc: Renamed from
47437         modules/unistr/u32-mbtouc-safe.
47438         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
47439         * lib/unistr.h: Update.
47440         * lib/unistr/u32-to-u8.c: Update.
47441         * lib/unistr/u32-to-u16.c: Update.
47442
47443 2007-01-27  Bruno Haible  <bruno@clisp.org>
47444
47445         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
47446         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
47447         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
47448         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
47449         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
47450         * modules/unistr/u16-mbtouc-unsafe: Renamed from
47451         modules/unistr/u16-mbtouc.
47452         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
47453         * lib/unistr.h: Update.
47454         * lib/linebreak.c: Update.
47455         * modules/linebreak: Update.
47456         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
47457         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
47458         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
47459         * modules/unistr/u16-mbtouc: Renamed from
47460         modules/unistr/u16-mbtouc-safe.
47461         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
47462         * lib/unistr.h: Update.
47463         * lib/unistr/u16-to-u8.c: Update.
47464         * modules/unistr/u16-to-u8: Update.
47465         * lib/unistr/u16-to-u32.c: Update.
47466         * modules/unistr/u16-to-u32: Update.
47467
47468 2007-01-27  Bruno Haible  <bruno@clisp.org>
47469
47470         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
47471         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
47472         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
47473         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
47474         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
47475         * modules/unistr/u8-mbtouc-unsafe: Renamed from
47476         modules/unistr/u8-mbtouc.
47477         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
47478         * lib/unistr.h: Update.
47479         * lib/striconveh.c: Update.
47480         * modules/striconveh: Update.
47481         * lib/linebreak.c: Update.
47482         * modules/linebreak: Update.
47483         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
47484         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
47485         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
47486         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
47487         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
47488         * lib/unistr.h: Update.
47489         * lib/striconveh.c: Update.
47490         * modules/striconveh: Update.
47491         * lib/unistr/u8-to-u16.c: Update.
47492         * modules/unistr/u8-to-u16: Update.
47493         * lib/unistr/u8-to-u32.c: Update.
47494         * modules/unistr/u8-to-u32: Update.
47495
47496 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47497
47498         Sync from Libtool.
47499         * lib/argz.c: Do not include strings.h nor memory.h, include
47500         string.h unconditionally.  Patch by Simon Josefsson.
47501
47502 2007-01-27  Bruno Haible  <bruno@clisp.org>
47503
47504         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
47505         from gl_HEADER_STRING_H_BODY.
47506         (gl_HEADER_STRING_H_BODY): Require it.
47507         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
47508         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47509         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47510         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47511         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47512         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
47513         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47514         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47515         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
47516         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47517         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47518         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
47519         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47520         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47521         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
47522
47523 2007-01-27  Bruno Haible  <bruno@clisp.org>
47524
47525         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
47526         check_PROGRAMS into noinst_PROGRAMS.
47527         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
47528         check_PROGRAMS in this case.
47529         (func_import): Set for_test to false.
47530         (func_create_testdir): Set for_test to true.
47531
47532 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47533             Bruno Haible  <bruno@clisp.org>
47534
47535         * modules/strcasestr (Files): Remove lib/strcasestr.h.
47536         (Depends-on): Add string.
47537         (Includes): Use <string.h> instead of strcasestr.h.
47538         * modules/string (Makefile.am): Also substitute the value of
47539         REPLACE_STRCASESTR.
47540         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
47541         assume strcasestr is declared in <string.h> not <strings.h>. Also
47542         set REPLACE_STRCASESTR.
47543         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
47544         REPLACE_STRCASESTR.
47545         * lib/strcasestr.h: Remove file.
47546         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
47547         * lib/string_.h (strcasestr): New declaration.
47548
47549 2007-01-27  Bruno Haible  <bruno@clisp.org>
47550
47551         * lib/string_.h: Use 'extern'.
47552
47553 2007-01-27  Jim Meyering  <jim@meyering.net>
47554
47555         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
47556         of set-but-not-used local, "q".
47557
47558         * lib/mempcpy.c: Include <config.h> before <string.h>.
47559         This fixes a compilation error on HP-UX, due to the system's
47560         "restrict"-using mempcpy prototype.
47561
47562 2007-01-26  Bruno Haible  <bruno@clisp.org>
47563
47564         Small optimization.
47565         * lib/javacomp.c: Include c-strstr.h.
47566          (is_envjavac_gcj): Use c_strstr instead of strstr.
47567         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
47568
47569 2007-01-26  Bruno Haible  <bruno@clisp.org>
47570
47571         * MODULES.html.sh (Unicode string functions): Add the new modules.
47572
47573         * modules/uniconv/u32-strconv-to-locale: New file.
47574         * lib/uniconv/u32-strconv-to-locale.c: New file.
47575
47576         * modules/uniconv/u16-strconv-to-locale: New file.
47577         * lib/uniconv/u16-strconv-to-locale.c: New file.
47578
47579         * modules/uniconv/u8-strconv-to-locale: New file.
47580         * lib/uniconv/u8-strconv-to-locale.c: New file.
47581
47582         * modules/uniconv/u32-strconv-from-locale: New file.
47583         * lib/uniconv/u32-strconv-from-locale.c: New file.
47584
47585         * modules/uniconv/u16-strconv-from-locale: New file.
47586         * lib/uniconv/u16-strconv-from-locale.c: New file.
47587
47588         * modules/uniconv/u8-strconv-from-locale: New file.
47589         * lib/uniconv/u8-strconv-from-locale.c: New file.
47590
47591         * modules/uniconv/u32-strconv-to-enc: New file.
47592         * lib/uniconv/u32-strconv-to-enc.c: New file.
47593         * modules/uniconv/u32-strconv-to-enc-tests: New file.
47594         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
47595
47596         * modules/uniconv/u16-strconv-to-enc: New file.
47597         * lib/uniconv/u16-strconv-to-enc.c: New file.
47598         * lib/uniconv/u-strconv-to-enc.h: New file.
47599         * modules/uniconv/u16-strconv-to-enc-tests: New file.
47600         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
47601
47602         * modules/uniconv/u8-strconv-to-enc: New file.
47603         * lib/uniconv/u8-strconv-to-enc.c: New file.
47604         * modules/uniconv/u8-strconv-to-enc-tests: New file.
47605         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
47606
47607         * modules/uniconv/u32-strconv-from-enc: New file.
47608         * lib/uniconv/u32-strconv-from-enc.c: New file.
47609         * modules/uniconv/u32-strconv-from-enc-tests: New file.
47610         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
47611
47612         * modules/uniconv/u16-strconv-from-enc: New file.
47613         * lib/uniconv/u16-strconv-from-enc.c: New file.
47614         * modules/uniconv/u16-strconv-from-enc-tests: New file.
47615         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
47616
47617         * modules/uniconv/u8-strconv-from-enc: New file.
47618         * lib/uniconv/u8-strconv-from-enc.c: New file.
47619         * lib/uniconv/u-strconv-from-enc.h: New file.
47620         * modules/uniconv/u8-strconv-from-enc-tests: New file.
47621         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
47622
47623         * modules/uniconv/u32-conv-from-enc: New file.
47624         * lib/uniconv/u32-conv-from-enc.c: New file.
47625         * modules/uniconv/u32-conv-from-enc-tests: New file.
47626         * tests/uniconv/test-u32-conv-from-enc.c: New file.
47627
47628         * modules/uniconv/u16-conv-from-enc: New file.
47629         * lib/uniconv/u16-conv-from-enc.c: New file.
47630         * lib/uniconv/u-conv-from-enc.h: New file.
47631         * modules/uniconv/u16-conv-from-enc-tests: New file.
47632         * tests/uniconv/test-u16-conv-from-enc.c: New file.
47633
47634         * modules/uniconv/u8-conv-from-enc: New file.
47635         * lib/uniconv/u8-conv-from-enc.c: New file.
47636         * modules/uniconv/u8-conv-from-enc-tests: New file.
47637         * tests/uniconv/test-u8-conv-from-enc.c: New file.
47638
47639         * modules/uniconv/base: New file.
47640         * lib/uniconv.h: New file.
47641
47642 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47643
47644         * doc/gnulib-tool.texi (Initial import): Update to match current
47645         behavior with strdup module.
47646         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
47647         * lib/memmem.h: Remove; all uses removed.  This is now done
47648         by <string.h>.
47649         * lib/mempcpy.h: Likewise.
47650         * lib/memrchr.h: Likewise.
47651         * lib/stpcpy.h: Likewise.
47652         * lib/stpncpy.h: Likewise.
47653         * lib/strcase.h: Likewise.
47654         * lib/strchrnul.h: Likewise.
47655         * lib/strdup.h: Likewise.
47656         * lib/strndup.h: Likewise.
47657         * lib/strnlen.h: Likewise.
47658         * lib/strpbrk.h: Likewise.
47659         * lib/strsep.h: Likewise.
47660         * lib/strstr.h: Likewise.
47661         * lib/strtok_r.h: Likewise.
47662         * lib/string_.h: New file.
47663         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
47664         Rely on <string.h> instead.
47665         * lib/canon-host.c: Likewise.
47666         * lib/chdir-long.c: Likewise.
47667         * lib/concatpath.c: Likewise.
47668         * lib/exclude.c: Likewise.
47669         * lib/fchdir.c: Likewise.
47670         * lib/getaddrinfo.c: Likewise.
47671         * lib/getcwd.c: Likewise.
47672         * lib/getsubopt.c: Likewise.
47673         * lib/glob.c: Likewise.
47674         * lib/hard-locale.c: Likewise.
47675         * lib/iconvme.c: Likewise.
47676         * lib/javacomp.c: Likewise.
47677         * lib/mempcpy.c: Likewise.
47678         * lib/memrchr.c: Likewise.
47679         * lib/regex_internal.h: Likewise.
47680         * lib/stpncpy.c: Likewise.
47681         * lib/strcasecmp.c: Likewise.
47682         * lib/strchrnul.c: Likewise.
47683         * lib/strdup.c: Likewise.
47684         * lib/striconv.c: Likewise.
47685         * lib/striconveh.c: Likewise.
47686         * lib/striconveha.c: Likewise.
47687         * lib/strncasecmp.c: Likewise.
47688         * lib/strndup.c: Likewise.
47689         * lib/strnlen.c: Likewise.
47690         * lib/strsep.c: Likewise.
47691         * lib/strstr.c: Likewise.
47692         * lib/strtok_r.c: Likewise.
47693         * lib/userspec.c: Likewise.
47694         * lib/w32spawn.h: Likewise.
47695         * lib/xstrndup.c: Likewise.
47696         * lib/mountlist.c (strstr): Remove decl.
47697         * m4/string_h.m4: New file.
47698         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
47699         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
47700         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
47701         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
47702         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
47703         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
47704         Set REPLACE_STRCASECMP if necessary.
47705         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
47706         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
47707         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
47708         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
47709         HAVE_DECL_STRDUP if necessary.
47710         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
47711         since gl_FUNC_STRNDUP does that now.
47712         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
47713         Check for decl here...
47714         (gl_PREREQ_STRNLEN): ... not here.
47715         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
47716         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
47717         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
47718         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
47719         necessary.
47720         * modules/string: New file.
47721         * modules/memmem (Files): Remove special-purpose include file.
47722         (Depends-on): Add string.
47723         (Include): Include <string.h>, not the removed file.
47724         * modules/mempcpy: Likewise.
47725         * modules/memrchr: Likewise.
47726         * modules/stpcpy: Likewise.
47727         * modules/stpncpy: Likewise.
47728         * modules/strcase: Likewise.
47729         * modules/strchrnul: Likewise.
47730         * modules/strdup: Likewise.
47731         * modules/strndup: Likewise.
47732         * modules/strnlen: Likewise.
47733         * modules/strpbrk: Likewise.
47734         * modules/strsep: Likewise.
47735         * modules/strstr: Likewise.
47736         * modules/strtok_r: Likewise.
47737         * tests/test-dirname.c: Don't include "strdup.h", since
47738         <string.h> now suffices.
47739         * tests/test-memmem.c: Don't include "memmem.h", since
47740         <string.h> now suffices.
47741
47742 2007-01-25  Bruno Haible  <bruno@clisp.org>
47743
47744         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
47745         *resultp is 0.
47746
47747         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
47748         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
47749         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
47750         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
47751
47752         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
47753         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
47754         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
47755         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
47756         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
47757         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
47758
47759 2007-01-24  Bruno Haible  <bruno@clisp.org>
47760
47761         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
47762         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
47763         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
47764         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
47765         gl_FUNC_FTS_CORE.
47766         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
47767         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
47768         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47769         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
47770         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
47771         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
47772         gl_FUNC_FCHOWNAT.
47773         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
47774         gl_FUNC_STRFTIME.
47775         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
47776         Reported by Ralf Wildenhues.
47777
47778 2007-01-24  Bruno Haible  <bruno@clisp.org>
47779
47780         Drop AC_REQUIRE calls that are redundant with the module dependencies.
47781         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
47782         gl_GETADDRINFO.
47783         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
47784         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
47785         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
47786
47787 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
47788
47789         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
47790         Don't use 'exit'; just return from 'main'.
47791         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
47792
47793         * lib/fnmatch_.h: Readjust white space and comments to match
47794         glibc, to avoid spurious diffs.
47795
47796 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47797
47798         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
47799         2004-12-01 change by Jakub Jelinek, since this code won't compile
47800         if !LIBC.  Problem reported by Bob Proulx.
47801
47802 2007-01-23  Bruno Haible  <bruno@clisp.org>
47803
47804         * lib/striconveh.c: Include c-strcaseeq.h.
47805         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
47806         * modules/striconveh (Depends-on): Add c-strcaseeq.
47807
47808 2007-01-23  Bruno Haible  <bruno@clisp.org>
47809
47810         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
47811
47812         * modules/c-strcaseeq: New file.
47813         * lib/c-strcaseeq.h: New file.
47814
47815         * modules/streq: New file.
47816         * lib/streq.h: New file.
47817
47818 2007-01-23  Bruno Haible  <bruno@clisp.org>
47819
47820         * modules/striconveha-tests: New file.
47821         * tests/test-striconveha.c: New file.
47822
47823         * lib/striconveha.h: Include <stdbool.h>.
47824         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
47825         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
47826         (mem_iconveha_notranslit): Renamed from mem_iconveha.
47827         (mem_iconveha): New function.
47828         (str_iconveha_notranslit): Renamed from str_iconveha.
47829         (str_iconveha): New function.
47830         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
47831         c-strcase.
47832
47833 2007-01-23  Bruno Haible  <bruno@clisp.org>
47834
47835         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
47836         encodings without forgiving before trying any encoding with handler.
47837         (str_iconveha): Try all encodings without forgiving before trying any
47838         encoding with handler.
47839
47840 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47841
47842         Import the following changes from libc.
47843
47844         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47845
47846         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
47847
47848         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
47849
47850         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
47851         normal_bracket label.
47852
47853         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
47854
47855         [BZ #361]
47856         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
47857         to normal_bracket after fetching the next character.
47858
47859 2007-01-22  Bruno Haible  <bruno@clisp.org>
47860
47861         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
47862         argument.
47863         * lib/striconveh.c (iconv_carefully_1): New function.
47864         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
47865         argument.
47866         (str_cd_iconveh): Update.
47867         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
47868         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
47869         * tests/test-striconveh.c (MAGIC): New macro.
47870         (new_offsets): New function.
47871         (main): Test call with and without offsets.
47872
47873 2007-01-22  Bruno Haible  <bruno@clisp.org>
47874
47875         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
47876         * modules/sys_select (Makefile.am): Likewise.
47877         * modules/sys_socket (Makefile.am): Likewise.
47878         * modules/sys_time (Makefile.am): Likewise.
47879
47880 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47881
47882         * modules/gettimeofday (License): Change from GPL to LGPL, since
47883         gettimeofday is a library function.
47884
47885 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47886
47887         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
47888
47889 2007-01-21  Bruno Haible  <bruno@clisp.org>
47890
47891         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
47892
47893 2007-01-21  Bruno Haible  <bruno@clisp.org>
47894
47895         * modules/striconveha: New file.
47896         * lib/striconveha.h: New file.
47897         * lib/striconveha.c: New file.
47898         * MODULES.html.sh (Internationalization functions): Add striconveha.
47899         * lib/striconv.c (str_iconv): Optimize the case of an empty input
47900         string.
47901         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
47902
47903 2007-01-21  Bruno Haible  <bruno@clisp.org>
47904
47905         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
47906         * lib/striconveh.c (str_iconveh): Likewise.
47907
47908 2007-01-21  Bruno Haible  <bruno@clisp.org>
47909
47910         * lib/striconveh.h (mem_iconveh): New declaration.
47911         * lib/striconveh.c (mem_iconveh): New function.
47912         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
47913
47914 2007-01-21  Bruno Haible  <bruno@clisp.org>
47915
47916         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
47917
47918         * lib/striconveh.h (mem_cd_iconveh): Change specification.
47919         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
47920         original result buffer.
47921         (str_cd_iconveh): Update.
47922         * tests/test-striconveh.c (main): Update.
47923
47924         * lib/striconv.h (mem_cd_iconv): Change specification.
47925         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
47926         result buffer.
47927         (str_cd_iconv): Update.
47928         * tests/test-striconv.c (main): Update.
47929
47930 2007-01-21  Bruno Haible  <bruno@clisp.org>
47931
47932         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
47933
47934 2007-01-20  Jim Meyering  <jim@meyering.net>
47935
47936         * lib/userspec.c (parse_with_separator): If a user or group string
47937         starts with "+", skip the corresponding name-to-ID look-up, since
47938         such a look-up must fail: user and group names may not include "+".
47939
47940 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
47941
47942         * lib/poll.c: Include sys/time.h and time.h unconditionally,
47943         since we now assume the sys_time module.
47944         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
47945         check for sys/time.h; no longer needed.
47946         * modules/poll (Depends-on): Depend on sys_time.
47947
47948 2007-01-18  Bruno Haible  <bruno@clisp.org>
47949
47950         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
47951         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47952
47953         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
47954         gettimeofday.
47955
47956         * tests/test-gettimeofday.c: Include <time.h>.
47957         (dummy): Remove variable.
47958
47959         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
47960         gl_HEADER_SYS_TIME_H.
47961         (gl_HEADER_SYS_TIME_H): New macro.
47962
47963         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
47964         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47965         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
47966         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
47967         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47968         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
47969         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
47970         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47971         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
47972         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
47973         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47974
47975         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
47976         last change; it caused a compilation error when cross-compiling to
47977         Cygwin.
47978
47979 2007-01-18  Jim Meyering  <jim@meyering.net>
47980
47981         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
47982         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
47983         than the race-prone "test -d sys || mkdir sys".
47984         (configure.ac): Use AC_PROG_MKDIR_P.
47985         * modules/sys_select: Likewise.
47986         * modules/sys_socket: Likewise.
47987         * modules/sys_time: Likewise.
47988
47989 2007-01-18  Eric Blake  <ebb9@byu.net>
47990
47991         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
47992         replace gettimeofday.
47993         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
47994         name, to avoid infinite recursion.
47995
47996 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
47997
47998         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
47999         module sys_time.
48000         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
48001         assume timespec.h defines struct timeval.
48002         * lib/settime.c: Likewise.
48003         * lib/utimens.c: Likewise.
48004         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
48005         since we now assume the gettimeofday module.
48006         * lib/tempname.c (__gen_tempname): Likewise.
48007         * lib/gettimeofday.h: Remove.
48008         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
48009         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
48010         Include <time.h>, for 'time()'.
48011         (localtime_buffer_addr): Also use this workaround if
48012         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
48013         to simplify the uses.  All uses changed.
48014         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
48015         that #undef is inside {}, and 'const' follows type name consistently.
48016         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
48017         (gettimeofday): Do not use the maximum possible value for
48018         tv->tv_usec, since that might break usages other than ls.c.
48019         Instead, we'll leave ls.c alone.  This undoes today's patch
48020         by Bruno.  Add a compile-time warning for 1s-clock resolution;
48021         we've never observed the problem but might as well keep the
48022         canary.
48023         * lib/nanosleep.c: Include timespec.h first, for interface check.
48024         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
48025         now assume the sys_time module.
48026         * lib/tempname.c: Likewise.
48027         * lib/timespec.h: Likewise.
48028         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
48029         needed.
48030         * lib/strftime.c: Likewise.
48031         * lib/timespec.h: Likewise.
48032         * lib/posixtm.c: Include posixtm.h first, for interface check.
48033         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
48034         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
48035         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
48036         * lib/sys_time_.h: New file.
48037         * lib/timespec.h (struct timespec): Use long int, not long.
48038         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
48039         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
48040         Remove obsolescent call to AC_HEADER_TIME.
48041         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
48042         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48043         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
48044         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
48045         Likewise.
48046         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
48047         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
48048         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
48049         into the sys_time module.  Check for gettimeofday just once.
48050         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
48051         for gettimeofday signature to just check the signature.  Merely
48052         compile it, since linking doesn't test signature.  Improve test for
48053         whether gettimeofday.o is actually needed.
48054         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
48055         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
48056         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
48057         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48058         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
48059         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
48060         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
48061         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
48062         than worrying about sys/time.h.
48063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48064         Don't bother worrying about TIME_WITH_SYS_TIME.
48065         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
48066         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
48067         * m4/sys_time_h.m4: New file.
48068         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
48069         Don't include sys/time.h.  Return from main rather than exiting.
48070         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
48071         all uses changed.
48072         * modules/gethrxtime (Depends-on): Add sys_time.
48073         * modules/gettime (Depends-on): Likewise.
48074         * modules/gettimeofday (Depends-on): Likewise.
48075         * modules/nanosleep (Depends-on): Likewise.
48076         * modules/settime (Depends-on): Likewise.
48077         * modules/tempname (Depends-on): Likewise.
48078         * modules/utimens (Depends-on): Likewise.
48079         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
48080         (Include:) Change back to <sys/time.h>.
48081         (Maintainer:) Add self.
48082         * modules/sys_time: New file.
48083         * modules/tempname (Depends-on): Add gettimeofday.
48084         * tests/test-gettimeofday.c: Include <sys/time.h>
48085         rather than gettimeofday.h.
48086
48087 2007-01-17  Bruno Haible  <bruno@clisp.org>
48088
48089         * gnulib-tool (func_get_license): Revert last patch. Instead, let
48090         the license default to GPL.
48091         (func_create_testdir): Don't complain if a module is LGPL and its
48092         tests module depends on GPLed modules.
48093
48094 2007-01-17  Bruno Haible  <bruno@clisp.org>
48095
48096         * lib/gettimeofday.c (gettimeofday): Add code for the case
48097         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
48098         maximum possible value for tv->tv_usec, rather than the minimum one.
48099
48100 2005-10-08  Martin Lambers  <marlam@marlam.de>
48101 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48102 2007-01-16  Bruno Haible  <bruno@clisp.org>
48103
48104         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
48105         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
48106         gl_FUNC_GETTIMEOFDAY.
48107         (Include): Add gettimeofday.h.
48108         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
48109         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
48110         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
48111         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
48112         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
48113         * lib/gettimeofday.h: New file.
48114         * lib/gettimeofday.c: Include <sys/timeb.h>.
48115         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
48116         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
48117         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
48118         fall back on time().
48119
48120         * tests/test-gettimeofday.c: New file.
48121         * modules/gettimeofday-tests: New file.
48122
48123 2007-01-16  Eric Blake  <ebb9@byu.net>
48124
48125         * modules/fnmatch (Depends-on): Depend on wchar.
48126         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
48127         * m4/fnmatch.m4: Likewise.
48128         * modules/mbchar (Makefile.am): Assume <wchar.h>.
48129         * m4/mbchar.m4: Likewise.
48130         * modules/mbswidth (Depends-on): Depend on wchar.
48131         * lib/mbswidth.c: Assume <wchar.h>.
48132         * m4/mbswidth.m4: Likewise.
48133         * modules/quotearg (Depends-on): Depend on wchar.
48134         * lib/quotearg.c: Assume <wchar.h>.
48135         * m4/quotearg.m4: Likewise.
48136         * modules/regex (Depends-on): Depend on wchar.
48137         * lib/regex_internal.h: Assume <wchar.h>.
48138         * m4/regex.m4: Likewise.
48139         * modules/stdint (Depends-on): Depend on wchar.
48140         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
48141         * m4/stdint.m4: Likewise.
48142         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
48143         * modules/strftime (Depends-on): Depend on wchar.
48144         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
48145         * modules/strtol (Depends-on): Depend on wchar.
48146         * lib/strtol.c: Assume <wchar.h>.
48147         * modules/wcwidth (Depends-on): Depend on wchar.
48148         * lib/wcwidth.h: Assume <wchar.h>.
48149         * m4/wcwidth.m4: Likewise.
48150
48151 2007-01-16  Bruno Haible  <bruno@clisp.org>
48152
48153         * modules/csharpexec-script: New, created from...
48154         * modules/csharpexec: ... this.
48155
48156 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48157
48158         * modules/javaexec-script: New, created from...
48159         * modules/javaexec: ... this.
48160
48161 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48162
48163         * modules/poll (Dependencies): Add sys_select.
48164
48165 2007-01-15  Jim Meyering  <jim@meyering.net>
48166
48167         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
48168         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
48169         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
48170         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
48171
48172 2007-01-15  Bruno Haible  <bruno@clisp.org>
48173
48174         * modules/striconveh: New file.
48175         * lib/striconveh.h: New file.
48176         * lib/striconveh.c: New file.
48177         * MODULES.html.sh (Internationalization functions): Add striconveh.
48178
48179         * modules/striconveh-tests: New file.
48180         * tests/test-striconveh.c: New file.
48181
48182 2007-01-15  Bruno Haible  <bruno@clisp.org>
48183
48184         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
48185         not from GNU libiconv or GNU libc.
48186
48187 2007-01-15  Bruno Haible  <bruno@clisp.org>
48188
48189         * doc/gnulib-intro.texi (Copyright): Explain the different license
48190         terms for module descriptions, autoconf macros, tests, documentation.
48191
48192 2007-01-14  Bruno Haible  <bruno@clisp.org>
48193
48194         * modules/striconv-tests: New file.
48195         * tests/test-striconv.c: New file.
48196
48197 2007-01-14  Bruno Haible  <bruno@clisp.org>
48198
48199         * modules/iconv-tests: New file.
48200         * tests/test-iconv.c: New file.
48201
48202 2007-01-14  Bruno Haible  <bruno@clisp.org>
48203
48204         * gnulib-tool (func_get_license): For test modules, use the license of
48205         the main module.
48206
48207 2007-01-14  Bruno Haible  <bruno@clisp.org>
48208
48209         * modules/iconv (Include): Clarify that <iconv.h> can only be included
48210         if iconv is found to exist.
48211
48212 2007-01-14  Bruno Haible  <bruno@clisp.org>
48213
48214         * modules/c-ctype-tests: New file.
48215         * tests/test-c-ctype.c: New file.
48216
48217 2007-01-14  Bruno Haible  <bruno@clisp.org>
48218
48219         * modules/binary-io-tests: New file.
48220         * tests/test-binary-io.sh: New file.
48221         * tests/test-binary-io.c: New file.
48222
48223 2007-01-14  Bruno Haible  <bruno@clisp.org>
48224
48225         * modules/array-oset-tests: New file.
48226         * tests/test-array_oset.c: New file.
48227
48228 2007-01-14  Bruno Haible  <bruno@clisp.org>
48229
48230         * modules/array-list-tests: New file.
48231         * tests/test-array_list.c: New file.
48232
48233 2007-01-14  Bruno Haible  <bruno@clisp.org>
48234
48235         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
48236         and make.
48237         Reported by Simon Josefsson in
48238         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
48239
48240 2007-01-14  Bruno Haible  <bruno@clisp.org>
48241
48242         * modules/allocsa-tests: New file.
48243         * tests/test-allocsa.c: New file.
48244
48245 2007-01-14  Bruno Haible  <bruno@clisp.org>
48246
48247         * modules/fchdir (Depends-on): Add absolute-header.
48248         * modules/unistd (Depends-on): Likewise.
48249
48250 2006-12-30  Bruno Haible  <bruno@clisp.org>
48251
48252         * modules/fchdir: New file.
48253         * modules/unistd (Files): Add lib/unistd_.h.
48254         (Makefile.am): Generate unistd.h from unistd_.h.
48255         * lib/fchdir.c: New file.
48256         * lib/dirent_.h: New file.
48257         * lib/unistd_.h: New file.
48258         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
48259         * m4/fchdir.m4: New file.
48260         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
48261         (gl_HEADER_UNISTD): Invoke it.
48262         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
48263         function.
48264         * lib/backupfile.c (opendir, closedir): Undefine.
48265         * lib/chown.c (open, close): Undefine.
48266         * lib/clean-temp.c (open, close): Undefine.
48267         * lib/copy-file.c (open, close): Undefine.
48268         * lib/execute.c (open, close): Undefine.
48269         * lib/fsusage.c (open, close): Undefine.
48270         * lib/gc-gnulib.c (open, close): Undefine.
48271         * lib/getcwd.c (opendir, closedir): Undefine.
48272         * lib/glob.c (opendir, closedir): Undefine.
48273         * lib/javacomp.c (open, close): Undefine.
48274         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
48275         * lib/openat-proc.c (open, close): Undefine.
48276         * lib/pagealign_alloc.c (open, close): Undefine.
48277         * lib/pipe.c (open, close): Undefine.
48278         * lib/progreloc.c (open, close): Undefine.
48279         * lib/savedir.c (opendir, closedir): Undefine.
48280         * lib/utime.c (open, close): Undefine.
48281         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
48282
48283 2007-01-10  Bruno Haible  <bruno@clisp.org>
48284
48285         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
48286
48287 2007-01-12  Eric Blake  <ebb9@byu.net>
48288
48289         Provide a robust <wchar.h>.  Further simplifications are now
48290         possible in other modules, but not included here.
48291         * modules/wchar: New module.
48292         * m4/wchar.m4: New file.
48293         * lib/wchar_.h: Likewise.
48294         * modules/mbchar (Depends-on): Depend on wchar, as the first use
48295         of the new module.
48296         * MODULES.html.sh (Extended multibyte and wide character utilities):
48297         New section.
48298
48299 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
48300
48301         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
48302         to a reasonable default for memory allocation.
48303         (xreadlink): Don't allocate a huge buffer, to work around a buggy
48304         file system that reports garbage st_size values for symlinks.
48305         Problem reported by Liyang Hu.
48306
48307 2007-01-11  Simon Josefsson  <simon@josefsson.org>
48308
48309         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
48310         Emacs .#* auto-save files).
48311
48312 2007-01-11  Bruno Haible  <bruno@clisp.org>
48313
48314         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
48315         directory.
48316
48317 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48318
48319         Use @...@ consistently in lib/wctype_.h.
48320         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
48321         on it being set to 1 or 0.
48322         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
48323         go back to AC_SUBSTing it.
48324         * modules/wctype (Makefile.am): Undo previous change.
48325
48326 2007-01-10  Eric Blake  <ebb9@byu.net>
48327
48328         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
48329         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
48330         * modules/wctype (Makefile.am): Likewise.
48331         Reported by Chris McGuire.
48332
48333 2007-01-10  Jim Meyering  <jim@meyering.net>
48334
48335         fts.c: a small readability/maintainability improvement
48336         * lib/fts.c (fts_read): Make this code slightly more readable and
48337         maintainable by hoisting the "sp->fts_cur = p" assignments to
48338         immediately follow the statements that set P.  Derived from
48339         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
48340
48341 2007-01-10  Eric Blake  <ebb9@byu.net>
48342
48343         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
48344         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
48345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48346         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48347         Reported by Chris McGuire.
48348
48349 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48350
48351         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
48352         in sed script.
48353
48354 2007-01-09  Bruno Haible  <bruno@clisp.org>
48355
48356         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
48357         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
48358         variables.
48359         (func_module): Use them.
48360
48361 2007-01-09  Bruno Haible  <bruno@clisp.org>
48362
48363         * modules/unistr/base: New file.
48364         * lib/unistr.h: New file.
48365
48366         * modules/unistr/u8-to-u16: New file.
48367         * lib/unistr/u8-to-u16.c: New file.
48368
48369         * modules/unistr/u8-to-u32: New file.
48370         * lib/unistr/u8-to-u32.c: New file.
48371
48372         * modules/unistr/u16-to-u8: New file.
48373         * lib/unistr/u16-to-u8.c: New file.
48374
48375         * modules/unistr/u16-to-u32: New file.
48376         * lib/unistr/u16-to-u32.c: New file.
48377
48378         * modules/unistr/u32-to-u8: New file.
48379         * lib/unistr/u32-to-u8.c: New file.
48380
48381         * modules/unistr/u32-to-u16: New file.
48382         * lib/unistr/u32-to-u16.c: New file.
48383
48384         * modules/unistr/u8-check: New file.
48385         * modules/unistr/u16-check: New file.
48386         * modules/unistr/u32-check: New file.
48387         * lib/unistr/u8-check.c: New file.
48388         * lib/unistr/u16-check.c: New file.
48389         * lib/unistr/u32-check.c: New file.
48390
48391         * modules/unistr/u8-chr: New file.
48392         * modules/unistr/u16-chr: New file.
48393         * modules/unistr/u32-chr: New file.
48394         * lib/unistr/u8-chr.c: New file.
48395         * lib/unistr/u16-chr.c: New file.
48396         * lib/unistr/u32-chr.c: New file.
48397
48398         * modules/unistr/u8-cmp: New file.
48399         * modules/unistr/u16-cmp: New file.
48400         * modules/unistr/u32-cmp: New file.
48401         * lib/unistr/u8-cmp.c: New file.
48402         * lib/unistr/u16-cmp.c: New file.
48403         * lib/unistr/u32-cmp.c: New file.
48404
48405         * modules/unistr/u8-cpy: New file.
48406         * modules/unistr/u16-cpy: New file.
48407         * modules/unistr/u32-cpy: New file.
48408         * lib/unistr/u8-cpy.c: New file.
48409         * lib/unistr/u16-cpy.c: New file.
48410         * lib/unistr/u32-cpy.c: New file.
48411         * lib/unistr/u-cpy.h: New file.
48412
48413         * modules/unistr/u8-cpy-alloc: New file.
48414         * modules/unistr/u16-cpy-alloc: New file.
48415         * modules/unistr/u32-cpy-alloc: New file.
48416         * lib/unistr/u8-cpy-alloc.c: New file.
48417         * lib/unistr/u16-cpy-alloc.c: New file.
48418         * lib/unistr/u32-cpy-alloc.c: New file.
48419         * lib/unistr/u-cpy-alloc.h: New file.
48420
48421         * modules/unistr/u8-endswith: New file.
48422         * modules/unistr/u16-endswith: New file.
48423         * modules/unistr/u32-endswith: New file.
48424         * lib/unistr/u8-endswith.c: New file.
48425         * lib/unistr/u16-endswith.c: New file.
48426         * lib/unistr/u32-endswith.c: New file.
48427         * lib/unistr/u-endswith.h: New file.
48428
48429         * modules/unistr/u8-mblen: New file.
48430         * modules/unistr/u16-mblen: New file.
48431         * modules/unistr/u32-mblen: New file.
48432         * lib/unistr/u8-mblen.c: New file.
48433         * lib/unistr/u16-mblen.c: New file.
48434         * lib/unistr/u32-mblen.c: New file.
48435
48436         * modules/unistr/u8-mbtouc: New file.
48437         * modules/unistr/u16-mbtouc: New file.
48438         * modules/unistr/u32-mbtouc: New file.
48439         * lib/unistr/u8-mbtouc.c: New file.
48440         * lib/unistr/u16-mbtouc.c: New file.
48441         * lib/unistr/u32-mbtouc.c: New file.
48442
48443         * modules/unistr/u8-mbtouc-safe: New file.
48444         * modules/unistr/u16-mbtouc-safe: New file.
48445         * modules/unistr/u32-mbtouc-safe: New file.
48446         * lib/unistr/u8-mbtouc-safe.c: New file.
48447         * lib/unistr/u16-mbtouc-safe.c: New file.
48448         * lib/unistr/u32-mbtouc-safe.c: New file.
48449
48450         * modules/unistr/u8-move: New file.
48451         * modules/unistr/u16-move: New file.
48452         * modules/unistr/u32-move: New file.
48453         * lib/unistr/u8-move.c: New file.
48454         * lib/unistr/u16-move.c: New file.
48455         * lib/unistr/u32-move.c: New file.
48456         * lib/unistr/u-move.h: New file.
48457
48458         * modules/unistr/u8-next: New file.
48459         * modules/unistr/u16-next: New file.
48460         * modules/unistr/u32-next: New file.
48461         * lib/unistr/u8-next.c: New file.
48462         * lib/unistr/u16-next.c: New file.
48463         * lib/unistr/u32-next.c: New file.
48464
48465         * modules/unistr/u8-prev: New file.
48466         * modules/unistr/u16-prev: New file.
48467         * modules/unistr/u32-prev: New file.
48468         * lib/unistr/u8-prev.c: New file.
48469         * lib/unistr/u16-prev.c: New file.
48470         * lib/unistr/u32-prev.c: New file.
48471
48472         * modules/unistr/u8-set: New file.
48473         * modules/unistr/u16-set: New file.
48474         * modules/unistr/u32-set: New file.
48475         * lib/unistr/u8-set.c: New file.
48476         * lib/unistr/u16-set.c: New file.
48477         * lib/unistr/u32-set.c: New file.
48478         * lib/unistr/u-set.h: New file.
48479
48480         * modules/unistr/u8-startswith: New file.
48481         * modules/unistr/u16-startswith: New file.
48482         * modules/unistr/u32-startswith: New file.
48483         * lib/unistr/u8-startswith.c: New file.
48484         * lib/unistr/u16-startswith.c: New file.
48485         * lib/unistr/u32-startswith.c: New file.
48486         * lib/unistr/u-startswith.h: New file.
48487
48488         * modules/unistr/u8-stpcpy: New file.
48489         * modules/unistr/u16-stpcpy: New file.
48490         * modules/unistr/u32-stpcpy: New file.
48491         * lib/unistr/u8-stpcpy.c: New file.
48492         * lib/unistr/u16-stpcpy.c: New file.
48493         * lib/unistr/u32-stpcpy.c: New file.
48494         * lib/unistr/u-stpcpy.h: New file.
48495
48496         * modules/unistr/u8-stpncpy: New file.
48497         * modules/unistr/u16-stpncpy: New file.
48498         * modules/unistr/u32-stpncpy: New file.
48499         * lib/unistr/u8-stpncpy.c: New file.
48500         * lib/unistr/u16-stpncpy.c: New file.
48501         * lib/unistr/u32-stpncpy.c: New file.
48502         * lib/unistr/u-stpncpy.h: New file.
48503
48504         * modules/unistr/u8-strcat: New file.
48505         * modules/unistr/u16-strcat: New file.
48506         * modules/unistr/u32-strcat: New file.
48507         * lib/unistr/u8-strcat.c: New file.
48508         * lib/unistr/u16-strcat.c: New file.
48509         * lib/unistr/u32-strcat.c: New file.
48510         * lib/unistr/u-strcat.h: New file.
48511
48512         * modules/unistr/u8-strchr: New file.
48513         * modules/unistr/u16-strchr: New file.
48514         * modules/unistr/u32-strchr: New file.
48515         * lib/unistr/u8-strchr.c: New file.
48516         * lib/unistr/u16-strchr.c: New file.
48517         * lib/unistr/u32-strchr.c: New file.
48518
48519         * modules/unistr/u8-strcmp: New file.
48520         * modules/unistr/u16-strcmp: New file.
48521         * modules/unistr/u32-strcmp: New file.
48522         * lib/unistr/u8-strcmp.c: New file.
48523         * lib/unistr/u16-strcmp.c: New file.
48524         * lib/unistr/u32-strcmp.c: New file.
48525
48526         * modules/unistr/u8-strcpy: New file.
48527         * modules/unistr/u16-strcpy: New file.
48528         * modules/unistr/u32-strcpy: New file.
48529         * lib/unistr/u8-strcpy.c: New file.
48530         * lib/unistr/u16-strcpy.c: New file.
48531         * lib/unistr/u32-strcpy.c: New file.
48532         * lib/unistr/u-strcpy.h: New file.
48533
48534         * modules/unistr/u8-strcspn: New file.
48535         * modules/unistr/u16-strcspn: New file.
48536         * modules/unistr/u32-strcspn: New file.
48537         * lib/unistr/u8-strcspn.c: New file.
48538         * lib/unistr/u16-strcspn.c: New file.
48539         * lib/unistr/u32-strcspn.c: New file.
48540         * lib/unistr/u-strcspn.h: New file.
48541
48542         * modules/unistr/u8-strdup: New file.
48543         * modules/unistr/u16-strdup: New file.
48544         * modules/unistr/u32-strdup: New file.
48545         * lib/unistr/u8-strdup.c: New file.
48546         * lib/unistr/u16-strdup.c: New file.
48547         * lib/unistr/u32-strdup.c: New file.
48548         * lib/unistr/u-strdup.h: New file.
48549
48550         * modules/unistr/u8-strlen: New file.
48551         * modules/unistr/u16-strlen: New file.
48552         * modules/unistr/u32-strlen: New file.
48553         * lib/unistr/u8-strlen.c: New file.
48554         * lib/unistr/u16-strlen.c: New file.
48555         * lib/unistr/u32-strlen.c: New file.
48556         * lib/unistr/u-strlen.h: New file.
48557
48558         * modules/unistr/u8-strmblen: New file.
48559         * modules/unistr/u16-strmblen: New file.
48560         * modules/unistr/u32-strmblen: New file.
48561         * lib/unistr/u8-strmblen.c: New file.
48562         * lib/unistr/u16-strmblen.c: New file.
48563         * lib/unistr/u32-strmblen.c: New file.
48564
48565         * modules/unistr/u8-strmbtouc: New file.
48566         * modules/unistr/u16-strmbtouc: New file.
48567         * modules/unistr/u32-strmbtouc: New file.
48568         * lib/unistr/u8-strmbtouc.c: New file.
48569         * lib/unistr/u16-strmbtouc.c: New file.
48570         * lib/unistr/u32-strmbtouc.c: New file.
48571
48572         * modules/unistr/u8-strncat: New file.
48573         * modules/unistr/u16-strncat: New file.
48574         * modules/unistr/u32-strncat: New file.
48575         * lib/unistr/u8-strncat.c: New file.
48576         * lib/unistr/u16-strncat.c: New file.
48577         * lib/unistr/u32-strncat.c: New file.
48578         * lib/unistr/u-strncat.h: New file.
48579
48580         * modules/unistr/u8-strncmp: New file.
48581         * modules/unistr/u16-strncmp: New file.
48582         * modules/unistr/u32-strncmp: New file.
48583         * lib/unistr/u8-strncmp.c: New file.
48584         * lib/unistr/u16-strncmp.c: New file.
48585         * lib/unistr/u32-strncmp.c: New file.
48586
48587         * modules/unistr/u8-strncpy: New file.
48588         * modules/unistr/u16-strncpy: New file.
48589         * modules/unistr/u32-strncpy: New file.
48590         * lib/unistr/u8-strncpy.c: New file.
48591         * lib/unistr/u16-strncpy.c: New file.
48592         * lib/unistr/u32-strncpy.c: New file.
48593         * lib/unistr/u-strncpy.h: New file.
48594
48595         * modules/unistr/u8-strnlen: New file.
48596         * modules/unistr/u16-strnlen: New file.
48597         * modules/unistr/u32-strnlen: New file.
48598         * lib/unistr/u8-strnlen.c: New file.
48599         * lib/unistr/u16-strnlen.c: New file.
48600         * lib/unistr/u32-strnlen.c: New file.
48601         * lib/unistr/u-strnlen.h: New file.
48602
48603         * modules/unistr/u8-strpbrk: New file.
48604         * modules/unistr/u16-strpbrk: New file.
48605         * modules/unistr/u32-strpbrk: New file.
48606         * lib/unistr/u8-strpbrk.c: New file.
48607         * lib/unistr/u16-strpbrk.c: New file.
48608         * lib/unistr/u32-strpbrk.c: New file.
48609         * lib/unistr/u-strpbrk.h: New file.
48610
48611         * modules/unistr/u8-strrchr: New file.
48612         * modules/unistr/u16-strrchr: New file.
48613         * modules/unistr/u32-strrchr: New file.
48614         * lib/unistr/u8-strrchr.c: New file.
48615         * lib/unistr/u16-strrchr.c: New file.
48616         * lib/unistr/u32-strrchr.c: New file.
48617
48618         * modules/unistr/u8-strspn: New file.
48619         * modules/unistr/u16-strspn: New file.
48620         * modules/unistr/u32-strspn: New file.
48621         * lib/unistr/u8-strspn.c: New file.
48622         * lib/unistr/u16-strspn.c: New file.
48623         * lib/unistr/u32-strspn.c: New file.
48624         * lib/unistr/u-strspn.h: New file.
48625
48626         * modules/unistr/u8-strstr: New file.
48627         * modules/unistr/u16-strstr: New file.
48628         * modules/unistr/u32-strstr: New file.
48629         * lib/unistr/u8-strstr.c: New file.
48630         * lib/unistr/u16-strstr.c: New file.
48631         * lib/unistr/u32-strstr.c: New file.
48632         * lib/unistr/u-strstr.h: New file.
48633
48634         * modules/unistr/u8-strtok: New file.
48635         * modules/unistr/u16-strtok: New file.
48636         * modules/unistr/u32-strtok: New file.
48637         * lib/unistr/u8-strtok.c: New file.
48638         * lib/unistr/u16-strtok.c: New file.
48639         * lib/unistr/u32-strtok.c: New file.
48640         * lib/unistr/u-strtok.h: New file.
48641
48642         * modules/unistr/u8-uctomb: New file.
48643         * modules/unistr/u16-uctomb: New file.
48644         * modules/unistr/u32-uctomb: New file.
48645         * lib/unistr/u8-uctomb.c: New file.
48646         * lib/unistr/u16-uctomb.c: New file.
48647         * lib/unistr/u32-uctomb.c: New file.
48648
48649         * MODULES.html.sh (Unicode string functions): Add the new modules.
48650
48651 2007-01-08  Bruno Haible  <bruno@clisp.org>
48652
48653         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
48654         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
48655         subdirectories.
48656
48657 2007-01-08  Karl Berry  <karl@gnu.org>
48658
48659         * doc/error.texi: mention that main() fns must set program_name
48660         when progname is used.
48661
48662 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
48663
48664         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
48665         WCTYPE_H is empty, for the benefit of builds from non-distclean
48666         directories.  Problem reported by Eric Blake in
48667         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
48668
48669 2007-01-08  Bruno Haible  <bruno@clisp.org>
48670
48671         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
48672         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
48673         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
48674         PROVIDE_CANONICALIZE_FILENAME_MODE.
48675         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
48676
48677 2007-01-08  Bruno Haible  <bruno@clisp.org>
48678
48679         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
48680         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
48681         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
48682         * lib/fts.c: Likewise.
48683         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
48684
48685 2006-12-25  Bruno Haible  <bruno@clisp.org>
48686
48687         * modules/utf8-ucs4-safe: New file.
48688         * lib/utf8-ucs4-safe.h: New file.
48689         * lib/unistr/utf8-ucs4-safe.c: New file.
48690
48691         * modules/utf16-ucs4-safe: New file.
48692         * lib/utf16-ucs4-safe.h: New file.
48693         * lib/unistr/utf16-ucs4-safe.c: New file.
48694
48695         * MODULES.html.sh (Unicode string functions): Add the new modules.
48696
48697 2007-01-08  Bruno Haible  <bruno@clisp.org>
48698
48699         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
48700         (Depends-on): Add unitypes.
48701         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48702         (u8_mbtouc_aux): Move out to separate file.
48703         (u8_mbtouc): Use ucs4_t, uint8_t types.
48704         * lib/unistr/utf8-ucs4.c: New file.
48705
48706         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
48707         (Depends-on): Add unitypes.
48708         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48709         (u16_mbtouc_aux): Move out to separate file.
48710         (u16_mbtouc): Use ucs4_t, uint16_t types.
48711         * lib/unistr/utf16-ucs4.c: New file.
48712
48713         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
48714         (Depends-on): Add unitypes.
48715         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
48716         (u8_uctomb_aux): Move out to separate file.
48717         (u8_uctomb): Use ucs4_t, uint8_t types.
48718         * lib/unistr/ucs4-utf8.c: New file.
48719
48720         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
48721         (Depends-on): Add unitypes.
48722         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
48723         (u16_uctomb_aux): Move out to separate file.
48724         (u16_uctomb): Use ucs4_t, uint16_t types.
48725         * lib/unistr/ucs4-utf16.c: New file.
48726
48727 2006-12-25  Bruno Haible  <bruno@clisp.org>
48728
48729         * modules/unitypes: New file.
48730         * lib/unitypes.h: New file.
48731         * MODULES.html.sh (func_all_modules): New section "Unicode string
48732         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
48733         this section. Add unitypes.
48734
48735 2007-01-08  Bruno Haible  <bruno@clisp.org>
48736
48737         Avoid variable names that conflict with those from libtool.
48738         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
48739         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
48740         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
48741         library_names_spec to acl_library_names_spec, hardcode_* to
48742         acl_hardcode_*.
48743         Reported by Ralf Wildenhues.
48744
48745 2007-01-08  Bruno Haible  <bruno@clisp.org>
48746
48747         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
48748         definition.
48749         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
48750         definition.
48751         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
48752         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
48753         definition.
48754         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
48755         definition.
48756         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
48757         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
48758         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
48759         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
48760         definition.
48761         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
48762         definition.
48763         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
48764         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
48765         GC_USE_<algorithm>.
48766         * lib/gc-libgcrypt.c: Likewise.
48767         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
48768         * modules/gc-arctwo (configure.ac): Likewise.
48769         * modules/gc-des (configure.ac): Likewise.
48770         * modules/gc-hmac-md5 (configure.ac): Likewise.
48771         * modules/gc-hmac-sha1 (configure.ac): Likewise.
48772         * modules/gc-md2 (configure.ac): Likewise.
48773         * modules/gc-md4 (configure.ac): Likewise.
48774         * modules/gc-md5 (configure.ac): Likewise.
48775         * modules/gc-random (configure.ac): Likewise.
48776         * modules/gc-rijndael (configure.ac): Likewise.
48777         * modules/gc-sha1 (configure.ac): Likewise.
48778
48779 2007-01-08  Bruno Haible  <bruno@clisp.org>
48780
48781         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
48782         macro definition.
48783         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
48784         definition.
48785         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
48786         definition.
48787         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
48788         * modules/fcntl-safer (configure.ac): Likewise.
48789         * modules/fopen-safer (configure.ac): Likewise.
48790         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
48791         GNULIB_FWRITEERROR macro definition.
48792
48793 2007-01-08  Bruno Haible  <bruno@clisp.org>
48794
48795         * m4/gnulib-common.m4: New file.
48796         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
48797         (func_get_filelist): Add m4/gnulib-common.m4.
48798
48799 2007-01-08  Bruno Haible  <bruno@clisp.org>
48800
48801         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
48802         command.
48803
48804 2007-01-08  Jim Meyering  <jim@meyering.net>
48805
48806         Use a more robust test for a "can't happen" condition.
48807         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
48808         narrowed the st_size value.  Presuming the "can't happen" condition
48809         is true, that narrowing could conceivably convert an invalid st_size
48810         value into a valid one.  Instead, use a change based on Matthew
48811         Woehlke's original patch.
48812
48813         Slight readability improvement: use an assert-like macro
48814         in place of literal "abort ()" uses.
48815         * lib/fts.c (fts_assert): Define.
48816         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
48817         Use this macro instead of a bare 'abort'.
48818
48819 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
48820
48821         Don't worry about using IRIX 5.3's wctype.h broken definitions;
48822         simply work around them.
48823         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
48824         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
48825         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
48826         declaring.
48827         Don't bother to define as macros, since the standard doesn't require it.
48828         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
48829         longer worry about IRIX 5.3.
48830         (HAVE_WCTYPE_CTMP_BUG): Remove.
48831
48832 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48833
48834         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
48835         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
48836         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48837         Problems reported by Georg Schwarz for IRIX 5.3.
48838
48839         * gnulib-tool (autoconf_minversion): Take the maximum version number
48840         found, not the minimum.  Problem reported by James Youngman.
48841
48842 2007-01-03  Karl Berry  <karl@gnu.org>
48843
48844         * doc/error.texi: new file, explaining interaction with progname.
48845         * doc/gnulib.texi: include it.  Update copyright.
48846
48847 2007-01-03  Simon Josefsson  <simon@josefsson.org>
48848
48849         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
48850         AC_CANONICAL_HOST, to improve autobuild outputs.
48851
48852 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
48853             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48854
48855         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
48856         sockets, server sockets, and other file descriptors.  Count errors
48857         to compute the return value.  Reorder the code a bit to be easier
48858         to follow.  Don't set event bits that were not requested (except
48859         POLLERR and POLLHUP).
48860
48861 2007-01-01  Bruno Haible  <bruno@clisp.org>
48862
48863         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
48864
48865 2007-01-03  Jim Meyering  <jim@meyering.net>
48866
48867         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
48868
48869 2007-01-02  Bruno Haible  <bruno@clisp.org>
48870
48871         * modules/settime (Include): Require timespec.h.
48872         * modules/nanosleep (Include): Likewise.
48873
48874 2007-01-01  Bruno Haible  <bruno@clisp.org>
48875
48876         * gnulib-tool (func_emit_copyright_notice): Bump year.
48877         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
48878
48879 2007-01-01  Bruno Haible  <bruno@clisp.org>
48880
48881         Improve support for OpenBSD.
48882         * build-aux/config.rpath (libname_spec): Export.
48883         (library_names_spec): New variable. Export.
48884         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
48885         library_names_spec from the config.rpath output. Locate shared library
48886         through the name pattern in library_names_spec.
48887
48888 2007-01-01  Eric Blake  <ebb9@byu.net>
48889
48890         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
48891
48892 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
48893
48894         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
48895         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
48896         assume the C locale, and avoid an "eval" that could cause trouble.
48897         Problem with SORT reported by Bob Proulx.
48898
48899         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
48900         Define.  Trivial patch from Henning Nielsen Lund, originally
48901         sent to bug-grep@gnu.org today.
48902
48903 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48904
48905         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
48906         struct stat.  Problem reported by Henning Nielsen Lund.
48907         * lib/acl.c: Include acl.h first, to check interface.  Don't
48908         bother to include sys/types.h and sys/stat.h again.
48909
48910 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
48911
48912         Import the following change from libc; problem reported by
48913         Sven Verdoolaege.
48914
48915         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
48916
48917         [BZ #1373]
48918         * lib/argp.h: Remove __NTH for __argp_usage inline function.
48919
48920 2006-12-28  Jim Meyering  <jim@meyering.net>
48921
48922         * build-aux/announce-gen: Do not assume that the package
48923         builds any of tar.gz, tar.bz2, and .xdelta files.
48924         Suggestion from Simon Josefsson.
48925
48926 2006-12-28  Simon Josefsson  <simon@josefsson.org>
48927
48928         * modules/announce-gen: New file.
48929
48930 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
48931
48932         * lib/mbchar.h: Just include <wctype.h>; the wctype module
48933         handles its gotchas now.
48934         * lib/mbswidth.c: Likewise.
48935         * lib/wcwidth.h: Likewise.
48936         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
48937         and iswcntrl; the wctype module does this stuff now.
48938         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48939         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48940         * modules/mbchar (Depends-on): Add wctype.
48941         * modules/mbswidth (Depends-on): Likewise.
48942         * modules/wcwidth (Depends-on): Likewise.
48943
48944 2006-12-27  Eric Blake  <ebb9@byu.net>
48945
48946         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
48947         module uses more than what <wctype.h> is required to provide.
48948
48949 2006-12-26  Eric Blake  <ebb9@byu.net>
48950
48951         * gnulib-tool (sed_extract_prog): Avoid space-tab.
48952
48953 2006-12-26  Eric Blake  <ebb9@byu.net>
48954
48955         * modules/absolute-header: New module.
48956         * modules/fcntl (Depends-on): Depend on it.
48957         * modules/inttypes (Depends-on): Likewise.
48958         * modules/stdint (Depends-on): Likewise.
48959         * modules/sys_stat (Depends-on): Likewise.
48960         * modules/wctype (Depends-on): Likewise.
48961         * MODULES.html.sh (Support for building libraries and
48962         executables): Document it.
48963
48964 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48965
48966         * gnulib-tool (SED): Remove, undoing previous change.
48967         The problem was that it broke coreutils on Solaris, because
48968         "sed --posix" leaked into a makefile.
48969         (sed): New alias, if 'alias' and GNU sed.
48970
48971 2006-12-24  Jim Meyering  <jim@meyering.net>
48972
48973         Work around an fchownat bug in glibc-2.4:
48974         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
48975         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
48976         in spite of the -P option.
48977         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
48978         New macros.
48979         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
48980         * modules/openat (Files): Add lib/fchownat.c.
48981         * lib/openat.c (fchownat): Don't define here.  Move to...
48982         * lib/fchownat.c: ...this new file.
48983
48984 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
48985
48986         Fix bug reported by Bruno Haible in
48987         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
48988         where quotearg.c didn't compile on Mac OS X 10.2 because it
48989         lacks <wchar.h> and wint_t.
48990         * lib/wctype_.h (__wctype_wint_t): New type.
48991         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
48992         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
48993         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
48994         Arg is now of type __wctype_wint_t, not wint_t.
48995         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
48996         substitute HAVE_WINT_T.
48997         * modules/wctype (Files): Add m4/wint_t.m4.
48998         (wctype.h): Substitute HAVE_WINT_T.
48999
49000 2006-12-23  Bruno Haible  <bruno@clisp.org>
49001
49002         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
49003
49004 2006-12-23  Bruno Haible  <bruno@clisp.org>
49005
49006         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
49007         S_ISLNK.
49008         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
49009         mingw.
49010
49011 2006-12-22  Bruno Haible  <bruno@clisp.org>
49012
49013         * lib/copy-file.c: Include acl.h.
49014         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
49015         Close the file descriptors only after being done with copy_acl.
49016         * modules/copy-file (Depends-on): Add acl.
49017
49018 2006-12-22  Bruno Haible  <bruno@clisp.org>
49019
49020         * gnulib-tool (SED): New variable.
49021         Use $SED instead of sed everywhere.
49022
49023 2006-12-22  Bruno Haible  <bruno@clisp.org>
49024
49025         * modules/no-c++: New file.
49026         * m4/no-c++.m4: New file.
49027         * MODULES.html.sh (Support for building libraries and executables):
49028         Add no-c++.
49029
49030 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
49031
49032         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
49033         Include <limits.h>, and use its INT_MAX to rewrite the
49034         j loop so that it does not overflow 'int'.  Problem reported by
49035         Ralf Wildenhues in
49036         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
49037         Play it safe by shifting left by 1 rather than multiplying by 2,
49038         as GCC is less likely to optimize this away when the value
49039         is signed (when it assumes overflow leads to undefined behavior).
49040         Also, don't assume time_t uses two's complement.
49041
49042 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
49043
49044         * MODULES.html.sh: New module wctype.
49045         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
49046         * lib/fnmatch.c: Don't bother to include <wchar.h> before
49047         <wctype.h>, since the new wctype module should fix this.
49048         * lib/quotearg.c: Include <wctype.h> unconditionally, since
49049         the wctype module should arrange for it.
49050         * lib/regex_internal.h: Likewise.
49051         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
49052         since the wctype module should handle this now.
49053         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
49054         * modules/fnmatch (Depends-on): Add wctype.
49055         * modules/quotearg (Depends-on): Likewise.
49056         * modules/regex (Depends-on): Likewise.
49057
49058 2006-12-19  Bruno Haible  <bruno@clisp.org>
49059
49060         * lib/strdup.h [C++]: Wrap definitions in extern "C".
49061         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
49062
49063 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49064
49065         * modules/savewd (Depends-on): Fix dependency on fcntl.
49066
49067 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49068
49069         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
49070         conforms to C99, rather than relying on the user's environment
49071         setting of STDINT_H.
49072
49073 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49074         and Eric Blake  <ebb9@byu.net>
49075
49076         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
49077         This is more consistent with the other defines here.
49078         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
49079         Port to z/OS.  Problem reported by Paul Gilmartin.
49080         Change local vars to use gl_ prefix rather than ac_.
49081         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
49082         with other defines.
49083         * modules/double-slash-root: New module.
49084         * modules/dirname (Files): Remove m4/double-slash-root.m4.
49085         (Depends-on): Add double-slash-root.
49086         * MODULES.html.sh (File system functions): Mention new module.
49087
49088 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
49089
49090         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
49091         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
49092         This is for the benefit of gzip, which doesn't do i18n.
49093
49094 2006-12-12  Jim Meyering  <jim@meyering.net>
49095
49096         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
49097         Reported by Andreas Schwab <schwab@suse.de>.
49098
49099 2006-12-12  Bruno Haible  <bruno@clisp.org>
49100
49101         Merge these changes.
49102         2006-09-05  Bruno Haible  <bruno@clisp.org>
49103         * lib/iconvme.c (iconv_string): No need to save and restore errno when
49104         iconv_alloc succeeded.
49105         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
49106         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
49107         test for " && dest " at the end - dest is always != NULL there. Call
49108         iconv with 4xNULL arguments initially, to reset the state. Call iconv
49109         with 2xNULL arguments, also to flush the state storage. Handle the
49110         IRIX iconv behaviour. Realloc the final result, to throw away unused
49111         memory.
49112
49113 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
49114
49115         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
49116         and fchmodat unconditionally, since glibc 2.4 has them.
49117         Problem reported by Arkadiusz Miskiewicz.
49118
49119 2006-12-10  Bruno Haible  <bruno@clisp.org>
49120
49121         * gnulib-tool (func_import): Show the include files only for those
49122         modules that are copied and specified.
49123         Reported by Karl Berry.
49124
49125 2006-12-08  Jim Meyering  <jim@meyering.net>
49126
49127         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
49128         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
49129
49130         * build-aux/announce-gen: Add two new options, both optional:
49131         --bootstrap-tools=TOOL_LIST
49132               a comma-separated list of tools, e.g.,
49133               autoconf,automake,bison,gnulib
49134         --gnulib-snapshot-date=DATE
49135               if gnulib is in the bootstrap tool list,
49136               then report this as the snapshot date.
49137               If not specified, use the current date/time.
49138               If you specify a date here, be sure it's UTC.
49139
49140 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49141
49142         * tests/test-argp-2.sh: Fix test to match actual output.
49143         (func_compare): Fix sed script to be portable.
49144
49145 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
49146
49147         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
49148         workaround for this case.  It is not autoconfigured now; offhand
49149         it's hard to see how to autoconfigure it.
49150
49151 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49152
49153         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
49154         a directory that is about to be chowned.  Such a directory's
49155         initial file permissions should permit the owner only and this
49156         should not be changed until after the chown, since the group and
49157         other bits would be incorrect if they granted permission before
49158         the chown.
49159
49160         Fix porting problem for iswctype reported by Georg Schwarz in:
49161         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
49162         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
49163         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
49164         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
49165         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49166
49167 2006-12-03  Jim Meyering  <jim@meyering.net>
49168
49169         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
49170         p->fts_statp may not yet be defined.
49171         (fts_read): Instead, set it in the caller, once p->fts_statp is
49172         sure to be defined, and corresponds to a top-level directory.
49173         This bug made du -x fail.  Here's the coreutils test case:
49174         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
49175         Reported by Mike Frysinger.
49176
49177 2006-12-01  Jim Meyering  <jim@meyering.net>
49178
49179         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
49180         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
49181         Reported by Simon Josefsson.
49182
49183 2006-11-30  Jim Meyering  <jim@meyering.net>
49184
49185         * m4/warning.m4: Use the all-permissive copyright notice
49186         recommended by RMS (rather than LGPL).
49187         * m4/vararrays.m4: Likewise.
49188         * m4/flexmember.m4: Likewise.
49189
49190 2006-11-29  Bruno Haible  <bruno@clisp.org>
49191
49192         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
49193         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
49194         using +=.
49195         Reported by Simon Josefsson <simon@josefsson.org>.
49196
49197 2006-11-28  James Youngman <jay@gnu.org>
49198
49199         * README: Advise users that they might find the bug-gnulib@gnu.org
49200         and autotools-announce@gnu.org mailing lists useful.
49201
49202 2006-11-28  Bruno Haible  <bruno@clisp.org>
49203
49204         * m4/ptrdiff_max.m4: Remove file.
49205
49206 2006-11-21  Bruno Haible  <bruno@clisp.org>
49207
49208         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
49209         _AC_COMPUTE_INT.
49210         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
49211         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
49212         _AC_COMPUTE_INT.
49213         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
49214         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
49215         _AC_COMPUTE_INT.
49216         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
49217
49218 2006-11-28  Jim Meyering  <jim@meyering.net>
49219
49220         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
49221         warning from "gcc -Wshadow" about shadowing the builtin.
49222
49223 2006-11-27  Bruno Haible  <bruno@clisp.org>
49224
49225         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
49226         _AC_COMPUTE_INT.
49227         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
49228
49229 2006-11-27  Bruno Haible  <bruno@clisp.org>
49230             Paul Eggert  <eggert@cs.ucla.edu>
49231
49232         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
49233
49234 2006-11-26  Bruno Haible  <bruno@clisp.org>
49235
49236         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
49237         noinst_LTLIBRARIES.
49238
49239 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
49240             Bruno Haible  <bruno@clisp.org>
49241
49242         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
49243         if compiling with "gcc -ansi".
49244
49245 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
49246
49247         Fix some incompatibilities with gcc -ansi -pedantic.
49248         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
49249         if compiling pedantically with GCC, unless it's C99 or later.
49250         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
49251         it mishandles gcc -ansi -pedantic as well.
49252         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
49253         if gcc -pedantic.
49254         * lib/regexec.c (check_node_accept_bytes): Don't use auto
49255         initializers for struct if -pedantic, unless it's C99 or later.
49256
49257 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
49258
49259         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
49260         Don't close an fd more than once. Identical atimes indicate
49261         success, not failure.
49262
49263 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
49264
49265         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
49266
49267 2006-11-23  Jim Meyering  <jim@meyering.net>
49268
49269         * build-aux/announce-gen: New file.  From coreutils.
49270
49271 2006-11-22  Jim Meyering  <jim@meyering.net>
49272
49273         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
49274         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
49275         (fts_read): Use a temporary to narrow the overused st_size member
49276         before using it in a switch statement.  Reported by Matthew Woehlke.
49277
49278         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
49279         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
49280
49281 2006-11-20  Bruno Haible  <bruno@clisp.org>
49282
49283         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
49284         changequote instead of pairs of brackets.
49285         Reported by Andreas Schwab <schwab@suse.de>.
49286
49287 2006-11-21  Jim Meyering  <jim@meyering.net>
49288
49289         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
49290         so as to remain compatible with older compilers.
49291         Patch from Michael Deutschmann.
49292
49293 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
49294
49295         * MODULES.html.sh (File system functions): Add openat.
49296
49297         * lib/openat.h (rpl_fstatat): New macro, if
49298         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
49299         (fstatat): Define to rpl_fstatat under the same conditions,
49300         unless COMPILING_FSTATAT.
49301         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
49302         seems to have the bug.
49303         * lib/fstatat.c: New file.
49304         * modules/openat (Files): Add it.
49305
49306 2006-11-20  Bruno Haible  <bruno@clisp.org>
49307
49308         * Makefile: New file.
49309
49310 2006-11-20  Jim Meyering  <jim@meyering.net>
49311
49312         The beginnings of syntax-related checks for gnulib.
49313         * lib/Makefile: New file.
49314         * lib/t-idcache: New script.  Ensure that the two halves of
49315         idcache.c stay in sync.
49316
49317         * lib/idcache.c: Adjust comments in user- and group- portions to
49318         be more accurate, and to be consistent with one another.
49319
49320 2006-11-20  Jim Meyering  <jim@meyering.net>
49321
49322         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
49323         continue using the flexible array member (thus, this module performs
49324         half as many malloc calls), with the addition that...
49325         (getgroup, getuser): Consistently record a non-match via an empty
49326         "name" string, and map an empty string match to a NULL return value.
49327         * modules/idcache (Depends-on): Re-add flexmember.
49328
49329         * lib/idcache.c (getuser): Remove all uses of the register keyword.
49330         (getuidbyname, getgroup, getgidbyname): Likewise.
49331
49332         Use cleaner syntax: NULL rather than 0.
49333         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
49334
49335 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
49336
49337         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
49338         It mishandled the case where the group was missing.
49339         Problem reported by Greg Schafer.
49340         * modules/idcache: Likewise.
49341
49342 2006-11-18  Jim Meyering  <jim@meyering.net>
49343
49344         * check-module (%exempt_header): Add exception for some
49345         conditionally-included headers.
49346
49347         * modules/i-ring (Depends-on): Add verify.
49348         (License): Change to LGPL.
49349
49350 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49351
49352         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
49353         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
49354         and inttostr.h.  Use snprintf rather than uinttostr, so that
49355         LGPLed code doesn't depend on GPLed.
49356
49357 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
49358
49359         * modules/inline (License): Change from GPL to LGPL.
49360
49361 2006-11-17  Jim Meyering  <jim@meyering.net>
49362
49363         * modules/d-type (License): Switch to LGPL.
49364
49365 2006-11-15  Bruno Haible  <bruno@clisp.org>
49366
49367         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
49368
49369 2006-11-15  Eric Blake  <ebb9@byu.net>
49370
49371         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
49372         the module dependency.
49373
49374 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49375             Bruno Haible  <bruno@clisp.org>
49376
49377         * gnulib-tool (func_create_testdir): Add license consistency check.
49378
49379 2006-11-15  Eric Blake  <ebb9@byu.net>
49380
49381         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
49382         random "(cached)" in configure output.
49383
49384 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49385
49386         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
49387         test for conforming inttypes.h is both announced and cached.
49388
49389         * MODULES.html.sh (seen_modules, seen_files): New variables.
49390         (func_module): Rewrite to use a few less gnulib-tool and sed
49391         invocations.  Avoid a couple of quadratic algorithms for ...
49392         (missed_modules, missed_files): ... these, with ...
49393         (func_append, func_tmpdir): ... these new functions, from
49394         gnulib-tool.  Analogously, install traps for cleanup.
49395
49396         * tests/test-gc.c (main): Remove unused variables.
49397         * tests/test-read-file.c: Include stdlib.h, for 'free'.
49398
49399 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
49400
49401         * modules/inttostr (License): Change to LGPL.
49402
49403 2006-11-14  Eric Blake  <ebb9@byu.net>
49404
49405         * modules/tempname (License): Change to LGPL.
49406
49407 2006-11-14  Eric Blake  <ebb9@byu.net>
49408
49409         * doc/functions.texi (Function Portability): *printf functions on
49410         Cygwin now understand all POSIX size specifiers.
49411
49412 2006-11-14  Bruno Haible  <bruno@clisp.org>
49413
49414         * modules/c-ctype (License): Change to LGPL.
49415
49416 2006-11-12  Bruno Haible  <bruno@clisp.org>
49417
49418         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49419         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
49420         for GNOME libraries, for which the include files are installed in
49421         subdirectories of $prefix/include.
49422
49423 2006-11-12  Bruno Haible  <bruno@clisp.org>
49424
49425         * m4/lib-link.m4: Require at least autoconf-2.54.
49426         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
49427         name to underscores for the --with option.
49428
49429 2006-11-13  Bruno Haible  <bruno@clisp.org>
49430
49431         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
49432         the tests directory.
49433         Reported by Ralf Wildenhues.
49434
49435 2006-11-13  Bruno Haible  <bruno@clisp.org>
49436
49437         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
49438         (func_emit_initmacro_end): Undo the override here.
49439         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
49440         Works around the famous automake error in coreutils.
49441
49442 2006-11-13  Eric Blake  <ebb9@byu.net>
49443
49444         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
49445         element, not its node.
49446
49447 2006-11-12  Bruno Haible  <bruno@clisp.org>
49448
49449         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
49450         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
49451
49452 2006-11-12  Bruno Haible  <bruno@clisp.org>
49453
49454         * gnulib-tool: New option --local-symlink.
49455         (func_usage): Document it.
49456         (lsymbolic): New variable.
49457         (func_import, func_create_testdir): If --symlink was not specified,
49458         test whether --local-symlink was specified and the file comes from
49459         the local_gnulib_dir.
49460
49461 2006-11-12  Bruno Haible  <bruno@clisp.org>
49462
49463         * gnulib-tool (func_ln): New function.
49464         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
49465
49466 2006-11-12  Bruno Haible  <bruno@clisp.org>
49467
49468         Finish support for source files in subdirectories.
49469         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
49470         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
49471         AUTOMAKE_OPTIONS.
49472         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
49473
49474 2006-11-12  Bruno Haible  <bruno@clisp.org>
49475
49476         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49477         EXTRA_lib_SOURCES augmentation.
49478         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
49479
49480 2006-11-12  Jim Meyering  <jim@meyering.net>
49481
49482         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
49483         file descriptors.  This also averts a failure on systems with
49484         native openat support when a traversed directory lacks "x" access.
49485         * lib/fts_.h: Include "i-ring.h"
49486         (struct FTS) [fts_fd_ring]: New member.
49487         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
49488         (FCHDIR): Add parentheses.
49489         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
49490         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
49491         When descending, rather than simply closing the previous
49492         fts_cwd_fd value, push that file descriptor onto the ring.
49493         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
49494         (fts_open): Initialize the new fd_ring member.
49495         (fts_close): Clear the ring.
49496         (fts_safe_changedir): When possible, use our new fd_ring to skip
49497         the diropen and fstat and dev/ino comparison that would normally
49498         accompany a virtual `chdir ("..")'.
49499
49500         * modules/fts (Depends-on): Add i-ring.
49501         * modules/i-ring: New module.
49502         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
49503         * m4/i-ring.m4: New file.
49504
49505 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49506
49507         * gnulib-tool (func_create_testdir): Fix replacement of
49508         `build-aux' in configure.ac.  Run autotools in gltests
49509         subdirectory.
49510         (func_create_testdir, func_create_megatestdir, test): There is
49511         no need for '--force' in most autotool invocations in a new
49512         tree.  Actually fail the whole test if any of the tools, or the
49513         configure or make stages fail.
49514
49515         Sync from Automake.
49516         * build-aux/gnupload: Revert last change.  Add pointer to upload
49517         instructions of the GNU Maintenance Instructions.
49518         Suggestion by Karl Berry.
49519
49520 2006-11-10  Jim Meyering  <jim@meyering.net>
49521
49522         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
49523
49524 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
49525
49526         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
49527         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
49528         (bind_textdomain_codeset) [! ENABLE_NLS]:
49529         Evaluate all the arguments.  That way, callers get compatible behavior
49530         if the arguments have side effects.  Also, it avoids some GCC
49531         diagnostics in some cases; Joel E. Denny reported problems when Bison
49532         was configured with --enable-gcc-warnigs.
49533
49534 2006-11-10  Jim Meyering  <jim@meyering.net>
49535
49536         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
49537         relevant options in CFLAGS (like -O, -fno-inline) are taken into
49538         account.
49539
49540 2006-11-10  Jim Meyering  <jim@meyering.net>
49541
49542         * modules/inline: New file/module.
49543         * modules/xalloc (Files): Remove m4/inline.m4.
49544         (Depends-on): Add inline, instead.
49545         * modules/oset: Likewise.
49546         * modules/list: Likewise.
49547
49548 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
49549
49550         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
49551         Problem reported by Matthew Woehlke.
49552
49553 2006-11-09  Bruno Haible  <bruno@clisp.org>
49554
49555         * lib/tempname.c (gen_tempname): Remove variant that invokes
49556         __gen_tempname.
49557         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
49558         __gen_tempname.
49559
49560 2006-11-08  Bruno Haible  <bruno@clisp.org>
49561
49562         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
49563         to 'yes' instead of 'cross-compiling'.
49564
49565 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
49566
49567         * lib/quotearg.h (quotearg_free): New decl.
49568         * lib/quotearg.c (quotearg_free): New function.
49569         (slot0, nslots, slotvec0, slotvec):
49570         Now file-scope so that quotearg_free can get at them.
49571
49572 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49573
49574         Sync from Automake.
49575         * build-aux/gnupload: Add missing 'gnu' to example URL.
49576         Report by Karl Berry.
49577
49578 2006-11-08  Bruno Haible  <bruno@clisp.org>
49579
49580         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
49581         Suggested by Paul Eggert.
49582
49583 2006-11-08  Jim Meyering  <jim@meyering.net>
49584
49585         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
49586         It's already included if !_LIBC.
49587         (fts_safe_changedir): Add a comment.
49588
49589 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49590
49591         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
49592         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
49593         Matthew Woehlke.
49594
49595         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
49596         definitions up, to avoid colliding with change below.
49597         (static_inline) [HAVE_INLINE]: New macro.
49598         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
49599         Provide extern decls when !HAVE_INLINE.  Do not define unless
49600         static_inline is defined, either by us or by xmalloc.c.  Use
49601         static_inline rather than static inline.
49602         (XCALLOC): Optimize sizeof(T) = 1 case.
49603         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
49604
49605 2006-11-07  Bruno Haible  <bruno@clisp.org>
49606
49607         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
49608         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
49609         AC_C_INLINE.
49610         * modules/xalloc (Files): Add m4/inline.m4.
49611
49612 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49613
49614         * README: Fix typo.
49615         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
49616         (Miscellanous Notes): ...from this.
49617
49618 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49619
49620         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
49621         Mention that offsetof should be used instead of sizeof.
49622         From Bruno Haible.
49623
49624 2006-11-07  Bruno Haible  <bruno@clisp.org>
49625
49626         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
49627
49628 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49629
49630         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49631         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
49632         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49633         (gl_tree_add_before, gl_tree_add_after):
49634         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
49635         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
49636         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49637         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
49638         (gl_linked_add_after, gl_linked_add_at): Likewise.
49639         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
49640         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49641         (gl_tree_add_before, gl_tree_add_after): Likewise.
49642         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
49643         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
49644         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
49645
49646 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49647
49648         * lib/gl_oset.h: Use C comment style, not C++ comment style.
49649
49650 2006-11-06  Bruno Haible  <bruno@clisp.org>
49651
49652         * m4/inline.m4: New file.
49653         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
49654         * modules/list (Files): Add m4/inline.m4.
49655         * modules/oset (Files): Likewise.
49656
49657 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49658
49659         * lib/idcache.c: Include <stddef.h>, for offsetof.
49660         (struct userid.name): Change from char * to a flexible array member.
49661         All uses changed.
49662         * modules/idcache (Depends-on): Add flexmember.
49663
49664         * MODULES.html.sh (Core language properties): New module flexmember.
49665         * modules/flexmember, m4/flexmember.m4: New files.
49666
49667         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
49668         inline functions that are identical with the old xnmalloc_inline,
49669         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
49670         that we can avoid some unnecessary integer multiplications and
49671         divisions in the common case where the element size is known at
49672         compile time.
49673         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
49674         needed.
49675         (xnboundedmalloc): Remove.
49676         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
49677         arguments, for consistency with rest of this header.
49678         (xcharalloc): Rewrite using XNMALLOC.
49679         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
49680         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
49681         versions have been moved to lib/xalloc.h and renamed to be the
49682         non-*_inline versions.
49683         (xmalloc, xrealloc): Implement without reference to the xnmalloc
49684         and xnrealloc functions, since those functions are now inline and
49685         now call us.
49686         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
49687         renaming described above.
49688         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
49689         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
49690         captures the dependency in AC_C_INLINE.
49691
49692         New module canonicalize-lgpl, proposed by Charles Wilson in
49693         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
49694         with a few small changes afterwards.
49695         * MODULES.html.sh (File system functions): New module
49696         canonicalize-lgpl.
49697         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
49698         and canonicalize_file_name.
49699         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
49700         * modules/canonicalize-lgpl: New files.
49701
49702 2006-11-05  Bruno Haible  <bruno@clisp.org>
49703
49704         * gnulib-tool (func_import, func_create_testdir): Create directories
49705         also for files in subdirectories of lib/.
49706
49707 2006-11-05  Bruno Haible  <bruno@clisp.org>
49708
49709         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
49710         ANSI C compliant.
49711
49712 2006-11-03  Bruno Haible  <bruno@clisp.org>
49713
49714         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49715         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
49716         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
49717         (xnboundedmalloc): New inline function.
49718         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
49719         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
49720         xmalloc.
49721         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
49722         xmalloc.
49723         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
49724         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
49725         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
49726         xmalloc.
49727         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49728         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
49729         xmalloc.
49730         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
49731         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49732         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
49733         xmalloc.
49734         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49735         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
49736         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49737         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
49738         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
49739         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
49740         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
49741
49742 2006-11-03  Bruno Haible  <bruno@clisp.org>
49743
49744         * lib/c-ctype.h [C++]: Define functions without name mangling.
49745         * lib/fwriteerror.h [C++]: Likewise.
49746         * lib/gcd.h [C++]: Likewise.
49747         * lib/linebreak.h [C++]: Likewise.
49748
49749 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
49750
49751         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
49752         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
49753         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
49754         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49755         Check for functions and headers just once.
49756         Check for declaration of canonicalize_file_name.
49757         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
49758
49759 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49760
49761         * gnulib-tool (func_import): Fix typo in actioncmd.
49762
49763 2006-11-02  Bruno Haible  <bruno@clisp.org>
49764
49765         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
49766         newline sequence in the Makefile.am snippet as a space, like "make"
49767         does.
49768         Reported by Roger Persson <perrog@gmail.com>.
49769
49770 2006-11-01  Bruno Haible  <bruno@clisp.org>
49771
49772         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
49773         already declared in <string.h>.
49774         * lib/strcase.h (strncasecmp): Don't declare it if yes.
49775
49776 2006-11-01  Bruno Haible  <bruno@clisp.org>
49777
49778         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
49779         * lib/strcase.h: Include <string.h>.
49780         (strcasecmp): Define to rpl_strcasecmp here.
49781
49782 2006-11-01  Bruno Haible  <bruno@clisp.org>
49783
49784         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
49785
49786 2006-11-01  Eric Blake  <ebb9@byu.net>
49787
49788         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
49789
49790         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
49791
49792 2006-10-29  Bruno Haible  <bruno@clisp.org>
49793
49794         Make it compile in C++ mode.
49795         * lib/full-write.c (full_rw): Add a cast.
49796
49797 2006-11-01  Bruno Haible  <bruno@clisp.org>
49798
49799         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
49800         be POSIX compliant.
49801         Reported by Roger Persson <perrog@gmail.com>.
49802
49803 2006-11-01  Eric Blake  <ebb9@byu.net>
49804
49805         * lib/getopt_.h: Fix comments.
49806
49807 2006-10-31  Eric Blake  <ebb9@byu.net>
49808
49809         * modules/tmpdir (Depends-on): Add sys_stat.
49810         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
49811         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
49812         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
49813         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
49814         tempname.
49815
49816 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
49817
49818         Avoid some C++ diagnostics reported by Bruno Haible.
49819         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
49820         xmalloc.
49821         (quotearg_alloc): Use xcharalloc rather than xmalloc.
49822         (struct slotvec): Move to top level.
49823         (quotearg_n_options): Rewrite to avoid xmalloc.
49824         * lib/xalloc.h (xcharalloc): New function.
49825         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
49826         [defined __cplusplus]: Add function template that provides result
49827         type propagation.  This part of the change is from Bruno Haible.
49828
49829 2006-10-29  Bruno Haible  <bruno@clisp.org>
49830
49831         Make it compile in C++ mode.
49832         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
49833         * lib/strnlen1.c (strnlen1): Cast memchr result.
49834         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
49835         * lib/clean-temp.c (string_equals, string_hash): Add casts.
49836         (create_temp_dir): Rename local variable 'template'.
49837         (compile_csharp_using_sscli): Add cast.
49838         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
49839         * lib/findprog.c (find_in_path): Likewise.
49840         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
49841         * lib/wait-process.c (register_slave_subprocess): Likewise.
49842
49843 2006-10-22  Bruno Haible  <bruno@clisp.org>
49844
49845         * modules/tsearch: New file.
49846         * lib/tsearch.h: New file.
49847         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
49848         * m4/tsearch.m4: New file.
49849         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
49850
49851 2006-10-29  Eric Blake  <ebb9@byu.net>
49852
49853         * lib/arcfour.c: Assume config.h.
49854         * lib/arctwo.c: Likewise.
49855         * lib/base64.c: Likewise.
49856         * lib/check-version.c: Likewise.
49857         * lib/crc.c: Likewise.
49858         * lib/des.c: Likewise.
49859         * lib/gc-gnulib.c: Likewise.
49860         * lib/gc-libgcrypt.c: Likewise.
49861         * lib/gc-pbkdf2-sha1.c: Likewise.
49862         * lib/getaddrinfo.c: Likewise.
49863         * lib/getdelim.c: Likewise.
49864         * lib/getline.c: Likewise.
49865         * lib/hmac-md5.c: Likewise.
49866         * lib/hmac-sha1.c: Likewise.
49867         * lib/iconvme.c: Likewise.
49868         * lib/md2.c: Likewise.
49869         * lib/md4.c: Likewise.
49870         * lib/memxor.c: Likewise.
49871         * lib/read-file.c: Likewise.
49872         * lib/readline.c: Likewise.
49873         * lib/rijndael-alg-fst.c: Likewise.
49874         * lib/rijndael-api-fst.c: Likewise.
49875         * lib/xgetdomainname.c: Likewise.
49876
49877 2006-10-28  Eric Blake  <ebb9@byu.net>
49878
49879         * lib/xstrndup.c: Assume config.h.
49880
49881 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49882
49883         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
49884         stat-macros.h is now for our own macros, whereas stat_h is for
49885         macros in the <sys/stat.h> name space.
49886         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
49887         (STAT_MACROS_H): Remove.
49888         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
49889         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
49890         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
49891         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
49892         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
49893         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
49894         Move these macros to ...
49895         * lib/stat_.h: here.  Don't include stat-macros.h.
49896         * lib/canonicalize.c: Don't include stat-macros.h.
49897         * lib/chown.c: Likewise.
49898         * lib/euidaccess.c: Likewise.
49899         * lib/file-type.c: Likewise.
49900         * lib/filemode.c: Likewise.
49901         * lib/glob.c: Likewise.
49902         * lib/isapipe.c: Likewise.
49903         * lib/lchown.c: Likewise.
49904         * lib/lstat.c: Likewise.
49905         * lib/mkdir-p.c: Likewise.
49906         * lib/rmdir.c: Likewise.
49907         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
49908         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
49909         unless mkdir isn't declared, to speed up 'configure'.
49910         Always create sys/stat.h, since it's unlikely any real sys/stat.h
49911         would define all the S_* symbols.
49912         * modules/canonicalize (Depends-on):
49913         Depend on sys_stat, not stat-macros.
49914         * modules/chown: Likewise.
49915         * modules/euidaccess: Likewise.
49916         * modules/filemode: Likewise.
49917         * modules/file-type: Likewise.
49918         * modules/glob: Likewise.
49919         * modules/isapipe: Likewise.
49920         * modules/lchown: Likewise.
49921         * modules/lstat: Likewise.
49922         * modules/mkancesdirs: Likewise.
49923         * modules/rmdir: Likewise.
49924         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
49925         * modules/modechange: Likewise.
49926         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
49927         (configure.ac): Remove gl_STAT_MACROS.
49928         * modules/sys_stat (Depends-on): Remove stat-macros.
49929
49930 2006-10-27  Bruno Haible  <bruno@clisp.org>
49931
49932         * m4/signed.m4: Remove file.
49933         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
49934         invocation.
49935         * modules/vasnprintf (Files): Remove m4/signed.m4.
49936
49937 2006-10-27  Bruno Haible  <bruno@clisp.org>
49938
49939         Update to GNU gettext 0.16.
49940         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
49941         m4/inttypes-h.m4, m4/signed.m4.
49942         * m4/gettext.m4: Update to GNU gettext 0.16.
49943         * m4/intl.m4: New file, from GNU gettext.
49944         * m4/intldir.m4: New file, from GNU gettext.
49945         * config/srclist.txt: Update
49946
49947 2006-10-27  Eric Blake  <ebb9@byu.net>
49948
49949         * MODULES.html.sh: Document tempname.
49950         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
49951         dependencies.
49952         (Files): Move lib/tempname.c...
49953         * modules/tempname: ...to this new module.
49954         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
49955         (gl_PREREQ_TEMPNAME): Move...
49956         * m4/tempname.m4: ...to this new file.
49957         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
49958         * modules/sys_stat (Depends-on): Add stat-macros.
49959         * lib/stat_.h (includes): Pick up stat macros.
49960         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
49961         if stat macros are broken.
49962         * lib/tempname.c (includes): No need to include "stat-macros.h".
49963         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
49964         (direxists, __path_search) [!_LIBC]: Don't compile these in
49965         gnulib; the tmpdir module covers that.
49966         * lib/tempname.h: New file.
49967
49968 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
49969
49970         * COPYING: Explain how gnulib-tool converts licence headers.
49971         Almost all wording by Eric Blake.
49972
49973 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
49974
49975         * lib/mbchar.h (is_basic_table): Make read-only.
49976         * lib/mbchar.c (is_basic_table): Likewise.
49977         Reported by John Darrington.
49978
49979 2006-10-25  Bruno Haible  <bruno@clisp.org>
49980
49981         * lib/progname.h (set_program_name): Undefine before defining.
49982
49983 2006-10-25  Bruno Haible  <bruno@clisp.org>
49984
49985         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
49986         false for non-gcc C++ compilers.
49987         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49988
49989 2006-10-24  Bruno Haible  <bruno@clisp.org>
49990
49991         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
49992         iconv implementations like Irix iconv.
49993
49994 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49995
49996         * modules/vararrays: New file.
49997         * m4/vararrays.m4: New file, taken from diffutils.
49998         * MODULES.html.sh: New module vararrays.
49999
50000 2006-10-24  Karl Berry  <karl@gnu.org>
50001
50002         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
50003         Don't call GNU Unix.
50004
50005 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50006
50007         * users.txt: Add Libtool.
50008
50009         Sync from Libtool:
50010
50011         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50012
50013         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
50014         to gnulib's policy of including config.h unconditionally.
50015
50016 2006-10-24  Bruno Haible  <bruno@clisp.org>
50017
50018         * modules/wcwidth (Files): Add m4/wint_t.m4.
50019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
50020         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
50021
50022 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50023
50024         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
50025         to pacify GCC with some -W flags enabled.  Problem reported by
50026         Bruno Haible.
50027
50028 2006-10-24  Jim Meyering  <jim@meyering.net>
50029
50030         * MODULES.html.sh: Remove uinttostr.  It's not a module.
50031         Reported by Karl Berry.
50032
50033 2006-10-23  Bruno Haible  <bruno@clisp.org>
50034
50035         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
50036
50037 2006-10-24  Bruno Haible  <bruno@clisp.org>
50038
50039         * lib/gl_list.h: Use C comment style, not C++ comment style.
50040
50041 2006-10-23  Eric Blake  <ebb9@byu.net>
50042
50043         * lib/getaddrinfo.c (includes): Add missing include.
50044
50045 2006-10-23  Bruno Haible  <bruno@clisp.org>
50046             Paul Eggert  <eggert@cs.ucla.edu>
50047
50048         Ability to rename obstack_free.
50049         * lib/obstack.h (__obstack_free): New macro. Declare instead of
50050         obstack_free.
50051         (obstack_free): Invoke the __obstack_free macro.
50052         * lib/obstack.c (obstack_free): Use __obstack_free macro.
50053
50054 2006-10-23  Bruno Haible  <bruno@clisp.org>
50055             Paul Eggert  <eggert@cs.ucla.edu>
50056
50057         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
50058         __argc, __argv from the declaration. (They are defined as macros on
50059         mingw.)
50060
50061 2006-10-22  Bruno Haible  <bruno@clisp.org>
50062
50063         * doc/gnulib-intro.texi: New file.
50064         * doc/gnulib.texi: Include it.
50065
50066 2006-10-21  Bruno Haible  <bruno@clisp.org>
50067
50068         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
50069         "Introduction", "Miscellanous Notes", "Particular Modules".
50070
50071 2006-10-21  Bruno Haible  <bruno@clisp.org>
50072
50073         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50074         Change mostlyclean-local rule to avoid sh syntax error from bash
50075         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
50076
50077 2006-10-23  Jim Meyering  <jim@meyering.net>
50078
50079         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
50080         in place of snprintf.
50081
50082         * modules/inttostr (Files): Add lib/uinttostr.c.
50083         * lib/uinttostr.c (inttostr): New file/function.
50084         * lib/inttostr.h (uinttostr): Declare.
50085         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
50086         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
50087         Add uinttostr.
50088         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
50089
50090 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
50091
50092         * lib/canonicalize.c (ELOOP): Define if not already defined.
50093         Problem reported by Bruno Haible in
50094         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
50095
50096 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
50097
50098         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
50099         Problem reported by Perry Smith and Ville Laurikari.
50100
50101         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
50102         uses.
50103
50104 2006-10-19  Bruno Haible  <bruno@clisp.org>
50105
50106         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
50107         for mingw.
50108
50109 2006-10-19  Bruno Haible  <bruno@clisp.org>
50110
50111         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
50112         Needed for mingw.
50113
50114 2006-10-19  Bruno Haible  <bruno@clisp.org>
50115
50116         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
50117
50118 2006-10-19  Bruno Haible  <bruno@clisp.org>
50119
50120         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
50121         it.
50122
50123 2006-10-19  Bruno Haible  <bruno@clisp.org>
50124
50125         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
50126         invocation.
50127
50128 2006-10-19  Bruno Haible  <bruno@clisp.org>
50129
50130         * gnulib-tool (func_create_testdir): Don't include ftruncate and
50131         mountlist by default.
50132
50133 2006-10-16  Bruno Haible  <bruno@clisp.org>
50134
50135         * lib/c-strstr.c: Include c-strstr.h.
50136
50137 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50138
50139         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
50140         in a slash.
50141
50142 2006-10-18  Bruno Haible  <bruno@clisp.org>
50143
50144         * lib/lock.h [C++]: Wrap definitions in extern "C".
50145
50146 2006-10-18  Bruno Haible  <bruno@clisp.org>
50147
50148         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
50149         gl_LIBOBJS list.
50150
50151 2006-10-18  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
50154
50155 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
50156
50157         * lib/xstrtol.h: Include gettext.h.
50158         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
50159         Problem reported by Eric Blake.
50160         * modules/xstrtol (Depends-on): Add gettext-h.
50161
50162 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
50163
50164         * lib/strftime.c (advance): New macro.
50165         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
50166         incomplete type, so you can't add 0 to it.  Problem and patch
50167         reported by Eelco Dolstra for dietlibc.
50168
50169 2006-10-18  Jim Meyering  <jim@meyering.net>
50170
50171         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
50172         type for a local, and rename it: s/up/user_proc/.
50173
50174 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50175
50176         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
50177         READ_UTMP_USER_PROCESS.
50178         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
50179
50180 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50181
50182         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
50183         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
50184
50185 2006-10-17  Eric Blake  <ebb9@byu.net>
50186
50187         * lib/sigprocmask.c (sigprocmask): Fix typo.
50188
50189         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
50190
50191         * modules/clean-temp (Makefile.am): Don't add to make output...
50192         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
50193         config.h.
50194
50195 2006-10-17  Bruno Haible  <bruno@clisp.org>
50196
50197         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
50198         differently if DEFAULT_TEXT_DOMAIN is set.
50199
50200 2006-10-16  Bruno Haible  <bruno@clisp.org>
50201
50202         * lib/clean-temp.c: Include fwriteerror.h.
50203
50204 2006-10-16  Bruno Haible  <bruno@clisp.org>
50205
50206         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
50207
50208 2006-10-16  Bruno Haible  <bruno@clisp.org>
50209
50210         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
50211         * lib/sigprocmask.h: Include <sys/types.h>.
50212         (sigset_t): Use the system's definition if present.
50213
50214 2006-10-17  Eric Blake  <ebb9@byu.net>
50215
50216         * lib/xvasprintf.c (includes): Assume config.h.
50217         * lib/xasprintf.c (includes): Likewise.
50218
50219 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50220
50221         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
50222         at least as wide as intmax_t.
50223
50224 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
50225
50226         (Imported from Automake.)
50227         * build-aux/gnupload: Update to version 1.1 of directive file.
50228
50229 2006-10-16  Eric Blake  <ebb9@byu.net>
50230
50231         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
50232         match Automake 1.10a.
50233
50234 2006-10-14  Bruno Haible  <bruno@clisp.org>
50235
50236         * modules/sigprocmask: New file.
50237         * lib/sigprocmask.h: New file.
50238         * lib/sigprocmask.c: New file.
50239         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
50240         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
50241         request sigprocmask.o.
50242         (gl_PREREQ_SIGPROCMASK): New macro.
50243         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
50244         (Depends-on): Add sigprocmask.
50245         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
50246         gt_SIGNALBLOCKING. Test for 'raise' only once.
50247         * lib/fatal-signal.c: Include sigprocmask.h.
50248         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
50249         unblock_fatal_signals): Define always.
50250         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50251         sigprocmask.
50252
50253 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
50254
50255         Sync from Automake.
50256         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
50257         which incorrectly sets the mode of an existing destination
50258         directory.  In some cases the unpatched install-sh could do the
50259         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
50260         system.  We hope this is rare in practice, but it's clearly worth
50261         fixing.  Problem reported by Alex Unleashed in
50262         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
50263         Also, don't bother to check for -m bugs unless we're using -m;
50264         suggested by Stepan Kasal.
50265
50266 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50267
50268         Sync from Automake.
50269         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
50270         `-c' flag, so they appear at the same position as in %FASTDEP%
50271         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
50272         which ignores unknown options only after the first non-option.
50273         Bug report against M4 by Nelson H. F. Beebe.
50274
50275 2006-10-13  Jim Meyering  <jim@meyering.net>
50276
50277         Fix a bug in yesterday's change.
50278         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
50279         p->fts_statp->st_dev would be used uninitialized.
50280         Ensures that we always call fts_stat on the very first entry.
50281         Miklos Szeredi reported that find -xdev stopped working.
50282
50283 2006-10-12  Bruno Haible  <bruno@clisp.org>
50284
50285         * gnulib-tool (func_get_automake_snippet): Append an automatically
50286         computed EXTRA_DIST augmentation.
50287         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
50288         * modules/alloca-opt (Makefile.am): Likewise.
50289         * modules/allocsa (Makefile.am): Likewise.
50290         * modules/arcfour (Makefile.am): Likewise.
50291         * modules/arctwo (Makefile.am): Likewise.
50292         * modules/argmatch (Makefile.am): Likewise.
50293         * modules/argz (Makefile.am): Likewise.
50294         * modules/atexit (Makefile.am): Likewise.
50295         * modules/backupfile (Makefile.am): Likewise.
50296         * modules/byteswap (Makefile.am): Likewise.
50297         * modules/c-strtod (Makefile.am): Likewise.
50298         * modules/c-strtold (Makefile.am): Likewise.
50299         * modules/calloc (Makefile.am): Likewise.
50300         * modules/canon-host (Makefile.am): Likewise.
50301         * modules/canonicalize (Makefile.am): Likewise.
50302         * modules/chdir-long (Makefile.am): Likewise.
50303         * modules/chdir-safer (Makefile.am): Likewise.
50304         * modules/check-version (Makefile.am): Likewise.
50305         * modules/chown (Makefile.am): Likewise.
50306         * modules/cloexec (Makefile.am): Likewise.
50307         * modules/close-stream (Makefile.am): Likewise.
50308         * modules/closeout (Makefile.am): Likewise.
50309         * modules/crc (Makefile.am): Likewise.
50310         * modules/csharpexec (Makefile.am): Likewise.
50311         * modules/cycle-check (Makefile.am): Likewise.
50312         * modules/des (Makefile.am): Likewise.
50313         * modules/dev-ino (Makefile.am): Likewise.
50314         * modules/dirfd (Makefile.am): Likewise.
50315         * modules/dirname (Makefile.am): Likewise.
50316         * modules/dup2 (Makefile.am): Likewise.
50317         * modules/eealloc (Makefile.am): Likewise.
50318         * modules/error (Makefile.am): Likewise.
50319         * modules/euidaccess (Makefile.am): Likewise.
50320         * modules/exclude (Makefile.am): Likewise.
50321         * modules/exitfail (Makefile.am): Likewise.
50322         * modules/fcntl-safer (Makefile.am): Likewise.
50323         * modules/fcntl (Makefile.am): Likewise.
50324         * modules/file-type (Makefile.am): Likewise.
50325         * modules/fileblocks (Makefile.am): Likewise.
50326         * modules/filemode (Makefile.am): Likewise.
50327         * modules/filenamecat (Makefile.am): Likewise.
50328         * modules/fnmatch (Makefile.am): Likewise.
50329         * modules/fopen-safer (Makefile.am): Likewise.
50330         * modules/fpending (Makefile.am): Likewise.
50331         * modules/fprintftime (Makefile.am): Likewise.
50332         * modules/free (Makefile.am): Likewise.
50333         * modules/fsusage (Makefile.am): Likewise.
50334         * modules/ftruncate (Makefile.am): Likewise.
50335         * modules/fts (Makefile.am): Likewise.
50336         * modules/gc-arcfour (Makefile.am): Likewise.
50337         * modules/gc-des (Makefile.am): Likewise.
50338         * modules/gc-hmac-md5 (Makefile.am): Likewise.
50339         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
50340         * modules/gc-md4 (Makefile.am): Likewise.
50341         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
50342         * modules/gc-sha1 (Makefile.am): Likewise.
50343         * modules/gc (Makefile.am): Likewise.
50344         * modules/getaddrinfo (Makefile.am): Likewise.
50345         * modules/getcwd (Makefile.am): Likewise.
50346         * modules/getdelim (Makefile.am): Likewise.
50347         * modules/getdomainname (Makefile.am): Likewise.
50348         * modules/getgroups (Makefile.am): Likewise.
50349         * modules/gethostname (Makefile.am): Likewise.
50350         * modules/gethrxtime (Makefile.am): Likewise.
50351         * modules/getline (Makefile.am): Likewise.
50352         * modules/getloadavg (Makefile.am): Likewise.
50353         * modules/getlogin_r (Makefile.am): Likewise.
50354         * modules/getndelim2 (Makefile.am): Likewise.
50355         * modules/getopt (Makefile.am): Likewise.
50356         * modules/getpagesize (Makefile.am): Likewise.
50357         * modules/getpass-gnu (Makefile.am): Likewise.
50358         * modules/getpass (Makefile.am): Likewise.
50359         * modules/getsubopt (Makefile.am): Likewise.
50360         * modules/gettime (Makefile.am): Likewise.
50361         * modules/gettimeofday (Makefile.am): Likewise.
50362         * modules/getugroups (Makefile.am): Likewise.
50363         * modules/getusershell (Makefile.am): Likewise.
50364         * modules/glob (Makefile.am): Likewise.
50365         * modules/group-member (Makefile.am): Likewise.
50366         * modules/hard-locale (Makefile.am): Likewise.
50367         * modules/hash (Makefile.am): Likewise.
50368         * modules/hmac-md5 (Makefile.am): Likewise.
50369         * modules/hmac-sha1 (Makefile.am): Likewise.
50370         * modules/human (Makefile.am): Likewise.
50371         * modules/idcache (Makefile.am): Likewise.
50372         * modules/imaxabs (Makefile.am): Likewise.
50373         * modules/imaxdiv (Makefile.am): Likewise.
50374         * modules/inet_ntop (Makefile.am): Likewise.
50375         * modules/inet_pton (Makefile.am): Likewise.
50376         * modules/intprops (Makefile.am): Likewise.
50377         * modules/inttostr (Makefile.am): Likewise.
50378         * modules/inttypes (Makefile.am): Likewise.
50379         * modules/isapipe (Makefile.am): Likewise.
50380         * modules/javaversion (Makefile.am): Likewise.
50381         * modules/lchmod (Makefile.am): Likewise.
50382         * modules/lchown (Makefile.am): Likewise.
50383         * modules/localcharset (Makefile.am): Likewise.
50384         * modules/long-options (Makefile.am): Likewise.
50385         * modules/lstat (Makefile.am): Likewise.
50386         * modules/malloc (Makefile.am): Likewise.
50387         * modules/mathl (Makefile.am): Likewise.
50388         * modules/mbchar (Makefile.am): Likewise.
50389         * modules/md2 (Makefile.am): Likewise.
50390         * modules/md4 (Makefile.am): Likewise.
50391         * modules/md5 (Makefile.am): Likewise.
50392         * modules/memcasecmp (Makefile.am): Likewise.
50393         * modules/memchr (Makefile.am): Likewise.
50394         * modules/memcmp (Makefile.am): Likewise.
50395         * modules/memcoll (Makefile.am): Likewise.
50396         * modules/memcpy (Makefile.am): Likewise.
50397         * modules/memmem (Makefile.am): Likewise.
50398         * modules/memmove (Makefile.am): Likewise.
50399         * modules/mempcpy (Makefile.am): Likewise.
50400         * modules/memrchr (Makefile.am): Likewise.
50401         * modules/memset (Makefile.am): Likewise.
50402         * modules/memxor (Makefile.am): Likewise.
50403         * modules/mkancesdirs (Makefile.am): Likewise.
50404         * modules/mkdir-p (Makefile.am): Likewise.
50405         * modules/mkdir (Makefile.am): Likewise.
50406         * modules/mkdtemp (Makefile.am): Likewise.
50407         * modules/mkstemp (Makefile.am): Likewise.
50408         * modules/mktime (Makefile.am): Likewise.
50409         * modules/modechange (Makefile.am): Likewise.
50410         * modules/mountlist (Makefile.am): Likewise.
50411         * modules/nanosleep (Makefile.am): Likewise.
50412         * modules/obstack (Makefile.am): Likewise.
50413         * modules/openat (Makefile.am): Likewise.
50414         * modules/pagealign_alloc (Makefile.am): Likewise.
50415         * modules/pathmax (Makefile.am): Likewise.
50416         * modules/physmem (Makefile.am): Likewise.
50417         * modules/poll (Makefile.am): Likewise.
50418         * modules/posixtm (Makefile.am): Likewise.
50419         * modules/posixver (Makefile.am): Likewise.
50420         * modules/putenv (Makefile.am): Likewise.
50421         * modules/quote (Makefile.am): Likewise.
50422         * modules/quotearg (Makefile.am): Likewise.
50423         * modules/raise (Makefile.am): Likewise.
50424         * modules/read-file (Makefile.am): Likewise.
50425         * modules/readline (Makefile.am): Likewise.
50426         * modules/readlink (Makefile.am): Likewise.
50427         * modules/readtokens (Makefile.am): Likewise.
50428         * modules/readutmp (Makefile.am): Likewise.
50429         * modules/realloc (Makefile.am): Likewise.
50430         * modules/regex (Makefile.am): Likewise.
50431         * modules/rename-dest-slash (Makefile.am): Likewise.
50432         * modules/rename (Makefile.am): Likewise.
50433         * modules/rijndael (Makefile.am): Likewise.
50434         * modules/rmdir (Makefile.am): Likewise.
50435         * modules/rpmatch (Makefile.am): Likewise.
50436         * modules/safe-read (Makefile.am): Likewise.
50437         * modules/safe-write (Makefile.am): Likewise.
50438         * modules/same-inode (Makefile.am): Likewise.
50439         * modules/same (Makefile.am): Likewise.
50440         * modules/save-cwd (Makefile.am): Likewise.
50441         * modules/savedir (Makefile.am): Likewise.
50442         * modules/setenv (Makefile.am): Likewise.
50443         * modules/settime (Makefile.am): Likewise.
50444         * modules/sha1 (Makefile.am): Likewise.
50445         * modules/sig2str (Makefile.am): Likewise.
50446         * modules/snprintf (Makefile.am): Likewise.
50447         * modules/stat-macros (Makefile.am): Likewise.
50448         * modules/stat-time (Makefile.am): Likewise.
50449         * modules/stdbool (Makefile.am): Likewise.
50450         * modules/stdint (Makefile.am): Likewise.
50451         * modules/stdlib-safer (Makefile.am): Likewise.
50452         * modules/stpcpy (Makefile.am): Likewise.
50453         * modules/stpncpy (Makefile.am): Likewise.
50454         * modules/strcase (Makefile.am): Likewise.
50455         * modules/strcasestr (Makefile.am): Likewise.
50456         * modules/strchrnul (Makefile.am): Likewise.
50457         * modules/strcspn (Makefile.am): Likewise.
50458         * modules/strdup (Makefile.am): Likewise.
50459         * modules/strerror (Makefile.am): Likewise.
50460         * modules/strftime (Makefile.am): Likewise.
50461         * modules/strndup (Makefile.am): Likewise.
50462         * modules/strnlen (Makefile.am): Likewise.
50463         * modules/strpbrk (Makefile.am): Likewise.
50464         * modules/strsep (Makefile.am): Likewise.
50465         * modules/strstr (Makefile.am): Likewise.
50466         * modules/strtod (Makefile.am): Likewise.
50467         * modules/strtoimax (Makefile.am): Likewise.
50468         * modules/strtok_r (Makefile.am): Likewise.
50469         * modules/strtol (Makefile.am): Likewise.
50470         * modules/strtoll (Makefile.am): Likewise.
50471         * modules/strtoul (Makefile.am): Likewise.
50472         * modules/strtoull (Makefile.am): Likewise.
50473         * modules/strtoumax (Makefile.am): Likewise.
50474         * modules/strverscmp (Makefile.am): Likewise.
50475         * modules/sys_socket (Makefile.am): Likewise.
50476         * modules/sys_stat (Makefile.am): Likewise.
50477         * modules/sysexits (Makefile.am): Likewise.
50478         * modules/time_r (Makefile.am): Likewise.
50479         * modules/timegm (Makefile.am): Likewise.
50480         * modules/timespec (Makefile.am): Likewise.
50481         * modules/tmpfile-safer (Makefile.am): Likewise.
50482         * modules/trim (Makefile.am): Likewise.
50483         * modules/unistd-safer (Makefile.am): Likewise.
50484         * modules/unlinkdir (Makefile.am): Likewise.
50485         * modules/unlocked-io (Makefile.am): Likewise.
50486         * modules/userspec (Makefile.am): Likewise.
50487         * modules/utime (Makefile.am): Likewise.
50488         * modules/utimecmp (Makefile.am): Likewise.
50489         * modules/utimens (Makefile.am): Likewise.
50490         * modules/vasnprintf (Makefile.am): Likewise.
50491         * modules/vasprintf (Makefile.am): Likewise.
50492         * modules/vsnprintf (Makefile.am): Likewise.
50493         * modules/xalloc (Makefile.am): Likewise.
50494         * modules/xgetcwd (Makefile.am): Likewise.
50495         * modules/xnanosleep (Makefile.am): Likewise.
50496         * modules/xreadlink (Makefile.am): Likewise.
50497         * modules/xstrtod (Makefile.am): Likewise.
50498         * modules/xstrtol (Makefile.am): Likewise.
50499         * modules/xstrtold (Makefile.am): Likewise.
50500         * modules/yesno (Makefile.am): Likewise.
50501         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
50502
50503 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50504
50505         * modules/error (Makefile.am): Distribute files through
50506         EXTRA_DIST, not lib_SOURCES.
50507
50508 2006-10-12  Eric Blake  <ebb9@byu.net>
50509
50510         * modules/error (Makefile.am): Distribute files in /lib.
50511         * modules/obstack (Makefile.am): Likewise.
50512
50513 2006-10-12  Bruno Haible  <bruno@clisp.org>
50514
50515         * modules/acl (Makefile.am): Distribute all files in lib/ through
50516         EXTRA_DIST.
50517         * modules/arcfour (Makefile.am): Likewise.
50518         * modules/arctwo (Makefile.am): Likewise.
50519         * modules/argmatch (Makefile.am): Likewise.
50520         * modules/argz (Makefile.am): Likewise.
50521         * modules/atexit (Makefile.am): Likewise.
50522         * modules/backupfile (Makefile.am): Likewise.
50523         * modules/c-strtod (Makefile.am): Likewise.
50524         * modules/c-strtold (Makefile.am): Likewise.
50525         * modules/calloc (Makefile.am): Likewise.
50526         * modules/canon-host (Makefile.am): Likewise.
50527         * modules/canonicalize (Makefile.am): Likewise.
50528         * modules/chdir-long (Makefile.am): Likewise.
50529         * modules/chdir-safer (Makefile.am): Likewise.
50530         * modules/check-version (Makefile.am): Likewise.
50531         * modules/chown (Makefile.am): Likewise.
50532         * modules/cloexec (Makefile.am): Likewise.
50533         * modules/close-stream (Makefile.am): Likewise.
50534         * modules/closeout (Makefile.am): Likewise.
50535         * modules/crc (Makefile.am): Likewise.
50536         * modules/cycle-check (Makefile.am): Likewise.
50537         * modules/des (Makefile.am): Likewise.
50538         * modules/dirfd (Makefile.am): Likewise.
50539         * modules/dirname (Makefile.am): Likewise.
50540         * modules/dup2 (Makefile.am): Likewise.
50541         * modules/euidaccess (Makefile.am): Likewise.
50542         * modules/exclude (Makefile.am): Likewise.
50543         * modules/exitfail (Makefile.am): Likewise.
50544         * modules/fcntl-safer (Makefile.am): Likewise.
50545         * modules/file-type (Makefile.am): Likewise.
50546         * modules/fileblocks (Makefile.am): Likewise.
50547         * modules/filemode (Makefile.am): Likewise.
50548         * modules/filenamecat (Makefile.am): Likewise.
50549         * modules/fnmatch (Makefile.am): Likewise.
50550         * modules/fopen-safer (Makefile.am): Likewise.
50551         * modules/fpending (Makefile.am): Likewise.
50552         * modules/fprintftime (Makefile.am): Likewise.
50553         * modules/free (Makefile.am): Likewise.
50554         * modules/fsusage (Makefile.am): Likewise.
50555         * modules/ftruncate (Makefile.am): Likewise.
50556         * modules/fts (Makefile.am): Likewise.
50557         * modules/gc (Makefile.am): Likewise.
50558         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
50559         * modules/getaddrinfo (Makefile.am): Likewise.
50560         * modules/getcwd (Makefile.am): Likewise.
50561         * modules/getdelim (Makefile.am): Likewise.
50562         * modules/getdomainname (Makefile.am): Likewise.
50563         * modules/getgroups (Makefile.am): Likewise.
50564         * modules/gethostname (Makefile.am): Likewise.
50565         * modules/gethrxtime (Makefile.am): Likewise.
50566         * modules/getline (Makefile.am): Likewise.
50567         * modules/getloadavg (Makefile.am): Likewise.
50568         * modules/getlogin_r (Makefile.am): Likewise.
50569         * modules/getopt (Makefile.am): Likewise.
50570         * modules/getpass (Makefile.am): Likewise.
50571         * modules/getpass-gnu (Makefile.am): Likewise.
50572         * modules/getsubopt (Makefile.am): Likewise.
50573         * modules/gettime (Makefile.am): Likewise.
50574         * modules/gettimeofday (Makefile.am): Likewise.
50575         * modules/getugroups (Makefile.am): Likewise.
50576         * modules/getusershell (Makefile.am): Likewise.
50577         * modules/glob (Makefile.am): Likewise.
50578         * modules/group-member (Makefile.am): Likewise.
50579         * modules/hard-locale (Makefile.am): Likewise.
50580         * modules/hash (Makefile.am): Likewise.
50581         * modules/hmac-md5 (Makefile.am): Likewise.
50582         * modules/hmac-sha1 (Makefile.am): Likewise.
50583         * modules/human (Makefile.am): Likewise.
50584         * modules/idcache (Makefile.am): Likewise.
50585         * modules/imaxabs (Makefile.am): Likewise.
50586         * modules/imaxdiv (Makefile.am): Likewise.
50587         * modules/inet_ntop (Makefile.am): Likewise.
50588         * modules/inet_pton (Makefile.am): Likewise.
50589         * modules/inttostr (Makefile.am): Likewise.
50590         * modules/isapipe (Makefile.am): Likewise.
50591         * modules/lchown (Makefile.am): Likewise.
50592         * modules/long-options (Makefile.am): Likewise.
50593         * modules/lstat (Makefile.am): Likewise.
50594         * modules/malloc (Makefile.am): Likewise.
50595         * modules/mathl (Makefile.am): Likewise.
50596         * modules/mbchar (Makefile.am): Likewise.
50597         * modules/md2 (Makefile.am): Likewise.
50598         * modules/md4 (Makefile.am): Likewise.
50599         * modules/md5 (Makefile.am): Likewise.
50600         * modules/memcasecmp (Makefile.am): Likewise.
50601         * modules/memchr (Makefile.am): Likewise.
50602         * modules/memcmp (Makefile.am): Likewise.
50603         * modules/memcoll (Makefile.am): Likewise.
50604         * modules/memcpy (Makefile.am): Likewise.
50605         * modules/memmem (Makefile.am): Likewise.
50606         * modules/memmove (Makefile.am): Likewise.
50607         * modules/mempcpy (Makefile.am): Likewise.
50608         * modules/memrchr (Makefile.am): Likewise.
50609         * modules/memset (Makefile.am): Likewise.
50610         * modules/memxor (Makefile.am): Likewise.
50611         * modules/mkancesdirs (Makefile.am): Likewise.
50612         * modules/mkdir (Makefile.am): Likewise.
50613         * modules/mkdir-p (Makefile.am): Likewise.
50614         * modules/mkdtemp (Makefile.am): Likewise.
50615         * modules/mkstemp (Makefile.am): Likewise.
50616         * modules/mktime (Makefile.am): Likewise.
50617         * modules/modechange (Makefile.am): Likewise.
50618         * modules/mountlist (Makefile.am): Likewise.
50619         * modules/nanosleep (Makefile.am): Likewise.
50620         * modules/openat (Makefile.am): Likewise.
50621         * modules/pagealign_alloc (Makefile.am): Likewise.
50622         * modules/physmem (Makefile.am): Likewise.
50623         * modules/poll (Makefile.am): Likewise.
50624         * modules/posixtm (Makefile.am): Likewise.
50625         * modules/posixver (Makefile.am): Likewise.
50626         * modules/putenv (Makefile.am): Likewise.
50627         * modules/quote (Makefile.am): Likewise.
50628         * modules/quotearg (Makefile.am): Likewise.
50629         * modules/raise (Makefile.am): Likewise.
50630         * modules/read-file (Makefile.am): Likewise.
50631         * modules/readline (Makefile.am): Likewise.
50632         * modules/readlink (Makefile.am): Likewise.
50633         * modules/readtokens (Makefile.am): Likewise.
50634         * modules/readutmp (Makefile.am): Likewise.
50635         * modules/realloc (Makefile.am): Likewise.
50636         * modules/regex (Makefile.am): Likewise.
50637         * modules/rename (Makefile.am): Likewise.
50638         * modules/rename-dest-slash (Makefile.am): Likewise.
50639         * modules/rijndael (Makefile.am): Likewise.
50640         * modules/rmdir (Makefile.am): Likewise.
50641         * modules/rpmatch (Makefile.am): Likewise.
50642         * modules/safe-read (Makefile.am): Likewise.
50643         * modules/safe-write (Makefile.am): Likewise.
50644         * modules/same (Makefile.am): Likewise.
50645         * modules/save-cwd (Makefile.am): Likewise.
50646         * modules/savedir (Makefile.am): Likewise.
50647         * modules/setenv (Makefile.am): Likewise.
50648         * modules/settime (Makefile.am): Likewise.
50649         * modules/sha1 (Makefile.am): Likewise.
50650         * modules/sig2str (Makefile.am): Likewise.
50651         * modules/snprintf (Makefile.am): Likewise.
50652         * modules/stdlib-safer (Makefile.am): Likewise.
50653         * modules/stpcpy (Makefile.am): Likewise.
50654         * modules/stpncpy (Makefile.am): Likewise.
50655         * modules/strcase (Makefile.am): Likewise.
50656         * modules/strcasestr (Makefile.am): Likewise.
50657         * modules/strchrnul (Makefile.am): Likewise.
50658         * modules/strcspn (Makefile.am): Likewise.
50659         * modules/strdup (Makefile.am): Likewise.
50660         * modules/strerror (Makefile.am): Likewise.
50661         * modules/strftime (Makefile.am): Likewise.
50662         * modules/strndup (Makefile.am): Likewise.
50663         * modules/strnlen (Makefile.am): Likewise.
50664         * modules/strpbrk (Makefile.am): Likewise.
50665         * modules/strsep (Makefile.am): Likewise.
50666         * modules/strstr (Makefile.am): Likewise.
50667         * modules/strtod (Makefile.am): Likewise.
50668         * modules/strtoimax (Makefile.am): Likewise.
50669         * modules/strtok_r (Makefile.am): Likewise.
50670         * modules/strtol (Makefile.am): Likewise.
50671         * modules/strtoll (Makefile.am): Likewise.
50672         * modules/strtoul (Makefile.am): Likewise.
50673         * modules/strtoull (Makefile.am): Likewise.
50674         * modules/strtoumax (Makefile.am): Likewise.
50675         * modules/strverscmp (Makefile.am): Likewise.
50676         * modules/time_r (Makefile.am): Likewise.
50677         * modules/timegm (Makefile.am): Likewise.
50678         * modules/tmpfile-safer (Makefile.am): Likewise.
50679         * modules/unistd-safer (Makefile.am): Likewise.
50680         * modules/unlinkdir (Makefile.am): Likewise.
50681         * modules/userspec (Makefile.am): Likewise.
50682         * modules/utime (Makefile.am): Likewise.
50683         * modules/utimecmp (Makefile.am): Likewise.
50684         * modules/utimens (Makefile.am): Likewise.
50685         * modules/vasnprintf (Makefile.am): Likewise.
50686         * modules/vasprintf (Makefile.am): Likewise.
50687         * modules/vsnprintf (Makefile.am): Likewise.
50688         * modules/xalloc (Makefile.am): Likewise.
50689         * modules/xgetcwd (Makefile.am): Likewise.
50690         * modules/xnanosleep (Makefile.am): Likewise.
50691         * modules/xreadlink (Makefile.am): Likewise.
50692         * modules/xstrtod (Makefile.am): Likewise.
50693         * modules/xstrtol (Makefile.am): Likewise.
50694         * modules/xstrtold (Makefile.am): Likewise.
50695         * modules/yesno (Makefile.am): Likewise.
50696
50697 2006-10-12  Jim Meyering  <jim@meyering.net>
50698
50699         * m4/getloadavg.m4: Revert the change below.
50700
50701         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
50702         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
50703         fail with a symlink, which is what coreutils' ./bootstrap now
50704         creates by default.
50705
50706 2006-10-12  Bruno Haible  <bruno@clisp.org>
50707
50708         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
50709         mingw.
50710         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
50711         MSVC and mingw explicitly.
50712
50713 2006-10-11  Simon Josefsson  <jas@extundo.com>
50714             Bruno Haible  <bruno@clisp.org>
50715
50716         Add support for multiple gnulib-tool invocations in the scope of a
50717         single configure.ac file.
50718         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
50719         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
50720         with the same contents as the _LIBADD variable.
50721         (func_emit_initmacro_start, func_emit_initmacro_end,
50722         func_emit_initmacro_done): New functions.
50723         (func_import, func_create_testdir): Invoke them. Allow the identifiers
50724         gl_LIBOBJS and gl_LTLIBOBJS.
50725
50726 2006-10-11  Bruno Haible  <bruno@clisp.org>
50727
50728         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
50729         (func_create_testdir): Don't create po/Makefile.am, don't invoke
50730         autoreconf. Instead, invoke autopoint explicitly but move back the
50731         *.m4 files from gnulib.
50732
50733 2006-10-11  Bruno Haible  <bruno@clisp.org>
50734
50735         * gnulib-tool (func_usage): Make module names after --create-testdir
50736         optional.
50737         (func_create_testdir): If no module was specified, use nearly all
50738         modules.
50739
50740 2006-10-12  Jim Meyering  <jim@meyering.net>
50741
50742         Big performance improvement for fts-based tools that use FTS_NOSTAT.
50743         Avoid spurious inode-mismatch problems on non-POSIX file systems.
50744         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
50745         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
50746         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
50747         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
50748         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
50749         (fts_set_stat_required): New function.
50750         (fts_open): Defer the calls to fts_stat, if possible or requested.
50751         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
50752         into fts_stat itself.
50753         (fts_read): Perform any required (deferred) fts_stat call.
50754         (fts_build): Likewise, for the directory we're about to open and read.
50755         In the readdir loop, carefully decide whether each entry will require
50756         an eventual call to fts_stat, using dirent.d_type info if available.
50757         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
50758         a command line argument into this function.  Update all callers.
50759         Map a return value of FTS_DOT to FTS_D for a command line argument.
50760         * modules/fts (Depends-on): Add d-type.  Alphabetize.
50761         Thanks to Miklos Szeredi for his tenacity and for the initial
50762         bug report about "find" failing on a FUSE-based file system.
50763
50764         * lib/fts.c (fts_open): Use consistent indentation.
50765
50766 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50767
50768         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
50769         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
50770         reported by Jim Meyering.  All uses of cache variables renamed
50771         to match Autoconf's.
50772         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
50773         the other one.
50774
50775         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
50776         Fix misspelling in diagnostic.
50777
50778 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50779
50780         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
50781         defined.  Problem reported by Matthew Woehlke.
50782
50783         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
50784         Add support for Tandem NonStop R series.
50785         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
50786         Use new macro.
50787
50788         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
50789         (has_trailing_slash): Omit size arg; all callers changed.
50790         Omit 'inline', since it doesn't help performance and we'd
50791         need to configure it.
50792         Don't count //, ///, etc. as having a trailing slash.
50793         As a side effect, this removes a C99ism reported by Matthew Woehlke.
50794         (rpl_rename_dest_slash): On failure, use rename's errno rather
50795         than (in some cases) an incorrect or junk errno.
50796         Simplify code by removing need to compute length; this does
50797         cause it to make two passes instead of one over the file name,
50798         but it's worth it.
50799
50800         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
50801         change, since Autoconf's version may no longer be appropriate now
50802         that we are using CVS Autoconf's version.  Add support for Tandem.
50803
50804 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50805             Bruno Haible  <bruno@clisp.org>
50806
50807         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
50808         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
50809         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
50810         gl_AC_TYPE_LONG_LONG.
50811
50812         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
50813         instead of HAVE_LONG_LONG.
50814         * lib/printf-args.c (printf_fetchargs): Likewise.
50815         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
50816         * lib/vasnprintf.c (VASNPRINTF): Likewise.
50817         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
50818         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
50819         gl_AC_TYPE_LONG_LONG.
50820
50821 2006-10-11  Bruno Haible  <bruno@clisp.org>
50822
50823         * m4/longlong.m4: Add comments.
50824         * m4/ulonglong.m4: Likewise.
50825
50826 2006-10-10  Bruno Haible  <bruno@clisp.org>
50827
50828         Make it possible to #define stpcpy, strdup to aliases.
50829         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
50830         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
50831
50832 2006-10-10  Bruno Haible  <bruno@clisp.org>
50833
50834         Make it possible to #define gcd to an alias.
50835         * lib/gcd.c: Include config.h.
50836
50837 2006-10-10  Bruno Haible  <bruno@clisp.org>
50838
50839         Make it possible to #define c_isascii to an alias.
50840         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
50841         defined. Undefine the macros before defining them, to avoid gcc
50842         warnings.
50843         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
50844         define NO_C_CTYPE_MACROS early.
50845
50846 2006-10-10  Bruno Haible  <bruno@clisp.org>
50847
50848         Make it possible to #define set_program_name to an alias.
50849         * lib/progname.c: Don't undefine set_program_name; instead, undefine
50850         ENABLE_RELOCATABLE early.
50851
50852 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50853
50854         Port to Tandem NSK OSS, which has 64-bit signed int but at most
50855         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
50856         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
50857         More generally, don't assume that 64-bit signed int is available
50858         if unsigned int is, and vice versa.
50859         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
50860         unsigned symbols, not on their signed counterparts.
50861         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
50862         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
50863         (UINT64_C, UINTMAX_C):
50864         Likewise.
50865         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
50866         unsigned counterparts.
50867         (Have_long_long, Unsigned): New macros.
50868         (Int): Renamed from INT.
50869         (strtoimax): Use the new macros.
50870         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
50871         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
50872         * modules/inttypes (inttypes.h): Substitute
50873         HAVE_UNSIGNED_LONG_LONG_INT.
50874         * modules/stdint (stdint.h): Likewise.
50875         (Files): Add m4/ulonglong.m4.
50876
50877 2006-10-10  Bruno Haible  <bruno@clisp.org>
50878
50879         Fix a gcc -Wshadow warning.
50880         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
50881         to 'bucket'.
50882         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
50883         gl_linked_indexof_from_to): Likewise.
50884         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
50885         Likewise.
50886         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
50887         Likewise.
50888         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
50889         Reported by Eric Blake.
50890
50891 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
50892
50893         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
50894         for NetBSD.  Problem reported by Bruno Haible.
50895
50896 2006-10-09  Jim Meyering  <jim@meyering.net>
50897
50898         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
50899         Patch from Bruno Haible.
50900
50901 2006-10-09  Jim Meyering  <jim@meyering.net>
50902
50903         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
50904         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
50905         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
50906
50907 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50908
50909         Don't include <config.h> twice; this doesn't work in some cases,
50910         e.g., when config.h has "#define intmax_t long long int" and
50911         we include <config.h>, <inttypes.h>, <config.h> in that order.
50912         Problem reported by Matthew Woehlke in:
50913         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
50914         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
50915         * lib/fts-cycle.c: Don't include config.h.
50916         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
50917         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
50918         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
50919         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
50920         inttypes.h.
50921         * lib/xstrtoumax.c: Likewise.
50922         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
50923         __strtol and the like, so that this module is more like its siblings.
50924         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
50925         Remove; no longer needed now that we assume gnulib inttypes.h.
50926
50927 2006-10-08  Bruno Haible  <bruno@clisp.org>
50928
50929         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
50930         option.
50931
50932 2006-10-07  Jim Meyering  <jim@meyering.net>
50933
50934         * modules/inttypes (inttypes.h): Revert what seems to have been
50935         an inadvertent part of today's change: use "|", not "/" in the
50936         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
50937
50938 2006-10-07  Bruno Haible  <bruno@clisp.org>
50939
50940         * modules/sublist: New file.
50941
50942 2006-10-07  Bruno Haible  <bruno@clisp.org>
50943
50944         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
50945         * modules/argz (argz.h): Likewise.
50946         * modules/arpa_inet (arpa/inet.h): Likewise.
50947         * modules/byteswap (byteswap.h): Likewise.
50948         * modules/configmake (configmake.h): Likewise.
50949         * modules/fcntl (fcntl.h): Likewise.
50950         * modules/fnmatch (fnmatch.h): Likewise.
50951         * modules/getopt (getopt.h): Likewise.
50952         * modules/glob (glob.h): Likewise.
50953         * modules/inttypes (inttypes.h): Likewise.
50954         * modules/netinet_in (netinet/in.h): Likewise.
50955         * modules/poll (poll.h): Likewise.
50956         * modules/stdbool (stdbool.h): Likewise.
50957         * modules/stdint (stdint.h): Likewise.
50958         * modules/sys_select (sys/select.h): Likewise.
50959         * modules/sys_socket (sys/socket.h): Likewise.
50960         * modules/sys_stat (sys/stat.h): Likewise.
50961         * modules/sysexits (sysexits.h): Likewise.
50962         * modules/unistd (unistd.h): Likewise.
50963         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50964         Add a "DO NOT EDIT" comment to the generated file.
50965         (func_import): Likewise for gnulib-comp.m4.
50966
50967 2006-10-07  Bruno Haible  <bruno@clisp.org>
50968
50969         * lib/gl_sublist.h: New file.
50970         * lib/gl_sublist.c: New file.
50971
50972 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50973
50974         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
50975         name (relative to the original working directory) and the file
50976         name component (relative to the temporary working directory).  All
50977         callers changed.
50978         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
50979         * lib/mkdir-p.c (make_dir_parents): Likewise.
50980         * lib/mkdir-p.h (make_dir_parents): Likewise.
50981
50982 2006-10-06  Eric Blake  <ebb9@byu.net>
50983
50984         Define several macros for use by the clean-temp module.
50985         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
50986         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
50987         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
50988
50989         * lib/clean-temp.h (close_stream_temp): New declaration.
50990         * lib/clean-temp.c (includes): Pull in headers according to what
50991         other modules are in use.
50992         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
50993
50994 2006-10-06  Bruno Haible  <bruno@clisp.org>
50995
50996         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
50997         instead of fopen, fwriteerror.
50998
50999 2006-10-06  Bruno Haible  <bruno@clisp.org>
51000
51001         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
51002         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
51003         int.
51004         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
51005         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
51006         Return an error indicator.
51007         Suggested by Eric Blake.
51008
51009 2006-10-06  Bruno Haible  <bruno@clisp.org>
51010
51011         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
51012         Reported by Eric Blake.
51013
51014 2006-10-06  Bruno Haible  <bruno@clisp.org>
51015
51016         * modules/closeout (Description): Mention stderr too.
51017
51018 2006-10-06  Bruno Haible  <bruno@clisp.org>
51019         and Paul Eggert  <eggert@cs.ucla.edu>
51020
51021         * lib/closeout.c (close_stdout): Also close stderr.
51022         * lib/closeout.h: Update comment.
51023
51024 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
51025
51026         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
51027         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
51028         * lib/dirchownmod.c: Include lchown.h.
51029         * lib/lchown.c: Don't include files that lchown.h now includes.
51030         Don't declare chown, since lchown.h now does that.
51031         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
51032         (lchown): Define to rpl_chown if lchown is declared but
51033         does not exist.  Declare using a prototype if lchown is not
51034         declared.  Add a copyright notice.
51035         * lib/mkstemp.h: Include <unistd.h>.
51036         * lib/openat.c: Include lchown.h.
51037
51038         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
51039         we now test for that separately.
51040         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
51041         rather than O_NOFOLLOW, when testing whether it's possible to
51042         avoid a race condition reliably.
51043         * lib/savewd.c (savewd_chdir): Likewise.
51044
51045         Remove macros that are no longer needed now that stdint.h is
51046         reliable.
51047         * lib/fsusage.c (UINTMAX_MAX): Remove.
51048         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
51049         * lib/utimecmp.c (SIZE_MAX): Remove.
51050
51051         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
51052
51053         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
51054         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
51055         O_NOATIME works.
51056
51057 2006-10-05  Bruno Haible  <bruno@clisp.org>
51058
51059         * lib/gl_list.h (gl_sortedlist_search_from_to,
51060         gl_sortedlist_indexof_from_to): New declarations.
51061         (gl_list_implementation): New fields sortedlist_search_from_to,
51062         sortedlist_indexof_from_to.
51063         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
51064         inline functions.
51065         * lib/gl_list.c (gl_sortedlist_search_from_to,
51066         gl_sortedlist_indexof_from_to): New functions.
51067         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
51068         function.
51069         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
51070         (gl_array_sortedlist_search_from_to): New function.
51071         (gl_array_list_implementation): Update.
51072         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
51073         function.
51074         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
51075         (gl_carray_sortedlist_search_from_to): New function.
51076         (gl_carray_list_implementation): Update.
51077         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
51078         gl_linked_sortedlist_indexof_from_to): New functions.
51079         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51080         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51081         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
51082         gl_tree_sortedlist_indexof_from_to): New functions.
51083         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51084         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51085         Update.
51086         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51087         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
51088         Update.
51089
51090 2006-10-05  Bruno Haible  <bruno@clisp.org>
51091
51092         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
51093         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
51094         (struct gl_list_implementation): Add fields search_from_to,
51095         indexof_from_to. Remove fields search, indexof.
51096         (gl_list_search): Use the search_from_to method.
51097         (gl_list_search_from, gl_list_search_from_to): New functions.
51098         (gl_list_indexof): Use the indexof_from_to method.
51099         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
51100         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
51101         (gl_list_search_from, gl_list_search_from_to): New functions.
51102         (gl_list_indexof): Use the indexof_from_to method.
51103         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
51104         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
51105         gl_array_indexof. Add start_index, end_index arguments.
51106         (gl_array_search_from_to): Renamed from gl_array_search. Add
51107         start_index, end_index arguments.
51108         (gl_array_remove, gl_array_list_implementation): Update.
51109         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
51110         gl_carray_indexof. Add start_index, end_index arguments.
51111         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
51112         start_index, end_index arguments.
51113         (gl_carray_remove, gl_carray_list_implementation): Update.
51114         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
51115         gl_linked_search. Add start_index, end_index arguments.
51116         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
51117         start_index, end_index arguments.
51118         (gl_linked_remove): Update.
51119         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51120         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51121         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
51122         field to 'size_t'.
51123         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
51124         gl_tree_search. Add start_index, end_index arguments.
51125         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
51126         start_index, end_index arguments.
51127         (gl_tree_remove): Update.
51128         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51129         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51130         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
51131         function.
51132         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
51133         gl_tree_search. Add start_index, end_index arguments.
51134         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
51135         start_index, end_index arguments.
51136         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51137         Update.
51138         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51139
51140 2006-10-05  Bruno Haible  <bruno@clisp.org>
51141
51142         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
51143
51144         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
51145         fwriteerror_temp): New declarations.
51146         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
51147         (descriptors): New variable.
51148         (cleanup): First, close the descriptors.
51149         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
51150         fclose_temp, fwriteerror_temp): New functions.
51151
51152 2006-10-04  Jim Meyering  <jim@meyering.net>
51153
51154         * lib/fts.c (fts_open): Tiny comment change.
51155
51156 2006-10-04  Bruno Haible  <bruno@clisp.org>
51157
51158         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
51159         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
51160         gl_LOCK_BODY.
51161         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
51162         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
51163         gl_LOCK_EARLY_BODY.
51164         (gl_LOCK): Require gl_LOCK_BODY.
51165
51166 2006-10-04  Bruno Haible  <bruno@clisp.org>
51167
51168         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
51169         (gl_oset_search_atleast): New declaration.
51170         (struct gl_oset_implementation): Add field 'search_atleast'.
51171         (gl_oset_search_atleast): New inline function.
51172         * lib/gl_oset.c (gl_oset_search_atleast): New function.
51173         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
51174         (gl_array_oset_implementation): Update.
51175         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
51176         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
51177         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
51178
51179 2006-10-04  Bruno Haible  <bruno@clisp.org>
51180
51181         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
51182
51183 2006-10-03  Bruno Haible  <bruno@clisp.org>
51184
51185         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
51186         from gl_avltreehash_list_implementation.
51187
51188 2006-10-03  Bruno Haible  <bruno@clisp.org>
51189
51190         * lib/gl_oset.c (gl_oset_add): Fix return type.
51191
51192 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
51193
51194         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
51195
51196 2006-10-02  Eric Blake  <ebb9@byu.net>
51197
51198         * modules/strnlen (Depends-on): Add extensions.
51199
51200 2006-10-02  Eric Blake  <ebb9@byu.net>
51201
51202         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
51203         definition in 2.60+.
51204
51205 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
51206
51207         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
51208         checks.
51209
51210 2006-10-02  Bruno Haible  <bruno@clisp.org>
51211
51212         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
51213         to the AUTOMAKE_OPTIONS.
51214         Reported by Jim Meyering.
51215
51216 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
51217
51218         Work around bug in Solaris 10 /proc file system:
51219         /proc/self/fd/NNN/.. isn't the parent directory of
51220         the directory whose file descriptor is NNN.  This needs to
51221         be worked around at run time, not compile time, since a
51222         program might be built on Solaris 8, where things work, and
51223         run on Solaris 10.
51224         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
51225         to use the following interface instead:
51226         (OPENAT_BUFFER_SIZE): New macro.
51227         (openat_proc_name): New function.
51228         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
51229         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
51230         Likewise.
51231         * lib/openat-proc.c: New file.
51232         * modules/openat (Files): Add lib/openat-proc.c.
51233         (Depends-on): Add same-inode, stdbool.
51234         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
51235
51236 2006-09-29  Bruno Haible  <bruno@clisp.org>
51237
51238         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
51239         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
51240         argument. Set stdout_closed before testing for ferror, not after.
51241         (fwriteerror, fwriteerror_no_ebadf): New functions.
51242
51243 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51244
51245         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
51246
51247 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
51248
51249         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
51250         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
51251
51252 2006-09-28  Jim Meyering  <jim@meyering.net>
51253
51254         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
51255         Include <unistd.h>.
51256
51257 2006-09-28  Bruno Haible  <bruno@clisp.org>
51258
51259         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
51260         * modules/linkedhash-list (Depends-on): Likewise.
51261         * modules/rbtreehash-list (Depends-on): Likewise.
51262
51263 2006-09-28  Bruno Haible  <bruno@clisp.org>
51264
51265         * lib/strndup.h: Simplify the redefinition of strndup.
51266         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
51267         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
51268
51269 2006-09-28  Bruno Haible  <bruno@clisp.org>
51270
51271         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
51272         * lib/gl_linkedhash_list.c: Likewise.
51273         * lib/gl_rbtreehash_list.c: Likewise.
51274
51275 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
51276
51277         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
51278         getaddrinfo.
51279
51280         * lib/__fpending.h: Don't include <stdio_ext.h> unless
51281         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
51282         it causes <stdio_ext.h> to cause a compile-time error.
51283         Problem reported by Nelson H. F. Beebe.
51284         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
51285         of HAVE_DECL___PENDING.
51286
51287         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
51288         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
51289         declaration.
51290
51291 2006-09-27  Jim Meyering  <jim@meyering.net>
51292
51293         This file could end up with a definition for a function
51294         named __strndup, rather than rpl_strndup on a system with
51295         incomplete weak_alias support.
51296         * lib/strndup.c (strndup): Rename from __strndup.
51297         Remove #defines that used to map __strndup to strndup.
51298         Don't use K&R prototypes.
51299         Remove LIBC-related code, since this file is not sync'd with glibc.
51300         * lib/strndup.h: Revamp, accordingly.
51301         * m4/strndup.m4: Modernize.
51302
51303 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
51304
51305         * modules/savewd (Depends-on): Add 'raise'.
51306         * lib/savewd.c: Include <signal.h>, for 'raise'.
51307
51308 2006-09-26  Jim Meyering  <jim@meyering.net>
51309
51310         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
51311         when we detect Darwin 8.7.0's acl_get_file bug.
51312         Rearrange to perform the new (below) run-test while $LIBS
51313         contains any acl-related library.  Set USE_ACL at the end.
51314         (gl_ACL_GET_FILE): New function.
51315
51316 2006-09-26  Eric Blake  <ebb9@byu.net>
51317
51318         * lib/verror.c: Include <config.h> unconditionally.
51319
51320 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
51321
51322         * modules/clock-time (Maintainer): Add self.
51323         * modules/getlogin_r (Depends-on): Add extensions.
51324
51325 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51326
51327         * modules/clock-time: New module.
51328         * modules/nanosleep (Depends-on): Add clock-time.
51329         * modules/gethrxtime (Depends-on): Likewise.
51330         * modules/gettime (Depends-on): Likewise.
51331         * modules/settime (Depends-on): Likewise.
51332
51333         * modules/fts-lgpl: Depend on openat.
51334         * modules/mkancesdirs: Depend on savewd.
51335         * modules/mkdir-p: Likewise.
51336
51337 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51338
51339         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
51340
51341         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
51342         `gl_have_arbitrary_file_name_length_limit' to
51343         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
51344         actually works between configure runs.
51345
51346 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51347             Bruno Haible  <bruno@clisp.org>
51348
51349         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
51350
51351 2006-09-25  Jim Meyering  <jim@meyering.net>
51352
51353         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
51354         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
51355
51356 2006-09-25  Eric Blake  <ebb9@byu.net>
51357
51358         * gnulib-tool (func_import, func_create_testdir): Fix typos in
51359         exec's in 2006-09-18 patch when shuffling fds.
51360
51361 2006-09-25  Bruno Haible  <bruno@clisp.org>
51362
51363         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
51364         Reported by Jim Meyering.
51365
51366 2006-09-24  Jim Meyering  <jim@meyering.net>
51367
51368         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
51369         compare a pointer against a literal "0".  That caused failures with
51370         at least HP-UX's hpcc.
51371
51372 2006-09-22  Simon Josefsson  <jas@extundo.com>
51373
51374         * modules/gc-sha1:
51375         * modules/gc-md4:
51376         * modules/gc-hmac-sha1:
51377         * modules/gc-hmac-md5:
51378         * modules/gc-des:
51379         * modules/gc-arcfour: Distribute more files.
51380
51381 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51382
51383         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
51384         (gl_linked_iterator_from_to): Initialize struct completely.
51385         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
51386         (gl_tree_iterator_from_to): Likewise
51387         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
51388         * lib/gl_array_list.c [lint] (gl_array_iterator)
51389         (gl_array_iterator_from_to): Likewise.
51390         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
51391         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
51392         (gl_carray_iterator_from_to): Likewise.
51393
51394         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
51395         * lib/md4.c (md4_process_block): Remove unused variable.
51396         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
51397         parentheses for clarity.
51398
51399 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51400
51401         * modules/bison-i18n (Depends-on): Add gettext.
51402
51403 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51404
51405         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
51406         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
51407         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
51408         also add missing comma that caused broken test.
51409         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
51410         stdlib.h, for `abort'.
51411         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
51412         variables.
51413         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
51414         include unistd.h if present, for `rmdir'.
51415         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
51416         variables.
51417         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
51418         in the process include standard headers for prototypes.
51419         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
51420         gets declared on GNU/Linux.
51421         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
51422         unistd.h, for `rmdir'.
51423         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
51424
51425         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
51426         always true.
51427         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
51428
51429         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
51430
51431 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51432
51433         * gnulib-tool (func_version): Create output all at once.  This
51434         may help avoid triggering unnecessary SIGPIPEs, and at any
51435         rate it doesn't hurt.
51436
51437 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51438             Bruno Haible  <bruno@clisp.org>
51439
51440         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
51441         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51442         * m4/signed.m4 (bh_C_SIGNED): Likewise.
51443
51444         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
51445         (gl_FUNC_VASPRINTF): Invoke it.
51446
51447 2006-09-22  Bruno Haible  <bruno@clisp.org>
51448
51449         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
51450         getloadavg.c as first argument.
51451
51452 2006-09-22  Bruno Haible  <bruno@clisp.org>
51453
51454         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
51455         at the beginning of the gl_INIT macro.
51456         * modules/getloadavg (configure.ac): Pass $gl_source_base to
51457         gl_GETLOADAVG.
51458
51459 2006-09-22  Bruno Haible  <bruno@clisp.org>
51460
51461         * gnulib-tool (func_create_megatestdir): Don't include the config-h
51462         module.
51463         Suggested by Ralf Wildenhues.
51464
51465 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
51466
51467         Import this patch from libc:
51468
51469         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
51470
51471         * lib/regex_internal.c (re_string_reconstruct): Handle
51472         offset < pstr->valid_raw_len && pstr->offsets_needed case.
51473         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
51474         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
51475         re_string_context_at.
51476
51477         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
51478         now requires it.
51479         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
51480         gl_REGEX now does it for us.
51481         (gl_REGEX): Add test taken from
51482         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
51483
51484         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
51485         Check that large offsets work.  Modernize Autoconf usages.
51486         Prefer "yes" to mean a good thing rather than a bad.
51487         Don't put "#define mkstemp" in config.h, as this might interfere
51488         with standard system headers that "#define mkstemp mkstemp64".
51489
51490         * modules/mkstemp (Depends-on): Add extensions, so that
51491         mkstemp is visible on some platforms.
51492         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
51493         (Include): Change to "mkstemp.h" from <stdlib.h>.
51494         (Files): Add mkstemp.h.
51495
51496         * lib/mkstemp.h: New file, since some standard headers
51497         #define mkstemp.
51498         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
51499         Include "mkstemp.h".
51500         Make the _LIBC code resemble glibc original more,
51501         e.g., use K&R style.
51502         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
51503         (mkstemp): Remove, since mkstemp.h does this for us.
51504         * lib/stdlib--.h: Include mkstemp.h.
51505
51506         Import this patch from libc:
51507
51508         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
51509
51510         * lib/tempname.c (__gen_tempname): Change attempts_min
51511         into a macro.  Use preprocessor to decide how to initialize
51512         attempts [Coverity CID 67].
51513
51514 2006-09-20  Bruno Haible  <bruno@clisp.org>
51515
51516         * lib/mkdtemp.c: Import from libc.
51517         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
51518                 * sysdeps/posix/tempname.c (__gen_tempname): Change
51519                 attempts_min into a macro.  Use preprocessor to decide how to
51520                 initialize attempts [Coverity CID 67].
51521         2001-11-27  Paul Eggert  <eggert@twinsun.com>
51522                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
51523                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
51524
51525 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51526
51527         * gnulib-tool (func_exit): New function, to allow to pass the
51528         exit status portably through the trap.  Use everywhere.
51529         (--help, --version): Signal a write error.
51530         (trap): catch SIGPIPE, for write errors.
51531         Exit at the end of the trap, with the correct exit status.
51532
51533 2006-09-19  Karl Berry  <karl@gnu.org>
51534
51535         * doc/gnulib.texi: note about the license texinfo files.
51536
51537 2006-09-19  Eric Blake  <ebb9@byu.net>
51538
51539         * gnulib-tool: Avoid space-tab.
51540
51541 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
51542
51543         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
51544         that prevented coreutils 6.1 from building.  Problem reported
51545         by Petter Reinholdtsen.
51546
51547 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
51548
51549         * gnulib-tool (avoidlist): Fix typo that broke options like
51550         --avoid=lock that are used by coreutils bootstrap.
51551
51552 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
51553
51554         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
51555         more systematically.
51556
51557 2006-09-18  Jim Meyering  <jim@meyering.net>
51558
51559         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
51560
51561 2006-09-18  Bruno Haible  <bruno@clisp.org>
51562
51563         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
51564
51565 2006-09-18  Bruno Haible  <bruno@clisp.org>
51566
51567         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
51568         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
51569         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
51570         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
51571         * m4/gettext.m4: Require autoconf >= 2.52.
51572         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
51573         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
51574         of gl_cv_header_inttypes_h.
51575
51576 2006-09-18  Bruno Haible  <bruno@clisp.org>
51577
51578         * lib/javaversion.c: Include configmake.h.
51579
51580 2006-09-18  Bruno Haible  <bruno@clisp.org>
51581
51582         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
51583         avoid that the while loops be executed in a subshell.
51584
51585 2006-09-18  Bruno Haible  <bruno@clisp.org>
51586
51587         * MODULES.html.sh (func_module): Break long lines.
51588         Suggested by Bruce Korb <bkorb@gnu.org>.
51589
51590 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51591
51592         Speed up by a factor of 1.12.
51593         * gnulib-tool (nl): New variable.
51594         (func_import): Rewrite include directive extraction to only read each
51595         directive once.
51596
51597 2006-09-17  Bruno Haible  <bruno@clisp.org>
51598
51599         * modules/javaversion (Makefile.am): Remove DEFS setting.
51600         (Depends-on): Add configmake, for PKGDATADIR definition.
51601
51602 2006-09-17  Bruno Haible  <bruno@clisp.org>
51603
51604         * gnulib-tool (func_create_testdir): Rewrite all files at once.
51605
51606 2006-09-17  Bruno Haible  <bruno@clisp.org>
51607
51608         * gnulib-tool (func_append): New function, stolen from libtool.m4.
51609         (func_modules_transitive_closure, func_modules_add_dummy,
51610         func_modules_to_filelist, func_import, func_create_testdir,
51611         func_create_megatestdir, ...): Use it wherever possible.
51612         Suggested by Ralf Wildenhues.
51613
51614 2006-09-16  Karl Berry  <karl@gnu.org>
51615
51616         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
51617         to avoid sectioning errors.
51618         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
51619         [ifinfo]: blank line after @center-ed titles.
51620         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
51621         Spell FSF address consistently with others.
51622         (These changes approved by rms.)
51623
51624 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51625
51626         Speed up by a factor of 1.61.
51627         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
51628         already checked module names again.
51629
51630 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51631
51632         Speed up by a factor of 1.13.
51633         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
51634         for new_files, and the input to func_add_or_update.
51635
51636 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51637
51638         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
51639         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
51640
51641 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51642
51643         * modules/mkancesdirs (Depends-on): Add fcntl.
51644         * modules/savewd: New file.
51645         * MODULES.html.sh (File system functions): Add savewd.
51646
51647         * modules/configmake (Makefile.am): Add support for the
51648         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
51649
51650 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51651
51652         * m4/savewd.m4: New file.
51653
51654 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51655
51656         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
51657         (dirchownmod): New arg FD.  All callers changed.
51658         Use FD rather than opening the directory ourself, as opening is
51659         now the caller's responsibility.
51660         * lib/dirchownmod.h: Likewise.
51661         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
51662         hosts that require <sys/types.h> before <sys/stat.h>.  Include
51663         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
51664         (test_dir): Remove.
51665         (mkancesdirs): Return length of prefix of FILE that has already
51666         been made, or -2 if there is a child doing the work.  Redo
51667         algorithm so that it is O(N) rather than O(N**2).  Optimize away
51668         ".", and treat ".." specially since it might stray back into
51669         already-created areas.  Use a subprocess if necessary.  New arg
51670         WD; all users changed.  MAKE_DIR function should now return 1
51671         if it creates a directory that is not readable.  Return -2 if
51672         a child process is spun off.
51673         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
51674         Adjust signature to match code.
51675         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
51676         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
51677         all users changed.
51678         * lib/savewd.c, lib/savewd.h: New files.
51679
51680 2006-09-15  Jim Meyering  <jim@meyering.net>
51681
51682         * modules/rename-dest-slash: New module.
51683         * MODULES.html.sh (posix_compat): Add it here.
51684
51685         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
51686
51687 2006-09-15  Jim Meyering  <jim@meyering.net>
51688
51689         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
51690         file.
51691
51692         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
51693
51694 2006-09-15  Jim Meyering  <jim@meyering.net>
51695
51696         * lib/rename-dest-slash.c (has_trailing_slash): Use
51697         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
51698         (rpl_rename_dest_slash): Perform the cheaper trailing slash
51699         test before testing whether SRC is a directory.
51700         Suggestions from Bruno Haible.
51701
51702         Avoid a warning about an unused variable.
51703         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
51704         into the #ifdef block where it's used.
51705
51706         * lib/rename-dest-slash.c: New file.
51707
51708 2006-09-14  Bruno Haible  <bruno@clisp.org>
51709
51710         * lib/allocsa.c: Include <config.h> unconditionally.
51711         * lib/asnprintf.c: Likewise.
51712         * lib/asprintf.c: Likewise.
51713         * lib/c-strcasecmp.c: Likewise.
51714         * lib/c-strcasestr.c: Likewise.
51715         * lib/c-strncasecmp.c: Likewise.
51716         * lib/c-strstr.c: Likewise.
51717         * lib/classpath.c: Likewise.
51718         * lib/clean-temp.c: Likewise.
51719         * lib/concatpath.c: Likewise.
51720         * lib/copy-file.c: Likewise.
51721         * lib/csharpcomp.c: Likewise.
51722         * lib/csharpexec.c: Likewise.
51723         * lib/execute.c: Likewise.
51724         * lib/fatal-signal.c: Likewise.
51725         * lib/findprog.c: Likewise.
51726         * lib/fwriteerror.c: Likewise.
51727         * lib/gl_array_list.c: Likewise.
51728         * lib/gl_array_oset.c: Likewise.
51729         * lib/gl_avltree_list.c: Likewise.
51730         * lib/gl_avltree_oset.c: Likewise.
51731         * lib/gl_avltreehash_list.c: Likewise.
51732         * lib/gl_carray_list.c: Likewise.
51733         * lib/gl_linked_list.c: Likewise.
51734         * lib/gl_linkedhash_list.c: Likewise.
51735         * lib/gl_list.c: Likewise.
51736         * lib/gl_oset.c: Likewise.
51737         * lib/gl_rbtree_list.c: Likewise.
51738         * lib/gl_rbtree_oset.c: Likewise.
51739         * lib/gl_rbtreehash_list.c: Likewise.
51740         * lib/imaxabs.c: Likewise.
51741         * lib/imaxdiv.c: Likewise.
51742         * lib/javacomp.c: Likewise.
51743         * lib/javaexec.c: Likewise.
51744         * lib/javaversion.c: Likewise.
51745         * lib/linebreak.c: Likewise.
51746         * lib/localcharset.c: Likewise.
51747         * lib/lock.c: Likewise.
51748         * lib/mbchar.c: Likewise.
51749         * lib/mbswidth.c: Likewise.
51750         * lib/mkdtemp.c: Likewise.
51751         * lib/pipe.c: Likewise.
51752         * lib/printf-args.c: Likewise.
51753         * lib/printf-parse.c: Likewise.
51754         * lib/progname.c: Likewise.
51755         * lib/progreloc.c: Likewise.
51756         * lib/readlink.c: Likewise.
51757         * lib/sh-quote.c: Likewise.
51758         * lib/stpcpy.c: Likewise.
51759         * lib/stpncpy.c: Likewise.
51760         * lib/strcasecmp.c: Likewise.
51761         * lib/strcasestr.c: Likewise.
51762         * lib/strcspn.c: Likewise.
51763         * lib/striconv.c: Likewise.
51764         * lib/strncasecmp.c: Likewise.
51765         * lib/strnlen1.c: Likewise.
51766         * lib/strstr.c: Likewise.
51767         * lib/strtok_r.c: Likewise.
51768         * lib/tls.c: Likewise.
51769         * lib/tmpdir.c: Likewise.
51770         * lib/unicodeio.c: Likewise.
51771         * lib/unsetenv.c: Likewise.
51772         * lib/vasnprintf.c: Likewise.
51773         * lib/vasprintf.c: Likewise.
51774         * lib/wait-process.c: Likewise.
51775         * lib/xallocsa.c: Likewise.
51776         * lib/xsetenv.c: Likewise.
51777         * lib/xstriconv.c: Likewise.
51778
51779 2006-09-13  Simon Josefsson  <jas@extundo.com>
51780
51781         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
51782         that internally, suggested by Ralf Wildenhues
51783         <Ralf.Wildenhues@gmx.de>.
51784
51785 2006-09-13  Simon Josefsson  <jas@extundo.com>
51786
51787         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
51788         @LIBOBJS@.
51789         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51790
51791 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51792
51793         * lib/_fpending.c: Include <config.h> unconditionally, since we no
51794         longer worry about uses that don't define HAVE_CONFIG_H.
51795         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
51796         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
51797         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
51798         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
51799         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
51800         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
51801         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
51802         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
51803         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
51804         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
51805         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
51806         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
51807         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
51808         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
51809         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
51810         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
51811         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
51812         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
51813         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
51814         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
51815         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
51816         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
51817         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
51818         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
51819         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
51820         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
51821         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
51822         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
51823         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
51824         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
51825         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
51826         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
51827         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
51828         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
51829         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
51830         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
51831         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
51832         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
51833         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
51834         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
51835         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
51836         Likewise.
51837
51838 2006-09-13  Eric Blake  <ebb9@byu.net>
51839
51840         * lib/getopt.c: Fix typo in last commit.
51841
51842 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51843
51844         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
51845         dgettext.
51846
51847 2006-09-12  Jim Meyering  <jim@meyering.net>
51848
51849         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
51850         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
51851         Reported by Nelson H. F. Beebe.
51852
51853 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51854
51855         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
51856         program_invocation_name and program_invocation_short_name are
51857         initialized.
51858         * lib/argp-namefrob.h: Move declarations of program_invocation_name
51859         and program_invocation_short_name to argp.h, so they are visible
51860         to user programs.
51861         * lib/argp.h: Likewise
51862
51863 2006-09-10  Bruno Haible  <bruno@clisp.org>
51864
51865         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51866         m4/inttypes_h.m4, m4/uintmax_t.m4.
51867
51868 2006-09-10  Bruno Haible  <bruno@clisp.org>
51869
51870         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
51871         gl_AC_TYPE_UINTMAX_T.
51872
51873 2006-09-10  Bruno Haible  <bruno@clisp.org>
51874
51875         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
51876
51877 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51878
51879         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
51880         convention.  Text proposed by Bruno Haible.
51881         (struct argp_option): Document the use of N_() wrappers.
51882
51883         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
51884         '\v', and translate the two parts separately, instead of feeding
51885         the whole string to gettext.  This allows to exclude
51886         '\v' from the strings visible to the translator by writing doc
51887         strings as N_("..") "\v" N_("..").
51888
51889 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
51890
51891         * config/srclist.txt: Undo latest change; the bug was fixed.
51892
51893 2006-09-09  Bruno Haible  <bruno@clisp.org>
51894
51895         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
51896         assignments if building a library without libtool.
51897         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
51898         in func_emit_lib_Makefile_am.
51899         (func_import): When building a static library libfoo.a, arrange to
51900         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
51901         (func_create_testdir): Likewise.
51902         * modules/gc (configure.ac, Makefile.am): If building statically,
51903         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
51904         * modules/iconvme (configure.ac, Makefile.am): Likewise.
51905         * modules/striconv (configure.ac, Makefile.am): Likewise.
51906         Based on a suggestion by Ralf Wildenhues.
51907
51908 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51909
51910         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51911         Check for unistd.h too, since Autoconf doesn't assume POSIX.
51912         Also:
51913
51914         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51915         Add year_2050_test to catch glibc bug 2821
51916         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51917
51918         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51919         Prefer #ifdef to #if.
51920
51921         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
51922         Return from 'main' instead of calling 'exit'.
51923
51924 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51925
51926         * lib/mktime.c (guess_time_tm): Fix bug where mktime
51927         returned the maximum time_t value rather than (time_t) -1.
51928         Problem originally reported by William Bardwell
51929         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51930
51931         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51932         Moved to here ...
51933         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51934         ... from here.
51935
51936 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51937
51938         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
51939         2821 is fixed.
51940
51941 2006-09-08  Jim Meyering  <jim@meyering.net>
51942
51943         Don't make generated files read-only.  That would bother too many
51944         people.  However, do retain the ability to work when targets are
51945         read-only: remove the destination and temporary files before writing
51946         them (when generated via sed or echo), or by using the -f option for
51947         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
51948         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51949         * modules/byteswap, modules/configmake, modules/fcntl:
51950         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51951         * modules/localcharset, modules/netinet_in, modules/poll:
51952         * modules/stdbool, modules/stdint, modules/sys_select:
51953         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51954
51955 2006-09-08  Jim Meyering  <jim@meyering.net>
51956
51957         Avoid new build failure on FreeBSD 6.0.
51958         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
51959         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
51960         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
51961
51962 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51963
51964         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
51965
51966 2006-09-07  Jim Meyering  <jim@meyering.net>
51967
51968         Fix global typo in last change: use chmod u-w, not chmod u-x.
51969         Spotted by Paul Eggert and Bruce Korb.
51970         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51971         * modules/byteswap, modules/configmake, modules/fcntl:
51972         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51973         * modules/localcharset, modules/netinet_in, modules/poll:
51974         * modules/stdbool, modules/stdint, modules/sys_select:
51975         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51976
51977 2006-09-06  Jim Meyering  <jim@meyering.net>
51978
51979         Make generated files be read-only.
51980         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
51981         Ensure that each generated file is now read-only.
51982         * modules/argz: Likewise.
51983         * modules/arpa_inet: Likewise.
51984         * modules/byteswap: Likewise.
51985         * modules/configmake: Likewise.
51986         * modules/fcntl: Likewise.
51987         * modules/fnmatch: Likewise.
51988         * modules/getopt: Likewise.
51989         * modules/glob: Likewise.
51990         * modules/inttypes: Likewise.
51991         * modules/netinet_in: Likewise.
51992         * modules/poll: Likewise.
51993         * modules/stdbool: Likewise.
51994         * modules/stdint: Likewise.
51995         * modules/sys_select: Likewise.
51996         * modules/sys_socket: Likewise.
51997         * modules/sys_stat: Likewise.
51998         * modules/sysexits: Likewise.
51999         * modules/localcharset: Same as above, but continue using temporary
52000         file named "t-$@" (why different?) rather than the "$@-t" used
52001         everywhere else.
52002
52003         * modules/sysexits (Makefile.am): Replace literal occurrences
52004         of "sysexit.h" more readable, and more consistent, "$@".
52005
52006 2006-09-06  Bruno Haible  <bruno@clisp.org>
52007
52008         * modules/striconv: New file.
52009         * modules/xstriconv: New file.
52010         * MODULES.html.sh (Internationalization functions): Add striconv,
52011         xstriconv.
52012
52013 2006-09-06  Bruno Haible  <bruno@clisp.org>
52014
52015         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
52016         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
52017         not using libtool correctly.
52018
52019 2006-09-06  Bruno Haible  <bruno@clisp.org>
52020
52021         * lib/striconv.h: New file.
52022         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
52023         iconvstring.c.
52024         * lib/xstriconv.h: New file.
52025         * lib/xstriconv.c: New file.
52026
52027 2006-09-06  Bruno Haible  <bruno@clisp.org>
52028
52029         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
52030         lib_..._LDFLAGS.
52031
52032 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52033
52034         * lib/argz_.h: Sync from Libtool.
52035
52036         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
52037                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52038
52039         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
52040
52041 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
52042
52043         * modules/trim: New file.
52044
52045 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
52046
52047         * lib/trim.h: New file.
52048         * lib/trim.c: New file.
52049
52050 2006-09-05  Bruno Haible  <bruno@clisp.org>
52051
52052         * MODULES.html.sh (String handling): Add trim.
52053
52054 2006-09-04  Karl Berry  <karl@gnu.org>
52055
52056         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
52057         until next release.
52058
52059 2006-09-03  Bruno Haible  <bruno@clisp.org>
52060
52061         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
52062         correctly.
52063
52064 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52065
52066         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
52067         not gl_GETLOADAVG.  Omit unneeded semicolons.
52068         Problems reported by Ralf Wildenhues in
52069         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
52070         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
52071         at the end, which is the usual gnulib style.
52072
52073         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
52074         of doing all the work ourselves.
52075         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
52076         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
52077
52078 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52079
52080         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
52081         Problem reported by Ralf Wildenhues in
52082         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
52083
52084         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
52085         HAVE_STRUCT_STATFS_F_FSTYPENAME.
52086
52087 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
52088
52089         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
52090         yesterday's patch by changing test -n to test -z.
52091
52092 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
52093
52094         * modules/getloadavg (Files): Add m4/getloadavg.m4.
52095         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
52096         the former is now obsolescent.
52097
52098         * modules/chdir-long (Depends-on): Add fcntl.
52099
52100 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
52101
52102         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
52103         obsolescent, and programs should use gnulib instead.
52104         * m4/getloadavg.m4: New file, with contents taken from Autoconf
52105         but with prefixes changed.
52106
52107 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
52108
52109         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
52110         or stdbool.h, because they might not exist while configuring.
52111
52112         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
52113         Don't include unistd.h or limits.h; not needed, since chdir-long.h
52114         does that for us.
52115         (O_DIRECTORY): Remove.
52116
52117 2006-08-31  Eric Blake  <ebb9@byu.net>
52118
52119         * gnulib-tool: Don't let emacs change spaces to TAB.
52120
52121 2006-08-31  Bruno Haible  <bruno@clisp.org>
52122
52123         * gnulib-tool: When calling func_import more than once, do it in a
52124         subshell.
52125         Reported by Eric Blake <ebb9@byu.net>.
52126
52127 2006-08-31  Bruno Haible  <bruno@clisp.org>
52128
52129         * gnulib-tool (nl): Remove variable.
52130         (sed_transform_lib_file): Use more robust test for config-h module.
52131         (func_import): Fix typo in 2006-08-25 patch.
52132
52133 2006-08-31  Bruno Haible  <bruno@clisp.org>
52134
52135         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
52136         specified, augment Makefile.am variables instead of assigning them.
52137
52138 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
52139
52140         Work around a bug in both the Linux and SunOS 64-bit kernels:
52141         nanosleep mishandles sleeps for longer than 2**31 seconds.
52142         Problem reported by Frank v Waveren in
52143         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
52144         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
52145         Check for nanosleep bug.
52146         (LIB_NANOSLEEP): Append clock_gettime library if needed.
52147
52148 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
52149
52150         Work around a bug in both the Linux and SunOS 64-bit kernels:
52151         nanosleep mishandles sleeps for longer than 2**31 seconds.
52152         Problem reported by Frank v Waveren in
52153         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
52154         * lib/nanosleep.c (BILLION): New constant.
52155         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
52156         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
52157         implementation.
52158
52159 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
52160
52161         * modules/nanosleep (Depends-on): Add gettime.
52162
52163 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
52164         and Simon Josefsson  <jas@extundo.com>
52165         and Oskar Liljeblad  <oskar@osk.mine.nu>
52166
52167         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
52168         * gnulib-tool (func_import): New license type 'unmodifiable license
52169         text'.
52170         * modules/fdl: Use it.  Longer description.
52171         * module/gpl, module/lgpl: New files.
52172
52173 2006-08-30  Jim Meyering  <jim@meyering.net>
52174
52175         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
52176         shadowing the parameter.
52177
52178 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52179
52180         Sync from Libtool:
52181
52182         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52183
52184         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
52185         sharing with gnulib.  Report by Eric Blake.
52186
52187 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
52188
52189         * modules/isapipe: New file.
52190         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
52191
52192 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
52193
52194         * modules/configmake (Makefile.am): Add a comment, and omit
52195         the CONFIGMAKE_ prefix from generated macro names.  Suggested
52196         by Bruno Haible.
52197
52198 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
52199
52200         * m4/isapipe.m4: New file.
52201
52202 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
52203
52204         * lib/isapipe.c, lib/isapipe.h: New files.
52205
52206 2006-08-29  Jim Meyering  <jim@meyering.net>
52207
52208         * modules/configmake (Makefile.am): Make configmake.h depend on
52209         Makefile.  Otherwise, a stale configmake.h could hang around.
52210
52211 2006-08-29  Eric Blake  <ebb9@byu.net>
52212
52213         * lib/error.c (error_at_line, print_errno_message): Match libc, after
52214         resolution of upstream bug 3044.
52215
52216 2006-08-29  Bruno Haible  <bruno@clisp.org>
52217
52218         * modules/localcharset (Depends-on): Add configmake.
52219         (Makefile.am): Remove setting of LIBDIR through DEFS.
52220
52221 2006-08-29  Bruno Haible  <bruno@clisp.org>
52222
52223         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
52224         defined.
52225
52226 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
52227
52228         * modules/fcntl: New file.
52229         * modules/chdir-safer (Depends-on): Add fcntl.
52230         * modules/fts: Likewise.
52231         * modules/mkdir-p: Likewise.
52232
52233         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
52234         This undoes the most recent change, since we're now addressing the
52235         problem in a different way.
52236
52237         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
52238         into output, since the output might be called Makefile.am even
52239         if $makefile_name is something different.
52240         (func_import): Use $makefile_am rather than
52241         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
52242         empty.
52243
52244         * modules/inttypes (Files): Add m4/inttypes-h.m4.
52245
52246 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
52247
52248         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
52249         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
52250         recent change to stdint.m4, since we're now addressing the problem in a
52251         different way.
52252
52253 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
52254
52255         * m4/fcntl_h.m4: New file.
52256
52257 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
52258
52259         * lib/fcntl_.h: New file.
52260         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
52261         the fcntl module.
52262         * lib/dirchownmod.c: Likewise.
52263         * lib/fts.c: Likewise.
52264
52265         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
52266         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
52267         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
52268         just before including <inttypes.h>, to avoid circular inclusion.
52269
52270 2006-08-28  Jim Meyering  <jim@meyering.net>
52271
52272         * doc/visibility.texi: Actually read and correct the grammar of the
52273         sentence affected by yesterday's change.
52274
52275 2006-08-28  Eric Blake  <ebb9@byu.net>
52276
52277         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
52278         needs wrapper.
52279
52280 2006-08-28  Eric Blake  <ebb9@byu.net>
52281
52282         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
52283
52284 2006-08-28  Eric Blake  <ebb9@byu.net>
52285
52286         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
52287
52288 2006-08-28  Bruno Haible  <bruno@clisp.org>
52289
52290         * modules/c-strstr: New file, from GNU gettext.
52291         * MODULES.html.sh (String handling): Add c-strstr.
52292
52293 2006-08-28  Bruno Haible  <bruno@clisp.org>
52294
52295         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
52296         macros.
52297         Reported by Eric Blake.
52298
52299 2006-08-28  Bruno Haible  <bruno@clisp.org>
52300
52301         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
52302         (VASNPRINTF): Return a string of length > INT_MAX without failing.
52303         * lib/vasprintf.c: Include errno.h, limits.h.
52304         (EOVERFLOW): New fallback definition.
52305         (vasprintf): Test here whether the string length is > INT_MAX.
52306         * lib/vsnprintf.c: Include errno.h, limits.h.
52307         (EOVERFLOW): New fallback definition.
52308         (vsnprintf): Fix bug when generated string was too long for the buffer.
52309         Test here whether the string length is > INT_MAX.
52310
52311 2006-08-28  Bruno Haible  <bruno@clisp.org>
52312
52313         * lib/inttypes_.h (SCNX*): Remove definitions.
52314         Reported by Eric Blake.
52315
52316 2006-08-28  Bruno Haible  <bruno@clisp.org>
52317
52318         * lib/c-strstr.h: New file, from GNU gettext.
52319         * lib/c-strstr.c: New file, from GNU gettext.
52320
52321 2006-08-28  Bruno Haible  <bruno@clisp.org>
52322
52323         * gnulib-tool: Reorder some statements.
52324
52325 2006-08-28  Bruno Haible  <bruno@clisp.org>
52326
52327         * gnulib-tool: New option --makefile-name.
52328         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
52329         $makefile_name.
52330         (func_import): Write $makefile_name to the cache file, and read it from
52331         there unless explicitly specified. Use $makefile_name as file name
52332         instead of Makefile.am. Adjust the recommendations accordingly.
52333
52334 2006-08-28  Bruno Haible  <bruno@clisp.org>
52335
52336         * gnulib-tool (func_verify_module): Check against misapplying patch.
52337
52338 2006-08-28  Bruno Haible  <bruno@clisp.org>
52339
52340         * gnulib-tool (func_relativize, func_relconcat): New functions.
52341         Give an error if --local-dir is given with --update.
52342         Remove trailing slashes from $local_gnulib_dir.
52343         (func_import): Store the relativized $local_gnulib_dir in
52344         gnulib-cache.m4, and read it from there if not specified explicitly.
52345
52346 2006-08-28  Bruno Haible  <bruno@clisp.org>
52347
52348         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
52349         is the current directory. Respect also $local_gnulib_dir.
52350
52351 2006-08-28  Bruno Haible  <bruno@clisp.org>
52352             Simon Josefsson  <jas@extundo.com>
52353
52354         BeOS portability.
52355         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
52356
52357 2006-08-27  Jim Meyering  <jim@meyering.net>
52358
52359         * doc/visibility.texi: Remove duplicate word: "pointer".
52360
52361 2006-08-26  Bruno Haible  <bruno@clisp.org>
52362
52363         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
52364         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
52365         (Makefile.am): Create inttypes.h from inttypes_.h.
52366         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
52367
52368         * modules/imaxabs: New file.
52369
52370         * modules/imaxdiv: New file.
52371
52372 2006-08-26  Bruno Haible  <bruno@clisp.org>
52373
52374         * m4/inttypes.m4: New file.
52375         * m4/_inttypes_h.m4: Remove file.
52376         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
52377         PRI_MACROS_BROKEN.
52378         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
52379
52380         * m4/imaxabs.m4: New file.
52381
52382         * m4/imaxdiv.m4: New file.
52383
52384 2006-08-26  Bruno Haible  <bruno@clisp.org>
52385
52386         * lib/inttypes_.h: New file.
52387         * lib/inttypes.h: Remove file.
52388         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
52389
52390         * lib/imaxabs.c: New file.
52391
52392         * lib/imaxdiv.c: New file.
52393
52394 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52395
52396         New config-h module, so that "make" output needn't be cluttered
52397         by -DHAVE_CONFIG_H.
52398         * MODULES.html.sh (Support for building libraries and executables):
52399         Add config-h.
52400         * modules/config-h: New file.
52401         * gnulib-tool (nl, sed_transform_lib_file): New vars.
52402         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
52403         the config-h module is used.
52404
52405         New configmake module, so that "make" output needn't be cluttered
52406         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
52407         * MODULES.html.sh (Support for building libraries and executables):
52408         Add configmake.
52409         * modules/configmake: New file.
52410
52411 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
52412
52413         * m4/config-h.m4: New file.
52414
52415 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52416
52417         * config/srclist.txt: Add elisp-comp.
52418
52419 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
52420
52421         * MODULES.html.sh (Support for building libraries and executables):
52422         Add elisp-comp.
52423         * build-aux/elisp-comp: New file.
52424         * modules/elisp-comp: New file.
52425
52426 2006-08-24  Bruno Haible  <bruno@clisp.org>
52427
52428         * gnulib-tool (func_create_testdir): Use non-default values of
52429         sourcebase and m4base.
52430
52431 2006-08-24  Bruno Haible  <bruno@clisp.org>
52432
52433         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
52434         HTML structure.
52435
52436 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
52437
52438         * modules/openat (Depends-on): Add lchown.
52439
52440 2006-08-23  Bruno Haible  <bruno@clisp.org>
52441
52442         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
52443         of gl_LOCK_EARLY instead of gl_LOCK.
52444
52445 2006-08-23  Bruno Haible  <bruno@clisp.org>
52446
52447         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
52448         on OSF/1 to no.
52449         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
52450
52451 2006-08-23  Bruno Haible  <bruno@clisp.org>
52452
52453         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
52454         as unusable.
52455
52456         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
52457         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
52458         (gl_LOCK): New macro.
52459
52460 2006-08-22  Simon Josefsson  <jas@extundo.com>
52461
52462         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
52463         to md5 module.
52464
52465 2006-08-22  Simon Josefsson  <jas@extundo.com>
52466
52467         * MODULES.html.sh: Add "Support for maintaining and release
52468         projects".
52469
52470         * build-aux/gnupload: New file, from coreutils.
52471
52472 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
52473
52474         Avoid the need for AC_LIBSOURCES in m4 macros.
52475         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
52476         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
52477         * modules/check-version (EXTRA_DIST): Add check-version.h.
52478         * modules/crc (EXTRA_DIST): Add crc.h.
52479         * modules/des (EXTRA_DIST): Add des.h.
52480         * modules/gc (EXTRA_DIST): Add gc.h.
52481         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
52482         * modules/getline (EXTRA_DIST): Add getline.h.
52483         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
52484         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
52485         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
52486         * modules/md2 (EXTRA_DIST): Add md2.h.
52487         * modules/md4 (EXTRA_DIST): Add md4.h.
52488         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
52489         * modules/read-file (EXTRA_DIST): Add read-file.h.
52490         * modules/readline (EXTRA_DIST): Add readline.h.
52491         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
52492         rijndael-api-fst.h.
52493
52494 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
52495
52496         * m4/rijndael.m4 (gl_ARCFOUR):
52497         * m4/arctwo.m4 (gl_ARCTWO):
52498         * m4/check-version.m4 (gl_CHECK_VERSION):
52499         * m4/crc.m4 (gl_CRC):
52500         * m4/des.m4 (gl_DES):
52501         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
52502         * m4/gc.m4 (gl_GC):
52503         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
52504         * m4/getline.m4 (gl_FUNC_GETLINE):
52505         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
52506         * m4/hmac-md5.m4 (gl_HMAC_MD5):
52507         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
52508         * m4/md2.m4 (gl_MD2):
52509         * m4/md4.m4 (gl_MD4):
52510         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
52511         * m4/read-file.m4 (gl_FUNC_READ_FILE):
52512         * m4/readline.m4 (gl_FUNC_READLINE):
52513         * m4/rijndael.m4 (gl_RIJNDAEL):
52514         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
52515         to get the necessary .h files and whatnot.
52516
52517 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
52518
52519         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
52520         gnulib rather than the other way around.
52521         * config/srclistvars.sh (COREUTILS): Remove.
52522
52523 2006-08-22  Jim Meyering  <jim@meyering.net>
52524
52525         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
52526
52527         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
52528
52529 2006-08-22  Eric Blake  <ebb9@byu.net>
52530
52531         * modules/regexprops-generic: New file.
52532         * MODULES.html.sh (Support for building documentation): List it.
52533
52534 2006-08-22  Eric Blake  <ebb9@byu.net>
52535
52536         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
52537         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52538         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
52539         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
52540
52541 2006-08-22  Bruno Haible  <bruno@clisp.org>
52542
52543         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
52544         and lib_LTLIBRARIES like the other lib_* variables.
52545
52546 2006-08-22  Bruno Haible  <bruno@clisp.org>
52547
52548         * build-aux/x-to-1.in: New file, from GNU gettext.
52549
52550 2006-08-22  Bruno Haible  <bruno@clisp.org>
52551
52552         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
52553         <utmpx.h> exists.
52554
52555 2006-08-22  Bruno Haible  <bruno@clisp.org>
52556
52557         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
52558         <utmpx.h> exists.
52559
52560 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52561
52562         BeOS portability.
52563         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
52564         exist.
52565         Problem reported by Bruno Haible.
52566
52567 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52568
52569         Avoid the need for AC_LIBSOURCES in m4 macros.
52570         * modules/acl (EXTRA_DIST): Add acl.h.
52571         * modules/argmatch (Files): Add m4/argmatch.m4.
52572         (configure.ac): Add gl_ARGMATCH.
52573         (EXTRA_DIST): Renamed from lib_SOURCES, for
52574         consistency with the other modules.  Remove argmatch.c.
52575         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
52576         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
52577         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
52578         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
52579         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
52580         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
52581         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
52582         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
52583         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
52584         * modules/closeout (EXTRA_DIST): Add closeout.h.
52585         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
52586         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
52587         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
52588         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
52589         dirname.h; remove basename.c and stripslash.c.
52590         * modules/exclude (EXTRA_DIST): Add exclude.h.
52591         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
52592         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
52593         * modules/file-type (EXTRA_DIST): Add file-type.h.
52594         * modules/filemode (EXTRA_DIST): Add filemode.h.
52595         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
52596         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52597         * modules/fpending (EXTRA_DIST): Add __fpending.h.
52598         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
52599         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
52600         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
52601         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
52602         * modules/getdate (EXTRA_DIST): Add getdate.c.
52603         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
52604         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
52605         * modules/getpass (EXTRA_DIST): Add getpass.h.
52606         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
52607         * modules/group-member (EXTRA_DIST): Add group-member.h.
52608         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
52609         * modules/hash (EXTRA_DIST): Add hash.h.
52610         * modules/human (EXTRA_DIST): Add human.h.
52611         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
52612         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
52613         * modules/lchown (EXTRA_DIST): Add lchown.h.
52614         * modules/long-options (EXTRA_DIST): Add long-options.h.
52615         * modules/lstat (EXTRA_DIST): Add lstat.h.
52616         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
52617         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
52618         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
52619         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
52620         * modules/memxor (EXTRA_DIST): Add memxor.h.
52621         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
52622         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
52623         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
52624         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
52625         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
52626         * modules/physmem (EXTRA_DIST): Add physmem.h.
52627         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
52628         * modules/posixver (EXTRA_DIST): Add posixver.h.
52629         * modules/quote (EXTRA_DIST): Add quote.h.
52630         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
52631         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
52632         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
52633         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
52634         regex_internal.h regexec.c.
52635         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
52636         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
52637         * modules/same (EXTRA_DIST): Add same.h.
52638         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
52639         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
52640         * modules/savedir (EXTRA_DIST): Add savedir.h.
52641         * modules/sha1 (EXTRA_DIST): Add sha1.h.
52642         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
52643         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
52644         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
52645         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
52646         * modules/strdup (EXTRA_DIST): Add strdup.h.
52647         * modules/strftime (EXTRA_DIST): Add strftime.h.
52648         * modules/strndup (EXTRA_DIST): Add strndup.h.
52649         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
52650         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
52651         * modules/time_r (EXTRA_DIST): Add time_r.h.
52652         * modules/timespec (EXTRA_DIST): Add timespec.h.
52653         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52654         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
52655         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
52656         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
52657         * modules/userspec (EXTRA_DIST): Add userspec.h.
52658         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
52659         * modules/utimens (EXTRA_DIST): Add utimens.h.
52660         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
52661         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
52662         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
52663         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
52664         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
52665         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
52666         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
52667         * modules/yesno (EXTRA_DIST): Add yesno.h.
52668
52669 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52670
52671         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
52672
52673         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
52674         * m4/dev-ino.m4, same-inode.m4: Remove.
52675
52676         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
52677         * m4/acl.m4 (AC_FUNC_ACL):
52678         * m4/backupfile.m4 (gl_BACKUPFILE):
52679         * m4/c-strtod.m4 (gl_C99_STRTOLD):
52680         * m4/canon-host.m4 (gl_CANON_HOST):
52681         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
52682         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
52683         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
52684         * m4/cloexec.m4 (gl_CLOEXEC):
52685         * m4/close-stream.m4 (gl_CLOSE_STREAM):
52686         * m4/closeout.m4 (gl_CLOSEOUT):
52687         * m4/dirfd.m4 (gl_FUNC_DIRFD):
52688         * m4/dirname.m4 (gl_DIRNAME):
52689         * m4/exclude.m4 (gl_EXCLUDE):
52690         * m4/exitfail.m4 (gl_EXITFAIL):
52691         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
52692         * m4/file-type.m4 (gl_FILE_TYPE):
52693         * m4/filemode.m4 (gl_FILEMODE):
52694         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
52695         * m4/fpending.m4 (gl_FUNC_FPENDING):
52696         * m4/fprintftime.m4 (gl_FPRINTFTIME):
52697         * m4/fts.m4 (gl_FUNC_FTS):
52698         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
52699         * m4/getdate.m4 (gl_GETDATE):
52700         * m4/gethrxtime.m4 (gl_GETHRXTIME):
52701         * m4/getpagesize.m4 (gl_GETPAGESIZE):
52702         * m4/getpass.m4 (gl_FUNC_GETPASS):
52703         * m4/gettime.m4 (gl_GETTIME):
52704         * m4/getugroups.m4 (gl_GETUGROUPS):
52705         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
52706         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
52707         * m4/hard-locale.m4 (gl_HARD_LOCALE):
52708         * m4/hash.m4 (gl_HASH):
52709         * m4/idcache.m4 (gl_IDCACHE):
52710         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
52711         * m4/lchown.m4 (gl_FUNC_LCHOWN):
52712         * m4/long-options.m4 (gl_LONG_OPTIONS):
52713         * m4/lstat.m4 (gl_FUNC_LSTAT):
52714         * m4/md5.m4 (gl_MD5):
52715         * m4/memcasecmp.m4 (gl_MEMCASECMP):
52716         * m4/memcoll.m4 (gl_MEMCOLL):
52717         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
52718         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
52719         * m4/memxor.m4 (gl_MEMXOR):
52720         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
52721         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
52722         * m4/modechange.m4 (gl_MODECHANGE):
52723         * m4/mountlist.m4 (gl_MOUNTLIST):
52724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52725         * m4/openat.m4 (gl_FUNC_OPENAT):
52726         * m4/pathmax.m4 (gl_PATHMAX):
52727         * m4/physmem.m4 (gl_PHYSMEM):
52728         * m4/posixtm.m4 (gl_POSIXTM):
52729         * m4/posixver.m4 (gl_POSIXVER):
52730         * m4/quote.m4 (gl_QUOTE):
52731         * m4/quotearg.m4 (gl_QUOTEARG):
52732         * m4/readtokens.m4 (gl_READTOKENS):
52733         * m4/readutmp.m4 (gl_READUTMP):
52734         * m4/regex.m4 (gl_REGEX):
52735         * m4/safe-read.m4 (gl_SAFE_READ):
52736         * m4/safe-write.m4 (gl_SAFE_WRITE):
52737         * m4/same.m4 (gl_SAME):
52738         * m4/save-cwd.m4 (gl_SAVE_CWD):
52739         * m4/savedir.m4 (gl_SAVEDIR):
52740         * m4/settime.m4 (gl_SETTIME):
52741         * m4/sha1.m4 (gl_SHA1):
52742         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
52743         * m4/stat-macros.m4 (gl_STAT_MACROS):
52744         * m4/stat-time.m4 (gl_STAT_TIME):
52745         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
52746         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
52747         * m4/strdup.m4 (gl_FUNC_STRDUP):
52748         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
52749         * m4/strndup.m4 (gl_FUNC_STRNDUP):
52750         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
52751         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
52752         * m4/time_r.m4 (gl_TIME_R):
52753         * m4/timespec.m4 (gl_TIMESPEC):
52754         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
52755         * m4/unlinkdir.m4 (gl_UNLINKDIR):
52756         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
52757         * m4/userspec.m4 (gl_USERSPEC):
52758         * m4/utimecmp.m4 (gl_UTIMECMP):
52759         * m4/utimens.m4 (gl_UTIMENS):
52760         * m4/xalloc.m4 (gl_XALLOC):
52761         * m4/xgetcwd.m4 (gl_XGETCWD):
52762         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
52763         * m4/xreadlink.m4 (gl_XREADLINK):
52764         * m4/xstrtod.m4 (gl_XSTRTOD):
52765         * m4/yesno.m4 (gl_YESNO):
52766         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
52767         to get the necessary .h files and whatnot.
52768
52769 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
52770             Bruno Haible  <bruno@clisp.org>
52771
52772         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
52773         /bin/sh understanding of '!' conditional negation.
52774
52775 2006-08-21  Jim Meyering  <jim@meyering.net>
52776
52777         * modules/openat (Depends-on): Really alphabetize.
52778
52779         * modules/acl (Depends-on): Add error and quote.
52780
52781         * check-module (find_included_lib_files): Add at-func.c to the
52782         ok-to-include-more-than-once white list.
52783
52784         * modules/openat (Depends-on): Add lstat.  Alphabetize.
52785
52786 2006-08-21  Bruno Haible  <bruno@clisp.org>
52787
52788         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52789         Emit a pkgdata_DATA variable only if some snippets add contents to it.
52790         Reported by Martin Lambers <marlam@marlam.de>.
52791
52792 2006-08-21  Bruno Haible  <bruno@clisp.org>
52793
52794         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
52795         specify an installation location, don't emit a noinst_LIBRARIES or
52796         noinst_LTLIBRARIES assignment.
52797
52798 2006-08-21  Bruno Haible  <bruno@clisp.org>
52799
52800         BeOS portability.
52801         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
52802         BeOS has mbrtowc() but no <wctype.h>.
52803
52804 2006-08-21  Bruno Haible  <bruno@clisp.org>
52805
52806         BeOS portability.
52807         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
52808         exist.
52809
52810 2006-08-21  Bruno Haible  <bruno@clisp.org>
52811
52812         BeOS portability.
52813         * lib/mbchar.h: Include <wctype.h> only if it exists.
52814
52815 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52816
52817         Remove files that are no longer needed by their respective modules.
52818         * m4/obstack.m4: Remove.
52819         * m4/strerror_r.m4: Remove.
52820         * m4/uint32_t.m4: Remove.
52821         * m4/uintptr_t.m4: Remove.
52822         * m4/ullong_max.m4: Remove.
52823         * m4/xstrtoimax.m4: Remove.
52824         * m4/xstrtoumax.m4: Remove.
52825
52826         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
52827         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
52828         dependencies now capture this.
52829
52830         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
52831         Do not use AC_LIBSOURCES, since gnulib modules now do this.
52832         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
52833         * m4/human.m4 (gl_HUMAN): Likewise.
52834         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
52835         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
52836
52837         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
52838
52839         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
52840         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
52841         stdint.
52842         * m4/human.m4 (gl_HUMAN): Likewise.
52843         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
52844         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
52845         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52846         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52847         * m4/xstrtol (gl_XSTRTOL): Likewise.
52848
52849         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
52850         AC_TYPE_LONG_LONG_INT.
52851         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52852         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
52853         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
52854         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52855
52856         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
52857         on stdbool.
52858
52859         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
52860         (gl_PREREQ_XSTRTOUL): Remove.
52861
52862         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
52863
52864         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
52865         mode.
52866
52867 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52868
52869         Add and change modules to make it easier for coreutils to use
52870         gnulib-tool.
52871         * modules/backupfile (Files): Remove m4/d-ino.m4.
52872         (Depends-on): Add d-ino.
52873         * modules/cycle-check (Depends-on): Add stdint.
52874         (lib_SOURCES): Add cycle-check.h.
52875         * modules/d-ino: New module.
52876         * modules/d-type: New module.
52877         * modules/error (Files): Remove m4/strerror_r.m4.
52878         * modules/filemode (Files): Add m4/st_dm_mode.m4.
52879         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52880         m4/inttypes_h.m4, m4/uintmax_t.m4.
52881         (Depends-on): Add stdint.
52882         (lib_SOURCES): Add fsusage.h.
52883         * modules/getcwd (Files): Remove d-ino.m4.
52884         (Depends-on): Add d-ino.
52885         * modules/getndelim2 (Depends-on): Add stdint.
52886         * modules/glob (Files): Remove m4/d-type.m4.
52887         (Depends-on): Add d-type.
52888         * modules/host-os: New module.
52889         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
52890         m4/inttypes_h.m4, m4/uintmax_t.m4.
52891         * Depends-on: Add stdint.
52892         (lib_SOURCES): Add human.h.
52893         * modules/inttostr (Files): Remove m4/intmax_t.m4,
52894         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
52895         m4/uintmax_t.m4, m4/ulonglong.m4.
52896         (Depends-on): Add stdint.
52897         (EXTRA_DIST): Add inttostr.h.
52898         * modules/lchmod: New module.
52899         * modules/link-follow: New module.
52900         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
52901         (Depends-on): Add lchmod.
52902         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
52903         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
52904         (Depends-on): Add stdint.
52905         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
52906         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
52907         (Depends-on): Add stdint.
52908         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
52909         * modules/perl: New module.
52910         * modules/regex (Depends-on): Add stdint.
52911         * modules/rmdir-errno: New module.
52912         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52913         m4/intmax_t.m4.
52914         (Depends-on): Add stdint.
52915         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52916         m4/uintmax_t.m4.
52917         (Depends-on): Add stdint.
52918         * modules/unlink-busy: New module.
52919         * modules/utimecmp (Depends-on): Add stdint.
52920         * modules/uptime: New module.
52921         * modules/winsz-ioctl: New module.
52922         * modules/winsz-termios: New module.
52923         * modules/xnanosleep (Depends-on): Add nanosleep.
52924         * modules/ullong_max: Remove.
52925         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
52926         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
52927         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
52928         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
52929         (Depends-on): Add inttypes.
52930         (lib_SOURCES): Add xstrtol.h.
52931         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
52932         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
52933         * MODULES.html.sh: Move 'assert' into the assert section.
52934         Move 'dummy' into the linking section.
52935         Remove ullong_max.
52936         Add section for compatibility checks for POSIX:2001 functions,
52937         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
52938         winsz-ioctl, and winsz-termios into it.
52939         Add lchmod.
52940         Add top-level Misc section and put host-os, perl, and uptime
52941         into it.
52942
52943 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52944
52945         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
52946         now assume the stdint module.  Do not include inttypes.h.
52947         * lib/fsusage.h: Likewise.
52948         * lib/getndelim2.c: Likewise.
52949         * lib/human.h: Likewise.
52950         * lib/inttostr.h: Likewise.
52951         * lib/obstack.c: Likewise.
52952         * lib/regex_internal.h: Likewise.
52953         * lib/tempname.c: Likewise.
52954         * lib/utimecmp.c: Likewise.
52955         * lib/xstrtol.h: Likewise.
52956
52957         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
52958
52959         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
52960         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
52961         * lib/xtime.h: Likewise.
52962
52963 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52964
52965         * modules/openat (Files): Add lib/fchmodat.c.
52966         Fixes problem reported by Jay Youngman.
52967
52968 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52969
52970         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
52971         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
52972
52973 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
52974             Bruno Haible  <bruno@clisp.org>
52975
52976         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
52977         and is a script that invokes bison. Tighten the code. Add comments.
52978
52979 2006-08-18  Jim Meyering  <jim@meyering.net>
52980
52981         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
52982         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
52983         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
52984         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
52985
52986 2006-08-18  Bruno Haible  <bruno@clisp.org>
52987
52988         * modules/bison-i18n: New file.
52989         * MODULES.html.sh (Internationalization functions): Add it.
52990
52991 2006-08-18  Bruno Haible  <bruno@clisp.org>
52992
52993         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
52994         sys/statvfs.h. When getmntinfo was found, check its declaration and
52995         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
52996
52997 2006-08-18  Bruno Haible  <bruno@clisp.org>
52998
52999         * m4/bison-i18n.m4: New file, from bison.
53000
53001 2006-08-18  Bruno Haible  <bruno@clisp.org>
53002
53003         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
53004         (ME_DUMMY): Treat "kernfs" as a dummy.
53005         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
53006
53007 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53008
53009         Update from coreutils.
53010
53011         2006-08-15  Jim Meyering  <jim@meyering.net>
53012
53013         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
53014
53015         2006-01-17  Jim Meyering  <jim@meyering.net>
53016
53017         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
53018
53019         2006-01-11  Jim Meyering  <jim@meyering.net>
53020
53021         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
53022         Check for the lchmod function.
53023
53024 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53025
53026         Update from coreutils.
53027
53028         * lib/__fpending.h: Add copyright notice.
53029         * lib/fprintftime.h: Likewise.
53030         * lib/savedir.c: Use (C) in copyright notice.
53031         * lib/savedir.h: Likewise.
53032
53033         2006-08-15  Jim Meyering  <jim@meyering.net>
53034
53035         * lib/at-func.c: New file, with the logic of all emulated at-functions.
53036         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
53037         in support of the EXPECTED_ERRNO macro.
53038         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
53039         definitions.  Instead, define the appropriate symbols and include
53040         "at-func.c".
53041         * lib/mkdirat.c (mkdirat): Likewise.
53042         * lib/fchmodat.c (fchmodat): Likewise.
53043         (ENOSYS): Remove definition.
53044         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
53045         it.  Don't include "unistd--.h" -- it wasn't ever used.
53046
53047         2006-01-17  Jim Meyering  <jim@meyering.net>
53048
53049         Rewrite fts.c not to change the current working directory,
53050         by using openat, fstatat, fdopendir, etc..
53051
53052         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
53053         (HAVE_OPENAT_SUPPORT): Define.
53054         [_LIBC] (fchdir): Don't undef or define; no longer used.
53055         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
53056         Now, this `function' always succeeds, and consumes its file descriptor
53057         parameter -- so callers must not close such FDs.  Update callers.
53058         (diropen_fd, opendirat, cwd_advance_fd): New functions.
53059         (diropen): Add parameter, SP.  Adjust all callers.
53060         Implement using diropen_fd, rather than open.
53061         (fts_open): Initialize new member, fts_cwd_fd.
53062         Remove fts_rft-setting code.
53063         (fts_close): Close fts_cwd_fd, if necessary.
53064         (__opendir2): Define in terms of opendir or opendirat,
53065         depending on whether the FST_NOCHDIR flag is set.
53066         (fts_build): Since fts_safe_changedir consumes its FD, and since
53067         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
53068         and close the dup'd file descriptor upon failure.
53069         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
53070         (fts_safe_changedir): Tweak semantics to reflect that this function
53071         now calls cwd_advance_fd and hence consumes its FD argument.
53072         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
53073         [struct FTS] (fts_rft): Remove now-unused member.
53074         [struct FTS] (fts_cycle.state): Improve comment.
53075
53076         * lib/openat.c (openat_needs_fchdir): New function.
53077         * lib/openat.h (openat_needs_fchdir): Declare it.
53078
53079 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
53080
53081         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
53082         Problem and fix reported by Pádraig Brady in
53083         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
53084
53085 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53086
53087         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
53088
53089 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53090
53091         * lib/memcoll.c (memcoll): Optimize for the common case where the
53092         arguments are bytewise equal.
53093
53094 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53095
53096         * doc/regexprops-generic.texi: Add a copyright notice.
53097
53098 2006-08-15  Bruno Haible  <bruno@clisp.org>
53099
53100         * modules/tmpdir (License): Change to LGPL.
53101
53102 2006-08-15  Bruno Haible  <bruno@clisp.org>
53103
53104         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
53105         module.
53106
53107 2006-08-14  Simon Josefsson  <jas@extundo.com>
53108
53109         * config/srclist.txt: Add gnupload.
53110
53111 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53112
53113         Change copyright notice from LGPL 2 to GPL 2, since that's the
53114         standard form used in the gnulib repository.
53115         * tests/test-lock.c: Likewise.
53116         * tests/test-stdint.c: Likewise.
53117         * tests/test-tls.c: Likewise.
53118
53119         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
53120         prelude-manager.  User shorter URLs for GNU projects, without '?'.
53121         Add copyright notice.
53122
53123         * check-module: Add copyright notice.  Output a copyright
53124         notice if "--version" is specified.
53125         * modules/COPYING: New file.
53126         * tests/test-getaddrinfo.c: Add copyright notice.
53127         * tests/test-verify.c: Likewise.
53128
53129 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53130
53131         Change copyright notice from LGPL 2 to GPL 2, since that's the
53132         standard form used in the gnulib repository.
53133         * lib/lock.c: LGPL -> GPL.
53134         * lib/lock.h: Likewise.
53135         * lib/strnlen1.c: Likewise.
53136         * lib/strnlen1.h: Likewise.
53137         * lib/tls.c: Likewise.
53138         * lib/tls.h: Likewise.
53139         * lib/tmpdir.c: Likewise.
53140
53141         * lib/TODO: Remove; this belongs only in coreutils.
53142
53143 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53144
53145         Add copyright notices to long-enough files that lack them, since
53146         otherwise the files aren't clearly free.  Use the same notice that
53147         getdate.texi already uses.
53148         * doc/alloca-opt.texi: Add copyright notice.
53149         * doc/alloca.texi: Likewise.
53150         * doc/ctime.texi: Likewise.
53151         * doc/functions.texi: Likewise.
53152         * doc/gcd.texi: Likewise.
53153         * doc/gnulib-tool.texi: Likewise.
53154         * doc/inet_ntoa.texi: Likewise.
53155         * doc/visibility.texi: Likewise.
53156
53157         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
53158         * doc/quote.texi: Add copyright notice.
53159
53160         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
53161         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
53162         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
53163         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
53164         is now obsolete, and give a pointer to the Sun list.
53165         Add copyright notice.
53166
53167 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53168
53169         * config/srclistvars.sh: Add copyright notice.
53170
53171 2006-08-14  Eric Blake  <ebb9@byu.net>
53172
53173         Import the following change from libc:
53174
53175         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
53176
53177         Upstream bug 2997.
53178         * lib/misc/error.c: Add space between program name and message if file
53179         name is missing.
53180
53181 2006-08-12  Karl Berry  <karl@gnu.org>
53182
53183         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
53184         remove, these originate in gnulib now.
53185
53186 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53187
53188         * doc/Makefile (standards.info standards.html standards.dvi):
53189         Also depend on make-stds.texi.
53190
53191 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53192
53193         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
53194         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
53195
53196         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
53197         in wchar_t.  Problem reported by Eric Blake.
53198
53199         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
53200         LEN is smaller than SIZE.  Suggested by Bruno Haible.
53201         Also, help the compiler to keep LEN in a register.
53202
53203 2006-08-11  Eric Blake  <ebb9@byu.net>
53204
53205         * users.txt: Sort.  Add tar.
53206
53207 2006-08-11  Bruno Haible  <bruno@clisp.org>
53208
53209         * users.txt: New file.
53210
53211 2006-08-11  Bruno Haible  <bruno@clisp.org>
53212
53213         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
53214         before <wchar.h>. Needed for OSF/1 and BSD/OS.
53215
53216 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53217
53218         * modules/snprintf (Depends-on): Remove minmax.
53219         (Maintainer): Add self and Bruno.
53220
53221 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53222
53223         * lib/.cppi-disable: Add snprintf.h, socket_.h.
53224         * lib/snprintf.c: Include <errno.h> and <limits.h>.
53225         (EOVERFLOW): Define if the system does not.
53226         Do not include "minmax.h"; it wasn't used.
53227         (snprintf): Don't assume size_t promotes to an unsigned type.
53228         Fix bug when generated string was too long for the buffer: the
53229         buffer's contents are supposed to be the initial prefix of the
53230         output.  Don't assume vasnprintf returns EOVERFLOW if the size
53231         exceeds INT_MAX; do the check ourselves.
53232
53233         Import the following changes from libc:
53234
53235         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
53236
53237         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
53238         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
53239         set wc to the byte which couldn't be converted.
53240         (re_string_reconstruct): Don't clear valid_raw_len before calling
53241         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
53242         tip_context using re_string_context_at.
53243
53244         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
53245
53246         * lib/posix/regex.h: g++ still cannot handled [restrict].
53247
53248         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
53249
53250         * lib/posix/regex.h: Remove special handling for VMS.
53251
53252 2006-08-10  Jim Meyering  <jim@meyering.net>
53253
53254         * modules/same-inode: New module.
53255         * modules/dev-ino: New module.
53256         * modules/cycle-check: Depend on these modules, rather than simply
53257         including their .h files.
53258         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
53259         required via m4/cycle-check.m4.
53260         * modules/same: Depend on new same-inode module, rather than
53261         including same-inode.h.
53262         * modules/chdir-safer: New file.
53263
53264         * modules/chown (Depends-on): Add stat-macros.
53265
53266 2006-08-10  Jim Meyering  <jim@meyering.net>
53267
53268         * m4/cycle-check.m4: New file.
53269         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
53270         * m4/dev-ino.m4, m4/same-inode.m4: New files.
53271
53272 2006-08-10  Eric Blake  <ebb9@byu.net>
53273
53274         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
53275         in from original proposal.
53276
53277 2006-08-10  Eric Blake  <ebb9@byu.net>
53278         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
53279
53280         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
53281         namespace.
53282
53283 2006-08-10  Bruno Haible  <bruno@clisp.org>
53284
53285         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
53286         as well.
53287
53288 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53289
53290         Sync from coreutils.
53291
53292         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
53293
53294         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
53295         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
53296
53297 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53298
53299         * modules/restrict: Remove; no longer needed now that we assume
53300         Autoconf 2.59 or later.
53301         * MODULES.html.sh: Remove 'restrict'.
53302         * modules/argp (Depends-on): Remove 'restrict'.
53303         * modules/base64 (Depends-on): Likewise.
53304         * modules/gc (Depends-on): Likewise.
53305         * modules/getaddrinfo (Depends-on): Likewise.
53306         * modules/glob (Depends-on): Likewise.
53307         * modules/inet_ntop (Depends-on): Likewise.
53308         * modules/inet_pton (Depends-on): Likewise.
53309         * modules/memxor (Depends-on): Likewise.
53310         * modules/regex (Depends-on): Likewise.
53311         * modules/strtok_r (Depends-on): Likewise.
53312         * modules/time_r (Depends-on): Likewise.
53313
53314 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53315
53316         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
53317         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
53318         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53319         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
53320         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
53321         * m4/memxor.m4 (gl_MEMXOR): Likewise.
53322         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
53323         gl_C_RESTRICT replaced by AC_C_RESTRICT.
53324
53325         Merge from coreutils.
53326         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
53327         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
53328         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53329         * m4/time_r.m4 (gl_TIME_R): Likewise.
53330
53331 2006-08-09  Karl Berry  <karl@gnu.org>
53332
53333         * config/srclist.txt: no more gettext-tools, per Bruno.
53334
53335 2006-08-08  Eric Blake  <ebb9@byu.net>
53336
53337         * modules/verror: New module.
53338         * MODULES.html.sh: Document it.
53339
53340 2006-08-08  Eric Blake  <ebb9@byu.net>
53341
53342         * lib/verror.h, lib/verror.c: New files.
53343
53344 2006-08-08  Eric Blake  <ebb9@byu.net>
53345
53346         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
53347         verror_at_line output complies with GNU Coding Standards even when
53348         file is NULL.
53349
53350 2006-08-07  Bruno Haible  <bruno@clisp.org>
53351
53352         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
53353         versions of AIX.
53354         Reported by Ralf Wildenhues.
53355
53356 2006-08-07  Bruno Haible  <bruno@clisp.org>
53357
53358         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
53359         in an AC_DEFUN. Needed so that the autoconf snippets can use
53360         AC_REQUIRE.
53361
53362 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53363
53364         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53365         Initialize pkgdata_DATA.
53366         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
53367         overriding it.
53368
53369 2006-08-06  Eric Blake  <ebb9@byu.net>
53370
53371         * lib/error.h: Fold in some upstream changes from glibc.
53372         * lib/error.c: Likewise.
53373
53374 2006-08-04  Bruno Haible  <bruno@clisp.org>
53375
53376         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53377         Make the mostlyclean-local rule depend on mostlyclean-generic.
53378         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
53379
53380 2006-07-31  Bruno Haible  <bruno@clisp.org>
53381
53382         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
53383         <stdlib.h>, <string.h>.
53384
53385 2006-07-30  Bruno Haible  <bruno@clisp.org>
53386
53387         * modules/readlink (License): Change to LGPL.
53388
53389 2006-07-30  Bruno Haible  <bruno@clisp.org>
53390
53391         * modules/javaversion (Makefile.am): Distribute javaversion.java and
53392         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
53393         set PKGDATADIR to point to it.
53394
53395 2006-07-30  Bruno Haible  <bruno@clisp.org>
53396
53397         * modules/csharpexec (configure.ac): Comment out macro invocation.
53398         * modules/javaexec (configure.ac): Likewise.
53399         * modules/javacomp-script (configure.ac): Likewise.
53400
53401         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
53402
53403 2006-07-30  Bruno Haible  <bruno@clisp.org>
53404
53405         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
53406         linked-list.
53407
53408 2006-07-30  Bruno Haible  <bruno@clisp.org>
53409
53410         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
53411
53412 2006-07-30  Bruno Haible  <bruno@clisp.org>
53413
53414         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53415         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
53416         get removed.
53417
53418 2006-07-29  Bruno Haible  <bruno@clisp.org>
53419
53420         Make it possible for gnulib-tool to work with locally modified or
53421         augmented gnulib repositories.
53422         * gnulib-tool (func_usage): Document --local-dir option.
53423         (local_gnulib_dir): New variable.
53424         Handle --local-dir option.
53425         (func_lookup_file): New function.
53426         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
53427         (func_get_description, func_get_filelist, func_get_description,
53428         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
53429         func_get_automake_snippet, func_get_include_directive,
53430         func_get_license, func_get_maintainer): Use func_lookup_file.
53431         (func_import, func_create_testdir): Use func_lookup_file.
53432
53433 2006-07-29  Bruno Haible  <bruno@clisp.org>
53434
53435         * modules/setenv (Depends-on): Add unistd.
53436
53437 2006-07-29  Bruno Haible  <bruno@clisp.org>
53438
53439         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
53440
53441 2006-07-29  Bruno Haible  <bruno@clisp.org>
53442
53443         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
53444
53445 2006-07-29  Bruno Haible  <bruno@clisp.org>
53446
53447         * gnulib-tool (import, update): If there is no Makefile.am, look at
53448         aclocal.m4, instead of bailing out.
53449
53450 2006-07-29  Bruno Haible  <bruno@clisp.org>
53451
53452         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
53453         Categorize the options by when they are useful.
53454
53455 2006-07-29  Bruno Haible  <bruno@clisp.org>
53456
53457         * gnulib-tool (func_usage): Document option --no-libtool.
53458         Handle option --no-libtool.
53459         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
53460         for changed semantics of $libtool variable.
53461         (func_import): Likewise. If libtool is not used, show this through
53462         an option --no-libtool.
53463         (func_create_testdir): Update.
53464
53465 2006-07-29  Bruno Haible  <bruno@clisp.org>
53466
53467         * gnulib-tool (func_import): Extend error message about missing
53468         --doc-base.
53469
53470 2006-07-29  Bruno Haible  <bruno@clisp.org>
53471
53472         * gnulib-tool (func_import): Don't create the $docbase directory if
53473         there is no file to store there.
53474
53475 2006-07-29  Bruno Haible  <bruno@clisp.org>
53476
53477         * gnulib-tool (autoconf_minversion): If a --dir option is given and
53478         relevant, look for configure.ac there, not in the current directory.
53479         Also use a simple search for AC_PREREQ, not "autoconf --trace".
53480
53481 2006-07-29  Bruno Haible  <bruno@clisp.org>
53482
53483         * gnulib-tool (SORT): New variable.
53484         (func_usage): Undocument --assume-autoconf option.
53485         Remove --assume-autoconf option handling.
53486         (autoconf_minversion): Determine from the contents of configure.ac.
53487         (func_import): Remove autoconf_minversion handling.
53488         Suggested by Eric Blake.
53489
53490 2006-07-29  Bruno Haible  <bruno@clisp.org>
53491
53492         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
53493
53494 2006-07-29  Bruno Haible  <bruno@clisp.org>
53495
53496         * config/srclist.txt (*setenv.[ch]): Remove rules.
53497
53498 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53499
53500         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
53501
53502 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53503
53504         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
53505         arpa/inet.h.
53506
53507 2006-07-28  Simon Josefsson  <jas@extundo.com>
53508
53509         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
53510         * modules/inet_pton (Depends-on): Likewise.
53511
53512 2006-07-28  Simon Josefsson  <jas@extundo.com>
53513
53514         * m4/netinet_in_h.m4: New file.
53515
53516 2006-07-28  Simon Josefsson  <jas@extundo.com>
53517
53518         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
53519         #include's.
53520
53521 2006-07-28  Simon Josefsson  <jas@extundo.com>
53522
53523         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
53524         #include's.
53525
53526 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
53527
53528         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
53529         setgid on directories only if they set these bits.
53530         * lib/modechange.h: Remove obsolete comment about masks.
53531
53532 2006-07-28  Eric Blake  <ebb9@byu.net>
53533
53534         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
53535         macro expansion.
53536
53537 2006-07-28  Bruno Haible  <bruno@clisp.org>
53538
53539         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
53540
53541 2006-07-28  Bruno Haible  <bruno@clisp.org>
53542
53543         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
53544
53545 2006-07-28  Bruno Haible  <bruno@clisp.org>
53546
53547         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
53548         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
53549         Define fallbacks.
53550         Avoids link error on FreeBSD 4.x.
53551         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53552
53553         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
53554         encoding.
53555         * lib/mbswidth.c (iswcntrl): Likewise.
53556
53557 2006-07-27  Bruno Haible  <bruno@clisp.org>
53558
53559         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
53560         test.
53561
53562 2006-07-27  Bruno Haible  <bruno@clisp.org>
53563
53564         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
53565         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
53566         defined.
53567
53568 2006-07-26  Eric Blake  <ebb9@byu.net>
53569
53570         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
53571
53572 2006-07-26  Eric Blake  <ebb9@byu.net>
53573
53574         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
53575         like mingw that lack mkstemp.
53576         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
53577         avoid compilation warning on mingw.
53578
53579 2006-07-26  Bruno Haible  <bruno@clisp.org>
53580
53581         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
53582         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
53583         INT_FAST*_MIN, INTPTR_MIN.
53584
53585 2006-07-25  Bruno Haible  <bruno@clisp.org>
53586
53587         * modules/version-etc (Depends-on): Add stdarg.
53588
53589 2006-07-25  Bruno Haible  <bruno@clisp.org>
53590
53591         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
53592         complex commands.
53593
53594 2006-07-25  Bruno Haible  <bruno@clisp.org>
53595
53596         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
53597         defined in <stdarg.h> or config.h.
53598
53599 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53600
53601         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
53602         (gl_STDIO_SAFER): Remove.
53603
53604 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53605
53606         * MODULES.html.sh (File stream based Input/Output):
53607         Add fopen-safer, tmpfile-safer; remove stdio-safer.
53608         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
53609         * modules/fopen-safer, modules/tmpfile-safer: New files.
53610         * modules/stdio-safer: Remove.
53611
53612 2006-07-24  Bruno Haible  <bruno@clisp.org>
53613
53614         * modules/tmpdir: New file.
53615         * MODULES.html.sh (File system functions): Add it.
53616
53617 2006-07-24  Bruno Haible  <bruno@clisp.org>
53618
53619         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
53620         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
53621
53622 2006-07-24  Bruno Haible  <bruno@clisp.org>
53623
53624         * modules/clean-temp: New file.
53625
53626 2006-07-24  Bruno Haible  <bruno@clisp.org>
53627
53628         * m4/tmpdir.m4: New file, from GNU gettext.
53629
53630 2006-07-24  Bruno Haible  <bruno@clisp.org>
53631
53632         * lib/tmpdir.h: New file, from GNU gettext.
53633         * lib/tmpdir.c: New file, from GNU gettext.
53634
53635 2006-07-24  Bruno Haible  <bruno@clisp.org>
53636
53637         * lib/clean-temp.h: New file, from GNU gettext.
53638         * lib/clean-temp.c: New file, from GNU gettext.
53639
53640 2006-07-23  Eric Blake  <ebb9@byu.net>
53641
53642         * modules/stdio-safer (Files): Add tmpfile-safer.c.
53643         (Depends-on): Add binary-io.
53644
53645 2006-07-23  Eric Blake  <ebb9@byu.net>
53646
53647         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
53648
53649 2006-07-23  Eric Blake  <ebb9@byu.net>
53650
53651         * lib/tmpfile-safer.c: New file.
53652         * lib/stdio-safer.h (fopen_safer): Add prototype.
53653         * lib/stdio--.h (tmpfile): Make safer.
53654
53655 2006-07-23  Bruno Haible  <bruno@clisp.org>
53656
53657         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
53658         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
53659         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
53660         gl_linked_remove_at): Use it.
53661
53662 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53663         and Simon Josefsson <jas@extundo.com>
53664
53665         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
53666
53667         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
53668
53669 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53670
53671         * modules/close-stream: New file.
53672         * modules/closeout (Description): Make it clear that it exits
53673         with a diagnostic on error.
53674         (Depends-on): Add close-stream.  Remove fpending, stdbool.
53675         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
53676
53677 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53678
53679         * m4/close-stream.m4: New file.
53680
53681 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53682
53683         * lib/close-stream.c, lib/close-stream.h: New files.
53684
53685 2006-07-22  Bruno Haible  <bruno@clisp.org>
53686
53687         Merge from GNU gettext 0.15.
53688
53689         2006-05-01  Bruno Haible  <bruno@clisp.org>
53690
53691                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
53692
53693         2006-07-22  Bruno Haible  <bruno@clisp.org>
53694
53695                 * modules/javaversion: New file.
53696                 * MODULES.html.sh (Java): Add javaversion.
53697
53698         2006-03-12  Bruno Haible  <bruno@clisp.org>
53699
53700                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
53701
53702         2005-12-04  Bruno Haible  <bruno@clisp.org>
53703
53704                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
53705                 (untested).
53706
53707         2006-06-21  Bruno Haible  <bruno@clisp.org>
53708
53709                 Avoid warnings from recent versions of mcs.
53710                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
53711                 -o, -L, -r any more. Use options documented since mcs-1.0
53712                 instead. Similarly for -g.
53713
53714         2005-12-04  Bruno Haible  <bruno@clisp.org>
53715
53716                 * build-aux/csharpcomp.sh.in: Suffix for resources is
53717                 .resources, not .resource.
53718
53719         2005-07-09  Bruno Haible  <bruno@clisp.org>
53720
53721                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
53722                 add a .dll suffix.
53723                 Reported by Mark Junker <mjscod@gmx.de>.
53724
53725         2006-07-22  Bruno Haible  <bruno@clisp.org>
53726
53727                 * modules/gettext: Upgrade to gettext-0.15.
53728                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
53729                 m4/visibility.m4.
53730                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
53731
53732 2006-07-22  Bruno Haible  <bruno@clisp.org>
53733
53734         Merge from GNU gettext 0.15.
53735
53736         2006-03-25  Bruno Haible  <bruno@clisp.org>
53737
53738                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
53739
53740         2006-07-21  Bruno Haible  <bruno@clisp.org>
53741
53742                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
53743                 "1.1".
53744
53745         2006-05-09  Bruno Haible  <bruno@clisp.org>
53746
53747                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
53748                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
53749                 for the conftestver execution.
53750
53751         2006-05-01  Bruno Haible  <bruno@clisp.org>
53752
53753                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
53754                 optional target-version argument. Verify that the compiler
53755                 groks source of the specified source-version, or add -source
53756                 option as necessary. Verify that the compiler produces
53757                 bytecode in the specified target-version, or add -target and
53758                 -source options as necessary. Make the result of the test
53759                 available as variable CONF_JAVAC. Also log error output in
53760                 config.log.
53761
53762         2006-03-11  Bruno Haible  <bruno@clisp.org>
53763
53764                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
53765
53766         2006-05-09  Bruno Haible  <bruno@clisp.org>
53767
53768                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
53769                 CLASSPATH_SEPARATOR to a semicolon.
53770
53771         2006-03-12  Bruno Haible  <bruno@clisp.org>
53772
53773                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
53774                 available as variable CONF_JAVA, for subsequent autoconf
53775                 tests. Also log error output in config.log.
53776
53777         2006-07-19  Bruno Haible  <bruno@clisp.org>
53778
53779                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
53780                 that getline works on glibc2 systems. Needed to avoid trouble
53781                 in relocatable.c.
53782                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
53783
53784         2005-12-04  Bruno Haible  <bruno@clisp.org>
53785
53786                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
53787                 launcher (untested).
53788
53789         2005-12-04  Bruno Haible  <bruno@clisp.org>
53790
53791                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
53792
53793         2006-07-22  Bruno Haible  <bruno@clisp.org>
53794
53795                 * gettext.m4: Update from GNU gettext-0.15.
53796                 * nls.m4: Likewise.
53797                 * po.m4: Likewise.
53798                 * inttypes-pri.m4: Likewise.
53799                 * inttypes-h.m4: Renamed from inttypes.m4.
53800                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
53801
53802 2006-07-22  Bruno Haible  <bruno@clisp.org>
53803
53804         Merge from GNU gettext 0.15.
53805
53806         2005-07-05  Bruno Haible  <bruno@clisp.org>
53807
53808                 * printf-args.c (printf_fetchargs): Work around broken
53809                 definition of wint_t on mingw.
53810
53811         2005-02-12  Bruno Haible  <bruno@clisp.org>
53812
53813                 * xallocsa.h: Add extern "C" for C++.
53814
53815         2006-05-17  Bruno Haible  <bruno@clisp.org>
53816
53817                 Cygwin portability.
53818                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
53819
53820         2006-04-30  Bruno Haible  <bruno@clisp.org>
53821
53822                 * progreloc.c: Include <mach-o/dyld.h> if available.
53823                 (find_executable): Use _NSGetExecutablePath when possible.
53824
53825         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53826
53827                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
53828                 function.
53829
53830         2005-12-29  Bruno Haible  <bruno@clisp.org>
53831
53832                 * progreloc.c (set_program_name_and_installdir): Fix
53833                 compilation error.
53834
53835         2005-12-04  Bruno Haible  <bruno@clisp.org>
53836
53837                 Cygwin portability.
53838                 * progreloc.c: Include <windows.h> also on Cygwin.
53839                 (find_executable): Add support for Cygwin.
53840                 (set_program_name_and_installdir): Handle also platforms with
53841                 nonempty EXEEXT.
53842
53843         2006-07-11  Bruno Haible  <bruno@clisp.org>
53844
53845                 * javacomp.c: Fix a comment.
53846                 Reported by Jim Meyering.
53847
53848         2006-04-30  Bruno Haible  <bruno@clisp.org>
53849
53850                 * javacomp.h (compile_java_class): Add source_version,
53851                 target_version arguments.
53852                 * javacomp.c: Rewritten to choose only a compiler that
53853                 respects the specified source_version and target_version.
53854
53855         2006-06-27  Bruno Haible  <bruno@clisp.org>
53856
53857                 Assume correct S_ISDIR macro.
53858                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
53859
53860         2006-07-22  Bruno Haible  <bruno@clisp.org>
53861
53862                 * javaversion.h: New file, from GNU gettext.
53863                 * javaversion.c: New file, from GNU gettext.
53864                 * javaversion.java: New file, from GNU gettext.
53865                 * javaversion.class: New file, from GNU gettext.
53866
53867         2006-05-17  Bruno Haible  <bruno@clisp.org>
53868
53869                 Cygwin portability.
53870                 * javaexec.c (execute_java_class): Test for jview program
53871                 also on Cygwin.
53872
53873         2006-04-09  Bruno Haible  <bruno@clisp.org>
53874
53875                 * fatal-signal.c: Don't include string.h.
53876                 (at_fatal_signal): Use a copying loop instead of memcpy.
53877
53878         2005-12-04  Bruno Haible  <bruno@clisp.org>
53879
53880                 * csharpexec.c: Add support for 'clix' launcher (untested).
53881                 (execute_csharp_using_sscli): New function.
53882                 (execute_csharp_program): Call it.
53883
53884         2006-06-21  Bruno Haible  <bruno@clisp.org>
53885
53886                 Avoid warnings from recent versions of mcs.
53887                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
53888                 -o, -L, -r any more. Use options documented since mcs-1.0
53889                 instead. Similarly for -g.
53890
53891         2005-07-09  Bruno Haible  <bruno@clisp.org>
53892
53893                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
53894                 add a .dll suffix.
53895                 Reported by Mark Junker <mjscod@gmx.de>.
53896
53897         2006-06-17  Bruno Haible  <bruno@clisp.org>
53898
53899                 * config.charset: Update for NetBSD 3.0.
53900
53901         2006-05-17  Bruno Haible  <bruno@clisp.org>
53902
53903                 Cygwin portability.
53904                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
53905
53906         2006-05-16  Bruno Haible  <bruno@clisp.org>
53907
53908                 * localcharset.c [CYGWIN]: Include <windows.h>.
53909                 (get_charset_aliases): For Cygwin, return the same CPxxx
53910                 aliases list as under WIN32.
53911                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
53912                 the environment variables. Fall back to GetACP().
53913
53914         2006-04-05  Bruno Haible  <bruno@clisp.org>
53915
53916                 * config.charset: Update Juan Manuel Guerrero's address.
53917
53918         2005-02-12  Bruno Haible  <bruno@clisp.org>
53919
53920                 * allocsa.h: Add extern "C" for C++.
53921
53922         2005-02-10  Bruno Haible  <bruno@clisp.org>
53923
53924                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
53925                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
53926
53927         2006-07-22  Bruno Haible  <bruno@clisp.org>
53928
53929                 * gettext.h: Update to GNU gettext-0.15.
53930
53931 2006-07-22  Bruno Haible  <bruno@clisp.org>
53932
53933         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
53934         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
53935         lib-prefix.m4, longdouble.m4, ssize_t.m4.
53936
53937 2006-07-21  Eric Blake  <ebb9@byu.net>
53938
53939         * modules/stdlib-safer: New file.
53940         * MODULES.html.sh (File stream based Input/Output): Add
53941         stdlib-safer.
53942
53943 2006-07-21  Eric Blake  <ebb9@byu.net>
53944
53945         * lib/stdlib-safer.h: New file from coreutils, required by
53946         stdlib--.h.
53947
53948 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
53949
53950         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
53951
53952 2006-07-20  Bruno Haible  <bruno@clisp.org>
53953
53954         * gnulib-tool: Recognize new option --assume-autoconf.
53955         (autoconf_minversion): New variable.
53956         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
53957
53958 2006-07-20  Bruno Haible  <bruno@clisp.org>
53959
53960         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
53961
53962 2006-07-19  Derek R. Price  <derek@ximbiot.com>
53963
53964         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
53965         Reindent and repaginate.
53966
53967 2006-07-19  Derek Price  <derek@ximbiot.com>
53968
53969         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
53970         Correct grammar.
53971
53972 2006-07-17  Bruno Haible  <bruno@clisp.org>
53973
53974         * modules/list: New file.
53975         * modules/array-list: New file.
53976         * modules/carray-list, modules/carray-list-tests: New files.
53977         * modules/linked-list, modules/linked-list-tests: New files.
53978         * modules/avltree-list, modules/avltree-list-tests: New files.
53979         * modules/rbtree-list, modules/rbtree-list-tests: New files.
53980         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
53981         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
53982         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
53983         * modules/oset: New file.
53984         * modules/array-oset: New file.
53985         * modules/avltree-oset, modules/avltree-oset-tests: New files.
53986         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
53987         * tests/test-carray_list.c: New file.
53988         * tests/test-linked_list.c: New file.
53989         * tests/test-avltree_list.c: New file.
53990         * tests/test-rbtree_list.c: New file.
53991         * tests/test-linkedhash_list.c: New file.
53992         * tests/test-avltreehash_list.c: New file.
53993         * tests/test-rbtreehash_list.c: New file.
53994         * tests/test-avltree_oset.c: New file.
53995         * tests/test-rbtree_oset.c: New file.
53996         * MODULES.html.sh (Container data structures): New section.
53997
53998 2006-07-17  Bruno Haible  <bruno@clisp.org>
53999
54000         * m4/gl_list.m4: New file.
54001
54002 2006-07-17  Bruno Haible  <bruno@clisp.org>
54003
54004         * lib/gl_list.h: New file.
54005         * lib/gl_list.c: New file.
54006         * lib/gl_array_list.h: New file.
54007         * lib/gl_array_list.c: New file.
54008         * lib/gl_carray_list.h: New file.
54009         * lib/gl_carray_list.c: New file.
54010         * lib/gl_linked_list.h: New file.
54011         * lib/gl_linked_list.c: New file.
54012         * lib/gl_anylinked_list1.h: New file.
54013         * lib/gl_anylinked_list2.h: New file.
54014         * lib/gl_avltree_list.h: New file.
54015         * lib/gl_avltree_list.c: New file.
54016         * lib/gl_anyavltree_list1.h: New file.
54017         * lib/gl_anyavltree_list2.h: New file.
54018         * lib/gl_rbtree_list.h: New file.
54019         * lib/gl_rbtree_list.c: New file.
54020         * lib/gl_anyrbtree_list1.h: New file.
54021         * lib/gl_anyrbtree_list2.h: New file.
54022         * lib/gl_anytree_list1.h: New file.
54023         * lib/gl_anytree_list2.h: New file.
54024         * lib/gl_linkedhash_list.h: New file.
54025         * lib/gl_linkedhash_list.c: New file.
54026         * lib/gl_anyhash_list1.h: New file.
54027         * lib/gl_anyhash_list2.h: New file.
54028         * lib/gl_avltreehash_list.h: New file.
54029         * lib/gl_avltreehash_list.c: New file.
54030         * lib/gl_rbtreehash_list.h: New file.
54031         * lib/gl_rbtreehash_list.c: New file.
54032         * lib/gl_anytreehash_list1.h: New file.
54033         * lib/gl_anytreehash_list2.h: New file.
54034
54035         * lib/gl_oset.h: New file.
54036         * lib/gl_oset.c: New file.
54037         * lib/gl_array_oset.h: New file.
54038         * lib/gl_array_oset.c: New file.
54039         * lib/gl_avltree_oset.h: New file.
54040         * lib/gl_avltree_oset.c: New file.
54041         * lib/gl_rbtree_oset.h: New file.
54042         * lib/gl_rbtree_oset.c: New file.
54043         * lib/gl_anytree_oset.h: New file.
54044
54045 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
54046
54047         * m4/mkancesdirs.m4: New file.
54048         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
54049         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
54050         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
54051         it.
54052
54053 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
54054
54055         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
54056         * lib/mkancesdirs.h: New files.
54057         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
54058         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
54059         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
54060         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
54061         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
54062         callers changed.  Revamp internals significantly, by not
54063         attempting to create directories that are temporarily more
54064         permissive than the final results.  Do not attempt to use
54065         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
54066         This removes some race conditions, fixes some bugs, and simplifies
54067         things.  Use new dirchownmod function to do owner and mode changes.
54068         * lib/mkdir-p.h: Likewise.
54069         * lib/modechange.c (octal_to_mode): New function.
54070         (struct mode_change): New member mentioned.
54071         (make_node_op_equals): New arg mentioned.  All callers changed.
54072         (mode_compile): Keep track of which mode bits the user has explicitly
54073         mentioned.
54074         (mode_adjust): New arg DIR, so that we implement the X op correctly.
54075         New arg PMODE_BITS, to keep track of which mode bits the user
54076         mentioned; it treats S_ISUID and S_ISGID speciall.
54077         All callers changed.
54078         * lib/modechange.h: Likewise.
54079
54080 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
54081
54082         * MODULES.html.sh: Add mkancestors.
54083         * modules/mkancesdirs: New module.
54084         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
54085         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
54086         The chdir-safer and afs files are now orphans; I'll remove them
54087         unless someone speaks up.
54088         Add lib/dirchownmod.c, lib/dirchownmod.h.
54089         (Depends-on): Remove alloca, chown, save-cwd, dirname.
54090         Add lchown, mkancesdirs.
54091         (Maintainer): Add self.
54092
54093 2006-07-15  Karl Berry  <karl@gnu.org>
54094
54095         * gnulib-tool: help message wording/arrangement.
54096
54097 2006-07-14  Simon Josefsson  <jas@extundo.com>
54098
54099         * doc/gnulib.texi (Libtool and Windows): New section.
54100
54101 2006-07-12  Simon Josefsson  <jas@extundo.com>
54102
54103         * modules/gendocs (License): Fix license, approved by Karl.
54104
54105 2006-07-12  Eric Blake  <ebb9@byu.net>
54106
54107         * MODULES.html.sh: Add gendocs.
54108
54109 2006-07-11  Eric Blake  <ebb9@byu.net>
54110
54111         * modules/fdl: New module, to install doc/fdl.texi.
54112         * MODULES.html.sh: Add new section for documentation modules.
54113         * gnulib-tool: Avoid space-tab.
54114         (--doc-base): New option, to manage files from doc.
54115
54116 2006-07-11  Eric Blake  <ebb9@byu.net>
54117
54118         * m4/absolute-header.m4: Fix comments to match recent change.
54119
54120 2006-07-11  Eric Blake  <ebb9@byu.net>
54121
54122         * gnulib-tool: List --doc-base before --tests-base.
54123
54124 2006-07-11  Derek R. Price  <derek@ximbiot.com>
54125
54126         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
54127
54128 2006-07-11  Bruno Haible  <bruno@clisp.org>
54129
54130         * README: Mention where to put documentation.
54131
54132 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54133
54134         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
54135
54136 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
54137
54138         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
54139         to stdint.m4.
54140
54141 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
54142
54143         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
54144         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
54145         "no/such/file/stdint.h" when there is no such file, so that
54146         the resulting C code can be parsed by dodgy compilers.
54147         Problems reported by Bob Proulx.
54148
54149 2006-07-10  Derek R. Price  <derek@ximbiot.com>
54150
54151         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
54152         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
54153         macros into the GNU _D_EXACT_NAMLEN.
54154         * lib/savedir.c:  Likewise.
54155         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
54156
54157 2006-07-10  Derek R. Price  <derek@ximbiot.com>
54158         and Paul Eggert  <eggert@cs.ucla.edu>
54159
54160         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
54161         * m4/savedir.m4:
54162         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
54163         macros into the GNU _D_EXACT_NAMLEN.
54164
54165 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54166
54167         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
54168         around the absolute name, to work around a problem with the HP-UX
54169         11.23 native C compiler, reported by Bob Proulx.
54170
54171 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54172
54173         * doc/maintain.texi, make-stds.texi: Sync from
54174         <http://savannah.gnu.org/projects/gnustandards>.
54175
54176 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54177
54178         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
54179
54180 2006-07-09  Jim Meyering  <jim@meyering.net>
54181
54182         * m4/glob.m4: Remove a doubled word in a comment.
54183
54184 2006-07-09  Jim Meyering  <jim@meyering.net>
54185
54186         * lib/argp-pv.c: Remove a doubled word in a comment.
54187         * lib/check-version.c (check_version): Likewise.
54188         * lib/javacomp.c (compile_java_class): Likewise.
54189
54190 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
54191
54192         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
54193         for the benefit of people using Autoconf 2.60.  If you want to
54194         support older Autoconf versions you can copy m4/onceonly_2_57.m4
54195         (or m4/onceonly.m4, if pre-2.57) manually.
54196
54197 2006-07-08  Jim Meyering  <jim@meyering.net>
54198
54199         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
54200         comment.
54201         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
54202         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
54203         comment.
54204
54205 2006-07-08  Jim Meyering  <jim@meyering.net>
54206
54207         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
54208
54209 2006-07-07  Simon Josefsson  <jas@extundo.com>
54210
54211         * tests/test-crc.c: Change expected crc value, the test vector
54212         were probably computed using the old broken crc.c?
54213
54214 2006-07-06  Simon Josefsson  <jas@extundo.com>
54215
54216         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
54217         now the canonical place for the M4 file).
54218
54219         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
54220         from the sys_socket dependency now.
54221
54222         * modules/inet_pton (Files): Ditto.
54223
54224         * modules/inet_ntop (Files): Ditto.
54225
54226 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54227
54228         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
54229         not gl_PREREQ_GETUSERSHELL.
54230
54231 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54232
54233         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
54234         with only one argument, for Autoconf 2.60.
54235         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
54236         expand to nothing, so add a shell command to avoid syntax error.
54237         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
54238
54239 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54240
54241         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
54242
54243 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
54244
54245         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
54246         no longer needed.  Check for isblank decl.
54247         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
54248         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
54249         of existence.
54250
54251 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
54252
54253         * lib/getloadavg.c: Use __VMS, not VMS.
54254         * lib/getopt.c: Likewise.
54255         * lib/getpagesize.h: Likewise.
54256         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
54257         and probably does not work.
54258
54259 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
54260
54261         * lib/.cppi-disable: Add wcwidth.
54262         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
54263         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
54264         (ISGRAPH): Remove.  All uses changed to isgraph.
54265         (FOLD) [!defined _LIBC]: Remove special case.
54266         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
54267         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
54268         HAVE_ISBLANK.
54269         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
54270         case.
54271
54272 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
54273
54274         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
54275         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
54276         brackets.  Other minor changes to suppress some compiler
54277         warnings.
54278
54279 2006-07-06  Derek R. Price  <derek@ximbiot.com>
54280         and Paul Eggert  <eggert@cs.ucla.edu>
54281
54282         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
54283         of invoking obsolescent AC_HEADER_DIRENT macro.
54284         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
54285         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
54286         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
54287         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
54288         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
54289         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54290         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
54291         * m4/readdir.m4: Remove; no longer needed.
54292
54293 2006-07-06  Derek R. Price  <derek@ximbiot.com>
54294         and Paul Eggert  <eggert@cs.ucla.edu>
54295
54296         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
54297         Don't worry about this obsolete case any more.
54298         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
54299         directories.
54300         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
54301         worry about this obsolete case any more.
54302         * lib/fts.c: Likewise.
54303         * lib/getcwd.c: Likewise.
54304         * lib/glob.h: Likewise.
54305         * lib/savedir.c: Likewise.
54306
54307 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
54308
54309         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
54310         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
54311         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
54312         needed.
54313         All uses removed.
54314         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
54315         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
54316         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
54317         needed.
54318         * m4/getdate.m4 (gl_GETDATE): Likewise.
54319         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
54320         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
54321         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
54322         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
54323         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
54324         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54325         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
54326         needed.
54327
54328 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
54329
54330         * lib/memcasecmp.c: Include <limits.h>.
54331         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
54332         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
54333         Don't assume isdigit succeeds only on '0' through '9'.
54334
54335 2006-07-05  Eric Blake  <ebb9@byu.net>
54336
54337         * modules/getaddrinfo (Depends-on): Add snprintf.
54338
54339 2006-07-05  Eric Blake  <ebb9@byu.net>
54340
54341         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
54342         to avoid 'header present but could not be compiled' on cygwin.
54343
54344 2006-07-05  Eric Blake  <ebb9@byu.net>
54345
54346         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
54347         missing from netdb.h.
54348         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
54349
54350 2006-07-05  Derek R. Price  <derek@ximbiot.com>
54351
54352         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
54353         no longer needed.
54354         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
54355         * m4/getdate.m4 (gl_GETDATE): Likewise.
54356         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
54357         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
54358         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
54359         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
54360         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54361
54362 2006-07-05  Derek R. Price  <derek@ximbiot.com>
54363
54364         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
54365         All uses of is_space replaced by isspace.
54366         * lib/exit.h: Don't talk about STDC_HEADERS.
54367         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
54368         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
54369         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
54370         replaced by isprint etc.
54371         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
54372         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
54373         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
54374         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
54375         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
54376         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
54377
54378 2006-07-05  Bruno Haible  <bruno@clisp.org>
54379
54380         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
54381         the function exists, before testing against AIX.
54382         Reported by Martin Lambers <marlam@marlam.de>.
54383
54384 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
54385
54386         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
54387         From Mark D. Baushke.
54388
54389 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
54390
54391         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
54392         to the absolute name, not just one, to bypass Sun C 5.8's
54393         "warning: #include of /usr/include/... may be non-portable".
54394
54395 2006-07-04  Eric Blake  <ebb9@byu.net>
54396
54397         * modules/dirname-tests: New test module.
54398         * tests/test-dirname.c: New file, replacing dirname.c
54399         TEST_DIRNAME section that was recently deleted.
54400
54401 2006-07-04  Bruno Haible  <bruno@clisp.org>
54402
54403         Assume ANSI C header files and <ctype.h> functions.
54404         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
54405         (mbsnwidth): Use isprint, iscntrl instead.
54406
54407 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54408
54409         Merge from coreutils.
54410         * MODULES.html.sh: Add xstrtold.
54411         * modules/xstrtold: New file.
54412         * modules/cycle-check (Files): Add lib/same-inode.h.
54413         * modules/dirname (Files): Add m4/double-slash-root.m4.
54414         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
54415         * modules/mkdir-p (Files): Add lib/same-inode.h.
54416         * modules/same (Files): Add lib/same-inode.h.
54417
54418 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54419
54420         * m4/absolute-header.m4: Renamed from full-header-path.m4.
54421         This is to keep the terminology clean; POSIX talks about
54422         "absolute pathnames", not "full pathnames", but the GNU
54423         Coding Standards say to use "path" for something else;
54424         so use "absolute" to keep both sides happy.
54425         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
54426         Set gl_absolute_header, not gl_full_header_path.
54427         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
54428         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
54429         All uses changed.
54430
54431         Merge from coreutils.
54432
54433         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
54434
54435         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
54436         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
54437         want to require the building of c-strtod.o.
54438         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
54439         needs -lm directly.
54440         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
54441
54442         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
54443
54444         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
54445         --as-needed option if available.  Problem reported by Albert Chin in
54446         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
54447         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
54448         cc merely issues a bunch of annoying warnings for --as-needed
54449         (this problem was reported by Bob Proulx).  Also, try linking with
54450         -lm to detect a bug in binutils 2.16 (this problem was reported
54451         by Ralf Wildenhues).
54452
54453         2006-06-18  Jim Meyering  <jim@meyering.net>
54454
54455         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
54456         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
54457         macro.
54458         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
54459         also check for glibc-2.4's abort-inducing bug.
54460
54461         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
54462         Low-probability clean-up should be to use rmdir to get rid of
54463         the just-created directory, not unlink.
54464
54465         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
54466         configure fail, and request a bug report to inform us about it.
54467         Add a comment that, barring reports to the contrary, in 2007 we'll
54468         assume ftruncate is universally available.
54469
54470         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
54471
54472         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
54473
54474         2006-03-12  Jim Meyering  <jim@meyering.net>
54475
54476         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
54477         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
54478         * m4/same.m4 (gl_SAME): Likewise.
54479         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
54480
54481         2006-03-11  Eric Blake  <ebb9@byu.net>
54482
54483         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
54484         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
54485         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
54486         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
54487
54488 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54489
54490         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
54491         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
54492         reported by Mark D. Baushke, one in
54493         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
54494
54495         Merge from coreutils.
54496
54497         * lib/.cppi-disable: Add stdint_.h.
54498         * lib/.cvsignore: Add stdint.h.
54499
54500         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
54501
54502         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
54503         both double and long double versions.
54504         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
54505         * lib/xstrtold.c: New file.
54506         * lib/xstrtod.h (xstrtold): New decl.
54507
54508         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
54509
54510         * lib/filemode.c (setst): Remove.
54511         (strmode): Rewrite to avoid setst.  This makes the code shorter,
54512         (arguably) clearer, and the generated code is a bit smaller on my
54513         Debian GNU/Linux stable x86 host.
54514
54515         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
54516
54517         * lib/filemode.c: Include "filemode.h" first, to test the interface.
54518         Assume that filemode.h includes sys/types.h and sys/stat.h.
54519         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
54520         (ftypelet): Reorder to put common cases first, for efficiency.
54521         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
54522         to do 'M'.
54523         (strmode): Renamed from mode_string, and now stores 12 bytes instead
54524         of 10, for compatibility with FreeBSD.  All callers changed.
54525         (filemodestring): Now stores 12 bytes instead of 10, and sets file
54526         types that can't be deduced solely from st_mode.  First arg is now a
54527         const pointer.
54528         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
54529         (strmode): Renamed from mode_string.
54530         (filemodestring): New decl.
54531         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
54532         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
54533         needed.
54534         (S_ISPORT, S_ISWHT): New macros, if not already defined.
54535
54536         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
54537
54538         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
54539         fsusage.h now does that.  Include fsusage.h first, to test interface.
54540         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
54541         at most one method (the old code could have generated decls that
54542         didn't conform to C89, not that this was ever exercised).
54543         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
54544
54545         2006-03-19  Jim Meyering  <jim@meyering.net>
54546
54547         Work even in a chroot where d_ino values for entries in "/"
54548         don't match the stat.st_ino values for the same names.
54549         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
54550         number, iterate through all entries again, using lstat instead.
54551         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
54552         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
54553
54554         * lib/getcwd.c (__getcwd): Clarify a comment.
54555         Use memcpy in place of a call to strcpy.
54556
54557         2006-03-12  Jim Meyering  <jim@meyering.net>
54558
54559         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
54560         matches that of the current directory (which we're about to chdir ".."
54561         out of), then save the dev-ino of the parent, instead.
54562
54563         * lib/same-inode.h (SAME_INODE): New file/macro.
54564         * lib/chdir-safer.c (SAME_INODE): Remove definition.
54565         Include "same-inode.h", instead.
54566         * lib/same.c: Likewise.
54567         * lib/cycle-check.h: Include "same-inode.h".
54568         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
54569         * lib/cycle-check.c (SAME_INODE): Remove definition.
54570         * lib/root-dev-ino.h: Include "same-inode.h".
54571
54572         2006-03-11  Eric Blake  <ebb9@byu.net>
54573
54574         * lib/same.c (same_name): s/base_name/last_component/
54575         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
54576         * lib/filenamecat.c (file_name_concat): Likewise.
54577
54578         2006-03-11  Eric Blake  <ebb9@byu.net>,
54579                     Paul Eggert  <eggert@cs.ucla.edu>
54580
54581         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
54582         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
54583         drive prefix.
54584         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
54585         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
54586         (last_component): New method.
54587         * lib/dirname.c (dir_len): Determine when drive letters need a
54588         subsequent slash.  Preserve // when it is special.
54589         (dir_name): Don't append dot when drive letter is absolute.
54590         [TEST_DIRNAME]: Move into a full-blown gnulib test.
54591         * lib/basename.c (base_name): New semantics - malloc the result.
54592         Preserve // when it is special.  Preserve relative files that look
54593         like drive letters.
54594         (base_len): Preserve // when it is special.
54595         (last_component): New method, similar to old base_name semantics.
54596         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
54597         base_name.  Strip redundant slashes from ///.
54598
54599 2006-07-03  Jim Meyering  <jim@meyering.net>
54600
54601         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
54602         macro is used before the first cycle_check call.
54603
54604 2006-07-03  Eric Blake  <ebb9@byu.net>
54605
54606         * modules/dirname (Depends-on): Add xstrndup.
54607
54608 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54609
54610         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
54611         test cases, so that config.log is a bit easier to follow.
54612
54613 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54614
54615         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
54616         both are 64 bits, since this seems to be the tradition, and this
54617         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
54618         we ever run into a host that prefers long long to long in this
54619         case, we'll need another configure-time test.  Problem reported by
54620         Jim Meyering.
54621
54622 2006-07-02  Eric Blake  <ebb9@byu.net>
54623
54624         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
54625
54626 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54627
54628         * modules/inttypes (Depends-on): No longer depends on stdint.
54629         * modules/stdint (Description): Say more about assumptions.
54630         Say that the fast types might differ.  Say macros are used.
54631         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
54632         (Makefile.am): Revise list of substituted symbols to match
54633         new stdint.m4.
54634         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
54635         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
54636         * tests/test-stdint.c (verify_same_types)
54637         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
54638         the code conforms to C99/C89.
54639         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
54640         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
54641
54642 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54643
54644         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
54645         but fix a bug, by requiring at least 64 bits.
54646         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54647         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
54648         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
54649         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
54650
54651         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
54652         changes.  Make 2.59 a prerequisite.  Check and substitute for
54653         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
54654         inttypes.h.  Do not use special include files; just use the
54655         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
54656         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
54657         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
54658         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
54659         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
54660         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
54661         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
54662         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
54663         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
54664         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
54665         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
54666         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
54667         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
54668         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
54669         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
54670         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
54671         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
54672         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
54673         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
54674         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
54675         WINT_MAX.  Check for C99 conformance more strictly, by detecting
54676         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
54677         not check for things that C99 does not require, e.g., int8_t.  If
54678         a test isn't needed unless <stdint.h> isn't working, and is
54679         unlikely to be needed for any other reason, then don't do it
54680         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
54681         size_t, since we assume C89 freestanding at least.  Do not check
54682         for sig_atomic_t, wchar_t, or wint_t, since the code now does
54683         the right thing even if the types are not defined.  Instead use:
54684         (gl_STDINT_TYPE_PROPERTIES): New macro.
54685         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
54686         testing whether <sys/types.h> clashes, as Autoconf does this for
54687         us now.  All uses removed.
54688         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
54689         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
54690         (gl_CHECK_TYPE_SAME):
54691         Remove; no longer needed.
54692         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
54693         exists, since we'll return 0 anyway in that case.
54694         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
54695
54696 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54697
54698         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
54699         possible collision with system files.
54700         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
54701         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
54702         WCHAR_MIN and WCHAR_MAX in this case.
54703         (<stddef.h>): Do not include; no longer needed.
54704         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
54705         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
54706         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
54707         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
54708         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
54709         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
54710         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
54711         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
54712         !defined(__c99))]: Include in this case too, since it's harmless
54713         now.
54714         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
54715         dangerous to do so.
54716         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
54717         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
54718         (_STDINT_MIN, _STDINT_MAX): New macros.
54719         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
54720         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
54721         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
54722         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
54723         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
54724         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
54725         macros, not typedefs; this simplifies things quite a bit.
54726         Use long int for all types narrower than int64_t.
54727         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
54728         Define in terms of long long int or int64_t or long int,
54729         not int64_t or int32_t.  This saves some compile-time testing.
54730         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
54731         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
54732         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
54733         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
54734         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
54735         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
54736         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
54737         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
54738         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
54739         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
54740         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54741         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54742         undef any previous version and define our own version, for
54743         simplicity and consistency with the new macros for types.
54744         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54745         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54746         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
54747         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
54748         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
54749         @WINT_T_SUFFIX@ to keep things simple here.
54750         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
54751         Simplify by assuming typical 8/16/32/64 host, since we're
54752         already doing that elsewhere anyway.
54753         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
54754         and assume long long int is 64 bits if available.  This
54755         speeds up 'configure'.
54756
54757 2006-07-01  Eric Blake  <ebb9@byu.net>
54758
54759         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
54760         Reported by Andreas Buening.
54761
54762 2006-07-01  Eric Blake  <ebb9@byu.net>
54763
54764         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
54765
54766 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
54767
54768         * lib/getaddrinfo.c: fixed typo
54769
54770 2006-06-29  Jim Meyering  <jim@meyering.net>
54771
54772         * modules/strftime (Maintainer): Add my name, since with the
54773         FPRINTFTIME changes strftime.c has forked from glibc.
54774
54775 2006-06-29  Eric Blake  <ebb9@byu.net>
54776
54777         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
54778
54779 2006-06-29  Eric Blake  <ebb9@byu.net>
54780
54781         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
54782
54783 2006-06-29  Eric Blake  <ebb9@byu.net>
54784
54785         * lib/stat_.h: New file.
54786
54787 2006-06-29  Eric Blake  <ebb9@byu.net>
54788
54789         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
54790         unused static function.
54791
54792 2006-06-29  Eric Blake  <ebb9@byu.net>
54793
54794         * doc/functions.texi (Function Portability): Document missing lstat
54795         on mingw.
54796
54797 2006-06-29  Eric Blake  <ebb9@byu.net>
54798
54799         * MODULES.html.sh: Add sys_stat.
54800         * modules/sys_stat: New module.
54801         * modules/mkstemp (Depends-on): Add sys_stat.
54802
54803 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54804
54805         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
54806
54807 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54808
54809         * m4/c-bs-a.m4: Removed.
54810
54811 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54812
54813         * lib/strftime.c: Assume strftime() exists.
54814
54815 2006-06-29  Derek Price  <derek@ximbiot.com>
54816
54817         * modules/c-bs-a: Removed - \a is C89.
54818         * MODULES.html.sh: Remove c-bs-a.
54819
54820 2006-06-29  Bruno Haible  <bruno@clisp.org>
54821
54822         * modules/wcwidth (License): Change to LGPL.
54823
54824 2006-06-28  Simon Josefsson  <jas@extundo.com>
54825
54826         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
54827         on _WIN32.
54828
54829         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
54830         getnameinfo.
54831
54832 2006-06-28  Simon Josefsson  <jas@extundo.com>
54833
54834         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
54835
54836 2006-06-28  Simon Josefsson  <jas@extundo.com>
54837
54838         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
54839         functions there.  It will succeed on Windows XP, but on Windows
54840         2000 and (presumably) earlier, it will fail, and use the internal
54841         re-implementation.
54842         (use_win32_p): New function.
54843         (getaddrinfo): Use strtoul on servname, to support numeric ports.
54844         Support AI_NUMERICSERV to disable getservbyname.
54845         (getnameinfo): New function, only supports
54846         NI_NUMERICHOST|NI_NUMERICSERV for now.
54847
54848         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
54849         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
54850         getnameinfo.
54851
54852 2006-06-28  Eric Blake  <ebb9@byu.net>
54853
54854         * modules/wcwidth: New file.
54855         * modules/mbchar (Depends-on): Add wcwidth.
54856         * modules/mbswidth (Depends-on): Add wcwidth.
54857         * MODULES.html.sh: Add wcwidth.
54858
54859 2006-06-28  Eric Blake  <ebb9@byu.net>
54860
54861         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
54862         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
54863
54864 2006-06-28  Eric Blake  <ebb9@byu.net>
54865
54866         * lib/xvasprintf.h: Fix comments.
54867
54868 2006-06-28  Eric Blake  <ebb9@byu.net>
54869
54870         * lib/mbchar.h (wcwidth): Include wcwidth.h.
54871         * lib/mbswidth.c (wcwidth): Move from here...
54872         * lib/wcwidth.h: ...to this new file.
54873
54874 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54875
54876         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
54877
54878         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
54879         it's obsolete.
54880         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
54881
54882 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54883
54884         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
54885         Autoconf 2.60 says this stuff was obsolete.
54886
54887 2006-06-28  Bruno Haible  <bruno@clisp.org>
54888
54889         * modules/wcwidth (Files): Add m4/wchar_t.m4.
54890
54891 2006-06-28  Bruno Haible  <bruno@clisp.org>
54892
54893         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
54894         gt_TYPE_WCHAR_T.
54895
54896 2006-06-28  Bruno Haible  <bruno@clisp.org>
54897
54898         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
54899         declaration for wcwidth.
54900         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
54901
54902 2006-06-28  Bruno Haible  <bruno@clisp.org>
54903
54904         * lib/mkdtemp.c [MINGW]: Include <io.h>.
54905         (mkdir): Define using _mkdir.
54906
54907 2006-06-28  Bruno Haible  <bruno@clisp.org>
54908
54909         * lib/getaddrinfo.h: Fix POSIX URL.
54910         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
54911         _WIN32.
54912         (use_win32_p): Make static.
54913         (getaddrinfo): Reject service name if it is empty or does not consist
54914         solely of decimal digits, or if its value is > 65535.
54915         (getnameinfo): Remove useless casts.
54916
54917 2006-06-27  Simon Josefsson  <jas@extundo.com>
54918
54919         * modules/sys_select: New file, suggested by Bruno Haible, Paul
54920         Eggert and Martin Lambers.
54921
54922 2006-06-27  Simon Josefsson  <jas@extundo.com>
54923
54924         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
54925         Eggert and Martin Lambers.
54926
54927 2006-06-27  Bruno Haible  <bruno@clisp.org>
54928
54929         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
54930         result to 0, not to empty.
54931         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
54932
54933 2006-06-27  Bruno Haible  <bruno@clisp.org>
54934
54935         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
54936
54937 2006-06-26  Simon Josefsson  <jas@extundo.com>
54938
54939         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
54940         present.
54941
54942 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
54943
54944         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
54945         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
54946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
54947
54948 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
54949
54950         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
54951
54952 2006-06-26  Bruno Haible  <bruno@clisp.org>
54953
54954         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
54955
54956 2006-06-26  Bruno Haible  <bruno@clisp.org>
54957
54958         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
54959
54960 2006-06-26  Bruno Haible  <bruno@clisp.org>
54961
54962         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
54963         SGI C compiler in pre-C99 mode.
54964         Suggested by Mark D. Baushke and Larry Jones.
54965
54966 2006-06-26  Bruno Haible  <bruno@clisp.org>
54967
54968         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
54969         WCHAR_MAX.
54970         Reported by Mark D. Baushke and Larry Jones.
54971
54972 2006-06-26  Bruno Haible  <bruno@clisp.org>
54973
54974         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
54975         in pre-C99 mode.
54976         Suggested by Mark D. Baushke and Larry Jones.
54977
54978 2006-06-23  Simon Josefsson  <jas@extundo.com>
54979             Bruno Haible  <bruno@clisp.org>
54980
54981         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
54982         Emit mostlyclean-local rule.
54983         (func_emit_tests_Makefile_am): Likewise.
54984         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
54985
54986 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
54987
54988         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
54989
54990 2006-06-23  Bruno Haible  <bruno@clisp.org>
54991
54992         * tests/test-stdint.c: Update to match ISO C 99 Technical
54993         Corrigendum 1.
54994
54995 2006-06-23  Bruno Haible  <bruno@clisp.org>
54996
54997         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
54998
54999 2006-06-23  Bruno Haible  <bruno@clisp.org>
55000
55001         * lib/stdint_.h: Treat IRIX like OpenBSD.
55002
55003 2006-06-23  Bruno Haible  <bruno@clisp.org>
55004
55005         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
55006         ISO C 99 Technical Corrigendum 1.
55007
55008 2006-06-22  Simon Josefsson  <jas@extundo.com>
55009
55010         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
55011         MinGW.
55012
55013 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55014
55015         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
55016         needed.  Some compiler complained about some of them.  Problem reported
55017         by Larry Jones in
55018         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
55019
55020 2006-06-21  Simon Josefsson  <jas@extundo.com>
55021
55022         * tests/test-getaddrinfo.c: New file.
55023
55024         * modules/getaddrinfo-tests: New file.
55025
55026         * MODULES.html.sh: Add inet_pton.
55027
55028         * modules/inet_pton: New file.
55029
55030 2006-06-21  Simon Josefsson  <jas@extundo.com>
55031
55032         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
55033         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
55034         of using the (limited) gnulib implementation on Windows XP.
55035
55036         * m4/inet_pton.m4: New file.
55037
55038 2006-06-21  Simon Josefsson  <jas@extundo.com>
55039
55040         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
55041         variable.
55042
55043         * lib/socket_.h: Don't define WINVER.
55044
55045         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
55046         slightly modified to work in gnulib.
55047
55048 2006-06-21  Simon Josefsson  <jas@extundo.com>
55049
55050         * doc/gnulib.texi (Windows sockets): Add.
55051
55052 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55053
55054         * lib/read-file.c (fread_file): Start with buffer allocation of
55055         0 bytes rather than 1 byte; this simplifies the code.
55056         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
55057         code to free buffer and save/restore errno.
55058         (internal_read_file): Remove unused local.
55059
55060 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55061
55062         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
55063         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
55064         Problem reported by Denis Excoffier in
55065         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
55066
55067 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55068
55069         * modules/sys_socket, modules/socklen: Include sys/types since
55070         FreeBSD 4.x's sys/socket.h needs it.
55071
55072 2006-06-19  Simon Josefsson  <jas@extundo.com>
55073
55074         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
55075
55076 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
55077
55078         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
55079
55080 2006-06-19  Bruno Haible  <bruno@clisp.org>
55081
55082         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
55083         and FULL_PATH_INTTYPES_H in angle brackets.
55084         Reported by Mark D. Baushke <mdb@gnu.org>.
55085
55086 2006-06-17  Eric Blake  <ebb9@byu.net>
55087
55088         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
55089         errno.
55090
55091 2006-06-17  Bruno Haible  <bruno@clisp.org>
55092
55093         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
55094         <sys/inttypes.h>.
55095
55096 2006-06-17  Bruno Haible  <bruno@clisp.org>
55097
55098         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
55099         whether errno is declared. Assume <errno.h> declares errno.
55100
55101 2006-06-17  Bruno Haible  <bruno@clisp.org>
55102
55103         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
55104
55105 2006-06-17  Bruno Haible  <bruno@clisp.org>
55106
55107         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
55108         problem on Solaris 2.5.1.
55109
55110 2006-06-16  Eric Blake  <ebb9@byu.net>
55111
55112         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
55113         * lib/unicodeio.c [!defined errno]: Likewise.
55114         * lib/strtol.c [!defined errno]: Likewise.
55115         * lib/strtod.c [!defined errno]: Likewise.
55116
55117 2006-06-15  Eric Blake  <ebb9@byu.net>
55118
55119         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
55120
55121 2006-06-15  Eric Blake  <ebb9@byu.net>
55122
55123         * config/srclist.txt (ssize_t.m4): Lose sync.
55124
55125 2006-06-15  Bruno Haible  <bruno@clisp.org>
55126
55127         * modules/stdint (Files): Include m4/full-header-path.m4,
55128         m4/size_max.m4, m4/wchar_t.m4.
55129         (Makefile.am): Many more substitutions.
55130         * modules/stdint-tests: New file.
55131         * tests/test-stdint.c: New file.
55132
55133 2006-06-15  Bruno Haible  <bruno@clisp.org>
55134
55135         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
55136         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
55137         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
55138         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
55139         gl_CHECK_TYPE_SAME): New macros.
55140
55141 2006-06-15  Bruno Haible  <bruno@clisp.org>
55142
55143         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
55144
55145 2006-06-15  Bruno Haible  <bruno@clisp.org>
55146
55147         * lib/stdint_.h: Rewritten to be fully auto-configured.
55148         Fixes bug on HP-UX/IA64.
55149
55150 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
55151
55152         * lib/getdate.y (__attribute__): Don't define if already defined.
55153         Problem reported by Larry Jones.
55154         * lib/utimens.c (__attribute__): Likewise.
55155
55156 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
55157
55158         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
55159         reported by Andreas Schwab.
55160
55161 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55162             Bruno Haible  <bruno@clisp.org>
55163
55164         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
55165         check for the declaration of strnlen and a run test that exposes the
55166         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
55167         rpl_strndup.
55168
55169 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55170             Bruno Haible  <bruno@clisp.org>
55171
55172         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
55173
55174 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55175
55176         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
55177         compile test, for Tru64 4.0D.
55178
55179 2006-05-28  Karl Berry  <karl@gnu.org>
55180
55181         * config/srclist.txt (printf-args.c): lose sync.
55182
55183 2006-05-26  Martin Lambers  <marlam@marlam.de>
55184
55185         * lib/getpass.c: Updates the test for the native W32 API, and adds
55186         missing includes, thus fixing compilation warnings.
55187
55188 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
55189
55190         * lib/exclude.c (exclude_fnmatch): New function.
55191         (excluded_file_name): Call exclude_fnmatch.
55192         * lib/exclude.h (excluded_file_name): New prototype
55193
55194 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
55195
55196         * lib/tempname.c (small_open, large_open): New macros.
55197         (__open, __open64) [!_LIBC]: Remove.
55198         (__gen_tempname): Use small_open and large_open instead of __open
55199         and __open64.  This fixes a portability bug on HP-UX 11.11i
55200         reported by Simon Wing-Tang in
55201         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
55202
55203 2006-05-24  Bruno Haible  <bruno@clisp.org>
55204
55205         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
55206         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
55207         Reported by Thorsten Maerz <torte@netztorte.de> via
55208         Aaron Stone <aaron@serendipity.cx>.
55209
55210 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55211
55212         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
55213         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
55214         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
55215         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
55216         not really conditional on the cache.
55217         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
55218
55219 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55220
55221         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
55222         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
55223         (my_usleep): Don't mishandle maximum value.
55224
55225 2006-05-19  Jim Meyering  <jim@meyering.net>
55226
55227         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
55228
55229 2006-05-17  Bruno Haible  <bruno@clisp.org>
55230
55231         Cygwin portability.
55232         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
55233
55234 2006-05-17  Bruno Haible  <bruno@clisp.org>
55235
55236         * lib/stdint_.h: Fix recognition of Cygwin.
55237
55238 2006-05-15  Bruno Haible  <bruno@clisp.org>
55239
55240         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
55241         on libtool patch by Ralf Wildenhues.
55242
55243 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55244
55245         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
55246         test for C99 conformance; (bool) 0.5 is an integer constant
55247         expression, but (bool) -0.5 is not.  Problem reported by Fedor
55248         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
55249
55250 2006-05-11  Simon Josefsson  <jas@extundo.com>
55251
55252         * m4/xvasprintf.m4: Fix obvious typo.
55253
55254 2006-05-11  Jim Meyering  <jim@meyering.net>
55255
55256         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
55257         James Lemley.
55258
55259 2006-05-10  Simon Josefsson  <jas@extundo.com>
55260
55261         * lib/md4.c: Typo fix, update copyright years.
55262         (K1, K2): Don't use L because it turn computations into 64-bit on
55263         64-bit platforms.
55264
55265 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
55266
55267         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
55268         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
55269         unwanted sign propagation, e.g., on hosts with 64-bit int.
55270         There still are some problems with reeelly weird theoretical hosts
55271         (e.g., 33-bit int) but it's not worth worrying about now.
55272         * lib/sha1.c (rol): Likewise.
55273         (K1, K2, K3, K4): Remove unnecessary L suffix.
55274
55275 2006-05-10  Bruno Haible  <bruno@clisp.org>
55276
55277         * lib/des.c: Cast to avoid warnings.
55278
55279 2006-05-09  Bruno Haible  <bruno@clisp.org>
55280
55281         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
55282         (Depends-on): Depend also on xsize, stdarg.
55283         (configure.ac): Add gl_XVASPRINTF.
55284
55285 2006-05-09  Bruno Haible  <bruno@clisp.org>
55286
55287         * m4/xvasprintf.m4: New file.
55288
55289 2006-05-09  Bruno Haible  <bruno@clisp.org>
55290
55291         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
55292         (EOVERFLOW): Define fallback value.
55293         (xstrcat): New function.
55294         (xvasprintf): Recognize the special case of a string concatenation.
55295
55296 2006-05-08  Eric Blake  <ebb9@byu.net>
55297
55298         * gnulib-tool (func_version): Base copyright year on CVS date.
55299         (func_emit_copyright_notice): New function.
55300         (func_emit_lib_Makefile_am): Use it.
55301         (func_emit_tests_Makefile_am): Likewise.
55302         (func_import): Likewise.
55303
55304 2006-05-08  Bruno Haible  <bruno@clisp.org>
55305
55306         * modules/stdarg: New file.
55307         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
55308
55309 2006-05-08  Bruno Haible  <bruno@clisp.org>
55310
55311         * m4/stdarg.m4: New file, from GNU gettext.
55312
55313 2006-05-08  Bruno Haible  <bruno@clisp.org>
55314
55315         * config/srclist.txt (build-aux/config.rpath): different from latest
55316         release.
55317
55318 2006-05-08  Bruno Haible  <bruno@clisp.org>
55319
55320         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
55321
55322 2006-05-05  Jim Meyering  <jim@meyering.net>
55323
55324         * m4/warning.m4: New file, derived from bison's file by the same name.
55325
55326 2006-05-03  Bruno Haible  <bruno@clisp.org>
55327
55328         * lib/stdint_.h: Shorter URL.
55329         * lib/inttypes.h: Likewise.
55330
55331 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55332
55333         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
55334
55335 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55336
55337         * lib/verify.h: Document the internals better.  Most of this change
55338         was written by Bruno Haible.
55339
55340 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55341
55342         * doc/verify.texi: New file, partly based on a proposal by
55343         Bruno Haible.
55344
55345 2006-05-02  Bruno Haible  <bruno@clisp.org>
55346
55347         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
55348         test from here...
55349         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
55350
55351 2006-04-29  Bruno Haible  <bruno@clisp.org>
55352
55353         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
55354         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
55355
55356 2006-04-29  Bruno Haible  <bruno@clisp.org>
55357
55358         * gnulib-tool: Make --update option actually work.
55359
55360 2006-04-29  Bruno Haible  <bruno@clisp.org>
55361
55362         * doc/gcd.texi: New file.
55363         * doc/gnulib.texi: Include it.
55364
55365 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
55366
55367         * lib/getdate.y (get_date): When adding relative date, start with the
55368         initial time, not with the result of the first mktime call.
55369
55370 2006-04-25  Bruno Haible  <bruno@clisp.org>
55371
55372         * gnulib-tool (func_import): Output the include directives in three
55373         blocks, sorted separately.
55374         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55375
55376 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55377
55378         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
55379         to define main with arguments, for C++.  Reported by Eric Blake.
55380         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
55381         Prefer 'int main ()' to 'int main (void)', for C++.
55382         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
55383         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
55384         for 'main', for C99 and C++.
55385
55386 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55387
55388         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
55389         Don't assume that exit status -1 is valid.
55390         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55391         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55392         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
55393         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
55394         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
55395         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
55396         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
55397         functions can be used without declaring them, or that you can
55398         exit with status -1.
55399         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
55400
55401 2006-04-24  Karl Berry  <karl@gnu.org>
55402
55403         * config/srclist.txt (longdouble.m4): sync lost.
55404
55405 2006-04-24  Eric Blake  <ebb9@byu.net>
55406
55407         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
55408
55409 2006-04-24  Bruno Haible  <bruno@clisp.org>
55410
55411         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
55412         poll() implementation in AIX.
55413         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55414
55415 2006-04-24  Bruno Haible  <bruno@clisp.org>
55416
55417         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
55418         assigned exactly once.
55419
55420 2006-04-23  Claudio Fontana  <claudio@gnu.org>
55421             Bruno Haible  <bruno@clisp.org>
55422
55423         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
55424         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
55425         for AM_CPPFLAGS.
55426
55427 2006-04-23  Bruno Haible  <bruno@clisp.org>
55428
55429         * modules/copy-file: Depend on unistd.
55430         * modules/execute: Likewise.
55431         * modules/fatal-signal: Likewise.
55432         * modules/findprog: Likewise.
55433         * modules/mkdtemp : Likewise.
55434         * modules/pipe: Likewise.
55435         * modules/wait-process: Likewise.
55436
55437 2006-04-23  Bruno Haible  <bruno@clisp.org>
55438
55439         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
55440         condition was already detected.
55441         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55442
55443 2006-04-23  Bruno Haible  <bruno@clisp.org>
55444
55445         * lib/copy-file.c: Include <unistd.h> unconditionally.
55446         * lib/execute.c: Likewise.
55447         * lib/fatal-signal.c: Likewise.
55448         * lib/findprog.c: Likewise.
55449         * lib/mkdtemp.c: Likewise.
55450         * lib/pipe.h: Likewise.
55451         * lib/pipe.c: Likewise.
55452         * lib/wait-process.h: Likewise.
55453
55454 2006-04-23  Bruno Haible  <bruno@clisp.org>
55455
55456         * gnulib-tool (func_usage): Fix --import description. Document
55457         --update.
55458         (func_import): Create temporary file in a temporary directory, if
55459         --dry-run is specified. Silence errors from 'grep' when there are no
55460         m4 files in $m4dir.
55461         (func_create_testdir): Silence errors from 'grep' when there are no
55462         m4 files in $m4dir.
55463         Reported by Karl Berry <karl@freefriends.org>.
55464
55465 2006-04-20  Bruno Haible  <bruno@clisp.org>
55466
55467         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
55468         one argument, so that the code will be portable to Autoconf 2.60.
55469         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
55470         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
55471         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
55472
55473 2006-04-19  Derek Price  <derek@ximbiot.com>
55474             Eric Blake  <ebb9@byu.net>
55475
55476         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
55477         rather than "/full/path.h".  Update comment to match.  Shorten &
55478         generalize m4_translit call via AS_TR_CPP.
55479
55480 2006-04-19  Derek Price  <derek@ximbiot.com>
55481             Eric Blake  <ebb9@byu.net>
55482
55483         * lib/inttypes.h: Correct grammar in comment.
55484
55485 2006-04-18  Derek Price  <derek@ximbiot.com>
55486             Paul Eggert  <eggert@cs.ucla.edu>
55487
55488         * modules/inttypes: New file.
55489         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
55490
55491 2006-04-18  Derek Price  <derek@ximbiot.com>
55492             Paul Eggert  <eggert@cs.ucla.edu>
55493
55494         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
55495         New files.
55496
55497 2006-04-18  Derek Price  <derek@ximbiot.com>
55498             Paul Eggert  <eggert@cs.ucla.edu>
55499
55500         * lib/inttypes.h: New file.
55501         * lib/strtoimax.c: Assume <inttypes.h>.
55502
55503 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
55504
55505         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
55506         isn't mounted.  Problem reported by Kir Kolyshkin.
55507
55508 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
55509
55510         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
55511         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
55512         Derek R. Price.
55513         * lib/regex.h (RE_DUP_MAX): Update comment to match current
55514         implementation.
55515
55516 2006-04-12  Eric Blake  <ebb9@byu.net>
55517
55518         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
55519         is now done automatically by the corresponding Autoconf macro.
55520
55521 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
55522
55523         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
55524         time_r.h.
55525
55526 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55527
55528         Merge regex changes from libc, removing some of our
55529         POSIX-conformance changes that were rejected and redoing them in a
55530         less-intrusive way.
55531
55532         * lib/regcomp.c (re_compile_internal, init_dfa):
55533         Length arg is now size_t, not Idx.  All uses changed.
55534         (peek_token): Forward decl now says internal_function.
55535         (__re_error_msgid, __re_error_msgid_idx):
55536         Now static rather than extern with attribute_hidden.
55537         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
55538         For some reason libc prefers K&R style defns for external functions.
55539         (regerror) [!defined _LIBC]: Likewise.
55540         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
55541         (seek_collating_symbol_entry, lookup_collation_sequence_value):
55542         (build_range_exp, build_collating_symbol):
55543         Use K&R-style defn.
55544         (re_compile_fastmap): Use '\0' to memset, not 0.
55545         (utf8_sb_map): Make the calculations more obvious.
55546         (init_dfa, parse_bracket_exp, build_charclass_op):
55547         Call calloc and cast result, as glibc does.
55548         (init_word_char, fetch_token, peek_token, peek_token_bracket):
55549         (build_range_exp, build_collating_symbol):
55550         Now internal functions.
55551
55552         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
55553
55554         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
55555         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
55556         Don't depend on VMS; depend on __VMS instead, for POSIX
55557         namespace cleanness.
55558         (regoff_t): Define to ssize_t, not long int.
55559
55560         Remove the REG_ macros named below.  Instead, make the old names
55561         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
55562         __USE_GNU_REGEX.
55563         (REG_BACKSLASH_ESCAPE_IN_LISTS):
55564         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
55565         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
55566         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
55567         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
55568         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
55569         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
55570         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
55571         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
55572         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
55573         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
55574         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
55575         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
55576         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
55577         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
55578         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
55579         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
55580         (REG_NREGS):
55581         Remove.  All uses replaced by the old RE_* names.
55582         (RE_BACKSLASH_ESCAPE_IN_LISTS):
55583         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
55584         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
55585         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
55586         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
55587         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
55588         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
55589         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
55590         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
55591         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
55592         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
55593         Don't bother having these macros be independent of each others'
55594         values, since they no longer exist in the POSIX name space.
55595
55596         Rename the following member names back to their old names,
55597         unless !__USE_GNU_REGEX.  All uses changed back.
55598         (buffer): Renamed from re_buffer.
55599         (allocated): Renamed from re_allocated.
55600         (used): Renamed from re_used.
55601         (syntax): Renamed from re_syntax.
55602         (fastmap): Renamed from re_fastmap.
55603         (translate): Renamed from re_translate.
55604         (can_be_null): Renamed from re_can_be_null.
55605         (regs_allocated): Renamed from re_regs_allocated.
55606         (fastmap_accurate): Renamed from re_fastmap_accurate.
55607         (no_sub): Renamed from re_no_sub.
55608         (not_bol): Renamed from re_not_bol.
55609         (not_eol): Renamed from re_not_eol.
55610         (newline_anchor): Renamed from re_newline_anchor.
55611         (num_regs): Renamed from rm_num_regs.
55612         (start): Renamed from rm_start.
55613         (end): Renamed from rm_end.
55614
55615         (free_state): Move up a bit.
55616
55617         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
55618         #define to be empty.
55619         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
55620         when that is what is intended.
55621         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
55622         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
55623         (MAX): New macro.
55624         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
55625         All uses changed back to re_malloc, etc.  It's now the caller's
55626         responsibility to check for overflow; all callers changed.
55627         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
55628         (re_x2nrealloc): Remove.
55629         (free_state): Remove decl.
55630
55631         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
55632         (re_set_registers, re_exec):
55633         Use K&R-style defn.
55634
55635         2006-01-31  Roland McGrath  <roland@redhat.com>
55636
55637         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
55638         Reported by Mike Frysinger <vapier@gentoo.org>.
55639
55640         2006-01-15  Andreas Jaeger  <aj@suse.de>
55641
55642         [BZ #1950]
55643         * lib/regex_internal.c (re_string_reconstruct): Adjust for
55644         build_wcs_upper_buffer change.
55645         (build_wcs_upper_buffer): Change return type.
55646
55647         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
55648
55649         * lib/regex_internal.h: Include <stdint.h> if available.
55650
55651         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
55652
55653         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
55654
55655         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55656
55657         * lib/regcomp.c: Adjust for changed secondary hash function.
55658
55659         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
55660
55661         * lib/regex.h: Pretty printing.
55662         Clean up namespace a bit.
55663
55664         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
55665
55666         * lib/regexec.c (update_cur_sifted_state, check_arrival,
55667         check_arrival_add_next_nodes): Avoid using uninitialized variable.
55668
55669         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55670                     Ulrich Drepper  <drepper@redhat.com>
55671
55672         [BZ #1302]
55673         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
55674         changed.
55675         (bitset_word_t): Renamed from bitset_word.  All uses changed.
55676
55677         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
55678
55679         [BZ #281]
55680         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
55681         * lib/regcomp.c: Remove unnecessary uses of
55682         unsigned RE_TRANSLATE_TYPE.
55683         * lib/regex_internal.h: Likewise.
55684         * lib/regex_internal.c: Likewise.
55685         * lib/regexec.c: Likewise.
55686         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
55687
55688         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
55689
55690         * lib/regexec.c (find_recover_state): Remove unnecessary
55691         initialization.
55692         (transit_state_bkref): Make DFA a const pointer.
55693         (get_subexp): Likewise.
55694         (check_arrival): Likewise.
55695         (update_cur_sifted_state): Likewise.
55696         (re_search_internal): Likewise.
55697         (prune_impossible_nodes): Likewise.
55698         (acquire_init_state_context): Likewise.
55699         (proceed_next_node): Likewise.
55700         (set_regs): Likewise.
55701         (free_fail_stack_return): Likewise.
55702         (check_arrival_expand_ecl): Mark DFA parameter as const.
55703         (check_arrival_expand_ecl_sub): Likewise.
55704         (check_subexp_limits): Likewise.
55705         (sub_epsilon_src_nodes):  Likewise.
55706         (add_epsilon_src_nodes):  Likewise.
55707         (merge_state_array): Likewise.
55708         (update_regs): Likewise.
55709         (build_trtable): Likewise.
55710         (sift_states_backward): Mark MCTX parameter as const.
55711         (build_sifted_states): Likewise.
55712         (update_cur_sifted_state): Likewise.
55713         (sift_states_mkref): Likewise.
55714         (check_arrival_expand_ecl): Mark eclosure as const.
55715         (check_dst_limits_calc_pos_1): Likewise.
55716         * lib/regex_internal.h (re_match_context_t): Make dfa a const
55717         pointer.
55718
55719         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
55720
55721         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
55722         (transit_state_sb): Likewise.
55723         (transit_state_mb): Likewise.
55724         (sift_states_iter_mb): Likewise.
55725         (check_arrival_add_next_nodes): Likewise.
55726         (check_node_accept_bytes): Change first parameter to pointer-to-const.
55727         [_LIBC] (re_search_2_stub): Use mempcpy.
55728
55729         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
55730         mbrtowc for very simple UTF-8 case.
55731
55732         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
55733         a pointer-to-const.
55734         (re_acquire_state_context): Likewise.
55735         * lib/regex_internal.h: Adjust prototypes.
55736
55737         * lib/regex.c: Prevent using C++ compilers.
55738
55739         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
55740         (re_acquire_state_context): Likewise.
55741
55742 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55743
55744         * modules/regex (Depends-on): Add ssize_t.
55745
55746 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55747
55748         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
55749         translation table.
55750
55751 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55752
55753         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
55754
55755 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
55756             Bruno Haible  <bruno@clisp.org>
55757
55758         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
55759         <sys/types.h> and <inttypes.h>.
55760
55761 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55762
55763         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
55764         `__error_t_defined', so argp.h will not typedef the former.
55765
55766 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
55767
55768         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
55769         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
55770         glibc names.  Even if glibc is changed to conform to POSIX, the
55771         traditional names will be available anyway, since regex depends on
55772         the extensions module.  Also, fix a longstanding typo in the
55773         implementation of Spencer ERE test #75 from grep 2.3.  Problems
55774         reported by Emanuele Giaquinta.  Also, change sense of cached
55775         variable, so that the message makes sense.
55776
55777 2006-03-24  Simon Josefsson  <jas@extundo.com>
55778
55779         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
55780         including some doc fixes.
55781         (base64_encode_alloc): Fix +1 bug on allocation failures.
55782
55783 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55784
55785         * lib/base64.c (base64_encode): Do not read past end of array with
55786         unsanitized input on systems with CHAR_BIT > 8.
55787
55788 2006-03-24  Eric Blake  <ebb9@byu.net>
55789
55790         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
55791
55792 2006-03-22  Karl Berry  <karl@gnu.org>
55793
55794         * config/srclist.txt (*setenv.[ch]): get from coreutils.
55795         * config/srclistvars.sh (COREUTILS): new var.
55796
55797 2006-03-17  Jim Meyering  <jim@meyering.net>
55798
55799         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
55800         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
55801
55802 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55803
55804         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
55805         no longer needs it.  Instead, check that regoff_t is as least
55806         as wide as ptrdiff_t.
55807
55808         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
55809         so that our regex.h stays compatible with the installed regex.
55810         This is helpful for installers who configure --without-included-regex.
55811         Problem reported by Emanuele Giaquinta.
55812
55813 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55814
55815         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
55816         Typedef to long int, not to off_, as POSIX will likely change
55817         in that direction.
55818
55819 2006-03-15  Eric Blake  <ebb9@byu.net>
55820
55821         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
55822
55823 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55824
55825         * lib/argp-help.c (validate_uparams): Fix typo
55826         * lib/argp-parse.c (argp_default_options): Consistently begin help
55827         messages with a lowercase letter.
55828
55829 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
55830
55831         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
55832         overrun buffers and shouldn't be used (much as gets shouldn't be
55833         used).
55834         * lib/time_r.c (asctime_r, ctime_r): Likewise.
55835
55836 2006-03-08  Simon Josefsson  <jas@extundo.com>
55837
55838         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
55839         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55840
55841 2006-03-08  Simon Josefsson  <jas@extundo.com>
55842
55843         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
55844         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55845
55846 2006-03-08  Simon Josefsson  <jas@extundo.com>
55847
55848         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
55849         signal that configure disabled the device.
55850
55851 2006-03-08  Simon Josefsson  <jas@extundo.com>
55852
55853         * build-aux/maint.mk: Fix refresh-po, to handle no translated
55854         languages.
55855
55856 2006-03-07  Simon Josefsson  <jas@extundo.com>
55857
55858         * modules/getopt (Depends-on): Add unistd.
55859
55860         * modules/unistd: New file.
55861
55862 2006-03-07  Simon Josefsson  <jas@extundo.com>
55863
55864         * modules/gc-random: New file.
55865
55866 2006-03-07  Simon Josefsson  <jas@extundo.com>
55867
55868         * m4/unistd_h.m4: New file.
55869
55870 2006-03-07  Simon Josefsson  <jas@extundo.com>
55871
55872         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
55873         test to be side-effect free by storing the result in the cache
55874         variable gl_cv_lib_readline, and moving the assignment of
55875         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
55876         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55877
55878 2006-03-07  Simon Josefsson  <jas@extundo.com>
55879
55880         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
55881         error on missing devices (the functions will return an error).
55882
55883         * m4/gc.m4: Move random stuff to gc-random.m4
55884
55885 2006-03-07  Simon Josefsson  <jas@extundo.com>
55886
55887         * lib/unistd_.h: New file.
55888
55889 2006-03-07  Simon Josefsson  <jas@extundo.com>
55890
55891         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
55892
55893 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55894
55895         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
55896         Problem reported by Juan Manuel Guerrero.
55897
55898 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55899
55900         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
55901         the unistd module.
55902         * lib/getlogin_r.c: Likewise.
55903         * lib/getlogin_r.h: Likewise.
55904         * lib/glob.c: Likewise.
55905         * lib/pagealign_alloc.c: Likewise.
55906         * lib/unistd_.h: Remove; no longer needed.
55907
55908 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55909
55910         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55911         Add unistd.
55912         * modules/c-stack (Depends-on): Add unistd.
55913         * modules/getlogin_r: Likewise.
55914         * modules/glob: Likewise.
55915         * modules/pagealign_alloc: Likewise.
55916         * modules/unistd (Files): Remove lib/unistd_.h.
55917         (EXTRA_DIST): Remove.
55918         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
55919         need unistd_.h.
55920         (MOSTLYCLEANFILES): Remove unistd.h-t.
55921
55922 2006-03-03  Simon Josefsson  <jas@extundo.com>
55923
55924         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
55925
55926 2006-03-03  Simon Josefsson  <jas@extundo.com>
55927
55928         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
55929         libidn and bison.
55930
55931 2006-03-03  Simon Josefsson  <jas@extundo.com>
55932
55933         * build-aux/maint.mk: Add indent target.
55934
55935 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
55936
55937         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
55938         our replacement poll.h in any case, to avoid a differing
55939         declaration from a system header.  Seen on AIX.
55940
55941 2006-03-01  Simon Josefsson  <jas@extundo.com>
55942
55943         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
55944         <kasal@ucw.cz>.
55945
55946 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55947
55948         * modules/gettime (Depends-on): Add extensions module.
55949         * modules/nanosleep (Depends-on): Likewise.
55950         * modules/settime (Depends-on): Likewise.
55951
55952 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55953
55954         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
55955         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
55956         pedantically.
55957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55958         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
55959
55960         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
55961         not "==".  Reported by Ralf Wildenhues.
55962
55963 2006-03-01  Karl Berry  <karl@gnu.org>
55964
55965         * doc/Copyright/request-*: new files, synced from gnuorg.
55966
55967 2006-03-01  Karl Berry  <karl@gnu.org>
55968
55969         * config/srclist.txt (Copyright/*): new entries.
55970
55971 2006-02-28  Simon Josefsson  <jas@extundo.com>
55972
55973         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
55974
55975 2006-02-27  Simon Josefsson  <jas@extundo.com>
55976
55977         * lib/base64.h: Indent #define's.  From Jim Meyering
55978         <jim@meyering.net>.
55979
55980 2006-02-27  Jim Meyering  <jim@meyering.net>
55981
55982         Revert the change of 2006-02-24, so these files can continue
55983         to be sync'd from gettext.
55984         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
55985         of `config.h'.
55986
55987 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
55988
55989         * modules/intprops: New file.
55990         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55991         Add intprops.
55992         * modules/getloadavg (Files): Remove lib/intprops.h.
55993         (Depends-on): Add intprops.
55994         * modules/human: Likewise.
55995         * modules/inttostr: Likewise.
55996         * modules/openat: Likewise.
55997         * modules/sig2str: Likewise.
55998         * modules/userspec: Likewise.
55999         * modules/utimecmp: Likewise.
56000         * modules/xnanosleep: Likewise.
56001         * modules/xstrtol: Likewise.
56002
56003 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
56004
56005         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
56006         * modules/lock-tests (TESTS): Use $(EXEEXT).
56007         * modules/tls-tests: Likewise.
56008         * modules/argp-tests: Likewise.
56009         (check_PROGRAMS): New var, replacing...
56010         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
56011
56012 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56013
56014         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
56015         `config.h'.
56016
56017 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56018
56019         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
56020
56021 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56022
56023         Sync from coreutils.
56024         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
56025         gl_CHDIR_SAFER.
56026
56027 2006-02-22  Jim Meyering  <jim@meyering.net>
56028
56029         Sync from coreutils.
56030         * m4/chdir-safer.m4: New file.
56031
56032 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
56033
56034         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
56035         AT_FDCWD exceeds INT_MAX.
56036         * lib/openat.h (AT_FDCWD): Likewise.
56037
56038 2006-02-17  Eric Blake  <address@hidden>
56039
56040         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
56041
56042 2006-02-16  Simon Josefsson  <jas@extundo.com>
56043
56044         * modules/getaddrinfo (Depends-on): Add sys_socket.
56045
56046 2006-02-15  Simon Josefsson  <jas@extundo.com>
56047
56048         * build-aux/maint.mk: Add dsyntax-check rule.
56049
56050 2006-02-15  Eric Blake  <ebb9@byu.net>
56051
56052         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
56053         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
56054         'present but cannot compile' warnings on cygwin.
56055         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
56056         use ws2tcpip.h if sys/socket.h works.
56057         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
56058         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
56059
56060 2006-02-14  Simon Josefsson  <jas@extundo.com>
56061
56062         * modules/maintainer-makefile (Files): Rename.
56063
56064         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
56065         and (the local) Makefile.cfg to maint-cfg.mk.
56066
56067         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
56068         to the latter.
56069
56070         * modules/maintainer-makefile: New module.
56071
56072         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
56073         severaly stripped to make it possible to build it up from scratch
56074         with reliable tests.
56075
56076         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
56077         fixes to permit overriding the default actions when configure and
56078         makefile are not available.
56079
56080 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56081
56082         Sync from coreutils.
56083         * modules/lstat (Depends-on): Don't depend on xalloc.
56084         (License): Change from GPL to LGPL, since this is now simply a
56085         replacement for a libc function.
56086
56087 2006-02-14  Jim Meyering  <jim@meyering.net>
56088
56089         Sync from coreutils.
56090
56091         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
56092         failure on deficient systems, and simplify gnulib lgpl dependencies.
56093         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
56094         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
56095
56096         * lib/xalloc-die.c: Remove unused definition of N_.
56097
56098 2006-02-14  Jim Meyering  <jim@meyering.net>
56099
56100         Sync from coreutils.
56101         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
56102         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
56103         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
56104         double-quote uses of that variable, to accommodate the rare case in
56105         which getmntent is available in none of the libraries checked.  This
56106         happens at least on FreeBSD 5.0.
56107
56108 2006-02-13  Simon Josefsson  <jas@extundo.com>
56109
56110         * gnulib-tool (Usage): Fix --import, from
56111         karl@freefriends.org (Karl Berry).
56112
56113 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
56114
56115         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
56116
56117 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
56118
56119         * lib/argp-namefrob.h: Restore changes accidentally lost during the
56120         "autoupdate" on 2005-12-12.
56121
56122 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
56123
56124         * modules/closeout (Depends-on): Remove atexit.
56125
56126 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
56127
56128         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
56129         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
56130
56131 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56132
56133         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
56134         __EXTENSIONS__ if this causes compilation to fail.  Problem
56135         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
56136         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
56137
56138 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
56139
56140         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
56141         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
56142         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
56143         All uses changed.
56144
56145 2006-01-26  Simon Josefsson  <jas@extundo.com>
56146
56147         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
56148         prototype is visible on mingw32.
56149
56150         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
56151         for mingw32.
56152
56153         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
56154         mingw32).
56155
56156 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56157
56158         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
56159         attempt to open for write; this always fails, at least on POSIX
56160         hosts.  This reinstates the 2006-01-09 change, which was
56161         inadvertently removed.
56162
56163 2006-01-26  Bruno Haible  <bruno@clisp.org>
56164
56165         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
56166         Reported by Paul Eggert.
56167
56168 2006-01-26  Bruno Haible  <bruno@clisp.org>
56169             Paul Eggert  <eggert@cs.ucla.edu>
56170
56171         * lib/stdbool_.h (_Bool)
56172         [(! (defined __cplusplus || defined __BEOS__)
56173           && !defined __GNUC__
56174           && !(defined __HP_cc || defined __xlc__
56175                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
56176                || defined __sgi))]:
56177         #define to signed char in these cases too; this simplifies
56178         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
56179         etc., separately) and makes it more conservative.
56180
56181 2006-01-25  Simon Josefsson  <jas@extundo.com>
56182
56183         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
56184         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
56185         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
56186
56187 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
56188
56189         * lib/argp-namefrob.h: Bugfix. Remove stray #
56190
56191 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
56192
56193         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
56194         so that we test the test.
56195         Check for yet another HP-UX cc bug involving *bool |= bool.
56196
56197 2006-01-25  Karl Berry  <karl@gnu.org>
56198
56199         * config/srclist.txt (vasnprintf.c): sync lost.
56200
56201 2006-01-25  Jim Meyering  <jim@meyering.net>
56202
56203         Sync from the stable (b5) branch of coreutils:
56204
56205         * lib/fts.c (fts_children): Don't let close() clobber errno from
56206         failed fchdir().
56207
56208         * lib/fts.c (fts_stat): When following a symlink-to-directory,
56209         don't necessarily interpret stat-fails+lstat-succeeds as indicating
56210         a dangling symlink.  That can also happen at least for ELOOP.
56211         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
56212         FYI, this bug predates the inclusion of fts.c in coreutils.
56213
56214         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
56215         in their own block, so pre-c99 compilers don't object.
56216
56217         Avoid the double-free (first in fts_read, second in fts_close) that
56218         would occur when an `active' directory is made inaccessible (e.g.,
56219         via chmod a-x) during a traversal.
56220         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
56221         before returning.  Reproduce this failure by
56222         mkdir -p a/b; cd a; chmod a-x . b
56223         Reported by Stavros Passas.
56224
56225 2006-01-25  Jim Meyering  <jim@meyering.net>
56226
56227         * lib/fileblocks.c: Remove more useless parentheses.
56228         * lib/readutmp.h: Likewise.
56229
56230 2006-01-25  Bruno Haible  <bruno@clisp.org>
56231
56232         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
56233         warnings.
56234         Reported by Paul Eggert.
56235
56236 2006-01-25  Bruno Haible  <bruno@clisp.org>
56237
56238         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
56239         rid of a trap command. For Solaris sh.
56240         Reported by Mark D. Baushke <mdb@gnu.org>.
56241
56242 2006-01-24  Simon Josefsson  <jas@extundo.com>
56243
56244         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
56245         Bruno.
56246
56247 2006-01-24  Karl Berry  <karl@gnu.org>
56248
56249         * config/srclist.txt (argp-namefrob.h): sync lost.
56250
56251 2006-01-24  Jim Meyering  <jim@meyering.net>
56252
56253         * modules/openat (Files): Add lib/intprops.h.
56254         From Mark D. Baushke.
56255
56256 2006-01-24  Jim Meyering  <jim@meyering.net>
56257
56258         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
56259         Reported by Mark D. Baushke.
56260
56261 2006-01-24  Jim Meyering  <jim@meyering.net>
56262
56263         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
56264
56265 2006-01-24  Bruno Haible  <bruno@clisp.org>
56266
56267         * modules/strnlen (Maintainer): Change from glibc to all.
56268
56269 2006-01-24  Bruno Haible  <bruno@clisp.org>
56270
56271         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
56272         Patch by Paul Eggert.
56273
56274 2006-01-24  Bruno Haible  <bruno@clisp.org>
56275
56276         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
56277         already has it.
56278         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
56279         2005-11-26.
56280
56281         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
56282         'signed char' to avoid problems with the built-in _Bool type.
56283         Reported by Paul Eggert on 2005-11-26.
56284
56285 2006-01-24  Bruno Haible  <bruno@clisp.org>
56286
56287         * gnulib-tool (func_import): Avoid constructing complicated sed
56288         expressions inside backquote.
56289         Report and solution by Mark D. Baushke <mdb@gnu.org>.
56290
56291 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
56292
56293         These changes imported from libc.
56294         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
56295         test and two separate function calls.
56296         * lib/strndup.c (__strndup): Add libc_hidden_def.
56297
56298 2006-01-23  Simon Josefsson  <jas@extundo.com>
56299
56300         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
56301         Remove the test_*_SOURCES variable: automake infers it by default.
56302         * modules/tls-tests: Likewise.
56303
56304 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56305
56306         Work around porting bugs reported by Dieter in
56307         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
56308         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
56309         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
56310         Include "getopt.h" first, to check interface.
56311         (getenv): Declare only if defined HAVE_DECL_GETENV &&
56312         !HAVE_DECL_GETENV.
56313         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
56314         (__strndup): Revert to K&R-style function dfns, the glibc style.
56315         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
56316         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
56317         Include strnlen.h first, to get prototype properly.
56318         (strnlen): Renamed from __strnlen.
56319         Remove weak alias.
56320
56321 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56322
56323         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
56324
56325 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56326
56327         * config/srclist.txt: Adjust to reflect glibc reorganization.
56328         This affects only comments.
56329
56330 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56331
56332          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
56333          Reported by Bruce Korb <bkorb@gnu.org>.
56334
56335 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56336
56337         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
56338         to pacify gcc -Wswitch-default.
56339
56340 2006-01-22  Bruno Haible  <bruno@clisp.org>
56341
56342         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
56343         temporary buffer for sprintf, take into account the precision also
56344         for 'd', 'i', 'u', 'o', 'x', 'X'.
56345
56346 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
56347
56348         * modules/argp-tests: New module
56349         * tests/test-argp.c: New file
56350         * tests/test-argp-2.sh: New file
56351
56352 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
56353
56354         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
56355         (__argp_base_name): Removed
56356         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
56357         typo.
56358         (__argp_base_name): Provide macro definition or extern declaration
56359         depending on the configuration
56360
56361 2006-01-20  Simon Josefsson  <jas@extundo.com>
56362
56363         * modules/inet_ntop (Depends-on): Depend on sys_socket.
56364
56365 2006-01-20  Simon Josefsson  <jas@extundo.com>
56366
56367         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
56368
56369 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56370
56371         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
56372         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
56373         Suggested by Bruno Haible.
56374
56375 2006-01-20  Karl Berry  <karl@gnu.org>
56376
56377         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
56378         until changes propagate, I guess.
56379
56380 2006-01-19  Simon Josefsson  <jas@extundo.com>
56381
56382         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
56383
56384 2006-01-19  Simon Josefsson  <jas@extundo.com>
56385
56386         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
56387
56388 2006-01-19  Simon Josefsson  <jas@extundo.com>
56389
56390         * gnulib-tool: Set check_PROGRAMS.
56391
56392         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
56393         modules/des-tests, modules/gc-arcfour-tests,
56394         modules/gc-arctwo-tests, modules/gc-des-tests,
56395         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
56396         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
56397         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
56398         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
56399         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
56400         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
56401         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
56402         test_*_SOURCES.
56403
56404 2006-01-18  Simon Josefsson  <jas@extundo.com>
56405
56406         * modules/socklen (Depends-on): Depend on sys_socket.
56407
56408 2006-01-18  Simon Josefsson  <jas@extundo.com>
56409
56410         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
56411         modules/des-tests, modules/gc-arcfour-tests,
56412         modules/gc-arctwo-tests, modules/gc-des-tests,
56413         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
56414         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
56415         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
56416         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
56417         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
56418         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
56419         $(EXEEXT) to automake TESTS variable, for mingw32.
56420
56421 2006-01-17  Simon Josefsson  <jas@extundo.com>
56422
56423         * modules/socklen (Include): Need sys/socket.h.
56424
56425 2006-01-17  Bruno Haible  <bruno@clisp.org>
56426
56427         * modules/ssize_t (Include): Add <sys/types.h>.
56428
56429 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
56430
56431         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
56432         it's not portable and it doesn't work with cross-compiles.
56433         Problem reported by Bruno Haible.  Fix missing-$ typo in
56434         'test "gl_cv_ignore_unused_libraries" ...' that prevented
56435         -zignore from being used with Sun's C compiler.
56436
56437 2006-01-12  Simon Josefsson  <jas@extundo.com>
56438
56439         * lib/base64.c: Fix warning, reported by Bruno Haible
56440         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
56441
56442 2006-01-12  Bruno Haible  <bruno@clisp.org>
56443
56444         * modules/ldd: New file.
56445         * build-aux/ldd.sh.in: New file.
56446         * MODULES.html.sh (Support for building libraries and executables): Add
56447         ldd.
56448
56449 2006-01-12  Bruno Haible  <bruno@clisp.org>
56450
56451         * m4/ldd.m4: New file.
56452
56453 2006-01-12  Bruno Haible  <bruno@clisp.org>
56454
56455         * gnulib-tool (func_import, func_create_testdir): Don't go into an
56456         endless loop while replacing $auxdir with build-aux.
56457
56458 2006-01-11  Simon Josefsson  <jas@extundo.com>
56459
56460         * lib/stdint_.h (SIZE_MAX): Add missing (.
56461
56462 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56463
56464         Sync from coreutils.
56465         * lib/md5.c: Fix commentary typos.
56466         (alignof, UNALIGNED_P): No need for a GCC-specific version.
56467         * lib/md5.h (__attribute__): Remove; unused.
56468         * lib/sha1.c: Fix commentary to match md5 better.
56469         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
56470         so that we don't need to worry about alignment.  All uses changed.
56471         This merges the 2005-10-28 md5 change into sha1.
56472
56473 2006-01-11  Jim Meyering  <jim@meyering.net>
56474
56475         Sync from coreutils.
56476         * lib/md5.c (OP): Fix spacing.
56477
56478 2006-01-11  Bruno Haible  <bruno@clisp.org>
56479
56480         Ensure automatic ordering between gl_LOCK and gl_ARGP.
56481         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
56482         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
56483
56484 2006-01-11  Bruno Haible  <bruno@clisp.org>
56485
56486         Ensure automatic ordering between gl_LOCK and gl_ARGP.
56487         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
56488         the "early" section as well.
56489
56490 2006-01-11  Bruno Haible  <bruno@clisp.org>
56491
56492         Avoid "ar: no archive members specified" error on MacOS X.
56493         * gnulib-tool (func_modules_add_dummy): New function.
56494         (func_import, func_create_testdir): Invoke it.
56495
56496 2006-01-11  Bruno Haible  <bruno@clisp.org>
56497
56498         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
56499         with $auxdir in AC_CONFIG_FILES statements.
56500
56501 2006-01-11  Bruno Haible  <bruno@clisp.org>
56502
56503         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56504         Initialize also noinst_HEADERS to empty.
56505
56506 2006-01-11  Bruno Haible  <bruno@clisp.org>
56507
56508         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
56509         variables.
56510         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
56511         autoreconf.
56512
56513 2006-01-11  Bruno Haible  <bruno@clisp.org>
56514
56515         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
56516         overridable by the user.
56517         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56518
56519 2006-01-10  Simon Josefsson  <jas@extundo.com>
56520
56521         * modules/sys_socket: New file.
56522
56523 2006-01-10  Simon Josefsson  <jas@extundo.com>
56524
56525         * m4/sys_socket_h.m4: New file.
56526
56527 2006-01-10  Simon Josefsson  <jas@extundo.com>
56528
56529         * lib/socket_.h: New file.
56530
56531 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56532
56533         * modules/readutmp (Maintainer): Add myself.
56534
56535 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56536
56537         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
56538         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
56539         People who are still concerned with buggy memcmp implementations
56540         can invoke gl_FUNC_MEMCMP themselves.
56541
56542 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56543
56544         * lib/regex_internal.h (BITSET_WORD_BITS):
56545         Work around a bug in 64-bit PGC (before version 6.1-2), where the
56546         preprocessor mishandles large unsigned values as if they were signed.
56547         Problem reported by Claudio Fontana in
56548         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
56549
56550 2006-01-10  Jim Meyering  <jim@meyering.net>
56551
56552         Avoid the double-free (first in fts_read, second in fts_close) that
56553         would occur when an `active' directory is made inaccessible (e.g.,
56554         via chmod a-x) during a traversal.
56555         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
56556         before returning.  Reproduce this failure by
56557         mkdir -p a/b; cd a; chmod a-x . b
56558         Reported by Stavros Passas.
56559
56560         Sync from coreutils.
56561         * lib/sha1.c: Tweak grammar in a comment.
56562
56563 2006-01-10  Jim Meyering  <jim@meyering.net>
56564
56565         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
56566         Patch by Joerg Sonnenberger.
56567
56568 2006-01-10  Bruno Haible  <bruno@clisp.org>
56569
56570         * modules/readutmp: Depend on module free.
56571         * modules/strtok_r: Depend on module restrict.
56572
56573 2006-01-10  Bruno Haible  <bruno@clisp.org>
56574
56575         * modules/gettext (configure.ac): Add an invocation of
56576         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
56577
56578 2006-01-10  Bruno Haible  <bruno@clisp.org>
56579
56580         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
56581         Reported by Werner Lemberg <wl@gnu.org>.
56582
56583 2006-01-10  Bruno Haible  <bruno@clisp.org>
56584
56585         * lib/localcharset.c: Update from GNU gettext.
56586
56587 2006-01-10  Bruno Haible  <bruno@clisp.org>
56588
56589         * lib/argp.h (__const): Remove macro. Use const instead.
56590         * lib/argp-fmtstream.h (__const): Likewise.
56591         * lib/glob_.h (__const): Remove macro.
56592         * lib/glob-libc.h: Use const instead of __const.
56593
56594 2006-01-10  Bruno Haible  <bruno@clisp.org>
56595
56596         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
56597         variable.
56598         Needed to avoid an automake error regarding the 'gettext' module.
56599
56600 2006-01-09  Simon Josefsson  <jas@extundo.com>
56601
56602         * modules/inet_ntop (Depends-on): Add restrict.
56603
56604 2006-01-09  Simon Josefsson  <jas@extundo.com>
56605
56606         * modules/gc-rijndael-tests (License): Put under LGPL.
56607
56608         * modules/gc-des-tests (License): Likewise.
56609
56610         * modules/gc-arcfour-tests (License): Likewise.
56611
56612         * modules/gc-arctwo-tests (License): Likewise.
56613
56614         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
56615
56616         * modules/gc-hmac-sha1-tests (Files): Likewise.
56617
56618         * modules/gc-hmac-md5-tests (License): Likewise.
56619
56620         * modules/gc-sha1-tests (License): Likewise.
56621
56622         * modules/gc-md5-tests (License): Likewise.
56623
56624         * modules/gc-md4-tests (License): Likewise.
56625
56626         * modules/gc-md2-tests (License): Likewise.
56627
56628         * modules/gc-tests (License): Likewise.
56629
56630         * modules/des-tests (License): Likewise.
56631
56632         * modules/md4-tests (License): Likewise.
56633
56634         * modules/md2-tests (License): Likewise.
56635
56636 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56637
56638         Sync from coreutils:
56639
56640         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
56641         * modules/lib-ignore: New file.
56642         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
56643         chdir-safer.m4, lchmod.m4.
56644         * modules/openat: Add mkdirat.c, openat-priv.h.
56645
56646 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56647
56648         Sync from coreutils.
56649         * m4/lib-ignore.m4: New file.
56650         * m4/lchmod.m4: New file.
56651
56652 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56653
56654         Sync from coreutils.
56655         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
56656         for write access: POSIX says that must fail.
56657         * lib/fts.c (diropen): Likewise.
56658         * lib/save-cwd.c (save_cwd): Likewise.
56659         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
56660         well, for minor improvements on hosts that lack O_DIRECTORY.
56661         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
56662         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
56663         Fall back on chown if open failed with EACCES.
56664
56665         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
56666         Report an error at compile-time if only a 1-second nominal clock
56667         resolution is found.
56668
56669         * lib/lchmod.h: New file.
56670         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
56671         (make_dir_parents): Use lchown rather than chown, and
56672         lchmod rather than chmod.
56673
56674         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
56675         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
56676         "proc" reported by n0dalus.
56677
56678         * lib/mountlist.c: Include <limits.h>.
56679         (dev_from_mount_options)
56680         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
56681         New function.  It no longer assumes "dev=" has the System V meaning
56682         on Linux (since it doesn't).  It also parses "dev=" more carefully.
56683         (read_file_system_list)
56684         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
56685         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
56686         dev= in that case.
56687
56688         * lib/posixtm.h (PDS_PRE_2000): New macro.
56689         * lib/posixtm.c (year): Arg is now syntax_bits rather than
56690         allow_century.  All usages changed.  Reject dates outside the range
56691         1969-1999 if PDS_PRE_2000 is used.
56692
56693 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56694
56695         Sync from coreutils.
56696         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
56697         (Time of day items): Mention the possibility of leap seconds.
56698         Problem reported by Dr. David Alan Gilbert.
56699
56700 2006-01-09  Jim Meyering  <jim@meyering.net>
56701
56702         Sync from coreutils.
56703
56704         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
56705
56706         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
56707
56708         * lib/modechange.c (mode_compile): Reject an invalid mode string
56709         that starts with an octal digit.  From Andreas Gruenbacher.
56710
56711         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
56712         and dup to open_safer and dup_safer, respectively.
56713         (openat_permissive): Fix typo in comment.
56714
56715         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
56716         "gettext.h"; either no longer needed or are guaranteed by openat.h.
56717         (_): Remove; no longer needed.
56718         (openat): Renamed from rpl_openat; no need for rpl_openat
56719         since openat.h renames openat for us.
56720         Replace most of the body with a call to openat_permissive,
56721         to avoid duplicate code.
56722         Port to (probably hypothetical) environments were mode_t is
56723         wider than int.
56724         (openat_permissive): Require mode arg, so that we can check
56725         types better.  Put it just after flags.  Change cwd failure
56726         indicator from pointer-to-bool to pointer-to-errno-value.
56727         All callers changed.
56728         Invoke openat_save_fail and/or openat_restore_fail if
56729         cwd_errno is null, so that openat can call us.
56730         (openat_permissive, fdopendir, fstatat, unlinkat):
56731         Simplify errno handling to avoid some duplicate code,
56732         as it's OK to set errno on success.
56733         * lib/openat.h: Revamp code so that function macros depend on
56734         __OPENAT_PREFIX only, not also on AT_FDCWD.
56735         (openat_ro): Remove.  Caller changed to use openat_permissive.
56736         (openat_permissive): Now a macro, if not a function.
56737         (openat_restore_fail, openat_save_fail): Now always functions,
56738         since mkdirat needs them even if __OPENAT_PREFIX is defined.
56739
56740         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
56741         and openat.c.
56742         * lib/mkdirat.c: Include openat-priv.h.
56743         Remove definitions of macros defined therein.
56744         * lib/openat.c: Likewise.
56745
56746         * lib/mkdirat.c (mkdirat): New file and function.
56747         * lib/openat.h (mkdirat): Declare.
56748
56749         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
56750
56751         * lib/openat.h (openat_permissive): Declare.
56752         (openat_ro): Define.
56753
56754         * lib/openat.c (EXPECTED_ERRNO): New macro.
56755         (openat_permissive): New function -- used in remove.c rewrite.
56756         (all functions): Set errno just before returning, only if there
56757         was an actual failure.
56758         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
56759
56760         Emulate openat-family functions using Linux's procfs, if possible.
56761         Idea and some code based on Ulrich Drepper's glibc changes.
56762
56763         * lib/openat.c: (BUILD_PROC_NAME): New macro.
56764         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
56765         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
56766         before falling back on save_cwd and restore_cwd.
56767         (fdopendir, fstatat, unlinkat): Likewise.
56768
56769         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
56770         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
56771
56772         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
56773         as second argument to va_arg.  Otherwise, some versions of gcc
56774         warn that `if this code is reached, the program will abort'.
56775
56776 2006-01-09  Jim Meyering  <jim@meyering.net>
56777
56778         Sync from coreutils.
56779         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
56780         Require openat-priv.h.
56781
56782 2006-01-09  Bruno Haible  <bruno@clisp.org>
56783
56784         * modules/strnlen (Include): Use strnlen.h.
56785
56786 2006-01-09  Bruno Haible  <bruno@clisp.org>
56787
56788         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
56789
56790 2006-01-09  Bruno Haible  <bruno@clisp.org>
56791
56792         * lib/sysexit_.h (EX_OK): New macro.
56793         Suggested by Martin Lambers <marlam@marlam.de>.
56794
56795 2006-01-09  Bruno Haible  <bruno@clisp.org>
56796
56797         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
56798         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
56799
56800 2006-01-09  Bruno Haible  <bruno@clisp.org>
56801
56802         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
56803         numbers.
56804
56805 2006-01-09  Bruno Haible  <bruno@clisp.org>
56806
56807         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
56808         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
56809         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
56810         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
56811
56812 2006-01-09  Bruno Haible  <bruno@clisp.org>
56813
56814         * build-aux/javacomp.sh.in: New file, moved from lib/.
56815         * modules/javacomp-script (Files): Update.
56816         (configure.ac): Add AC_CONFIG_FILES invocation.
56817         (EXTRA_DIST): Remove variable.
56818
56819         * build-aux/javaexec.sh.in: New file, moved from lib/.
56820         * modules/javaexec (Files): Update.
56821         (configure.ac): Add AC_CONFIG_FILES invocation.
56822         (EXTRA_DIST): Remove javaexec.sh.in.
56823
56824         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
56825         * modules/csharpcomp-script (Files): Update.
56826         (configure.ac): Add AC_CONFIG_FILES invocation.
56827         (EXTRA_DIST): Remove variable.
56828
56829         * build-aux/csharpexec.sh.in: New file, moved from lib/.
56830         * modules/csharpexec (Files): Update.
56831         (configure.ac): Add AC_CONFIG_FILES invocation.
56832         (EXTRA_DIST): Remove csharpexec.sh.in.
56833
56834 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56835
56836         Sync from coreutils.
56837
56838         Add POSIX ACL support
56839         * lib/acl.h (copy_acl, set_acl): Add declarations.
56840         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
56841         systems other than Linux.
56842         (chmod_or_fchmod): New function: use fchmod when possible,
56843         and chmod otherwise.
56844         (file_has_acl): Add a POSIX ACL implementation, with a
56845         Linux-specific subcase.
56846         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
56847         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
56848         acls are unsupported.
56849         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
56850         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
56851         are unsupported.
56852
56853 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56854
56855         Sync from coreutils.
56856         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
56857
56858 2006-01-07  Bruno Haible  <bruno@clisp.org>
56859
56860         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
56861         gl_EARLY.
56862
56863 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56864
56865         * lib/strftime.c (tzname): Don't declare if it is already #defined.
56866         Problem reported for Mingw by Mark Junker.
56867
56868 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56869
56870         * README: Gnulib normally doesn't generate a tarball.
56871
56872 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
56873
56874         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
56875         long int, not int, for nanosecond counts, so that people who are
56876         used to POSIX struct timespec won't be surprised.  Reported by Jim
56877         Meyering.
56878
56879 2005-12-28  Bruno Haible  <bruno@clisp.org>
56880
56881         * build-aux/config.rpath: Update from GNU gettext.
56882
56883 2005-12-16  Jim Meyering  <jim@meyering.net>
56884
56885         * modules/fprintftime: New module.
56886         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
56887
56888 2005-12-16  Jim Meyering  <jim@meyering.net>
56889
56890         * m4/fprintftime.m4: New file.
56891
56892 2005-12-16  Jim Meyering  <jim@meyering.net>
56893
56894         * lib/fprintftime.c, lib/fprintftime.h: New files.
56895
56896 2005-12-15  Simon Josefsson  <jas@extundo.com>
56897
56898         * modules/socklen (configure.ac): Fix M4 macro name, to align with
56899         new m4/socklen.m4.
56900
56901 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56902
56903         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
56904         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
56905
56906 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56907
56908         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
56909         * lib/argp-help.c (fill_in_uparams): Check if the constructed
56910         struct uparams is valid. Fall back to the default values if it is
56911         not.
56912
56913 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56914
56915         * modules/argp (Files): Add argp-pin.c
56916         (Depends-on): dirname
56917         (lib_SOURCES): Add argp-pin.c
56918
56919 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56920
56921         * m4/argp.m4:  Check if program_invocation_name and
56922         program_invocation_short_name are declared and define appropriate
56923         macros if they are not.
56924
56925 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56926
56927         * lib/argp-help.c (__argp_base_name): New function
56928         (__argp_short_program_name): Rewrite using __argp_base_name
56929         * lib/argp-namefrob.h: Define program_invocation_name and
56930         program_invocation_short_name if requested
56931         (__argp_base_name): Add prototype
56932         * lib/argp-parse.c (argp_def): Use gettext wrappers
56933         (argp_default_parser): Use __argp_base_name
56934         * lib/argp-pin.c: New file. Defines program_invocation_name and
56935         program_invocation_short_name on systems that lack them.
56936
56937 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56938
56939         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
56940         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56941         porting problem reported by Georg Schwarz in
56942         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56943
56944 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56945
56946         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
56947         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56948         porting problem reported by Georg Schwarz in
56949         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56950
56951 2005-12-05  Bruno Haible  <bruno@clisp.org>
56952
56953         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
56954         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
56955         Reported by Mark Junker <mjscod@gmx.de>.
56956
56957 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
56958
56959         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
56960         Use implementation from Albert Chin, with some
56961         comments/corrections by Stepan Kasal and myself.
56962
56963 2005-12-02  Bruno Haible  <bruno@clisp.org>
56964
56965         * gnulib-tool (func_import): Accept GPLed build tool modules when
56966         --lgpl is given.
56967         * modules/csharpcomp-script: New file.
56968         * modules/csharpcomp: Depend on it.
56969         * modules/javacomp-script: New file.
56970         * modules/javacomp: Depend on it.
56971         Suggested by Simon Josefsson.
56972
56973 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
56974
56975         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
56976         statement, to work around an HP-UX 10.20 compiler bug reported by
56977         Peter O'Gorman.
56978
56979 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56980
56981         * modules/savedir (Depends-on): Add openat.
56982
56983 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56984
56985         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
56986         (uintmax_t) [defined uintmax_t]: Do not declare.
56987         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
56988         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
56989         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
56990         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
56991         sake of portability to weird hosts that C allows (though we don't
56992         know of any practical examples).
56993
56994         * lib/savedir.h (fdsavedir): New decl.
56995         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
56996         contains most of the former guts of savedir.
56997         (savedir): Use savedirstream.
56998         Include "openat.h".
56999
57000 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57001
57002         * modules/obstack (Files): Add m4/ulonglong.m4.
57003         Problem reported by Davide Angelocola.
57004
57005 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
57006
57007         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
57008         coreutils no longer futzes with rounding modes.
57009
57010 2005-11-14  Jim Meyering  <jim@meyering.net>
57011
57012         * lib/mkstemp-safer.c: Include <config.h>, required for possible
57013         replacement of mkstemp.
57014
57015 2005-11-10  Simon Josefsson  <jas@extundo.com>
57016
57017         * lib/readline.c: Remove EOL.
57018
57019 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57020
57021         * modules/gethrxtime (Depends-on): Add gettime.
57022
57023 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57024
57025         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
57026         or gettimeofday; no longer needed.
57027
57028 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57029
57030         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
57031         time business.
57032         (gethrxtime) [! (HAVE_NANOUPTIME
57033         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
57034         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
57035         our own approximation.
57036
57037 2005-11-08  Eric Blake  <ebb9@byu.net>
57038
57039         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
57040
57041 2005-11-08  Eric Blake  <ebb9@byu.net>
57042
57043         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
57044
57045 2005-11-04  Bruno Haible  <bruno@clisp.org>
57046
57047         * gnulib-tool: Implement --update mode.
57048
57049 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
57050
57051         Fix porting problem reported by Theodoros V. Kalamatianos.
57052         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
57053         Don't assume that futimes failing means we must fail.
57054
57055 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
57056
57057         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
57058         variables to suggest the intended function of the PATH_MAX check.
57059
57060 2005-10-30  Kean Johnston  <jkj@sco.com>
57061
57062         Trivial changes to support SCO systems.
57063         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
57064         as PATH_MAX.
57065         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
57066         where __ptr is null when no I/O is pending.
57067
57068 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57069
57070         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
57071         leave errno alone.  Problem reported by Dmitry V. Levin.
57072
57073 2005-10-28  Simon Josefsson  <jas@extundo.com>
57074
57075         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
57076         Test more.
57077
57078         * tests/test-gc-md2.c, tests/test-md2.c: New files.
57079
57080         * modules/md2, modules/md2-tests: New files.
57081
57082 2005-10-28  Simon Josefsson  <jas@extundo.com>
57083
57084         * m4/inet_ntop.m4: More tests.
57085
57086         * m4/gc-md2.m4, md2.m4: New file.
57087
57088 2005-10-28  Simon Josefsson  <jas@extundo.com>
57089
57090         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
57091         "restrict" keywords, as per POSIX.  Protect the function
57092         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
57093         Don't use K&R prototypes.  Check the sprintf return values.
57094         Re-define EAFNOSUPPORT if not present.  Indent.
57095
57096         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
57097         suggested by Bruno Haible <bruno@clisp.org>.
57098
57099         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
57100
57101         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
57102
57103         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
57104         libgcrypt).
57105
57106         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
57107
57108         * lib/md2.h, lib/md2.c: New files.
57109
57110 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
57111
57112         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
57113         errno alone.  Problem reported by Frederic Jolliton.
57114
57115 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57116
57117         * modules/verify (License): Change from GPL to LGPL.  This is a
57118         tiny module and there are apparently near-equivalents that are
57119         under the BSD license.
57120
57121 2005-10-24  Simon Josefsson  <jas@extundo.com>
57122
57123         * modules/sha1: Relicense to LGPL.
57124
57125 2005-10-24  Simon Josefsson  <jas@extundo.com>
57126
57127         * lib/md4.h: Shrink buffer size, now that we changed the type.
57128
57129 2005-10-23  Simon Josefsson  <jas@extundo.com>
57130
57131         * gnulib-tool (func_import): Fix --tests-base.
57132
57133 2005-10-22  Simon Josefsson  <jas@extundo.com>
57134
57135         * modules/arcfour (Depends-on): Need stdint.
57136
57137 2005-10-22  Simon Josefsson  <jas@extundo.com>
57138
57139         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
57140         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
57141
57142 2005-10-22  Simon Josefsson  <jas@extundo.com>
57143
57144         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
57145         suggested by Bruno Haible <bruno@clisp.org>.
57146
57147 2005-10-22  Simon Josefsson  <jas@extundo.com>
57148
57149         * lib/crc.h: Include stddef.h, for size_t.
57150
57151 2005-10-22  Simon Josefsson  <jas@extundo.com>
57152
57153         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
57154         arcfour_context struct (simplify test vector testing in GNU
57155         Shishi).
57156
57157 2005-10-21  Simon Josefsson  <jas@extundo.com>
57158
57159         * modules/des, modules/des-tests: New files.
57160
57161         * modules/gc-des, modules/gc-des-tests: New files.
57162
57163         * tests/test-des.c, tests/test-gc-des.c: New file.
57164
57165 2005-10-21  Simon Josefsson  <jas@extundo.com>
57166
57167         * modules/arctwo, modules/arctwo-tests: New files.
57168
57169         * tests/test-arctwo.c: New file.
57170
57171         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
57172
57173         * tests/test-gc-arctwo.c: New file.
57174
57175 2005-10-21  Simon Josefsson  <jas@extundo.com>
57176
57177         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
57178         Bruno Haible <bruno@clisp.org>.
57179
57180         * m4/gc-des.m4: New file.
57181
57182 2005-10-21  Simon Josefsson  <jas@extundo.com>
57183
57184         * m4/arctwo.m4: New file.
57185
57186         * m4/gc-arctwo.m4: New file.
57187
57188 2005-10-21  Simon Josefsson  <jas@extundo.com>
57189
57190         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
57191         block.
57192
57193 2005-10-21  Simon Josefsson  <jas@extundo.com>
57194
57195         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
57196         <bruno@clisp.org>.
57197
57198         * lib/hmac-sha1.c (hmac_sha1): Likewise.
57199
57200         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
57201         Bruno Haible <bruno@clisp.org>.
57202
57203         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
57204         <bruno@clisp.org>.
57205
57206 2005-10-21  Simon Josefsson  <jas@extundo.com>
57207
57208         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
57209
57210 2005-10-21  Simon Josefsson  <jas@extundo.com>
57211
57212         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
57213
57214 2005-10-21  Simon Josefsson  <jas@extundo.com>
57215
57216         * lib/des.h, lib/des.c: New files.
57217
57218         * lib/gc-gnulib.c: Support DES.c
57219
57220 2005-10-21  Simon Josefsson  <jas@extundo.com>
57221
57222         * lib/arctwo.h, lib/arctwo.c: New files.
57223
57224         * lib/gc-gnulib.c: Support ARCTWO.
57225
57226 2005-10-21  Simon Josefsson  <jas@extundo.com>
57227
57228         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
57229         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57230
57231 2005-10-21  Simon Josefsson  <jas@extundo.com>
57232
57233         * gnulib-tool (func_import, func_create_testdir): Define automake
57234         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
57235         Makefile.am snippet),
57236         suggested by Bruno Haible <bruno@clisp.org>.
57237
57238         * modules/gc (Makefile.am): Use it.
57239
57240 2005-10-21  Bruno Haible  <bruno@clisp.org>
57241
57242         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
57243         patch.
57244
57245 2005-10-19  Simon Josefsson  <jas@extundo.com>
57246
57247         * tests/test-gc-rijndael.c: New file.
57248
57249         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
57250
57251 2005-10-19  Simon Josefsson  <jas@extundo.com>
57252
57253         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
57254         interface too.
57255
57256 2005-10-19  Simon Josefsson  <jas@extundo.com>
57257
57258         * tests/test-gc-arcfour.c: New file.
57259
57260         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
57261
57262 2005-10-19  Simon Josefsson  <jas@extundo.com>
57263
57264         * modules/gc-md4, modules/gc-md4-tests: New file.
57265
57266         * tests/test-gc-md4.c: New file.
57267
57268 2005-10-19  Simon Josefsson  <jas@extundo.com>
57269
57270         * m4/gc-md4.m4: New file.
57271
57272 2005-10-19  Simon Josefsson  <jas@extundo.com>
57273
57274         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
57275         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
57276         <kasal@ucw.cz>.
57277
57278 2005-10-19  Simon Josefsson  <jas@extundo.com>
57279
57280         * m4/gc-arcfour.m4: New file.
57281
57282         * m4/gc-rijndael.m4: New file.
57283
57284 2005-10-19  Simon Josefsson  <jas@extundo.com>
57285
57286         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
57287
57288 2005-10-19  Simon Josefsson  <jas@extundo.com>
57289
57290         * lib/gc-gnulib.c: Support ARCFOUR.
57291
57292 2005-10-19  Simon Josefsson  <jas@extundo.com>
57293
57294         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
57295         support.
57296
57297         * lib/gc.h: Add ECB enum type.
57298
57299         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
57300
57301 2005-10-18  Simon Josefsson  <jas@extundo.com>
57302
57303         * tests/test-md5.c: New file.
57304
57305         * modules/md5-tests: New file.
57306
57307 2005-10-18  Simon Josefsson  <jas@extundo.com>
57308
57309         * tests/test-md4.c: New file.
57310
57311         * modules/md4, modules/md4-tests: New files.
57312
57313 2005-10-18  Simon Josefsson  <jas@extundo.com>
57314
57315         * m4/md4.m4: New file.
57316
57317 2005-10-18  Simon Josefsson  <jas@extundo.com>
57318
57319         * lib/md4.h, lib/md4.c: New files, based on md5.?.
57320
57321 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
57322
57323         * gnulib-tool (func_create_testdir): Omit the second check whether
57324         BUILT_SOURCES in nonempty.
57325
57326 2005-10-17  Simon Josefsson  <jas@extundo.com>
57327
57328         * tests/test-rijndael.c: New file.
57329
57330 2005-10-17  Simon Josefsson  <jas@extundo.com>
57331
57332         * modules/sha1: Depend on stdint instead of md5.
57333
57334         * modules/md5: Depend on stdint, remove uint32_t.
57335
57336 2005-10-17  Simon Josefsson  <jas@extundo.com>
57337
57338         * modules/gc-sha1-tests: New file.
57339
57340         * tests/test-gc-sha1.c: New file.
57341
57342 2005-10-17  Simon Josefsson  <jas@extundo.com>
57343
57344         * m4/md5.m4: Remove call to uint32_t.m4.
57345
57346 2005-10-17  Simon Josefsson  <jas@extundo.com>
57347
57348         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
57349
57350         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
57351         md5.h.
57352
57353         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
57354
57355         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
57356
57357 2005-10-17  Simon Josefsson  <jas@extundo.com>
57358
57359         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
57360
57361 2005-10-17  Simon Josefsson  <jas@extundo.com>
57362
57363         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
57364
57365 2005-10-17  Simon Josefsson  <jas@extundo.com>
57366
57367         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
57368
57369         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
57370
57371 2005-10-17  Bruno Haible  <bruno@clisp.org>
57372
57373         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
57374         that it can also be used in a test.
57375
57376 2005-10-16  Bruno Haible  <bruno@clisp.org>
57377
57378         * gnulib-tool (func_emit_tests_Makefile_am): Also define
57379         TESTS_ENVIRONMENT, so that individual tests can augment it.
57380
57381         * gnulib-tool (func_create_testdir): Use an intermediate target for
57382         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
57383         macros, like $(ALLOCA_H), which cannot be passed through the command
57384         line.
57385
57386 2005-10-15  Simon Josefsson  <jas@extundo.com>
57387
57388         * modules/rijndael-tests: New file.
57389
57390         * modules/rijndael: New file.
57391
57392 2005-10-15  Simon Josefsson  <jas@extundo.com>
57393
57394         * m4/rijndael.m4: New file.
57395
57396 2005-10-15  Simon Josefsson  <jas@extundo.com>
57397
57398         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
57399
57400         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
57401
57402 2005-10-14  Simon Josefsson  <jas@extundo.com>
57403
57404         * tests/test-arcfour.c: New file.
57405
57406         * modules/arcfour, modules/arcfour-tests: New files.
57407
57408 2005-10-14  Simon Josefsson  <jas@extundo.com>
57409
57410         * m4/arcfour.m4: New file.
57411
57412 2005-10-14  Simon Josefsson  <jas@extundo.com>
57413
57414         * lib/arcfour.h, lib/arcfour.c: New files.
57415
57416 2005-10-14  Roland McGrath  <roland@redhat.com>
57417
57418         Import from libc.  [BZ #1331]
57419         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
57420         macro argument.
57421         Reported by Matej Vela <vela@debian.org>.
57422
57423 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57424
57425         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
57426         include <wchar.h>; no longer needed.
57427
57428 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57429
57430         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
57431
57432 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
57433         and  Ulrich Drepper  <drepper@redhat.com>
57434
57435         Import from libc.
57436         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
57437         instead of inline stream orientation test and two separate
57438         function calls.  Pay no attention to USE_IN_LIBIO.
57439
57440 2005-10-13  Simon Josefsson  <jas@extundo.com>
57441
57442         * modules/gc-hmac-md5-tests: New file.
57443
57444         * tests/test-gc-hmac-sha1.c: New file.
57445
57446         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
57447
57448         * modules/gc-hmac-md5-tests: New file.
57449
57450         * tests/test-gc-md5.c: New file.
57451
57452         * modules/gc-md5-tests: New file.
57453
57454 2005-10-13  Simon Josefsson  <jas@extundo.com>
57455
57456         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
57457         Move memory allocation outside of loop.
57458
57459 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
57460
57461         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
57462         intermediate directory is in a read-only file system.  Problem
57463         reported by Eric Blake.
57464
57465 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
57466
57467         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
57468
57469 2005-10-12  Simon Josefsson  <jas@extundo.com>
57470
57471         * tests/test-hmac-sha1.c: New file.
57472
57473         * modules/hmac-sha1-tests: New file.
57474
57475         * modules/hmac-sha1: New file.
57476
57477 2005-10-12  Simon Josefsson  <jas@extundo.com>
57478
57479         * modules/gc-sha1: New file.
57480
57481 2005-10-12  Simon Josefsson  <jas@extundo.com>
57482
57483         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
57484
57485         * tests/test-gc-pbkdf2-sha1.c: New file.
57486
57487 2005-10-12  Simon Josefsson  <jas@extundo.com>
57488
57489         * modules/gc-md5, modules/gc-hmac-md5: New files.
57490
57491         * modules/gc (Files): Remove md5, memxor and hmac files.
57492
57493 2005-10-12  Simon Josefsson  <jas@extundo.com>
57494
57495         * m4/gc-pbkdf2-sha1.m4: New file.
57496
57497         * m4/gc-hmac-sha1.m4: New file.
57498
57499         * m4/gc-sha1: New file.
57500
57501         * m4/hmac-sha1.m4: New file.
57502
57503 2005-10-12  Simon Josefsson  <jas@extundo.com>
57504
57505         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
57506
57507         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
57508
57509 2005-10-12  Simon Josefsson  <jas@extundo.com>
57510
57511         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
57512         suggested by Bruno Haible <bruno@clisp.org>.
57513
57514 2005-10-12  Simon Josefsson  <jas@extundo.com>
57515
57516         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
57517
57518 2005-10-12  Simon Josefsson  <jas@extundo.com>
57519
57520         * lib/gc-pbkdf2-sha1.c: New file.
57521
57522         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
57523
57524 2005-10-12  Simon Josefsson  <jas@extundo.com>
57525
57526         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
57527
57528         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
57529
57530 2005-10-12  Simon Josefsson  <jas@extundo.com>
57531
57532         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
57533         GC_USE_HMAC_MD5, respectively.
57534
57535         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
57536         (gc_md5): Fix typo.
57537
57538         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
57539
57540         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
57541
57542         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
57543
57544 2005-10-12  Bruno Haible  <bruno@clisp.org>
57545
57546         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
57547         Reported by Stepan Kasal <kasal@ucw.cz>.
57548
57549 2005-10-11  Simon Josefsson  <jas@extundo.com>
57550
57551         * tests/test-crc.c: New file.
57552
57553         * modules/crc, modules/crc-tests: New files.
57554
57555 2005-10-11  Simon Josefsson  <jas@extundo.com>
57556
57557         * m4/crc.m4: New file.
57558
57559 2005-10-11  Simon Josefsson  <jas@extundo.com>
57560
57561         * lib/gc.h: Add gc_hash and gc_hash_buffer.
57562
57563         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
57564
57565         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
57566
57567 2005-10-11  Simon Josefsson  <jas@extundo.com>
57568
57569         * lib/crc.h, lib/crc.c: New files.
57570
57571         * lib/gc.h (gc_hash_buffer): Add doc.
57572
57573 2005-10-11  Bruno Haible  <bruno@clisp.org>
57574
57575         * modules/c-strcasestr: New file.
57576         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
57577
57578 2005-10-11  Bruno Haible  <bruno@clisp.org>
57579
57580         * modules/c-strcase: New file.
57581         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
57582
57583 2005-10-11  Bruno Haible  <bruno@clisp.org>
57584
57585         * lib/strcasecmp.c: Include limits.h.
57586         (strcasecmp): Avoid integer overflow on exotic platforms.
57587         * lib/strncasecmp.c: Include limits.h.
57588         (strncasecmp): Avoid integer overflow on exotic platforms.
57589         Reported by Paul Eggert.
57590
57591 2005-10-11  Bruno Haible  <bruno@clisp.org>
57592
57593         * lib/c-strcasestr.h: New file, from GNU gettext.
57594         * lib/c-strcasestr.c: New file, from GNU gettext.
57595
57596 2005-10-11  Bruno Haible  <bruno@clisp.org>
57597
57598         * lib/c-strcase.h: New file, from GNU gettext.
57599         * lib/c-strcasecmp.c: New file, from GNU gettext.
57600         * lib/c-strncasecmp.c: New file, from GNU gettext.
57601
57602 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57603
57604         * modules/mempcpy (License): GPL -> LGPL.
57605         * modules/strchrnul (License): Likewise.
57606         * modules/sysexits (License): Likewise.
57607
57608 2005-10-08  Simon Josefsson  <jas@extundo.com>
57609
57610         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
57611
57612 2005-10-07  Simon Josefsson  <jas@extundo.com>
57613
57614         * m4/memxor.m4: Remove gl_C_RESTRICT call.
57615
57616 2005-10-06  Simon Josefsson  <jas@extundo.com>
57617
57618         * tests/test-hmac-md5.c: New file.
57619
57620         * modules/hmac-md5-tests: New file.
57621
57622         * modules/hmac-md5: New file.
57623
57624 2005-10-06  Simon Josefsson  <jas@extundo.com>
57625
57626         * m4/hmac-md5.m4: New file.
57627
57628         * m4/memxor.m4: Require gl_C_RESTRICT.
57629
57630 2005-10-06  Simon Josefsson  <jas@extundo.com>
57631
57632         * lib/memxor.c (memxor): Avoid casts and warnings.
57633
57634 2005-10-06  Simon Josefsson  <jas@extundo.com>
57635
57636         * lib/hmac-md5.c: New file.
57637
57638         * lib/hmac.h: New file.
57639
57640 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57641
57642         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
57643         promotes to int, not unsigned int, to catch the AIX 5.3
57644         compiler bug.
57645
57646 2005-10-05  Simon Josefsson  <jas@extundo.com>
57647
57648         * modules/memxor: New file.
57649
57650         * modules/iconv (Files): Move config.rpath to havelib, it is used
57651         there.
57652
57653         * modules/havelib (Files): Add config.rpath.
57654
57655 2005-10-05  Simon Josefsson  <jas@extundo.com>
57656
57657         * m4/memxor.m4: New file.
57658
57659 2005-10-05  Simon Josefsson  <jas@extundo.com>
57660
57661         * lib/memxor.c (memxor): Fix compiler error.
57662
57663         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
57664         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
57665
57666         * lib/memxor.h, lib/memxor.c: New files.
57667
57668         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
57669         we assume all systems have it, suggested by Jim Meyering
57670         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
57671         any systems lack sys/socket.h; mingw32 is known to lack it, but we
57672         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
57673         same reasons.
57674
57675 2005-10-05  Simon Josefsson  <jas@extundo.com>
57676
57677         * config/srclist.txt: Add glibc bug 1423 for md5.h.
57678
57679 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57680
57681         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
57682         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
57683         needed, since the source code now assumes these .h files.
57684
57685 2005-10-05  Derek Price  <derek@ximbiot.com>
57686
57687         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
57688
57689 2005-10-05  Bruno Haible  <bruno@clisp.org>
57690
57691         * modules/stdint (License): Change to LGPL.
57692
57693 2005-10-04  Simon Josefsson  <jas@extundo.com>
57694
57695         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
57696         D. Baushke" <mdb@gnu.org>.
57697
57698 2005-10-04  Bruno Haible  <bruno@clisp.org>
57699
57700         * lib/verify.h (verify_true): Provide alternative definition for C++.
57701
57702 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
57703
57704         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
57705         (SSIZE_MAX): New macro, if not already defined.
57706         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
57707         than 2 GiB.
57708
57709 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57710
57711         Sync from coreutils.
57712         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
57713         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
57714         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
57715         ULLONG_MAX doesn't work with 2.7.2.1.
57716
57717 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57718
57719         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
57720         From Ben Pfaff.
57721
57722         * modules/exclude (Depends-on): Depend on verify.
57723         * modules/strtoimax (Depends-on): Likewise.
57724         * modules/utimecmp (Depends-on): Likewise.
57725
57726 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57727
57728         * lib/exclude.c: Include verify.h.
57729         (verify): Remove.  All callers changed to use verify.h's version.
57730         * lib/strtoimax.c: Likewise.
57731         * lib/utimecmp.c: Likewis.e
57732
57733         Sync from coreutils.
57734         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
57735         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
57736         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
57737         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
57738         bother returning ENOSYS if settimeofday or stime fails; just let
57739         them return whatever errno they want to return.
57740         * lib/utimens.c: Include unistd.h, for dup2.
57741         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
57742         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
57743
57744 2005-10-02  Jim Meyering  <jim@meyering.net>
57745
57746         Sync from coreutils.
57747         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
57748         from glibc-2.2.5 that fails for read-only files.
57749
57750 2005-10-02  Jim Meyering  <jim@meyering.net>
57751
57752         Sync from coreutils.
57753         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
57754         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
57755         `#if HAVE_CONFIG_H'.
57756         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
57757         Remove AT_FDCWD test.
57758         Do not consume the fd unless successful.
57759         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
57760         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
57761         block, so that we don't even try to compile it if settimeofday is
57762         available.  This works around a compilation failure on OSF1 V5.1,
57763         due to stime requiring a `long int*' while tv_sec is `int'.
57764
57765 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
57766
57767         Sync from coreutils.
57768         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
57769         against `yes', rather than just testing for nonempty.
57770
57771 2005-10-01  Simon Josefsson  <jas@extundo.com>
57772
57773         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
57774         and Darwin.
57775
57776         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
57777         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
57778         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
57779         freeaddrinfo and gai_strerror are declared by the POSIX headers.
57780         Check if struct addrinfo is declared.
57781
57782 2005-10-01  Simon Josefsson  <jas@extundo.com>
57783
57784         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
57785         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
57786         AI_* and EAI_* definitions.  Protect function declarations.
57787
57788 2005-10-01  Jim Meyering  <jim@meyering.net>
57789
57790         Sync from coreutils.
57791
57792         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
57793         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
57794         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
57795         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57796         in the inet and nsl libraries.  Required on Solaris 5.7.
57797
57798 2005-10-01  Jim Meyering  <jim@meyering.net>
57799
57800         Sync from coreutils.
57801         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57802         in the inet and nsl libraries.  Required on Solaris 5.7.
57803
57804 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
57805
57806         * lib/getdelim.c (getdelim): Remove unused variables.
57807
57808 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57809
57810         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
57811         so that the code works even with ancient cpp.  Portability problem
57812         with GCC 2.7.2.1 reported by Thomas M.Ott.
57813
57814 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57815
57816         * modules/regex (Depends-on): Add strcase.
57817
57818         * modules/gethostname (Licence): Change from GPL to LGPL, since
57819         gethostname.c is a trivial implementation of a standard library
57820         function.
57821         * modules/poll (License): Change from GPL to LGPL, since it's
57822         derived from LGPL code.
57823
57824 2005-09-27  Jim Meyering  <jim@meyering.net>
57825
57826         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
57827         HAVE_CONFIG_H.
57828
57829         * lib/intprops.h (signed_type_or_expr__): Define.
57830         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
57831         for unsigned types.
57832
57833 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57834
57835         * lib/verify.h (verify_expr): Remove, replacing with:
57836         (verify_true): New macro that returns true instead of void.
57837         (verify_type__): Remove.
57838         (verify): Use verify_true rather than verify_type__.
57839
57840 2005-09-26  Bruno Haible  <bruno@clisp.org>
57841
57842         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
57843         is necessary.
57844         (lib_SOURCES): Remove mbchar.c.
57845         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
57846         (Files): Add m4/mbrtowc.m4.
57847         * modules/mbiter: Likewise.
57848         * modules/mbuiter: Likewise.
57849
57850 2005-09-26  Bruno Haible  <bruno@clisp.org>
57851
57852         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
57853         compile mbchar.c if they are not both present.
57854         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
57855         * m4/mbiter.m4 (gl_MBITER): Likewise.
57856         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
57857         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
57858         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
57859
57860 2005-09-25  Jim Meyering  <jim@meyering.net>
57861
57862         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
57863         also uses socklen_t.
57864
57865 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
57866
57867         * lib/utimens.c (ENOSYS): Define if not already defined.
57868         (futimens): Support having a null PATH if the file descriptor
57869         is nonnegative.
57870
57871         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
57872         Remove.
57873         (__attribute): Define to empty unless GCC 3.1 or later.
57874         This works around a core dump on OpenBSD 3.4, which has GCC
57875         2.95.3, which dumps core when given __attribute__(()).  It also
57876         simplifies other tests, since we really don't want to bother with
57877         worrying about which ancient version of GCC supported what.
57878         Original problem reported by Yoann Vandoorselaere, with part of
57879         the fix suggested by Derek Price.
57880
57881 2005-09-24  Jim Meyering  <jim@meyering.net>
57882
57883         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
57884         so we can once again use a positive bitfield width of 1 -- now we
57885         don't have to explain why we were using a bitfield width of 2.
57886
57887 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57888
57889         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
57890         and similarly for the other external symbols.  Problem reported
57891         by James Gallager.
57892
57893         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
57894         bug reported by Jim Meyering.
57895
57896         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
57897         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
57898         not needed, since socklen is a prerequisite module.
57899
57900 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57901
57902         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
57903         Problem reported by Eric Blake.
57904         (getaddrinfo): Initialize se so that it's not garbage.
57905         Redo internal storage allocation so that it doesn't make unportable
57906         assumptions about alignment.
57907         Fix a memory leak.
57908
57909         * lib/utimens.c (futimens): Use futimesat if available.
57910         Prefer it to futimes since it doesn't have the futimes bug.
57911
57912         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
57913         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
57914         Instead, declare a function that returns a pointer to an array,
57915         and use verify_type__ to declare the size of the array.
57916         Problem and germ of a solution reported by Bruno Haible.
57917         (verify_type__): Use 2, not 1, for bitfield size, to avoid
57918         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
57919
57920 2005-09-23  Jim Meyering  <jim@meyering.net>
57921
57922         Sync from coreutils.
57923         Correct build failure (socklen_t not defined) on at least
57924         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
57925         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
57926
57927 2005-09-23  Jim Meyering  <jim@meyering.net>
57928
57929         * modules/getaddrinfo (Depends-on): Add socklen.
57930
57931 2005-09-23  Bruno Haible  <bruno@clisp.org>
57932
57933         * tests/test-verify.c: New file.
57934
57935 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57936
57937         Sync from coreutils.
57938
57939         * modules/argmatch (Depends-on): Add verify.
57940         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
57941         unistd-safer.
57942         * modules/save-cwd (Depends-on): Likewise.
57943
57944         * modules/openat (Files): Add lib/openat-die.c.
57945         (Depends-on): Remove error, exitfail.
57946         Add dirname.
57947
57948         * modules/verify: New file.
57949         * MODULES.html.sh (Diagnostics <assert.h>): New section,
57950         with "verify" module.
57951
57952 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57953
57954         Sync from coreutils.
57955
57956         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
57957         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
57958         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
57959         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
57960         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
57961         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
57962         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
57963         Don't bother checking for string.h, stdlib.h, unistd.h.
57964         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
57965         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
57966         module's job.
57967         * m4/jm-macros.m4 (gl_MACROS): Likewise.
57968         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
57969
57970         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
57971         (gl_GETDATE): Use it.
57972
57973         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
57974
57975 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57976
57977         Sync from coreutils.
57978
57979         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
57980         stat-time.h.
57981         * lib/argmatch.h: Include verify.h
57982         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
57983         (ARGMATCH_ASSERT): Remove; unused.
57984         * lib/canonicalize.c: Assume STDC_HEADERS.
57985         * lib/exclude.c: Include "strcase.h".
57986         * lib/regex_internal.h [!defined _LIBC]: Likewise.
57987         * lib/getusershell.c: Include stdio--.h rather than stdio.h
57988         and stdio-safer.h.
57989         (getusershell): Call fopen, not fopen_safer.
57990         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
57991         Do not include unistd-safer.h.
57992         (save_cwd): Don't call fd_safer; no longer needed
57993         now that we include fcntl--.h.
57994
57995         * lib/getdate.y (relative_time): New type.
57996         (RELATIVE_TIME_0): New constant.
57997         (parser_control): Use relative_time instead of doing it ourselves.
57998         (%union): Add new relative_time rel member.
57999         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
58000         Now typeless.
58001         (relunit, relunit_snumber): Now of type rel.
58002         (zone, rel, relunit, get_date): Adjust to above changes.
58003
58004         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
58005         Do not include unistd-safer.h.
58006         (getloadavg): Don't call fd_safer; no longer needed
58007         now that we include fcntl--.h.
58008
58009         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
58010         (make_dir_parents): Treat ENOSYS like EEXIST.
58011
58012         Improve quality of diagnostics on restore_cwd failure.
58013         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
58014         (make_dir_parents): Last arg is now int * (for errno), not bool *.
58015         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
58016         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
58017         each time through the loop.  Do not diagnose restore_cwd failure;
58018         that is the caller's job (and perhaps the caller does not care).
58019
58020         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
58021         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
58022         If the file already exists but is not a directory, don't bother
58023         to try to make its parents.
58024         Close potential file descriptor leak if we can't chdir("/") (!).
58025         Don't always return true if chdir($PWD) fails; return true only
58026         if the requested action was done successfully (except for the
58027         chdir($PWD)).
58028         Don't log final directory unless we actually made it.
58029         Refactor to avoid duplicate code to fix up permissions.
58030         Don't attempt to fix up parent permissions if chdir($PWD) fails.
58031
58032         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
58033         to make it a bit faster and (I hope) clearer.
58034         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
58035         Fix bug in formats like %2N.
58036
58037         * lib/verify.h: New file.
58038
58039 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
58040
58041         Sync from coreutils.
58042         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
58043
58044 2005-09-22  Jim Meyering  <jim@meyering.net>
58045
58046         Sync from coreutils.
58047
58048         * m4/lstat.m4 (gl_FUNC_LSTAT):
58049         Use AC_LIBSOURCES to require lstat.c and lstat.h.
58050         Remove obsolete comment.
58051         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
58052         * m4/xstrtod.m4: Likewise.
58053
58054         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
58055
58056 2005-09-22  Jim Meyering  <jim@meyering.net>
58057
58058         Sync from coreutils.
58059
58060         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
58061
58062         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
58063         the .tm_year member, since otherwise gcc-4.0 would now warn about
58064         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
58065
58066         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
58067         order to avoid an unsuppressible warning from gcc on 64-bit systems.
58068
58069         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
58070         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
58071         when run in a time zone for which daylight savings time is in effect
58072         for the starting date.
58073
58074         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
58075         stop us from restricting permissions of just-created absolute-named
58076         directories.
58077         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
58078         to restore initial working directory.
58079         * lib/mkdir-p.c (make_dir_parents): New parameter:
58080         different_working_dir, to tell caller if/when we change the working
58081         directory and are unable to return to the initial one.
58082         * lib/mkdir-p.h (make_dir_parents): Update prototype.
58083         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
58084         `return false'.  This fixes a bug introduced on 2004-07-30.
58085
58086         * lib/openat.c (fdopendir): Be sure to close the supplied
58087         file descriptor before returning.  This makes our replacement
58088         implementation a little closer to Solaris's, where fdopendir
58089         ties the file descriptor to the returned DIR* pointer.
58090         * lib/openat.c (unlinkat): New function.
58091         * lib/openat.h (unlinkat): Add prototype.
58092         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
58093         (openat_restore_fail): Rename from openat_restore_die.
58094         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
58095
58096         Provide an alternative to exiting immediately upon save_cwd or
58097         restore_cwd failure.  Now, an application can arrange e.g.,
58098         to perform a longjump in that case.
58099         * lib/openat.c: Include dirname.h.
58100         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
58101         (rpl_openat, fdopendir, fstatat): Call openat_save_die
58102         and openat_restore_die rather than calling error directly.
58103         Don't include "error.h" or "exitfail.h"; they're no longer needed.
58104
58105         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
58106         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
58107         define.
58108
58109         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
58110         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
58111                             int utc, int nanoseconds);
58112         Background:
58113         date should not have to allocate a megabyte of virtual memory to
58114         handle a format argument like +%1048575T.  When implemented with
58115         strftime, it must allocate such a buffer, use strftime to fill it
58116         in, print it, then free it.
58117         With fprintftime, it simply prints everything and exits.
58118         With no need for memory allocation, that's one fewer way to fail.
58119         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
58120         optional field width, not before, so we accept %9:z, not %:9z.
58121         (my_strftime): Be sure to use L_('x') for literals.
58122
58123         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
58124         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
58125         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
58126         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
58127         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
58128         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
58129         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
58130         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
58131         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
58132         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
58133         * lib/xgethostname.c, lib/xreadlink.c:
58134         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
58135
58136         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
58137         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
58138         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
58139         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58140         and don't include <sys/file.h>).
58141
58142 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
58143
58144         Sync from coreutils.
58145
58146         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
58147         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
58148         [!LDAV_DONE]: Avoid unused variable warning.
58149
58150 2005-09-21  Bruno Haible  <bruno@clisp.org>
58151
58152         * lib/unicodeio.h (unicode_to_mb): New declaration.
58153
58154 2005-09-20  Derek Price  <derek@ximbiot.com>
58155
58156         * lib/getaddrinfo.c: Don't include <netdb.h> included from
58157         getaddrinfo.h.
58158
58159 2005-09-20  Bruno Haible  <bruno@clisp.org>
58160
58161         * gnulib-tool: Remove trailing slashes from the values specified for
58162         --source-base, --m4-base, --tests-base, --aux-dir.
58163         Suggested by Simon Josefsson <jas@extundo.com>.
58164
58165 2005-09-20  Bruno Haible  <bruno@clisp.org>
58166
58167         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
58168         func_modules_to_filelist, func_import, func_create_testdir): Make all
58169         sorting results locale-independent, so that gnulib-cache.m4 doesn't
58170         change when gnulib-tool is invoked in a different locale.
58171
58172 2005-09-19  Simon Josefsson  <jas@extundo.com>
58173
58174         * m4/socklen.m4: Fix typo.
58175
58176 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58177
58178         Use a consistent style for including <config.h>.
58179         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
58180         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
58181         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
58182         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
58183         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
58184         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
58185         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
58186         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
58187         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
58188         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
58189         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
58190         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
58191         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
58192         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
58193         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
58194         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
58195         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
58196         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
58197         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
58198         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
58199         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
58200         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
58201         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
58202         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
58203         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
58204         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
58205         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
58206         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
58207         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
58208         lib/xstrtoumax.c, lib/yesno.c:
58209         Standardize inclusion of config.h.
58210         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
58211         lib/inttostr.h:  Removed inclusion of config.h from header files.
58212         * lib/inttostr.c:  Adjusted in-tree users.
58213         * lib/timespec.h: Remove superfluous warning to include config.h.
58214         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
58215         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
58216         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
58217         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
58218         config.h with HAVE_CONFIG_H.
58219
58220 2005-09-19  Jim Meyering  <jim@meyering.net>
58221
58222         * modules/pathmax (License): Change to LGPL.
58223
58224 2005-09-19  Derek Price  <derek@ximbiot.com>
58225
58226         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
58227
58228 2005-09-19  Bruno Haible  <bruno@clisp.org>
58229
58230         * gnulib-tool (import): Provide default for --tests-base.
58231
58232 2005-09-19  Bruno Haible  <bruno@clisp.org>
58233
58234         * doc/quote.texi: New file, extracted from gnulib.texi.
58235         * doc/ctime.texi: New file, extracted from gnulib.texi.
58236         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
58237         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
58238         * doc/gnulib.texi: Include them.
58239
58240 2005-09-18  Bruno Haible  <bruno@clisp.org>
58241
58242         Portability fix.
58243         * gnulib-tool (func_readlink): New function.
58244         (func_ln_if_changed): Use it.
58245
58246 2005-09-18  Bruno Haible  <bruno@clisp.org>
58247
58248         * gnulib-tool: Support --with-tests also with --import.
58249         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
58250         (func_import): Use variables $testsbase and $inctests. Emit a
58251         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
58252         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
58253         SUBDIRS += $testsdir.
58254         (func_create_testdir): Update.
58255
58256 2005-09-18  Bruno Haible  <bruno@clisp.org>
58257
58258         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
58259         instead of $dry_run.
58260         (func_cp_if_changed, func_mv_if_changed): Remove functions.
58261         (func_ln_if_changed): Don't handle dry-run here.
58262         (func_import): In dry-run mode, detect more precisely which actions
58263         would be performed, and don't use "...ing" verbs.
58264
58265 2005-09-18  Bruno Haible  <bruno@clisp.org>
58266
58267         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
58268         (func_import): Use join on two temporary files instead of three nested
58269         loops, in order to determine which files are new or old.
58270
58271 2005-09-18  Bruno Haible  <bruno@clisp.org>
58272
58273         * gnulib-tool (func_import): Comment out code that spits out the
58274         new files with --dry-run.
58275
58276 2005-09-18  Bruno Haible  <bruno@clisp.org>
58277
58278         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
58279
58280 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
58281
58282         * lib/stat-time.h: New file.
58283         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
58284         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
58285         in a different way.
58286         (timespec_cmp): New function.
58287         * lib/utimecmp.c: Include stat-time.h.
58288         (SYSCALL_RESOLUTION): Depend on whether various struct stat
58289         members exist, not on the obsolescent ST_MTIM_NSEC.
58290         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
58291
58292 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
58293
58294         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
58295
58296 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
58297
58298         * MODULES.html.sh (File system functions): Add stat-time.
58299         * modules/stat-time: New file.
58300         * modules/timespec (Files): Remove m4/st_mtim.m4; this
58301         is now done in a different way, by the stat-time module.
58302         * modules/utimecmp (Depends-on): Add stat-time.
58303
58304 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58305
58306         * m4/st_mtim.m4: Remove.  Superseded by...
58307         * m4/stat-time.m4: New file.
58308         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
58309         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
58310
58311 2005-09-15  Derek Price  <derek@ximbiot.com>
58312
58313         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
58314
58315 2005-09-15  Derek Price  <derek@ximbiot.com>
58316
58317         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
58318         * lib/regex_internal.c: Ditto, using this...
58319         (__GNUC_PREREQ): ...new macro.
58320         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
58321         using...
58322         (__GNUC_PREREQ): ...this new macro.
58323
58324         * lib/strstr.h: Include string.h. Define strstr as a macro here.
58325
58326 2005-09-15  Derek Price  <derek@ximbiot.com>
58327             Paul Eggert  <eggert@cs.ucla.edu>
58328
58329         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
58330         changes, consolidating in...
58331         * lib/regex_internal.h: ...this file.
58332
58333 2005-09-13  Jim Meyering  <jim@meyering.net>
58334
58335         * lib/canon-host.c: Filter through gnu indent and reword comments
58336         slightly.
58337         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
58338
58339 2005-09-13  Derek Price  <derek@ximbiot.com>
58340
58341         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
58342         failure.
58343         Reported by Jim Meyering  <jim@meyering.net>.
58344
58345 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
58346
58347         * lib/base64.c: Typo.
58348         (base64_encode): Put b64str in initialized data section.
58349
58350 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
58351
58352         Merge glibc and coreutils changes into gnulib, plus a few
58353         extra fixes.
58354         * lib/md5.c: Use #error rather than a string.
58355         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
58356         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
58357         (__attribute__): Define to empty for non recent-GCC.
58358         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
58359         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
58360         Renamed from their non-__ counterparts, with new macros replacing
58361         them if not _LIBC.  Add __THROW attribute.
58362         (rol): Remove.
58363         (struct md5_ctx): Align buffer if using GCC.
58364         * lib/sha1.h (struct sha1_ctx): Likewise.
58365         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
58366         The old name was backwards.
58367         (NOTSWAP): Remove; not used.
58368         (rol): New macro, moved here from md5.h.
58369         (sha1_process_block): Remove a FIXME that doesn't make sense.
58370
58371 2005-09-12  Derek Price  <derek@ximbiot.com>
58372
58373         Return usable errors from canon-host.
58374         * lib/canon-host.h: New file.
58375         * lib/canon-host.c (canon_host): Wrap...
58376         (canon_host_r): ...this new function, which now relies exclusively on
58377         getaddrinfo.
58378         (ch_strerror): New function.
58379         (last_cherror): New global.
58380         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
58381         interface.
58382         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
58383         void *.
58384         (freeaddrinfo): Free ai->ai_canonname when set.
58385
58386 2005-09-12  Derek Price  <derek@ximbiot.com>
58387
58388         Make canon-host require getaddrinfo.
58389         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
58390         AC_LIBSOURCE canon-host.h.  Call...
58391         (gl_PREREQ_CANON_HOST): ...this new function, which requires
58392         gl_GETADDRINFO.
58393         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
58394
58395 2005-09-12  Derek Price  <derek@ximbiot.com>
58396
58397         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
58398         LGPL.
58399         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
58400
58401 2005-09-12  Derek Price  <derek@ximbiot.com>
58402
58403         * lib/gai_strerror.c: Include config.h when available.  Include
58404         getaddrinfo.h before other headers to test interface.
58405         Reported by Larry Jones <lawrence.jones@ugs.com>.
58406
58407 2005-09-12  Derek Price  <derek@ximbiot.com>
58408             Paul Eggert  <eggert@cs.ucla.edu>
58409
58410         * modules/glob (Files): Add glob-libc.h.
58411
58412 2005-09-12  Derek Price  <derek@ximbiot.com>
58413             Paul Eggert  <eggert@cs.ucla.edu>
58414
58415         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
58416         glob_.h, glob-libc.h.
58417         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
58418
58419 2005-09-12  Derek Price  <derek@ximbiot.com>
58420             Paul Eggert  <eggert@cs.ucla.edu>
58421
58422         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
58423         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
58424         protecting things that should be done only in gnulib contexts.
58425         * lib/glob_.h: New file, containing only the glob things needed for
58426         gnulib.
58427         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
58428         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
58429         (glob, globfree, glob_pattern_p): Now defined simply in terms of
58430         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
58431         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
58432         and to respect the namespace rules better.
58433
58434 2005-09-08  Simon Josefsson  <jas@extundo.com>
58435
58436         * modules/socklen: New file.
58437
58438 2005-09-08  Simon Josefsson  <jas@extundo.com>
58439
58440         * m4/socklen.m4: New file.
58441
58442 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58443
58444         * modules/utimens (Files): Add m4/utimbuf.m4, since
58445         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
58446         Reported by Sergey Poznyakoff.
58447
58448 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58449
58450         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
58451         definitions, since that's the preferred style in glibc.
58452         Fix a minor spacing issue, and update copyright notice to match
58453         glibc's.
58454
58455 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58456
58457         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
58458
58459 2005-09-06  Simon Josefsson  <jas@extundo.com>
58460
58461         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
58462         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
58463
58464 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58465
58466         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
58467         warning.
58468
58469 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58470
58471         * config/srclist.txt: Add glibc bug 1302.
58472
58473 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
58474
58475         Change bitset word type from unsigned int to unsigned long int,
58476         as this has better performance on typical 64-bit hosts.
58477         Port bitset code to hosts with unusual word sizes.
58478         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
58479         (build_collating_symbol):
58480         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
58481         argument is a bitset.  This is merely a style issue, but it makes
58482         it clearer that an entire array is expected.
58483         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
58484         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
58485         Port to the case where bitset_word is not the same as unsigned int.
58486         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
58487         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
58488         Likewise.
58489         * lib/regexec.c (check_dst_limits_calc_pos_1,
58490         check_subexp_matching_top):
58491         (build_trtable, group_nodes_into_DFAstates):
58492         Likewise.
58493         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
58494         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
58495         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
58496         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
58497         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
58498         * lib/regcomp.c (optimize_subexps, lower_subexp):
58499         Work even if bitset_word has holes in its bitwise representation.
58500         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
58501         * lib/regexec.c (check_dst_limits_calc_pos_1,
58502         check_subexp_matching_top):
58503         Likewise.
58504         * lib/regex_internal.c (re_string_reconstruct):
58505         Don't assume UCHAR_MAX == 255.
58506         * lib/regex_internal.h (bitset_set_all): Likewise.
58507         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
58508         All uses changed.
58509         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
58510         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
58511         All uses changed.
58512         (BITSET_WORD_MAX): New macro.
58513         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
58514         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
58515         (bitset_empty, bitset_copy):
58516         Prefer sizeof (bitset) to multiplying it out ourselves.
58517         (bitset_not_merge): Remove; unused.
58518         (bitset_contain): Return bool, not unsigned int with one bit on.
58519         All callers changed.
58520         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
58521         alignment than re_node_set; do this by defining a new internal
58522         type struct dests_alloc and using it to allocate memory.
58523
58524 2005-09-05  Bruno Haible  <bruno@clisp.org>
58525
58526         * gnulib-tool (func_import): Fix comparison in handling of symbolic
58527         links.
58528
58529 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
58530
58531         * modules/size_max (Makefile.am): Add size_max.h
58532
58533 2005-09-04  Derek Price  <derek@ximbiot.com>
58534
58535         * gnulib-tool (func_import): Fix reversed $symbolic logic.
58536
58537 2005-09-03  Simon Josefsson  <jas@extundo.com>
58538
58539         * gnulib-tool: Fix typo.
58540
58541 2005-09-03  Simon Josefsson  <jas@extundo.com>
58542
58543         * config/srclist.txt: Add glibc bug 1293.
58544
58545 2005-09-03  Derek Price  <derek@ximbiot.com>
58546
58547         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
58548         From Larry Jones <lawrence.jones@ugs.com>.
58549
58550 2005-09-02  Simon Josefsson  <jas@extundo.com>
58551
58552         * modules/socklen: New file.
58553
58554 2005-09-02  Simon Josefsson  <jas@extundo.com>
58555
58556         * modules/havelib: New module.
58557
58558         * modules/gettext, modules/iconv, modules/lock, modules/readline:
58559         Use havelib.
58560
58561 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
58562
58563         Check for arithmetic overflow when calculating sizes, to prevent
58564         some buffer-overflow issues.  These patches are conservative, in the
58565         sense that when I couldn't determine whether an overflow was possible,
58566         I inserted a run-time check.
58567         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
58568         macros.
58569         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
58570         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
58571         (re_xnrealloc, re_x2nrealloc): New inline functions.
58572         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
58573         parse_bracket_exp):
58574         (build_equiv_class, build_charclass): Check for arithmetic overflow
58575         in size expression calculations.
58576         * lib/regex_internal.c (re_string_realloc_buffers):
58577         (build_wcs_upper_buffer, re_node_set_add_intersect):
58578         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
58579         (re_dfa_add_node, register_state): Likewise.
58580         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
58581         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
58582         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
58583         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
58584
58585 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
58586
58587         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58588         m4/ulonglong.m4.  Problem reported by Martin Lambers.
58589
58590 2005-09-02  Bruno Haible  <bruno@clisp.org>
58591
58592         Support for lib vs. lib64 distinction on biarch platforms.
58593         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
58594         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
58595         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
58596
58597 2005-09-02  Bruno Haible  <bruno@clisp.org>
58598
58599         * gnulib-tool (import): In the other first-use case, provide defaults
58600         as well.
58601
58602 2005-09-02  Bruno Haible  <bruno@clisp.org>
58603
58604         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
58605         patches not yet found in the latest gettext release.
58606
58607 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58608
58609         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
58610         to avoid a collision with bits/local_lim.h in glibc.
58611         All uses changed.  Problem reported by Dmitry V. Levin in
58612         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
58613
58614         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
58615         bugs in int versus size_t comparisons.
58616         (re_string_context_at): Fix bug where the code assumed that
58617         Idx is signed.
58618
58619         Use bool where appropriate.
58620         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
58621         All callers changed.
58622         (calc_eclosure_iter): Likewise, for ROOT arg.
58623         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
58624         (build_charclass_op): Likewise, for NON_MATCH arg.
58625         * lib/regex_internal.c (re_string_allocate, re_string_construct):
58626         (re_string_construct_common): Likewise, for ICASE arg.
58627         * lib/regexec.c (re_search_2_stub, re_search_stub):
58628         Likewise, for RET_LEN arg.
58629         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
58630         (set_regs): Likewise, for FL_BACKTRACK arg.
58631         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
58632         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
58633         (calc_eclosure_iter, parse_bracket_exp):
58634         Use bool for internal variables that are booleans.
58635         * lib/regexec.c (re_search_internal, check_matching,
58636         proceed_next_node):
58637         (set_regs, build_sifted_states, sift_states_bkref):
58638         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
58639         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58640         (find_collation_sequence_value):
58641         Likewise.
58642         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
58643         (re_node_set_compare):
58644         Return bool, not int. All callers changed.
58645         * lib/regexec.c (check_halt_node_context, check_dst_limits):
58646         (build_trtable, check_node_accept): Likewise.
58647         * lib/regex_internal.h: Include stdbool.h.
58648
58649         Fix bugs uncovered when converting to bool.
58650         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
58651         failure instead of charging ahead blindly.
58652         * lib/regex_internal.c (register_state): Likewise.
58653         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
58654         for freeing internal storage.
58655         (group_nodes_into_DFA_states): Use unsigned int, not int, for
58656         bitset pieces used as boolean, to avoid undefined behavior
58657         on hosts that do int overflow checking.
58658
58659 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58660
58661         * config/srclist.txt: Add glibc bugs 1285-1287.
58662
58663 2005-09-01  Jim Meyering  <jim@meyering.net>
58664
58665         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
58666         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
58667         Require gl_STAT_MACROS, too.
58668
58669 2005-09-01  Bruno Haible  <bruno@clisp.org>
58670
58671         * gnulib-tool (import): In the first-use case, provide defaults.
58672
58673 2005-09-01  Bruno Haible  <bruno@clisp.org>
58674
58675         * gnulib-tool (func_import): Remove the .tmp files.
58676
58677 2005-09-01  Bruno Haible  <bruno@clisp.org>
58678
58679         * gnulib-tool (func_import): Fix handling of symbolic links.
58680
58681 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58682
58683         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
58684         old glibc regex code mishandles strings longer than 2**31 bytes.
58685         This patch fixes this when the regex code is used in gnulib
58686         (i.e., outside glibc).
58687
58688         This patch should not affect the use of the regex code inside
58689         glibc.  No doubt this problem also needs to be handled for glibc
58690         as well, but the result will be an incompatible change to the
58691         glibc ABI, and the old ABI will have to be supported too.  That
58692         can be the the subject for another patch.
58693
58694         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
58695         governing whether the rest of this patch is active.  By default,
58696         the macro is disabled and the patch has no effect.
58697         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
58698         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
58699         (struct re_pattern_buffer, re_search, re_search_2, re_match):
58700         (re_match_2, re_set_registers): Use the new types.
58701         * lib/regex_internal.h (Idx, re_hashval_t): New types.
58702         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
58703         New macros.
58704         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
58705         (re_string_context_at, bin_tree_t, re_dfastate_t):
58706         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
58707         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
58708         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
58709         (re_string_char_size_at, re_string_wchar_at):
58710         (re_string_elem_size_at):
58711         Use the new types and macros to port to 64-bit hosts.
58712         Use unsigned types for internal values, so that the code
58713         mostly works even for arrays larger than SSIZE_MAX.
58714         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
58715         (search_duplicated_node, calc_eclosure_iter, fetch_number):
58716         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
58717         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
58718         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
58719         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
58720         (calc_inveclosure, parse_dup_op, build_range_exp):
58721         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
58722         (fetch_number, create_token_tree, mark_opt_subexp):
58723         Likewise.
58724         * lib/regex_internal.c (re_string_construct_common,
58725         create_ci_newstate):
58726         (create_cd_newstate, re_string_allocate, re_string_construct):
58727         (re_string_realloc_buffers, build_wcs_upper_buffer):
58728         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58729         (re_string_reconstruct, re_string_peek_byte_case):
58730         (re_string_fetch_byte_case, re_string_context_at):
58731         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58732         (re_node_set_init_copy, re_node_set_add_intersect):
58733         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58734         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58735         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58736         (re_acquire_state, re_acquire_state_context, register_state):
58737         Likewise.
58738         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
58739         search_cur_bkref_entry):
58740         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
58741         (re_search_internal, re_search_2_stub, re_search_stub)
58742         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
58743         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
58744         (update_cur_sifted_state, check_dst_limits):
58745         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58746         (check_subexp_limits, sift_states_bkref, merge_state_array):
58747         (check_subexp_matching_top, get_subexp, get_subexp_sub):
58748         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
58749         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58750         (expand_bkref_cache, check_node_accept_bytes):
58751         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
58752         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
58753         (acquire_init_state_context, check_halt_node_context):
58754         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
58755         (sift_states_backward, clean_state_log_if_needed):
58756         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
58757         (find_recover_state, transit_state_sb, transit_state_mb):
58758         (transit_state_bkref, build_trtable, match_ctx_clean):
58759         Likewise.
58760         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
58761         to work around an assumption that REG_MISSING is negative.
58762
58763         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
58764         (seek_collating_symbol_entry) [defined _LIBC]:
58765         (lookup_collation_sequence_value) [defined _LIBC]:
58766         (build_range_exp, build_collating_symbol) [defined _LIBC]:
58767         Use prototypes rather than old-style function definitions.
58768         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
58769         (transit_state_sb) [0]:
58770         (find_collation_sequence_value) [defined _LIBC]: Likewise.
58771
58772         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
58773         rm_eo.
58774
58775         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
58776         (optimize_subexps, lower_subexp):
58777         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
58778         since the signed shift might overflow.  Use 1u<<31 instead.
58779         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
58780         Likewise.
58781         * lib/regexec.c (check_dst_limits_calc_pos_1,
58782         check_subexp_matching_top): Likewise.
58783
58784         * lib/regcomp.c (optimize_subexps, lower_subexp):
58785         Use CHAR_BIT rather than 8, for clarity.
58786         * lib/regexec.c (check_dst_limits_calc_pos_1):
58787         (check_subexp_matching_top): Likewise.
58788         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
58789         have to worry about portability issues when shifting it left.
58790         Remove no-longer-needed test for table_size > 0.
58791         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
58792         in a word, as the resulting behavior is undefined.
58793         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
58794         in one case, a <= should have been an <, and in another case the
58795         whole test was missing.
58796         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
58797         the standard name CHAR_BIT.
58798         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
58799         this is not true on one's complement and signed-magnitude hosts.
58800
58801         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
58802         next_last_offset.
58803         (struct re_dfa_t): Remove unused member states_alloc.
58804         * lib/regcomp.c (init_dfa): Don't initialize unused members.
58805
58806 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58807
58808         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
58809         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
58810         and large-file glibc and in 32-bit large-file Solaris.
58811
58812 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58813
58814         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
58815         lengths fit in regoff_t; this isn't true if regoff_t is the same
58816         width as size_t.
58817         * lib/regex.c (re_search_internal): 5th arg is LAST_START
58818         (= START + RANGE) instead of RANGE.  This avoids overflow
58819         problems when regoff_t is the same width as size_t.
58820         All callers changed.
58821         (re_search_2_stub): Check for overflow when adding the
58822         sizes of the two strings.
58823         (re_search_stub): Check for overflow when adding START
58824         to RANGE; if it occurs, substitute the extreme value.
58825
58826 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58827
58828         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
58829
58830 2005-08-31  Jim Meyering  <jim@meyering.net>
58831
58832         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
58833         a pointer-to-const.
58834         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
58835         (register_state): Likewise.
58836         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
58837         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58838         (group_nodes_into_DFAstates): Likewise.
58839
58840 2005-08-31  Jim Meyering  <jim@meyering.net>
58841
58842         * check-module: Add a FIXME comment.
58843
58844 2005-08-31  Eric Blake  <ebb9@byu.net>
58845
58846         * modules/unistd-safer (Files): Add unistd--.h.
58847         * modules/stdio-safer (Files): Add stdio--.h.
58848
58849 2005-08-31  Derek Price  <derek@ximbiot.com>
58850
58851         * lib/getdelim.c (getdelim): Return EOF on EOF.
58852         Reported by Larry Jones <lawrence.jones@ugs.com>.
58853
58854 2005-08-31  Bruno Haible  <bruno@clisp.org>
58855
58856         Avoid unnecessary diffs in the generated lib/Makefile.am.
58857         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
58858         the generated files.
58859         (func_import): Don't set cmd.
58860
58861 2005-08-31  Bruno Haible  <bruno@clisp.org>
58862
58863         * lib/strstr.c: Include <stddef.h>, for NULL.
58864         * lib/strcasestr.c: Likewise.
58865         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58866
58867 2005-08-31  Bruno Haible  <bruno@clisp.org>
58868
58869         * gnulib-tool: New option --macro-prefix.
58870         (func_import): Use macro_prefix.
58871         (import): Handle option --macro-prefix.
58872
58873 2005-08-31  Bruno Haible  <bruno@clisp.org>
58874
58875         * gnulib-tool (import): Rename most ac_* variables to cached_*.
58876         Also use new variables cached_lgpl, cached_libtool.
58877
58878 2005-08-31  Bruno Haible  <bruno@clisp.org>
58879
58880         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
58881         always instantiating them.
58882
58883 2005-08-31  Bruno Haible  <bruno@clisp.org>
58884
58885         * gnulib-tool (func_import): Read the previous cached settings
58886         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
58887         earlier added by gnulib but are now dropped. Warn when a gnulib file
58888         overwrites a non-gnulib file.
58889
58890 2005-08-31  Bruno Haible  <bruno@clisp.org>
58891
58892         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
58893         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
58894         projects that don't keep autogenerated files in CVS. Put into
58895         actioncmd only the specified modules, not the transitive closure.
58896
58897 2005-08-31  Bruno Haible  <bruno@clisp.org>
58898
58899         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
58900         Create directories that shall be filled.
58901         (import): Don't look for gl_* macros in configure.ac. Recurse across
58902         all directories containing a gnulib-cache.m4 files, if meaningful.
58903
58904 2005-08-31  Bruno Haible  <bruno@clisp.org>
58905
58906         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
58907         (import): Set seen_libtool when we see gl_LIBTOOL.
58908
58909 2005-08-31  Bruno Haible  <bruno@clisp.org>
58910
58911         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
58912         declaration macro definitions from generated gnulib.m4.
58913
58914 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
58915
58916         * lib/iconvme.h: Add prototype for iconv_alloc.
58917
58918 2005-08-29  Simon Josefsson  <jas@extundo.com>
58919
58920         * lib/iconvme.c: Fix errno.
58921
58922 2005-08-29  Bruno Haible  <bruno@clisp.org>
58923
58924         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
58925         that it works when the directory contains spaces.
58926
58927 2005-08-29  Bruno Haible  <bruno@clisp.org>
58928
58929         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
58930
58931 2005-08-29  Bruno Haible  <bruno@clisp.org>
58932
58933         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
58934         Emit more advice.
58935
58936 2005-08-29  Bruno Haible  <bruno@clisp.org>
58937         and Stepan Kasal  <kasal@ucw.cz>
58938
58939         * check-module: If more parameters are given, check each of them
58940         separately; add more exceptions, as noted by Jim Meyering.
58941         (check_module): New procedure.
58942         (%exempt_header): Now contains all exceptions.
58943
58944 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
58945
58946         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
58947
58948 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58949
58950         * lib/iconvme.c: Split iconv_string into iconv_alloc.
58951
58952 2005-08-28  Bruno Haible  <bruno@clisp.org>
58953
58954         * m4/gnulib-tool.m4: New file.
58955
58956 2005-08-27  Jim Meyering  <jim@meyering.net>
58957
58958         * modules/unistd-safer (Files): Add pipe-safer.c.
58959         * modules/fcntl-safer (Files): Add creat-safer.c.
58960
58961 2005-08-27  Jim Meyering  <jim@meyering.net>
58962
58963         * m4/stdlib-safer.m4: New file.  From coreutils.
58964         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
58965         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
58966         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
58967         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
58968         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
58969
58970 2005-08-27  Jim Meyering  <jim@meyering.net>
58971
58972         * lib/fopen-safer.c: Merge minor changes from coreutils.
58973         * lib/dup-safer.c: Likewise.
58974         * lib/fd-safer.c: Likewise.
58975
58976         Merge from coreutils.
58977         * lib/stdio--.h: New file.
58978         * lib/stdlib--.h: New file.
58979         * lib/mkstemp-safer.c: New file.
58980
58981         GNU tar needs these.
58982         * lib/pipe-safer.c: New file.
58983         * lib/creat-safer.c: New file.
58984         * lib/fcntl--.h (creat): Define to creat_safer.
58985         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
58986         * lib/unistd--.h (pipe): Define to pipe_safer.
58987         * lib/unistd-safer.h: Declare pipe_safer.
58988
58989 2005-08-26  Simon Josefsson  <jas@extundo.com>
58990
58991         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
58992         Haible <bruno@clisp.org>.
58993
58994 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
58995
58996         * lib/regex_internal.h: Remove all references to
58997         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
58998         or better.
58999         (bitset_not, bitset_merge, bitset_not_merge):
59000         (bitset_mask, re_string_allocate, re_string_construct):
59001         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
59002         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
59003         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
59004         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
59005         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59006         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59007         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
59008         (re_acquire_state_context):
59009         Remove unnecessary forward decls.
59010         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
59011         Put __attribute at function definition,
59012         now that the function decl has been removed.
59013         * lib/regex_internal.c (re_string_peek_byte_case):
59014         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
59015         Likewise.
59016
59017 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
59018
59019         * m4/regex.m4: Add AC_PREREQ(2.50).
59020         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
59021
59022 2005-08-25  Simon Josefsson  <jas@extundo.com>
59023
59024         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
59025         __fsetlocking.
59026
59027 2005-08-25  Simon Josefsson  <jas@extundo.com>
59028
59029         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
59030         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
59031         GLIBC specific code.
59032
59033 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59034
59035         Make regex safe for g++.  This fixes one real bug (an "err"
59036         that should have been "*err").  g++ problem reported by
59037         Sam Steingold.
59038         * lib/regex_internal.h (re_calloc): New macro, consistent with
59039         re_malloc etc.  All callers of calloc changed to use re_calloc.
59040         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
59041         not int.  All callers changed.
59042         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
59043         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
59044         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
59045         (find_recover_state): Change "err" to "*err"; this fixes what
59046         appears to be a real bug.
59047         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
59048         versus int.
59049
59050 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59051
59052         * modules/regex (Depends-on): Add malloc, since the code
59053         assumes that !malloc(0) means failure.
59054
59055 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59056
59057         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
59058
59059         alloca modernization/simplification for regex.
59060         * lib/regex.c: Remove portability cruft for alloca.  This no longer
59061         needs to be at the start of the file, and can be moved into
59062         regex_internal.h and simplified.
59063         * lib/regex_internal.h: Include <alloca.h>.
59064         (__libc_use_alloca) [!defined _LIBC]: New macro.
59065         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
59066         now works outside glibc.
59067
59068 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59069
59070         * config/srclist.txt: Add glibc bugs 1241, 1245.
59071
59072 2005-08-25  Jim Meyering  <jim@meyering.net>
59073
59074         * lib/open-safer.c: Include <config.h>.
59075         Otherwise, we'd lose LARGEFILE support in any file using
59076         e.g. "fcntl--.h"
59077
59078 2005-08-25  Bruno Haible  <bruno@clisp.org>
59079
59080         * m4/minmax.m4: Require autoconf 2.52.
59081         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
59082         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
59083         alternatives of translit over the alphabet.
59084         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
59085
59086 2005-08-24  Simon Josefsson  <jas@extundo.com>
59087
59088         * tests/test-getpass.c: New file.
59089
59090 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59091
59092         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
59093         for GNU regex features.
59094
59095 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59096
59097         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
59098         * lib/regex.h (regerror): Likewise.
59099
59100         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
59101         requires this.  (The code never needed it.)
59102
59103         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
59104         All uses of recently-renamed identifiers changed to use the new,
59105         POSIX-compliant names.  The code will build and run just fine
59106         without these changes, but it's better to eat our own dog food
59107         and use the standard-conforming names.
59108
59109         * lib/regex.h: Fix a multitude of POSIX name space violations.
59110         These changes have an effect only for programs that define
59111         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
59112         do not change anything for programs compiled in the normal way.
59113         Also, there is no effect on the ABI.
59114
59115         (_REGEX_SOURCE): New macro.
59116         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
59117         defined and _GNU_SOURCE is not; this fixes a name space violation.
59118
59119         Rename the following macros to obey POSIX requirements.
59120         The old names are still visible as macros if _REGEX_SOURCE is defined.
59121         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
59122         RE_BACKSLASH_ESCAPE_IN_LISTS.
59123         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
59124         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
59125         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
59126         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
59127         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
59128         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
59129         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
59130         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
59131         (REG_INTERVALS): renamed from RE_INTERVALS.
59132         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
59133         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
59134         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
59135         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
59136         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
59137         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
59138         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
59139         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
59140         RE_UNMATCHED_RIGHT_PAREN_ORD.
59141         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
59142         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
59143         (REG_DEBUG): renamed from RE_DEBUG.
59144         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
59145         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
59146         unusual, since we can't clash with the POSIX REG_ICASE.
59147         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
59148         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
59149         (REG_NO_SUB): renamed from RE_NO_SUB.
59150         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
59151         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
59152         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
59153         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
59154         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
59155         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
59156         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
59157         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
59158         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
59159         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
59160         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
59161         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
59162         RE_SYNTAX_POSIX_MINIMAL_BASIC.
59163         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
59164         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
59165         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
59166         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
59167         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
59168         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
59169         (REG_FIXED): Renamed from REGS_FIXED.
59170         (REG_NREGS): Renamed from RE_NREGS.
59171
59172         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
59173         of other REG_* macros, since POSIX says the user is allowed to
59174         #undef these macros selectively.
59175
59176         (reg_errcode_t): Update comment stating what other tables need
59177         to be consistent.
59178
59179         Rename the following enum values to obey POSIX requirements.
59180         The old names are still visible as macros.
59181         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
59182         is not defined, since GNU is supposed to be a superset of POSIX as
59183         much as possible, and since we want reg_errcode_t to be a signed
59184         type for implementation consistency.
59185         (_REG_NOERROR): Renamed from REG_NOERROR.
59186         (_REG_NOMATCH): Renamed from REG_NOMATCH.
59187         (_REG_BADPAT): Renamed from REG_BADPAT.
59188         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
59189         (_REG_ECTYPE): Renamed from REG_ECTYPE.
59190         (_REG_EESCAPE): Renamed from REG_EESCAPE.
59191         (_REG_ESUBREG): Renamed from REG_ESUBREG.
59192         (_REG_EBRACK): Renamed from REG_EBRACK.
59193         (_REG_EPAREN): Renamed from REG_EPAREN.
59194         (_REG_EBRACE): Renamed from REG_EBRACE.
59195         (_REG_BADBR): Renamed from REG_BADBR.
59196         (_REG_ERANGE): Renamed from REG_ERANGE.
59197         (_REG_ESPACE): Renamed from REG_ESPACE.
59198         (_REG_BADRPT): Renamed from REG_BADRPT.
59199         (_REG_EEND): Renamed from REG_EEND.
59200         (_REG_ESIZE): Renamed from REG_ESIZE.
59201         (_REG_ERPAREN): Renamed from REG_ERPAREN.
59202         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
59203         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
59204         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
59205         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
59206
59207         (_REG_RE_NAME, _REG_RM_NAME): New macros.
59208         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
59209         changed.  But support the old name if the new one is not defined
59210         and if _REGEX_SOURCE.
59211
59212         Change the following member names in struct re_pattern_buffer.
59213         The old names are still supported if !_REGEX_SOURCE.
59214         The new names are always supported, regardless of _REGEX_SOURCE.
59215         (re_buffer): Renamed from buffer.
59216         (re_allocated): Renamed from allocated.
59217         (re_used): Renamed from used.
59218         (re_syntax): Renamed from syntax.
59219         (re_fastmap): Renamed from fastmap.
59220         (re_translate): Renamed from translate.
59221         (re_can_be_null): Renamed from can_be_null.
59222         (re_regs_allocated): Renamed from regs_allocated.
59223         (re_fastmap_accurate): Renamed from fastmap_accurate.
59224         (re_no_sub): Renamed from no_sub.
59225         (re_not_bol): Renamed from not_bol.
59226         (re_not_eol): Renamed from not_eol.
59227         (re_newline_anchor): Renamed from newline_anchor.
59228
59229         Change the following member names in struct re_registers.
59230         The old names are still supported if !_REGEX_SOURCE.
59231         The new names are always supported, regardless of _REGEX_SOURCE.
59232         (rm_num_regs): Renamed from num_regs.
59233         (rm_start): Renamed from start.
59234         (rm_end): Renamed from end.
59235
59236         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
59237         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
59238         Prepend __ to parameter names.
59239
59240         Undo yesterday's changes.
59241
59242 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59243
59244         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
59245         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
59246         lib/regex.c.
59247
59248 2005-08-24  Jim Meyering  <jim@meyering.net>
59249
59250         Sync from coreutils.
59251         * m4/fcntl-safer.m4: New file.
59252
59253         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
59254         and object files for this module.
59255
59256 2005-08-24  Jim Meyering  <jim@meyering.net>
59257
59258         Sync from coreutils.
59259         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
59260
59261 2005-08-24  Jim Meyering  <jim@meyering.net>
59262
59263         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
59264         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
59265
59266 2005-08-24  Jim Meyering  <jim@meyering.net>
59267
59268         * modules/fcntl-safer: New module.
59269         * modules/fts (Depends-on): Add fcntl-safer.
59270         * MODULES.html.sh (File descriptor based Input/Output):
59271         Add fcntl-safer.
59272
59273 2005-08-24  Bruno Haible  <bruno@clisp.org>
59274
59275         Support for unit test modules.
59276         * modules/README: Mention tests modules.
59277         * modules/TEMPLATE-TESTS: New file.
59278         * gnulib-tool: New options --extract-tests-module, --with-tests and
59279         --tests-base (unused for the moment).
59280         (testsbase, inctests): New variables.
59281         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
59282         (func_verify_module): Exclude TEMPLATE-TESTS.
59283         (func_verify_nontests_module, func_verify_tests_module): New functions.
59284         (func_get_dependencies): Add implicit dependency for tests modules.
59285         (func_get_tests_module): New function.
59286         (func_modules_transitive_closure): When --with-tests was specified,
59287         include the unit tests as well, unless explicitly avoided.
59288         (func_emit_lib_Makefile_am): Ignore the tests modules here.
59289         (func_emit_tests_Makefile_am): New function.
59290         (func_create_testdir): When --with-tests was specified, emit a
59291         tests/ directory.
59292         * MODULES.html.sh (Future developments): Update.
59293
59294 2005-08-24  Bruno Haible  <bruno@clisp.org>
59295
59296         * modules/tls-tests: New file.
59297         * tests/test-tls.c: New file, from GNU gettext.
59298
59299 2005-08-24  Bruno Haible  <bruno@clisp.org>
59300
59301         * modules/lock-tests: New file.
59302         * tests/test-lock.c: New file, from GNU gettext.
59303
59304 2005-08-24  Bruno Haible  <bruno@clisp.org>
59305
59306         * lib/lock.h: Add multiple inclusion guard.
59307         * lib/tls.h: Add multiple inclusion guard.
59308
59309 2005-08-24  Bruno Haible  <bruno@clisp.org>
59310
59311         * gnulib-tool: Add support for the --aux-dir option to
59312         --create-testdir, --create-megatestdir, --test, --megatest.
59313         (func_create_testdir, func_create_megatestdir): Optionally emit a
59314         AC_CONFIG_AUX_DIR directive.
59315         (create-testdir, create-megatestdir, test, megatest): Provide a
59316         default value for $auxdir.
59317
59318 2005-08-24  Bruno Haible  <bruno@clisp.org>
59319
59320         * gnulib-tool (import): Use compound statement instead of subshell
59321         where possible.
59322
59323 2005-08-24  Bruno Haible  <bruno@clisp.org>
59324
59325         * gnulib-tool (import): Change --aux-dir default to "build-aux".
59326
59327 2005-08-24  Bruno Haible  <bruno@clisp.org>
59328
59329         * gnulib-tool (func_version): Update.
59330
59331 2005-08-24  Bruno Haible  <bruno@clisp.org>
59332
59333         * gnulib-tool (func_import, func_create_testdir,
59334         func_create_megatestdir): Quote all autoconf macro arguments.
59335
59336 2005-08-24  Bruno Haible  <bruno@clisp.org>
59337
59338         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
59339         option --force, because --force causes the aclocal.m4 of each
59340         subdirectory to be newer than the corresponding config.h.in.
59341
59342 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59343
59344         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
59345         All contents moved to gl_REGEX.
59346         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
59347         assume that it does.
59348
59349 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59350
59351         * lib/regex.h (REG_NOSYS)
59352         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
59353         Define, since POSIX requires it as of 2001.
59354         (_REG_ENOSYS)
59355         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
59356         New private symbol, used to keep the enum signed in all cases.
59357         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
59358         Youngman in
59359         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
59360
59361         * lib/regex_internal.c (re_string_skip_chars, register_state):
59362         (calc_state_hash):
59363         Remove forward decls; no longer needed now that we use prototypes.
59364         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
59365         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
59366         (clean_state_log_if_needed): Likewise.
59367
59368 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59369
59370         * config/srclist.txt: Add glibc bugs 1231-1233.
59371
59372 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59373
59374         Fix problems reported by Sam Steingold in
59375         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
59376         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
59377         assumed that reg_errcode_t is a signed type, which is not
59378         necessarily true if _XOPEN_SOURCE is not defined.
59379         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
59380         since some compilers warn about it otherwise.
59381
59382 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59383
59384         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
59385         (init_word_char, create_initial_state, duplicate_node_closure):
59386         (fetch_token, peek_token_bracket, build_range_exp):
59387         (build_collating_symbol): Remove forward decls; no longer needed
59388         now that we use prototypes.
59389
59390         * lib/regcomp.c:
59391         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
59392         (re_compile_fastmap_iter, regcomp, regerror, regfree):
59393         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
59394         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
59395         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
59396         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
59397         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
59398         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
59399         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
59400         (build_range_exp, build_collating_symbol, parse_bracket_exp):
59401         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
59402         (build_charclass, build_charclass_op, fetch_number, create_tree):
59403         (create_token_tree, mark_opt_subexp, duplicate_tree):
59404         Use prototypes rather than old-style definitions.
59405
59406         * lib/regex_internal.c:
59407         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
59408         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
59409         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
59410         (re_string_reconstruct, re_string_peek_byte_case):
59411         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
59412         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
59413         (re_node_set_init_copy, re_node_set_add_intersect):
59414         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
59415         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
59416         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
59417         (re_acquire_state, re_acquire_state_context, register_state):
59418         (create_ci_newstate, create_cd_newstate, free_state):
59419         Likewise.
59420         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
59421         re_search_2):
59422         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
59423         (re_search_internal, prune_impossible_nodes):
59424         (acquire_init_state_context, check_matching, static):
59425         (check_halt_node_context, check_halt_state_context, proceed_next_node):
59426         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
59427         (update_regs, sift_states_backward, build_sifted_states):
59428         (clean_state_log_if_needed, merge_state_array):
59429         (update_cur_sifted_state, add_epsilon_src_nodes):
59430         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
59431         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
59432         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
59433         (find_recover_state, check_subexp_matching_top, transit_state_mb):
59434         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
59435         (check_arrival, check_arrival_add_next_nodes):
59436         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
59437         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
59438         (check_node_accept_bytes, check_node_accept, extend_buffers):
59439         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
59440         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
59441         (sift_ctx_init):
59442         Likewise.
59443
59444         * lib/regex_internal.h:
59445         (re_string_allocate, re_string_construct, re_string_reconstruct):
59446         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
59447         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
59448         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
59449         (re_string_context_at, re_string_peek_byte_case):
59450         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
59451         is defined, since we now use prototypes always.
59452
59453         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
59454         C89 or better.  All uses removed.
59455
59456 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59457
59458         * config/srclist.txt: Add glibc bugs 1220-1227.
59459
59460 2005-08-20  Jim Meyering  <jim@meyering.net>
59461
59462         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
59463         of unused local, dfa.
59464
59465 2005-08-20  Bruno Haible  <bruno@clisp.org>
59466
59467         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
59468
59469 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59470
59471         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
59472         (re_node_set_insert_last, re_dfa_add_node):
59473         Rename local variables to avoid GCC shadowing warnings.
59474
59475 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59476
59477         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
59478         [defined lint]: Suppress bogus uninitialized-variable warnings.
59479
59480         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
59481         and let the caller return REG_ESPACE if out of space.  This
59482         removes an uninitialied-variable warning with GCC 4.0.1, and also
59483         avoids taking the address of a local variable.  All callers
59484         changed.
59485
59486 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59487
59488         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
59489         $LIBCSRC/posix/regexec.c.
59490         Add glibc bug 1217 for regcomp.c.
59491
59492 2005-08-19  Jim Meyering  <jim@meyering.net>
59493
59494         * lib/regexec.c (proceed_next_node): Redo local variables to
59495         avoid GCC shadowing warnings.
59496
59497 2005-08-18  Bruno Haible  <bruno@clisp.org>
59498
59499         * lib/strstr.c (strstr): Fix return value in multibyte case.
59500         * lib/strcasestr.c (strcasestr): Likewise.
59501
59502 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59503
59504         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
59505
59506 2005-08-17  Jim Meyering  <jim@meyering.net>
59507
59508         Make the %s format (seconds since the epoch) work for a negative
59509         number and when used with a zero-padded field width, e.g. %015s.
59510
59511         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
59512         label so that it precedes the code to set `digits'.  Otherwise,
59513         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
59514         print `00-22'.  Now, it prints `-0022', as it should.
59515
59516 2005-08-17  Bruno Haible  <bruno@clisp.org>
59517
59518         * modules/strstr (Files): Add m4/mbrtowc.m4.
59519         (Depends-on): Add mbuiter.
59520
59521 2005-08-17  Bruno Haible  <bruno@clisp.org>
59522
59523         * modules/strcasestr: New file.
59524         * MODULES.html.sh (String handling, based on ANSI C 89): Add
59525         strcasestr.
59526
59527 2005-08-17  Bruno Haible  <bruno@clisp.org>
59528
59529         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
59530
59531 2005-08-17  Bruno Haible  <bruno@clisp.org>
59532
59533         * modules/mbuiter: New file.
59534         * MODULES.html.sh (Extended multibyte and wide character utilities):
59535         Add mbuiter.
59536
59537 2005-08-17  Bruno Haible  <bruno@clisp.org>
59538
59539         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
59540         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
59541
59542 2005-08-17  Bruno Haible  <bruno@clisp.org>
59543
59544         * m4/strcasestr.m4: New file.
59545
59546 2005-08-17  Bruno Haible  <bruno@clisp.org>
59547
59548         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
59549         * lib/strstr.c: Completely rewritten, with multibyte locale support.
59550
59551 2005-08-17  Bruno Haible  <bruno@clisp.org>
59552
59553         * lib/strcasestr.h: New file.
59554         * lib/strcasestr.c: New file.
59555
59556 2005-08-17  Bruno Haible  <bruno@clisp.org>
59557
59558         * lib/strcasecmp.c: Use mbuiter.h.
59559
59560 2005-08-17  Bruno Haible  <bruno@clisp.org>
59561
59562         * lib/mbuiter.h: New file.
59563
59564 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59565
59566         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
59567         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
59568         and gl_GETOPT are both invoked via different paths (as happens
59569         with GNU tar CVS because it uses both argp and getopt), the former
59570         wins.
59571
59572 2005-08-16  Bruno Haible  <bruno@clisp.org>
59573
59574         * modules/tls: New file.
59575         * MODULES.html.sh (Multithreading): Add tls.
59576
59577 2005-08-16  Bruno Haible  <bruno@clisp.org>
59578
59579         * modules/strnlen1: New file.
59580         * MODULES.html.sh (String handling): Add strnlen1.
59581
59582 2005-08-16  Bruno Haible  <bruno@clisp.org>
59583
59584         * modules/strcase (Files): Add m4/mbrtowc.m4.
59585         (Depends-on): Add strnlen1, mbchar.
59586
59587 2005-08-16  Bruno Haible  <bruno@clisp.org>
59588
59589         * modules/mbiter: New file.
59590         * MODULES.html.sh (Extended multibyte and wide character utilities):
59591         Add mbiter.
59592
59593 2005-08-16  Bruno Haible  <bruno@clisp.org>
59594
59595         * modules/mbfile: New file.
59596         * MODULES.html.sh (Extended multibyte and wide character utilities):
59597         Add mbfile.
59598
59599 2005-08-16  Bruno Haible  <bruno@clisp.org>
59600
59601         * modules/mbchar: New file.
59602         * MODULES.html.sh (Extended multibyte and wide character utilities):
59603         New section.
59604
59605 2005-08-16  Bruno Haible  <bruno@clisp.org>
59606
59607         * m4/tls.m4: New file, from GNU gettext.
59608
59609 2005-08-16  Bruno Haible  <bruno@clisp.org>
59610
59611         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
59612         always.
59613         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
59614
59615 2005-08-16  Bruno Haible  <bruno@clisp.org>
59616
59617         * m4/mbiter.m4: New file.
59618
59619 2005-08-16  Bruno Haible  <bruno@clisp.org>
59620
59621         * m4/mbfile.m4: New file.
59622
59623 2005-08-16  Bruno Haible  <bruno@clisp.org>
59624
59625         * m4/mbchar.m4: New file.
59626
59627 2005-08-16  Bruno Haible  <bruno@clisp.org>
59628
59629         * lib/tls.h: New file, from GNU gettext.
59630         * lib/tls.c: New file, from GNU gettext.
59631
59632 2005-08-16  Bruno Haible  <bruno@clisp.org>
59633
59634         * lib/strnlen1.h: New file.
59635         * lib/strnlen1.c: New file.
59636
59637 2005-08-16  Bruno Haible  <bruno@clisp.org>
59638
59639         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
59640         (mbi_init): Update.
59641         (mbi_avail, mbi_advance): Let the iteration end before the terminating
59642         NUL byte, not after it.
59643
59644 2005-08-16  Bruno Haible  <bruno@clisp.org>
59645
59646         * lib/strcase.h (strcasecmp): Add note in comments.
59647         * lib/strncasecmp.c: Use code from strcasecmp.c.
59648         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
59649         (strcasecmp): Work correctly in multibyte locales.
59650
59651 2005-08-16  Bruno Haible  <bruno@clisp.org>
59652
59653         * lib/mbiter.h: New file.
59654
59655 2005-08-16  Bruno Haible  <bruno@clisp.org>
59656
59657         * lib/mbfile.h: New file.
59658
59659 2005-08-16  Bruno Haible  <bruno@clisp.org>
59660
59661         * lib/mbchar.h: New file.
59662         * lib/mbchar.c: New file.
59663
59664 2005-08-16  Bruno Haible  <bruno@clisp.org>
59665
59666         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
59667         the valid ones. Makes the comparison operations transitive:
59668         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
59669         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
59670
59671 2005-08-15  Simon Josefsson  <jas@extundo.com>
59672
59673         * modules/ssize_t (License): Change to 'unlimited'.
59674
59675         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
59676
59677 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59678
59679         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
59680         Add comments for each pending glibc patch.
59681
59682 2005-08-15  Bruno Haible  <bruno@clisp.org>
59683
59684         * lib/regex.h (__restrict_arr): Don't define to __restrict if
59685         __cplusplus is defined.
59686
59687 2005-08-14  Jim Meyering  <jim@meyering.net>
59688
59689         Sync from coreutils.
59690
59691         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
59692         Use the hash-table-based cycle-detection code not just when
59693         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
59694         Reported by James Youngman in
59695         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
59696         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
59697         FTS_TIGHT_CYCLE_CHECK.
59698         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
59699         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
59700         once again.
59701         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
59702         * lib/fts.c (fd_safer): Remove decl.
59703         Include fcntl--.h rather than unistd-safer.h
59704         (fts_safe_changedir): Don't call fd_safer; no longer needed
59705         now that we include fcntl--.h.
59706
59707 2005-08-12  Simon Josefsson  <jas@extundo.com>
59708
59709         * modules/getndelim2: Use ssize_t module.
59710         * modules/getnline: Likewise.
59711         * modules/safe-read: Likewise.
59712         * modules/xreadlink: Likewise.
59713
59714         * modules/ssize_t: New file.
59715
59716 2005-08-12  Simon Josefsson  <jas@extundo.com>
59717
59718         * m4/readline.m4: Look for termcap, curses or ncurses if required.
59719
59720 2005-08-12  Simon Josefsson  <jas@extundo.com>
59721
59722         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59723         ssize_t.
59724
59725 2005-08-12  Simon Josefsson  <jas@extundo.com>
59726
59727         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
59728         readline, getdelim and check_version.
59729         (Support for systems lacking ISO C 99: Sizes of integer types):
59730         Add size_max.
59731
59732 2005-08-12  Bruno Haible  <bruno@clisp.org>
59733
59734         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
59735
59736 2005-08-11  Simon Josefsson  <jas@extundo.com>
59737
59738         * modules/readline: New file.
59739
59740         * modules/strnlen (Files): Add strnlen.h.
59741
59742 2005-08-11  Simon Josefsson  <jas@extundo.com>
59743
59744         * m4/readline.m4: New file.
59745
59746 2005-08-11  Simon Josefsson  <jas@extundo.com>
59747
59748         * lib/readline.h, readline.c: New file.
59749
59750 2005-08-11  Simon Josefsson  <jas@extundo.com>
59751
59752         * doc/gnulib.texi (Initial import, Finishing touches): Mention
59753         gl_AVOID.
59754
59755 2005-08-11  Bruno Haible  <bruno@clisp.org>
59756
59757         * lib/strnlen.h (strnlen): Change parameter name to match comment.
59758
59759 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
59760
59761         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
59762
59763 2005-08-10  Simon Josefsson  <jas@extundo.com>
59764
59765         * tests/test-iconvme.c: New file.
59766
59767 2005-08-10  Simon Josefsson  <jas@extundo.com>
59768
59769         * m4/strnlen.m4: New file.
59770
59771         * m4/strndup.m4: Don't check for strnlen declaration, done in
59772         strnlen.m4.
59773
59774 2005-08-10  Simon Josefsson  <jas@extundo.com>
59775
59776         * lib/strndup.c: Use strnlen.h.
59777
59778         * lib/strnlen.h: New file.
59779
59780 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59781
59782         * README: Typos.
59783
59784 2005-08-02  Simon Josefsson  <jas@extundo.com>
59785
59786         * modules/readline: New file.
59787
59788 2005-08-02  Simon Josefsson  <jas@extundo.com>
59789
59790         * modules/getdelim: New file.
59791
59792         * modules/getline: Rewrite, don't use getndelim2.
59793
59794 2005-08-02  Simon Josefsson  <jas@extundo.com>
59795
59796         * m4/getline.m4: Separate out getdelim stuff into separate module.
59797
59798         * m4/getdelim.m4: New file.
59799
59800 2005-08-02  Simon Josefsson  <jas@extundo.com>
59801
59802         * lib/getline.h, getline.c: Rewrite.
59803
59804         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
59805
59806 2005-07-31  Bruno Haible  <bruno@clisp.org>
59807
59808         * lib/lock.h (gl_lock_initializer): New macro.
59809         (gl_lock_define_initialized): Use it.
59810         (gl_rwlock_initializer): New macro.
59811         (gl_rwlock_define_initialized): Use it.
59812         (gl_recursive_lock_initializer): New macro.
59813         (gl_recursive_lock_define_initialized): Use it.
59814
59815 2005-07-30  Karl Berry  <karl@gnu.org>
59816
59817         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
59818         Report from Ben Pfaff, regarding getopt.
59819
59820 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
59821
59822         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
59823         normal way.
59824         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
59825         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
59826         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
59827         (gl_GETOPT): Use the new macros.  Most of the implementation
59828         is moved to the new macros.  This is for programs like Emacs
59829         that don't want all the functionality of gl_GETOPT.
59830
59831 2005-07-26  Bruno Haible  <bruno@clisp.org>
59832
59833         * m4/lock.m4: Update from GNU gettext.
59834
59835 2005-07-26  Bruno Haible  <bruno@clisp.org>
59836
59837         * lib/lock.h: Update from GNU gettext.
59838         * lib/lock.c: Update from GNU gettext.
59839
59840 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
59841
59842         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
59843         obsolescent AC_TRY_RUN.  Include the default includes files, for
59844         'exit'.
59845
59846 2005-07-24  Bruno Haible  <bruno@clisp.org>
59847
59848         * modules/visibility: New file.
59849         * MODULES.html.sh (Misc): Add visibility.
59850
59851 2005-07-24  Bruno Haible  <bruno@clisp.org>
59852
59853         * m4/visibility.m4: New file.
59854
59855 2005-07-24  Bruno Haible  <bruno@clisp.org>
59856
59857         * doc/visibility.texi: New file.
59858
59859 2005-07-22  Bruno Haible  <bruno@clisp.org>
59860
59861         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
59862         $(ALLOCA_H), redundant through BUILT_SOURCES.
59863         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
59864         redundant through BUILT_SOURCES.
59865         * modules/byteswap (Makefile.am): Remove explicit dependency on
59866         $(BYTESWAP_H), redundant through BUILT_SOURCES.
59867         * modules/fnmatch (Makefile.am): Remove explicit dependency on
59868         $(FNMATCH_H), redundant through BUILT_SOURCES.
59869         * modules/getopt (Makefile.am): Remove explicit dependency on
59870         $(GETOPT_H), redundant through BUILT_SOURCES.
59871         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
59872         redundant through BUILT_SOURCES.
59873         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
59874         redundant through BUILT_SOURCES.
59875         * modules/stdbool (Makefile.am): Remove explicit dependency on
59876         $(STDBOOL_H), redundant through BUILT_SOURCES.
59877         * modules/stdint (Makefile.am): Remove explicit dependency on
59878         $(STDINT_H), redundant through BUILT_SOURCES.
59879         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
59880         Remove explicit dependency on $(SYSEXITS_H).
59881         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
59882
59883 2005-07-18  Simon Josefsson  <jas@extundo.com>
59884
59885         * lib/check-version.c (check_version): Accept identical versions too.
59886
59887 2005-07-18  Bruno Haible  <bruno@clisp.org>
59888
59889         * modules/lock: New file.
59890         * MODULES.html.sh (Multithreading): New section.
59891
59892 2005-07-18  Bruno Haible  <bruno@clisp.org>
59893
59894         * m4/lock.m4: New file, from GNU gettext.
59895
59896 2005-07-18  Bruno Haible  <bruno@clisp.org>
59897
59898         * lib/lock.h: New file, from GNU gettext.
59899         * lib/lock.c: New file, from GNU gettext.
59900
59901 2005-07-18  Bruno Haible  <bruno@clisp.org>
59902
59903         * lib/lock.h (gl_once_t): New type.
59904         (gl_once_define, gl_once): New macros.
59905         * lib/lock.c (fresh_once): New variable.
59906         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
59907         functions.
59908
59909 2005-07-16  Simon Josefsson  <jas@extundo.com>
59910
59911         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
59912         workaround, suggested by Bruno.
59913
59914 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59915
59916         * modules/xalloc (Depends-on): Add xalloc-die.
59917         * modules/xvasprintf (Depends-on): Add xalloc-die.
59918
59919 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59920
59921         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
59922         with a minor change.
59923
59924 2005-07-15  Bruno Haible  <bruno@clisp.org>
59925
59926         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
59927         When using lib/poll.c, define poll as rpl_poll.
59928
59929 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
59930
59931         * modules/argp (Depends-on): Remove unlocked-io.
59932
59933 2005-07-14  Derek Price  <derek@ximbiot.com>
59934
59935         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
59936         for glob symlink bug.
59937
59938 2005-07-14  Bruno Haible  <bruno@clisp.org>
59939
59940         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
59941         Instead, test for *_unlocked function declarations directly.
59942
59943 2005-07-11  Simon Josefsson  <jas@extundo.com>
59944
59945         * modules/size_max: New file.
59946
59947         * modules/xsize: Depend on size_max module for size_max.m4.
59948
59949 2005-07-11  Simon Josefsson  <jas@extundo.com>
59950
59951         * lib/size_max.h: New file.
59952
59953 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
59954
59955         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
59956         copyright symbol and the year.
59957         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
59958         (version_etc_va): Use parameterized copyright notice.
59959         Reword to conform to the current GNU coding standards.
59960
59961 2005-07-11  Karl Berry  <karl@gnu.org>
59962
59963         * doc/gnulib.texi (Quoting): new node.
59964         (Initial import): more info, from Patrice.
59965
59966 2005-07-11  Bruno Haible  <bruno@clisp.org>
59967
59968         * gnulib-tool (func_usage): Document option --avoid.
59969         (Command line options): Handle --avoid.
59970         (func_acceptable): New function.
59971         (func_modules_transitive_closure): Use it.
59972
59973 2005-07-11  Bruno Haible  <bruno@clisp.org>
59974
59975         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
59976         Reported by Jim Meyering.
59977
59978 2005-07-10  Bruno Haible  <bruno@clisp.org>
59979
59980         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
59981         Needed when size_t is smaller than 'unsigned int'.
59982         Reported by Paul Eggert.
59983
59984 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59985
59986         * modules/argp (Depends-on): Add unlocked-io
59987
59988 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59989
59990         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
59991         block of defines.
59992
59993 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59994
59995         * config/srclist.txt: Comment out regcomp.c, since we have a porting
59996         fix now.
59997
59998 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
59999         and Paul Eggert  <eggert@cs.ucla.edu>
60000
60001         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
60002         in wint_t, not wchar_t.  Remove now-unnecessary cast.
60003
60004 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60005
60006         * modules/regex (Files): Add lib/regex_internal.c,
60007         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
60008         (Depends-on): Add extensions.
60009         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
60010
60011 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60012
60013         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
60014         pathconf.
60015         * m4/same.m4 (gl_SAME): Likewise.
60016         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
60017
60018         * m4/regex.m4: Adjust to new libc regex implementation.
60019         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
60020         all the .c and .h parts of (the new) regex.
60021         Quote the m4 stuff better.
60022         Check for RE_ICASE bug of old gnulib.
60023         Check for REG_STARTEND of recent libc.
60024         Rename local variables from jm_* to gl_*.
60025         Quote operand of "test -f".
60026         Say "recent enough" version of libc, not "version 2".
60027         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
60028         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
60029         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
60030         Remove check for btowc, isascii.
60031         Require AM_LANGINFO_CODESET.
60032
60033 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60034
60035         * lib/regex.c, regex.h: Sync from libc.
60036         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
60037         * lib/regexec.c:
60038         New files, synced from libc, except that regex_internal.h
60039         currently has a small porting fix.
60040
60041 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
60042
60043         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
60044         regex_internal.c, regexec.c.
60045         Add regex_internal.h too, but as a comment, since the libc version
60046         is currently broken in gnulib mode.
60047
60048 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60049
60050         Support programs like Emacs that use gnulib but not gettext.
60051         * MODULES.html.sh (Internationalization functions): Add gettext-h.
60052         * modules/gettext-h: New file.
60053         * modules/gettext (Files): Remove lib/gettext.h.
60054         (Depends-on): Add gettext-h.
60055         (Makefile.am): Remove lib_SOURCES.
60056         * modules/argmatch, modules/c-stack, modules/closeout:
60057         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
60058         * modules/execute, modules/file-type, modules/getaddrinfo:
60059         * modules/getopt, modules/human, modules/javacomp:
60060         * modules/javaexec, modules/mkdir-p, modules/obstack:
60061         * modules/openat, modules/pagealign_alloc, modules/pipe:
60062         * modules/quotearg, modules/regex, modules/rpmatch:
60063         * modules/unicodeio, modules/userspec, modules/version-etc:
60064         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
60065         * modules/xsetenv:
60066         Depend on gettext-h, not gettext.
60067
60068 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60069
60070         * gnulib-tool (func_import): Add support for 'public domain' license.
60071         * modules/alloca, modules/atexit, modules/memmove:
60072         Now public domain, not GPL.
60073         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
60074         * modules/realloc, modules/strerror, modules/strtod:
60075         Now LGPL, not GPL.
60076
60077 2005-07-05  Bruno Haible  <bruno@clisp.org>
60078
60079         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
60080         autoconf CVS. Needed for mingw.
60081
60082 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60083
60084         Remove the dependency of the strftime module on the tzset module.
60085         * modules/strftime (Depends-on): Remove dependency on tzset.
60086
60087 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60088
60089         Remove the dependency of the strftime module on the tzset module.
60090         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
60091         gl_FUNC_TZSET_CLOBBER.
60092
60093 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60094
60095         Remove the dependency of the strftime module on the tzset module.
60096         * lib/strftime.c (my_strftime)
60097         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
60098         Copy the input structure, to work around some of the bug with
60099         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
60100         Solaris releases, you should also use the tzset module, but we won't
60101         require it as a dependency any more since we don't want LGPLed code
60102         to depend on GPLed code.
60103
60104 2005-07-02  Jim Meyering  <jim@meyering.net>
60105
60106         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
60107         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
60108         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
60109         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
60110
60111 2005-07-02  Jim Meyering  <jim@meyering.net>
60112
60113         * lib/backupfile.c (backup_args): Change a `0' to NULL.
60114
60115 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60116
60117         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
60118         declares only 'struct timespec;' (!).
60119
60120 2005-07-01  Jim Meyering  <jim@meyering.net>
60121
60122         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
60123         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
60124         * lib/save-cwd.c, tempname.c:
60125         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
60126         and don't include <sys/file.h>).
60127
60128 2005-06-29  Jim Meyering  <jim@meyering.net>
60129
60130         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
60131         type name.  Use the variable name instead.
60132         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
60133         Likewise.
60134
60135 2005-06-28  Simon Josefsson  <jas@extundo.com>
60136
60137         * modules/check-version (Files): Add check-version.m4.
60138
60139 2005-06-28  Simon Josefsson  <jas@extundo.com>
60140
60141         * m4/check-version.m4: New file, suggested by Jim Meyering
60142         <jim@meyering.net>.
60143
60144 2005-06-28  Simon Josefsson  <jas@extundo.com>
60145
60146         * lib/check-version.h, lib/check-version.c: New files.
60147
60148 2005-06-28  Simon Josefsson  <jas@extundo.com>
60149
60150         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
60151         collision with global variable.  Better indentation.  Don't
60152         increment buffer pointer beyond buffer end.  Based on comments
60153         from Paul Eggert <eggert@cs.ucla.edu>.
60154
60155         * lib/base64.h: Indent.
60156
60157 2005-06-28  Simon Josefsson  <jas@extundo.com>
60158
60159         * doc/gnulib.texi (Library version handling): New section.
60160
60161 2005-06-28  Jim Meyering  <jim@meyering.net>
60162
60163         * check-module (find_included_lib_files): Hard-code another
60164         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
60165         but modules/fts-lgpl (correctly) does not list those files.
60166
60167         * modules/canonicalize (Files): Add lib/pathmax.h.
60168
60169 2005-06-25  Simon Josefsson  <jas@extundo.com>
60170
60171         * modules/check-version: New file.
60172
60173 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
60174
60175         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
60176         initializer of struct addrinfo, as an indication that we don't
60177         care how many members the structure has.
60178
60179 2005-06-24  Derek Price  <derek@ximbiot.com>
60180         and Bruno Haible  <bruno@clisp.org>
60181
60182         Remove stat module & update lstat.
60183         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
60184         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60185         * m4/stat.m4: Remove this file.
60186
60187 2005-06-24  Derek Price  <derek@ximbiot.com>
60188         and Bruno Haible  <bruno@clisp.org>
60189
60190         Remove stat module & update lstat.
60191         * lib/stat.c: Remove this file...
60192         (slash_aware_lstat): ...moving this content and its support...
60193         * lib/lstat.c (rpl_lstat): ...into here.
60194         * lib/lstat.h: New file.
60195
60196 2005-06-24  Derek Price  <derek@ximbiot.com>
60197         and Bruno Haible  <bruno@clisp.org>
60198
60199         Remove stat module & update lstat.
60200         * config/srclist.txt (libc sources): Remove stat.
60201
60202 2005-06-24  Derek Price  <derek@ximbiot.com>
60203         and Bruno Haible  <bruno@clisp.org>
60204
60205         Remove stat module & update lstat.
60206         * MODULES.html.sh (stat): Remove.
60207         * MODULES.html: Regenerated.
60208         * modules/lstat (Description): Correct function name.
60209         (Files): Add "lstat.h".
60210         (Depends-on): Remove stat, add xalloc, stat-macros.
60211         * modules/stat: Remove this file.
60212         (Include): Add "lstat.h", remove <sys/stat.h>.
60213
60214 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60215
60216         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
60217         (ranged_convert): Don't save conversion in a temporary struct.
60218         This causes a warning with GCC 4.0.0, and anyway in the typical
60219         case it's not worth the extra 100 bytes or so of code.
60220         (ranged_convert, __mktime_internal): When calling a function via a
60221         pointer P, use P () rather than (*P) (), as we now assume C89 or
60222         better.
60223
60224 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60225
60226         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
60227         "who -r" failed to give output.  Problem reported by Tim Waugh.
60228
60229         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
60230         (xcalloc): Use it to avoid needless tests.
60231         Problem reported by Jim Meyering.
60232
60233 2005-06-20  Derek Price  <derek@ximbiot.com>
60234
60235         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
60236         unnecessary for Autoconfs > 2.59c.
60237
60238 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60239
60240         * lib/argp.h (__option_is_short): Check upper limit of
60241         __key. Isprint() requires its argument to have the value
60242         of an unsigned char or EOF.
60243
60244 2005-06-16  Jim Meyering  <jim@meyering.net>
60245
60246         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
60247         when either N or S is zero.
60248
60249 2005-06-16  Derek Price  <derek@ximbiot.com>
60250
60251         * m4/bison.m4: Declare YACC & YFLAGS precious.
60252
60253 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
60254
60255         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
60256         multibyte string or pattern, fall back on unibyte matching.
60257         Problem reported by James Youngman.
60258
60259 2005-06-08  Bruno Haible  <bruno@clisp.org>
60260
60261         * modules/csharpcomp: New file.
60262         * MODULES.html.sh (C#): Add csharpcomp.
60263
60264 2005-06-08  Bruno Haible  <bruno@clisp.org>
60265
60266         * m4/csharpcomp.m4: New file, from GNU gettext.
60267
60268 2005-06-08  Bruno Haible  <bruno@clisp.org>
60269
60270         * lib/csharpcomp.h: New file, from GNU gettext.
60271         * lib/csharpcomp.c: New file, from GNU gettext.
60272         * lib/csharpcomp.sh.in: New file, from GNU gettext.
60273
60274 2005-06-08  Bruno Haible  <bruno@clisp.org>
60275
60276         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
60277         warning on mingw.
60278
60279 2005-06-07  Derek Price  <derek@ximbiot.com>
60280
60281         Sync from CVS.
60282         * lib/glob_.h: Indent nested #ifdef.
60283
60284 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
60285
60286         Sync from coreutils.
60287         Use "file name" when talking about file names, instead of "filename"
60288         or "path", as per the GNU coding standards.
60289         * lib/mkdir-p.c: Renamed from makepath.c.
60290         (make_dir_parents): Renamed from make_path.  All callers changed.
60291         * lib/mkdir-p.h: Likewise.  All includers changed.
60292         * lib/filenamecat.c: Renamed from path-concat.c.
60293         (file_name_concat): Renamed from path_concat.  All callers changed.
60294         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
60295         * lib/filenamecat.h: Likewise.  All includers changed.
60296         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
60297         in comments or local variable names.
60298         * lib/basename.c: Likewise.
60299         * lib/canonicalize.c, canonicalize.h: Likewise.
60300         * lib/dirname.c, dirname.h: Likewise.
60301         * lib/euidaccess.c: Likewise.
60302         * lib/exclude.c: Likewise
60303         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
60304         * lib/fsusage.c, fsuage.h: Likewise.
60305         * lib/fts.c, fts_.h: Likewise.
60306         * lib/getcwd.c: Likewise.
60307         * lib/getloadavg.c: Likewise.
60308         * lib/mkstemp.c: Likewise.
60309         * lib/mountlist.c, mountlist.h: Likewise.
60310         * lib/openat.c, openat.h: Likewise.
60311         * lib/readlink-stub.c: Likewise.
60312         * lib/readutmp.c, readutmp.h: Likewise.
60313         * lib/rename.c: Likewise.
60314         * lib/rmdir.c: Likewise.
60315         * lib/same.c: Likewise.
60316         * lib/savedir.c: Likewise.
60317         * lib/stripslash.c: Likewise.
60318         * lib/tempname.c: Likewise.
60319         * lib/xreadlink.c: Likewise.
60320         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
60321         All uses changed.
60322         * lib/exclude.h: Likewise.
60323
60324         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
60325         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
60326         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
60327         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
60328         * lib/pathmax.h: Include <limits.h> unconditionally, since other
60329         files have been getting away with it for years (MORE/BSD 4.3
60330         is extinct now).
60331         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
60332         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
60333
60334         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
60335         Define to 256, not 255, as per modern POSIX.
60336
60337 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
60338
60339         Sync from coreutils.
60340         Use "file name" when talking about file names, instead of "filename"
60341         or "path", as per the GNU coding standards.
60342         * MODULES.html.sh: mkdir-p renamed from makepath.
60343         filenamecat renamed from path-concat.
60344         * modules/filenamecat: Renamed from modules/path-concat.
60345         (Files): filenamecat.h and filenamecat.c renamed from
60346         path-concat.h and path-concat.c.
60347         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
60348         (Include): filenamecat.h, not path-concat.h.
60349         * modules/mkdir-p: Renamed from modules/makepath.
60350         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
60351         makepath.c.
60352         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
60353         (Include): mkdir-p.h, not makepath.h.
60354
60355 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
60356
60357         Sync from coreutils.
60358         * m4/mkdir-p.m4: Renamed from makepath.m4.
60359         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
60360         Rename files from makepath.c to mkdir-p.c, and from
60361         makepath.h to mkdir-p.h.
60362         * m4/filenamecat.m4: Renamed from path-concat.m4.
60363         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
60364         Rename files from path-concat.c to filenamecat.c,
60365         and from path-concat.h to filenamecat.h.
60366         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
60367         "file name" in local variables or comments.
60368         * m4/rename.m4: Likewise.
60369
60370 2005-06-01  Bruno Haible  <bruno@clisp.org>
60371
60372         * modules/csharpexec: New file.
60373         * MODULES.html.sh (C#): New section.
60374
60375 2005-06-01  Bruno Haible  <bruno@clisp.org>
60376
60377         * m4/csharp.m4: New file, from GNU gettext.
60378         * m4/csharpexec.m4: New file, from GNU gettext.
60379
60380 2005-06-01  Bruno Haible  <bruno@clisp.org>
60381
60382         * lib/csharpexec.h: New file, from GNU gettext.
60383         * lib/csharpexec.c: New file, from GNU gettext.
60384         * lib/csharpexec.sh.in: New file, from GNU gettext.
60385
60386 2005-05-31  Derek Price  <derek@ximbiot.com>
60387             Paul Eggert  <eggert@cs.ucla.edu>
60388
60389         Sync from cvs.
60390         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
60391
60392 2005-05-31  Derek Price  <derek@ximbiot.com>
60393             Paul Eggert  <eggert@cs.ucla.edu>
60394
60395         Sync from cvs.
60396         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
60397
60398 2005-05-29  Derek Price  <derek@ximbiot.com>
60399
60400         * config/srclist.txt (glob_.h, glob.c): Add these files.
60401
60402 2005-05-29  Derek Price  <derek@ximbiot.com>
60403
60404         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
60405         * modules/glob: New file.
60406         * modules/getlogin_r: Add link to POSIX spec in description.
60407
60408 2005-05-29  Derek Price  <derek@ximbiot.com>
60409             Paul Eggert  <eggert@cs.ucla.edu>
60410
60411         * m4/glob.m4: New file.
60412
60413 2005-05-29  Derek Price  <derek@ximbiot.com>
60414             Paul Eggert  <eggert@cs.ucla.edu>
60415
60416         * lib/glob_.h, lib/glob.c: New files.
60417
60418 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60419
60420         * modules/fts (Files): Remove m4/inttypes-pri.m4.
60421         * modules/fts-lgpl (Depends-on): Remove gettext.
60422
60423 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60424
60425         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
60426         and don't require gt_INTTYPES_PRI.
60427
60428 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
60429
60430         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
60431
60432         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
60433         the configuration hassle isn't worth it.
60434         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
60435         (LONGEST_MODIFIER, PRIuMAX): Remove.
60436
60437 2005-05-27  Bruno Haible  <bruno@clisp.org>
60438
60439         * lib/getlogin_r.h: Remove second include of <stddef.h>.
60440
60441 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
60442
60443         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
60444         _POSIX_PTHREAD_SEMANTICS for Solaris.
60445
60446 2005-05-25  Derek Price  <derek@ximbiot.com>
60447
60448         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
60449
60450 2005-05-25  Derek Price  <derek@ximbiot.com>
60451             Paul Eggert  <eggert@cs.ucla.edu>
60452
60453         * modules/getlogin_r, m4/getlogin_r.m4: New files.
60454         * lib/getlogin_r.c, getlogin_r.h: New files.
60455
60456 2005-05-25  Bruno Haible  <bruno@clisp.org>
60457             Derek Price  <derek@ximbiot.com>
60458
60459         * lib/getlogin_r.h: Simplify API documentation.
60460
60461 2005-05-23  Derek Price  <derek@ximbiot.com>
60462
60463         * modules/minmax (Files): Add m4/minmax.m4.
60464         (configure.ac): Add gl_MINMAX.
60465
60466 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60467
60468         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
60469         so that unistd-safer.h (GPL'ed code) need not be included.
60470
60471 2005-05-22  Bruno Haible  <bruno@clisp.org>
60472
60473         * m4/minmax.m4: New file.
60474         Based on a patch by Derek Price <derek@ximbiot.com>.
60475
60476 2005-05-22  Bruno Haible  <bruno@clisp.org>
60477
60478         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
60479         (INT64_MIN): Fix definition.
60480         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
60481
60482         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
60483         NEED_SIGNED_INT_TYPES.
60484
60485         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
60486         HAVE_SYSTEM_INTTYPES.
60487
60488 2005-05-22  Bruno Haible  <bruno@clisp.org>
60489
60490         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
60491         Also include <sys/param.h> if it defines MIN, MAX.
60492         Based on a patch by Derek Price <derek@ximbiot.com>.
60493
60494 2005-05-21  Jim Meyering  <jim@meyering.net>
60495
60496         * modules/fts (Files): Add m4/inttypes-pri.m4.
60497         (Depends-on): Add lstat and remove gettext.  Alphabetize.
60498
60499 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60500
60501         New fts module.
60502         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
60503         (setup_dir, free_dir): New functions.
60504         (enter_dir, leave_dir): Define trivial
60505         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
60506         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
60507         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
60508         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
60509         Move to fts-cycle.c.
60510         (fts_open): Use setup_dir.
60511         (fts_close): Use free_dir.
60512         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
60513         This adds a label and some gotos, but the alternatives were messier.
60514         Check for memory allocation failure when entering a dir.
60515         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
60516         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
60517         (FTS): New member fts_cycle, that is a union that contains the
60518         old active_dir_ht and cycle_state.  All uses changed to mention
60519         fts_cycle.ht and fts_cycle.state.
60520         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
60521         fts.c, with the following changes:
60522         (setup_dir, free_dir): New functions.
60523         (enter_dir): Now returns bool.  Return true if successful, false
60524         if memory exhausted.  All callers changed.
60525         Do not bother partly cleaning up on
60526         memory allocation failure; that is free_dir's job.
60527         However, free ad if hash_insert fails, to avoid memory leak.
60528         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
60529         fts->fts_options to see which union member to use.
60530
60531 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60532
60533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
60534         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
60535
60536 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60537
60538         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
60539
60540 2005-05-20  Jim Meyering  <jim@meyering.net>
60541
60542         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
60543         Now a macro, to pacify GCC.
60544
60545 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
60546
60547         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
60548         of -1.
60549
60550 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
60551
60552         * lib/chown.c (rpl_chown): Return -1 on failure.
60553
60554 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
60555
60556         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
60557         Don't check for stddef.h.
60558         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
60559         don't use its results.
60560         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
60561         since we include them unconditionally.  Don't require
60562         AM_STDBOOL_H, since stdbool is a prerequisite.
60563         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
60564         since we assume C89 or better.
60565         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
60566         as we don't use their results.
60567         Don't check for fchdir, memmove, memset, strrchr, as we use
60568         them unconditionally.
60569         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
60570         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
60571
60572 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
60573
60574         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
60575         Include <stddef.h> unconditionally, since we assume C89 now.
60576         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
60577         * lib/fts.c: Include fts_.h first, to check interface.
60578         Do not include intprops.h; no longer needed.
60579         Include cycle-check.h and hash.h, since fts_.h no longer does.
60580         Remove unnecessary casts of closedir to void.
60581         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
60582         decide whether to decrement nlinks.
60583         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
60584         (FTS): Use struct hash_table * instead of Hash_table, so that
60585         we no longer need to include hash.h here.
60586
60587 2005-05-18  Jim Meyering  <jim@meyering.net>
60588
60589         * modules/dirfd (License): Change to LGPL.  Most of the code
60590         is already in the public domain.
60591
60592 2005-05-18  Jim Meyering  <jim@meyering.net>
60593
60594         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
60595         Reported by Yoann Vandoorselaere.
60596
60597 2005-05-17  Jim Meyering  <jim@meyering.net>
60598
60599         * m4/fts.m4: New file, from coreutils.
60600
60601 2005-05-17  Jim Meyering  <jim@meyering.net>
60602
60603         * lib/fts.c, lib/fts_.h: New files, from coreutils.
60604
60605 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60606
60607         Sync from coreutils.
60608         * m4/unlinkdir.m4: New file.
60609
60610 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60611
60612         Sync from coreutils.
60613         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
60614         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
60615         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
60616         White space changes only.
60617         * lib/makepath.c (make_path): Port to hosts where leading "//" is
60618         special.
60619         * lib/yesno.c: Include getline.h, not ctype.h.
60620         (yesno): Don't remove leading white space; POSIX doesn't allow it.
60621         Use getline to remove arbitrary restriction on response length.
60622
60623 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60624
60625         * config/srclist-update: Spell out "Street" in FSF postal
60626         mail address; this is the style the FSF seems to prefer.
60627
60628         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
60629         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
60630         this updates FSF postal mail address.
60631
60632         Sync from coreutils.
60633         * modules/unlinkdir: New file.
60634         * modules/yesno (Depends-on): Add getline.
60635         * MODULES.html.sh (File system functions): Add unlinkdir.
60636
60637 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60638
60639         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
60640         lib/strsep.h:
60641         Change the initial comment to refer to GPL, not LGPL.
60642         gnulib-tool will change it to LGPL as needed.
60643
60644         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
60645         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
60646         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
60647         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
60648         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
60649         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
60650         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
60651         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
60652         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
60653         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
60654         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
60655         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
60656         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
60657         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
60658         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
60659         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
60660         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
60661         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
60662         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
60663         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
60664         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
60665         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
60666         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
60667         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
60668         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
60669         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
60670         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
60671         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
60672         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
60673         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
60674         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
60675         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
60676         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
60677         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
60678         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
60679         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
60680         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
60681         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
60682         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
60683         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
60684         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
60685         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
60686         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
60687         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
60688         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
60689         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
60690         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
60691         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
60692         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
60693         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
60694         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60695         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
60696         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
60697         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
60698         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
60699         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
60700         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
60701         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
60702         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
60703         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
60704         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
60705         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
60706         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
60707         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
60708         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
60709         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
60710         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
60711         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
60712         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
60713         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
60714         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
60715         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
60716         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
60717         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
60718         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
60719         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
60720         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
60721         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
60722         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
60723         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
60724         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
60725         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
60726         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
60727         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
60728         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
60729         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
60730         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
60731         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
60732         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
60733         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
60734         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
60735         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
60736         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
60737         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
60738         lib/yesno.c, lib/yesno.h:
60739         Update FSF postal mail address.
60740
60741 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60742
60743         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
60744         tests/test-memmem.c, tests/test-stpncpy.c:
60745         Update FSF postal mail address.
60746
60747 2005-05-13  Bruno Haible  <bruno@clisp.org>
60748
60749         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
60750         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
60751         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
60752         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
60753         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
60754         Add support for 64-bit integers in the MSVC compiler.
60755
60756 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60757
60758         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
60759
60760 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
60761
60762         * gnulib-tool (func_import): Sort and uniquify recommended includes.
60763
60764 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
60765
60766         * doc/getdate.texi (General date syntax): Don't say that date
60767         date --iso-8601=ns generates acceptable dates; it doesn't yet.
60768         Problem reported by Nic Ferrier.
60769
60770 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60771
60772         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
60773         specified in ai_socktype. Fix invalid ai_protocol
60774         check. ai_protocol is usually set to 0 or depending on
60775         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
60776         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
60777         ai_socktype / ai_protocol in the returned addrinfo structure.
60778
60779 2005-05-10  Simon Josefsson  <jas@extundo.com>
60780
60781         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
60782         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60783
60784 2005-05-10  Karl Berry  <karl@gnu.org>
60785
60786         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
60787         (from http://www.gnu.org/licenses).
60788         * doc/COPYING.LIB: also rename to COPYING.LESSER.
60789         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
60790         fdl.texi suffices.
60791
60792 2005-05-10  Karl Berry  <karl@gnu.org>
60793
60794         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
60795         (COPYING.DOC): remove.
60796
60797         * config/srclist-update: new FSF address.
60798
60799 2005-05-10  Derek Price  <derek@ximbiot.com>
60800
60801         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
60802         possible.
60803
60804 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60805             Bruno Haible  <bruno@clisp.org>
60806
60807         * modules/inet_ntop: New file.
60808         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60809         inet_ntop.
60810
60811 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60812             Bruno Haible  <bruno@clisp.org>
60813
60814         * m4/inet_ntop.m4: New file.
60815
60816 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60817             Bruno Haible  <bruno@clisp.org>
60818
60819         * lib/inet_ntop.h: New file.
60820         * lib/inet_ntop.c: New file, from glibc with modifications.
60821
60822 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
60823
60824         * modules/time_r (License): Change to LGPL.
60825         * modules/extensions (License): Change to LGPL.  Actually,
60826         the license is more permissive than that, but currently gnulib-tool
60827         doesn't know how to handle more-permissive licenses.
60828
60829         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
60830         Problem reported by Dave Love.
60831
60832 2005-05-08  Jim Meyering  <jim@meyering.net>
60833
60834         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
60835         blank.
60836
60837 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60838
60839         * modules/argmatch (Depends-on): Add stdbool.
60840         * modules/backupfile (Depends-on): Likewise.
60841         * modules/chdir-long (Depends-on): Likewise.
60842         * modules/closeout (Depends-on): Likewise.
60843         * modules/cycle-check (Depends-on): Likewise.
60844         * modules/dirname (Depends-on): Likewise.
60845         * modules/fnmatch (Depends-on): Likewise.
60846         * modules/fsusage (Depends-on): Likewise.
60847         * modules/fwriteerror (Depends-on): Likewise.
60848         * modules/getcwd (Depends-on): Likewise.
60849         * modules/getloadavg (Depends-on): Likewise.
60850         * modules/hard-locale (Depends-on): Likewise.
60851         * modules/makepath (Depends-on): Likewise.
60852         * modules/mountlist (Depends-on): Likewise.
60853         * modules/nanosleep (Depends-on): Likewise.
60854         * modules/posixtm (Depends-on): Likewise.
60855         * modules/quotearg (Depends-on): Likewise.
60856         * modules/readtokens (Depends-on): Likewise.
60857         * modules/readtokens0 (Depends-on): Likewise.
60858         * modules/readutmp (Depends-on): Likewise.
60859         * modules/save-cwd (Depends-on): Likewise.
60860         * modules/strftime (Depends-on): Likewise.
60861         * modules/userspec (Depends-on): Likewise.
60862         * modules/utimecmp (Depends-on): Likewise.
60863         * modules/xgetcwd (Depends-on): Likewise.
60864         * modules/xnanosleep (Depends-on): Likewise.
60865         * modules/xstrtod (Depends-on): Likewise.
60866         * modules/yesno (Depends-on): Likewise.
60867
60868 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
60869
60870         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
60871         needless checks.
60872
60873 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60874
60875         Merge from coreutils.  Among other things,
60876         add bulletproofing for cases where stdin, stdout, or stderr are closed.
60877         * lib/fd-safer.c: New file.
60878         * lib/fcntl-safer.h, open-safer.c: Remove.
60879         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
60880         * lib/dup-safer.c: Include unistd-safer.h first.
60881         Don't include errno.h.
60882         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
60883         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
60884         * lib/file-type.c: Rely on file-type.h change.
60885         * lib/getloadavg.c: Include unistd-safer.h.
60886         (getloadavg): Use safer open.
60887         * lib/getusershell.c: Include "stdio-safer.h".
60888         (getusershell): Use safer fopen.
60889         * lib/long-options.c (long_options): Use NULL rather than 0.
60890         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
60891         'free'.
60892         * lib/modechange.c: Likewise.
60893         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
60894         (MODE_DONE): New constant.
60895         (struct mode_change): Remove 'next' member.
60896         (make_node_op_equals): New function; like the old one of the
60897         same name, except it allocates an array.
60898         (mode_compile, mode_create_from_ref): Use it.
60899         (mode_compile): Allocate result as an array, not a linked list.
60900         Parse octal string ourself, so that we catch mistakes like "+0".
60901         (mode_adjust): Arg is an array, not a linked list.
60902         * lib/modechange.c: Include stat-macros.h, xalloc.h.
60903         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
60904         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
60905         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
60906         Remove.  This is now stat-macros.h's job.
60907         (talloc): Remove.  All callers replaced by xalloc, so that
60908         our invokers don't have to worry about reporting memory failures.
60909         (make_node_op_equals): Remove.
60910         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60911         New constants.
60912         (struct mode_change): Moved here from modechange.h.
60913         (mode_append_entry): Remove.
60914         (mode_compile): Remove MASKED_OPS arg, since it encouraged
60915         apps to have incorrect behavior.  Use simpler algorithm for head
60916         and tail.  Don't futz with umask; that's now the job of mode_adjust.
60917         Detect more invalid usages rather than having somewhat-random behavior.
60918         Don't insert an "a=" action, as that leads to incorrect behavior.
60919         (mode_compile, mode_create_from_ref): Return NULL on error instead
60920         of an enum, since now there's only one way to have an error.  All
60921         callers changed.
60922         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
60923         at the correct time.  Simplify calculation of "+u" and its ilk.
60924         Don't mishandle "+X".
60925         (mode_free): Remove "register" and localize decls.
60926         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60927         (struct mode_change): Move to modechange.c; callers don't
60928         need to see this stuff.
60929         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
60930         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
60931         (mode_change, mode_adjust): Reflect the new signatures noted above.
60932         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
60933         that might redefine system include files.
60934         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
60935         (my_usleep): Use NULL rather than (void *) 0.
60936         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
60937         Use siginterrupt to specify that system calls should be interrupted.
60938         (rpl_nanosleep): Move initialization of suspended closer to call of
60939         my_usleep.
60940         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
60941         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
60942         (desirable_utmp_entry): New function.
60943         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
60944         using x2nrealloc, to simplify logic.
60945         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
60946         size calculation.  Do not assume utmp file is a regular file.
60947         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
60948         (READ_UTMP_CHECK_PIDS): New constant.
60949         * lib/save-cwd.c: Include unistd-safer.h.
60950         (save_cwd): Use fd_safer.
60951         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
60952         [!_LIBC] Include "stat-macros.h" instead.
60953         * lib/unistd-safer.h (fd_safer): New decl.
60954
60955 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60956
60957         * modules/getloadavg (Depends-on): Add unistd-safer.
60958         * modules/getusershell (Depends-on): Add stdio-safer.
60959         * modules/lstat (Depends-on): Remove xalloc.
60960         * modules/mkstemp (Depends-on): Add stat-macros.
60961         * modules/modechange (Depends-on): Remove xstrtol.
60962         Add stat-macros, xalloc.
60963         * modules/save-cwd (Depends-on): Add unistd-safer.
60964         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
60965         * modules/unistd-safer (Files): Add lib/fd-safer.c
60966         (Makefile.am): Remove lib_SOURCES.
60967
60968         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
60969         Remove fcntl-safer; unistd-safer supersedes it.
60970
60971 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60972
60973         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
60974         AC_HEADER_STAT.
60975         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
60976         (gl_PREREQ_CHOWN): Remove.
60977         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
60978         it.  Don't require AC_HEADER_STAT.
60979         (gl_PREREQ_LSTAT): Remove.
60980         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
60981         Don't require AC_HEADER_STAT.
60982         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
60983         (gl_PREREQ_RMDIR): Remove.
60984         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
60985         mention stat-macros.h or AC_HEADER_STAT, since we'll make
60986         the stat-macros module a prerequisite.
60987         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
60988         * m4/filemode.m4 (gl_FILEMODE): Likewise.
60989         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
60990         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
60991         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
60992         variable names.
60993         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
60994         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
60995         variable prefixes.
60996         * m4/fcntl-safer.m4: Remove.
60997         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
60998         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
60999         Invoke gl_PREREQ_FD_SAFER.
61000         (gl_PREREQ_FD_SAFER): New macro.
61001         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
61002         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
61003         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
61004         Remove duplicate call to AC_LIBOBJ(readutmp).
61005         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
61006
61007         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
61008         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
61009
61010 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
61011
61012         * MODULES.html.sh (Misc): Add byteswap.
61013
61014 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61015
61016         * modules/getcwd (Depends-on): Add extensions.
61017         * modules/openat (Depends-on): Likewise.
61018
61019 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61020
61021         * modules/byteswap: New file.
61022
61023 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61024
61025         * m4/byteswap.m4: New file.
61026
61027 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
61028
61029         * lib/byteswap_.h: New file.
61030
61031 2005-04-25  Karl Berry  <karl@gnu.org>
61032
61033         * m4/gettext.m4: Update from GNU gettext 0.14.4.
61034
61035 2005-04-25  Albert Chin  <china@thewrittenword.com>
61036
61037         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
61038         Toolkit C bug.
61039
61040 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
61041
61042         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
61043         (func_ln_if_changed) Remove forcibly for no error message
61044         in case file does not exist.
61045
61046 2005-04-19  Simon Josefsson  <jas@extundo.com>
61047
61048         * gnulib-tool (Options): Make --symlink mean --symbolic.
61049
61050 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
61051
61052         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
61053
61054 2005-04-16  Simon Josefsson  <jas@extundo.com>
61055
61056         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
61057
61058 2005-04-15  Simon Josefsson  <jas@extundo.com>
61059
61060         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
61061
61062 2005-04-15  Simon Josefsson  <jas@extundo.com>
61063
61064         * gnulib-tool: Rename --symlink to --symbolic.
61065
61066 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
61067
61068         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
61069         symbolic links to files instead of copying/moving.  Add --aux-dir,
61070         specifying directory relative --dir where auxiliary build tools
61071         are placed.
61072
61073 2005-04-14  Bruno Haible  <bruno@clisp.org>
61074
61075         * modules/allocsa (License): Change to LGPL.
61076         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
61077
61078 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61079
61080         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
61081         that "UTC +1 second" continues to work.  Problem reported
61082         by Dmitry V. Levin.
61083         (relunit_snumber): New rule.
61084         (relunit): Use it.
61085
61086 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61087
61088         * lib/getdate.y (universal_time_zone_table): New constant.
61089         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
61090         universal_time_zone_table.
61091         (lookup_zone): Prefer universal_time_zone_table to
61092         local_time_zone_table, so that "GMT" time stamps are allowed in
61093         London during the summer.  Problem reported by Ian Abbott.
61094
61095 2005-04-12  Jim Meyering  <jim@meyering.net>
61096
61097         * lib/human.c (humblock): Set *options even when returning due to
61098         xstrtoumax conversion failure.  Thanks to a used-uninitialized
61099         warning from gcc-4.
61100
61101 2005-04-09  Jim Meyering  <jim@meyering.net>
61102
61103         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
61104         -Wuninitialized: initialize tm0.tm_year.
61105
61106 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61107
61108         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
61109         count, since there's no maximum.  All uses changed.
61110         Add member dsts_seen.
61111         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
61112         not being INT_MAX.
61113         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
61114         Use pc_rels_seen to decide whther a date is absolute.
61115
61116         * lib/getdate.y (number): Don't overwrite year.
61117         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
61118         check.
61119
61120 2005-04-02  Simon Josefsson  <jas@extundo.com>
61121
61122         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
61123         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
61124
61125 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
61126
61127         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
61128         where no absolute path name can be longer than PATH_MAX.
61129
61130 2005-03-27  Jim Meyering  <jim@meyering.net>
61131
61132         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
61133
61134 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
61135
61136         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
61137         "one's complement" -> "ones' complement" in comment, as per Knuth.
61138         "value of type" -> "type or expression" in comment.
61139         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
61140
61141 2005-03-26  Jim Meyering  <jim@meyering.net>
61142
61143         Comment nits.
61144         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
61145         Correct typos: s/or/of/.
61146
61147 2005-03-26  Jim Meyering  <jim@meyering.net>
61148
61149         * modules/check-include-files: Move to ../ and rename to...
61150         * check-module: ...this.
61151
61152 2005-03-25  Jim Meyering  <jim@meyering.net>
61153
61154         * modules/xvasprintf (Files): Add xalloc.h.
61155
61156 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61157
61158         * modules/gettext (Files): config/config.rpath ->
61159         build-aux/config.rpath
61160         * modules/iconv (Files): Likewise.
61161         Problem reported by Oskar Liljeblad.
61162
61163 2005-03-23  Jim Meyering  <jim@meyering.net>
61164
61165         * modules/check-include-files: New script to check for
61166         missing dependencies, multiple includes, etc.
61167
61168         * modules/c-strtold (Depends-on): Add xalloc.
61169         * modules/c-strtod (Depends-on): Add xalloc.
61170         * modules/hash (Depends-on): Add xalloc.
61171         (Files): Remove lib/xalloc.h.
61172
61173         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
61174         * modules/userspec (Files): Add lib/inttostr.h.
61175
61176 2005-03-23  Jim Meyering  <jim@meyering.net>
61177
61178         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
61179
61180 2005-03-22  Jim Meyering  <jim@meyering.net>
61181
61182         * modules/stat-macros: New module.
61183         * modules/canonicalize, modules/euidaccess, modules/file-type,
61184         * modules/filemode, modules/lchown, modules/makepath,
61185         * modules/rmdir, modules/stat: Depend on new stat-macros module
61186         rather than listing lib/stat-macros.h manually.
61187         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
61188
61189 2005-03-22  Jim Meyering  <jim@meyering.net>
61190
61191         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
61192
61193 2005-03-22  Bruno Haible  <bruno@clisp.org>
61194
61195         * config/srclist.txt: Replace target directory 'config' with
61196         'build-aux'.
61197         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
61198         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
61199         ../build-aux/.
61200
61201 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
61202
61203         * modules/chdir-long (Depends-on): Add mempcpy.
61204
61205         * modules/acl, modules/backupfile, modules/c-strtod,
61206         modules/c-strtold, modules/canon-host, modules/canonicalize,
61207         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
61208         modules/exclude, modules/exitfail, modules/file-type,
61209         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
61210         modules/getdate, modules/getline, modules/getpagesize,
61211         modules/getpass, modules/getugroups, modules/group-member,
61212         modules/hard-locale, modules/hash, modules/human, modules/idcache,
61213         modules/inttostr, modules/long-options, modules/makepath,
61214         modules/md5, modules/memcasecmp, modules/memcoll,
61215         modules/modechange, modules/mountlist, modules/path-concat,
61216         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
61217         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
61218         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
61219         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
61220         modules/strftime, modules/strndup, modules/strverscmp,
61221         modules/timespec, modules/unlocked-io, modules/userspec,
61222         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
61223         modules/yesno:
61224         Remove lib_SOURCES line from Makefile.am section, as this is now
61225         done automatically by the corresponding Autoconf macro.
61226
61227 2005-03-21  Jim Meyering  <jim@meyering.net>
61228
61229         Changes imported from coreutils.
61230
61231         * lib/cycle-check.c: Don't include xalloc.h.
61232
61233         * lib/path-concat.c: Don't include assert.h.
61234         (path_concat): Remove assertion that would have triggered
61235         for ABASE starting with more than one slash.
61236         Reported by Andreas Schwab.
61237
61238         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
61239         properly when ABASE is an absolute file name.
61240         Correct the description of this function.
61241         Include <assert.h>.
61242         Add an assertion and a test driver.
61243         This fixes a bug introduced on 2004-07-02.
61244         Andreas Schwab reported the resulting failure of cp --parents:
61245         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
61246
61247 2005-03-21  Jim Meyering  <jim@meyering.net>
61248
61249         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
61250         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
61251
61252 2005-03-21  Jim Meyering  <jim@meyering.net>
61253         and  Paul Eggert  <eggert@cs.ucla.edu>
61254
61255         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
61256         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
61257         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
61258         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
61259         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
61260         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
61261         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
61262         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
61263         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
61264         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
61265         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
61266         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
61267         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
61268         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
61269         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
61270         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
61271         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
61272         for these modules.
61273
61274 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
61275
61276         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
61277         (which shouldn't happen), generate nothing instead of returning 0
61278         immediately, so that nstrftime (NULL, ...) doesn't return 0.
61279
61280 2005-03-16  Bruno Haible  <bruno@clisp.org>
61281
61282         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
61283         HAVE_LONGLONG_64BIT.
61284
61285 2005-03-16  Bruno Haible  <bruno@clisp.org>
61286
61287         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
61288         HAVE_LONGLONG_64BIT.
61289
61290 2005-03-16  Bruno Haible  <bruno@clisp.org>
61291
61292         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
61293         HAVE_LONGLONG_64BIT.
61294
61295 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
61296
61297         * lib/strftime.c (my_strftime): Prepend space to format so that we can
61298         reliably distinguish strftime failure from empty output on POSIX
61299         hosts.
61300
61301 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
61302
61303         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
61304         (iconv_string): Don't guess a size-zero buffer, as that might cause
61305         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
61306         result would be 'too large', where 'too large' is (heuristically)
61307         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
61308         overflow concerns.  This will prevent some unwanted malloc failures
61309         when the inputs are very large.
61310
61311 2005-03-15  Karl Berry  <karl@gnu.org>
61312
61313         * config/srclist.txt (config.rpath): from gettext.
61314         * config/config.rpath: update.
61315
61316 2005-03-15  Bruno Haible  <bruno@clisp.org>
61317
61318         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
61319         to 'negate'.
61320
61321         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
61322         variable.
61323
61324         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
61325         results.
61326
61327 2005-03-14  Simon Josefsson  <jas@extundo.com>
61328
61329         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
61330         <fx@gnu.org>.
61331
61332 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
61333
61334         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
61335         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
61336         intprops.h.
61337         * lib/strtol.c: Likewise.
61338
61339 2005-03-14  Jim Meyering  <jim@meyering.net>
61340
61341         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
61342         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
61343         to be nonzero so that we (and caller) can detect the difference
61344         between a valid zero-length expansion and an error return, even
61345         when the underlying strftime fails before writing anything into
61346         that location.
61347
61348 2005-03-14  Bruno Haible  <bruno@clisp.org>
61349
61350         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
61351         Update from GNU gettext 0.14.3.
61352
61353 2005-03-10  Jim Meyering  <jim@meyering.net>
61354
61355         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
61356
61357 2005-03-10  Jim Meyering  <jim@meyering.net>
61358
61359         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
61360         so that this module works on systems without fchdir.
61361
61362 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
61363
61364         Factor int-properties macros into a single file, except for
61365         glibc-related files.
61366         * lib/intprops.h: New file.
61367         * lib/getloadavg.c: Include it instead of limits.h.
61368         (INT_STRLEN_BOUND): Remove.
61369         * lib/human.c: Include intprops.h.
61370         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
61371         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
61372         302/1000.
61373         * lib/inttostr.h: Include intprops.h instead of limits.h.
61374         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
61375         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
61376         for consistency with intprops.h.
61377         (time_t_is_integer, twos_complement_arithmetic): Use them.
61378         * lib/sig2str.h: Include <signal.h>, intprops.h.
61379         (INT_STRLEN_BOUND): Remove.
61380         * lib/strftime.c (TYPE_SIGNED): Remove.
61381         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
61382         * lib/strtol.c: Adjust comments to match intprops.h.
61383         * lib/userspec.c: Include intprops.h.
61384         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
61385         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
61386         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
61387         instead of rolling our own expressions.
61388         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
61389
61390         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
61391         instead of int.
61392         (my_strftime): Do not mishandle years close to INT_MAX, by doing
61393         the right thing even if adding 1900 would overflow.  Similarly
61394         for tm_mon + 1 and tm_yday + 1.
61395         Make %Y always equivalent to %C%y, and similarly for %G and %g.
61396         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
61397         (DO_SIGNED_NUMBER): New macro.
61398         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
61399
61400 2005-03-07  Bruno Haible  <bruno@clisp.org>
61401
61402         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
61403
61404 2005-03-07  Bruno Haible  <bruno@clisp.org>
61405
61406         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
61407
61408 2005-03-04  Derek R. Price  <derek@ximbiot.com>
61409
61410         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
61411         (func_import): Only replace files via --import when they have actually
61412         changed.
61413
61414 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61415
61416         * m4/mmap-anon.m4: New file.
61417         * m4/pagealign_alloc.m4: New file.
61418
61419 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61420             Bruno Haible  <bruno@clisp.org>
61421
61422         * modules/pagealign_alloc: New file.
61423         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
61424
61425 2005-03-03  Derek R. Price  <derek@ximbiot.com>
61426             Bruno Haible  <bruno@clisp.org>
61427
61428         * lib/pagealign_alloc.h: New file.
61429         * lib/pagealign_alloc.c: New file.
61430
61431 2005-03-03  Bruno Haible  <bruno@clisp.org>
61432
61433         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
61434         Use an all-permissive copyright notice, recommended by RMS.
61435
61436 2005-03-02  Bruno Haible  <bruno@clisp.org>
61437
61438         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
61439         of AIX, the replacement has to be done only after <string.h> is
61440         included, therefore not in config.h. stpncpy.h does the replacement,
61441         and stpncpy.c uses it.
61442
61443 2005-03-02  Bruno Haible  <bruno@clisp.org>
61444
61445         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
61446         stpncpy.c uses it.
61447
61448 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61449
61450         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
61451         The workaround isn't strictly needed for POSIX conformance, and
61452         it's too much of a pain to configure and maintain.  We'll ask
61453         people to fix their kernels instead.
61454         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
61455         (NANOSLEEP_BUG_WORKAROUND): Remove.
61456         (xnanosleep): Remove the workaround.
61457
61458 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61459
61460         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
61461         Reported by Derek Price.
61462         (Include): Add "timespec.h".
61463
61464         * modules/xnanosleep (Depends-on): Remove gethrxtime.
61465
61466 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61467
61468         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
61469         to detect nanosleep bug.
61470
61471 2005-03-01  Bruno Haible  <bruno@clisp.org>
61472
61473         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
61474
61475 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61476
61477         * modules/gethrxtime: New file.
61478         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
61479         (Depends-on): Add gethrxtime.
61480         (configure.ac): Add gl_XNANOSLEEP.
61481         (Makefile.am): Remove lib_SOURCES line.
61482
61483 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61484
61485         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
61486         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
61487
61488 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61489
61490         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
61491         * lib/timespec.h (gettime): Return void, since it always
61492         succeeds now.  All uses changed.
61493         * lib/gettime.c (gettime) Likewise.
61494         [HAVE_NANOTIME]: Prefer nanotime.
61495         Assume gettimeofday succeeds, as POSIX requires.
61496         Assime time () succeeds, since other code already does.
61497         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
61498         (timespec_subtract): Remove.
61499         (NANOSLEEP_BUG_WORKAROUND): New constant.
61500         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
61501         things considerably.  Use it only on GNU/Linux hosts, since the
61502         workaround shouldn't be needed elsewhere.
61503
61504 2005-02-24  Bruno Haible  <bruno@clisp.org>
61505
61506         * modules/gettext (Files): Add m4/glibc2.m4.
61507
61508 2005-02-24  Bruno Haible  <bruno@clisp.org>
61509
61510         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
61511         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
61512         * m4/progtest.m4:
61513         Update from GNU gettext 0.14.2.
61514         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
61515
61516 2005-02-24  Bruno Haible  <bruno@clisp.org>
61517
61518         * lib/localcharset.c: Update from GNU gettext 0.14.2.
61519         * lib/config.charset: Update from GNU gettext 0.14.2.
61520
61521 2005-02-24  Bruno Haible  <bruno@clisp.org>
61522
61523         * lib/gettext.h: Update from GNU gettext 0.14.2.
61524
61525 2005-02-23  Simon Josefsson  <jas@extundo.com>
61526
61527         * m4/iconvme.m4: New file.
61528
61529 2005-02-23  Jim Meyering  <jim@meyering.net>
61530
61531         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
61532         change.
61533         Thanks to Bruno Haible for catching it.
61534
61535 2005-02-22  Simon Josefsson  <jas@extundo.com>
61536
61537         * modules/iconvme: New file.
61538
61539         * MODULES.html.sh: Add iconvme.
61540
61541 2005-02-22  Simon Josefsson  <jas@extundo.com>
61542
61543         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
61544
61545 2005-02-22  Simon Josefsson  <jas@extundo.com>
61546
61547         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
61548
61549 2005-02-22  Jim Meyering  <jim@meyering.net>
61550
61551         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
61552         s/ifndef/ifdef/.
61553
61554 2005-02-20  Neil Conway  <neilc@samurai.com>
61555
61556         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
61557         returned by OSX/Darwin if the specified buffer is not large
61558         enough for the hostname.
61559
61560 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61561
61562         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
61563         pass it to _help, otherwise the latter coredumps trying to
61564         dereference state.root_argp.
61565
61566 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61567
61568         * modules/chdir-long (Depends-on): Add memrchr.
61569         * modules/memrchr (Files): Add lib/memrchr.h.
61570         (Include): "memrchr.h".
61571
61572 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61573
61574         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
61575
61576 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61577
61578         * lib/memrchr.h: New file.
61579         * lib/chdir-long.c: Include it.
61580         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
61581         Don't bother including stddef.h.
61582
61583 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61584
61585         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
61586         inclusion.
61587         Include <sys/types.h>, for dev_t.
61588         (ME_DUMMY, ME_REMOTE): Move from here....
61589         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
61590         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
61591         Dmitry V. Levin.
61592         Include mountlist.h first, to test the interface.
61593
61594 2005-01-29  Bruno Haible  <bruno@clisp.org>
61595
61596         * lib/progname.c (program_name): Initialize.
61597         Needed when linking statically on MacOS X.
61598
61599 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61600
61601         Sync from coreutils.
61602         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
61603         (Depends-on): Add c-strtod.
61604         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
61605
61606 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61607
61608         Sync from coreutils.
61609         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
61610
61611         Remove files that are specific to coreutils.
61612         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
61613
61614 2005-01-28  Bruno Haible  <bruno@clisp.org>
61615
61616         * modules/javacomp: New file.
61617         * MODULES.html.sh (Java): Add javacomp.
61618
61619 2005-01-28  Bruno Haible  <bruno@clisp.org>
61620
61621         * m4/javacomp.m4: New file, from GNU gettext.
61622
61623 2005-01-28  Bruno Haible  <bruno@clisp.org>
61624
61625         * lib/javacomp.sh.in: New file, from GNU gettext.
61626         * lib/javacomp.h: New file, from GNU gettext.
61627         * lib/javacomp.c: New file, from GNU gettext.
61628
61629 2005-01-26  Simon Josefsson  <jas@extundo.com>
61630
61631         * lib/gai_strerror.c: Use GPL in header.
61632
61633 2005-01-26  Bruno Haible  <bruno@clisp.org>
61634
61635         * modules/javaexec: New file.
61636         * MODULES.html.sh (Java): Add javaexec.
61637
61638 2005-01-26  Bruno Haible  <bruno@clisp.org>
61639
61640         * m4/javaexec.m4: New file, from GNU gettext.
61641
61642 2005-01-26  Bruno Haible  <bruno@clisp.org>
61643
61644         * lib/javaexec.sh.in: New file, from GNU gettext.
61645         * lib/javaexec.h: New file, from GNU gettext.
61646         * lib/javaexec.c: New file, from GNU gettext.
61647
61648 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61649
61650         * modules/lchown (Depends-on): Remove lchown.h
61651
61652 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61653
61654         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
61655         must be defined if the header file was not found, in order
61656         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
61657
61658 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61659
61660         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
61661         initializers for struct pentry_state.
61662         (__argp_error): Check return value of __asprintf
61663         (__argp_failure): Translate error message
61664
61665         * lib/argp-parse.c: Removed braces around the expansion of N_()
61666
61667 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61668
61669         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
61670         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
61671         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
61672         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
61673         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
61674         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
61675         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
61676         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
61677         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
61678         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
61679         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
61680         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
61681         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
61682         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
61683         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
61684         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
61685         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
61686         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
61687         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
61688         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
61689         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
61690         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
61691         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
61692         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
61693         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
61694         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
61695         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
61696         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
61697         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
61698         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
61699         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
61700         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
61701         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
61702         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
61703         xstrtol.m4, xstrtoumax.m4, yesno.m4:
61704         Use an all-permissive copyright notice, recommended by RMS.
61705
61706 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
61707
61708         * modules/chdir-long (Depends-on): Remove mempcpy.
61709
61710 2005-01-21  Jim Meyering  <jim@meyering.net>
61711
61712         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
61713         same value as for Solaris 9.
61714
61715         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
61716         component length.  This included changing the parameter to be
61717         of type `char *' rather than `char const *'.
61718         * lib/chdir-long.h (chdir_long): Update prototype.
61719
61720         * lib/openat.c (fdopendir, fstatat): New functions.
61721         * lib/openat.h: Include headers required for use of DIR and struct
61722         stat.
61723         [AT_SYMLINK_NOFOLLOW]: Define.
61724         (fdopendir, fstatat): Add prototypes.
61725
61726 2005-01-21  Bruno Haible  <bruno@clisp.org>
61727
61728         * modules/classpath: New file.
61729         * MODULES.html.sh (Java): Add classpath.
61730
61731 2005-01-21  Bruno Haible  <bruno@clisp.org>
61732
61733         * lib/classpath.h: New file, from GNU gettext.
61734         * lib/classpath.c: New file, from GNU gettext.
61735
61736 2005-01-20  Simon Josefsson  <jas@extundo.com>
61737
61738         * modules/version-etc-fsf: New file.
61739
61740 2005-01-20  Simon Josefsson  <jas@extundo.com>
61741
61742         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
61743         * lib/version-etc.c: Remove version_etc_copyright.
61744         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
61745         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
61746
61747 2005-01-20  Simon Josefsson  <jas@extundo.com>
61748
61749         * lib/base64.h (isbase64): Add.
61750
61751         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
61752         using a unsigned prototype, don't inline.
61753         (base64_decode): Use it.
61754
61755 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61756
61757         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
61758         it.
61759
61760 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61761
61762         * lib/save-cwd.c (save_cwd): Remove code to support the case
61763         where fchdir is missing or flaky.
61764
61765 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61766
61767         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
61768
61769 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61770
61771         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
61772         AC_LIBSOURCES now does this.
61773         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
61774         with new ullong_max module.
61775
61776 2005-01-19  Bruno Haible  <bruno@clisp.org>
61777
61778         * modules/sh-quote: New file.
61779         * MODULES.html.sh (Executing programs): Add sh-quote.
61780
61781 2005-01-19  Bruno Haible  <bruno@clisp.org>
61782
61783         * lib/sh-quote.h: New file, from GNU gettext.
61784         * lib/sh-quote.c: New file, from GNU gettext.
61785
61786 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61787
61788         Merge from coreutils.
61789         * m4/ullong_max.m4: New file.
61790         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
61791         (gl_MACROS): Assume localeconv exists.
61792
61793 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61794
61795         Merge changes from coreutils, as described below in several
61796         changelogs dated today.
61797
61798         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
61799         (O_DIRECTORY): Remove; not needed here, since "." must be
61800         a directory.  All uses removed.
61801         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
61802         universal on Suns, and we also need to test for IRIX.
61803         Revamp code to use 'if' rather than '#if'.
61804         Avoid unnecessary comparison of cwd->desc to 0.
61805
61806         * lib/utimens.c (futimens): Robustify the previous patch, by checking
61807         for known valid error numbers rather than observed invalid ones.
61808
61809 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61810
61811         * modules/ullong_max: New file.
61812
61813         * modules/chdir-long, modules/openat: New files.
61814         * modules/save-cwd (Depends-on): Depend on chdir-long.
61815         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
61816
61817 2005-01-18  Jim Meyering  <jim@meyering.net>
61818
61819         Merge from coreutils.
61820         * m4/chdir-long.m4, m4/openat.m4: New files.
61821         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
61822         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
61823         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
61824         is sane and DOES follow symlinks.  Besides, testing 20 different
61825         systems found no broken chown implementations.
61826         Prompted by a change in rsync's copy of this macro.
61827         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
61828
61829         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
61830
61831         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
61832         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
61833         NULL-means-set-to-current-time semantics.
61834         Remove temporary file immediately, rather than waiting
61835         for configure's at-exit trap code to do it.
61836
61837 2005-01-18  Jim Meyering  <jim@meyering.net>
61838
61839         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61840
61841         * lib/utimens.c (futimens): Account for the fact that futimes
61842         can also fail with errno == ENOSYS or errno == ENOENT.
61843         Patch from Dmitry V. Levin.
61844
61845         Change the name of the robust chdir function from chdir to chdir_long.
61846         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
61847         (restore_cwd): Use chdir_long, not chdir.
61848         * lib/chdir-long.c: Renamed from chdir.c.
61849         * lib/chdir-long.h: Renamed from chdir.h.
61850         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
61851         Hurd.
61852
61853 2005-01-18  Bruno Haible  <bruno@clisp.org>
61854
61855         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
61856         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
61857         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
61858         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
61859         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
61860         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
61861         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
61862         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
61863         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
61864         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
61865         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
61866         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
61867         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
61868         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
61869         Use an all-permissive copyright notice, recommended by RMS.
61870
61871 2005-01-18  Bob Proulx  <bob@proulx.com>
61872
61873         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
61874         simplify offsetof() macro construct to avoid compile failure with
61875         native HP-UX 11.0 ANSI C compiler.
61876
61877 2005-01-17  Bruno Haible  <bruno@clisp.org>
61878
61879         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
61880         redundant because stpncpy.m4 takes care of it.
61881
61882 2005-01-17  Bruno Haible  <bruno@clisp.org>
61883
61884         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
61885
61886 2005-01-17  Bruno Haible  <bruno@clisp.org>
61887
61888         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
61889         used.
61890
61891 2005-01-17  Bruno Haible  <bruno@clisp.org>
61892
61893         * lib/fwriteerror.h (fwriteerror): Change specification to include
61894         fclose.
61895         * lib/fwriteerror.c: Include <stdbool.h>.
61896         (fwriteerror): At the end, close the file stream. Record whether
61897         stdout was already closed.
61898
61899 2005-01-17  Bruno Haible  <bruno@clisp.org>
61900
61901         * lib/execute.c (environ): Declare if needed.
61902         * lib/pipe.c (environ): Likewise.
61903         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
61904
61905 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61906
61907         * modules/argp: Depend on vsnprintf
61908
61909 2005-01-10  Jim Meyering  <jim@meyering.net>
61910
61911         * modules/closeout (Depends-on): Add atexit.
61912
61913 2005-01-06  Bruno Haible  <bruno@clisp.org>
61914
61915         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
61916
61917 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61918
61919         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
61920         definitions to be after all include files, to avoid collisions.
61921         Problem reported by Bob Proulx.
61922
61923 2005-01-04  Jim Meyering  <jim@meyering.net>
61924
61925         Changes imported from coreutils.
61926         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
61927         as the mkstemp template, use a temporary directory and an
61928         8.3-friendly template to avoid trouble on systems like DJGPP.
61929         Reported by Juan M. Guerrero via Stepan Kasal.
61930         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
61931         close. Remove the temporary directory right away, rather than waiting
61932         for configure's at-exit trap code to do it.
61933         Suggestion from Stepan Kasal.
61934
61935 2005-01-01  Simon Josefsson  <jas@extundo.com>
61936
61937         * gnulib-tool: Print #include directives when --import'ing.
61938
61939 2004-12-28  Simon Josefsson  <jas@extundo.com>
61940
61941         * tests/test-base64.c: Include required header files.  Remove
61942         unused variables.
61943
61944 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61945
61946         * modules/error (Depends-on): Remove gettext.
61947
61948 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61949
61950         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
61951         not needed.  This removes a dependency on the gettext module.
61952         [defined _LIBC]: Do not include <libintl.h>; not needed.
61953
61954 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61955
61956         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
61957         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
61958
61959 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61960
61961         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
61962         HAVE_DECL_STRTOLD.
61963
61964 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61965
61966         * modules/getdate (Depends-on): Remove alloca-opt.
61967
61968 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61969
61970         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
61971
61972 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61973
61974         * lib/argp-parse.c: Include <stddef.h>.
61975         (alignof, alignto): New macros.
61976         (parser_init): Don't assume that void * is aligned sufficiently
61977         for struct option.
61978
61979         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
61980         need to extend the stack.
61981         (YYINITDEPTH): New macro, so that the initial stack isn't overly
61982         large.
61983
61984 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61985
61986         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
61987
61988 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61989
61990         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
61991         (2004-10-24) change.  Apparently this was a false alarm.
61992
61993         * modules/getdate: Depend on alloca-opt, not alloca.
61994
61995 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61996
61997         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
61998         Remove now-obsolete comment about AIX.
61999         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
62000         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
62001         (YYMAXDEPTH): New macro.
62002
62003 2004-12-18  Simon Josefsson  <jas@extundo.com>
62004
62005         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
62006
62007 2004-12-18  Bruno Haible  <bruno@clisp.org>
62008
62009         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
62010
62011 2004-12-18  Bruno Haible  <bruno@clisp.org>
62012
62013         * lib/fatal-signal.c (fatal_signals): Make non-const.
62014         (init_fatal_signals): New function.
62015         (uninstall_handlers, install_handlers): Ignore signals that were set to
62016         SIG_IGN.
62017         (at_fatal_signal): Call init_fatal_signals.
62018         (init_fatal_signal_set): Likewise. Ignore signals that were set to
62019         SIG_IGN.
62020         Reported by Paul Eggert.
62021
62022 2004-12-18  Bruno Haible  <bruno@clisp.org>
62023
62024         * doc/alloca.texi: New file.
62025         * doc/alloca-opt.texi: New file.
62026
62027 2004-12-17  Jim Meyering  <jim@meyering.net>
62028
62029         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
62030         Otherwise, install-sh could exit with improper exit status when
62031         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
62032
62033 2004-12-16  Simon Josefsson  <jas@extundo.com>
62034
62035         * tests/test-base64.c: Add license.
62036
62037 2004-12-15  Stepan Kasal  <address@hidden>
62038
62039         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
62040
62041 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
62042
62043         * modules/getcwd (Files): Add m4/d-ino.m4.
62044         Suggested by Mark D. Baushke.
62045
62046 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
62047
62048         * lib/getdate.y (textint): New member "negative".
62049         (time_zone_hhmm): New function.
62050         Expect 14 shift-reduce conflicts, not 13.
62051         (o_colon_minutes): New rule.
62052         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
62053         (yylex): Set the "negative" member of signed numbers.
62054
62055 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
62056
62057         * doc/getdate.texi (Time of day items, Time zone items):
62058         Describe new formats +00:00, UTC+00:00.
62059
62060 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62061
62062         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
62063         spurious "-l"s.  Problem reported by Stepan Kasal.
62064
62065 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
62066
62067         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
62068         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
62069
62070 2004-12-04  Simon Josefsson  <jas@extundo.com>
62071
62072         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
62073         Vandoorselaere <yoann@prelude-ids.org>.
62074
62075 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
62076
62077         Changes imported from coreutils.
62078         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
62079         exist.
62080         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
62081
62082 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
62083
62084         Changes imported from coreutils.
62085         * lib/hard-locale.c: Assume <locale.h> exists.
62086         Include "strdup.h".
62087         (GLIBC_VERSION): New macro.
62088         (hard_locale): Assume setlocale exists.
62089         Rewrite to avoid #ifdef.
62090         Use strdup rather than malloc + strcpy.
62091         * lib/human.c: Assume <locale.h> exists.
62092         (human_readable): Assume localeconv exists.
62093
62094 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
62095
62096         * modules/hard-locale (Depends-on): Add strdup.
62097
62098 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
62099
62100         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
62101         convert T2, not T.  (Imported from libc.)
62102
62103 2004-11-30  Simon Josefsson  <jas@extundo.com>
62104
62105         * modules/restrict (License): Change to LGPL.
62106
62107 2004-11-30  Simon Josefsson  <jas@extundo.com>
62108
62109         * m4/restrict.m4: Add copyright and copying conditions.
62110
62111 2004-11-30  Simon Josefsson  <jas@extundo.com>
62112
62113         * m4/base64.m4: New file.
62114
62115 2004-11-30  Simon Josefsson  <jas@extundo.com>
62116
62117         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
62118         base64.
62119
62120         * tests/test-base64.c: New file.
62121
62122         * modules/base64: New file.
62123
62124 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
62125
62126         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
62127         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
62128
62129         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
62130
62131 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
62132
62133         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
62134         (__getcwd.c): Don't restore errno; glibc doesn't.
62135         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
62136         first, falling back to our code only if its results look suspicious.
62137         Ensure that the resulting buffer is only as large as necessary.
62138
62139         * lib/readutmp.c: Include readutmp.h first.
62140         Include <errno.h>, since readutmp.h no longer does that.
62141         * lib/readutmp.h: Don't include <errno.h>,
62142         <sys/param.h>, <time.h>; not needed to establish interface.
62143         (errno): Remove decl.
62144         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
62145         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
62146         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
62147
62148 2004-11-28  Simon Josefsson  <jas@extundo.com>
62149
62150         * lib/base64.h, base64.c: New file.
62151
62152 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62153
62154         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
62155
62156 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62157
62158         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
62159         (Depends-on): Remove pathmax, same.  Add mempcpy.
62160         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
62161         (Makefile.am): Append getcwd.h to lib_SOURCES.
62162         (Include): Add getcwd.h.
62163         (Maintainer): Change from Jim Meyering to "all, glibc",
62164         since getdate now uses intended-for-glibc code.
62165         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
62166         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
62167
62168 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62169
62170         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
62171         HP's ANSI C compiler.
62172         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
62173         Declaring int functions causes warnings on some modern systems and
62174         shouldn't be needed to compile on ancient ones.
62175         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
62176         defined.
62177
62178         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
62179         with the following changes.
62180         (__set_errno): Parenthesize properly.
62181         Include <stdbool.h>.
62182         (MIN, MAX, MATCHING_INO): New macros.
62183         (__getcwd): Define with prototype, not K&R form.
62184         Use heuristics to allocate default buffer on stack if possible.
62185         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
62186         behavior, and to avoid the PATH_MAX limit when computing
62187         ../../../../...
62188         Use MATCHING_INO to compare inode number to file.
62189         Check for arithmetic overflow in size calculations.
62190         Fix bug in reallocation of dot array that caused getcwd to fail
62191         on directories nested deeper than 75.
62192         Be more careful about saving errno on error.
62193         Do not use realloc; use only free+malloc, as this is a bit
62194         more flexible and avoids a needless copy operation.
62195         Do not inspect st_dev and st_ino for symbolic links; POSIX
62196         doesn't specify the latter.
62197         Check for closedir errors.
62198         Avoid needless casts.
62199         Use "#ifdef weak_alias" around weak_alias, to be like other
62200         glibc code.
62201         The following changes to getcwd.c have effect only when used in
62202         gnulib; they have no effect inside glibc proper.
62203         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
62204         as alloca isn't used.
62205         (alloca, __alloca): Likewise.
62206         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
62207         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62208         unconditionally, as gnulib assumes C89 or better.
62209         Do not include <sys/param.h>.
62210         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
62211         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
62212         better.
62213         (NULL) [!defined NULL]: Remove; we assume C89 or better.
62214         Include <dirent.h> in a way that is compatible with modern Autoconf.
62215         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
62216         New macros, if not already defined.
62217         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
62218         Use "_LIBC", not "defined _LIBC", for consistency.
62219         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
62220         a mempcpy module.
62221         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
62222         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
62223         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
62224         credit only to Jim Meyering and adjust the copyright dates.
62225         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
62226         <stdlib.h>, <unistd.h>, "pathmax.h".
62227         Instead, include "xgetcwd.h" (first) and "getcwd.h".
62228         (INITIAL_BUFFER_SIZE): Remove.
62229         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
62230
62231 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62232
62233         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
62234         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
62235         Use the _ONCE methods, for efficiency.
62236         Check for fcntl.h.  In test program, include <errno.h>
62237         and <fcntl.h> if available.  Remove old K&R cruft from
62238         test program.  Check for common errors in GNU/Linux,
62239         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
62240         don't do AC_LIBOBJ, as that's getcwd.m4's job.
62241         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
62242         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
62243         name accordingly.
62244         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
62245         accommodate new getcwd.c.
62246         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
62247         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
62248         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
62249         that's all we need now.
62250
62251 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62252
62253         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
62254         argp-parse.c depends on getopt internals, that means we should
62255         always use our getopt, to be on the safe side.
62256         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
62257         order not to spoil the result of an eventual previous invocation
62258         of gl_GETOPT_SUBSTITUTE.
62259
62260 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62261
62262         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
62263         redefinition warnings. To avoid them, include the defines
62264         in `#if !defined __need_getopt ... #endif'. The only place
62265         where __getopt_argv_const is used is in definitions
62266         of getopt_long and getopt_long_only below, which are as well
62267         protected by `#ifndef __need_getopt'.
62268         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
62269         __need_getopt after including <stdio.h> and <unistd.h> These
62270         headers might have defined it.
62271
62272 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
62273
62274         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
62275
62276 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
62277
62278         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
62279         (futimens): New function, which uses futimes if available.
62280         (futimens, utimens): Support timespec==NULL, with same semantics
62281         as utime and utimens.
62282         * lib/utimens.h (futimens): New decl.
62283
62284 2004-11-23  Jim Meyering  <jim@meyering.net>
62285
62286         * lib/getopt_.h: Remove trailing blanks.
62287
62288 2004-11-23  Jim Meyering  <jim@meyering.net>
62289
62290         * lib/__fpending.c: Add comment.
62291
62292 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
62293
62294         * modules/canonicalize (Depends-on): Add xreadlink.
62295         Problem reported by James Youngman.
62296
62297 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62298
62299         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
62300         New macros.
62301         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
62302         optopt): Use them instead of invoking ## directly; otherwise, the
62303         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
62304
62305 2004-11-19  Bruno Haible  <bruno@clisp.org>
62306
62307         * lib/strtok_r.c: Move comments from here...
62308         * lib/strtok_r.h: ... to here.
62309
62310 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62311
62312         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
62313         implementations that mishandle size_t overflow.
62314
62315 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62316
62317         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
62318         might fail.  Problem reported by Yoann Vandoorselaere.
62319         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
62320         implementations that mishandle size_t overflow.
62321
62322 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62323
62324         * modules/canon-host (Depends-on): Add strdup.
62325
62326 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62327
62328         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
62329
62330 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62331
62332         * lib/canon-host.c: Include "strdup.h".
62333         (canon_host): Use getaddrinfo if available, so that IPv6 works.
62334         Use strdup instead of malloc/strcpy to duplicate strings.
62335
62336         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
62337         (human_space_before_unit): New constant.
62338         * lib/human.c (human_readable): Support it.
62339
62340         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
62341         (xgetcwd): Set errno correctly when failing.
62342         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
62343         the failure is actually due to a PATH_MAX problem.
62344
62345         Further getopt changes to make it more likely that glibc will
62346         buy the changes back.
62347         * lib/getopt.c (POSIXLY_CORRECT): New constant.
62348         (getopt): Use it, so to preserve glibc semantic
62349         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
62350         when compiling for libc.
62351         * lib/getopt_.h (__getopt_argv_const): Bring it back.
62352         (getopt_long, getopt_long_only): Use it.
62353
62354         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
62355         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
62356         (getopt): Argv is now char * const *, as per standard.
62357         (_getopt_internal_r, _getopt_internal): Argv is now char **,
62358         not char *__getopt_argv_const *.
62359         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
62360         _getopt_long_only_r): Likewise.
62361         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
62362         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
62363         _getopt_long_r, _getopt_long_only_r): Likewise.
62364         * lib/getopt_.h (__getopt_argv_const): Remove.
62365         (getopt): Argv is now char * const *, as per standard.
62366
62367         * lib/getdate.y (tORDINAL): New token.
62368         (day, relunit): Allow it for relative times.
62369         (relative_time_table): Use tORDINAL for ordinals.
62370
62371 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62372
62373         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
62374         Document that "second" isn't allowed as an ordinal number.
62375
62376 2004-11-16  Jim Meyering  <jim@meyering.net>
62377
62378         * modules/closeout (Depends-on): Add fpending.
62379
62380 2004-11-15  Jim Meyering  <jim@meyering.net>
62381
62382         * lib/closeout.c: Include "__fpending.h" once again.
62383         Include <stdbool.h>.
62384         (close_stdout): Don't fail just because stdout was closed initially,
62385         since some programs don't write to stdout in the normal course of
62386         operation (other than --version and --help), and we don't want this
62387         function to make e.g. `touch file >&-' fail.
62388         But do fail if it was closed and someone has tried to write to it.
62389         E.g., `printf foo >&-' must fail.
62390
62391 2004-11-13  Jim Meyering  <jim@meyering.net>
62392
62393         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
62394
62395 2004-11-12  Simon Josefsson  <jas@extundo.com>
62396
62397         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
62398         small doc fix is still pending.
62399
62400 2004-11-11  Simon Josefsson  <jas@extundo.com>
62401
62402         * modules/strtok_r: New file.
62403
62404         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62405         strtok_r.
62406
62407 2004-11-11  Simon Josefsson  <jas@extundo.com>
62408
62409         * m4/strtok_r.m4: New file.
62410
62411         * m4/getopt.m4: Replace opterr.
62412
62413 2004-11-11  Simon Josefsson  <jas@extundo.com>
62414
62415         * lib/strtok_r.h, strtok_r.c: New file.
62416
62417 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62418
62419         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
62420         of replacing opterr, getopt, etc.  This should handle the
62421         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
62422
62423 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62424
62425         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
62426         we can stop lying to compilers about the constness of argv when we
62427         are compiled outside glibc.
62428         (getopt, getopt_long, getopt_long_only): Use it.
62429         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
62430         _getopt_internal, getopt): Likewise.
62431         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
62432         _getopt_long_only_r): Likewise.
62433         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
62434         _getopt_long_r, _getopt_long_only_r): Likewise.
62435
62436         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
62437         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
62438         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
62439         the other external symbols.
62440         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
62441         declaration, since the above renaming now works around collisions.
62442
62443 2004-11-11  Jim Meyering  <jim@meyering.net>
62444
62445         * lib/linebreak.c: Remove trailing blanks.
62446         * lib/alloca_.h: Likewise.
62447         * lib/acosl.c: Likewise.
62448         * lib/euidaccess.c: Likewise.
62449         * lib/allocsa.h: Likewise.
62450
62451 2004-11-10  Simon Josefsson  <jas@extundo.com>
62452
62453         * m4/getaddrinfo.m4: New file.
62454
62455 2004-11-10  Simon Josefsson  <jas@extundo.com>
62456
62457         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
62458
62459 2004-11-10  Simon Josefsson  <jas@extundo.com>
62460
62461         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62462         getaddrinfo.
62463
62464         * modules/getaddrinfo: New file.
62465
62466 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62467
62468         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
62469
62470 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62471
62472         * lib/mktime.c (SHR): New macro, which is a portable
62473         substitute for >> that should work even on Crays.
62474         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
62475         Problem reported by Mark D. Baushke in
62476         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
62477         * lib/getdate.y (SHR): Likewise.
62478         (tm_diff): Use it.
62479         * lib/strftime.c (SHR): Likewise.
62480         (tm_diff): Use it.
62481         * lib/quotearg.c (struct quoting_options): Use unsigned int for
62482         quote_these_too, so that right shifts are well defined.  All uses
62483         changed.
62484
62485 2004-11-10  Jim Meyering  <jim@meyering.net>
62486
62487         Ensure that no close failure goes unreported.
62488         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
62489         return early when it seems there's nothing to flush.
62490         Don't include __fpending.h.
62491
62492 2004-11-10  Jim Meyering  <jim@meyering.net>
62493
62494         * modules/closeout (Depends-on): Remove fpending.
62495
62496 2004-11-10  Jim Meyering  <jim@meyering.net>
62497
62498         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
62499
62500 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62501
62502         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
62503         gl_FUNC_STRFTIME.
62504         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
62505         and AC_REQUIRE when possible, to avoid duplicate checks.
62506         Check for <wchar.h>.
62507
62508 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62509
62510         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
62511
62512 2004-11-09  Bruno Haible  <bruno@clisp.org>
62513
62514         * m4/sockpfaf.m4: New file.
62515
62516 2004-11-05  Bruno Haible  <bruno@clisp.org>
62517
62518         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
62519         Reported by Mark D. Baushke <mdb@cvshome.org>.
62520
62521 2004-11-04  Bruno Haible  <bruno@clisp.org>
62522
62523         2004-09-11  Bruno Haible  <bruno@clisp.org>
62524                 * allocsa.valgrind: New file.
62525         2004-02-06  Bruno Haible  <bruno@clisp.org>
62526                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
62527                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
62528                 Reported by Christopher Seip <chris.seip@hp.com>.
62529
62530 2004-11-04  Bruno Haible  <bruno@clisp.org>
62531
62532         * modules/allocsa (Files): Add lib/allocsa.valgrind.
62533         (Makefile.am): Distribute it.
62534
62535 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
62538         with errno == ERANGE if the buffer is too small.
62539         Problem reported by Mark D. Baushke.
62540
62541 2004-11-03  Albert Chin  <china@thewrittenword.com>
62542             Paul Eggert  <eggert@cs.ucla.edu>
62543
62544         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
62545         equivalent, substitute $ac_type for equivalent type rather than
62546         blindly using uint32_t *always* which won't work if uint32_t is not
62547         available.  Define _UINT32_T to work around typedef of uint32_t if
62548         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
62549         2.5.1.
62550
62551 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62552
62553         * m4/jm-macros.m4: Sync from coreutils.
62554         (gl_MACROS): Check for mbrlen, for pathchk.
62555         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
62556
62557 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62558
62559         * lib/xreadlink.c (MAXSIZE): New macro.
62560         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
62561         size does not exceed MAXSIZE.  Avoid cast.
62562         As suggested by Mark D. Baushke in
62563         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
62564         if readlink fails with buffer size just under MAXSIZE, try again
62565         with MAXSIZE.
62566
62567 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62568
62569         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
62570
62571 2004-11-02  Derek R. Price  <derek@ximbiot.com>
62572         and  Paul Eggert  <eggert@cs.ucla.edu>
62573
62574         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
62575         (get_date): Overparenthesize to avoid GCC warning.
62576
62577 2004-11-02  Bruno Haible  <bruno@clisp.org>
62578
62579         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
62580         returns void.
62581
62582 2004-11-02  Bruno Haible  <bruno@clisp.org>
62583
62584         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
62585         function returns void.
62586
62587 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62588
62589         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
62590         fflush_unlocked, flockfile, funlockfile, funlockfile,
62591         fputs_unlocked, putc_unlocked.
62592
62593 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62594
62595         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62596         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
62597         already declared.
62598
62599 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62600
62601         * modules/getdate (Files): Add doc/getdate.texi.
62602         (Depends-on): Add setenv, xalloc.
62603
62604 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62605
62606         * lib/getdate.y: Add support for TZ="foo" within a date string.
62607         Fix some bugs near time_t boundaries.  Reject dates with
62608         out-of-range components, e.g., "Sept 31".
62609         Include <stdlib.h>, "setenv.h", "xalloc.h".
62610         (ISDIGIT_LOCALE): Remove; unused.
62611         Note that the TZ and time functions used here are not reentrant.
62612         (mktime_ok, get_tz): New functions.
62613         (TZBUFSIZE): New constant.
62614         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
62615         This requires that we sometimes generate our own TZ="XXX..." setting.
62616
62617 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62618
62619         * doc/getdate.texi: New file, from coreutils with modifications for
62620         the new TZ parsing.
62621
62622 2004-10-27  Derek R. Price  <derek@ximbiot.com>
62623
62624         * lib/mktime.c (not_equal_tm): Remove redundant check.
62625
62626 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62627
62628         * modules/regex (lib_SOURCES): Add regex.c.
62629         Reported by James Youngman in
62630         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
62631
62632 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62633
62634         * lib/getdate.y: Use Bison 1.875 features, and some minor
62635         code cleanups.  This change does not affect semantics.
62636         Don't include <stdlib.h>; no longer needed.
62637         Don't include unlocked-io.h; only the "#if TEST" code uses
62638         stdio, and performance isn't crucial there.
62639         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
62640         Bison 1.875 features as described below.
62641         All uses of "PC." replaced by "pc->".
62642         (YYSTYPE): Add a forward declaration.
62643         (yylex, yyerror): Use full prototypes in forward decls.
62644         Use "%pure-parser" rather than obsolescent "%pure_parser".
62645         Use %parse-param and %lex-param instead of obsolescent
62646         YYPARSE_PARAM and YYLEX_PARAM.
62647         (meridian_table, month_and_day_table, time_units_table,
62648         relative_time_table, time_zone_table, military_table,
62649         lookup_zone, lookup_word, get_date):
62650         Use NULL instead of 0 where appropriate.
62651         (to_hour): Avoid abort (), to avoid a dependency on
62652         stdlib.h.
62653         (yyerror, yylex): Now accepts parser_control * arg.
62654         (main) [TEST]: Use '\0' rather than 0 for char.
62655
62656 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62657
62658         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
62659
62660 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62661
62662         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
62663         It's now the caller's responsibility to handle the case where
62664         !HAVE_GETPAGESIZE && !defined getpagesize.
62665
62666         * lib/mktime.c (leapyear): Arg is long int, not int.
62667
62668 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
62669
62670         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
62671
62672 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62673
62674         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
62675         missing.  Problem reported by James Youngman.
62676
62677 2004-10-16  Simon Josefsson  <jas@extundo.com>
62678
62679         * gnulib-tool: Fix comments.  Fix parse problem.
62680         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
62681
62682 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
62683
62684         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
62685         implementation of getopt_long.  Problem reported by Alexander Taler in:
62686         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
62687
62688 2004-10-15  Bruno Haible  <bruno@clisp.org>
62689
62690         * gnulib-tool: Untabify. Initialize supplied_libname.
62691         (func_usage): More homogenous output.
62692         (func_modules_transitive_closure, func_modules_to_filelist,
62693         func_emit_lib_Makefile_am): New functions.
62694         (func_import): New function, extracted from big case statement. Use
62695         func_get_license, func_modules_transitive_closure,
62696         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
62697         opt_lgpl. Don't use test -a, as it's not portable.
62698         (func_create_testdir): Use func_modules_transitive_closure,
62699         func_modules_to_filelist, func_emit_lib_Makefile_am.
62700
62701 2004-10-15  Bruno Haible  <bruno@clisp.org>
62702
62703         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
62704
62705 2004-10-15  Bruno Haible  <bruno@clisp.org>
62706
62707         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
62708         the portions belonging to each module.
62709         Suggested by Derek Robert Price <derek@ximbiot.com>.
62710
62711 2004-10-12  Simon Josefsson  <jas@extundo.com>
62712
62713         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62714         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
62715         to real functions.
62716
62717 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62718
62719         * modules/vsnprintf: New file.
62720
62721 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62722
62723         * m4/vsnprintf.m4: New file.
62724
62725 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62726
62727         * lib/vsnprintf.h: New file.
62728         * lib/vsnprintf.c: New file.
62729
62730 2004-10-11  Bruno Haible  <bruno@clisp.org>
62731
62732         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
62733         vsnprintf.
62734
62735 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62736
62737         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
62738
62739 2004-10-07  Bruno Haible  <bruno@clisp.org>
62740
62741         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
62742         fits into the provided buffer.
62743
62744 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62745
62746         * lib/diacrit.c, diacrit.h: Add GPL notice.
62747
62748         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
62749         notice.
62750         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
62751         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
62752         This avoids a potential constant-folding bug.
62753
62754 2004-10-05  Bruno Haible  <bruno@clisp.org>
62755
62756         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
62757         for the declaration of strsep.
62758
62759 2004-10-05  Bruno Haible  <bruno@clisp.org>
62760
62761         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
62762
62763 2004-10-04  Simon Josefsson  <jas@extundo.com>
62764
62765         * modules/memmem: New file.
62766         * tests/test-memmem.c: New file.
62767         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
62768
62769 2004-10-04  Simon Josefsson  <jas@extundo.com>
62770
62771         * m4/memmem.m4: New file.
62772
62773 2004-10-04  Simon Josefsson  <jas@extundo.com>
62774
62775         * lib/memmem.h: New file.
62776         * lib/memmem.c: New file, taken from glibc.
62777
62778 2004-10-04  Simon Josefsson  <jas@extundo.com>
62779
62780         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
62781         '#ifdef USE_UNLOCKED_IO'.
62782
62783 2004-10-04  Simon Josefsson  <jas@extundo.com>
62784
62785         * config/srclist.txt: Add memmem from glibc.
62786
62787 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62788
62789         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
62790
62791         * modules/argmatch, modules/argp, modules/closeout, modules/error,
62792         modules/exclude, modules/getdate, modules/getline,
62793         modules/getndelim2, modules/getpass, modules/getpass-gnu,
62794         modules/getusershell, modules/linebuffer, modules/md5,
62795         modules/mountlist, modules/posixtm, modules/readtokens,
62796         modules/readutmp, modules/regex, modules/sha1,
62797         modules/version-etc, modules/yesno:
62798         Remove dependency on unlocked-io.
62799
62800 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62801
62802         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
62803
62804         * m4/unlocked-io.m4: Add copyright notice.
62805         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
62806
62807 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62808
62809         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
62810         * lib/xmalloc.c (xmemdup): Likewise.
62811         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
62812         XFREE): Remove these long-obsolescent macros.
62813         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
62814         * lib/xstrdup.c: Remove.
62815
62816         * lib/regex.c (re_comp): Cast gettext return value to char *,
62817         Problem reported by Martin Neitzel via Mark D. Baushke.
62818
62819 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62820
62821         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
62822         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
62823         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
62824         regex.c, sha1.c, version-etc.c, yesno.c:
62825         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
62826         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
62827         the includer's responsibility.
62828
62829         Sync from coreutils.
62830
62831         * lib/modechange.c (mode_compile): Don't decrement a pointer that
62832         points to the start of a string, as the C Standard says the
62833         resulting behavior is undefined.
62834
62835         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
62836         simple -> simple_backups, numbered_existing ->
62837         numbered_existing_backups, numbered -> numbered_backups
62838         to avoid shadowing problems.  All uses changed.
62839         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
62840         * lib/backupfile.c (check_extension, numbered_backup):
62841         Rename locals to avoid shadowing 'basename'.
62842         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
62843         once.
62844
62845         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
62846         * lib/.cvsignore: Add getopt.h.
62847
62848 2004-10-04  Bruno Haible  <bruno@clisp.org>
62849
62850         * modules/README: New file.
62851         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
62852         not a module.
62853
62854 2004-10-02  Jim Meyering  <jim@meyering.net>
62855
62856         * lib/dirfd.h, getpagesize.h: Add copyright notice.
62857
62858 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62859
62860         * modules/strsep: New file.
62861
62862 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62863
62864         * m4/strsep.m4: New file.
62865
62866 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62867
62868         * lib/strsep.h: New file.
62869         * lib/strsep.c: New file.
62870
62871 2004-10-01  Simon Josefsson  <jas@extundo.com>
62872
62873         * lib/snprintf.c (snprintf): Handle size==0.
62874
62875 2004-10-01  Simon Josefsson  <jas@extundo.com>
62876             Bruno Haible  <bruno@clisp.org>
62877
62878         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
62879         (snprintf): Declare 'args'.
62880
62881 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
62882
62883         * lib/snprintf.c: Remove comments as to why each header is needed.
62884
62885 2004-10-01  Bruno Haible  <bruno@clisp.org>
62886
62887         * MODULES.html.sh: Add strsep.
62888
62889 2004-09-30  Simon Josefsson  <jas@extundo.com>
62890
62891         * modules/snprintf: New file.
62892
62893 2004-09-30  Simon Josefsson  <jas@extundo.com>
62894
62895         * m4/snprintf.m4: New file.
62896
62897 2004-09-30  Simon Josefsson  <jas@extundo.com>
62898
62899         * lib/snprintf.h, lib/snprintf.c: New files.
62900
62901 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62902
62903         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
62904         (hol_entry_help): Never translate an empty string.
62905         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
62906         * lib/argp.h (OPTION_NO_TRANS): New option.
62907
62908 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62909
62910         * modules/argp (Maintainer): Replace Simon Josefsson
62911         by Sergey Poznyakoff.
62912
62913 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62914
62915         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
62916         changes merged back into glibc.
62917
62918 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62919
62920         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
62921
62922 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62923
62924         * lib/xvasprintf.c: Include xalloc.h.
62925         (xvasprintf): Use xalloc_die, not xmalloc_die.
62926
62927 2004-09-29  Bruno Haible  <bruno@clisp.org>
62928
62929         * modules/alloca-opt: New file, derived from modules/alloca.
62930         * modules/allocsa: Depend on alloca-opt instead of alloca.
62931         * modules/setenv: Likewise.
62932         * modules/vasnprintf: Likewise.
62933         * MODULES.html.sh: Add alloca-opt.
62934
62935 2004-09-28  Simon Josefsson  <jas@extundo.com>
62936
62937         * gnulib-tool: New parameter --lgpl, to asseert that modules are
62938         LGPL, and to replace license template from GPL to LGPL.
62939
62940 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62941
62942         * modules/dummy: Change license to LGPL.
62943
62944 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62945
62946         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
62947
62948 2004-09-24  Simon Josefsson  <jas@extundo.com>
62949
62950         * modules/minmax (License): Change from GPL to LGPL.
62951
62952 2004-09-23  Simon Josefsson  <jas@extundo.com>
62953
62954         * gnulib-tool (--import): Typo.
62955
62956 2004-09-23  Simon Josefsson  <jas@extundo.com>
62957
62958         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
62959
62960 2004-09-22  Bruno Haible  <bruno@clisp.org>
62961
62962         * modules/*: Add 'License' field.
62963         * gnulib-tool: Accept --extract-license option.
62964         (func_get_license): New function.
62965
62966 2004-09-21  Bruno Haible  <bruno@clisp.org>
62967
62968         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
62969         Reported by Simon Josefsson.
62970
62971 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62972
62973         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
62974         gl_AC_TYPE_LONG_LONG.
62975
62976 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62977
62978         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
62979
62980 2004-09-18  Simon Josefsson  <jas@extundo.com>
62981         and  Paul Eggert  <eggert@cs.ucla.edu>
62982
62983         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
62984         calls with autoreconf.  Define GL_LIB.
62985
62986 2004-09-14  Karl Berry  <karl@gnu.org>
62987
62988         * config/srclist.txt: unsync setenv.c, sigh.
62989
62990 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62991
62992         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
62993         Problem reported by Bruno Haible in:
62994         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
62995
62996 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62997
62998         * config/srclist.txt: Comment out argp-pvh.c.
62999
63000 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
63001
63002         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
63003         in case some system header has #define'd it.  Problem reported by
63004         Soeren D. Schulze in
63005         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
63006
63007 2004-09-09  Karl Berry  <karl@gnu.org>
63008
63009         * regex.[ch]: delete from the root.  These were supposed to be
63010                 synced with emacs cvs, but this has not happened for about
63011                 a year, and anyway nothing else uses emacs regex.[ch].
63012                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
63013                 lib/regex[.ch] is untouched.
63014
63015 2004-09-09  Bruno Haible  <bruno@clisp.org>
63016
63017         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
63018
63019 2004-09-09  Bruno Haible  <bruno@clisp.org>
63020
63021         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
63022         modifications.
63023         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
63024
63025 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
63026
63027         * modules/xvasprintf: New file.
63028         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
63029
63030 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
63031
63032         * lib/xvasprintf.h: New file.
63033         * lib/xvasprintf.c: New file.
63034         * lib/xasprintf.c: New file.
63035
63036 2004-09-08  Bruno Haible  <bruno@clisp.org>
63037
63038         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
63039
63040 2004-09-08  Bruno Haible  <bruno@clisp.org>
63041
63042         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
63043         length is > INT_MAX.
63044         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
63045         more.
63046
63047 2004-09-08  Bruno Haible  <bruno@clisp.org>
63048
63049         * lib/stdint_.h: New file, taken from GNU clisp.
63050
63051 2004-09-08  Bruno Haible  <bruno@clisp.org>
63052             Oskar Liljeblad  <oskar@osk.mine.nu>
63053
63054         * modules/stdint: New file.
63055         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
63056
63057 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63058
63059         Import from coreutils.
63060         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
63061         strings on unbounded length.  alloca's performance benefits aren't
63062         that important here.
63063         (V_STRDUP): Remove.
63064         (parse_with_separator): New function, with most of the internals
63065         of the old parse_user_spec.  Allow user to omit both user and group,
63066         for compatibility with FreeBSD.
63067         Clone only the user name, not the entire spec.
63068         Do not set *uid, *gid unless entirely successful.
63069         Avoid memory leak in some failing cases.
63070         Fix regression for USER.GROUP reported by Dmitry V. Levin in
63071         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
63072         (parse_user_spec): Rewrite to use parse_with_separator.
63073
63074 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63075
63076         * modules/userspec: Don't depend on alloca.
63077
63078 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63079
63080         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
63081
63082 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63083
63084         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
63085         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
63086         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
63087
63088 2004-08-16  Simon Josefsson  <jas@extundo.com>
63089
63090         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
63091         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
63092         Add --dry-run for --import.
63093         Let user provided command line parameters override configure.ac
63094         settings.
63095
63096 2004-08-12  Simon Josefsson  <jas@extundo.com>
63097
63098         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
63099         as discussed with Paul Eggert in threads rooted at
63100         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
63101         and
63102         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
63103         Before, the test was empty, and relied on ELIDE_CODE in source
63104         code.)
63105         (gl_PREREQ_GETOPT): New macro.
63106         (gl_GETOPT): Use them.
63107
63108 2004-08-12  Simon Josefsson  <jas@extundo.com>
63109
63110         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
63111         * lib/getopt_.h: Renamed from getopt.h.
63112
63113 2004-08-12  Simon Josefsson  <jas@extundo.com>
63114
63115         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
63116         Change default library name from libfoo to libgnu.
63117         Now, if you have a configure.ac that says:
63118                 gl_SOURCE_BASE(gl)
63119                 gl_M4_BASE(gl/m4)
63120                 gl_MODULES(error getopt etcetera)
63121                 gl_INIT
63122         you can import all you need by running:
63123                 ../gnulib/gnulib-tool --import
63124
63125         * modules/getopt (Files): Rename getopt.h to getopt_.h.
63126         (Makefile.am): Rewrite, use logic from argz.
63127         (Include): Use <getopt.h> instead of "getopt.h".
63128
63129 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
63130
63131         * modules/argp (Files): Add m4/unlocked-io.m4.
63132         (Depends-on): Add extensions.
63133
63134 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
63135
63136         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
63137         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
63138         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
63139         Check for program_invocation_name, program_invocation_short_name,
63140         flockfile, funlockfile, features.h, _getopt_long_only_r.
63141
63142 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
63143
63144         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
63145         its complicated substitute.
63146         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
63147         and program_invocation_name.
63148         (__argp_basename) [!_LIBC]: Remove; the only use was
63149         replaced by its body.
63150         (__argp_short_program_name): Change condition from
63151         !defined __argp_short_program_name to
63152         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
63153         to match argp-namefrob.h.
63154         (__argp_failure): Don't assume strerror_r returns char *.
63155         * lib/argp-parse.c (N_): Define unconditionally.
63156         (argp_default_options): Fill out initializers with 0 to avoid
63157         gcc warnings.
63158
63159 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
63160
63161         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
63162         getopt1.c.
63163
63164 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63165
63166         Merge from coreutils.
63167
63168         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
63169
63170         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
63171         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
63172
63173 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63174
63175         Merge from coreutils.
63176
63177         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
63178         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
63179         for Reliant Unix 5.43.
63180
63181         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
63182         (union fooround): Use uintmax_t, not long int.
63183         The rest is a merge from libc:
63184         [defined _LIBC]: Include <shlib-compat.h>.
63185         (_obstack) [defined _LIBC]: Remove after 2.3.4.
63186
63187         * lib/settime.c (settime): Recode to avoid warning with
63188         Sun Forte C 6U2.
63189
63190         * lib/strverscmp.c: Convert to UTF-8.
63191
63192 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63193
63194         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
63195         m4/uintmax_t.m4.
63196
63197 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63198
63199         * modules/xalloc-die: New file.
63200         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
63201
63202         * modules/md5 (Files): Add m4/uint32_t.m4.
63203         * modules/sha1: Renamed from modules/sha.
63204         (Files):
63205         Rename lib/sha.h to lib/sha1.h.
63206         Rename lib/sha.c to lib/sha1.c.
63207         Rename m4/sha.m4 to m4/sha1.m4.
63208         (lib_SOURCES): Likewise.
63209         (configure.ac): Rename gl_SHA to gl_SHA1.
63210         (Include): sha.h -> sha1.h.
63211
63212 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63213
63214         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
63215         * m4/sha1.m4: Renamed from sha.m4.
63216         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
63217
63218 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63219
63220         * lib/obstack.h (obstack_empty_p):
63221         Don't assume that chunk->contents is suitably aligned.
63222         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
63223         Likewise. Problem reported by Benno in
63224         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
63225
63226         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
63227         readable.  This could be improved further but it'd take some work.
63228
63229 2004-08-08  Simon Josefsson  <jas@extundo.com>
63230
63231         * modules/xgethostname (Depends-on): Remove exit and error (not
63232         used).
63233
63234         * modules/getpass-gnu: Add getpass.h.
63235         (Depends-on): Add stdbool.
63236         * modules/getpass: Add getpass.h.
63237
63238 2004-08-08  Simon Josefsson  <jas@extundo.com>
63239
63240         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
63241         Check getpass declaration.
63242
63243 2004-08-08  Simon Josefsson  <jas@extundo.com>
63244
63245         * lib/xgethostname.c: Don't include error.h (not used).
63246
63247         * lib/getpass.h: Add.
63248         * lib/getpass.c: Include getpass.h first.
63249
63250 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
63251
63252         * lib/xalloc-die.c: New file.
63253         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
63254         All uses removed.
63255         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
63256         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
63257         xalloc-die.c.
63258         (_, N_, xalloc_die): Move to xalloc-die.c.
63259         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
63260         so that we needn't mess with xalloc_msg_memory_exhausted.
63261
63262         * lib/sha1.h: Renamed from sha.h.
63263         (SHA1_H): Renamed from _SHA_H.
63264         (sha1_ctx): Renamed from sha_ctx.
63265         (sha1_init_ctx): Renamed from sha_init_ctx.
63266         (sha1_process_block): Renamed from sha_process_block.
63267         (sha1_process_bytes): Renamed from sha_process_bytes.
63268         (sha1_finish_ctx): Renamed from sha_finish_ctx.
63269         (sha1_read_ctx): Renamed from sha_read_ctx.
63270         (sha1_stream): Renamed from sha_stream.
63271         (sha1_buffer): Renamed from sha_buffer.
63272         * lib/sha1.c: Likewise; renamed from sha.c.
63273         Do not include <sys/types.h>.
63274         Include <stddef.h> rather than <stdlib.h>.
63275
63276 2004-08-08  Bruno Haible  <bruno@clisp.org>
63277
63278         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
63279         FILESYSTEM_PREFIX_LEN.
63280         * lib/progreloc.c: Likewise.
63281         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
63282
63283 2004-08-06  Simon Josefsson  <jas@extundo.com>
63284
63285         * modules/progname (Depends-on): Don't depend on stdbool.
63286
63287 2004-08-06  Simon Josefsson  <jas@extundo.com>
63288
63289         * modules/getsubopt: New file.
63290         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63291         getsubopt.
63292
63293 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63294
63295         More merge from coreutils.
63296
63297         * m4/utimens.m4, m4/utimecmp.m4: New files.
63298         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
63299         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
63300         prereq.m4, sha.m4: Import changes from coreutils.
63301
63302 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63303
63304         More merge from coreutils.
63305         * modules/raise, modules/readtokens0, modules/utimens:
63306         * modules/utimecmp, module/xnanosleep: New files.
63307         * modules/strftime: Add lib/strftime.h.
63308         Change include from <time.h> to "strftime.h".
63309         * modules/yesno: Add lib/yesno.h.
63310         * modules/backupfile: Remove lib/addext.c.
63311         * modules/euidaccess: Add stat-macros.h.
63312         * modules/canonicalize, modules/euidaccess,
63313         modules/filemode, modules/lchown, modules/makepath,
63314         modules/rmdir, modules/stat: Likewise.
63315
63316 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63317
63318         Merge from tar.
63319         * lib/argp-help.c (make_hol, hol_append): Don't assume that
63320         SIZE_MAX is a valid preprocessor constant.
63321         (__argp_basename): Change from "#ifndef _LIBC"
63322         to "#ifndef __argp_short_program_name", so that
63323         we don't compile these functions for tar.
63324
63325         More merges from coreutils.
63326         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
63327         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
63328         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
63329         * lib/addext.c: Remove; no longer needed.
63330         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
63331         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
63332         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
63333         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
63334         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
63335         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
63336         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
63337         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
63338         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
63339         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
63340         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
63341         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
63342         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
63343         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
63344         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
63345         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
63346         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
63347         Import changes from coreutils.
63348
63349 2004-08-05  Simon Josefsson  <jas@extundo.com>
63350
63351         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
63352
63353 2004-08-05  Simon Josefsson  <jas@extundo.com>
63354
63355         * m4/getsubopt.m4: New file.
63356
63357 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63358
63359         Merge from coreutils.
63360
63361         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
63362         * m4/getcwd-path-max.m4: New files.
63363
63364         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
63365         FILESYSTEM_PREFIX_LEN ->
63366         FILE_SYSTEM_PREFIX_LEN.
63367         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
63368         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
63369         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
63370         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
63371
63372         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
63373         prerequisite modules now handle the DOS stuff.
63374         Don't check for unistd.h.
63375
63376 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63377
63378         Merge from coreutils.
63379
63380         * lib/.gdb-history: Remove; this doesn't belong here.
63381
63382         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
63383         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
63384         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
63385         * lib/getcwd.c: New files.
63386
63387         * lib/dirname.h: Include <stdbool.h>.
63388         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
63389         for consistency with POSIX terminology.  All uses changed.
63390         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
63391         (strip_trailing_slashes): Use bool for booleans.
63392         * lib/stripslash.c (strip_trailing_slashes): Likewise.
63393
63394         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
63395         sometimes returns a positive errno value even when it succeeds.
63396         (print_errno_message) [!LIBC]: Fall back on strerror if
63397         __strerror_r fails.
63398
63399         * lib/path-concat.c (mempcpy): Don't define if a system header defines
63400         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
63401         (longest_relative_suffix): New function.
63402         (path_concat): Use it.  Assume first argument is not NULL.
63403         Port to DOS.  Omit redundant separators.
63404         Report an error instead of returning NULL.
63405         Use mempcpy instead of memcpy.
63406         (xpath_concat): Remove: not declared or used.
63407
63408         * lib/same.h: Include <stdbool.h>
63409         (same_name): Return bool, not int.
63410         * lib/same.c (same_name): Likewise.
63411         (errno): Don't declare; we assume C89 or better now.
63412
63413         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
63414         if not already defined.
63415
63416         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
63417         * lib/dup-safer.c (errno): Likewise.
63418
63419 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
63420
63421         Merge from coreutils.
63422         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
63423         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
63424         * modules/path-concat: Don't depend on strdup.
63425
63426 2004-08-03  Simon Josefsson  <jas@extundo.com>
63427
63428         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
63429         * lib/progname.h: Don't include stdbool.h.
63430
63431 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63432
63433         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
63434         * MODULES.html.sh (func_all_modules): Remove fatal.
63435
63436 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63437
63438         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
63439
63440 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
63441
63442         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
63443         working.
63444
63445 2004-08-02  Simon Josefsson  <jas@extundo.com>
63446
63447         * lib/getsubopt.h: New file, with comments from Bruno Haible.
63448         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
63449         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
63450
63451 2004-08-01  Simon Josefsson  <jas@extundo.com>
63452
63453         * lib/xgetdomainname.c: Include stdlib.h, for free().
63454
63455 2004-07-19  Bruno Haible  <bruno@clisp.org>
63456
63457         * MODULES.html.sh (func_all_modules): Add dummy.
63458
63459 2004-07-16  Simon Josefsson  <jas@extundo.com>
63460
63461         * modules/dummy: New file.
63462
63463 2004-07-16  Simon Josefsson  <jas@extundo.com>
63464
63465         * lib/dummy.c: New file.
63466
63467 2004-07-16  Bruno Haible  <bruno@clisp.org>
63468
63469         * lib/backupfile.h: Add extern "C" for C++.
63470         * lib/closeout.h: Likewise.
63471         * lib/copy-file.h: Likewise.
63472         * lib/findprog.h: Likewise.
63473         * lib/full-write.h: Likewise.
63474         * lib/pathname.h: Likewise.
63475         * lib/progname.h: Likewise.
63476         * lib/stpcpy.h: Likewise.
63477         * lib/stpncpy.h: Likewise.
63478         * lib/strcase.h: Likewise.
63479         * lib/strstr.h: Likewise.
63480         * lib/xalloc.h: Likewise.
63481
63482         * lib/mbswidth.h: Add extern "C" for C++.
63483         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
63484
63485 2004-07-13  Robert Millan  <robertmh@gnu.org>
63486
63487         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
63488
63489 2004-07-09  Simon Josefsson  <jas@extundo.com>
63490
63491         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
63492         failed without this.)
63493
63494 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63495
63496         * modules/chown (Files): Add lib/fchown-stub.c, since
63497         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
63498
63499 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63500
63501         * lib/fchown-stub.c: New file.
63502
63503 2004-06-24  Jim Meyering  <jim@meyering.net>
63504
63505         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
63506
63507 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63508
63509         * modules/argz: Omit "#include".
63510
63511         * MODULES.html.sh (func_all_modules): Add calloc, to match
63512         2004-06-01 addition of calloc module.
63513
63514 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63515
63516         * m4/argz.m4: New file, which is autoupdated from libtool.
63517
63518 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63519
63520         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
63521         libtool.
63522
63523 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63524
63525         * config/srclist-update: Don't insist on "USA." before the
63526         close-comment, as libtool omits the period and puts the */ on a
63527         separate line.
63528         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
63529         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
63530
63531 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
63532
63533         * modules/argz: New file.
63534         * MODULES.html.sh (func_all_modules): Add argz.
63535
63536 2004-06-12  Jim Meyering  <jim@meyering.net>
63537         and  Paul Eggert  <eggert@cs.ucla.edu>
63538
63539         * modules/hash (Files): Add lib/xalloc.h.
63540         * modules/pipe (Depends-on): Add wait-process.
63541         * modules/stat (Depends-on): Add xalloc.
63542         * modules/userspec (Files): Add lib/userspec.h.
63543         * modules/xstrto
63544
63545         Upgrade from gettext-0.13.
63546         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
63547         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
63548         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
63549
63550 2004-06-10  Jim Meyering  <jim@meyering.net>
63551
63552         * lib/calloc.c: New file.
63553
63554 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63555
63556         * lib/getdate.y (yylex): Allow space between sign and number.
63557         Problem reported by Dan Jacobson.
63558
63559 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
63560
63561         Merge from coreutils CVS.
63562
63563         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
63564         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
63565         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
63566         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
63567         xstrtol.m4: Fix copyright date and/or serial number.
63568
63569         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
63570         See if we need an fchown replacement.
63571         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
63572         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
63573         and use the replacement function if we detect either defect.
63574
63575         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
63576         gl_UTIMECMP.
63577
63578 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
63579         and  Jim Meyering  <jim@meyering.net>
63580
63581         Merge from coreutils CVS.
63582
63583         * lib/stat-macros.h: New file, with contents from file-type.h
63584         and coreutils' system.h.
63585         * lib/file-type.c: Include "stat-macros.h".
63586         * lib/file-type.h (file_type): Move all macro definitions to new file,
63587         stat-macros.h.
63588
63589         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
63590         Wrap old code with this conditional.
63591         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
63592         function that does not dereference symlinks.
63593         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
63594
63595         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
63596         dependency problems.
63597         (xreadlink): Accept new arg SIZE, for efficiency.
63598         All decls and uses changed.
63599         * lib/xreadlink.h: Include <stddef.h>, for size_t.
63600
63601         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
63602         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
63603
63604         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
63605         sysexits.h.
63606
63607 2004-06-01  Jim Meyering  <jim@meyering.net>
63608
63609         * m4/calloc.m4: New file.
63610
63611 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
63612
63613         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
63614         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
63615         Also, fix a typo in a diagnostic.
63616
63617 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63618
63619         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
63620         or AC_FUNC_REALLOC.
63621
63622 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63623
63624         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
63625         macros to be defined.
63626         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
63627         the allocator returns NULL because the requested size is zero.
63628
63629 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63630
63631         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
63632         var.  Add comment explaining why libc still defines it.  This
63633         merges the following patch from glibc:
63634         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
63635
63636 2004-05-20  Andreas Schwab  <schwab@suse.de>
63637
63638         * m4/free.m4: Replace free if it not known to work, not the other
63639         way round.
63640
63641 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63642
63643         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
63644         present in glibc since revision 1.1 of this file.
63645         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
63646         obstack_alignment_mask, obstack_alloc, obstack_base,
63647         obstack_blank, obstack_blank_fast, obstack_chunk_size,
63648         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
63649         obstack_grow0, obstack_init, obstack_int_grow,
63650         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
63651         obstack_next_free, obstack_object_size, obstack_ptr_grow,
63652         obstack_ptr_grow_fast, obstack_room): Remove declarations of
63653         nonexistent functions.
63654
63655 2004-05-18  Karl Berry  <karl@gnu.org>
63656
63657         * config/srclist.txt: break link for vasnprintf.c.
63658
63659 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63660
63661         Port obstack to the AS/400, where pointers are 16 bytes wide and
63662         you cannot cast an integer to a valid pointer.  This patch is
63663         currently waiting to be integrated into glibc; see
63664         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
63665
63666         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
63667         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
63668         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
63669         (struct obstack): temp member is now a union of a pointer and
63670         an integer, instead of an integer.  All integer uses changed.
63671         This does not affect the physical layout of struct obstack,
63672         except on hosts (like the AS/400) where the size or alignment of
63673         void * is greater than that of ptrdiff_t.
63674         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
63675         __STDC__)]: Store temporary in pointer member of union, not
63676         integer member.
63677         * lib/obstack.c: Include <stddef.h>, for offsetof.
63678         (struct fooalign): Remove; it doesn't need a name.
63679         (union fooround): Change double to long double, and add void *.
63680         (DEFAULT_ALIGNMENT): Use offsetof to compute.
63681         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
63682         not a macro.  Hence the values are always int; so remove all
63683         casts-to-int in uses.
63684
63685 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63686
63687         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
63688         we can get this patch merged into glibc.
63689
63690 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63691             Paul Eggert  <eggert@cs.ucla.edu>
63692
63693         * m4/argp: Depend on alloca.
63694
63695 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63696             Paul Eggert  <eggert@cs.ucla.edu>
63697
63698         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
63699         freecoding.
63700
63701 2004-05-17  Bruno Haible  <bruno@clisp.org>
63702
63703         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
63704         precision that consists of a '.' followed by an empty digit string.
63705         Patch by Tor Lillqvist <tml@iki.fi>.
63706
63707 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63708
63709         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
63710         for backward compatibility with older code.  We need our own
63711         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
63712         it under some other name, and our alloca.h will define it.
63713
63714 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63715             Derek Price  <derek@ximbiot.com>
63716
63717         * lib/alloca.c: Include <alloca.h>, to get our interface.
63718         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
63719         include <alloca.h> first.  Use C89 prototype for alloca; this
63720         requires including <stddef.h> for size_t.  Use extern "C" if C++.
63721         Use #elif for simplicity, since we can assume C89 now.
63722         Don't try to source the system alloca.h since it will not be found
63723         and to prevent recursively including its replacement.
63724         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
63725         * lib/regex.c: Likewise.
63726
63727 2004-05-16  Derek Price  <derek@ximbiot.com>
63728             Paul Eggert  <eggert@cs.ucla.edu>
63729
63730         getline cleanup.  This changes the getndelim2 API: both order of
63731         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
63732         no delimiter).
63733
63734         * lib/getline.c: Don't include stddef.h or stdio.h, since our
63735         interface does that.
63736         (getline): Always use getdelim, so that we don't have two
63737         copies of this code.
63738         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
63739         if available.
63740         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
63741         (GETNDELIM2_MAXIMUM): New macro.
63742         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
63743         instead of the old practice of delim2==0.  All callers changed.
63744         Return -1 on overflow, instead of returning junk.
63745         Do not set *linesize unless allocation succeeds.
63746         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
63747         that we include sys/types.h.
63748         * lib/getnline.h: Likewise.
63749         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
63750         (getndelim2): Reorder arguments.
63751         * lib/getnline.c (getnline, getndelim):
63752         Don't discard the NMAX argument.
63753         (getnline): Invoke getndelim, to avoid code duplication.
63754         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
63755         of (size_t) -1 by callers of the getnline family.
63756
63757 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63758
63759         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
63760         Check for gettimeofday.
63761         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
63762         Check for settimeofday, stime.
63763
63764 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63765
63766         * lib/nanosleep.c (suspended): Change its type from int to
63767         sig_atomic_t volatile.
63768         (first_call): Make it private to rpl_nanosleep, and have it
63769         be zero initially as that's a bit faster.
63770         (my_usleep): Round up fractional times instead of truncating them,
63771         as this is the usual meaning for 'sleep'.
63772
63773         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
63774         doesn't work.
63775         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
63776         (ENOSYS): Define if not defined.
63777         (settime): Fall back on stime if it exists and settimeofday fails.
63778         But don't bother with fallbacks if a method fails with errno == EPERM.
63779
63780 2004-05-11  Jim Meyering  <jim@meyering.net>
63781
63782         Prior to this change, the save_cwd caller required read access to the
63783         current directory on most systems (ones with the fchdir function).
63784
63785         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
63786         fails, try write-only, and finally, resort to using xgetcwd.
63787
63788 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63789
63790         * lib/obstack.c, obstack.h: Import changes from libc.
63791
63792 2004-04-28  Bruno Haible  <bruno@clisp.org>
63793
63794         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
63795         also implicitly appends .exe to executables.
63796         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
63797         accepts Windows pathnames.
63798         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63799         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63800         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63801         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63802         Reported by Derek Robert Price <derek@ximbiot.com>.
63803
63804 2004-04-21  Karl Berry  <karl@gnu.org>
63805
63806         * config/srclist.txt (localcharset.c): break sync.
63807
63808 2004-04-20  Paul Eggert  <eggert@twinsun.com>
63809
63810         * m4/host-os.m4: Add a copyright notice.
63811
63812 2004-04-20  Jim Meyering  <jim@meyering.net>
63813
63814         Change UTILS_ to gl_ in AC_DEFINE'd names.
63815         Change utils_- and jm_-prefixed variables, too.
63816         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
63817         UTILS_FUNC_MKDIR_TRAILING_SLASH.
63818         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
63819
63820         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
63821         Don't emit trailing blanks.
63822         Also rename jm_-prefixed variables to have gl_ prefix.
63823
63824         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
63825         Also rename jm_-prefixed variables to have gl_ prefix.
63826
63827         * m4/jm-macros.m4: Reflect the renamings.
63828         * m4/prereq.m4: Likewise.
63829
63830 2004-04-20  Jim Meyering  <jim@meyering.net>
63831
63832         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
63833         memory.
63834
63835 2004-04-20  Jim Meyering  <jim@meyering.net>
63836             Bruno Haible  <bruno@clisp.org>
63837
63838         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
63839         memory when realloc fails.
63840
63841 2004-04-19  Jim Meyering  <jim@meyering.net>
63842
63843         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
63844         now that readutmp.c may call `free (0)'.
63845
63846 2004-04-19  Bruno Haible  <bruno@clisp.org>
63847
63848         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
63849         * m4/inttypes_h.m4: Likewise.
63850         * m4/stdint_h.m4: Likewise.
63851         * m4/intmax_t.m4: Likewise.
63852         * m4/uintmax_t.m4: Likewise.
63853
63854 2004-04-18  Jim Meyering  <jim@meyering.net>
63855
63856         * m4/prereq.m4: Don't forbid jm_ prefix.
63857
63858         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
63859         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
63860         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
63861         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
63862         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
63863         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
63864         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
63865         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
63866         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
63867         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
63868         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
63869         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
63870         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
63871         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
63872         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
63873         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
63874         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
63875         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
63876         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
63877
63878 2004-04-18  Jim Meyering  <jim@meyering.net>
63879
63880         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
63881         failure, don't leak memory and do call END_UTMP_ENT.
63882
63883 2004-04-16  Jim Meyering  <jim@meyering.net>
63884
63885         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
63886         coreutils' stat program.
63887         (gl_PREREQ): Don't require jm_PREREQ_STAT.
63888
63889 2004-04-11  Paul Eggert  <eggert@twinsun.com>
63890
63891         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
63892         C89.
63893         (CHAR_BIT): Remove, since we assume C89.
63894         Include <stdint.h> if available, as per current Autoconf CVS advice.
63895
63896 2004-03-31  Jim Meyering  <jim@meyering.net>
63897
63898         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
63899         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
63900         * m4/xalloc.m4: Likewise.
63901
63902 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63903
63904         Merge from coreutils.
63905
63906         * m4/inttostr.m4: New file.
63907         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
63908         Require AM_STDBOOL_H and gl_TIMESPEC instead.
63909         Require gl_CLOCK_TIME.
63910         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
63911
63912 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63913
63914         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
63915         not bool, to be more consistent with Unix conventions.
63916         Suggested by Bruno Haible.
63917
63918         Merge from coreutils.
63919
63920         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
63921         * lib/umaxtostr.c: New files.
63922
63923         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
63924         the usual <time.h> dance.
63925         (get_date): Change signature to support fractional time stamps.
63926         All callers changed.
63927         * lib/getdate.y: Include "getdate.h" first, as we can now
63928         assume C89 and don't need to worry about 'const'.
63929         Similarly, include "unlocked-io.h" near start, not in middle.
63930         Include <limits.h>.
63931         (textint.value): Use long int rather than int.
63932         (textint.digits): Use size_t rather than int.
63933         (BILLION, LOG10_BILLION): New constants.
63934         (parser_control): New member rel_ns.  Members day_ordinal,
63935         time_zone, month, day, hour, minutes, rel_year, rel_month,
63936         rel_day, rel_hour, rel_minutes, rel_seconds
63937         are now long int, not int.  Member seconds is now struct timespec,
63938         not int.  New member timespec_seen.  Members dates_seen, days_seen,
63939         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
63940         not int.
63941         (%union.intval): Now long int, not int.
63942         New member timespec.
63943         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
63944         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
63945         (spec): Now is a timespec or an item list.
63946         (timespec, items): New nonterminals.
63947         (time, rel, relunit, number, get_date):
63948         Add support for fractional seconds.
63949         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
63950         (gmtime, localtime, mktime): Remove decls; not needed with C89.
63951         (to_hour): First arg is now long int, not int.
63952         (to_year): Returns long int, not int.
63953         Don't treat year -70 like 70.
63954         (tm_diff): Returns long int, not int.
63955         (lookup_word): Use bool instead of int when appropriate.
63956         (yylex): Use size_t for count, not int.
63957         Detect overflow when parsing large integer constants.
63958         Add support for fractions.
63959         (get_date): Make pointers 'const' if possible.
63960         Use more-portable code to detect integer overflow.
63961         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
63962         Don't use ctime; it's not reliable if the year has >4 digits.
63963
63964         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
63965         This is for compatibility with BSD.
63966
63967         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
63968         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
63969         From coreutils' system.h.
63970
63971         * lib/userspec.c: Don't include "posixver.h".
63972         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
63973         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
63974         compatible extension.  Simplify code by removing a boolean int
63975         that was always nonzero if a string was nonnull.
63976
63977 2004-03-30  Jim Meyering  <jim@meyering.net>
63978
63979         Merge from coreutils.
63980
63981         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
63982         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
63983         on some systems one must include <grp.h> before it.
63984         Reported by Christian Krackowizer.
63985
63986 2004-03-30  Jim Meyering  <jim@meyering.net>
63987
63988         Merge from coreutils.
63989
63990         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
63991
63992         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
63993         an empty input stream.
63994
63995         * lib/readtokens.c: Include <stdbool.h>.
63996         (readtoken): Use `size_t' rather than int/long.
63997         All callers adjusted.
63998         Use `bool' rather than `int' where appropriate.
63999         Use memset rather than an explicit loop.
64000         Use x2nrealloc rather than xrealloc.
64001         Allow the use of `\0' as a delimiter.
64002         (readtokens): Likewise.
64003         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
64004
64005 2004-03-30  Jim Meyering  <jim@meyering.net>
64006
64007         * m4/realloc.m4: Remove file, since now it does no more than
64008         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
64009         the `configure.ac' section of module/realloc.
64010         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
64011
64012 2004-03-30  Bruno Haible  <bruno@clisp.org>
64013
64014         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
64015         nonnull.
64016
64017 2004-03-29  Paul Eggert  <eggert@twinsun.com>
64018
64019         Merge changes to getloadavg.c from coreutils and Emacs.
64020
64021         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
64022         Define to an expression, not to the empty string.
64023         Include cloexec.h and xalloc.h.
64024         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
64025         Use set_cloexec_flag rather than rolling our own.
64026         * lib/cloexec.c, lib/cloexec.h: New files.
64027
64028 2004-03-29  Paul Eggert  <eggert@twinsun.com>
64029
64030         * m4/cloexec.m4: New file.
64031
64032 2004-03-18  Paul Eggert  <eggert@twinsun.com>
64033
64034         * lib/getopt.h: Sync with libc CVS.
64035
64036 2004-03-18  Paul Eggert  <eggert@twinsun.com>
64037             Bruno Haible  <bruno@clisp.org>
64038
64039         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
64040         mbswidth.
64041
64042 2004-03-18  Paul Eggert  <eggert@twinsun.com>
64043             Bruno Haible  <bruno@clisp.org>
64044
64045         * lib/mbswidth.h: Include <wchar.h> only if
64046         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
64047         <wchar.h>.
64048         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
64049
64050 2004-03-09  Paul Eggert  <eggert@twinsun.com>
64051
64052         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
64053         Sync with libc CVS.
64054         * lib/getopt_int.h: New file, also synced from libc.
64055
64056 2004-03-09  Paul Eggert  <eggert@twinsun.com>
64057
64058         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
64059         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
64060         Bring back getopt.c, getopt.h, getopt1.c.
64061
64062 2004-03-07  Paul Eggert  <eggert@twinsun.com>
64063
64064         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
64065         All uses changed.  Check for sa_sigaction member; this fixes
64066         a bug first reported by Jason Andrade in
64067         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
64068
64069 2004-03-07  Paul Eggert  <eggert@twinsun.com>
64070
64071         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
64072         '#if' expressions.  Unlike the code it replaces, it does not
64073         depend on (defined _SC_PAGESIZE).  However, it does depend on
64074         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
64075         first reported by Jason Andrade in
64076         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
64077
64078 2004-02-25  Simon Josefsson  <jas@extundo.com>
64079
64080         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
64081
64082 2004-02-25  Simon Josefsson  <jas@extundo.com>
64083
64084         * lib/strdup.h: New file.
64085         * lib/strdup.c: Include it.
64086         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
64087         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
64088
64089 2004-02-23  Karl Berry  <karl@gnu.org>
64090
64091         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
64092         (from fencepost.gnu.org:/gd/gnuorg).
64093
64094 2004-02-23  Karl Berry  <karl@gnu.org>
64095
64096         * config/srclistvars.sh (GNUORG) [karl]: redefine.
64097         * config/srclist.txt: add maintain/standards documents.
64098
64099 2004-02-18  Bruno Haible  <bruno@clisp.org>
64100
64101         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
64102         Reported by Derek Robert Price <derek@ximbiot.com>.
64103
64104 2004-02-16  Karl Berry  <karl@gnu.org>
64105
64106         * config/mkinstalldirs, install-sh: update from automake.
64107
64108 2004-02-06  Karl Berry  <karl@gnu.org>
64109
64110         * m4/po.m4: update from gettext 0.14.1.
64111
64112 2004-02-06  Karl Berry  <karl@gnu.org>
64113
64114         * lib/config.charset: update from gettext 0.14.1.
64115
64116 2004-02-05  Paul Eggert  <eggert@twinsun.com>
64117
64118         Add comments and code, prompted by suggestions from Bruno Haible
64119         for sh-quote.
64120         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
64121         describing the enum quoting_style values.
64122         * lib/quotearg.c (quotearg_alloc): New function.
64123         (quotearg_buffer_restyled): Treat lone { and } as special.
64124         Treat = as special.  Work around bug with older shells
64125         that "see" a '\' that is really the 2nd byte of a multibyte char.
64126         Quote empty string with shell_quoting_style.
64127
64128 2004-02-03  Bruno Haible  <bruno@clisp.org>
64129
64130         * m4/pipe.m4: New file, from GNU gettext.
64131
64132 2004-02-03  Bruno Haible  <bruno@clisp.org>
64133
64134         * lib/pipe.h: New file, from GNU gettext.
64135         * lib/pipe.c: New file, from GNU gettext.
64136
64137 2004-01-27  Bruno Haible  <bruno@clisp.org>
64138
64139         * m4/execute.m4: New file, from GNU gettext.
64140
64141 2004-01-27  Bruno Haible  <bruno@clisp.org>
64142
64143         * lib/execute.h: New file, from GNU gettext.
64144         * lib/execute.c: New file, from GNU gettext.
64145         * lib/w32spawn.h: New file, from GNU gettext.
64146
64147 2004-01-24  Paul Eggert  <eggert@twinsun.com>
64148
64149         Merge from diffutils.
64150
64151         * lib/file-type.c (file_type): Add typed memory objects.
64152         * lib/file-type.h (S_TYPEISTMO): New macro.
64153
64154         * lib/c-stack.h (c_stack_action): Remove argv argument.
64155         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
64156         (die): Don't calculate message unless segv_action returns.
64157         (get_stack_location, min_address_from_argv, max_address_from_argv,
64158         volatile stack_base, volatile_stack_size): Remove.
64159         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
64160         that every segmentation violation is a stack overflow.  (Ouch!)
64161         See Debian bug 136249 (still outstanding) for more info about why
64162         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
64163
64164 2004-01-24  Paul Eggert  <eggert@twinsun.com>
64165
64166         Exit-status fix from coreutils.
64167
64168         Use exit_failure consistently in place of EXIT_FAILURE,
64169         so that program exit statuses are consistent on failure.
64170
64171         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
64172         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
64173         * lib/argmatch.h: Comment fix to match the above.
64174         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
64175         Now a macro referring to exit_failure, instead of a separate
64176         variable.  Include "exitfail.h" to get it.
64177         * lib/xstrtol.h: Include "exitfail.h".
64178         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
64179
64180         * lib/long-options.c (parse_long_options): Use prototype
64181         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
64182         for clarity.
64183
64184 2004-01-21  Jim Meyering  <jim@meyering.net>
64185
64186         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
64187         so as not to conflict with a different-sized __mktime_internal
64188         function in GNU libc.
64189         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
64190         Problem building statically-linked `ls' reported by Michael Brunnbauer.
64191
64192 2004-01-20  Karl Berry  <karl@gnu.org>
64193
64194         * config/config.guess: update from config.
64195
64196         * config/srclistvars.sh: GNUWWWLICENSES for karl.
64197
64198 2004-01-20  Bruno Haible  <bruno@clisp.org>
64199
64200         Safer stack allocation.
64201         * lib/setenv.c: Include allocsa.h.
64202         (alloca): Remove fallback definition.
64203         (freea): Remove macro.
64204         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
64205         instead of freea.
64206
64207 2004-01-20  Bruno Haible  <bruno@clisp.org>
64208
64209         * m4/eealloc.m4: New file, from GNU gettext.
64210
64211 2004-01-20  Bruno Haible  <bruno@clisp.org>
64212
64213         * m4/allocsa.m4: New file, from GNU gettext.
64214
64215 2004-01-20  Bruno Haible  <bruno@clisp.org>
64216
64217         * lib/xallocsa.h: New file, from GNU gettext.
64218         * lib/xallocsa.c: New file, from GNU gettext.
64219
64220 2004-01-20  Bruno Haible  <bruno@clisp.org>
64221
64222         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
64223
64224 2004-01-20  Bruno Haible  <bruno@clisp.org>
64225
64226         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
64227         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
64228         specially.
64229
64230 2004-01-20  Bruno Haible  <bruno@clisp.org>
64231
64232         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
64233         patch.
64234
64235 2004-01-20  Bruno Haible  <bruno@clisp.org>
64236
64237         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
64238
64239 2004-01-20  Bruno Haible  <bruno@clisp.org>
64240
64241         * lib/eealloc.h: New file.
64242
64243 2004-01-20  Bruno Haible  <bruno@clisp.org>
64244
64245         * lib/binary-io.h: Avoid warnings on Cygwin.
64246
64247 2004-01-20  Bruno Haible  <bruno@clisp.org>
64248
64249         * lib/allocsa.h: New file, from GNU gettext.
64250         * lib/allocsa.c: New file, from GNU gettext.
64251
64252 2004-01-18  Karl Berry  <karl@gnu.org>
64253
64254         * doc/gpl.texi, doc/lgpl.texi: new files.
64255
64256 2004-01-18  Karl Berry  <karl@gnu.org>
64257
64258         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
64259         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
64260
64261 2004-01-15  Paul Eggert  <eggert@twinsun.com>
64262
64263         Merge from coreutils.
64264
64265         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
64266         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
64267         (gl_DEFAULT_POSIX2_VERSION): Move
64268         the documentation from 'configure' into 'config.hin',
64269         so that 'configure --help' isn't burdened by it and
64270         we don't have to worry about its formatting there.
64271         Reword the documentation so that it's more succinct
64272         and can be run together into a single paragraph.
64273         * m4/same.m4 (gl_SAME): Check for pathconf.
64274
64275 2004-01-15  Paul Eggert  <eggert@twinsun.com>
64276
64277         Merge from coreutils.
64278
64279         * lib/posixver.c: Include posixver.h.
64280
64281         * lib/same.c: Include <stdbool.h>, <limits.h>.
64282         (_POSIX_NAME_MAX): Define if not defined.
64283         (MIN): New macro.
64284         (same_name): If file names are silently truncated, report
64285         that the file names are the same if they are the same after
64286         the silent truncation.
64287
64288         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
64289         conversion function.
64290         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
64291         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
64292         longer needed.
64293
64294 2004-01-15  Jim Meyering  <jim@meyering.net>
64295
64296         Merge from coreutils.
64297
64298         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
64299         if no library is required.
64300         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
64301         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
64302         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
64303         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
64304         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
64305         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
64306         value, $ac_cv_search_crypt, if it's "none required".
64307         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
64308         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
64309         not gl_FUNC_GETLOADAVG.
64310         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
64311         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
64312
64313 2004-01-15  Jim Meyering  <jim@meyering.net>
64314
64315         Merge from coreutils.
64316
64317         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
64318         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
64319         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
64320
64321         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
64322         optional configure-time default.
64323
64324         * lib/version-etc.c (version_etc_copyright): Update copyright date.
64325
64326         * lib/xreadlink.c (xreadlink): Correct outdated comment.
64327
64328 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
64329
64330         Merge from coreutils.
64331
64332         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
64333         value, $ac_cv_search_nanosleep, if it's "none required".
64334
64335 2004-01-14  Paul Eggert  <eggert@twinsun.com>
64336
64337         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
64338         with like-named macro in fnmatch.c.
64339         (EXT): Use an internal constant instead.
64340
64341         Merge fnmatch patches from glibc.
64342         * lib/fnmatch.c (mbsinit): Remove define.
64343         Add libc_hidden_ver (__fnmatch, fnmatch).
64344         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
64345         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
64346
64347 2004-01-14  Karl Berry  <karl@gnu.org>
64348
64349         * config/install-sh: update from automake.
64350
64351 2004-01-13  Karl Berry  <karl@gnu.org>
64352
64353         * config/install-sh: update from automake.
64354
64355 2004-01-09  Karl Berry  <karl@gnu.org>
64356
64357         * config/install-sh: update from automake.
64358
64359 2004-01-05  Karl Berry  <karl@gnu.org>
64360
64361         * config/config.{sub,guess}: update from config.
64362
64363 2003-12-31  Karl Berry  <karl@gnu.org>
64364
64365         * config/depcomp: update from automake.
64366
64367 2003-12-14  Karl Berry  <karl@gnu.org>
64368
64369         * lib/config.charset: update from gettext-runtime.
64370
64371 2003-12-03  Paul Eggert  <eggert@twinsun.com>
64372
64373         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
64374         Bug reported by Alfred M. Szmidt.
64375
64376 2003-12-03  Bruno Haible  <bruno@clisp.org>
64377
64378         * m4/gettext.m4: Upgrade from gettext-0.13.
64379         * m4/po.m4: Upgrade from gettext-0.13.
64380         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
64381         * m4/intmax.m4: New file, from gettext-0.13.
64382         * m4/printf-posix.m4: New file, from gettext-0.13.
64383
64384 2003-11-29  Karl Berry  <karl@gnu.org>
64385
64386         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
64387
64388 2003-11-25  Paul Eggert  <eggert@twinsun.com>
64389             Bruno Haible  <bruno@clisp.org>
64390
64391         * lib/printf-parse.h: Don't include sys/types.h.
64392         (ARG_NONE): New macro.
64393         (char_directive): Change type of *arg_index fields to size_t.
64394         * lib/printf-parse.c: Don't include sys/types.h.
64395         (SSIZE_MAX): Remove macro.
64396         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
64397         Remove unnecessary overflow check.
64398         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
64399         fields.
64400
64401 2003-11-25  Bruno Haible  <bruno@clisp.org>
64402
64403         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
64404
64405 2003-11-25  Bruno Haible  <bruno@clisp.org>
64406
64407         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
64408         gt_TYPE_SSIZE_T.
64409
64410 2003-11-24  Paul Eggert  <eggert@twinsun.com>
64411
64412         * modules/alloca: Remove dependency on xalloc.
64413
64414 2003-11-24  Paul Eggert  <eggert@twinsun.com>
64415
64416         * lib/alloca.c: Remove dependency on xalloc module.
64417         (xalloc_die): Remove.
64418         (memory_full) [!defined emacs]: New macro.
64419         [!defined emacs]: Don't include xalloc.h.
64420         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
64421         address arithmetic overflows.  Change datatypes a bit to avoid
64422         unnecessary casts.
64423
64424 2003-11-22  Jim Meyering  <jim@meyering.net>
64425
64426         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
64427         s/size/size_t/.
64428
64429 2003-11-21  Karl Berry  <karl@gnu.org>
64430
64431         * config/config.{sub,guess}: update from config.
64432
64433 2003-11-18  Karl Berry  <karl@gnu.org>
64434
64435         * config/config.{sub,guess}: update from config.
64436
64437         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
64438
64439 2003-11-17  Paul Eggert  <eggert@twinsun.com>
64440
64441         * README: Mention that S+T cannot overflow if S is the size of
64442         an existing object and T is sufficiently small.
64443
64444 2003-11-17  Jim Meyering  <jim@meyering.net>
64445
64446         On systems without utime and without a utimes function capable of
64447         dealing with a NULL struct utimbuf* argument, this utime replacement
64448         could -- in unusual circumstances -- leak a file descriptor.
64449         * lib/utime.c: Include <unistd.h> and <errno.h>.
64450         (utime_null): Be sure to close `fd' and to preserve errno.
64451         Reported by Geoff Collyer via Arnold Robbins.
64452
64453 2003-11-17  Bruno Haible  <bruno@clisp.org>
64454
64455         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
64456         (Depends-on): Add xsize.
64457
64458 2003-11-17  Bruno Haible  <bruno@clisp.org>
64459
64460         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
64461
64462 2003-11-17  Bruno Haible  <bruno@clisp.org>
64463
64464         * lib/vasnprintf.c (alloca): Remove fallback definition.
64465         (freea): Remove definition.
64466         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
64467         Reported by Paul Eggert.
64468
64469 2003-11-16  Paul Eggert  <eggert@twinsun.com>
64470             Bruno Haible  <bruno@clisp.org>
64471
64472         Protect against address arithmetic overflow.
64473         * lib/printf-args.h: Include stddef.h.
64474         (arguments): Change type of field 'count' to size_t.
64475         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
64476         'unsigned int' where appropriate.
64477         * lib/printf-parse.h: Include sys/types.h.
64478         (char_directive): Change type of *arg_index fields to ssize_t.
64479         (char_directives): Change type of fields 'count', max_*_length to
64480         size_t.
64481         * lib/printf-parse.c: Include sys/types.h and xsize.h.
64482         (SSIZE_MAX): Define fallback value.
64483         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
64484         instead of 'int' where appropriate. Check a_allocated, d_allocated
64485         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
64486         * lib/vasnprintf.c: Include xsize.h.
64487         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
64488         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
64489         overflow. Avoid wraparound when converting a width or precision from
64490         decimal to binary.
64491
64492 2003-11-16  Bruno Haible  <bruno@clisp.org>
64493
64494         Update from GNU gettext.
64495         * lib/printf-parse.c: Generalize to it can be compiled for wide
64496         strings.
64497         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
64498         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
64499         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
64500         SNPRINTF): New macros.
64501         Don't include <alloca.h> if the file is used inside libintl.
64502         (local_wcslen): New function, for Solaris 2.5.1.
64503         (VASNPRINTF): Use it instead of wcslen.
64504
64505 2003-11-16  Bruno Haible  <bruno@clisp.org>
64506
64507         * lib/xsize.h (xmax): New function.
64508         (xsum, xsum3, xsum4): Declare as "pure" functions.
64509
64510 2003-11-12  Paul Eggert  <eggert@twinsun.com>
64511
64512         * modules/xalloc (Files): Undo latest change, since xalloc.h
64513         no longer needs SIZE_MAX or PTRDIFF_MAX.
64514
64515 2003-11-12  Paul Eggert  <eggert@twinsun.com>
64516
64517         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
64518         gl_PTRDIFF_MAX.
64519
64520 2003-11-12  Paul Eggert  <eggert@twinsun.com>
64521
64522         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
64523         "return", to pacify some unknown compiler.  Problem reported
64524         by Joerg Schilling.
64525
64526 2003-11-12  Paul Eggert  <eggert@twinsun.com>
64527
64528         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
64529         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
64530         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
64531         heuristic is just as accurate as far as we know, and it removes a
64532         dependency on size_max.m4 and ptrdiff_max.m4.
64533
64534 2003-11-11  Bruno Haible  <bruno@clisp.org>
64535
64536         * modules/xsize (Files): Add m4/size_max.m4.
64537         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
64538
64539 2003-11-11  Bruno Haible  <bruno@clisp.org>
64540
64541         * m4/size_max.m4: New file.
64542         * m4/ptrdiff_max.m4: New file.
64543         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
64544         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
64545         (gl_XALLOC): Invoke it.
64546
64547 2003-11-11  Bruno Haible  <bruno@clisp.org>
64548
64549         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
64550         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
64551         defined.
64552
64553 2003-11-10  Paul Eggert  <eggert@twinsun.com>
64554
64555         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
64556         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
64557         rejected some allocations of exactly SIZE_MAX - 2 bytes.
64558         From Bruno Haible.
64559         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
64560         not (size_t) -1, since it's defined here.
64561
64562 2003-11-09  Karl Berry  <karl@gnu.org>
64563
64564         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
64565
64566 2003-11-06  Paul Eggert  <eggert@twinsun.com>
64567
64568         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
64569         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
64570         Reject sizes of exactly SIZE_MAX bytes.
64571         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
64572         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
64573
64574 2003-11-05  Bruno Haible  <bruno@clisp.org>
64575
64576         * lib/xsize.h: Include limits.h, to avoid a possible collision with
64577         SIZE_MAX defined in <limits.h> on Solaris.
64578
64579 2003-11-04  Jim Meyering  <jim@meyering.net>
64580
64581         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
64582         variable names, rather than @VAR@.
64583         * modules/poll: Likewise.
64584
64585 2003-11-04  Bruno Haible  <bruno@clisp.org>
64586
64587         * modules/xsize: New file.
64588         * modules/linebreak: Depend on xsize.
64589         * MODULES.html.sh (func_all_modules): Add xsize.
64590
64591 2003-11-04  Bruno Haible  <bruno@clisp.org>
64592
64593         * m4/xsize.m4: New file.
64594
64595 2003-11-04  Bruno Haible  <bruno@clisp.org>
64596
64597         * lib/xsize.h: New file.
64598         * lib/linebreak.c: Include xsize.h.
64599         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
64600         argument for overflow.
64601         Suggested by Paul Eggert.
64602
64603 2003-11-03  Karl Berry  <karl@gnu.org>
64604
64605         * config/config.{guess,sub}: update from config.
64606
64607 2003-11-03  Jim Meyering  <jim@meyering.net>
64608
64609         * modules/userspec (lib_SOURCES): Add userspec.h.
64610         (Include): Add "userspec.h".
64611         Improve description.
64612
64613 2003-11-03  Jim Meyering  <jim@meyering.net>
64614
64615         * lib/userspec.c: Include "userspec.h".
64616         * lib/userspec.h: New file.
64617
64618 2003-11-03  Bruno Haible  <bruno@clisp.org>
64619
64620         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
64621
64622 2003-11-03  Bruno Haible  <bruno@clisp.org>
64623
64624         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
64625         available, to avoid (extremely rare) race condition.
64626         Suggested by Paul Eggert.
64627
64628 2003-11-02  Karl Berry  <karl@gnu.org>
64629
64630         * config/srclist.txt (vasprintf.c): sync broken, sigh.
64631
64632 2003-10-31  Paul Eggert  <eggert@twinsun.com>
64633
64634         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
64635         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
64636         (read_filesystem_list): Set and use me_type_malloced.
64637         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
64638         whatever the type happens to be), for brevity and consistency.
64639         Check for size calculation overflow on Alphas running OSF/1.
64640
64641 2003-10-31  Jim Meyering  <jim@meyering.net>
64642
64643         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
64644
64645         * lib/linebuffer.c: Include <string.h> for declaration of memset.
64646
64647 2003-10-30  Paul Eggert  <eggert@twinsun.com>
64648             Bruno Haible  <bruno@clisp.org>
64649
64650         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
64651         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
64652
64653 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64654
64655         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
64656         netbsd*-gnu*.  Suggested by Robert Millan.
64657
64658 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64659
64660         * modules/group-member: Depend on stdbool.
64661
64662 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64663
64664         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
64665
64666 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64667
64668         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
64669         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
64670         after the 'gnu' in these cases.  This fixes some bugs in the
64671         previous change, and is based on suggestions by Robert Millan.
64672
64673 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64674
64675         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
64676         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
64677         no longer needed.
64678         * lib/quotearg.c (quotearg_n_options): Use it.
64679         * lib/group-member.c: Include <stdbool.h>.
64680         (free_group_info): Arg is now const *; don't free arg.
64681         (get_group_info): Now returns bool and accepts struct group_info *,
64682         rather than returning a malloc'ed struct group_info *.
64683         All uses changed.  Check for overflow in internal size calculation.
64684
64685         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
64686         rather than xmalloc/xrealloc.
64687         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
64688         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
64689         conformance bug: the old code used a pointer after freeing the
64690         storage that it addressed.
64691         * lib/hash.c (hash_initialize): Simplify the code by using
64692         xalloc_oversized rather than doing it by hand.
64693         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
64694         the buffer preserved.  Use free and xmalloc instead.
64695         * lib/quotearg.c (quotearg_n_options): Likewise.
64696         Use a simpler test for size overflow.  Don't use xalloc_oversized
64697         because unsigned int might be wider than size_t (!); this suggests
64698         that we should switch from unsigned int to size_t for slot numbers.
64699
64700 2003-10-28  Paul Eggert  <eggert@twinsun.com>
64701
64702         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
64703         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
64704         NetBSD kernels.  Requested by Richard Stallman.
64705
64706 2003-10-27  Paul Eggert  <eggert@twinsun.com>
64707
64708         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
64709         to allocate the returned structure.  Do not allocate a subarray,
64710         as x2nrealloc will do that.
64711         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
64712         instead of xnrealloc.
64713         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
64714
64715 2003-10-27  Bruno Haible  <bruno@clisp.org>
64716
64717         * lib/stdbool_.h: Better support for BeOS.
64718
64719 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64720
64721         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
64722         now uses inline.
64723
64724 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64725
64726         * lib/xalloc.h (xalloc_oversized): New static inline function, for
64727         callers that want to do their own size-overflow checking.  Include
64728         <stdbool.h>, since xalloc_oversized returns bool.
64729         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
64730         to use xalloc_oversized.
64731
64732         Add two functions x2realloc, x2nrealloc, for programs that grow
64733         arrays dynamically by doubling their sizes.
64734         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
64735         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
64736         New functions.
64737
64738         Port to C99 semantics for 'inline' of external functions.
64739         Bug reported by Bruno Haible.
64740         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
64741         with the old contents of xnmalloc.
64742         (xnmalloc, xmalloc): Use it.
64743         (xnrealloc_inline): New static inline function,
64744         with the old contents of xnrealloc.
64745         (xnrealloc, xrealloc): Use it.
64746
64747         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
64748         that.
64749
64750 2003-10-26  Karl Berry  <karl@gnu.org>
64751
64752         * config/srclist.txt (COPYING.DOC): no longer available from
64753         /gd/gnuorg; don't know where the ultimate source is.
64754
64755 2003-10-25  Paul Eggert  <eggert@twinsun.com>
64756
64757         Fix several address-calculation bugs in the hash modules,
64758         plus some minor code cleanup.
64759
64760         * lib/hash.h: Include <stdbool.h>, for bool.
64761         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
64762         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
64763         hash_get_n_entries, hash_get_max_bucket_length,
64764         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
64765         hash_rehash): Use size_t rather than unsigned.
64766         * lib/hash.c (struct hash_table, hash_get_n_buckets,
64767         hash_get_n_buckets_used, hash_get_n_entries,
64768         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
64769         hash_get_entries, hash_do_for_each, hash_string, is_prime,
64770         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
64771         Likewise.
64772         (SIZE_MAX): Define if not defined.
64773         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
64774         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
64775         hash_print):
64776         Use const * when possible.
64777         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
64778         (check_tuning): Fix bug: if tuning parameters were very close to
64779         0 or 1, rounding errors could have caused subscript violations.
64780         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
64781         (hash_initialize): Add 'fail:' label
64782         to free table and return NULL, and use it to simplify code.
64783         Use calloc rather than clearing the storage ourself.
64784         (hash_initialize, hash_rehash): Check for arithmetic overflow in
64785         buffer size calculations.
64786         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
64787         Include <stddef.h>, for size_t.
64788         * lib/hash-pjw.c (hash_pjw): Likewise.
64789         Switch to method described by Bruno Haible.
64790         Include <limits.h>, for CHAR_BIT.
64791         (SIZE_BITS): New macro.
64792
64793 2003-10-23  Paul Eggert  <eggert@twinsun.com>
64794
64795         * m4/getline.m4 (AM_FUNC_GETLINE):
64796         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
64797         hosts.  Problem reported by Derek Robert Price in
64798         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
64799         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
64800         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
64801
64802 2003-10-21  Paul Eggert  <eggert@twinsun.com>
64803
64804         * lib/getndelim2.c (getndelim2): When size calculation overflows,
64805         ceiling the allocation at NMAX bytes rather than silently
64806         discarding input bytes before NMAX is reached.  This makes
64807         a difference only if NMAX exceeds SIZE_MAX / 2.
64808
64809         * lib/obstack.c: Merge from glibc.
64810         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
64811         Add libc_hidden_def (_obstack_newchunk).
64812         (_obstack_free) [! defined _LIBC]: Remove.
64813         [defined _LIBC]: Make a strong alias from obstack_free, rather than
64814         a clone of the function body.
64815         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
64816         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
64817
64818         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
64819         glibc.
64820         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
64821         arg to memcpy.
64822
64823         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
64824         (obstack_ptr_grow_fast, obstack_int_grow_fast):
64825         Don't use lvalue casts, as GCC plans to remove support for them
64826         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
64827         was also present in the non-GCC version, indicating that this
64828         code had always been buggy and had never been widely used.
64829         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
64830         Use the fast variant of each macro, rather than copying the
64831         definiens of the fast variant; that way, we'll be more likely to
64832         catch future bugs in the fast variants.
64833
64834 2003-10-20  Bruno Haible  <bruno@clisp.org>
64835
64836         * modules/wait-process: New file.
64837         * MODULES.html.sh (func_all_modules): Add wait-process.
64838
64839 2003-10-20  Bruno Haible  <bruno@clisp.org>
64840
64841         * m4/wait-process.m4: New file.
64842
64843 2003-10-20  Bruno Haible  <bruno@clisp.org>
64844
64845         * lib/wait-process.h: New file, from GNU gettext.
64846         * lib/wait-process.c: New file, from GNU gettext.
64847
64848 2003-10-19  Jim Meyering  <jim@meyering.net>
64849
64850         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
64851         HPUX 10.20.
64852
64853 2003-10-18  Karl Berry  <karl@gnu.org>
64854
64855         * config/config.guess: update from config.
64856
64857 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64858
64859         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
64860         (getgroups): First arg is int, not size_t.
64861         Don't let 'free' mangle errno.
64862
64863 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64864
64865         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
64866
64867 2003-10-16  Karl Berry  <karl@gnu.org>
64868
64869         * config/config.{guess,sub}: update from config.
64870
64871 2003-10-16  Jim Meyering  <jim@meyering.net>
64872
64873         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
64874         memcpy.
64875
64876 2003-10-15  Paul Eggert  <eggert@twinsun.com>
64877
64878         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
64879         (SIZE_MAX): Remove.
64880         (new_exclude, add_exclude_file): Initial size no longer needs to
64881         be a power of 2.
64882         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
64883         our own address arithmetic overflow checking.
64884
64885         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
64886         (fnmatch): Do not alloca more than 2000 wide characters;
64887         instead, use malloc for large buffers.
64888         Check for address arithmetic overflow, and return -1
64889         with errno set to ENOMEM in that case.
64890         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
64891         (NEW_PATTERN): Do not alloca more than 8000 bytes;
64892         instead, return -1.  Check for address arithmetic overflow.
64893
64894 2003-10-14  Paul Eggert  <eggert@twinsun.com>
64895
64896         Handle invalid suffixes and overflow independently, so that
64897         callers can treat them independently as needed.  Fix some bugs in
64898         suffix handling, e.g., "100k@" was not diagnosed as an invalid
64899         suffix for a human-readable blocksize.  The major caller-visible
64900         change is the addition of a new
64901         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
64902         that both overflow and suffix chars were found.
64903
64904         * lib/human.c (humblock): Don't check separately for invalid suffix
64905         char; that is xstrtoumax's job (now that its bug is fixed).
64906         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
64907         INTMAX_MAX]: New macros.
64908         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
64909         TYPE_MAXIMUM): New macros.
64910         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
64911         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
64912         if overflow occurs, as it's what __strtol does and it's more useful
64913         in practice.
64914         (__xstrtol): If __strtol reports some error other than ERANGE,
64915         reflect it to the caller as LONGINT_INVALID.  If it reports
64916         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
64917         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
64918         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
64919         value.
64920         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
64921         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
64922         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
64923         [defined UINTMAX_MAX]: New macros.
64924
64925 2003-10-14  Bruno Haible  <bruno@clisp.org>
64926
64927         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
64928
64929 2003-10-14  Bruno Haible  <bruno@clisp.org>
64930
64931         * m4/sig_atomic_t: New file, from GNU gettext.
64932         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
64933
64934 2003-10-14  Bruno Haible  <bruno@clisp.org>
64935
64936         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
64937         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
64938         Also use volatile where needed.
64939
64940 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64941
64942         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
64943         Change maintainer from Bruno Haible to 'all'.
64944
64945 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64946
64947         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
64948
64949 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64950
64951         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
64952         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
64953         and define in terms of the other primitives.
64954         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
64955         (SIZE_MAX): Define if not already defined.
64956         (array_size_overflow): New function.
64957         (xalloc_die): Abort instead of exiting if 'error' returns.
64958         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
64959         (xmalloc, xrealloc): Use them.
64960         (xcalloc): Check for address arithmetic overflow.
64961         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
64962         a bit faster than strcpy.
64963
64964 2003-10-10  Simon Josefsson  <jas@extundo.com>
64965
64966         * modules/argp (Depends-on): Add restrict and strcase.
64967
64968 2003-10-10  Simon Josefsson  <jas@extundo.com>
64969
64970         * m4/argp.m4: Add AC_C_INLINE.
64971
64972 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64973
64974         Merge getpass from libc, plus a few fixes.
64975
64976         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
64977         Include <stdbool.h>.
64978         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
64979         __fsetlocking to empty.
64980         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
64981         do include <bits/libc-lock.h>.
64982         Do not include <fcntl.h>; not needed.
64983         [_LIBC]: Include <wchar.h>.
64984         (NOTCANCEL_MODE): New macro.
64985         (flockfile, funlockfile) [_LIBC]: New macros.
64986         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
64987         [!_LIBC]: New macros.
64988         (call_fclose): New function.
64989         (getpass): Use it.  Save tty stream separately; this simplifies the
64990         code and makes it more reliable if stdin happens to equal stdout.
64991         Invoke __fsetlocking on tty.
64992         Handle thread cancellation if needed.
64993         Namespace cleanup (use __tcgetattr, __getline).
64994         Use bool for Booleans.
64995         [USE_IN_LIBIO]: Handle wide streams.
64996         [!_LIBC]: Unconditionally do the fseek, since we don't know what
64997         stream might go where.
64998
64999         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
65000         doesn't have to include <stdio.h> before us.
65001         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
65002         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
65003         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
65004         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
65005         if not declared, so that we can use getpass.c code from libc without
65006         rewriting it.
65007         (flockfile, ftrylockfile, funlockfile): New macros.
65008
65009 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65010
65011         * modules/getpass: Depend on stdbool.
65012
65013 2003-10-08  Paul Eggert  <eggert@twinsun.com>
65014
65015         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
65016
65017 2003-10-07  Karl Berry  <karl@gnu.org>
65018
65019         * config/config.{guess,sub}: update from config.
65020
65021 2003-10-06  Jim Meyering  <jim@meyering.net>
65022             Bruno Haible  <bruno@clisp.org>
65023
65024         This lets translators provide better translations for the
65025         "Written by ..." part of --version output.
65026         * lib/version-etc.h: Include stdarg.h.
65027         (version_etc_copyright): Declare as readonly.
65028         (version_etc): Make this function variadic with a NULL-terminated list
65029         of author name strings.
65030         (version_etc_va): New declaration.
65031         * lib/version-etc.c: Include stdarg.h, stdlib.h.
65032         (version_etc_copyright): Declare as readonly.
65033         (version_etc_va): New function. Provide a different translatable string
65034         for each possible number of authors < 10. Abbreviate when there are 10
65035         authors or more.
65036         (version_etc): Make this function variadic. Call version_etc_va.
65037         Suggestion from Gary V. Vaughan.
65038
65039         * lib/long-options.h (parse_long_options): Change prototype: the
65040         authors string is moved to the end and becomes variadic.
65041         * lib/long-options.c: Include stdarg.h.
65042         (parse_long_options): Make this function variadic, too.
65043         Call version_etc_va, not version_etc.
65044
65045 2003-10-06  Bruno Haible  <bruno@clisp.org>
65046
65047         * modules/version-etc-2: Remove file.
65048         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
65049
65050 2003-10-06  Bruno Haible  <bruno@clisp.org>
65051
65052         * modules/fatal-signal: New file.
65053         * MODULES.html.sh (func_all_modules): Add fatal-signal.
65054
65055 2003-10-06  Bruno Haible  <bruno@clisp.org>
65056
65057         * m4/fatal-signal.m4: New file.
65058         * m4/signalblocking.m4: New file, from GNU gettext.
65059
65060 2003-10-06  Bruno Haible  <bruno@clisp.org>
65061
65062         * lib/version-etc-2.h: Remove file.
65063         * lib/version-etc-2.c: Remove file.
65064
65065 2003-10-06  Bruno Haible  <bruno@clisp.org>
65066
65067         * lib/fatal-signal.h: New file, from GNU gettext.
65068         * lib/fatal-signal.c: New file, from GNU gettext.
65069
65070 2003-10-05  Paul Eggert  <eggert@twinsun.com>
65071
65072         * README: Rework advice for preventing empty .o files.
65073         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
65074         not <sys/types.h>.
65075
65076 2003-10-04  Karl Berry  <karl@gnu.org>
65077
65078         * lib/argp*: update from libc.
65079
65080 2003-10-04  Karl Berry  <karl@gnu.org>
65081
65082         * config/config.{guess,sub}: update from config.
65083
65084 2003-10-02  Bruno Haible  <bruno@clisp.org>
65085
65086         * modules/lchown (Include): Add lchown.h.
65087         * modules/time_r (Include): Use "..." syntax.
65088         * modules/xgetdomainname (Include): Add xgetdomainname.h.
65089
65090 2003-10-01  Simon Josefsson  <jas@extundo.com>
65091
65092         * MODULES.html.sh (func_all_modules): Move gethostname from section
65093         'based on' to section 'lacking' POSIX:2001.
65094
65095 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
65096
65097         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
65098         to output mode on the same stream.
65099
65100 2003-09-29  Paul Eggert  <eggert@twinsun.com>
65101
65102         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
65103         Fix arg typo in previous patch.
65104
65105 2003-09-28  Jim Meyering  <jim@meyering.net>
65106
65107         * lib/error.c: Correct cpp indentation.
65108
65109 2003-09-27  Paul Eggert  <eggert@twinsun.com>
65110
65111         * modules/free: New file.
65112
65113 2003-09-27  Paul Eggert  <eggert@twinsun.com>
65114
65115         * m4/free.m4: New file.
65116
65117 2003-09-27  Paul Eggert  <eggert@twinsun.com>
65118
65119         * lib/minmax.h (MIN, MAX)
65120         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
65121         Omit the special code that used __typeof__, since we worry that
65122         it could be more trouble than it's worth.  See:
65123         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
65124         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
65125
65126         * lib/free.c: New file.
65127
65128 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
65129
65130         Trivial fixes to Makefile.am parts of module listings.
65131         * modules/strstr: Append strstr.h to lib_SOURCES.
65132         * modules/strcase: Likewise, for strcase.h.
65133
65134 2003-09-27  Karl Berry  <karl@gnu.org>
65135
65136         * config/mkinstalldirs: update from automake.
65137
65138 2003-09-26  Paul Eggert  <eggert@twinsun.com>
65139
65140         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
65141         (error_tail): Do not loop, reallocating temporary buffer, since
65142         the output cannot contain more wide characters than the input
65143         contains bytes, the size must be big enough already.  This avoids
65144         one potential size overflow calculation.  Check for size overflow
65145         when calculating temporary buffer size.  Free temporary buffer
65146         when done, if it was allocated with malloc; this plugs a memory
65147         leak.  Remove casts from void * to pointers, that are no longer
65148         needed now that we're assuming C89 or better.
65149
65150         Merge error changes from glibc.
65151
65152         * lib/error.c, error.h: Update copyright notice header to match glibc.
65153         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
65154         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
65155         Disable cancellation while printing error.
65156         * lib/error.h: Prepend __ to parameter names.
65157
65158 2003-09-26  Jim Meyering  <jim@meyering.net>
65159
65160         * lib/error.c (error_tail): Move some declarations
65161         into inner scope where the local variables are used.
65162
65163 2003-09-26  Bruno Haible  <bruno@clisp.org>
65164
65165         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
65166         stpncpy().
65167         Don't define stpncpy through config.h; it's now done through stpncpy.h.
65168
65169 2003-09-26  Bruno Haible  <bruno@clisp.org>
65170
65171         * lib/stpncpy.h (gnu_stpncpy): New declaration.
65172         (stpncpy): Define as alias for gnu_stpncpy.
65173         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
65174
65175 2003-09-25  Simon Josefsson  <jas@extundo.com>
65176
65177         * lib/xgetdomainname.h: New file.
65178         * lib/xgetdomainname.c: New file.
65179
65180 2003-09-25  Simon Josefsson  <jas@extundo.com>
65181             Bruno Haible  <bruno@clisp.org>
65182
65183         * modules/getdomainname: New file.
65184         * modules/xgetdomainname: New file.
65185         * MODULES.html.sh (func_all_modules): Add getdomainname,
65186         xgetdomainname.
65187
65188 2003-09-25  Simon Josefsson  <jas@extundo.com>
65189             Bruno Haible  <bruno@clisp.org>
65190
65191         * m4/getdomainname.m4: New file.
65192
65193 2003-09-25  Simon Josefsson  <jas@extundo.com>
65194             Bruno Haible  <bruno@clisp.org>
65195
65196         * lib/getdomainname.h: New file.
65197         * lib/getdomainname.c: New file.
65198
65199 2003-09-25  Karl Berry  <karl@gnu.org>
65200
65201         * lib/argp-fmtstream.c, argp-help.c: update from libc.
65202
65203 2003-09-25  Karl Berry  <karl@gnu.org>
65204
65205         * config/install-sh: update from automake.
65206
65207 2003-09-25  Bruno Haible  <bruno@clisp.org>
65208
65209         * modules/version-etc-2: New file, from modules/version-etc with
65210         modifications.
65211         * MODULES.html.sh (func_all_modules): Add version-etc-2.
65212
65213 2003-09-25  Bruno Haible  <bruno@clisp.org>
65214
65215         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
65216         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
65217
65218 2003-09-24  Simon Josefsson  <jas@extundo.com>
65219
65220         * modules/xgethostname: Add xgethostname.h.
65221
65222 2003-09-24  Paul Eggert  <eggert@twinsun.com>
65223
65224         * lib/linebuffer.c (freebuffer): Don't free the argument, just
65225         the buffer associated with the argument.  Bug reported by
65226         Simon Josefsson.
65227
65228 2003-09-24  Paul Eggert  <eggert@twinsun.com>
65229
65230         * README: Document assumptions that 'int' is at least 32 bits
65231         wide, that integer arithmetic is 2's complement without overflow,
65232         that there are no holes in integer values, that adding sizes of
65233         two nonoverlapping objects can't overflow, and that all-bits-zero
65234         yields scalar zero.  Fix spelling and capitalization typos.
65235
65236 2003-09-19  Karl Berry  <karl@gnu.org>
65237
65238         * lib/argp.h: update from libc.
65239
65240 2003-09-17  Paul Eggert  <eggert@twinsun.com>
65241
65242         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
65243         to avoid spurious warnings like "AC_RUN_IFELSE was called before
65244         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
65245
65246 2003-09-17  Paul Eggert  <eggert@twinsun.com>
65247
65248         * gnulib-tool: Use "test -h", not "test -L", for portability
65249         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
65250         (tags_regexp): Remove, since \| doesn't conform to POSIX.
65251         (sed_extract_prog): Issue s commands one-by-one, rather than
65252         using \| in one s command.
65253
65254 2003-09-16  Paul Eggert  <eggert@twinsun.com>
65255
65256         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
65257         input error, instead of returning NULL the next time we are called
65258         (and therefore losing track of errno).
65259
65260 2003-09-16  Bruno Haible  <bruno@clisp.org>
65261
65262         * gnulib-tool (func_create_testdir): Warn about duplicated
65263         dependencies.
65264
65265 2003-09-15  Paul Eggert  <eggert@twinsun.com>
65266
65267         * modules/argmatch, modules/fatal, modules/obstack,
65268         modules/xalloc, modules/xgethostname: Sort dependencies by
65269         importance, not alphabetically.
65270
65271 2003-09-15  Paul Eggert  <eggert@twinsun.com>
65272
65273         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
65274         fails, so that the caller gets the proper errno.
65275
65276         * lib/readutmp.c (read_utmp): Likewise.
65277         Check for fstat error.  Close stream and free storage
65278         when failing.
65279
65280 2003-09-14  Karl Berry  <karl@gnu.org>
65281
65282         * config/srclist.txt (strdup.c): disable for c89 changes.
65283
65284 2003-09-14  Jim Meyering  <jim@meyering.net>
65285
65286         * lib/getloadavg.c: Correct cpp indentation.
65287         * lib/strdup.c: Likewise.
65288         * lib/vasnprintf.c: Likewise.
65289
65290 2003-09-14  Bruno Haible  <bruno@clisp.org>
65291
65292         * modules/fwriteerror: New file.
65293         * MODULES.html.sh (func_all_modules): Add fwriteerror.
65294
65295 2003-09-14  Bruno Haible  <bruno@clisp.org>
65296
65297         * lib/fwriteerror.h: New file.
65298         * lib/fwriteerror.c: New file.
65299
65300 2003-09-12  Paul Eggert  <eggert@twinsun.com>
65301
65302         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
65303         modules/xgethostname, modules/xalloc: Depend on exit.
65304
65305 2003-09-12  Paul Eggert  <eggert@twinsun.com>
65306
65307         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
65308
65309         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
65310         and AC_MINIX, too, so that their extensions are available.
65311
65312         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
65313         This macro has been superseded by gl_BACKUPFILE.
65314
65315         More patches to assume C89 or better.
65316
65317         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
65318
65319         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
65320         unconditionally.
65321         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
65322         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
65323         Include <string.h>, <stdlib.h> unconditionally.
65324         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
65325         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
65326         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
65327         headers or for string.h.
65328         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
65329         or strtoul.
65330
65331         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
65332         headers.
65333         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
65334         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65335         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
65336         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
65337         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65338         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
65339         memcpy, memset.
65340         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
65341         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
65342         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
65343         strtol.
65344         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
65345         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
65346         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
65347         strtoul.
65348
65349 2003-09-12  Paul Eggert  <eggert@twinsun.com>
65350
65351         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
65352         * lib/obstack.c [!defined _LIBC]: Likewise.
65353         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
65354         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
65355         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
65356
65357         More changes to assume C89 or better.
65358
65359         * lib/error.c (error_tail): Assume vprintf.
65360
65361         * lib/argmatch.c (getenv): Remove decl.
65362         * lib/progreloc.c (get_full_program_name): Define via prototype.
65363         * lib/setenv.c (clearenv): Likewise.
65364         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
65365         needed.
65366         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
65367         (malloc, memcpy): Remove decls.
65368         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
65369         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
65370         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
65371         (memcpy): Remove macro.
65372         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
65373         (__P): Remove.  All uses removed.
65374         (PTR): Remove.  All uses changed to void *.
65375         (CHAR_BIT, NULL): Remove.
65376         (spaces, zeros, memset_space, memset_zero)
65377         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
65378         Remove.
65379         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
65380         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
65381         Define with prototype.
65382         Remove now-unnecessary prototype decl.
65383         (extra_args_spec): Assume ANSI C.  All uses changed.
65384         (extra_args_spec_iso): Remove.
65385         (my_strftime, emacs_strftimeu): Define via prototype.
65386         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
65387         unconditionally.
65388         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
65389         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
65390         (strtoul, strtol): Remove decls.
65391         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
65392         LONG_MAX): Remove.
65393         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
65394         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
65395         (LOCALE_PARAM_PROTO): New macro.
65396         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
65397         (INTERNAL (strtol), strtol): Define with a prototype.
65398         (PARAMS): Remove.  All uses removed.
65399         * lib/tempname.c: Include <string.h> unconditionally.
65400         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
65401         * lib/xgethostname.c (main): Define with a prototype.
65402         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
65403         Include <stdlib.h> unconditionally.
65404         (calloc, malloc, realloc, free): Remove decls.
65405         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
65406         Include <stdlib.h> unconditionally.  Sort include file names.
65407         (strtod): Remove.
65408         (xstrtod): Define with a prototype.
65409         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
65410         (strtol, strtoul): Remove decls.
65411
65412 2003-09-11  Paul Eggert  <eggert@twinsun.com>
65413
65414         More patches to assume C89 or better.
65415         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
65416         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
65417         string.h, memchr, STDC_HEADERS.
65418
65419 2003-09-11  Paul Eggert  <eggert@twinsun.com>
65420
65421         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
65422         Include <stdlib.h>, <string.h> unconditionally.
65423         Remove now-unnecessary cast to char *.
65424         * lib/strnlen.c: Include <string.h> unconditionally.
65425         * lib/yesno.c (yesno): Define with a prototype.
65426
65427 2003-09-11  Bruno Haible  <bruno@clisp.org>
65428
65429         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
65430
65431 2003-09-10  Jim Meyering  <jim@meyering.net>
65432
65433         * lib/error.c: Correct indentation of cpp directives.
65434
65435 2003-09-10  Bruno Haible  <bruno@clisp.org>
65436
65437         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
65438         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
65439         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
65440         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
65441         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
65442         <stdlib.h> and <string.h> checks.
65443         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
65444         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
65445
65446 2003-09-10  Bruno Haible  <bruno@clisp.org>
65447
65448         * lib/strcspn.c: Include <string.h> unconditionally.
65449         * lib/strpbrk.c: Include <string.h> unconditionally.
65450         * lib/strstr.c: Include <string.h> unconditionally.
65451         * lib/unicodeio.c: Include <string.h> unconditionally.
65452         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
65453         * lib/unsetenv.c: Likewise.
65454         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
65455         * lib/yesno.c: Include <stdlib.h> unconditionally.
65456         (rpmatch): Add prototype.
65457
65458 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65459
65460         More patches to assume C89 or better.
65461         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
65462         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
65463         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
65464         or for string.h.
65465         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
65466         stdlib.h.
65467         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
65468         C headers.
65469         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
65470         string.h.
65471         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
65472         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
65473         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
65474         or for string.h.
65475         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
65476         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
65477         C headers.
65478         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
65479         memcpy.
65480         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
65481         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
65482         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
65483         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
65484         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
65485         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
65486         string.h, free.
65487         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
65488         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
65489         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
65490         C headers, or for string.h.
65491         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
65492         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
65493         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
65494         headers, memory.h, stdlib.h, string.h, strings.h.
65495         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
65496         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
65497         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
65498         strchr.
65499         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
65500         headers, memory.h, string.h.
65501         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
65502         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
65503         free.
65504         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
65505         headers.
65506         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
65507         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
65508         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
65509         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
65510         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
65511
65512 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65513
65514         More K&R removal.
65515
65516         * lib/acosl.c (main): Use a prototype.
65517         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
65518         tanl.c: Likewise.
65519
65520         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
65521
65522         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
65523         (getopt, etopt_long, getopt_long_only, _getopt_internal)
65524         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
65525         with a prototype.
65526         * lib/getopt.c (const): Remove macro.
65527         Include <string.h> unconditionally.
65528         (my_index): Remove; all uses changed to strchr.
65529         (strlen): Remove decl.
65530         (exchange): Remove forward decl; no longer needed.
65531         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
65532         Define with prototype.
65533         * lib/getopt1.c (const): Remove macro.
65534         (getopt_long, getopt_long_only, main): Define with prototype.
65535
65536         * lib/getugroups.c: Include <string.h> unconditionally.
65537
65538         * lib/getusershell.c: Include <stdlib.h> unconditionally.
65539         (getusershell, setusershell, endusershell, readname, main):
65540         Define with prototypes.
65541
65542         * lib/group-member.c: Include group-member.h first.
65543         Include <stdlib.h> unconditionally.
65544
65545         * lib/hard-locale.c: Include hard-locale.h first.
65546         Include <stdlib.h>, <string.h> unconditionally.
65547
65548         * lib/hash.c (free, malloc): Remove decls.
65549         Include <stdlib.h> unconditionally.
65550
65551         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
65552         (getenv): Do not declare.
65553
65554         * lib/idcache.c: Include <string.h> unconditionally.
65555
65556         * lib/long-options.c: Include long-options.h first, to test interface.
65557         Include <stdlib.h> unconditionally.
65558
65559         * lib/makepath.c: Include makepath.h first, to test interface.
65560         Include <stdlib.h> and <string.h> unconditionally.
65561
65562         * lib/linebuffer.c: Include <stdlib.h>.
65563         (free): Remove decl.
65564
65565         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
65566         stddef.h. rpl_malloc returns void *, not char *.
65567         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
65568         prototype.
65569
65570         * lib/md5.h: Include <limits.h> unconditionally.
65571         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
65572         (__P): Remove; all uses removed.
65573         * lib/md5.c: Include "md5.h" first.
65574         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
65575         md5_buffer, md5_process_bytes, md5_process_block):
65576         Define with prototypes.
65577         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
65578         * lib/sha.c: Include "sha.h" first.
65579         Include <stdlib.h>, <string.h> unconditionally.
65580
65581         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
65582         * lib/memcmp.c (__ptr_t): Likewise.
65583         * lib/memrchr.c (__ptr_t): Likewise.
65584         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
65585         Include <string.h> unconditionally.
65586         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
65587         * lib/memchr.c: Include <stdlib.h> unconditionally.
65588         * lib/memchr.c (LONG_MAX): Remove.
65589         * lib/memrchr.c (LONG_MAX): Likewise.
65590         * lib/memchr.c (__memchr): Define via a prototype.
65591         * lib/memrchr.c (__memrchr): Likewise.
65592         * lib/memcmp.c (__P): Remove, and remove all uses.
65593         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
65594         Remove forward decls; no longer needed.
65595         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
65596         Use types required by C89 in prototype.
65597
65598         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
65599         * lib/savedir.c: Likewise.
65600         * lib/mkdir.c (free): Remove decl.
65601         * lib/rmdir.c (rmdir): Define with a prototype.
65602         * lib/savedir.c: Include savedir.h first, to test interface.
65603
65604         * lib/mktime.c (STDC_HEADERS): Remove.
65605         Include <stdlib.h>, <string.h> unconditionally.
65606
65607         * lib/modechange.c: Include <stdlib.h> unconditionally.
65608         (malloc): Remove decl.
65609
65610         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
65611         (free): Remove decl.
65612
65613         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
65614         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
65615         (This type really should be intptr_t, but that's a C99ism.)
65616         (_obstack_memcpy): Remove: all uses changed to memcpy.
65617         Include <string.h> unconditionally.
65618         (struct obstack): Assume __STDC__ for types of members
65619         chunkfun, freefun, extra_arg.
65620         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
65621         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
65622         obstack_begin, obstack_specify_allocation,
65623         obstack_specify_allocation_with_arg, obstack_chunkfun,
65624         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
65625         Remove unprototyped decls and the macros that use them.
65626         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
65627         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
65628         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
65629         (defined __STDC__ && __STDC__)]:
65630         Remove nonprototyped code.
65631         Include <stdlib.h> unconditionally.
65632         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
65633         _obstack_allocated_p, _obstack_free, obstack_free,
65634         _obstack_memory_used, print_and_abort):
65635         Define using prototypes.
65636         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
65637         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
65638         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
65639         obstack_next_free, obstack_object_size, obstack_room) [0]:
65640         Remove unused, unprototyped code.
65641
65642         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
65643
65644         * lib/physmem.c (physmem_total, physmem_available, main): Define
65645         with prototypes.
65646
65647         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
65648         (main): Define with a prototype.
65649
65650         * lib/posixver.c (getenv): Remove decl.
65651
65652         * lib/putenv.c (malloc): Returns void *, not char *.
65653         Include <string.h> unconditionally.
65654         (strchr, memcpy, NULL): Do not define.
65655
65656         * lib/readtokens.c: Include readtokens.h first, to test interface.
65657         Include <stdlib.h>, <string.h> unconditionally.
65658         (init_tokenbuffer): Define with a prototype.
65659
65660         * lib/regex.c (PARAMS): Remove.  All uses removed.
65661         All uses of _RE_ARGS removed, too.
65662         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
65663         unconditionally.
65664         (bzero): Assume memset exists.
65665         (memcmp, memcpy, NULL): Remove.
65666         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
65667         char, or assignments to local vars of type signed char.
65668         (init_syntax_once, PREFIX(extract_number_and_incr),
65669         PREFIX(print_partial_compiled_pattern),
65670         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
65671         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
65672         PREFIX(regex_grow_registers), PREFIX(regex_compile),
65673         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
65674         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
65675         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
65676         wcs_compile_range, byte_compile_range, truncate_wchar,
65677         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
65678         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
65679         count_mbs_length, wcs_re_match_2_internal,
65680         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
65681         PREFIX(alt_match_null_string_p),
65682         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
65683         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
65684         regfree, PREFIX(extract_number)): Define with prototype.  Remove
65685         now-unnecessary declaration, if any.
65686         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
65687         regcomp, regexec):
65688         Remove now-unnecessary casts among pointer types.
65689         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
65690
65691         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
65692         (free): Remove decl.
65693
65694         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
65695
65696         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
65697         (free): Remove decl.
65698
65699         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
65700         * lib/xgetcwd.c: Likewise.
65701
65702         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
65703         (free): Remove decl.
65704
65705         * lib/strchrnul.c (strchrnul): Define with a prototype.
65706         Fix bug: c_in was not converted to char before searching.
65707
65708         The following changes are not K&R related:
65709
65710         * lib/group-member.h: Include <sys/types.h>, so that this file is
65711         self-contained.
65712         * lib/makepath.h: Likewise.
65713
65714         * lib/getusershell.c (readname, default_index, line_size, readname):
65715         Use size_t, not int, for sizes.
65716         (readname): If the size overflows, report an error instead of
65717         looping forever.
65718
65719 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65720
65721         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
65722         libc.
65723
65724 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65725
65726         * README: New section: portability guidelines.
65727
65728 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65729
65730         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
65731         C89 spec.
65732
65733 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65734
65735         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
65736
65737 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65738
65739         Assume C89 or better; remove K&R cruft.
65740         A few of these changes were first proposed by Derek Robert Price
65741         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
65742
65743         * lib/addext.c: Include <string.h> unconditionally.
65744         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
65745         Don't declare getenv or malloc.
65746
65747         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
65748         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
65749         (NULL): Remove.
65750         (find_stack_direction, alloca): Use prototypes.
65751
65752         * lib/atexit.c (atexit): Define using a prototype.
65753
65754         * lib/basename.c, dirname.c, stripslash.c:
65755         Include <string.h> unconditionally.
65756
65757         * lib/bcopy.c: Include <stddef.h>.
65758         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
65759
65760         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
65761
65762         * lib/error.h (error, error_at_line, error_print_progname)
65763         [! (defined (__STDC__) && __STDC__)]: Remove decls.
65764         * lib/error.c: Include error.h first, to check interface.
65765         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65766         (VA_START): Remove; all uses changeed to va_start.
65767         (exit, strerror): Remove decls.
65768         (error_print_progname): Prototype uncondionally.
65769         Don't include <errno.h>; no longer needed.
65770         (private_strerror): Remove.
65771         (error_tail): Always define.
65772         (error, error_at_line): Assume C89 or better; always use prototypes.
65773         * lib/fatal.c: Include "fatal.h" first, to test interface.
65774         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65775         (VA_START): Remove; all uses changed to va_start.
65776         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
65777         this case.
65778         (exit): Remove decl.
65779         (fatal): Prototype unconditionally.  Assume va_start works.
65780         Abort at end, to pacify gcc.
65781
65782         * lib/euidaccess.c (main): Define with a prototype.
65783
65784         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
65785
65786         * lib/exitfail.c: Include <stdlib.h> unconditionally.
65787
65788         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
65789         prototypes.
65790         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
65791         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
65792         (getenv): Remove decl.
65793         (fnmatch): Define using a prototype.
65794         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
65795         (FCT): Define using a prototype.
65796
65797         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
65798
65799         * lib/gethostname.c: Include <stddef.h>.
65800         (gethostname): Define with prototype.  Length is size_t, not int.
65801
65802 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65803
65804         Assume C89 or better; remove K&R cruft.
65805         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
65806         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
65807         string.h, getenv, malloc.
65808         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
65809         headers.
65810         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
65811         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
65812         do not check for strerror.
65813         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
65814         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
65815         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
65816         do not check for doprnt or vprintf.
65817         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
65818         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
65819
65820 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65821
65822         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
65823         getversion.c should have been removed then, but was accidentally
65824         preserved.
65825
65826         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
65827         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
65828
65829 2003-09-08  Karl Berry  <karl@gnu.org>
65830
65831         * config/config.sub, config.guess, srclistvars.sh: update from savannah
65832                 config, forget about prep.
65833
65834         * config/depcomp, missing: update from automake.
65835
65836 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65837
65838         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
65839         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65840
65841 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65842
65843         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
65844         copy_tm_result.  Bug reported by Simon Josefsson in
65845         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65846
65847 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65848
65849         * m4/time_r.m4: New file.
65850         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
65851         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
65852         is. Check for timegm declaration.
65853         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
65854         Do not check for gmtime_r.
65855         Replace mktime if __mktime_internal does not exist and if mktime
65856         hasn't been replaced already.
65857
65858 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65859
65860         * lib/time_r.c, lib/time_r.h: New files.
65861
65862         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
65863         __localtime_r.
65864         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
65865         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
65866
65867         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
65868         __gmtime_r.
65869         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
65870         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
65871         Include <time_r.h>.
65872
65873         * lib/timegm.c: Switch to glibc implementation, with the following
65874         changes:
65875         [defined HAVE_CONFIG_H]: Include <config.h>.
65876         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
65877         (__mktime_internal) [!defined _LIBC]: New decl.
65878         (__gmtime_r) [!defined _LIBC]: New macro and function.
65879         (timegm): Use a prototype, since gnulib assumes C89.
65880         Do not bother declaring tmp to be const, as it's not really usefu.
65881         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
65882         (timegm): Declare only if HAVE_DECL_TIMEGM.
65883
65884 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65885
65886         * MODULES.html.sh (func_all_modules): Add time_r.
65887         * modules/time_r: New file.
65888         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
65889         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
65890
65891 2003-09-03  Paul Eggert  <eggert@twinsun.com>
65892
65893         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
65894         Bug reported by Lute Kamstra in
65895         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
65896
65897         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
65898         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
65899         course with correspondingly smaller numbers for tomorrow and
65900         yesterday.  From Tadayoshi Funaba.  Originally installed into
65901         sh-utils on 1999-08-07, but the patch got lost (I guess during the
65902         coreutils merge?).
65903
65904 2003-08-31  Simon Josefsson  <jas@extundo.com>
65905
65906         * modules/timegm: New file.
65907         * MODULES.html.sh (func_all_modules): Add timegm.
65908
65909 2003-08-31  Simon Josefsson  <jas@extundo.com>
65910
65911         * m4/timegm.m4: New file.
65912
65913 2003-08-31  Simon Josefsson  <jas@extundo.com>
65914
65915         * lib/timegm.h: New file.
65916         * lib/timegm.c: New file.  Based on
65917         wget-1.8.2/src/http.c:mktime_from_utc.
65918
65919 2003-08-31  Karl Berry  <karl@gnu.org>
65920
65921         * lib/argp.h: update from libc.
65922
65923 2003-08-28  Bruno Haible  <bruno@clisp.org>
65924
65925         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
65926         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
65927         followed by '#define fnmatch fnmatch_posix' gives an error.
65928
65929 2003-08-28  Bruno Haible  <bruno@clisp.org>
65930
65931         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
65932         warning on QNX, which defines O_BINARY to 000000.
65933
65934 2003-08-27  Jim Meyering  <jim@meyering.net>
65935
65936         * m4/mkstemp.m4: Require that the system mkstemp be able to create
65937         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
65938         would fail after 32.  Reported by Danny Levinson.  Details here:
65939         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
65940
65941 2003-08-24  Bruno Haible  <bruno@clisp.org>
65942
65943         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
65944         MSVC7 <stdio.h> is included later.
65945
65946 2003-08-22  Simon Josefsson  <jas@extundo.com>
65947
65948         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
65949
65950 2003-08-20  Karl Berry  <karl@gnu.org>
65951
65952         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
65953
65954 2003-08-20  Bruno Haible  <bruno@clisp.org>
65955
65956         * modules/progname: New file.
65957         * MODULES.html.sh (func_all_modules): Add progname.
65958
65959 2003-08-20  Bruno Haible  <bruno@clisp.org>
65960
65961         * lib/progname.h: New file, from GNU gettext.
65962         * lib/progname.c: New file, from GNU gettext.
65963         * lib/progreloc.c: New file, from GNU gettext.
65964
65965 2003-08-19  Jim Meyering  <jim@meyering.net>
65966
65967         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
65968         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
65969
65970 2003-08-19  Bruno Haible  <bruno@clisp.org>
65971
65972         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
65973         more.
65974
65975 2003-08-19  Bruno Haible  <bruno@clisp.org>
65976
65977         * lib/xstrdup.c: Assume <string.h> exists.
65978
65979 2003-08-18  Paul Eggert  <eggert@twinsun.com>
65980
65981         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
65982         in makefile rules.
65983
65984 2003-08-18  Jim Meyering  <jim@meyering.net>
65985
65986         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
65987         * m4/lib-ld.m4: Likewise.
65988
65989 2003-08-18  Jim Meyering  <jim@meyering.net>
65990
65991         * lib/setenv.h: Indent nested cpp directive.
65992         * lib/vasnprintf.c: Remove trailing blanks.
65993
65994 2003-08-17  Simon Josefsson  <jas@extundo.com>
65995
65996         * modules/xstrndup: New file.
65997         * MODULES.html.sh (func_all_modules): Add xstrndup.
65998
65999 2003-08-17  Simon Josefsson  <jas@extundo.com>
66000
66001         * modules/argp: Fix autoconf macro name. Add more dependencies.
66002
66003 2003-08-17  Simon Josefsson  <jas@extundo.com>
66004
66005         * m4/xstrndup.m4: New file.
66006
66007 2003-08-17  Simon Josefsson  <jas@extundo.com>
66008
66009         * m4/argp.m4: New file.
66010
66011 2003-08-17  Simon Josefsson  <jas@extundo.com>
66012             Bruno Haible  <bruno@clisp.org>
66013
66014         * lib/xstrndup.h: New file.
66015         * lib/xstrndup.c: New file.
66016
66017 2003-08-17  Bruno Haible  <bruno@clisp.org>
66018
66019         * modules/strndup (Files, Include): Add lib/strndup.h.
66020
66021 2003-08-17  Bruno Haible  <bruno@clisp.org>
66022
66023         * modules/euidaccess (Files): Add lib/euidaccess.h.
66024
66025 2003-08-17  Bruno Haible  <bruno@clisp.org>
66026
66027         * lib/strndup.h: New file.
66028
66029 2003-08-17  Bruno Haible  <bruno@clisp.org>
66030
66031         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
66032         like AC_GNU_SOURCE.
66033         * modules/extensions (configure.ac): Comment out the invocation of
66034         gl_USE_SYSTEM_EXTENSIONS.
66035
66036 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66037
66038         Merges from coreutils, etc.
66039         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
66040         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
66041         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
66042         fixing a typo.
66043         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
66044         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
66045
66046 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66047
66048         Document merge from coreutils.
66049         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
66050         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
66051         * modules/utime: Add m4/utimes-null.m4.
66052
66053 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66054
66055         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
66056         space, undoing this 2003-08-12 change:
66057         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
66058
66059 2003-08-16  Paul Eggert  <eggert@twinsun.com>
66060
66061         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
66062         strtoul.c from libc, undoing this 2003-08-12 change:
66063         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
66064
66065 2003-08-16  Jim Meyering  <jim@meyering.net>
66066
66067         Merges from coreutils.
66068         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
66069         prefix.  Adjust cache variables similarly.  Create 500 rather than
66070         just 300 files, to exercise bug on Darwin6.5, too.
66071         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
66072         $missing_dir.
66073         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
66074         AM_SYS_POSIX_TERMIOS.
66075         Reported by mkc@mathdogs.com.
66076         Also change use of $am_cv_sys_posix_termios
66077         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
66078         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
66079         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
66080         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
66081         in /proc/mounts until it finds one with matching device number.  This
66082         is unnecessary when the FILE argument *is* a mount point.  No stat call
66083         is necessary in that case.  So, disable the statvfs-testing code on
66084         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
66085         as RedHat bug# 84846.
66086         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
66087         to 1MB, so as not to render systems with no stack size limit (e.g.,
66088         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
66089         Include <unistd.h>.  On some systems,
66090         it is required for the definition of _SC_PAGESIZE.
66091
66092 2003-08-16  Jim Meyering  <jim@meyering.net>
66093
66094         Merge from coreutils.
66095         * lib/xstrtoimax.c: #else #if -> #elif.
66096         * lib/xstrtoumax.c: Likewise.
66097
66098 2003-08-16  Jim Meyering  <jim@meyering.net>
66099
66100         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
66101         * m4/utimes.m4: Removed.
66102         * m4/utimes-null.m4: Renamed from utimes.m4.
66103
66104         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
66105         to 1MB, so as not to render systems with no stack size limit (e.g.,
66106         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
66107         Include <unistd.h>.  On some systems,
66108         it is required for the definition of _SC_PAGESIZE.
66109
66110 2003-08-16  Jim Meyering  <jim@meyering.net>
66111         and Paul Eggert  <eggert@cs.ucla.edu>
66112
66113         Merges from coreutils, etc.
66114
66115         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
66116         using the latest version from cvs.  This avoids problems with #line
66117         directives using a vendor (Sun) compiler.
66118         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
66119         Don't set GETGROUPS_LIB here; now it's
66120         done via getgroups.m4's wrapper function.
66121         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
66122         rather than just in sh-util/configure.in, so that the
66123         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
66124         same.
66125         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
66126         AC_FUNC_GETLOADAVG where to find getloadavg.c.
66127         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
66128         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
66129         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
66130         Remove code that is now done by the newly-required macros.
66131         Append $(EXEEXT) to DF_PROG.
66132         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
66133         Do not invoke or require the following here,
66134         since prereq.m4 or some gnulib .m4 now does this for us:
66135         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
66136         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
66137         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
66138         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
66139         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
66140         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
66141         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
66142         AC_FUNC_OBSTACK.
66143         Do not replace the following functions, as this is now the job
66144         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
66145         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
66146         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
66147         atexit getpass, strdup, getpagesize.
66148         Replace 'raise'.
66149         Do not check for the following functions, as this is now the job
66150         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
66151         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
66152         setregid.
66153         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
66154         Check for sys/sysctl.h.
66155         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
66156         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
66157         of checking for ssize_t ourselves.
66158
66159         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
66160         Require every macro that gnulib/modules/* suggests for us.
66161         (jm_PREREQ_ADDEXT): New macro.
66162         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
66163         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
66164
66165         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
66166         (gl_PHYSMEM): Use it.
66167         Also check for `table' function.
66168         Check for new headers and functions.
66169         Add check for sys/sysmp.h.
66170         With suggestions from Kaveh Ghazi.
66171         Ignore headers that are present but cannot be compiled.  This
66172         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
66173         C 5.4.
66174
66175 2003-08-15  Paul Eggert  <eggert@twinsun.com>
66176
66177         Document merge from coreutils.
66178         * modules/userspec: Depend on posixver.
66179         * modules/strftime: Depend on tzset.
66180
66181 2003-08-15  Paul Eggert  <eggert@twinsun.com>
66182
66183         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
66184         rather than tab, after '#' in shell-script copyright notices.
66185         Suggested by Bruno Haible.
66186
66187 2003-08-15  Paul Eggert  <eggert@twinsun.com>
66188
66189         * config/srclist-update: Use three spaces, rather than tab, after '#'
66190         in shell-script copyright notices.  Suggested by Bruno Haible.
66191         Remove unnecessary parenthesization in regular expression.
66192
66193 2003-08-15  Jim Meyering  <jim@meyering.net>
66194
66195         Merge from coreutils.
66196         * lib/xgethostname.c: Include <stdlib.h>.
66197         (xghostname): Don't exit for anything other than memory-related
66198         failure; just return NULL.
66199         * lib/userspec.c: Include "posixver.h".
66200         (parse_user_spec): Accept `.' as a separator only
66201         in pre-POSIX-200112 mode.
66202         * lib/strtoimax.c: Use #elif rather than #else #if.
66203         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
66204         Remove function, now that we can rely on a working tzset function.
66205         [!_LIBC]: Ensure that the required autoconf test has been run.
66206         [!defined _NL_CURRENT && HAVE_STRFTIME]:
66207         Use underlying_strftime for %r.
66208         * lib/sha.c: Merge in some clean-up and optimization changes from
66209         glibc.
66210         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
66211         Ensure that it is a multiple of 64.
66212         Rearrange loop exit tests so as to avoid performing an
66213         additional fread after encountering an error or EOF.
66214         * lib/realloc.c: Update copyright date.
66215
66216 2003-08-15  Jim Meyering  <jim@meyering.net>
66217         and Paul Eggert  <eggert@twinsun.com>
66218
66219         Merge from coreutils.
66220         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
66221         member but strut utmpx does not.  Needed for AIX 4.3.3.
66222         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
66223
66224 2003-08-15  Jim Meyering  <jim@meyering.net>
66225         and Paul Eggert  <eggert@cs.ucla.edu>
66226
66227         Merges from coreutils, etc.
66228         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
66229         Require gl_FUNC_TZSET_CLOBBER.
66230         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
66231         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
66232         members.
66233
66234 2003-08-14  Paul Eggert  <eggert@twinsun.com>
66235
66236         Help the merge from coreutils.
66237         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
66238         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
66239         * m4/tzset.m4: Use it too.
66240
66241 2003-08-14  Paul Eggert  <eggert@twinsun.com>
66242
66243         * modules/tzset: New file.
66244
66245 2003-08-14  Jim Meyering  <jim@meyering.net>
66246
66247         Merges from coreutils.
66248         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
66249         variable names, rather than @FNMATCH_H@.
66250         * modules/alloca: Likewise for $(ALLOCA_H).
66251
66252         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
66253         the three copies of the literal target, `fnmatch.h'.
66254         * modules/alloca (alloca.h): Likewise.
66255
66256 2003-08-14  Jim Meyering  <jim@meyering.net>
66257
66258         Merge from coreutils.
66259         * m4/tzset.m4: New file.
66260         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
66261         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
66262         otherwise, AIX 5.1 systems would end up using the latter.
66263         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
66264         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
66265         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
66266         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
66267
66268 2003-08-14  Jim Meyering  <jim@meyering.net>
66269
66270         Merge from coreutils.
66271         * lib/obstack.h: Whitespace changes.
66272         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
66273         and xcalloc return values.
66274         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
66275         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
66276         hang on OSF/1 5.1 for DIR on both local and remote file systems.
66277         Reported by (and fix confirmed by) Nelson H. F. Beebe.
66278         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
66279         error from mntctl.
66280         Use mntctl's return value to drive the entry-processing loop, since
66281         we can't rely on the value of the vmt_length member in the last
66282         entry.  On some systems doing so could result in exhausting
66283         virtual memory.  Based in part on a patch from Mike Jetzer.
66284
66285 2003-08-14  Jim Meyering  <jim@meyering.net>
66286         and Paul Eggert  <eggert@twinsun.com>
66287
66288         Merges from coreutils, plus other fixes.
66289         * lib/physmem.c: Merge in portability changes from gcc/libiberty
66290         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
66291         for credits and details.  Thanks to Kaveh Ghazi for helping
66292         to keep these files in sync.
66293         (ARRAY_SIZE): Define it.
66294         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
66295         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
66296         (memcasecmp): Don't assume size_t fits in unsigned int.
66297         Remove casts and duplicate code.
66298         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
66299         (memcpy): Remove definition.
66300         Merge in some clean-up and optimization changes from glibc.
66301         [BLOCKSIZE]: Move definition to top of file.
66302         Ensure that it is a multiple of 64.
66303         Rearrange loop exit tests so as to avoid performing an
66304         additional fread after encountering an error or EOF.
66305         * lib/md5.h (md5_uintptr): Define.
66306         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
66307         return to the initial working directory.  Preserve errno
66308         for caller.
66309         * lib/idcache.c: Include "xalloc.h".
66310         (xmalloc, xrealloc): Remove decls.
66311         (getuser): Remove casts no longer required in C89.
66312         * lib/human.c: Include stdio.h, for sprintf.
66313         * lib/group-member.c: Include "xalloc.h".
66314         (xmalloc, xrealloc): Remove decls.
66315         (get_group_info): Remove casts no longer required in C89.
66316         * lib/getusershell.c (readname): Remove casts no longer required in
66317         C89.
66318         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
66319         * lib/getline.c: Whitespace fix, from coreutils.
66320
66321 2003-08-13  Paul Eggert  <eggert@twinsun.com>
66322
66323         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
66324         Check for isascii.
66325
66326         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
66327         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
66328         Undo previous (whitespace-only) change.
66329
66330 2003-08-13  Paul Eggert  <eggert@twinsun.com>
66331
66332         * lib/exclude.c: Include <ctype.h>
66333         (IN_CTYPE_DOMAIN): New macro.
66334         (is_space): New fn.
66335         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
66336         and empty lines.
66337
66338         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
66339         Undo previous (whitespace-only) change.
66340
66341 2003-08-13  Paul Eggert  <eggert@twinsun.com>
66342
66343         * config/srclist-update: Change update back to the old behavior,
66344         leaving whitespace alone.  Use one 'sed' command rather than a
66345         pipeline.
66346         (fixlicense): Now a variable, not a function.
66347         (remove_trailing_blanks): Remove.
66348         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
66349         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
66350         Undo previous (whitespace-only) change.
66351
66352 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66353
66354         Merge from coreutils.
66355         * modules/euidaccess: Add lib_SOURCES, include for new
66356         file euidaccess.h
66357
66358 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66359
66360         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
66361         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
66362         Normalize leading white space and remove trailing white space.
66363
66364         Merge from coreutils
66365         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
66366
66367         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
66368         0.12.1.  These files are now being upgraded automatically by
66369         ../config/srclist-update.
66370
66371 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66372
66373         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
66374         Normalize leading white space and remove trailing white space.
66375         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
66376         notice, as per ../config/srclist-update.
66377
66378         Merge from coreutils.
66379         * lib/euidaccess.h: New file.
66380         * lib/euidaccess.c: Include it.
66381         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
66382         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
66383         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
66384
66385 2003-08-12  Paul Eggert  <eggert@twinsun.com>
66386
66387         * config/srclist-update: Add copyright notice.
66388         (remove_id_lines, remove_trailing_blanks): New constants.
66389         (fixfile): Use them to normalize spacing a bit in copied files.
66390         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
66391         Normalize leading white space and remove trailing white space.
66392
66393         * config/texinfo.tex: Sync with texinfo.
66394
66395         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
66396         strtoul.c from libc, to merge coreutils whitespace changes.
66397
66398         * config/srclist.txt: Get the following m4 files from gettext:
66399         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
66400         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
66401         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
66402         wint_t.m4.
66403
66404 2003-08-12  Karl Berry  <karl@gnu.org>
66405
66406         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
66407         been made.
66408
66409 2003-08-11  Paul Eggert  <eggert@twinsun.com>
66410
66411         * modules/gnu-source, m4/gnu-source.m4:
66412         Remove; we're assuming Autoconf 2.54 or later now.
66413         Suggested by Bruno Haible.
66414         * MODULES.html.sh (func_all_modules): Remove gnu-source.
66415
66416 2003-08-11  Bruno Haible  <bruno@clisp.org>
66417
66418         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
66419
66420 2003-08-11  Bruno Haible  <bruno@clisp.org>
66421
66422         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
66423         (vasnprintf): Use it instead of wcslen.
66424
66425 2003-08-11  Bruno Haible  <bruno@clisp.org>
66426
66427         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
66428         value to ensure that _Bool promotes to int. Use #define for _Bool when
66429         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
66430
66431 2003-08-10  Karl Berry  <karl@gnu.org>
66432
66433         * lib/regex.h: update from libc (whitespace fix).
66434
66435 2003-08-09  Paul Eggert  <eggert@twinsun.com>
66436
66437         Merge some files from coreutils.  These changes were
66438         originally made by Jim Meyering.
66439         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
66440         many older Unixes require this.
66441         * lib/alloca.c (alloca): Remove cast to argument of free;
66442         no longer needed in C89.
66443         * lib/alloca_.h, regex.h: Fix white space to match
66444         what GNU indent does.
66445
66446 2003-08-09  Paul Eggert  <eggert@twinsun.com>
66447
66448         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
66449         apparently Emacs's Unicode mode got confused before my 2003-08-05
66450         checkin.
66451
66452 2003-08-08  Paul Eggert  <eggert@twinsun.com>
66453
66454         * m4/extensions.m4: New file.
66455         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
66456         Require gl_USE_SYSTEM_EXTENSIONS.
66457         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
66458         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
66459
66460 2003-08-08  Paul Eggert  <eggert@twinsun.com>
66461
66462         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
66463         * modules/extensions, modules/gnu-source: New files.
66464         * modules/timespec, modules/unlocked-io: Depend on extensions.
66465
66466 2003-08-07  Paul Eggert  <eggert@twinsun.com>
66467
66468         * modules/restrict: New file.
66469         * MODULES.html.sh (func_all_modules): Add restrict.
66470         * modules/regex: Depend on restrict.
66471
66472 2003-08-07  Paul Eggert  <eggert@twinsun.com>
66473
66474         * m4/restrict.m4: New file.
66475         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
66476
66477 2003-08-07  Bruno Haible  <bruno@clisp.org>
66478
66479         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
66480         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
66481
66482 2003-08-07  Bruno Haible  <bruno@clisp.org>
66483
66484         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
66485         makes the module 'getndelim2' compatible with the module 'getline'.
66486
66487 2003-08-05  Paul Eggert  <eggert@twinsun.com>
66488
66489         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
66490         byte with "\201" to avoid glitches when editing that source file
66491         with multi-gnome-terminal.
66492
66493 2003-08-05  Paul Eggert  <eggert@twinsun.com>
66494
66495         * lib/bumpalloc.h: Remove.
66496
66497 2003-08-05  Paul Eggert  <eggert@twinsun.com>
66498
66499         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
66500         * modules/bumpalloc: Remove.
66501
66502 2003-08-04  Paul Eggert  <eggert@twinsun.com>
66503
66504         * lib/getloadavg.c: Change copyright notice and spacing to conform to
66505         GNU coding style.
66506
66507         Merge from coreutils.
66508         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
66509         1. From glibc.
66510         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
66511         from Karl Berry, implemented by Jim Meyering.
66512         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
66513         from Dmitry V. Levin.
66514         Remove anachronistic cast of xrealloc.
66515         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
66516         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
66517         type. Otherwise, it wouldn't compile with at least /bin/cc on
66518         ymp-cray-unicos9.0.2.X.
66519         Combine two mostly-identical uses of alloca into one.
66520         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
66521
66522 2003-08-04  Dave Love  <d.love@dl.ac.uk>
66523
66524         [From Emacs.]
66525
66526         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
66527         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
66528         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
66529         obsolete NLIST_NAME_UNION.
66530         [__GNU__]: Undef BSD and FSCALE.
66531         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
66532
66533 2003-08-03  Paul Eggert  <eggert@twinsun.com>
66534
66535         * lib/stdbool_.h (_Bool): Make it signed char, instead of
66536         an enum type, so that it's guaranteed to promote to int.  See:
66537         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
66538
66539 2003-08-03  Karl Berry  <karl@gnu.org>
66540
66541         * config/depcomp: update from automake.
66542
66543 2003-07-31  Paul Eggert  <eggert@twinsun.com>
66544
66545         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
66546         (strerror): Don't assume that a printable int fits in 14 bytes.
66547
66548 2003-07-31  Bruno Haible  <bruno@clisp.org>
66549
66550         * modules/getpass-gnu: New file.
66551         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
66552
66553 2003-07-31  Bruno Haible  <bruno@clisp.org>
66554
66555         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
66556
66557 2003-07-24  Karl Berry  <karl@gnu.org>
66558
66559         * config/missing: update from automake.
66560
66561 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
66562             Bruno Haible  <bruno@clisp.org>
66563
66564         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
66565         * lib/getline.c (getline, getdelim): Likewise.
66566         Remove _GNU_SOURCE define; now it's defined in config.h through
66567         m4/getline.m4.
66568
66569 2003-07-23  Karl Berry  <karl@gnu.org>
66570
66571         * config/config.sub: update from prep.
66572
66573 2003-07-22  Paul Eggert  <eggert@twinsun.com>
66574
66575         * modules/xalloc (Depends-on): Add exitfail.
66576         * modules/xmemcoll: Likewise.
66577
66578 2003-07-22  Paul Eggert  <eggert@twinsun.com>
66579
66580         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
66581         over-parenthesization in macros.
66582
66583         Sync with coreutils.
66584
66585         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
66586         required by C99.
66587
66588         Use `exit_failure' for xalloc and xmemcoll instead of their own
66589         private exit-failure variables.
66590         * lib/xalloc.h (xalloc_exit_failure): Remove.
66591         * lib/xmalloc.c: Likewise.  Include exitfail.h.
66592         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
66593         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
66594         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
66595         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
66596
66597 2003-07-20  Jim Meyering  <jim@meyering.net>
66598
66599         * modules/closeout (Depends-on): Add exitfail.
66600         Suggestion from Bruno Haible.
66601
66602 2003-07-19  Karl Berry  <karl@gnu.org>
66603
66604         * config/config.sub: update from prep.
66605
66606 2003-07-18  Paul Eggert  <eggert@twinsun.com>
66607
66608         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
66609         Remove.
66610         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
66611         to test that it can stand by itself.  Include "exitfail.h".
66612         Clients should set exit_failure instead.
66613         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
66614
66615 2003-07-18  Bruno Haible  <bruno@clisp.org>
66616
66617         * modules/getndelim2: New file.
66618         * modules/getline: Share files with module getndelim2.
66619         * modules/getnline: Depend on getndelim2 instead of sharing files with
66620         it. Add getnline.c to lib_SOURCES.
66621         * MODULES.html.sh (func_all_modules): Add getndelim2.
66622
66623 2003-07-18  Bruno Haible  <bruno@clisp.org>
66624
66625         * m4/getndelim2.m4: New file.
66626         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
66627         invoke gl_PREREQ_GETNDELIM2.
66628         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
66629         gl_PREREQ_GETNDELIM2.
66630         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
66631         gl_GETNDELIM2.
66632
66633 2003-07-18  Bruno Haible  <bruno@clisp.org>
66634
66635         * lib/getndelim2.h: New file.
66636         * lib/getndelim2.c: Make into a module of its own. Include config.h,
66637         getndelim2.h.
66638         (getndelim2): Make non-static. Change return type to ssize_t.
66639         * lib/getline.h: Change argument names.
66640         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
66641         * lib/getnline.c: Include getndelim2.h.
66642
66643 2003-07-18  Andreas Schwab  <schwab@suse.de>
66644
66645         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
66646
66647 2003-07-17  Karl Berry  <karl@gnu.org>
66648
66649         * config/config.sub: update from prep.
66650
66651 2003-07-17  Bruno Haible  <bruno@clisp.org>
66652
66653         * modules/getnline: New file.
66654         * modules/getline: Add lib/getndelim2.c to source file list.
66655         * MODULES.html.sh (func_all_modules): Add getnline.
66656
66657 2003-07-17  Bruno Haible  <bruno@clisp.org>
66658
66659         * m4/getnline.m4: New file.
66660
66661 2003-07-17  Bruno Haible  <bruno@clisp.org>
66662
66663         * m4/Makefile.am.in: Remove file.
66664         * m4/Makefile.am: Remove file.
66665         * m4/Makefile.in: Remove file.
66666
66667 2003-07-17  Bruno Haible  <bruno@clisp.org>
66668
66669         * lib/getnline.h: New file.
66670         * lib/getnline.c: New file.
66671         * lib/getndelim2.c: New file, extracted from getline.c.
66672         (getndelim2): Renamed from getdelim2, with added nmax argument.
66673         * lib/getline.c: Include getndelim2.c.
66674         (getdelim2): Moved out to getndelim2.c.
66675         (getline, getdelim): Update.
66676
66677 2003-07-17  Bruno Haible  <bruno@clisp.org>
66678
66679         * lib/Makefile.am: Remove file.
66680         * lib/Makefile.in: Remove file.
66681
66682 2003-07-17  Bruno Haible  <bruno@clisp.org>
66683
66684         * configure.in: Remove file.
66685         * Makefile.in: Remove file.
66686
66687 2003-07-17  Bruno Haible  <bruno@clisp.org>
66688
66689         * MODULES.html.sh: Put the </BODY> right before </HTML>.
66690
66691 2003-07-16  Karl Berry  <karl@gnu.org>
66692
66693         * config/srclist-update: was running fixlicense twice, which caused
66694                 texinfo.tex to be nullified for some reason.  Simplify,
66695                 $gplsrc is no longer needed as far as I can see?
66696
66697 2003-07-16  Jim Meyering  <jim@meyering.net>
66698
66699         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
66700
66701 2003-07-15  Paul Eggert  <eggert@twinsun.com>
66702
66703         * config/srclist.txt: Get the following files from gettext-runtime/intl
66704         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
66705         ref-del.sin.  From Bruno Haible.
66706         * config/srclist-update (fixfile): Change grep pattern again, since the
66707         previous fix didn't work (there was another trailing $).  Use
66708         '[$]' to escape the $s.
66709
66710 2003-07-15  Karl Berry  <karl@gnu.org>
66711
66712         * lib/vasnprintf.c: update from gettext.
66713
66714 2003-07-15  Karl Berry  <karl@gnu.org>
66715
66716         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
66717         gets expanded when surrounded by '$'.
66718
66719 2003-07-15  Jim Meyering  <jim@meyering.net>
66720
66721         * modules/save-cwd: Don't depend on error.  From Derek Price.
66722
66723 2003-07-15  Jim Meyering  <jim@meyering.net>
66724
66725         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
66726
66727 2003-07-14  Simon Josefsson  <jas@extundo.com>
66728
66729         * modules/mempcpy: New file.
66730         * MODULES.html.sh (func_all_modules): Add mempcpy.
66731
66732 2003-07-14  Simon Josefsson  <jas@extundo.com>
66733
66734         * m4/mempcpy.m4: New file.
66735
66736 2003-07-14  Simon Josefsson  <jas@extundo.com>
66737
66738         * lib/mempcpy.h: New file.
66739         * lib/mempcpy.c: New file.
66740
66741 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66742
66743         * modules/getdate, modules/posixtm: Depend on mktime.
66744
66745 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66746
66747         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
66748         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
66749         unicodeio.c, unicodeio.h, unlocked-io.h:
66750         Switch from LGPL to GPL.
66751
66752 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66753
66754         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
66755         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
66756         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
66757         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
66758         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
66759         updated automatically by ../config/srclist-update.  This changes
66760         their license from LPGL to GPL.
66761
66762 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66763
66764         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
66765         assumed to refer to the root of the most recent stable gettext version.
66766         * config/srclistvars.sh: Add defaults for eggert.
66767         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
66768         Match "This program" as well as "The program".  This is needed
66769         for gettext.
66770
66771 2003-07-14  Jim Meyering  <jim@meyering.net>
66772
66773         Don't emit diagnostics.  Let callers do that.
66774         * lib/save-cwd.c: Don't include "error.h".
66775         (save_cwd): Don't call error.  Ensure that errno is valid
66776         when returning nonzero.
66777
66778         * lib/save-cwd.h (restore_cwd): Update prototype.
66779         * lib/save-cwd.c (restore_cwd): Remove two parameters.
66780         Simplify.  Don't call error upon failure.  Let callers do that.
66781         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
66782         when auditing is enabled.  But don't bother updating the #if.
66783
66784 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
66785
66786         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
66787         it breaks C++ compilation.
66788         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
66789
66790 2003-07-10  Simon Josefsson  <jas@extundo.com>
66791
66792         * modules/strchrnul (Makefile.am): Add strchrnul.h.
66793
66794 2003-07-10  Jim Meyering  <jim@meyering.net>
66795
66796         * m4/clock_time.m4: Remove trailing blank.
66797         * m4/intmax_t.m4: Likewise.
66798
66799 2003-07-10  Jim Meyering  <jim@meyering.net>
66800
66801         * lib/vasnprintf.c: Remove trailing blanks.
66802         Make cpp indentation consistent.
66803
66804 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66805
66806         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
66807         posixver.c, strftime.c, strnlen.c, strverscmp.c:
66808         Switch from LGPL to GPL.
66809
66810 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66811
66812         * config/srclist.txt: Sort sublists.  Add
66813         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
66814         that differ from gnulib for one reason or another; we'd like this list
66815         to be smaller but for now let's document what we have.
66816
66817 2003-07-08  Paul Eggert  <eggert@twinsun.com>
66818
66819         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
66820         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
66821         and sweeter "eval x=$x".
66822         * config/srclist.txt: Get lib/argp* from glibc.
66823
66824 2003-07-07  Paul Eggert  <eggert@twinsun.com>
66825
66826         * lib/mktime.c: Fix some boundary cases and remove need for floating
66827         point.
66828
66829         Issue a compile-time diagnostic if time_t is floating point, or if
66830         two's complement arithmetic is not in effect, or if arithmetic
66831         right shift does not propagate the sign.  These assumptions were
66832         all in the original code but they weren't checked.
66833
66834         (TIME_T_MIDPOINT, verify): New macros.
66835         (__isleap): Remove; it has integer overflow problems.
66836         (leapyear): New function, without those problems.
66837         (ydhms_tm_diff): Remove; splitting into two parts.
66838         (ydhms_diff): New function, containing the arithmetic part of
66839         the old ydhms_tm_diff function.  Issue a compile-time
66840         diagnostic if we are not using C99 integer division.
66841         Avoid casts when possible.
66842         (guess_time_tm): New function, containing the checking part of
66843         the old ydhms_tm_diff function.  Return the new value, rather than
66844         the difference between it and the old.  Accept a new argument T
66845         so that *T specifies the old value.  Check for overflow in the result.
66846
66847         (__mktime_internal): Use a time_t offset, not a long int offset.
66848         This undoes the 2003-06-04 change, which is no longer needed now
66849         that we have better overflow checking.
66850         (localtime_offset): Likewise.
66851
66852         (__mktime_internal): Avoid harmful overflow on hosts where time_t
66853         and long are 64-bit but int is only 32-bit.
66854         (ydhms_diff): Use long int to store year1 and yday1.
66855         Issue a compile-time diagnostic if long int is not wide enough.
66856
66857         (__mktime_internal): Use long int to store adjusted year and yday.
66858         Use plain C rather than preprocessor commands, if that doesn't
66859         affect efficiency.
66860         Check for overflow (and try to repair) after each probe
66861         rather than checking only at the very end.  This avoids some bugs
66862         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
66863         does not equal GMT offset at maximum time).
66864         Use integer to check for overflow rather than floating point; this
66865         is more portable to non-IEEE hosts, and is a tad faster.
66866         When we detect that we are oscillating between two values,
66867         don't check whether tm_isdst has the requested value, since
66868         we already know the answer.  When tm_isdst has the wrong value,
66869         use a different heuristic to find the right one, based on the
66870         extreme values actually observed in practice in tz2003a,
66871         rather than the (overly optimistic) "previous 3 calendar quarters".
66872
66873         (not_equal_tm, print_tm, check_result): Use "const T" rather than
66874         "T const" to accommodate glibc style.
66875         (check_result): Use less-confusing report format.  "long" -> "long int.
66876         (main): Likewise.
66877         Don't loop if the iteration overflows time_t.
66878         Allow a negative step in the iteration.
66879
66880 2003-07-06  Karl Berry  <karl@gnu.org>
66881
66882         * config/depcomp: update from automake.
66883         * config/config.sub: update from prep.
66884
66885 2003-07-03  Karl Berry  <karl@gnu.org>
66886
66887         * config/config.guess: update from prep.
66888
66889 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66890
66891         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
66892         xreadlink.c now includes it unconditionally.
66893
66894 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66895
66896         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
66897         having it depend on HAVE_SYS_TYPES_H.
66898
66899 2003-07-01  Bruno Haible  <bruno@clisp.org>
66900
66901         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
66902         <sys/types.h> should be sufficient.
66903         Reported by Paul Eggert.
66904
66905 2003-06-26  Karl Berry  <karl@gnu.org>
66906
66907         * config/depcomp: update from automake.
66908
66909 2003-06-26  Bruno Haible  <bruno@clisp.org>
66910
66911         * modules/human: Depend on module stdbool.
66912
66913 2003-06-25  Bruno Haible  <bruno@clisp.org>
66914
66915         * modules/readlink: New file.
66916         * modules/xreadlink: Depend on it.
66917         * MODULES.html.sh (func_all_modules): Add readlink.
66918
66919 2003-06-25  Bruno Haible  <bruno@clisp.org>
66920
66921         * m4/readlink.m4: New file.
66922
66923 2003-06-25  Bruno Haible  <bruno@clisp.org>
66924
66925         * lib/readlink.c: New file.
66926
66927 2003-06-22  Karl Berry  <karl@gnu.org>
66928
66929         * config/srclist.txt: update mkinstalldirs from automake.
66930         * config/mkinstalldirs: update.
66931
66932 2003-06-22  Bruno Haible  <bruno@clisp.org>
66933
66934         Portability to mingw32.
66935         * m4/ssize_t.m4: New file, from GNU gettext.
66936         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
66937         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
66938
66939 2003-06-22  Bruno Haible  <bruno@clisp.org>
66940
66941         * modules/safe-read: Add m4/ssize_t.m4.
66942         * modules/xreadlink: Add m4/ssize_t.m4.
66943
66944 2003-06-20  Bruno Haible  <bruno@clisp.org>
66945
66946         Assume C89, so PARAMS isn't needed.
66947         * lib/unicodeio.h (PARAMS): Remove.
66948         * lib/unicodeio.c: Don't use PARAMS.
66949
66950 2003-06-18  Karl Berry  <karl@gnu.org>
66951
66952         * config/config.{guess,sub}: update from prep.
66953
66954 2003-06-18  Jim Meyering  <jim@meyering.net>
66955
66956         Merge changes from coreutils.
66957         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
66958         Remove explicit declarations of xmalloc and realloc.
66959         Include xalloc.h.
66960         (read_utmp): Remove anachronistic cast of xmalloc.
66961
66962 2003-06-17  Paul Eggert  <eggert@twinsun.com>
66963
66964         Assume C89, so PARAMS isn't needed.
66965         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
66966         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
66967         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
66968         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
66969         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
66970         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
66971         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
66972         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
66973         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
66974         lib/xstrtod.h, lib/xstrtol.h: Likewise.
66975         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
66976         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
66977         no longer needed. Anyway, config.h should always be included before any
66978         other file.
66979
66980 2003-06-11  Simon Josefsson  <jas@extundo.com>
66981
66982         * modules/sysexits: New file.
66983         * MODULES.html.sh (func_all_modules): Add sysexits.
66984
66985 2003-06-11  Simon Josefsson  <jas@extundo.com>
66986
66987         * lib/sysexit_.h: New file.
66988
66989 2003-06-11  Derek Price  <derek@ximbiot.com>
66990
66991         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
66992         necessary.
66993
66994 2003-06-11  Bruno Haible  <bruno@clisp.org>
66995
66996         * m4/sysexits.m4: New file.
66997
66998 2003-06-10  Simon Josefsson  <jas@extundo.com>
66999
67000         * lib/argp.h: New file, from glibc.
67001         * lib/argp-ba.c: New file, from glibc.
67002         * lib/argp-eexst.c: New file, from glibc.
67003         * lib/argp-fmtstream.c: New file, from glibc.
67004         * lib/argp-fmtstream.h: New file, from glibc.
67005         * lib/argp-fs-xinl.c: New file, from glibc.
67006         * lib/argp-help.c: New file, from glibc.
67007         * lib/argp-namefrob.h: New file, from glibc.
67008         * lib/argp-parse.c: New file, from glibc.
67009         * lib/argp-pv.c: New file, from glibc.
67010         * lib/argp-pvh.c: New file, from glibc.
67011         * lib/argp-xinl.c: New file, from glibc.
67012
67013 2003-06-10  Simon Josefsson  <jas@extundo.com>
67014
67015         * modules/strchrnul: New file.
67016
67017 2003-06-10  Simon Josefsson  <jas@extundo.com>
67018
67019         * modules/argp: New file.
67020
67021 2003-06-10  Simon Josefsson  <jas@extundo.com>
67022
67023         * m4/strchrnul.m4: New file.
67024
67025 2003-06-10  Simon Josefsson  <jas@extundo.com>
67026
67027         * lib/strchrnul.h: New file.
67028         * lib/strchrnul.c: New file.
67029
67030 2003-06-10  Bruno Haible  <bruno@clisp.org>
67031
67032         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
67033
67034 2003-06-07  Karl Berry  <karl@gnu.org>
67035
67036         * config/config.{guess,sub}: update from prep.
67037
67038 2003-06-07  Jim Meyering  <jim@meyering.net>
67039
67040         * modules/strtod: Use $(...) notation, not @...@ for
67041         AC_REPLACE'd variables.
67042         * modules/localcharset: Likewise.
67043
67044 2003-06-07  Jim Meyering  <jim@meyering.net>
67045
67046         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
67047         in place of my name in the copyright comment.
67048         Remove definition and uses of __P.
67049
67050         From coreutils.
67051         * lib/stat.c: Don't declare xmalloc explicitly.
67052         Instead, include "xalloc.h".
67053         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
67054         xrealloc, and xcalloc return values.
67055         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
67056         Improve comment.
67057         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
67058
67059 2003-06-07  Bruno Haible  <bruno@clisp.org>
67060
67061         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
67062         avoid AC_CONFIG_LINKS.
67063         * modules/fnmatch (Makefile.am): Use explicit creation rule for
67064         fnmatch.h, to avoid AC_CONFIG_LINKS.
67065         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
67066
67067 2003-06-07  Bruno Haible  <bruno@clisp.org>
67068
67069         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
67070         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
67071         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
67072         directory.
67073         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
67074         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
67075         directory.
67076
67077 2003-06-06  Jim Meyering  <jim@meyering.net>
67078
67079         Merge from coreutils.
67080         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
67081         Consolidate declarations and initializations of *_base* locals.
67082
67083         Merge from coreutils.
67084         This avoids a core dump on systems without GNU putenv,
67085         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
67086         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
67087         (unsetenv): New static function, from GNU libc.
67088         (rpl_putenv): Use it.
67089
67090         * lib/modechange.c: Remove trailing blanks.
67091
67092         Merge from coreutils.
67093         * lib/fsusage.c: Remove declaration of statfs.
67094         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
67095
67096         * lib/posixtm.c: Include <stdbool.h> unconditionally.
67097
67098 2003-06-06  Jim Meyering  <jim@meyering.net>
67099
67100         * lib/stdbool_.h: Renamed from stdbool.h.in.
67101
67102 2003-06-06  Jim Meyering  <jim@meyering.net>
67103             Bruno Haible  <bruno@clisp.org>
67104
67105         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
67106         Adjust Makefile.am snippet not to redirect directly to target.
67107         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
67108
67109 2003-06-05  Paul Eggert  <eggert@twinsun.com>
67110
67111         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
67112         mismatch, look in future quarters as well as past.  This fixes a
67113         bug when processing fall-backwards gaps immediately after a long
67114         period of daylight-saving time.
67115
67116         * lib/mktime.c: Assume freestanding C89 or better.
67117         (HAVE_LIMITS_H): Remove.  Assume it's 1.
67118         (__P): Remove; not used.
67119         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
67120         (mktime, not_equal_tm, print_tm, check_result,
67121         main): Use prototypes.  Use const * where appropriate.
67122         (main): Fix typo in testing code that uncovered by above changes.
67123         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
67124
67125 2003-06-04  Paul Eggert  <eggert@twinsun.com>
67126
67127         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
67128         locale.h, localeconv.  This merges changes from coreutils.
67129
67130         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
67131         It can be removed after the next Autoconf is released.
67132         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
67133         needed.
67134
67135 2003-06-04  Paul Eggert  <eggert@twinsun.com>
67136
67137         * lib/mktime.c: Fix Debian bug 177940
67138         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
67139         (localtime_offset): Now long int, not time_t, because we want it
67140         to be guaranteed to be signed.  All uses changed.
67141         (__mktime_internal): If overflow would occur when adding offset,
67142         don't add it.
67143
67144         Merge 'human' changes from coreutils.  Rewrite to support
67145         locale-specific notations like thousands separators.
67146         * lib/human.c: Simplify authorship notice.
67147         Include human.h immediately after config.h.
67148         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
67149         <limits.h>: Do not include, since human.h does.
67150         (SIZE_MAX, UINTMAX_MAX): New macros.
67151         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
67152         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
67153         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
67154         (power_letter): Renamed from suffixes.
67155         (generate_suffix_backwards): Remove.
67156         (adjust_value): Now takes int style (because of human.h changes)
67157         and long double value (for greater precision on some platforms).
67158         (group_number): New function.
67159         (human_readable): Use it.  Use integer options, not enum.
67160         Put the options before the sizes in the arg list.
67161         Support all the new options.
67162         The old human_readable function has been removed;
67163         use inttostr.h instead.
67164         (human_readable, default_block_size, humblock):
67165         Use uintmax_t, not int, for block sizes.
67166         (human_readable_inexact, block_size_types): Remove.
67167         (block_size_opts): New constant.
67168         (human_options): Renamed from human_block_size, with new signature
67169         that allows block sizes up to UINTMAX_MAX.  All callers changed.
67170         * lib/human.h: Add copyright and authorship notice.
67171         Include <limits.h> and <stdbool.h> unconditionally.
67172         (PARAMS): Remove.  All uses removed.
67173         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
67174         (enum human_inexact_style): Remove tag; now a nameless enum.
67175         (human_floor, human_ceiling, human_round_to_even): Now have
67176         values 2, 0, 1 rather than -1, 1, 0.
67177         (human_group_digits, human_suppress_point_zero, human_autoscale,
67178         human_base_1024, human_SI, human_B): New constants.
67179         (human_readable_inexact, human_block_size): Remove.
67180         (human_readable): Size args are now uintmax_t, not int.
67181         (human_options): New decl.
67182
67183         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
67184         unnecessary now that we assume C89 or better.  This change
67185         imported from coreutils.
67186
67187         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
67188         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
67189         in the 2003-05-30 sync from glibc.
67190
67191         .h files should stand alone, but we shouldn't include <sys/types.h>
67192         if we can get away with just <stddef.h>.
67193
67194         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
67195         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
67196         rather than <sys/types.h>, as we merely need size_t.
67197         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
67198         to get size_t.
67199         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
67200         Include <stdio.h>, to get FILE.
67201         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
67202         memcasecmp.h has included <stddef.h> and all we need is size_t.
67203         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
67204         our interface, instead of including <sys/types.h>
67205
67206 2003-06-04  Paul Eggert  <eggert@twinsun.com>
67207
67208         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
67209         now, as glibc mktime is buggy on non-glibc systems.
67210
67211 2003-06-03  Karl Berry  <karl@gnu.org>
67212
67213         * config/config.sub: update from prep.
67214
67215 2003-06-02  Paul Eggert  <eggert@twinsun.com>
67216
67217         [from coreutils]
67218         Fix some minor time-related bugs with POSIX time arguments.
67219         Some valid time stamps were being rejected (notably -1, and
67220         time stamps before 1900 on 64-bit hosts).  And some invalid
67221         time stamps were being accepted, e.g. September 31.
67222
67223         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
67224         that we can return (time_t) -1 successfully.
67225         * lib/posixtm.c: Likewise.
67226         [HAVE_STDBOOL_H]: Include <stdbool.h>.
67227         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
67228         (t): Remove static var.
67229         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
67230         of static var.  All uses changed.
67231         (year): Do not reject years before 1900; they can occur with
67232         64-bit time_t.
67233         (posix_time_parse): Do not check for out-of-range components;
67234         that is now the caller's responsibility, since our checks were
67235         only approximations.
67236         (posixtime): Use mktime to check for out-of-range components,
67237         since it knows them exactly.
67238         If mktime returns (time_t) -1, check whether an error actually occurred
67239         by invoking localtime on -1.
67240         (main) [TEST_POSIXTIME]: Check for input data errors, and report
67241         posixtime failures better.
67242         Improve the test data (in comments only).
67243
67244 2003-06-02  Karl Berry  <karl@gnu.org>
67245
67246         * config/mkinstalldirs (version): new variable.
67247         (--version): new option.
67248         (usage): improve message.
67249
67250 2003-05-30  Karl Berry  <karl@gnu.org>
67251
67252         * lib/mktime.c: update from libc.
67253
67254 2003-05-30  Bruno Haible  <bruno@clisp.org>
67255
67256         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
67257         * config/config.rpath: Upgrade to gettext-0.12.1.
67258
67259 2003-05-30  Bruno Haible  <bruno@clisp.org>
67260
67261         * m4/gettext.m4: Upgrade to gettext-0.12.1.
67262         * m4/nls.m4: New file, from gettext-0.12.1.
67263         * m4/po.m4: New file, from gettext-0.12.1.
67264         * m4/progtest.m4: Upgrade to gettext-0.12.1.
67265
67266 2003-05-30  Bruno Haible  <bruno@clisp.org>
67267
67268         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
67269         * lib/localcharset.h: Likewise.
67270         * lib/localcharset.c: Likewise.
67271
67272 2003-05-29  Karl Berry  <karl@gnu.org>
67273
67274         * config/config.rpath: update from gettext.
67275
67276 2003-05-28  Paul Eggert  <eggert@twinsun.com>
67277
67278         Assume the headers required for C89 freestanding compilers.
67279         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
67280         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
67281         * m4/human.m4 (gl_HUMAN): Likewise.
67282         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
67283         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
67284         * m4/userspec.m4 (gl_USERSPEC): Likewise.
67285         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
67286         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67287         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
67288
67289 2003-05-28  Paul Eggert  <eggert@twinsun.com>
67290
67291         Assume the headers required for C89 freestanding compilers.
67292         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
67293         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
67294         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
67295         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
67296         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
67297         define, since <limits.h> is guaranteed to do that.
67298         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
67299         * lib/exclude.c: Include <stdbool.h> unconditionally.
67300         * lib/tempname.c: Include <stddef.h> unconditionally.
67301         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
67302         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
67303         <stddef.h> does that.
67304         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
67305         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
67306         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
67307         needed.
67308         * lib/xstrtol.c: Likewise.
67309         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
67310         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
67311
67312         * lib/addext.c (addext): Use assignment rather than cast, to avoid
67313         warnings on some platforms.
67314
67315         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
67316         arbitrarily.
67317
67318 2003-05-26  Jim Meyering  <jim@meyering.net>
67319
67320         Merge in a change from coreutils:
67321         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
67322         that is guaranteed to be `no'.  Use `no_such_member' to indicate
67323         that condition, rather than `-1' which is slightly misleading.
67324         Change the name of the cache variable to have the gl_ prefix.
67325         Prompted by a patch from Richard Dawe for DJGPP.
67326
67327 2003-05-24  Karl Berry  <karl@gnu.org>
67328
67329         * config/config.guess: update from prep.
67330
67331 2003-05-22  Karl Berry  <karl@gnu.org>
67332
67333         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
67334
67335 2003-05-20  Karl Berry  <karl@gnu.org>
67336
67337         * config/config.guess: update from prep.
67338
67339 2003-05-18  Karl Berry  <karl@gnu.org>
67340
67341         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
67342         might actually be set by the user.
67343
67344         * config/depcomp, install-sh, mdate-sh: update from automake.
67345
67346 2003-05-17  Bruno Haible  <bruno@clisp.org>
67347
67348         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
67349         invalid expansion for AC_EGREP_CPP.
67350         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
67351         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
67352         Suggested by Akim Demaille <akim@epita.fr> in
67353         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
67354
67355 2003-05-12  Jim Meyering  <jim@meyering.net>
67356
67357         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
67358         the space-padded-by-default conversion specifiers, %e, %k, %l.
67359
67360 2003-05-12  Bruno Haible  <bruno@clisp.org>
67361
67362         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
67363         the string is longer than 4 KB.
67364
67365 2003-05-11  Karl Berry  <karl@gnu.org>
67366
67367         * config/config.{guess,sub}: update from prep.
67368
67369 2003-05-09  Bruno Haible  <bruno@clisp.org>
67370
67371         * modules/error: Add m4/strerror_r.m4 to file list.
67372
67373 2003-05-03  Bruno Haible  <bruno@clisp.org>
67374
67375         Upgrade to Unicode-4.0.
67376         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
67377         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
67378         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
67379         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
67380         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
67381         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
67382         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
67383         Change width of U+E0100..U+E01EF from 1 to 0.
67384
67385 2003-04-25  Jim Meyering  <jim@meyering.net>
67386
67387         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
67388         of type size_t, not int.
67389
67390 2003-04-25  Bruno Haible  <bruno@clisp.org>
67391
67392         * lib/copy-file.c: Include <stddef.h>, for size_t.
67393
67394 2003-04-21  Paul Eggert  <eggert@twinsun.com>
67395
67396         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
67397         code which expansion is under static control.  Patch imported from
67398         Akim Demaille's patch to Bison; see
67399         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
67400
67401 2003-04-14  Bruno Haible  <bruno@clisp.org>
67402
67403         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
67404
67405 2003-04-11  Jim Meyering  <jim@meyering.net>
67406
67407         Merge changes from Coreutils.
67408
67409         2003-03-22  Jim Meyering  <jim@meyering.net>
67410
67411         * lib/strftime.c (widen): Cast alloca return value to proper type.
67412
67413         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
67414
67415         From GNU libc.
67416         * lib/strftime.c (my_strftime): Handle very large width
67417         specifications for numeric values correctly.  Improve checks for
67418         overflow.
67419
67420         2003-01-19  Jim Meyering  <jim@meyering.net>
67421
67422         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
67423         definitions.
67424         (nl_get_alt_digit) [! defined my_strftime]: Define.
67425         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
67426         _nl_get_alt_digit and _nl_get_walt_digit.
67427
67428         * lib/strftime.c (my_strftime): Merge in locale-related changes from
67429         libc. These changes have no effect outside of _LIBC.
67430
67431 2003-04-10  Bruno Haible  <bruno@clisp.org>
67432
67433         * modules/findprog: New file.
67434         * MODULES.html.sh (func_all_modules): Add it.
67435
67436 2003-04-10  Bruno Haible  <bruno@clisp.org>
67437
67438         * m4/findprog.m4: New file.
67439         * m4/eaccess.m4: New file.
67440
67441 2003-04-10  Bruno Haible  <bruno@clisp.org>
67442
67443         * lib/findprog.h: New file, from GNU gettext.
67444         * lib/findprog.c: New file, from GNU gettext.
67445
67446 2003-04-05  Jim Meyering  <jim@meyering.net>
67447
67448         Merge changes from Coreutils.
67449
67450         * lib/exclude.h (PARAMS): Remove definition and uses.
67451         * lib/exclude.c: Remove uses of `PARAMS'.
67452
67453         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
67454         Add test-cases for DOS filenames. Declare program_name.
67455         (main): Set up program_name.  Patch by Rich Dawe.
67456
67457         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
67458         error from mntctl.
67459         Use mntctl's return value to drive the entry-processing loop, since
67460         we can't rely on the value of the vmt_length member in the last
67461         entry.  On some systems doing so could result in exhausting
67462         virtual memory.  Based in part on a patch from Mike Jetzer.
67463
67464 2003-04-04  Bruno Haible  <bruno@clisp.org>
67465
67466         * modules/linebreak: New file.
67467         * MODULES.html.sh (func_all_modules): Add it.
67468
67469 2003-04-04  Bruno Haible  <bruno@clisp.org>
67470
67471         * m4/linebreak.m4: New file.
67472
67473 2003-04-04  Bruno Haible  <bruno@clisp.org>
67474
67475         * lib/linebreak.h: New file, from GNU gettext.
67476         * lib/linebreak.c: New file, from GNU gettext with slight
67477         modifications.
67478         * lib/lbrkprop.h: New file, from GNU gettext.
67479
67480 2003-04-03  Bruno Haible  <bruno@clisp.org>
67481
67482         * modules/utf8-ucs4: New file.
67483         * modules/utf16-ucs4: New file.
67484         * modules/ucs4-utf8: New file.
67485         * modules/ucs4-utf16: New file.
67486         * MODULES.html.sh (func_all_modules): Add them.
67487
67488 2003-04-03  Bruno Haible  <bruno@clisp.org>
67489
67490         * m4/utf-ucs4.m4: New file.
67491         * m4/ucs4-utf.m4: New file.
67492
67493 2003-04-03  Bruno Haible  <bruno@clisp.org>
67494
67495         * lib/utf8-ucs4.h: New file, from GNU gettext.
67496         * lib/utf16-ucs4.h: New file, from GNU gettext.
67497         * lib/ucs4-utf8.h: New file, from GNU gettext.
67498         * lib/ucs4-utf16.h: New file, from GNU gettext.
67499
67500 2003-04-02  Bruno Haible  <bruno@clisp.org>
67501
67502         * modules/binary-io: New file.
67503         * MODULES.html.sh (func_all_modules): Add it.
67504
67505 2003-04-02  Bruno Haible  <bruno@clisp.org>
67506
67507         * lib/binary-io.h: New file, from GNU gettext.
67508
67509 2003-04-01  Bruno Haible  <bruno@clisp.org>
67510
67511         * modules/pathname: New file.
67512         * MODULES.html.sh (func_all_modules): Add it.
67513
67514 2003-04-01  Bruno Haible  <bruno@clisp.org>
67515
67516         * lib/pathname.h: New file, from GNU gettext.
67517         * lib/concatpath.c: New file, from GNU gettext.
67518
67519 2003-03-30  Bruno Haible  <bruno@clisp.org>
67520
67521         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
67522
67523 2003-03-30  Bruno Haible  <bruno@clisp.org>
67524
67525         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
67526         function chown() doesn't exist.
67527
67528 2003-03-28  Bruno Haible  <bruno@clisp.org>
67529
67530         * modules/copy-file: New file.
67531         * MODULES.html.sh (func_all_modules): Add it.
67532
67533 2003-03-28  Bruno Haible  <bruno@clisp.org>
67534
67535         * m4/copy-file.m4: New file.
67536
67537 2003-03-28  Bruno Haible  <bruno@clisp.org>
67538
67539         * lib/copy-file.h: New file, from GNU gettext.
67540         * lib/copy-file.c: New file, from GNU gettext.
67541
67542 2003-03-18  Jim Meyering  <jim@meyering.net>
67543
67544         * lib/quote.c (quote_n): Fix typo in comment.
67545
67546 2003-03-18  Bruno Haible  <bruno@clisp.org>
67547
67548         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
67549         checking.
67550         * m4/onceonly_2_57.m4: Likewise.
67551
67552 2003-03-17  Bruno Haible  <bruno@clisp.org>
67553
67554         * m4/onceonly.m4: Require autoconf 2.54 or newer.
67555         (m4_quote): Remove macro.
67556         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
67557
67558 2003-03-14  Jim Meyering  <jim@meyering.net>
67559
67560         Merge changes from Coreutils.
67561         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
67562         to be const, in order to avoid warnings.
67563         (obstack_room): Likewise.
67564         (obstack_empty_p): Likewise.
67565
67566 2003-03-14  Bruno Haible  <bruno@clisp.org>
67567
67568         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
67569         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
67570
67571 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67572
67573         Merge changes from Bison.
67574         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
67575         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
67576         when compiling Bison 1.875's `bitset bset = obstack_alloc
67577         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
67578         * lib/hash.c: Include <stdbool.h> unconditionally.
67579
67580 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67581
67582         * m4/onceonly.m4 (m4_quote): New macro.
67583         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
67584         Quote AC_FOREACH variable-expansions properly.
67585
67586 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67587
67588         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
67589
67590 2003-03-09  Paul Eggert  <eggert@twinsun.com>
67591
67592         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
67593         Reported by Bruce Becker; see:
67594         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
67595
67596 2003-03-03  Paul Eggert  <eggert@twinsun.com>
67597             Bruno Haible  <bruno@clisp.org>
67598
67599         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
67600         Reported by John Hughes, see
67601         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
67602
67603 2003-02-20  Bruno Haible  <bruno@clisp.org>
67604
67605         * MODULES.html.sh (func_all_modules): Add poll.
67606
67607 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67608
67609         * modules/poll: New file.
67610
67611 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67612
67613         * lib/poll_.h: New file.
67614         * lib/poll.c: New file.
67615
67616 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67617
67618         * m4/poll.m4: New file.
67619
67620 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67621
67622         * modules/mathl: New file.
67623
67624 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67625
67626         * lib/mathl.h: New file.
67627         * lib/acosl.c: New file.
67628         * lib/asinl.c: New file.
67629         * lib/atanl.c: New file.
67630         * lib/ceill.c: New file.
67631         * lib/cosl.c: New file.
67632         * lib/expl.c: New file.
67633         * lib/floorl.c: New file.
67634         * lib/frexpl.c: New file.
67635         * lib/ldexpl.c: New file.
67636         * lib/logl.c: New file.
67637         * lib/sincosl.c: New file.
67638         * lib/sinl.c: New file.
67639         * lib/sqrtl.c: New file.
67640         * lib/tanl.c: New file.
67641         * lib/trigl.c: New file.
67642         * lib/trigl.h: New file.
67643
67644 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67645
67646         * m4/mathl.m4: New file.
67647
67648 2003-02-18  Bruno Haible  <bruno@clisp.org>
67649
67650         * MODULES.html.sh (func_all_modules): Add mathl.
67651
67652 2003-02-17  Bruno Haible  <bruno@clisp.org>
67653
67654         * modules/mkdtemp: New module.
67655         * MODULES.html.sh (func_all_modules): Add it.
67656
67657 2003-02-17  Bruno Haible  <bruno@clisp.org>
67658
67659         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
67660
67661 2003-02-17  Bruno Haible  <bruno@clisp.org>
67662
67663         * lib/mkdtemp.h: New file, from GNU gettext.
67664         * lib/mkdtemp.c: New file, from GNU gettext.
67665
67666 2003-02-02  Jim Meyering  <jim@meyering.net>
67667
67668         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
67669         e.g. glibc-2.2.93.
67670
67671 2003-01-31  Bruno Haible  <bruno@clisp.org>
67672
67673         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
67674         'rpl_rename'.
67675         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
67676         'rpl_strnlen'.
67677         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
67678         'rpl_strtod'.
67679         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
67680         'rpl_utime'.
67681
67682 2003-01-31  Bruno Haible  <bruno@clisp.org>
67683
67684         * lib/rename.c: #undef rename before defining rpl_rename.
67685         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
67686
67687 2003-01-30  Bruno Haible  <bruno@clisp.org>
67688
67689         * modules/vasnprintf, modules/vasprintf: New modules.
67690         * MODULES.html.sh (func_all_modules): Add them.
67691
67692 2003-01-30  Bruno Haible  <bruno@clisp.org>
67693
67694         * m4/signed.m4: New file, from GNU gettext.
67695         * m4/longdouble.m4: New file, from GNU gettext.
67696         * m4/wchar_t.m4: New file, from GNU gettext.
67697         * m4/wint_t.m4: New file, from GNU gettext.
67698         * m4/vasnprintf.m4: New file.
67699         * m4/vasprintf.m4: New file.
67700
67701 2003-01-30  Bruno Haible  <bruno@clisp.org>
67702
67703         * lib/printf-args.h: New file, from GNU gettext.
67704         * lib/printf-args.c: New file, from GNU gettext.
67705         * lib/printf-parse.h: New file, from GNU gettext.
67706         * lib/printf-parse.c: New file, from GNU gettext.
67707         * lib/vasnprintf.h: New file, from GNU gettext.
67708         * lib/vasnprintf.c: New file, from GNU gettext.
67709         * lib/asnprintf.c: New file, from GNU gettext.
67710         * lib/vasprintf.h: New file, from GNU gettext with modifications.
67711         * lib/vasprintf.c: New file, from GNU gettext.
67712         * lib/asprintf.c: New file, from GNU gettext.
67713
67714 2003-01-29  Bruno Haible  <bruno@clisp.org>
67715
67716         * modules/stpncpy: New module.
67717         * MODULES.html.sh (func_all_modules): Add it.
67718
67719 2003-01-29  Bruno Haible  <bruno@clisp.org>
67720
67721         * m4/stpncpy.m4: New file.
67722
67723 2003-01-29  Bruno Haible  <bruno@clisp.org>
67724
67725         * lib/stpncpy.h: New file, from GNU gettext with modifications.
67726         * lib/stpncpy.c: New file, from GNU gettext with modifications.
67727
67728 2003-01-28  Bruno Haible  <bruno@clisp.org>
67729
67730         * modules/c-ctype: New module.
67731         * MODULES.html.sh (func_all_modules): Add it.
67732
67733 2003-01-28  Bruno Haible  <bruno@clisp.org>
67734
67735         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
67736         Paul Eggert.
67737         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
67738         Paul Eggert.
67739
67740 2003-01-27  Bruno Haible  <bruno@clisp.org>
67741
67742         * modules/xsetenv: New module.
67743         * MODULES.html.sh (func_all_modules): Add it.
67744
67745 2003-01-27  Bruno Haible  <bruno@clisp.org>
67746
67747         * lib/xsetenv.h: New file, from GNU gettext.
67748         * lib/xsetenv.c: New file, from GNU gettext.
67749
67750 2003-01-23  Jim Meyering  <jim@meyering.net>
67751
67752         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
67753         from working on systems without dirfd (at least Irix and OSF1/Tru64).
67754
67755 2003-01-23  Bruno Haible  <bruno@clisp.org>
67756
67757         * modules/minmax: New module.
67758         * MODULES.html.sh (func_all_modules): Add it.
67759
67760 2003-01-23  Bruno Haible  <bruno@clisp.org>
67761
67762         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
67763         Eggert.
67764
67765 2003-01-22  Bruno Haible  <bruno@clisp.org>
67766
67767         * modules/exit: New module.
67768         * MODULES.html.sh (func_all_modules): Add it.
67769
67770 2003-01-22  Bruno Haible  <bruno@clisp.org>
67771
67772         * lib/exit.h: New file, from GNU gettext.
67773
67774 2003-01-19  Bruno Haible  <bruno@clisp.org>
67775
67776         * gnulib-tool: Recognize option --extract-maintainer.
67777         (func_get_maintainer): New function.
67778         * modules/*: Add Maintainer entry.
67779
67780 2003-01-16  Jim Meyering  <jim@meyering.net>
67781
67782         * m4/regex.m4: The `regex' struct is both input and output.
67783         Initialize it before each use.  Patch by Tim Waugh.
67784
67785 2003-01-16  Bruno Haible  <bruno@clisp.org>
67786
67787         * MODULES.html.sh: Add a table of contents. Add the module name as
67788         leftmost column. Add hyperlinks.
67789
67790 2003-01-15  Bruno Haible  <bruno@clisp.org>
67791
67792         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
67793
67794 2003-01-15  Bruno Haible  <bruno@clisp.org>
67795
67796         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
67797         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
67798         suffix.
67799
67800 2003-01-15  Bruno Haible  <bruno@clisp.org>
67801
67802         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
67803
67804 2003-01-15  Bruno Haible  <bruno@clisp.org>
67805
67806         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
67807         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
67808
67809 2003-01-14  Jim Meyering  <jim@meyering.net>
67810
67811         * lib/same.c (same_name): Tweak a comment.
67812
67813 2003-01-14  Bruno Haible  <bruno@clisp.org>
67814
67815         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
67816         when a string comparison is sufficient.
67817
67818 2003-01-14  Bruno Haible  <bruno@clisp.org>
67819
67820         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
67821         'unsigned int'.
67822
67823 2003-01-14  Bruno Haible  <bruno@clisp.org>
67824
67825         * lib/hash-pjw.c: Add comment about low quality of this function.
67826
67827 2003-01-13  Bruno Haible  <bruno@clisp.org>
67828
67829         * modules/stpcpy: Distribute lib/stpcpy.h.
67830         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
67831
67832 2003-01-13  Bruno Haible  <bruno@clisp.org>
67833
67834         * modules/*: Add a description.
67835         * modules/strpbrk: Fix Makefile.am snippet.
67836         * modules/strtoimax: Fix dependencies.
67837         * modules/strtoumax: Likewise.
67838
67839 2003-01-13  Bruno Haible  <bruno@clisp.org>
67840
67841         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
67842         * modules/alloca (Makefile.am): All object files depend on alloca.h.
67843         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
67844
67845 2003-01-13  Bruno Haible  <bruno@clisp.org>
67846
67847         * gnulib-tool (func_create_testdir): Store config/* files in the main
67848         directory.
67849         * config.rpath: Move to ...
67850         * config/config.rpath: ... here.
67851         * modules/gettext: Contains config/config.rpath, not config.rpath.
67852         * modules/iconv: Likewise.
67853
67854 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67855
67856         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67857         to avoid collisions with libcurses and libreadline.
67858
67859         * m4/getstr.m4: Remove.
67860         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
67861
67862 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67863
67864         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67865         to avoid collisions with libcurses and libreadline.
67866
67867         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
67868         * lib/getstr.h, getstr.c: Remove.
67869         * lib/getline.c: Include "getline.h", to check interface.
67870         Move body of old getstr.c here: this defines MIN_CHUNK and
67871         declares getdelim2, which is renamed from getstr.
67872         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
67873
67874         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
67875         All uses changed.
67876         * lib/linebuffer.h: Likewise.
67877         (readline): Remove backward-compatibility macro.
67878
67879 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67880
67881         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67882         to avoid collisions with libcurses and libreadline.
67883         * getstr: Remove.
67884         * MODULES.html.sh: Remove getstr.
67885         * modules/getline: Depend on unlocked-io, not getstr.
67886
67887 2003-01-12  Jim Meyering  <jim@meyering.net>
67888
67889         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
67890
67891 2003-01-10  Bruno Haible  <bruno@clisp.org>
67892
67893         * modules/alloca: Change Makefile.am requirements. Simplify Include
67894         requirements. Add lib/alloca_.h to file list.
67895
67896 2003-01-10  Bruno Haible  <bruno@clisp.org>
67897
67898         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
67899
67900 2003-01-10  Bruno Haible  <bruno@clisp.org>
67901
67902         * lib/alloca_.h: New file.
67903         * lib/getdate.y: Unconditionally include alloca.h.
67904         * lib/makepath.c: Likewise.
67905         * lib/setenv.c: Likewise.
67906         * lib/userspec.c: Likewise.
67907
67908 2003-01-09  Karl Berry  <karl@gnu.org>
67909
67910         * MODULES.html.sh: include `dirname $0` in PATH, to find
67911         gnulib-tool.
67912
67913 2003-01-09  Bruno Haible  <bruno@clisp.org>
67914
67915         * modules/stdbool: Change configure.ac, Makefile.am requirements.
67916         Simplify Include requirements. Add lib/stdbool.h.in to file list.
67917
67918 2003-01-09  Bruno Haible  <bruno@clisp.org>
67919
67920         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
67921
67922 2003-01-09  Bruno Haible  <bruno@clisp.org>
67923
67924         * lib/stdbool.h.in: New file.
67925
67926 2003-01-09  Bruno Haible  <bruno@clisp.org>
67927
67928         * gnulib-tool (func_all_modules): Ignore files ending in ~.
67929         * MODULES.html.sh: Likewise.
67930
67931 2003-01-08  Jim Meyering  <jim@meyering.net>
67932
67933         * lib/full-write.c: Undefine and define-away `const' after inclusion
67934         of errno.h, not before.  Suggestion from Bruno Haible.
67935
67936 2003-01-08  Bruno Haible  <bruno@clisp.org>
67937
67938         * modules/full-read: Depend on full-write.
67939
67940 2003-01-08  Bruno Haible  <bruno@clisp.org>
67941
67942         * lib/safe-read.c: Include specification header first, to ensure its
67943         selfcontainedness.
67944         * lib/full-write.c: Likewise.
67945
67946 2003-01-07  Jim Meyering  <jim@meyering.net>
67947
67948         * lib/full-write.c: Rework so that it may serve to define full_read,
67949         too.
67950         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
67951
67952 2003-01-07  Bruno Haible  <bruno@clisp.org>
67953
67954         * lib/strtoimax.c: Include <stdint.h> as an alternative to
67955         <inttypes.h>.
67956         * lib/xstrtol.h: Likewise.
67957         * lib/xstrtoimax.c: Likewise.
67958         * lib/xstrtoumax.c: Likewise.
67959         * lib/human.h: Likewise.
67960
67961         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
67962         on systems that have <inttypes.h> but not <stdint.h>.
67963
67964 2003-01-07  Bruno Haible  <bruno@clisp.org>
67965
67966         * MODULES.html.sh: Add copyright notice.
67967         (missed_files): Omit CVS directory entries.
67968         (func_module): Make it work with sed-3.02.
67969         * MODULES.txt: Remove file.
67970
67971 2003-01-06  Jim Meyering  <jim@meyering.net>
67972
67973         * lib/version-etc.c: Update year in translatable copyright string.
67974
67975 2003-01-03  Karl Berry  <karl@gnu.org>
67976
67977         * config/config.{guess,sub}: update from prep.
67978
67979 2003-01-02  Karl Berry  <karl@gnu.org>
67980
67981         * doc/COPYING.DOC: belatedly updated to 1.2.
67982
67983 2003-01-01  Karl Berry  <karl@gnu.org>
67984
67985         * gnulib-tool (func_verify_module): report module name $module in
67986         error message, not $1.
67987         * gnulib-tool (create-testdir): don't complain if destdir couldn't
67988         be created, only if it doesn't exist.
67989         * gnulib-tool (last_checkin_date): don't expand the $Date here.
67990
67991 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67992
67993         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
67994
67995 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67996
67997         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
67998         memcmp if strcoll doesn't work.
67999
68000 2002-12-31  Bruno Haible  <bruno@clisp.org>
68001
68002         * lib/utime.c (utime_null): No need to call ftruncate if the file was
68003         nonempty.
68004
68005 2002-12-31  Bruno Haible  <bruno@clisp.org>
68006
68007         * lib/memcoll.c (STRCOLL): New macro.
68008         (memcoll): Use it.
68009
68010 2002-12-31  Bruno Haible  <bruno@clisp.org>
68011
68012         * lib/localcharset.h: New file.
68013         * lib/localcharset.c: Include it.
68014         * lib/unicodeio.c: Likewise.
68015
68016 2002-12-31  Bruno Haible  <bruno@clisp.org>
68017
68018         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
68019         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
68020
68021 2002-12-31  Bruno Haible  <bruno@clisp.org>
68022
68023         * lib/getline.h: Include <stddef.h>, for size_t.
68024
68025         * lib/unicodeio.h: Include <stddef.h>, for size_t.
68026         * lib/unicodeio.c: Don't include <stddef.h>.
68027
68028 2002-12-31  Bruno Haible  <bruno@clisp.org>
68029
68030         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
68031         HAVE_TM_ZONE.
68032
68033 2002-12-24  Karl Berry  <karl@gnu.org>
68034
68035         * config/config.guess: update from prep.
68036
68037 2002-12-24  Bruno Haible  <bruno@clisp.org>
68038
68039         General infrasructure.
68040         * m4/README: Rewritten.
68041         * m4/onceonly.m4: New file.
68042         * m4/onceonly_2_57.m4: New file.
68043
68044         Module atexit.
68045         * m4/atexit.m4: New file.
68046
68047         Module strtod.
68048         * m4/strtod.m4: New file.
68049
68050         Module strtol.
68051         * m4/strtol.m4: New file.
68052
68053         Module strtoul.
68054         * m4/strtoul.m4: New file.
68055
68056         Module memchr.
68057         * m4/memchr.m4: New file.
68058
68059         Module memcmp.
68060         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
68061         (jm_FUNC_MEMCMP): Invoke it.
68062
68063         Module memcpy.
68064         * m4/memcpy.m4: New file.
68065
68066         Module memmove.
68067         * m4/memmove.m4: New file.
68068
68069         Module memset.
68070         * m4/memset.m4: New file.
68071
68072         Module strcspn.
68073         * m4/strcspn.m4: New file.
68074
68075         Module strpbrk.
68076         * m4/strpbrk.m4: New file.
68077
68078         Module strstr.
68079         * m4/strstr.m4: New file.
68080
68081         Module strerror.
68082         * m4/strerror.m4: New file.
68083
68084         Module mktime.
68085         * m4/mktime.m4: Renamed from jm-mktime.m4.
68086         (gl_PREREQ_MKTIME): New macro.
68087         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
68088
68089         Module malloc.
68090         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
68091         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
68092         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
68093
68094         Module realloc.
68095         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
68096         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
68097         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
68098
68099         Module strftime.
68100         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
68101         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
68102         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
68103         gl_TM_GMTOFF.
68104         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
68105
68106         Module xalloc.
68107         * m4/xalloc.m4: New file.
68108
68109         Module alloca.
68110         * m4/alloca.m4: New file.
68111
68112         Module putenv.
68113         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
68114         (jm_FUNC_PUTENV): Invoke it.
68115
68116         Module setenv.
68117         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
68118         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
68119         when invoked twice.
68120         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
68121         gt_FUNC_SETENV.
68122
68123         Module memrchr.
68124         * m4/memrchr.m4: New file.
68125
68126         Module stpcpy.
68127         * m4/stpcpy.m4: New file.
68128
68129         Module strcase.
68130         * m4/strcase.m4: New file.
68131
68132         Module strdup.
68133         * m4/strdup.m4: New file.
68134
68135         Module strnlen.
68136         * m4/strnlen.m4: New file.
68137
68138         Module strndup.
68139         * m4/strndup.m4: New file.
68140
68141         Module xstrtod.
68142         * m4/xstrtod.m4: New file.
68143
68144         Module xstrtol.
68145         * m4/xstrtol.m4: New file.
68146
68147         Module getdate.
68148         * m4/getdate.m4: New file.
68149
68150         Module unlocked-io.
68151         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
68152         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
68153         * m4/jm-glibc-io.m4n: Remove file.
68154
68155         Module long-options.
68156         * m4/long-options.m4: New file.
68157
68158         Module md5.
68159         * m4/md5.m4: New file.
68160
68161         Module sha.
68162         * m4/sha.m4: New file.
68163
68164         Module getstr.
68165         * m4/getstr.m4: New file.
68166
68167         Module getline.
68168         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
68169         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
68170         <sys/types.h>, for size_t. Use the function name gnu_getline, not
68171         simply getline. Infoke gl_PREREQ_GETLINE.
68172
68173         Module obstack.
68174         * m4/obstack.m4: New file.
68175
68176         Module hash.
68177         * m4/hash.m4: New file.
68178
68179         Module readtokens.
68180         * m4/readtokens.m4: New file.
68181
68182         Module strverscmp.
68183         * m4/strverscmp.m4: New file.
68184
68185         Module stdbool.
68186         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
68187         OSF/1.
68188
68189         Module strtoll.
68190         * m4/strtoll.m4: New file.
68191
68192         Module strtoull.
68193         * m4/strtoull.m4: New file.
68194
68195         Module strtoimax.
68196         * m4/strtoimax.m4: New file.
68197
68198         Module strtoumax.
68199         * m4/strtoumax.m4: New file.
68200
68201         Module xstrtoimax.
68202         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
68203         jm_AC_PREREQ_XSTRTOIMAX.
68204         Moved the strtol prerequisites to strtol.m4.
68205         Moved the strtoll prerequisites to strtoll.m4.
68206         Moved the strtoimax prerequisites to strtoimax.m4.
68207
68208         Module xstrtoumax.
68209         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
68210         jm_AC_PREREQ_XSTRTOUMAX.
68211         Moved the strtoul prerequisites to strtoul.m4.
68212         Moved the strtoull prerequisites to strtoull.m4.
68213         Moved the strtoumax prerequisites to strtoumax.m4.
68214
68215         Module chown.
68216         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
68217         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
68218
68219         Module dup2.
68220         * m4/dup2.m4: New file.
68221
68222         Module ftruncate.
68223         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
68224         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
68225
68226         Module getgroups.
68227         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
68228         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
68229
68230         Module gettimeofday.
68231         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
68232         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
68233         gl_PREREQ_GETTIMEOFDAY.
68234
68235         Module mkdir.
68236         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
68237         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
68238
68239         Module mkstemp.
68240         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
68241         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
68242         jm_AC_TYPE_UINTMAX_T.
68243         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
68244
68245         Module stat.
68246         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
68247         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
68248
68249         Module lstat.
68250         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
68251         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
68252
68253         Module timespec.
68254         * m4/timespec.m4 (gl_TIMESPEC): New macro.
68255         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
68256         * m4/st_mtim.m4: Indentation.
68257
68258         Module nanosleep.
68259         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
68260         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
68261         gl_PREREQ_NANOSLEEP.
68262
68263         Module regex.
68264         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
68265         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
68266         (gl_REGEX): New macro.
68267
68268         Module rename.
68269         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
68270         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
68271
68272         Module rmdir.
68273         * m4/rmdir.m4: New file.
68274
68275         Module utime.
68276         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
68277         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
68278         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
68279
68280         Module dirname.
68281         * m4/dirname.m4: New file.
68282
68283         Module getopt.
68284         * m4/getopt.m4: New file.
68285
68286         Module unistd-safer.
68287         * m4/unistd-safer.m4: New file.
68288
68289         Module fnmatch.
68290         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
68291         declaration.
68292         (gl_PREREQ_FNMATCH_EXTRA): New macro.
68293         (gl_FUNC_FNMATCH_POSIX): New macro.
68294         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
68295         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
68296         simply fnmatch.
68297
68298         Module exclude.
68299         * m4/exclude.m4: New file.
68300
68301         Module human.
68302         * m4/human.m4: New file.
68303
68304         Module acl.
68305         * m4/acl.m4: Nop.
68306
68307         Module backupfile.
68308         * m4/backupfile.m4: New file.
68309         * m4/d-ino.m4: Indentation.
68310
68311         Module fsusage.
68312         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
68313         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
68314         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
68315
68316         Module dirfd.
68317         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
68318         requirements.
68319
68320         Module euidaccess.
68321         * m4/euidaccess.m4: New file.
68322
68323         Module file-type.
68324         * m4/file-type.m4: New file.
68325
68326         Module fileblocks.
68327         * m4/fileblocks.m4: New file.
68328
68329         Module filemode.
68330         * m4/filemode.m4: New file.
68331
68332         Module isdir.
68333         * m4/isdir.m4: New file.
68334
68335         Module lchown.
68336         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
68337         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
68338
68339         Module makepath.
68340         * m4/makepath.m4: New file.
68341
68342         Module modechange.
68343         * m4/modechange.m4: New file.
68344
68345         Module mountlist.
68346         * m4/mountlist.m4: New file.
68347         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
68348         Indentation.
68349
68350         Module path-concat.
68351         * m4/path-concat.m4: New file.
68352
68353         Module pathmax.
68354         * m4/pathmax.m4: New file.
68355
68356         Module same.
68357         * m4/same.m4: New file.
68358
68359         Module save-cwd.
68360         * m4/save-cwd.m4: New file.
68361
68362         Module savedir.
68363         * m4/savedir.m4: New file.
68364
68365         Module xgetcwd.
68366         * m4/xgetcwd.m4: New file.
68367         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
68368
68369         Module xreadlink.
68370         * m4/xreadlink.m4: New file.
68371
68372         Module safe-read.
68373         * m4/safe-read.m4: New file.
68374
68375         Module safe-write.
68376         * m4/safe-write.m4: New file.
68377
68378         Module closeout.
68379         * m4/closeout.m4: New file.
68380
68381         Module stdio-safer.
68382         * m4/stdio-safer.m4: New file.
68383
68384         Module getpass.
68385         * m4/getpass.m4: New file.
68386
68387         Module getugroups.
68388         * m4/getugroups.m4: New file.
68389
68390         Module group-member.
68391         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
68392         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
68393
68394         Module idcache.
68395         * m4/idcache.m4: New file.
68396
68397         Module userspec.
68398         * m4/userspec.m4: New file.
68399
68400         Module gettime.
68401         * m4/clock_time.m4: New file.
68402         * m4/gettime.m4: New file.
68403
68404         Module settime.
68405         * m4/settime.m4: New file.
68406
68407         Module posixtm.
68408         * m4/posixtm.m4: New file.
68409
68410         Module gethostname.
68411         * m4/gethostname.m4: New file.
68412
68413         Module canon-host.
68414         * m4/canon-host.m4: New file.
68415
68416         Module gettext.
68417         * m4/codeset.m4: New file, from gettext-0.11.5.
68418         * m4/gettext.m4: New file, from gettext-0.11.5.
68419         * m4/glibc21.m4: New file, from gettext-0.11.5.
68420         * m4/iconv.m4: New file, from gettext-0.11.5.
68421         * m4/intdiv0.m4: New file, from gettext-0.11.5.
68422         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
68423         * m4/inttypes.m4: New file, from gettext-0.11.5.
68424         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
68425         * m4/isc-posix.m4: New file, from gettext-0.11.5.
68426         * m4/lcmessage.m4: New file, from gettext-0.11.5.
68427         * m4/lib-ld.m4: New file, from gettext-0.11.5.
68428         * m4/lib-link.m4: New file, from gettext-0.11.5.
68429         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
68430         * m4/progtest.m4: New file, from gettext-0.11.5.
68431         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
68432         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
68433         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
68434
68435         Module localcharset.
68436         * m4/localcharset.m4: New file.
68437
68438         Module hard-locale.
68439         * m4/hard-locale.m4: New file.
68440
68441         Module mbswidth.
68442         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
68443         onceonly macros.
68444         * m4/mbrtowc.m4: Add comment.
68445
68446         Module memcasecmp.
68447         * m4/memcasecmp.m4: New file.
68448
68449         Module memcoll.
68450         * m4/memcoll.m4: New file.
68451
68452         Module unicodeio.
68453         * m4/unicodeio.m4: New file.
68454
68455         Module rpmatch.
68456         * m4/rpmatch.m4: New file.
68457
68458         Module yesno.
68459         * m4/yesno.m4: New file.
68460
68461         Module exitfail.
68462         * m4/exitfail.m4: New file.
68463
68464         Module c-stack.
68465         * m4/c-stack.m4 (gl_C_STACK): New macro.
68466         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
68467
68468         Module error.
68469         * m4/error.m4 (gl_ERROR): New macro.
68470         (jm_PREREQ_ERROR): Use onceonly macros.
68471
68472         Module fatal.
68473         * m4/fatal.m4: New file.
68474
68475         Module getloadavg.
68476         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
68477         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
68478
68479         Module getpagesize.
68480         * m4/getpagesize.m4: New file.
68481
68482         Module getusershell.
68483         * m4/getusershell.m4: New file.
68484
68485         Module physmem.
68486         * m4/physmem.m4: New file.
68487
68488         Module posixver.
68489         * m4/posixver.m4: New file.
68490
68491         Module quotearg.
68492         * m4/quotearg.m4: New file.
68493
68494         Module quote.
68495         * m4/quote.m4: New file.
68496
68497         Module readutmp.
68498         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
68499
68500         Module sig2str.
68501         * m4/sig2str.m4: New file.
68502
68503         Other.
68504         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
68505         ulonglong.m4.
68506         * m4/intmax_t.m4: New file.
68507         * m4/d-type.m4: Indentation.
68508         * m4/jm-macros.m4: Update.
68509         * m4/prereq.m4 (jm_PREREQ): Update.
68510         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
68511         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
68512         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
68513         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
68514         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
68515         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
68516         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
68517         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
68518         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
68519         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
68520         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
68521         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
68522         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
68523         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
68524         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
68525         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
68526         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
68527         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
68528         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
68529
68530 2002-12-24  Bruno Haible  <bruno@clisp.org>
68531
68532         * MODULES.txt: Update according to m4/ changes.
68533
68534         Module gettext.
68535         * config.rpath: New file, from gettext-0.11.5.
68536
68537         * modules/*: New module descriptions.
68538         * gnulib-tool: New file.
68539         * MODULES.html.sh: New file.
68540
68541 2002-12-21  Karl Berry  <karl@gnu.org>
68542
68543         * doc/fdl.texi: update to version 1.2.
68544
68545 2002-12-19  Karl Berry  <karl@gnu.org>
68546
68547         * config/config.guess: update from prep.
68548
68549 2002-12-18  Bruno Haible  <bruno@clisp.org>
68550
68551         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
68552         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
68553
68554 2002-12-17  Bruno Haible  <bruno@clisp.org>
68555
68556         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
68557         stdlib.h, string.h.
68558
68559 2002-12-17  Bruno Haible  <bruno@clisp.org>
68560
68561         * lib/canon-host.c (strdup): Remove unused declaration.
68562
68563         * lib/fsusage.c: Include full_read.h.
68564         (get_fs_usage): Use full_read instead of safe_read.
68565
68566         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
68567
68568 2002-12-12  Karl Berry  <karl@gnu.org>
68569
68570         * config/config.guess: update from prep.
68571
68572 2002-12-11  Bruno Haible  <bruno@clisp.org>
68573
68574         * m4/setenv.m4: New file, from gettext-0.11.5.
68575
68576 2002-12-11  Bruno Haible  <bruno@clisp.org>
68577
68578         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
68579         not unsetenv().
68580         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
68581         modifications:
68582
68583         2002-12-11  Bruno Haible  <bruno@clisp.org>
68584
68585                 * setenv.c (alloca): Fall back to malloc.
68586                 (freea): New macro.
68587                 (setenv): Use freea() to free memory allocated with alloca().
68588
68589         2002-11-13  Bruno Haible  <bruno@clisp.org>
68590
68591                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
68592                 function declarations.
68593                 * unsetenv.c (unsetenv): Likewise.
68594
68595         2002-03-04  Bruno Haible  <bruno@clisp.org>
68596
68597                 Portability to AIX 4.3.3.
68598                 * unsetenv.c: New file, extracted from setenv.c.
68599                 * setenv.c: Move the unsetenv() function to unsetenv.c.
68600
68601         2001-12-20  Bruno Haible  <bruno@clisp.org>
68602
68603                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
68604                 use malloc instead. For SunOS 4.
68605
68606         2001-12-11  Bruno Haible  <bruno@clisp.org>
68607
68608                 * setenv.c: Declare alloca.
68609                 (compar_fn_t): New typedef.
68610                 (KNOWN_VALUE, STORE_VALUE): Use it.
68611
68612         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
68613         setenv.h.
68614
68615 2002-12-10  Paul Eggert  <eggert@twinsun.com>
68616
68617         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
68618         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
68619         Choose values that are less likely to collide with system fnmatch
68620         options.
68621         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
68622         defined (e.g., a pure POSIX system).
68623         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
68624         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
68625
68626 2002-12-06  Paul Eggert  <eggert@twinsun.com>
68627
68628         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
68629         a pain in practice to deal with generated m4 files.  This change
68630         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
68631
68632         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
68633         and jm-glibc-io.m4, as they are no longer a special case.
68634         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
68635         kludge and the auto-generation stuff.  Check only whether the
68636         functions are declared, not whether they exist, since older hosts
68637         that don't declare the functions can't use the optimization anyway.
68638
68639 2002-12-06  Jim Meyering  <jim@meyering.net>
68640
68641         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
68642
68643         Merge in changes from libc's misc/error.c, in preparation
68644         for the merge of gnulib's changes back into libc.
68645
68646         * lib/error.c (_): Define only if not already defined.
68647         Move definition to follow all #include directives.
68648         Include unlocked-io.h only if !_LIBC.
68649         [_LIBC]: Include <libio/libioP.h>.
68650         [USE_IN_LIBIO]: Include <libio/iolibio.h>
68651         (fflush): Tweak definition to use INTUSE.
68652         (putc): Define.
68653
68654 2002-12-05  Paul Eggert  <eggert@twinsun.com>
68655
68656         * lib/alloca.c [defined emacs]: Include "lisp.h".
68657         (xalloc_die) [defined emacs]: New macro.
68658         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
68659         [! defined emacs]: Include <xalloc.h>.
68660         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
68661         (pointer): Typedef to POINTER_TYPE *.
68662         (malloc): Remove decl; we now always use xmalloc.
68663         (alloca): Use old-style definition, since Emacs needs this.
68664         Check for arithmetic overflow when computing combined size.
68665
68666 2002-12-04  Paul Eggert  <eggert@twinsun.com>
68667
68668         Do not generate unlocked-io.h automatically, since it's easier to
68669         maintain it by hand.
68670
68671         * lib/unlocked-io.h: New file, from GNU diffutils,
68672         but with proper copyright notice and attribution.
68673         * lib/gen-uio: Remove.
68674         * lib/Makefile.am: Add copyright notice.
68675         (libfetish_a_SOURCES): Add unlocked-io.h.
68676         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
68677         (DISTCLEANFILES, io_functions): Remove macros.
68678         (EXTRA_DIST): Remove gen_uio.
68679         (unlocked-io.h): Remove rule.
68680
68681 2002-12-04  Jim Meyering  <jim@meyering.net>
68682
68683         Reflect the fact that stat.c and lstat.c are no longer generated.
68684         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
68685         (DISTCLEANFILES): Likewise.
68686         (EXTRA_DIST): Likewise.
68687         (all_local): Don't depend on stat.c or lstat.c.
68688         (stat.c, lstat.c): Remove rules.
68689         (EXTRA_DIST): Remove xstat.in.
68690
68691         * lib/xstat.in: Remove file.  Contents moved into stat.c.
68692         * lib/stat.c: New file.  Contents mostly from xstat.in.
68693         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
68694         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
68695
68696         * lib/safe-read.c: Rework so that it may serve to define safe_write,
68697         too.
68698         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
68699
68700 2002-12-03  Jim Meyering  <jim@meyering.net>
68701
68702         * lib/safe-read.c, safe-write.c: Change variable names and comments,
68703         but not semantics, to minimize the differences between these two files.
68704         (safe_read): Change comment to mention SAFE_READ_ERROR.
68705
68706         * lib/safe-read.c (IS_EINTR): Define.
68707         (safe_read): Use IS_EINTR in place of in-function cpp directives.
68708
68709 2002-12-02  Jim Meyering  <jim@meyering.net>
68710
68711         * lib/safe-read.c (EINTR): Define.
68712         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68713         (INT_MAX): Provide fallback.
68714         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
68715
68716         * lib/safe-read.h (SAFE_READ_ERROR): Define.
68717
68718 2002-12-02  Bruno Haible  <bruno@clisp.org>
68719
68720         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
68721         Define, taken from safe-read.c.
68722         (INT_MAX): Provide fallback.
68723         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
68724         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
68725
68726         * lib/safe-read.c (EINTR): Remove definition.
68727         (safe_read): Don't use EINTR if it is absent.
68728
68729 2002-12-01  Jim Meyering  <jim@meyering.net>
68730
68731         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
68732         zero.
68733         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
68734
68735 2002-11-27  Paul Eggert  <eggert@twinsun.com>
68736
68737         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
68738         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
68739         with `if (! (value < limit)) abort ();', for readability.
68740
68741 2002-11-26  Karl Berry  <karl@gnu.org>
68742
68743         * lib/strdup.c: copy from libc again, with jim's ok.
68744         * lib/.cppi-disable: re-add strdup.c
68745
68746 2002-11-25  Karl Berry  <karl@gnu.org>
68747
68748         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
68749         instead of "strtol.c".
68750
68751 2002-11-25  Karl Berry  <karl@gnu.org>
68752
68753         * config/install-sh: update from automake for variable quoting, $0 in
68754         error msgs, etc.
68755
68756         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
68757         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
68758         entry.
68759
68760 2002-11-25  Jim Meyering  <jim@meyering.net>
68761
68762         * lib/mktime.c: Sync from libc, now that it has the latest fix.
68763
68764 2002-11-24  Karl Berry  <karl@gnu.org>
68765
68766         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
68767         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
68768
68769 2002-11-24  Jim Meyering  <jim@meyering.net>
68770
68771         Update from coreutils:
68772
68773         * lib/mktime.c: Merge in changes from libc.
68774
68775         Avoid a link-time failure on some Linux systems.
68776         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
68777         (otherwise).
68778         (__mon_yday): Declare with the STATIC attribute.
68779         (__mktime_internal): Likewise.
68780         Based on a report from Greg Schafer.
68781
68782 2002-11-23  Jim Meyering  <jim@meyering.net>
68783
68784         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
68785         Use `unsigned', not `int', as type of index.
68786
68787         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
68788
68789         * lib/fsusage.c: Remove unneeded parentheses around operands of
68790         `defined'.
68791
68792 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68793
68794         * lib/quotearg.h: Allow multiple inclusion by surrounding with
68795         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
68796         so that we can be included first.
68797         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
68798         * lib/quotearg.c: Include quotearg.h immediately after config.h.
68799         No need to include stddef.h or sys/types.h any more.
68800         Surround local include files with "", not "<>".
68801         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
68802         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
68803         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
68804         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
68805         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
68806         (ISPRINT): Remove; no longer needed now that we assume C89.
68807
68808         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
68809         Preserve errno.
68810
68811         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
68812         quotearg_char): Use SIZE_MAX rather than
68813         (size_t) -1 when we are talking about "infinity".
68814
68815         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
68816
68817 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68818
68819         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
68820         hint that one should use `if (! x) abort ();' rather than `assert
68821         (x);', and anyway it's one less thing to worry about configuring.
68822         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
68823         hash_rehash, hash_insert): Use abort rather than assert.
68824
68825 2002-11-22  Bruno Haible  <bruno@clisp.org>
68826
68827         * lib/safe-read.h: Assume C89. Add comments.
68828         (safe_read): Change return type to size_t.
68829         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
68830         byte counts > SSIZE_MAX correctly.
68831         * lib/safe-write.h: New file.
68832         * lib/safe-write.c: New file.
68833         * lib/full-read.h: New file.
68834         * lib/full-read.c: New file.
68835         * lib/full-write.h: Assume C89. Add comments.
68836         * lib/full-write.c: Include safe-write.h.
68837         (full_write): Rewritten to use safe_write.
68838         Suggested by Jim Meyering and Paul Eggert.
68839
68840 2002-11-21  Jim Meyering  <jim@meyering.net>
68841
68842         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
68843
68844         Merge in changes from the coreutils.
68845
68846         2002-09-25  Paul Eggert  <eggert@twinsun.com>
68847         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
68848         <stdint.h>.
68849         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
68850         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
68851         int.  Work more efficiently if X is the same width as uintmax_t.
68852         Do not compare X to -1, to avoid bogus compiler warning.
68853         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
68854         Don't assume that f_frsize and f_bsize are the same type.
68855
68856         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
68857         warning on FreeBSD.
68858
68859         * lib/makepath.c (make_path): Restore umask *before* creating the final
68860         component.
68861         (make_path): Minor reformatting.
68862
68863         * lib/xmalloc.c: Adjust to work with new autoconf macros,
68864         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
68865         HAVE_MALLOC/HAVE_REALLOC.
68866
68867         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
68868         dummy ones.  At least on GNU/Linux systems, `auto' means something
68869         else.
68870         From Michael Stone.
68871
68872 2002-11-21  Bruno Haible  <bruno@clisp.org>
68873
68874         Remove case insensitive option matching.
68875         * lib/argmatch.h (argcasematch): Remove declaration.
68876         (ARGCASEMATCH): Remove macro.
68877         (__xargmatch_internal): Remove case_sensitive argument.
68878         (XARGMATCH): Update.
68879         (XARGCASEMATCH): Remove macro.
68880         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
68881         case_sensitive argument.
68882         (argcasematch): Remove function.
68883         (__xargmatch_internal): Remove case_sensitive argument.
68884         (main): Use XARGMATCH instead of XARGCASEMATCH.
68885
68886         * lib/xmalloc.c: Change compile-time error message. Add comment about
68887         required autoconf version.
68888
68889 2002-11-20  Paul Eggert  <eggert@twinsun.com>
68890
68891         Merge argmatch cleanups from Bison.  Assume C89.
68892
68893         * lib/argmatch.c: Include config.h here, not in argmatch.h.
68894         Include stdlib.h, for EXIT_FAILURE.
68895         Always include <string.h>, since we assume C89.
68896         (EXIT_FAILURE): Remove pre-C89 bug workaround.
68897         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
68898         Include <stddef.h> instead, since it's all we need for size_t.
68899         (PARAMS): Remove.  All uses removed.
68900         (ARRAY_CARDINALITY): Do not bother to #undef.
68901         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
68902         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68903         Remove unnecessary parentheses.
68904         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68905         Insert necessary parentheses.
68906         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
68907         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
68908
68909 2002-11-19  Bruno Haible  <bruno@clisp.org>
68910
68911         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
68912         * lib/mbswidth.h: Include <stddef.h>, for size_t.
68913
68914         * lib/mbswidth.h (PARAMS): Remove macro.
68915         (mbswidth, mbsnwidth): Use ANSI C function declarations.
68916         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
68917
68918         * lib/gcd.h (PARAMS): Remove macro.
68919         (gcd): Use ANSI C function declarations.
68920         * lib/gcd.c (gcd): Likewise.
68921
68922 2002-11-15  Bruno Haible  <bruno@clisp.org>
68923
68924         * lib/strcspn.c: Include <stddef.h>.
68925         (strcspn): Use ANSI C function declaration. Change return type to
68926         size_t. Use NULL.
68927         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
68928         (strpbrk): Use NULL.
68929         * lib/strpbrk.h (PARAMS): Remove macro.
68930         (strpbrk): Use ANSI C function declaration.
68931         * lib/strstr.c: Don't include <sys/types.h>.
68932         * lib/strstr.h (PARAMS): Remove macro.
68933         (strstr): Use ANSI C function declarations.
68934
68935 2002-11-14  Karl Berry  <karl@gnu.org>
68936
68937         * config/mkinstalldirs: `do' on separate line, instead of
68938         `for var; do'.
68939
68940 2002-11-06  Bruno Haible  <bruno@clisp.org>
68941
68942         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
68943         * lib/gcd.c (gcd): Likewise.
68944
68945 2002-11-05  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/gcd.h: New file, from gettext-0.11.5.
68948         * lib/gcd.c: New file, from gettext-0.11.5.
68949
68950 2002-11-05  Bruno Haible  <bruno@clisp.org>
68951
68952         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68953         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68954         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68955         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68956
68957         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
68958         <libintl.h>.
68959         * lib/makepath.c: Include gettext.h instead of <locale.h> and
68960         <libintl.h>.
68961
68962         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
68963         * lib/human.c: Include gettext.h instead of <libintl.h>.
68964         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
68965         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
68966         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
68967         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
68968         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
68969         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
68970         (textdomain): Remove definition.
68971         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
68972
68973         * lib/long-options.c: Remove include of <libintl.h> and definition of
68974         _.
68975         * lib/same.c: Remove include of <libintl.h> and definition of _.
68976
68977 2002-11-04  Owen Taylor  <otaylor@redhat.com>
68978
68979         * lib/config.charset: A few additions for Solaris.
68980
68981 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68982
68983         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
68984         * lib/localcharset.c (locale_charset): Declare as extern "C".
68985
68986 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68987
68988         * lib/config.charset: msdos in uk_UA uses CP1125.
68989
68990 2002-11-04  Bruno Haible  <bruno@clisp.org>
68991
68992         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
68993         * lib/strcase.h: New file, from GNU gettext-0.11.5.
68994         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
68995         * lib/strstr.h: New file, from GNU gettext-0.11.5.
68996         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
68997
68998 2002-11-04  Bruno Haible  <bruno@clisp.org>
68999
69000         * lib/localcharset.c (locale_charset): Don't return an empty string.
69001
69002 2002-11-04  Bruno Haible  <bruno@clisp.org>
69003
69004         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
69005         aliases.
69006
69007 2002-11-04  Bruno Haible  <bruno@clisp.org>
69008
69009         * lib/config.charset: Update for newest glibc. Add canonical names
69010         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
69011
69012 2002-11-04  Bruno Haible  <bruno@clisp.org>
69013
69014         * lib/config.charset: Add support for NetBSD.
69015
69016 2002-11-04  Bruno Haible  <bruno@clisp.org>
69017
69018         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
69019
69020 2002-11-01  Bruno Haible  <bruno@clisp.org>
69021
69022         * configure.in: Add AC_CONFIG_AUX_DIR call.
69023         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
69024         test/Makefile.
69025         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
69026
69027 2002-09-28  Karl Berry  <karl@gnu.org>
69028
69029         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
69030         installed automake until the next release, since changes have been
69031         made.
69032
69033 2002-09-25  Karl Berry  <karl@gnu.org>
69034
69035         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
69036         * lib/getopt*: copy from libc/posix.
69037         * lib/gettext.h: copy from gettext.
69038         * lib/.cppi-disable: add strdup.c, gettext.h.
69039
69040 2002-09-25  Karl Berry  <karl@gnu.org>
69041
69042         * config/srclist.txt: enable gettext.h check.
69043         * config/config.{guess,sub}: update from prep.
69044         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
69045                 from automake 1.6.3.
69046         See srclist*.
69047
69048 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
69049
69050         * regex.c (PATFETCH): Remove the translating fetch.
69051         (PATFETCH_RAW): Rename to PATFETCH.
69052         (set_image_of_range): New fun.
69053         (SET_RANGE_TABLE_WORK_AREA): Use it.
69054         (regex_compile): Don't translate the pattern chars so eagerly.
69055         Only do it when inserting an `exactn' bytecode or when handling
69056         a char-range.
69057         (mutually_exclusive_p): Avoid empty statement.
69058
69059 2002-07-06  Jim Meyering  <meyering@lucent.com>
69060
69061         * m4/README: Don't mention Makefile.am.in.
69062         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
69063
69064 2002-07-01  Jim Meyering  <meyering@lucent.com>
69065
69066         * lib/c-stack.c: Include sys/time.h.
69067         From Volker Borchert.
69068
69069 2002-06-26  Paul Eggert  <eggert@twinsun.com>
69070
69071         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
69072
69073 2002-06-26  Paul Eggert  <eggert@twinsun.com>
69074
69075         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
69076         New macro.  Use it uniformly instead of
69077         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
69078         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
69079         reported by Vin Shelton.
69080
69081 2002-06-22  Paul Eggert  <eggert@twinsun.com>
69082
69083         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
69084         Do not assume SA_SIGINFO behavior.
69085         Bug reported by Jim Meyering on NetBSD 1.5.2.
69086
69087 2002-06-22  Jim Meyering  <meyering@lucent.com>
69088
69089         * m4/c-stack.m4: New file, from diffutils-2.8.2.
69090         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
69091
69092         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
69093         now that configure.ac uses AC_GNU_SOURCE.
69094         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
69095         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
69096
69097         Update to latest tools.  Suggestions from Paul Eggert.
69098         * m4/stdbool.m4: New file, from diffutils-2.8.2.
69099         * m4/gnu-source.m4: Update from diffutils-2.8.2.
69100         * m4/fnmatch.m4: Likewise.
69101         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
69102         to AC_HEADER_STDBOOL
69103
69104 2002-06-22  Jim Meyering  <meyering@lucent.com>
69105
69106         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
69107         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
69108
69109 2002-06-22  Jim Meyering  <meyering@lucent.com>
69110
69111         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
69112
69113         * lib/exitfail.c, exitfail.h: Likewise.
69114         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
69115
69116         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
69117         of fnmatch.h.
69118         (EXTRA_DIST): Add fnmatch_loop.c.
69119         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
69120
69121         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
69122         * lib/fnmatch.c: Update from diffutils-2.8.2.
69123         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
69124         * lib/fnmatch.h: Remove file.
69125
69126 2002-06-21  Jim Meyering  <meyering@lucent.com>
69127
69128         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
69129         * m4/mbrtowc.m4: Likewise.
69130
69131         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
69132         * m4/mbswidth.m4: Reflect name change:
69133         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
69134         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
69135
69136         * m4/lib-link.m4: Update from gettext-0.11.2.
69137         * m4/gettext.m4: Likewise.
69138
69139         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
69140         From Alfred M. Szmidt.
69141
69142 2002-06-18  Paul Eggert  <eggert@twinsun.com>
69143
69144         * lib/file-type.h: Report an error if neither S_ISREG nor
69145         S_IFREG is defined, instead of using a test specific to glibc
69146         2.2.  This should be safe, since POSIX requires S_ISREG and
69147         Unix Version 7 had S_IFREG.  We don't need to check for
69148         <sys/types.h> since we don't use any symbols that it defines.
69149
69150 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
69151
69152         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
69153         $@-t, so that each temporary file name is unique and valid in the first
69154         8 characters, for operation under DOS.
69155
69156 2002-06-15  Paul Eggert  <eggert@twinsun.com>
69157
69158         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
69159
69160 2002-06-15  Jim Meyering  <meyering@lucent.com>
69161
69162         Work even with DJGPP 2.03, which lacks support for symlinks.
69163         From Richard Dawe.
69164         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
69165         is defined.
69166         * lib/lchown.c (S_ISLNK): Likewise.
69167
69168 2002-06-15  Jim Meyering  <meyering@lucent.com>
69169
69170         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
69171         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
69172         have been included before this file.
69173
69174 2002-06-14  Jim Meyering  <meyering@lucent.com>
69175
69176         * lib/file-type.h: Use the version from diffutils-2.8.2.
69177         * lib/file-type.c: Likewise.
69178
69179 2002-06-07  Jim Meyering  <meyering@lucent.com>
69180
69181         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
69182         They're needed at least for NetBSD 1.5.2.
69183         ($statxfs_includes): Include those same headers.
69184         ($statxfs_includes): Include sys/vfs.h if available.
69185         ($statxfs_includes): Likewise for sys/statvfs.h.
69186         Check for the following members in both structs statfs and statvfs:
69187         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
69188
69189 2002-06-01  Jim Meyering  <meyering@lucent.com>
69190
69191         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
69192         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
69193
69194 2002-05-28  Jim Meyering  <meyering@lucent.com>
69195
69196         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
69197         Reported by Volker Borchert.
69198
69199 2002-05-27  Jim Meyering  <meyering@lucent.com>
69200
69201         Fix a problem seen only on nonconforming systems whereby ls.c's
69202         use of localtime, and then of gettimeofday would cause trouble:
69203         the localtime call used to initialize rpl_gettimeofday's save
69204         mechanism would clobber ls's current local time information so
69205         that in any long listing the first file would always be listed
69206         with date 1970-01-01.  Analysis by Volker Borchert.
69207
69208         * lib/gettimeofday.c (localtime): Undefine.
69209         (rpl_localtime): New function.
69210
69211 2002-05-27  Jim Meyering  <meyering@lucent.com>
69212
69213         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
69214         localtime.
69215
69216         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
69217         use the replacement function; it wouldn't resolve at link time.
69218         Reported by Volker Borchert.
69219
69220 2002-05-22  Jim Meyering  <meyering@lucent.com>
69221
69222         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
69223         file-type.h.
69224         * lib/file-type.h: New file.
69225         * lib/file-type.c (file_type): New file/function.  Extracted from
69226         diffutils.
69227
69228 2002-04-30  Jim Meyering  <meyering@lucent.com>
69229
69230         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
69231
69232 2002-04-29  Paul Eggert  <eggert@twinsun.com>
69233
69234         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
69235
69236 2002-04-29  Paul Eggert  <eggert@twinsun.com>
69237
69238         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
69239         Do not check for alloca.h (no longer used) or stdbool.h (was never
69240         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
69241
69242 2002-04-29  Paul Eggert  <eggert@twinsun.com>
69243
69244         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
69245
69246 2002-04-29  Jim Meyering  <meyering@lucent.com>
69247
69248         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
69249         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
69250         Use AC_FUNC_STRNLEN here instead.
69251
69252         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
69253         With autoconf-2.53a, it's part of AC_PROG_CC.
69254
69255 2002-04-28  Paul Eggert  <eggert@twinsun.com>
69256
69257         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
69258         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
69259
69260 2002-04-28  Paul Eggert  <eggert@twinsun.com>
69261
69262         * lib/sig2str.h, lib/sig2str.c: New files.
69263         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
69264
69265 2002-04-28  Paul Eggert  <eggert@twinsun.com>
69266
69267         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
69268         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
69269         of 127, since 64 is the largest conceivable number for ancient
69270         nonstandard hosts.
69271         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
69272
69273 2002-04-28  Jim Meyering  <meyering@lucent.com>
69274
69275         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
69276
69277 2002-04-24  Jim Meyering  <meyering@lucent.com>
69278
69279         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
69280         (jm_PREREQ): Use it.
69281
69282         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
69283         mach/mach.h fcntl.h.
69284         Check for this function: setlocale.
69285
69286 2002-04-24  Jim Meyering  <meyering@lucent.com>
69287
69288         * lib/gettext.h: New file, from Gettext.
69289         * lib/Makefile.am (INCLUDES): Remove -I../intl.
69290         (libfetish_a_SOURCES): Add gettext.h.
69291
69292 2002-04-16  Jim Meyering  <meyering@lucent.com>
69293
69294         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
69295         ut_pid, ut_id, ut_exit.
69296
69297 2002-04-16  Jim Meyering  <meyering@lucent.com>
69298
69299         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
69300         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
69301         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
69302
69303 2002-04-12  Jim Meyering  <meyering@lucent.com>
69304
69305         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
69306         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
69307         existence of the getmntinfo function.  Needed for Darwin 5.3.
69308
69309         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
69310         This is necessary at least on Darwin 5.3.
69311
69312         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
69313         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
69314         strnlen.o in the library, and that makes some versions of ranlib
69315         object.
69316
69317 2002-04-12  Jim Meyering  <meyering@lucent.com>
69318
69319         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
69320
69321 2002-04-09  Jim Meyering  <meyering@lucent.com>
69322
69323         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
69324         to be more precise.  Rather than saying we're checking whether the
69325         function `works', say what we're testing.
69326         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
69327         Reported by Bruno Haible.
69328
69329 2002-03-10  Jim Meyering  <meyering@lucent.com>
69330
69331         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
69332         Suggestion from Santiago Vila.
69333
69334 2002-03-08  Jim Meyering  <meyering@lucent.com>
69335
69336         * lib/rename.c: Mention that this wrapper is needed also on
69337         mips-dec-ultrix4.4 systems.
69338
69339 2002-03-02  Jim Meyering  <meyering@lucent.com>
69340
69341         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
69342         not HAVE_CLOCK_SETTIME.
69343
69344 2002-02-27  Paul Eggert  <eggert@twinsun.com>
69345
69346         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
69347         Check for clock_settime.
69348
69349 2002-02-27  Paul Eggert  <eggert@twinsun.com>
69350
69351         * lib/nanosleep.h: Rename to....
69352         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
69353
69354         * lib/gettime.c: New file.
69355         * lib/settime.c: New file.
69356         * lib/stime.c: Remove.
69357
69358         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
69359         timespec.h.  Remove nanosleep.h.
69360
69361 2002-02-25  Paul Eggert  <eggert@twinsun.com>
69362
69363         * m4/acl.m4: New file.
69364         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
69365         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
69366
69367 2002-02-25  Paul Eggert  <eggert@twinsun.com>
69368
69369         * lib/acl.c, lib/acl.h: New files.
69370         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
69371
69372 2002-02-24  Jim Meyering  <meyering@lucent.com>
69373
69374         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
69375         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
69376         cause trouble.  Reported by Nelson Beebe.
69377
69378 2002-02-23  Paul Eggert  <eggert@twinsun.com>
69379
69380         * lib/path-concat.c (xpath_concat): Reorder code to pacify
69381         compilers that don't know that xalloc_die never returns.
69382
69383 2002-02-20  Jim Meyering  <meyering@lucent.com>
69384
69385         * lib/getdate.c: Regenerate using bison-1.33.
69386
69387 2002-02-17  Jim Meyering  <meyering@lucent.com>
69388
69389         * config/config.guess (main): Don't use `head -1'; it's no longer
69390         portable. Use `sed 1q' instead.
69391
69392 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
69393
69394         * m4/codeset.m4: Upgrade to gettext-0.11.
69395         * m4/gettext.m4: Upgrade to gettext-0.11.
69396         * m4/glibc21.m4: Upgrade to gettext-0.11.
69397         * m4/iconv.m4: Upgrade to gettext-0.11.
69398         * m4/isc-posix.m4: Upgrade to gettext-0.11.
69399         * m4/lcmessage.m4: Upgrade to gettext-0.11.
69400         * m4/lib-ld.m4: New file, from gettext-0.11.
69401         * m4/lib-link.m4: New file, from gettext-0.11.
69402         * m4/lib-prefix.m4: New file, from gettext-0.11.
69403         * m4/progtest.m4: Upgrade to gettext-0.11.
69404
69405 2002-02-15  Paul Eggert  <eggert@twinsun.com>
69406
69407         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
69408         (jm_PREREQ): Use it.
69409
69410 2002-02-15  Paul Eggert  <eggert@twinsun.com>
69411
69412         * lib/posixver.c, lib/posixver.h: New files.
69413         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
69414
69415 2002-02-02  Paul Eggert  <eggert@twinsun.com>
69416             Bruno Haible  <bruno@clisp.org>
69417
69418         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
69419         (fwrite_success_callback): New declaration.
69420         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
69421         print_unicode_char. Call failure callback instead of error.
69422         (fwrite_success_callback): New function.
69423         (exit_failure_callback): New function.
69424         (fallback_failure_callback): New function.
69425         (print_unicode_char): Call unicode_to_mb.
69426
69427 2002-01-26  Jim Meyering  <meyering@lucent.com>
69428
69429         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
69430         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
69431
69432 2002-01-26  Jim Meyering  <meyering@lucent.com>
69433
69434         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
69435
69436 2002-01-22  Paul Eggert  <eggert@twinsun.com>
69437
69438         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
69439
69440 2002-01-22  Jim Meyering  <meyering@lucent.com>
69441
69442         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
69443         Otherwise, some versions of automake would omit the rule that makes
69444         Makefile from Makefile.in.
69445
69446 2002-01-21  Paul Eggert  <eggert@twinsun.com>
69447
69448         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
69449         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
69450         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
69451         (memcoll): Set errno to zero if there is no error.
69452
69453         * lib/quotearg.c (quotearg_buffer_restyled):
69454         Fix bug with quoting buffers containing NUL when backslashing escapes.
69455         This bug was exposed by the other changes in this patch.
69456         (quotearg_n_options): New arg ARGSIZE.
69457         All callers changed.
69458         (quoting_options_from_style): New function.
69459         (quotearg_n_style): Use it.
69460         (quotearg_n_style_mem): New function.
69461
69462         * lib/quotearg.h (quotearg_n_style_mem): New function.
69463
69464 2002-01-19  Jim Meyering  <meyering@lucent.com>
69465
69466         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
69467         Remove useless quotes: DF_PROG="df".
69468         * m4/strnlen.m4: New file.
69469
69470 2002-01-16  Paul Eggert  <eggert@twinsun.com>
69471
69472         * lib/backupfile.c (ISDIGIT): Comment fix.
69473         * lib/getdate.y (ISDIGIT): Likewise.
69474         * lib/posixtm.c (ISDIGIT, year): Likewise.
69475         * lib/strverscmp.c (ISDIGIT): Likewise.
69476         * lib/userspec.c (ISDIGIT): Likewise.
69477
69478 2002-01-16  Jim Meyering  <meyering@lucent.com>
69479
69480         * lib/getdate.y: Add three semicolons, each just before a closing
69481         brace. Bison (as of version 1.31) no longer papers over that mistake.
69482
69483 2002-01-05  Jim Meyering  <meyering@lucent.com>
69484
69485         * lib/version-etc.c (version_etc_copyright): Update copyright year.
69486
69487 2001-12-19  Paul Eggert  <eggert@twinsun.com>
69488
69489         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
69490         not silently exit merely because the output buffer happens to
69491         have nothing pending.
69492
69493 2001-12-18  Paul Eggert  <eggert@twinsun.com>
69494
69495         See the big note in ../ChangeLog.
69496         * lib/human.c (suffixes): Prefer K to k for 1024.
69497         (generate_suffix_backwards): New function.
69498         (human_readable_inexact): Use it.
69499         * lib/xstrtol.c (__xstrtol): If there is no number but there
69500         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
69501         Accept 'K' as well as 'k'.
69502
69503 2001-12-15  Jim Meyering  <meyering@lucent.com>
69504
69505         * lib/regex.h (__restrict_arr): Update from libc.
69506
69507         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
69508         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
69509         (STREQ): Define.
69510
69511 2001-12-14  Jim Meyering  <meyering@lucent.com>
69512
69513         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
69514         Suggestion from Bruno Haible.
69515
69516 2001-12-10  Jim Meyering  <meyering@lucent.com>
69517
69518         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
69519         xrealloc, Instead, include "xalloc.h".
69520         (initbuffer): Don't cast xmalloc return value to char*.
69521         (readline): Reword comment.
69522         Don't cast xrealloc return value to char*
69523         Return NULL, not 0.
69524
69525 2001-12-09  Jim Meyering  <meyering@lucent.com>
69526
69527         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
69528         about `signed and unsigned type in conditional expression'.
69529         * lib/posixtm.c (posix_time_parse): Likewise.
69530
69531         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
69532
69533         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
69534         to avoid a pedantic warning.
69535
69536         * lib/getstr.c: Don't include assert.h.
69537         (getstr): Remove warning-evoking assertions.
69538         Return -1 if offset parameter is out of bounds.
69539         Change the type of a local from int to size_t.
69540
69541         * lib/strftime.c (my_strftime_localtime_r): Include this function
69542         definition in the `#if ! HAVE_TM_GMTOFF' block.
69543
69544         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
69545         Include xalloc.h instead.
69546
69547 2001-12-02  Jim Meyering  <meyering@lucent.com>
69548
69549         * lib/tempname.c: Don't declare getenv, thus reverting the change of
69550         2001-11-18.  It's no longer necessary, now that stdlib.h is always
69551         included.
69552
69553         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
69554         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
69555
69556 2001-11-30  Akim Demaille  <akim@epita.fr>
69557
69558         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
69559         before being defined.
69560
69561 2001-11-27  Paul Eggert  <eggert@twinsun.com>
69562
69563         * lib/quotearg.h (quotearg_n, quotearg_n_style):
69564         First arg is int, not unsigned.
69565         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
69566         (SIZE_MAX, UINT_MAX): New macros.
69567         (quotearg_n_options): Abort if N is negative.
69568         Avoid overflow check on hosts where size_t is 64 bits and int
69569         is 32 bits, as overflow is impossible there.
69570         Fix off-by-one typo that caused unnecessary reallocation.
69571
69572 2001-11-27  Jim Meyering  <meyering@lucent.com>
69573
69574         * lib/tempname.c: Merge with version from libc.
69575         * lib/regex.c: Likewise.
69576
69577         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
69578         systems for which STDC_HEADERS is 0, it was not included, resulting in
69579         a warning about an integer-to-pointer conversion problem with getenv.
69580         Reported by Volker Borchert.
69581
69582 2001-11-26  Jim Meyering  <meyering@lucent.com>
69583
69584         * lib/gtod.h: Remove file.
69585         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
69586         * lib/gettimeofday.c: Don't include gtod.h.
69587         (GTOD_init): Remove function.
69588         (rpl_gettimeofday): Do its job here instead, rather than aborting.
69589         Suggestion from Volker Borchert.
69590
69591 2001-11-23  Jim Meyering  <meyering@lucent.com>
69592
69593         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
69594         it.
69595         * lib/hash.c (struct hash_table): Define it here instead.
69596
69597 2001-11-22  Jim Meyering  <meyering@lucent.com>
69598
69599         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
69600
69601 2001-11-20  Jim Meyering  <meyering@lucent.com>
69602
69603         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
69604         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
69605
69606 2001-11-19  Jim Meyering  <meyering@lucent.com>
69607
69608         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
69609         directory.  Use "conftestXXXXXX" as the template.
69610         Suggestion from Paul Eggert.
69611
69612         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
69613         immediately, so the test doesn't mistakenly hit the max-open-files
69614         limit.
69615
69616 2001-11-18  Paul Eggert  <eggert@twinsun.com>
69617
69618         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
69619         (TEMPORARIES): New macro.
69620         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
69621         removes an artificial limitation (e.g. HP-UX 10.20, where
69622         TMP_MAX is 17576).
69623
69624 2001-11-18  Jim Meyering  <meyering@lucent.com>
69625
69626         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
69627
69628 2001-11-18  Jim Meyering  <meyering@lucent.com>
69629
69630         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
69631         on SunOS 4.
69632
69633         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
69634         files will be created before anything else.
69635
69636 2001-11-17  Paul Eggert  <eggert@twinsun.com>
69637
69638         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
69639         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
69640
69641 2001-11-17  Jim Meyering  <meyering@lucent.com>
69642
69643         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
69644         Prompted by a report from Bob Proulx.
69645
69646         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
69647         Instead, require UTILS_FUNC_MKSTEMP.
69648
69649 2001-11-17  Jim Meyering  <meyering@lucent.com>
69650
69651         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
69652         Now, that's done as part of AC_FUNC_STRTOD.
69653
69654 2001-11-17  Jim Meyering  <meyering@lucent.com>
69655
69656         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
69657         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
69658         rather than group writable.  Patch by Juan F. Codagnone.
69659
69660         * lib/readtokens.c: Remove explicit declarations of xmalloc and
69661         xrealloc, Instead, include "xalloc.h".
69662
69663         * lib/mountlist.c: Include unlocked-io.h after all system headers.
69664         Remove explicit declarations of xmalloc, xrealloc,
69665         and xstrdup.  Instead, include "xalloc.h".
69666
69667         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
69668         unlocked-io.h.
69669         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
69670         Likewise.
69671         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
69672
69673         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
69674         Reported by Padraig Brady.
69675
69676         * lib/mkstemp.c: #undef mkstemp.
69677         Include config.h.
69678         (rpl_mkstemp): Rename from mkstemp.
69679         Protoize.
69680
69681 2001-11-16  Jim Meyering  <meyering@lucent.com>
69682
69683         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
69684         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
69685         determine the amount of total physical memory, use pstat_getstatic.
69686         HPUX-11 doesn't define _SC_PHYS_PAGES.
69687         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
69688         If sysconf couldn't be used to determine the amount of available
69689         physical memory, use both pstat_getstatic and pstat_getdynamic.
69690         Based on a patch from Bob Proulx.
69691
69692 2001-11-10  Jim Meyering  <meyering@lucent.com>
69693
69694         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
69695         (jm_PREREQ): Use it.
69696
69697 2001-11-09  Jim Meyering  <meyering@lucent.com>
69698
69699         * m4/jm-macros.m4: Require autoconf-2.52f.
69700         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
69701         Use these AC_-prefixed names, not the AM_-prefixed ones.
69702
69703         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
69704
69705 2001-11-05  Jim Meyering  <meyering@lucent.com>
69706
69707         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
69708
69709 2001-11-04  Jim Meyering  <meyering@lucent.com>
69710
69711         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
69712         $DEFS.
69713
69714 2001-11-03  Jim Meyering  <meyering@lucent.com>
69715
69716         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
69717         of AC_DEFUN.
69718
69719         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
69720         know the name of the variable in the macro definition.
69721
69722 2001-11-03  Jim Meyering  <meyering@lucent.com>
69723
69724         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
69725         in argmatch_to_argument call.
69726
69727         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
69728         argument.
69729
69730         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
69731         e.g., a fault due to an attempt to free a NULL pointer.
69732
69733 2001-11-01  Jim Meyering  <meyering@lucent.com>
69734
69735         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
69736         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
69737
69738 2001-11-01  Jim Meyering  <meyering@lucent.com>
69739
69740         * lib/dirfd.c, lib/dirfd.h: New files.
69741         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
69742
69743         * lib/hash.c (hash_print) [TESTING]: Clean up.
69744
69745 2001-10-22  Paul Eggert  <eggert@twinsun.com>
69746
69747         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
69748         to avoid a warning if -Wall.
69749
69750 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
69751
69752         * README: New file
69753         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
69754         (per RMS's instructions, this is now the canonical source)
69755         * lgpl/, gpl/: New directories.
69756
69757 2001-10-21  Paul Eggert  <eggert@twinsun.com>
69758
69759         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
69760
69761 2001-10-21  Jim Meyering  <meyering@lucent.com>
69762
69763         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
69764         this code would end up calling gettext even in packages built
69765         with --disable-nls.
69766         * lib/getopt.c (_): Likewise.
69767         * lib/regex.c (_): Likewise.
69768
69769 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69770
69771         * m4/error.m4 (jm_PREREQ_ERROR):
69772         Do not invoke AC_CHECK_FUNCS with strerror_r, as
69773         AC_FUNC_STRERROR_R does that.
69774         Check for strerror declaration.
69775
69776         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
69777         are supposed to have them these days.
69778         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
69779         Merge changes from latest Autoconf CVS.
69780         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
69781         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
69782         POSIX decided to standardize on the int flavor of strerror_r.
69783
69784 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69785
69786         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
69787         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
69788         Use strerror_r that is only a macro, even if it is not a function.
69789         (strerror): Check for HAVE_DECL_STRERROR before declaring.
69790         (private_strerror): Use prototypes, not old-style function definition.
69791         (print_errno_message): New function.
69792         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
69793         char*-flavored one.
69794         (error_tail, error, error_at_line): Use it.
69795
69796 2001-10-11  Jim Meyering  <meyering@lucent.com>
69797
69798         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
69799         and quote_n (1, ... to avoid clobbering a buffer.
69800
69801 2001-10-05  Jim Meyering  <meyering@lucent.com>
69802
69803         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
69804         hash-pjw.h.
69805         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
69806         * lib/hash-pjw.h: New file.
69807
69808 2001-09-30  Jim Meyering  <meyering@lucent.com>
69809
69810         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
69811         `struct fsstat' has the `f_fstypename' member.
69812         Use that to define FS_TYPE, which is now used to make
69813         the getfsstat link test tighter.
69814
69815 2001-09-30  Jim Meyering  <meyering@lucent.com>
69816
69817         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
69818         Include <sys/ucred.h>, for Apple Darwin.
69819         Include sys/mount.h and sys/fs_types.h only if available.
69820         (FS_TYPE): Define.
69821         (read_filesystem_list): Use FS_TYPE.
69822
69823 2001-09-29  Paul Eggert  <eggert@twinsun.com>
69824
69825         * lib/exclude.c (excluded_filename): 0 -> false, since it's
69826         a boolean context.
69827
69828 2001-09-29  Jim Meyering  <meyering@lucent.com>
69829
69830         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69831         [one-argument getmntent function]): Include stdio.h before mntent.h.
69832         SunOS 4.1.x needs it for the declaration of `FILE'.
69833         Patch by Volker Borchert.
69834
69835         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69836         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
69837         sys/fs_types.h, and make the link-test for getfsstat guard #include
69838         directives with appropriate #if HAVE_*_H tests so that we can
69839         detect getfsstat on Apple Darwin1.3.7 systems.
69840         Reported by Nelson Beebe.
69841         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
69842
69843 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69844
69845         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69846         #defines strtoimax.  Also treat the other strto* functions
69847         like strtoimax.
69848
69849         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69850         Check for strtoul and strtoumax,
69851         as those declarations are made even in the signed case.
69852         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
69853         Likewise, for strtol and strtoimax.
69854
69855 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69856
69857         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69858         #defines strtoimax.  Also treat the other strto* functions
69859         like strtoimax.
69860
69861         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
69862         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
69863         (strtoimax, strtoumax): Do not declare if already defined as a macro.
69864
69865 2001-09-26  Jim Meyering  <meyering@lucent.com>
69866
69867         Most macros in unlocked-io.h had the wrong number of arguments.
69868         * lib/gen-uio: New script.
69869         (USE_UNLOCKED_IO): Define to 1 if not already defined.
69870         * lib/unlocked-io.hin: Remove file.
69871         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
69872         rather than trying to embed it here.
69873         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
69874         Reported by Padraig Brady.
69875
69876 2001-09-25  Volker Borchert  <bt@teknon.de>
69877
69878         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
69879         `result'.
69880
69881 2001-09-24  Jim Meyering  <meyering@lucent.com>
69882
69883         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
69884
69885 2001-09-23  Jim Meyering  <meyering@lucent.com>
69886
69887         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
69888         instead of the mere test for existence of mntent.h.  The latter
69889         would get a false-positive on AIX 3.4 systems.
69890         In the outer getmntent if-block, don't die if neither of the getmntent
69891         tests succeeds.  Instead, just fall through and continue with the
69892         remaining tests.
69893
69894 2001-09-23  Jim Meyering  <meyering@lucent.com>
69895
69896         * lib/mountlist.c: Remove useless parentheses in #if directives.
69897         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
69898         the deprecated MOUNTED symbol is no longer defined in mntent.h.
69899
69900 2001-09-22  Jim Meyering  <meyering@lucent.com>
69901
69902         * m4/gettext.m4: New file.  From gettext.
69903         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
69904         * m4/progtest.m4: Likewise
69905         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
69906         * m4/glibc21.m4: Likewise.
69907
69908         * m4/libintl.m4: Remove.  No longer used.
69909
69910 2001-09-22  Jim Meyering  <meyering@lucent.com>
69911
69912         * lib/localcharset.c: Update from latest gettext.
69913         * lib/config.charset: Likewise.
69914
69915 2001-09-20  Jim Meyering  <meyering@lucent.com>
69916
69917         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
69918         strtoimax.
69919         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
69920         strtoumax.
69921
69922 2001-09-20  Jim Meyering  <meyering@lucent.com>
69923
69924         * lib/xstrtol.c (strtoimax): Guard declaration with
69925         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
69926         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
69927         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
69928         (strtoumax): Likewise, for completeness (it wasn't necessary).
69929
69930 2001-09-17  Paul Eggert  <eggert@twinsun.com>
69931
69932         * lib/strtoimax.c (HAVE_LONG_LONG):
69933         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
69934         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
69935         to work around bug in IBM C compiler.
69936
69937 2001-09-17  Jim Meyering  <meyering@lucent.com>
69938
69939         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
69940         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
69941         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
69942         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
69943         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
69944         whenever the right hand side need not be expanded by the shell.
69945
69946 2001-09-16  Paul Eggert  <eggert@twinsun.com>
69947
69948         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
69949         library.  It's not correct, as some older glibcs are buggy.
69950         fnmatch wasn't fixed until glibc 2.2.
69951
69952         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
69953         special shell magic here.
69954
69955 2001-09-16  Jim Meyering  <meyering@lucent.com>
69956
69957         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
69958         * m4/jm-macros.m4: Require it.
69959
69960 2001-09-16  Jim Meyering  <meyering@lucent.com>
69961
69962         * lib/mkdir.c: New file.
69963
69964 2001-09-15  Jim Meyering  <meyering@lucent.com>
69965
69966         * m4/jm-macros.m4: Check for help2man.
69967
69968 2001-09-11  Jim Meyering  <meyering@lucent.com>
69969
69970         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
69971         The body, by Paul Eggert, was moved here from configure.in.
69972         * m4/jm-macros.m4: Require UTILS_HOST_OS.
69973
69974 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69975
69976         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
69977         (jm_PREREQ): Use it.
69978
69979 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69980
69981         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
69982         Use ssize_t, not int, to store result of readlink.
69983         Check for ssize_t overflow as well as size_t overflow,
69984         as POSIX says the result of readlink is implementation-defined
69985         when ssize_t overflows.
69986         Remove unnecessary cast to char*.
69987         Use free+malloc instead of realloc, as the storage doesn't need
69988         to be preserved and it's clearer and can be more efficient that way.
69989         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
69990         * lib/xreadlink.h (xreadlink): Update prototype.
69991
69992 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69993
69994         * lib/xgetcwd.c: Revert some of the previous change; intead,
69995         fix the HAVE_GETCWD_NULL code to behave more like the
69996         !HAVE_GETCWD_NULL code used to.
69997
69998         Include "xalloc.h".
69999         (xgetcwd): Do not return NULL when memory is exhausted; instead,
70000         invoke xalloc_die.
70001
70002 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70003
70004         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
70005         sys/param.h, as pathmax.h includes them.
70006
70007 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70008
70009         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
70010         (jm_PREREQ_XGETCWD): New macro.
70011
70012         * m4/getcwd.m4: New file.
70013
70014 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70015
70016         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
70017         like the HAVE_GETCWD_NULL code.
70018         Include pathmax.h if not HAVE_GETCWD.
70019         Do not include xalloc.h.
70020         (INITIAL_BUFFER_SIZE): New symbol.
70021         Do not use xmalloc / xrealloc, since the caller is responsible for
70022         handling errors.  Preserve errno around `free' during failure.
70023         Do not overrun buffer when using getwd.
70024
70025 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70026
70027         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
70028         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
70029         getcwd (NULL, 0).
70030
70031 2001-09-03  Paul Eggert  <eggert@twinsun.com>
70032
70033         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
70034         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
70035         spotted by Jim Meyering.
70036
70037 2001-09-03  Jim Meyering  <meyering@lucent.com>
70038
70039         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
70040         failure.
70041
70042 2001-09-02  Jim Meyering  <meyering@lucent.com>
70043
70044         * lib/error.c: Update from GNU libc.
70045
70046 2001-09-01  Jim Meyering  <meyering@lucent.com>
70047
70048         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
70049         Used by df.
70050
70051 2001-09-01  Jim Meyering  <meyering@lucent.com>
70052
70053         * lib/xreadlink.c: New file.
70054         * lib/xreadlink.h: New file.
70055         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
70056         xreadlink.h.
70057
70058         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
70059         doesn't conflict with sparc Solaris 7's definition in
70060         /usr/include/sys/int_types.h.
70061
70062         * lib/exclude.c: Use `""', not `<>' to #include non-system header
70063         files.
70064         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
70065         and strncasecmp as r-values.  Unixware didn't have declarations.
70066
70067 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70068
70069         * lib/xstrtol.h: Add copyright notice.
70070         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
70071         LONGINT_INVALID_SUFFIX_CHAR.
70072
70073 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70074
70075         * lib/xstrtol.c (strtoimax): New decl.
70076
70077 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70078
70079         * lib/xgetcwd.c: Don't include pathmax.h.
70080         Include stdlib.h and unistd.h if available.
70081         Include xalloc.h.
70082         (xmalloc, xstrdup, free): Remove decls.
70083         (xgetcwd): Don't assume sizes fit in unsigned.
70084         Check for overflow when computing sizes.
70085         Simplify reallocation code.
70086
70087 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70088
70089         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
70090         a directory's st_size can have an arbitrary value, so the old
70091         usage could waste an arbitrary amount of memory.  All uses
70092         changed.
70093         * lib/savedir.h: Update prototype.
70094
70095 2001-08-31  Paul Eggert  <eggert@twinsun.com>
70096
70097         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
70098
70099         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
70100         old strtoimax.c.
70101
70102         Also, make the following further changes to make this file's
70103         configuration more similar to that of strtol.c:
70104         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
70105         (strtoumax, uintmax_t, strtoull, strtol): Remove.
70106         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
70107         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
70108         changed to signed values.
70109
70110         And make the following changes as well:
70111         Fix copyright notice, as 1999 was missing.
70112         (verify): New macro.
70113         (strtoimax): Check sizes at compile-time, not run-time.
70114         Prefer strtol to strtoll if both work.
70115         (main): Remove; it was not that useful and was a pain to maintain.
70116
70117         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
70118
70119 2001-08-31  Jim Meyering  <meyering@lucent.com>
70120
70121         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
70122         Use an initial, malloc'd, buffer of length 128 rather than
70123         a statically allocated one of length 1024.
70124
70125 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70126
70127         Simplify code, partly by assuming autoconf 2.52 semantics.
70128
70129         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
70130
70131         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
70132         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
70133         All uses removed.
70134         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
70135         Move AC_REQUIRE to next-to-top level, to avoid confusion.
70136         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
70137         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
70138         jm_AC_HEADER_INTTYPES_H.
70139         * m4/jm-macros.m4 (jm_MACROS): Likewise.
70140
70141         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
70142
70143         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
70144         Quote first arg of AC_DEFUN.
70145         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
70146         since they are needed to parse the include file even if we need
70147         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
70148         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
70149         but with opposite signedness.
70150
70151 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70152
70153         Merge 'exclude' changes from tar 1.13.22.
70154         This fixes one or two unlikely storage allocation overflow bugs,
70155         but doesn't change user-visible behavior otherwise.
70156
70157 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70158
70159         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
70160         (jm_PREREQ_EXCLUDE): New macro.
70161
70162 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70163
70164         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
70165         tm to be declared.
70166
70167 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70168
70169         * lib/hash.c: Remove '2001' from copyright notice.
70170
70171 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70172
70173         * lib/full-write.h: New file.
70174         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
70175         * lib/full-write.c: Correct credits, as cccp.c no longer
70176         exists and anyway it was so heavily changed from the old cccp
70177         code as to be unrecognizable.  Include full-write.h.
70178         (full_write) Return size_t, with short writes meaning failure.
70179         All callers changed.  This fixes a bug with large buffers
70180         on 64-bit hosts.
70181         * lib/utime.c: Include full-write.h.
70182
70183 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70184
70185         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
70186         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
70187         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
70188         Include if available.
70189         (<xalloc.h>): Include
70190         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
70191         (verify): New macro.  Use it to verify that EXCLUDE macros do not
70192         collide with FNM macros.
70193         (struct patopts): New struct.
70194         (struct exclude): Use it, as exclude patterns now come with options.
70195         (new_exclude): Support above changes.
70196         (new_exclude, add_exclude_file):
70197         Initial size must now be a power of two to simplify overflow checking.
70198         (free_exclude, fnmatch_no_wildcards): New function.
70199         (excluded_filename): No longer requires options arg, as the options
70200         are determined by add_exclude.  Now returns bool, not int.
70201         (excluded_filename, add_exclude):
70202         Add support for the fancy new exclusion options.
70203         (add_exclude, add_exclude_file): Now takes int options arg.
70204         Check for arithmetic overflow when computing sizes.
70205         (add_exclude_file): xrealloc might modify errno, so don't
70206         realloc until after errno might be used.
70207
70208         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
70209         New macros.
70210         (free_exclude): New decl.
70211         (add_exclude, add_exclude_file): Now takes int options arg.
70212         (excluded_filename): No longer requires options arg, as the options
70213         are determined by add_exclude.  Now returns bool, not int.
70214
70215 2001-08-30  Paul Eggert  <eggert@twinsun.com>
70216
70217         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
70218
70219 2001-08-27  Jim Meyering  <meyering@lucent.com>
70220
70221         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
70222
70223         * lib/version-etc.c (N_): Remove definition.
70224         Revert most of last change.
70225         Instead, simply don't mark the `Copyright...' string for translation.
70226         Based on advice from Paul Eggert.
70227
70228         * lib/strtoxmax.c: Tweak comment.
70229
70230 2001-08-26  Jim Meyering  <meyering@lucent.com>
70231
70232         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
70233
70234         * m4/xstrtoimax.m4: New file.
70235         * m4/xstrtoumax.m4: Add comments explaining why we
70236         AC_REPLACE_FUNCS(strtol).
70237
70238 2001-08-26  Jim Meyering  <meyering@lucent.com>
70239
70240         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
70241         of copyright with `%s' so translators don't get an untranslated
70242         message in 2002.
70243         (COPYRIGHT_YEAR): Define.
70244         (version_etc): Use fprintf rather than fputs.
70245         Suggestion from Ulrich Drepper.
70246
70247         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
70248
70249         * lib/strtoll.c: New file, from GNU libc.
70250         * lib/xstrtoimax.c: New file.
70251
70252         * lib/xstrtol.h: Add xstrtoimax.
70253         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
70254         * lib/strtoimax.c: New file.  Likewise, but first define
70255         STRTOUXMAX_SIGNED.
70256
70257         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
70258         ...
70259         * lib/strtoxmax.c: ... then renamed to this.
70260
70261 2001-08-18  Paul Eggert  <eggert@twinsun.com>
70262
70263         * m4/inttypes.m4: Add AC_PREREQ(2.13).
70264         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
70265         (jm_AC_TYPE_INTMAX_T): New macro.
70266         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
70267
70268         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
70269
70270         * m4/longlong.m4: Renamed from ulonglong.m4.
70271         * m4/inttypes.m4: Renamed from inttypes_h.m4.
70272         * m4/uintmax_t.m4: Removed.
70273
70274 2001-08-13  Paul Eggert  <eggert@twinsun.com>
70275
70276         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
70277         Port to Solaris 8, where 'sed' requires a space after the 'r'
70278         command, and where sh dislikes "$/".  Clean up the spacing a bit.
70279         Redirect output to $tmp just once.
70280
70281 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
70282
70283         * lib/addext.c (<errno.h>): Include.
70284         (errno): Declare if not defined.
70285         (addext): Work correctly when pathconf returns -1 and leaves
70286         errno alone because there is no limit.  Also, work even if
70287         pathconf returns a value greater than SIZE_MAX.
70288
70289 2001-08-12  Jim Meyering  <meyering@lucent.com>
70290
70291         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
70292         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
70293         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
70294         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
70295         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
70296         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
70297         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
70298         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
70299         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
70300         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
70301         utime.m4, utimes.m4, xstrtoumax.m4:
70302         Quote the first argument in each use of AC_DEFUN.
70303
70304 2001-08-12  Jim Meyering  <meyering@lucent.com>
70305
70306         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
70307         Simply `return getcwd (NULL, 0);'.
70308         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
70309         Use 1300 as initial value for length, not PATH_MAX.
70310
70311         * lib/pathmax.h: Clean up cpp syntax.
70312
70313 2001-08-12  Jim Meyering  <meyering@lucent.com>
70314
70315         * lib/gettimeofday.c: New file.
70316         * lib/gtod.h: New file.
70317         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
70318
70319 2001-08-05  Jim Meyering  <meyering@lucent.com>
70320
70321         * m4/jm-macros.m4: Require autoconf-2.52.
70322
70323 2001-08-04  Jim Meyering  <meyering@lucent.com>
70324
70325         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
70326         stmt, to get in sync with glibc.
70327
70328 2001-08-03  Paul Eggert  <eggert@twinsun.com>
70329
70330         The following changes are from gettext 0.10.39 as maintained by
70331         Bruno Haible.
70332
70333         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
70334         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
70335         with inverted sense.  All uses changed.
70336
70337         * lib/mbswidth.c: Don't include <limits.h>.
70338         Include <stdlib.h> and <string.h> unconditionally.
70339         (iswcntrl, mbsinit, ISCNTRL): New macros.
70340         (mbsnwidth): Use K&R style function declarations.
70341         Don't bother checking for MB_LEN_MAX == 1, since the compiler
70342         can optimize it when MB_CUR_MAX == 1.
70343         The width of control characters is zero, not 1.
70344
70345 2001-08-03  Paul Eggert  <eggert@twinsun.com>
70346
70347         The following changes are from gettext 0.10.39 as maintained by
70348         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
70349
70350         * m4/codeset.m4: Upgrade to serial AM1.
70351         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
70352         all uses changed.  Quote first arg of AC_DEFUN.
70353         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
70354
70355         * m4/iconv.m4: Upgrade to serial AM2.
70356         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
70357         Add --with-libconv-prefix.
70358         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
70359         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
70360         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
70361         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
70362         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
70363
70364         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
70365         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
70366         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
70367         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
70368         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
70369         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
70370         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
70371         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
70372         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70373
70374         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
70375         string.h any more.
70376
70377         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
70378         not the default value.
70379
70380         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
70381         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
70382         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
70383         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
70384         Also check for iswcntrl, used for wcwidth fallback.
70385         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
70386         to Autoconf 2.13.
70387
70388 2001-08-03  Jim Meyering  <meyering@lucent.com>
70389
70390         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
70391         as it was in the original.  Reported by Paul Eggert.
70392
70393 2001-07-16  Jim Meyering  <meyering@lucent.com>
70394
70395         * m4/gettimeofday.m4: New file.
70396         Prompted by a report from Bernhard Baehr.
70397
70398 2001-07-15  Jim Meyering  <meyering@lucent.com>
70399
70400         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
70401         stuff. Now it's in ../Makefile.cfg.
70402
70403 2001-07-15  Jim Meyering  <meyering@lucent.com>
70404
70405         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
70406         (BUILT_SOURCES): Add unlocked-io.h.
70407         (io_functions): Define.
70408         (unlocked-io.h): New rule.
70409         (DISTCLEANFILES): Add unlocked-io.h.
70410         (all-local): Depend on unlocked-io.h, to ensure it is created.
70411
70412         * lib/unlocked-io.hin: New file
70413
70414         * lib/regex.c: Update from glibc.
70415
70416 2001-07-05  Jim Meyering  <meyering@lucent.com>
70417
70418         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
70419         recommendation.
70420         (libfetish_a_SOURCES): Put all .h files here instead.
70421         Remove a thus-exposed (better checks in automake) duplicate and
70422         two unnecessary .h files.
70423
70424 2001-07-04  Jim Meyering  <meyering@lucent.com>
70425
70426         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
70427         that generates jm-glibc-io.m4 so that it doesn't trigger any make
70428         distcheck failure.
70429
70430 2001-07-02  Jim Meyering  <meyering@lucent.com>
70431
70432         The following changes were prompted by suggestions from Bruno Haible.
70433
70434         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
70435         is now generated.
70436         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
70437         definition of EXTRA_DIST.
70438         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
70439         ensure that the generated file is created/updated whenever the list
70440         of $(unlocked_functions) is changed.
70441         (jm-glibc-io.m4): New rule.
70442         (unlocked-io.h): New rule -- currently unused.
70443
70444 2001-06-24  Jim Meyering  <meyering@lucent.com>
70445
70446         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
70447         unmatched right bracket, rather than kludging it with an extra,
70448         falsely-matching quote in a comment.  Patch by Akim Demaille.
70449
70450 2001-06-11  Jim Meyering  <meyering@lucent.com>
70451
70452         * lib/regex.c: Update from GNU libc.
70453
70454 2001-05-27  Jim Meyering  <meyering@lucent.com>
70455
70456         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
70457         Check for ut_type in struct utmp.
70458
70459 2001-05-27  Jim Meyering  <meyering@lucent.com>
70460
70461         * lib/readutmp.h (UT_TYPE): Define.
70462
70463 2001-05-24  Jim Meyering  <meyering@lucent.com>
70464
70465         * lib/argmatch.c: Include "quote.h".
70466         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
70467         quote function.  Reported by Göran Uddeborg.
70468
70469 2001-05-22  Jim Meyering  <meyering@lucent.com>
70470
70471         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
70472         now that we use the package-supplied version unconditionally.
70473         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
70474
70475 2001-05-21  Jim Meyering  <meyering@lucent.com>
70476
70477         * m4/regex.m4: Change a couple backticks to single quotes to avoid
70478         shell syntax errors.
70479
70480 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
70481
70482         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
70483
70484 2001-05-20  Paul Eggert  <eggert@twinsun.com>
70485
70486         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
70487         Don't bother to check library strftime, since
70488         we'll be using our own my_strftime function anyway.
70489         Define my_strftime instead of strftime.
70490
70491 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
70492
70493         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
70494         which is not yet declared.
70495
70496 2001-05-15  Jim Meyering  <meyering@lucent.com>
70497
70498         * m4/regex.m4: Use proper quoting so brackets appear in the test
70499         program.
70500         Reported by, and with help from, Bruno Haible.
70501
70502 2001-05-13  Jim Meyering  <meyering@lucent.com>
70503
70504         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
70505         undefined.
70506
70507 2001-05-11  Paul Eggert  <eggert@twinsun.com>
70508
70509         dirname code cleanup.  base_name now behaves more compatibly
70510         with POSIX basename when given file names that have trailing
70511         slashes, and similarly for dir_name.  Add new primitives
70512         base_len and dir_len.  Put the directory-name-related decls
70513         into dirname.h.
70514
70515         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
70516         * lib/backupfile.c (base_name): Likewise.
70517         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
70518         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
70519         * lib/makepath.c (strip_trailing_slashes): Likewise.
70520         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
70521         ISSLASH): Likewise.
70522         * lib/rename.c (strip_trailing_slashes): Likewise.
70523         * lib/same.c (base_name): Likewise.
70524         * lib/stripslash.c (ISSLASH): Likewise.
70525
70526         * lib/addext.c: Include <dirname.h> after size_t is defined.
70527         * lib/backupfile.c: Likewise.
70528
70529         * lib/addext.c (addext): Use base_len to trim redundant
70530         trailing slashes instead of doing it ourselves.
70531         But do not trim the last slash if it is not redundant.
70532
70533         * lib/backupfile.c (find_backup_file_name,
70534         max_backup_version): Use base_len instead of rolling it ourselves.
70535         Handle the case of "" and (on DOS) "C:" correctly.
70536
70537         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
70538         needed. Include <string.h>, <dirname.h>.
70539         (base_name): Allow file names ending in slashes, other than names
70540         that are all slashes.  In this case, return the basename followed
70541         by the slashes.  This is more general, and can be used in places
70542         where the original base_name purposely had an assertion failure.
70543         (base_len): New function.
70544
70545         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
70546         Do not include <assert.h>; no longer needed.
70547         Include xalloc.h.
70548         (memrchr): Remove decl.
70549         (dir_name_r): Remove.
70550         (dir_len): Renamed from dirlen.  All callers changed.
70551         Rewrite in terms of base_name, for simplicity and consistency.
70552         (dir_name): Never return NULL.  All callers changed.
70553         Do not include <stdlib.h> in test program; no longer needed.
70554         return 0; is fine for test program.
70555
70556         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
70557         New macros.
70558         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
70559
70560         * lib/path-concat.c (path_concat): Use base_len to compute
70561         base length, not strlen; this means we cannot rely on memcpy
70562         to null-terminate.
70563
70564         * lib/same.c (STREQ): Remove.
70565         (same_name): Handle the case where the basename ends in trailing '/'.
70566
70567         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
70568         a slash was stripped.  Do not strip the last slash after a
70569         file system prefix.
70570
70571 2001-05-11  Paul Eggert  <eggert@twinsun.com>
70572
70573         * lib/Makefile.am (libfetish_a_SOURCES):
70574         Add strftime.c, since we now compile it on all hosts.
70575
70576         * lib/strftime.c (my_strftime):
70577         Define to nstrftime if emacs, but only if my_strftime is not defined.
70578         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
70579         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
70580         Add one more extra argument: a nanoseconds value.
70581         All uses changed.
70582         (ns): New macro.
70583         (my_strftime function): Add %N format.
70584         (emacs_strftimeu): Renamed from emacs_strftime,
70585         with extra ut argument.
70586
70587 2001-05-09  Paul Eggert  <eggert@twinsun.com>
70588
70589         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
70590
70591 2001-04-21  Jim Meyering  <meyering@lucent.com>
70592
70593         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
70594         doesn't interfere.
70595
70596 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
70597
70598         * m4/ftruncate.m4: Check for chsize.
70599         Link with ftruncate.o unconditionally if ftruncate is missing.
70600         This was required when cross-compiling to i586-mingw32msvc.
70601
70602 2001-04-08  Jim Meyering  <meyering@lucent.com>
70603
70604         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
70605         recomputed; that's necessary when the offset spans a DST transition.
70606         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
70607
70608 2001-04-02  Jim Meyering  <meyering@lucent.com>
70609
70610         * lib/regex.h, regex.c: Update from GNU libc.
70611
70612 2001-03-24  Jim Meyering  <meyering@lucent.com>
70613
70614         * m4/jm-macros.m4: Require autoconf-2.49d.
70615
70616 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
70617
70618         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
70619
70620 2001-03-19  Paul Eggert  <eggert@twinsun.com>
70621
70622         * lib/version-etc.c (version_etc_copyright): Update to 2001.
70623
70624 2001-03-17  Jim Meyering  <meyering@lucent.com>
70625
70626         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
70627         now that the version in autoconf is equivalent.
70628         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
70629
70630         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
70631         Suggestion from Akim Demaille.
70632
70633         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
70634         (jm_PREREQ_TEMPNAME): New function.
70635
70636 2001-03-16  Paul Eggert  <eggert@twinsun.com>
70637
70638         * lib/tempname.c (uint64_t): Define to uintmax_t if
70639         not defined, and if UINT64_MAX is not defined.
70640         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
70641         Reported by John David Anglin.
70642
70643 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
70644
70645         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
70646         resolve alias if codeset is empty.
70647         * lib/config.charset (BeOS): Use wildcard syntax.
70648
70649 2001-03-13  Jim Meyering  <meyering@lucent.com>
70650
70651         * lib/path-concat.c (path_concat)
70652         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
70653         concatenating e.g., `C:' and `foo'.
70654         From Bruno Haible.
70655
70656 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70657
70658         * lib/localcharset.c (locale_charset): Don't use
70659         setlocale(LC_CTYPE,NULL). Don't return NULL.
70660         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
70661
70662 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70663
70664         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
70665         support for DOS/DJGPP.
70666
70667 2001-03-01  Paul Eggert  <eggert@twinsun.com>
70668
70669         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
70670         lacks mkstemp.  Compile our own tempname.c if we compile our own
70671         mkstemp.c, as mkstemp relies on tempname.
70672
70673 2001-03-01  Jim Meyering  <meyering@lucent.com>
70674
70675         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
70676         AH_VERBATIM really does output its argument verbatim.
70677
70678 2001-02-28  Paul Eggert  <eggert@twinsun.com>
70679
70680         * lib/Makefile.am (libfetish_a_SOURCES):
70681         Add dup-safer.c, fopen-safer.c.
70682         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
70683
70684         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
70685         * lib/unistd-safer.h: New files.
70686
70687 2001-02-25  Paul Eggert  <eggert@twinsun.com>
70688
70689         The mkstemp replacement is taken from glibc 2.2.2, with some
70690         portability fixes for use outside glibc, as follows:
70691
70692         * lib/tempname.c (struct_stat64): New macro.
70693         (direxists, __gen_tempname): Use it.
70694         This avoids a portability problem with Solaris 8.
70695
70696         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
70697         (<stddef.h>, <stdint.h>, <string.h>):
70698         Include only if STDC_HEADERS || _LIBC.
70699         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
70700         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
70701         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
70702         (__set_errno): Define this macro if <errno.h> doesn't.
70703         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
70704         Define these macros if <stdio.h> doesn't.
70705         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
70706         Define these macros if <sys/stat.h>
70707         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
70708         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
70709         __xstat64): Define if not _LIBC.
70710         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
70711         (__gen_tempname): Invoke gettimeofday only if
70712         HAVE_GETTIMEOFDAY || _LIBC;
70713         otherwise, fall back on plain "time".
70714         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
70715
70716         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
70717
70718         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
70719
70720 2001-02-18  Paul Eggert  <eggert@twinsun.com>
70721
70722         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
70723
70724 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70725
70726         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
70727         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
70728         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
70729         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70730
70731 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70732
70733         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
70734         Remove workaround macros for hosts that have mbrtowc but not
70735         mbstate_t, as we now insist on proper declarations for both
70736         before using mbrtowc.
70737
70738 2001-02-17  Jim Meyering  <meyering@lucent.com>
70739
70740         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
70741         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
70742         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
70743         UnixWare 7.1.1.
70744
70745         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
70746         rather than AC_CACHE_VAL.
70747
70748 2001-02-17  Jim Meyering  <meyering@lucent.com>
70749
70750         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
70751         around included file name.
70752
70753         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
70754
70755         * lib/strftime.c: Update from GNU libc (the only changes were to
70756         comments).
70757
70758 2001-02-17  Jim Meyering  <meyering@lucent.com>
70759
70760         * lib/regex.c: Update from libc.
70761
70762 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
70763
70764         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
70765         clash.
70766
70767 2001-02-16  Paul Eggert  <eggert@twinsun.com>
70768
70769         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
70770         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
70771         Reported by Mark Hounschell via Paul Eggert.
70772
70773 2001-02-07  Jim Meyering  <meyering@lucent.com>
70774
70775         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
70776
70777 2001-02-05  Jim Meyering  <meyering@lucent.com>
70778
70779         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
70780         it includes the patch required for `large file' support with at least
70781         HP-UX's 10.20 /bin/cc.
70782
70783 2001-02-03  Jim Meyering  <meyering@lucent.com>
70784
70785         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
70786         AS_IF, now that it works once again (mysteriously).
70787         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70788
70789 2001-01-30  Jim Meyering  <meyering@lucent.com>
70790
70791         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
70792         * m4/chown.m4: Rename conftestchown to conftest.chown.
70793         * m4/rename.m4: s/conftestdir/conftest.d1/ and
70794         s/conftestdir2/conftest.d2/.
70795         * m4/utimes.m4: s/conftestdata/conftest.data/
70796         Inspired by Pavel Roskin's change in autoconf.
70797
70798 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
70799
70800         * lib/config.charset: Update for FreeBSD 4.2.
70801
70802 2001-01-27  Jim Meyering  <meyering@lucent.com>
70803
70804         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
70805         a use of AS_IF.
70806         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70807
70808 2001-01-26  Jim Meyering  <meyering@lucent.com>
70809
70810         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
70811         quotearg.c includes it.
70812
70813 2001-01-26  Jim Meyering  <meyering@lucent.com>
70814
70815         * lib/quotearg.c: Include stddef.h.
70816         * lib/quote.c: Include stddef.h.
70817         Reported by Axel Kittenberger.
70818
70819         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
70820         line in double quotes so that it evokes a better diagnostic.
70821         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
70822         Reported by Axel Kittenberger.
70823
70824 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
70825
70826         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
70827         as if it was a `charset'.
70828
70829 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70830
70831         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
70832         has const.
70833
70834 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70835
70836         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
70837         to avoid a warning.  Add back 'const' to inptr.
70838
70839 2001-01-20  Jim Meyering  <meyering@lucent.com>
70840
70841         Be sure that headers are checked before used in code compiled
70842         for the type checks.
70843         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
70844         In place of that, invoke jm_CHECK_ALL_TYPES.
70845         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
70846         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
70847         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
70848         The check for ssize_t was mistakenly run before the test for unistd.h.
70849
70850         The configure-time check for stdbool.h was missing.
70851         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
70852         (jm_PREREQ_HASH): New function.
70853
70854 2001-01-17  Jim Meyering  <meyering@lucent.com>
70855
70856         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
70857         for autoconf-2.49c.
70858         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
70859
70860 2001-01-16  Jim Meyering  <meyering@lucent.com>
70861
70862         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
70863         From Bruno Haible.
70864
70865 2001-01-14  Jim Meyering  <meyering@lucent.com>
70866
70867         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
70868         foo and bar.  Create conftestdir/ in the script, not in the C code.
70869         Remove directories in the script, not in the C code.
70870         Remove conftestdir{,2} before trying to create the directory.
70871         Make the entire configure script fail if the mkdir fails.
70872
70873 2001-01-14  Jim Meyering  <meyering@lucent.com>
70874
70875         * lib/rename.c: New file.  From Volker Borchert.
70876         Include stdlib.h, string.h or strings.h, and xalloc.h.
70877         Use strip_trailing_slashes rather than open-coding it.
70878
70879 2001-01-03  Paul Eggert  <eggert@twinsun.com>
70880
70881         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
70882
70883 2001-01-03  Jim Meyering  <meyering@lucent.com>
70884
70885         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
70886         of local `inptr' to avoid warning with some system declarations of
70887         iconv.
70888
70889 2001-01-02  Volker Borchert  <bt@teknon.de>
70890
70891         * m4/rename.m4: New file.
70892         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
70893
70894 2001-01-01  Jim Meyering  <meyering@lucent.com>
70895
70896         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
70897         even on systems with utmpx.h.  It's necessary for the declaration of
70898         utmp's ut_user member.  Reported by Andreas Jaeger.
70899
70900         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
70901         available. They are required for the declarations of getgrgid and
70902         getpwuid resp.
70903         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
70904         Reported by Andreas Jaeger.
70905
70906 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
70907
70908         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
70909         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
70910         so `make install' also works in VPATH builds.
70911
70912 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
70913
70914         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
70915         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
70916         can be used in subdirectories.
70917
70918 2000-12-29  Paul Eggert  <eggert@twinsun.com>
70919
70920         * lib/modechange.c: Do not assume that mode_t uses the
70921         traditional octal encoding.  E.g. "chmod 1 FOO" should set
70922         the other-execute bit of FOO even if S_IXOTH != 1.
70923
70924         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
70925         WOTH, XOTH, ALLM): New macros.
70926         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
70927          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
70928         Use them.
70929         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
70930         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
70931         (mode_compile):
70932         No need to use uintmax_t; unsigned long is long enough.
70933         Don't bother to get suffix since we don't use it.
70934
70935 2000-12-26  Jim Meyering  <meyering@lucent.com>
70936
70937         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
70938         better with autoheader.
70939
70940 2000-12-24  Jim Meyering  <meyering@lucent.com>
70941
70942         * lib/hash.c (is_prime): Return explicit boolean values.
70943         (hash_get_first): Return NULL to appease Irix5.6's 89.
70944         Reported by Nelson Beebe.
70945
70946 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
70947
70948         * lib/localcharset.c (locale_charset): Add support for Win32.
70949
70950 2000-12-18  Paul Eggert  <eggert@twinsun.com>
70951
70952         * lib/physmem.h, lib/physmem.c: New files.
70953
70954         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
70955         (noinst_HEADERS): Add physmem.h.
70956
70957         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
70958         't' for compatibility with Solaris 8 sort.
70959
70960 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
70961
70962         * lib/config.charset: Add support for BeOS.
70963
70964 2000-12-17  Jim Meyering  <meyering@lucent.com>
70965
70966         * m4/dos.m4 (jm_AC_DOS): New file and macro.
70967         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
70968
70969 2000-12-16  Jim Meyering  <meyering@lucent.com>
70970
70971         This bug had a serious impact on chown: `chown N:M FILE' (for integer
70972         N and M) would have treated it like `chown N:N FILE'.
70973
70974         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
70975
70976 2000-12-16  Jim Meyering  <meyering@lucent.com>
70977
70978         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
70979         SHELLS_FILE to a file name that's useful on djgpp systems.
70980         Include stdlib.h.
70981         (ADDITIONAL_DEFAULT_SHELLS): Define.
70982         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
70983         Based mostly on a patch from Prashant TR.
70984
70985 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
70986
70987         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
70988         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
70989         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
70990
70991 2000-12-08  Andreas Schwab  <schwab@suse.de>
70992
70993         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
70994         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
70995
70996 2000-12-07  Jim Meyering  <meyering@lucent.com>
70997
70998         * lib/stripslash.c (ISSLASH): Define.
70999         (strip_trailing_slashes): Use ISSLASH rather than comparing against
71000         `/'.
71001         From Prashant TR.
71002
71003         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
71004         (dir_name_r): Declare this function as static.
71005         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
71006         manifest itself on a name containing a mix of slashes and
71007         backslashes.
71008         Make this function work with names starting with a DOS-style
71009         drive letter and colon prefix.
71010         (dir_name): Append `.' if necessary.
71011         Based mostly on patches from Prashant TR and Eli Zaretskii.
71012
71013         * lib/dirname.h (dir_name_r): Remove prototype.
71014
71015 2000-12-06  Paul Eggert  <eggert@twinsun.com>
71016
71017         * m4/off_t-format.m4: Remove this file.
71018         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
71019
71020 2000-12-06  Jim Meyering  <meyering@lucent.com>
71021
71022         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
71023         replacement strtoull, we may well need the replacement strtoul, too.
71024         Check for declarations of strtoul and strtoull.
71025         Check for strtol.  Mainly as a cue to cause automake to include
71026         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
71027         Check for limits.h -- strtol.c needs it.
71028
71029 2000-12-05  Jim Meyering  <meyering@lucent.com>
71030
71031         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
71032
71033 2000-12-04  Jim Meyering  <meyering@lucent.com>
71034
71035         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
71036         Also include memory.h, stdlib.h, unistd.h if appropriate.
71037         Reported by Andreas Jaeger (conflicting declaration of malloc).
71038
71039 2000-12-02  Jim Meyering  <meyering@lucent.com>
71040
71041         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
71042         * m4/jm-macros.m4 (jm_MACROS): require it.
71043
71044 2000-12-02  Jim Meyering  <meyering@lucent.com>
71045
71046         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
71047
71048 2000-12-01  Paul Eggert  <eggert@twinsun.com>
71049
71050         * lib/memrchr.c: Include <config.h> before any system include file.
71051
71052 2000-11-30  Jim Meyering  <meyering@lucent.com>
71053
71054         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
71055
71056 2000-11-30  Jim Meyering  <meyering@lucent.com>
71057
71058         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
71059
71060 2000-11-29  Paul Eggert  <eggert@twinsun.com>
71061
71062         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
71063
71064 2000-11-26  Jim Meyering  <meyering@lucent.com>
71065
71066         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
71067
71068 2000-11-22  Paul Eggert  <eggert@twinsun.com>
71069
71070         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
71071         size of (size_t) -1; it's not portable.
71072
71073 2000-11-17  Jim Meyering  <meyering@lucent.com>
71074
71075         * lib/strstr.c: Update from GNU libc.
71076
71077 2000-11-17  Akim Demaille  <akim@epita.fr>
71078
71079         * lib/obstack.h: Formatting changes.
71080         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
71081         prevent type checking.
71082         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
71083         cast the value to (void *): assigning a `foo *' to a `void *'
71084         variable is valid.
71085         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
71086
71087 2000-11-16  Jim Meyering  <meyering@lucent.com>
71088
71089         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
71090
71091 2000-11-11  Jim Meyering  <meyering@lucent.com>
71092
71093         * lib/error.c: Add a couple #includes, merging from GNU libc version.
71094
71095 2000-11-10  Jim Meyering  <meyering@lucent.com>
71096
71097         * lib/obstack.h: Update from GNU libc.
71098         * lib/obstack.c: Likewise.
71099
71100 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
71101
71102         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
71103
71104 2000-11-06  Paul Eggert  <eggert@twinsun.com>
71105
71106         * lib/getusershell.c (setusershell): Use rewind rather than
71107         fseek/fseeko, to avoid configuration hassles with fseeko.
71108         Don't bother opening SHELLS_FILE if shellstream is NULL;
71109         it's not necessary.
71110
71111 2000-11-05  Jim Meyering  <meyering@lucent.com>
71112
71113         * lib/makepath.h (make_dir): Declare.
71114         * lib/makepath.c (make_dir): Remove `static' attribute.
71115         Tweak a comment.
71116
71117 2000-11-04  Jim Meyering  <meyering@lucent.com>
71118
71119         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
71120
71121 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
71122
71123         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
71124         last one in a bucket, advance to the next bucket.
71125
71126 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
71127
71128         * lib/fnmatch.c: Do not comment out all the code if we are using
71129         the GNU C library, because in some cases we are replacing buggy
71130         code in the GNU C library itself.
71131
71132 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
71133
71134         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
71135         (regex_compile): Catch bogus \(\1\).
71136
71137 2000-10-30  Paul Eggert  <eggert@twinsun.com>
71138
71139         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
71140         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
71141         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
71142
71143 2000-10-30  Paul Eggert  <eggert@twinsun.com>
71144
71145         * lib/error.h, getline.h, modechange.h:
71146         Remove "2000" from Copyright line, as the file hasn't been
71147         changed this year other than in the copyright notice.
71148
71149         * lib/xalloc.h: Add "2000" to Copyright line, as this file
71150         was changed this year.
71151
71152 2000-10-29  Jim Meyering  <meyering@lucent.com>
71153
71154         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
71155         renaming.
71156         * m4/ls-mntd-fs.m4: Likewise
71157
71158 2000-10-29  Jim Meyering  <meyering@lucent.com>
71159
71160         * lib/xstat.in: Fix grammar in comment.
71161
71162 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
71163
71164         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
71165         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
71166         doesn't define __restrict_arr.
71167
71168 2000-10-28  Jim Meyering  <meyering@lucent.com>
71169
71170         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
71171         (jm_PREREQ_MEMCHR): New function.
71172
71173 2000-10-28  Jim Meyering  <meyering@lucent.com>
71174
71175         * lib/memchr.c: Update from libc.
71176         Adjust for portability:
71177         [HAVE_STDLIB_H]: Include stdlib.h.
71178         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
71179         Undef __memchr, too.
71180         [!weak_alias]: Define __memchr to memchr.
71181
71182         * lib/regex.c: Update from libc.
71183         * lib/regex.h: Likewise.
71184         * lib/getopt1.c: Likewise.
71185         * lib/memcmp.c: Likewise.
71186
71187         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
71188         Avoid using fseek, when possible -- it's broken by design.
71189         Patch by Ulrich Drepper.
71190
71191 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
71192
71193         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
71194         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
71195         Giving in to popular pressure to shut up the compiler with casts.
71196
71197 2000-10-26  Jim Meyering  <meyering@lucent.com>
71198
71199         * lib/strftime.c: Update from libc.
71200
71201 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
71202
71203         * regex.c: More `unsigned char' -> `re_char' changes.
71204         Also change several `int' into `re_wchar_t'.
71205         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
71206         (PUSH_FAILURE_POINTER): Don't cast any more.
71207         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
71208         We want GCC to complain, since this piece of code makes
71209         re_match non-reentrant, which *should* be fixed.
71210         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
71211         (EXTEND_BUFFER): Use RETALLOC.
71212         (SET_LIST_BIT): Don't cast.
71213         (re_wchar_t): New type.
71214         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
71215         that those two functions will always properly return.
71216         (IMMEDIATE_QUIT_CHECK): Cast to void.
71217         (analyse_first): Use recursion rather than an explicit stack.
71218         (re_compile_fastmap): Can't fail anymore.
71219         (re_search_2): Don't check re_compile_fastmap for failure.
71220         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
71221         Now also sets the new value (passed in a new argument).
71222         (re_match_2_internal): Use it.
71223         Also, use a new var `reg' of type size_t when looping through regs
71224         rather than reuse the inappropriate `mcnt'.
71225
71226 2000-10-25  Jim Meyering  <meyering@lucent.com>
71227
71228         * lib/obstack.c: Update from libc.
71229
71230 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
71231
71232         * regex.c (regex_compile): Change the way of handling a range from
71233         a char less than 256 to a char not less than 256.
71234
71235 2000-10-24  Andrew Innes  <andrewi@gnu.org>
71236
71237         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
71238         NT-Emacs only.
71239         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
71240         so that re_search functions only quit when callers expect them to.
71241
71242 2000-10-23  Jim Meyering  <meyering@lucent.com>
71243
71244         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
71245         wrong.  That set_locale call must not have any side effects.
71246         From Paul Eggert.
71247
71248 2000-10-22  Jim Meyering  <meyering@lucent.com>
71249
71250         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
71251         [CYCLIC]: Remove now-unused definition.
71252
71253         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
71254         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
71255         Suggestion from Ulrich Drepper.
71256
71257 2000-10-21  Jim Meyering  <meyering@lucent.com>
71258
71259         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
71260         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
71261         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
71262
71263 2000-10-21  Jim Meyering  <meyering@lucent.com>
71264
71265         * lib/dirname.c (memrchr): Declare if necessary.
71266         (dir_name): Remove the restriction that there be no
71267         trailing slashes.  Now, this code skips past them, effectively
71268         ignoring them.
71269         [TEST_DIRNAME] (main): New unit tests.
71270
71271         * lib/memrchr.c: New file from GNU libc.
71272         Undef __memrchr, too.
71273         [!weak_alias]: Define __memrchr to memrchr.
71274         Guard weak_alias use with `#ifdef weak_alias'.
71275
71276 2000-10-21  Jim Meyering  <meyering@lucent.com>
71277
71278         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
71279         (dir_name): Use dir_name_r.
71280         * lib/dirname.h (dir_name_r): Declare it.
71281
71282 2000-10-17  Jim Meyering  <meyering@lucent.com>
71283
71284         * lib/quote.h (PARAMS): Define and use.
71285         Reported by Akim Demaille.
71286
71287         * lib/getopt.c: Update from libc.
71288
71289 2000-10-16  Jim Meyering  <meyering@lucent.com>
71290
71291         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
71292         setlocale.
71293         From Jan Fedak.
71294
71295 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
71296
71297         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
71298
71299 2000-09-25  Jim Meyering  <meyering@lucent.com>
71300
71301         * lib/md5.h (rol): Define (from GnuPG).
71302
71303         * lib/sha.c: Give credit (GnuPG) where due.
71304         (M): Use rol rather than open-coding it.
71305         Add a FIXME comment.
71306
71307 2000-09-21  Jim Meyering  <meyering@lucent.com>
71308
71309         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
71310         Reported by Michael Stone.
71311
71312 2000-09-20  Jim Meyering  <meyering@lucent.com>
71313
71314         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
71315         (noinst_HEADERS): Add sha.h.
71316         Based on code from Scott G. Miller and from GnuPG.
71317
71318 2000-09-18  Jim Meyering  <meyering@lucent.com>
71319
71320         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
71321         LIBS. Otherwise, everyone ends up linking with -lelf for some
71322         configurations.
71323         Reported by Mike Stone.
71324
71325 2000-09-15  Jim Meyering  <meyering@lucent.com>
71326
71327         * lib/regex.c: Update from libc.
71328
71329 2000-09-10  Jim Meyering  <meyering@lucent.com>
71330
71331         * lib/getopt.c (_getopt_internal): Update from glibc.
71332
71333 2000-09-09  Jim Meyering  <meyering@lucent.com>
71334
71335         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
71336         think it should be used as a general replacement for isascii.
71337         * lib/fnmatch.c: Likewise.
71338         * lib/mbswidth.c: Likewise
71339         * lib/regex.c: Likewise.
71340
71341         Don't use atoi.
71342         * lib/userspec.c: Include sys/param.h and limits.h.
71343         Include xstrtol.h.
71344         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
71345         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
71346         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
71347         UID, GID.  Check range.
71348
71349 2000-09-06  Jim Meyering  <meyering@lucent.com>
71350
71351         * lib/getopt.c (_getopt_internal): Update from glibc.
71352
71353 2000-08-30  Jim Meyering  <meyering@lucent.com>
71354
71355         * lib/strftime.c: Merge in changes from GNU libc.
71356
71357 2000-08-26  Jim Meyering  <meyering@lucent.com>
71358
71359         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
71360         * m4/fpending.m4: New file.
71361
71362 2000-08-26  Jim Meyering  <meyering@lucent.com>
71363
71364         * lib/closeout.c: Include "__fpending.h".
71365         (close_stdout_status): Return right away if there's nothing to flush.
71366
71367         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
71368         * lib/__fpending.c: New file.
71369         * lib/__fpending.h: New file.
71370
71371 2000-08-20  Jim Meyering  <meyering@lucent.com>
71372
71373         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
71374         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
71375         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
71376
71377 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
71378
71379         Improve fileutils installation on systems where running
71380         programs (like install) can't be unlinked.
71381         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
71382         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
71383
71384 2000-08-07  Paul Eggert  <eggert@twinsun.com>
71385
71386         Standardize on "memory exhausted" instead of "Memory exhausted"
71387         or "virtual memory exhausted".
71388         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
71389         "virtual memory exhausted".
71390         * lib/same.c (same_name): Invoke xalloc_die instead of printing
71391         our own message.
71392         * lib/userspec.c (parse_user_spec): Likewise.
71393         * lib/bumpalloc.h: comment fix
71394         * lib/same.c, userspec.c: Include xalloc.h.
71395
71396         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
71397         not char *const and pointing to a constant array.
71398         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
71399         (xrealloc): Comment fix.
71400
71401         * lib/userspec.c (parse_user_spec):
71402         Don't translate a message until just before returning,
71403         to avoid unnecessary translation.
71404
71405 2000-08-07  Jim Meyering  <meyering@lucent.com>
71406
71407         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
71408         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
71409         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
71410         getgroups.c, gethostname.c, getopt.h, group-member.c,
71411         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
71412         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
71413         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
71414         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
71415         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
71416         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
71417         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
71418         yesno.c: Back out Copyright date changes for each file with no change
71419         this year.  This eases coordination with other programs using the same
71420         source code modules.  From Paul Eggert.
71421
71422 2000-08-06  Paul Eggert  <eggert@twinsun.com>
71423
71424         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
71425         not char, for compatibility with glibc 2.1.3 strftime.c.
71426
71427 2000-08-03  Greg McGary  <greg@mcgary.org>
71428
71429         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
71430         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
71431         (EXTEND_BUFFER): Use them.
71432
71433 2000-08-01  Jim Meyering  <meyering@lucent.com>
71434
71435         * lib/dirname.c (ISSLASH): Define.
71436         (BACKSLASH_IS_PATH_SEPARATOR): Define.
71437         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
71438         both `\' and `/' may be use as path separators.
71439         Based on a patch from Prashant TR.
71440
71441 2000-07-31  Paul Eggert  <eggert@twinsun.com>
71442
71443         * lib/quotearg.c (quotearg_n_options): Don't make the initial
71444         slot vector a constant, since it might get modified.
71445
71446 2000-07-31  Jim Meyering  <meyering@lucent.com>
71447
71448         * lib/xmalloc.c: Use `virtual memory exhausted', not
71449         `Memory exhausted'.
71450         * lib/obstack.c (print_and_abort): Likewise.
71451
71452 2000-07-30  Paul Eggert  <eggert@twinsun.com>
71453
71454         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
71455         buffer, so that the caller can always quote one small
71456         component of a "memory exhausted" message in slot 0.
71457         From a suggestion by Jim Meyering.
71458
71459 2000-07-30  Jim Meyering  <meyering@lucent.com>
71460
71461         * lib/makepath.c (make_path): Quote the other instance, too.
71462
71463         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
71464         (STATIC_BUF_SIZE): Define.
71465         (quotearg_n_options): Use only statically allocated storage when
71466         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
71467         than STATIC_BUF_SIZE.
71468
71469 2000-07-29  Jim Meyering  <meyering@lucent.com>
71470
71471         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
71472         * lib/dirname.c (dir_name): Likewise.
71473
71474         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
71475         `/'.
71476
71477         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
71478         (dir_name): Assert that there are no trailing slashes.
71479
71480 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
71481
71482         * lib/mbswidth.h (mbswidth): Add a flags argument.
71483         (mbswidth): New declaration.
71484         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
71485         * lib/mbswidth.c (mbswidth): Add a flags argument.
71486         (mbsnwidth): New function.
71487
71488 2000-07-24  Jim Meyering  <meyering@lucent.com>
71489
71490         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
71491
71492 2000-07-23  Paul Eggert  <eggert@twinsun.com>
71493
71494         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
71495
71496 2000-07-23  Paul Eggert  <eggert@twinsun.com>
71497
71498         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
71499         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
71500         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
71501         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
71502         invoke multibyte primitives.
71503
71504 2000-07-23  Paul Eggert  <eggert@twinsun.com>
71505
71506         * lib/quotearg.c:
71507         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
71508         so that mbstate_t is always defined.
71509
71510         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
71511         be 1 in at least one GCC installation, and this configuration
71512         error is likely to be common.  Ignoring MB_LEN_MAX hurts
71513         performance on hosts that have mbrtowc but have only unibyte
71514         locales, but I assume these hosts are rare.
71515
71516 2000-07-23  Paul Eggert  <eggert@twinsun.com>
71517
71518         * lib/mbswidth.c (_XOPEN_SOURCE):
71519         Don't define; this causes problems on Solaris 7.
71520         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
71521
71522 2000-07-23  Jim Meyering  <meyering@lucent.com>
71523
71524         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
71525         too: getgrgid, getpwuid, getuid.
71526
71527 2000-07-23  Jim Meyering  <meyering@lucent.com>
71528
71529         * lib/basename.c (base_name): Add an assertion.
71530
71531 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
71532
71533         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
71534         shadow its mbsinit function.
71535
71536 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
71537
71538         * lib/mbswidth.h: New file.
71539         * lib/mbswidth.c: New file.
71540         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
71541         (noinst_HEADERS): Add mbswidth.h.
71542
71543 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
71544
71545         * lib/config.charset: Add support for FreeBSD. Improve support for
71546         HP-UX and IRIX 6.
71547
71548 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
71549
71550         * m4/mbswidth.m4: New file.
71551         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
71552
71553 2000-07-15  Jim Meyering  <meyering@lucent.com>
71554
71555         * lib/makepath.c: Include quote.h.
71556         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
71557         corresponding argument in a `quote (...)' call.
71558         Give better diagnostics.
71559
71560         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
71561         (noinst_HEADERS): Add quote.h.
71562
71563         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
71564         from tar's src/misc.c.
71565         * lib/quote.h: New file.  Prototypes for same.
71566
71567 2000-07-14  Paul Eggert  <eggert@twinsun.com>
71568
71569         From a suggestion by Bruno Haible.
71570         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
71571         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
71572         to decide whether to define the BeOS workaround macro;
71573         this adjusts to the change to AC_MBSTATE_T.
71574
71575 2000-07-14  Jim Meyering  <meyering@lucent.com>
71576
71577         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
71578         jm_AC_TYPE_UINTMAX_T.
71579
71580 2000-07-13  Paul Eggert  <eggert@twinsun.com>
71581
71582         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
71583
71584         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
71585         quotearg_buffer_restyled): Add support for
71586         clocale_quoting_style.  Undo previous change to
71587         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
71588         and "{RIGHT QUOTATION MARK}" msgids.
71589
71590 2000-07-10  Paul Eggert  <eggert@twinsun.com>
71591
71592         From a suggestion by Bruno Haible.
71593         * m4/mbstate_t.m4 (AC_MBSTATE_T):
71594         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
71595         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
71596         and mbstate_t, to a single-part test that simply defines mbstate_t.
71597         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
71598         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
71599
71600 2000-07-10  Jim Meyering  <meyering@lucent.com>
71601
71602         * m4/strerror_r.m4: Mirror the correction made in autoconf.
71603
71604         * m4/gnu-source.m4: Output to confdefs.h directly.
71605         Suggestion from Akim Demaille.
71606
71607 2000-07-09  Paul Eggert  <eggert@twinsun.com>
71608
71609         The old behavior of quoting `like this' doesn't look good with
71610         newer, ISO-style fonts.  See:
71611         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
71612
71613         Instead, quote "like this" by default.  Let the translator
71614         tailor the locale-specific quoting behavior by providing
71615         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
71616
71617         * lib/quotearg.c (N_): New macro.
71618         (gettext_default): New function.
71619         (quotearg_buffer_restyled): Use
71620         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
71621         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
71622
71623 2000-07-09  Jim Meyering  <meyering@lucent.com>
71624
71625         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
71626         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
71627
71628         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
71629         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
71630
71631 2000-07-09  Jim Meyering  <meyering@lucent.com>
71632
71633         * lib/Most files: Update copyright dates to include 2000.
71634
71635 2000-07-08  Jim Meyering  <meyering@lucent.com>
71636
71637         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
71638         if not defined.
71639         (xgethostname): Remove now-unnecessary #ifdef.
71640         Move declaration of `err' into loop where it's used.
71641
71642 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71643         and Bruno Haible  <haible@clisp.cons.org>
71644
71645         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
71646         only if the test for an object-type mbstate_t fails.  This
71647         prevents us from mistakenly reporting that mbstate_t is a
71648         system object type after we "#define mbstate_t int" to work
71649         around its lack.
71650
71651 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71652         and Bruno Haible  <haible@clisp.cons.org>
71653
71654         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
71655
71656 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71657
71658         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
71659         to strerror_r.
71660         Include <ctype.h> for use of isalpha.
71661
71662 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71663
71664         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
71665         by allocating a larger buffer. Test the gethostname return value for
71666         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
71667         returns an error and ENAMETOOLONG isn't defined.
71668
71669 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71670
71671         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
71672         dimension.
71673
71674 2000-07-04  Jim Meyering  <meyering@lucent.com>
71675
71676         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
71677         of the deprecated AC_CHECKING.
71678
71679 2000-07-04  Jim Meyering  <meyering@lucent.com>
71680
71681         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
71682         Reported by Bruno Haible.
71683
71684 2000-07-04  Jim Meyering  <meyering@lucent.com>
71685
71686         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
71687         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
71688         lacks mbrtowc.
71689
71690 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71691
71692         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
71693         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
71694
71695 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71696         and Bruno Haible  <haible@clisp.cons.org>
71697
71698         * lib/quotearg.c (mbrtowc):
71699         Assign to *pwc, and return 1 only if result is nonzero.
71700         (iswprint): Use ISPRINT when substituting our own mbrtowc.
71701
71702 2000-07-03  Jim Meyering  <meyering@lucent.com>
71703
71704         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
71705
71706 2000-07-03  Jim Meyering  <meyering@lucent.com>
71707
71708         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
71709         This is necessary to get a definition of e.g., UTMP_FILE on
71710         HP-UX 10.20.
71711         From Bob Proulx.
71712
71713 2000-07-02  Jim Meyering  <meyering@lucent.com>
71714
71715         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
71716
71717         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
71718         AC_LIBOBJ(function_name).
71719         * m4/chown.m4: Likewise.
71720         * m4/fnmatch.m4: Likewise.
71721         * m4/ftruncate.m4: Likewise.
71722         * m4/getgroups.m4: Likewise.
71723         * m4/getline.m4: Likewise.
71724         * m4/group-member.m4: Likewise.
71725         * m4/jm-macros.m4: Likewise.
71726         * m4/lstat.m4: Likewise.
71727         * m4/malloc.m4: Likewise.
71728         * m4/memcmp.m4: Likewise.
71729         * m4/nanosleep.m4: Likewise.
71730         * m4/putenv.m4: Likewise.
71731         * m4/realloc.m4: Likewise.
71732         * m4/regex.m4: Likewise.
71733         * m4/stat.m4: Likewise.
71734         * m4/strftime.m4: Likewise.
71735
71736 2000-07-02  Jim Meyering  <meyering@lucent.com>
71737
71738         * lib/quotearg.c (mbstate_t): Don't define here.
71739
71740 2000-07-02  Jim Meyering  <meyering@lucent.com>
71741
71742         * lib/nanosleep.c (SIGCONT): Define if not already defined.
71743
71744 2000-07-01  Jim Meyering  <meyering@lucent.com>
71745
71746         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
71747
71748 2000-07-01  Jim Meyering  <meyering@lucent.com>
71749
71750         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
71751         problem.
71752
71753 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71754
71755         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
71756         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
71757
71758 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71759
71760         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
71761         per change in ../m4/ls-mntd-fs.m4.
71762         (read_filesystem_list): Ignore symbolic links.
71763
71764 2000-06-29  Jim Meyering  <meyering@lucent.com>
71765
71766         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
71767         for declaration of strcmp.
71768
71769         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
71770
71771         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
71772         Avoid warning by casting result to `char *' to remove `const'.
71773
71774 2000-06-28  Jim Meyering  <meyering@lucent.com>
71775
71776         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
71777         included by quotearg.c, for which we perform this test.  From
71778         Bruno Haible.
71779
71780 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71781
71782         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
71783         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
71784         <utmpx.h> exists, put readutmp.o into LIBOBJS.
71785
71786 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71787
71788         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
71789
71790 2000-06-26  Paul Eggert  <eggert@twinsun.com>
71791
71792         savedir now sets errno on failure and invokes xmalloc to get memory.
71793         Fix a couple of other minor bugs while we're at it.
71794
71795         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
71796         (NAMLEN): Remove macro.
71797         (malloc, realloc): Remove decls.
71798         (stpcpy): Likewise.
71799         ("xalloc.h"): Include.
71800         (NAME_SIZE_DEFAULT): New macro.
71801         (savedir): Use xmalloc / xrealloc to allocate memory.
71802         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
71803         Skip "" directory entries.
71804         Use strlen to calculate directory entry length, since the old method
71805         is rarely used these days and isn't worth supporting.
71806         Don't use a pointer after freeing it.
71807         Check for integer overflow when calculating allocation size.
71808         Use memcpy to copy entries, instead of stpcpy.
71809         Set errno properly when returning NULL.
71810         Check for readdir error.
71811
71812 2000-06-26  Jim Meyering  <meyering@lucent.com>
71813
71814         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
71815
71816 2000-06-25  Jim Meyering  <meyering@lucent.com>
71817
71818         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
71819         Linux header bug when _XOPEN_SOURCE is defined to 500.
71820
71821 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71822
71823         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
71824         deficiency.
71825
71826 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71827
71828         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
71829         Include xalloc.h.
71830         Don't include <stdlib.h>.  Don't declare malloc, realloc.
71831
71832 2000-06-24  Jim Meyering  <meyering@lucent.com>
71833
71834         * m4/strerror_r.m4: Revive this file -- to try out an experimental
71835         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
71836         for which strerror does return char*, but which lacks a conveniently
71837         accessible declaration of the function.  If the compile-test says
71838         strerror_r doesn't work, then resort to a `run'-test that works on
71839         BeOS and segfaults on DEC Unix.
71840
71841 2000-06-24  Jim Meyering  <meyering@lucent.com>
71842
71843         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
71844
71845 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71846
71847         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
71848         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
71849
71850 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71851
71852         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
71853         (mbrtowc, mbstate_t): Define substitutes if
71854         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
71855         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
71856         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
71857
71858 2000-06-23  Jim Meyering  <meyering@lucent.com>
71859
71860         * m4/afs.m4: Add missing AC_MSG_RESULT.
71861         Reported by Bruno Haible.
71862
71863         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
71864         Suggestion from Bruno Haible.
71865
71866 2000-06-23  Jim Meyering  <meyering@lucent.com>
71867
71868         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
71869
71870 2000-06-21  Jim Meyering  <meyering@lucent.com>
71871
71872         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
71873
71874 2000-06-21  Jim Meyering  <meyering@lucent.com>
71875
71876         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
71877         (noinst_HEADERS): Add getstr.h.
71878
71879         * lib/getline.c (getstr): Move into a separate file.
71880         * lib/getstr.c (getstr): New file, extracted from getline.c, with
71881         the following changes: new parameter, delim2; both delim[12]
71882         parameters have type `int', not `char'.  The latter would lose
71883         with 8-bit delimiters.
71884         * lib/getstr.h: New file.
71885
71886 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71887
71888         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
71889         than 1024, return a memory chunk of least possible size, instead
71890         of size PATH_MAX + 2. In the loop, increment the size proportionally.
71891         Use free/xmalloc instead of xrealloc to avoid copying for very long
71892         paths.
71893
71894 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71895
71896         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
71897         the empty string.
71898
71899 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71900
71901         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
71902         address, not strdup.  Include <stdlib.h> and don't declare free().
71903
71904 2000-06-19  Jim Meyering  <meyering@lucent.com>
71905
71906         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
71907
71908 2000-06-18  Jim Meyering  <meyering@lucent.com>
71909
71910         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
71911
71912         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
71913         `checking whether...' message to be consistent with that of the
71914         lstat test.
71915
71916 2000-06-18  Jim Meyering  <meyering@lucent.com>
71917
71918         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
71919         Besides, these days every porting target provides a mkdir function.
71920
71921         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
71922         needed. (this snippet comes from src/system.h).
71923
71924 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
71925
71926         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
71927
71928 2000-06-15  Paul Eggert  <eggert@twinsun.com>
71929
71930         * lib/human.c (adjust_value): New function.
71931         (human_readable_inexact): Apply rounding style even when
71932         printing approximate values.
71933
71934 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71935
71936         * lib/human.c (human_readable_inexact): Allow an input block
71937         size that is not a multiple of the output block size, and vice versa.
71938         Reported by Piergiorgio Sartor.
71939
71940 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71941
71942         * lib/getdate.y (get_date): Apply relative times after time
71943         zone indicator, not before.  Reported by Todd A. Jacobs.
71944
71945 2000-06-13  Jim Meyering  <meyering@lucent.com>
71946
71947         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
71948
71949         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
71950
71951 2000-06-12  Paul Eggert  <eggert@twinsun.com>
71952
71953         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
71954
71955 2000-06-12  Jim Meyering  <meyering@lucent.com>
71956
71957         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
71958         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
71959         optional argument.
71960         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
71961         the optional argument, `lib'.
71962
71963 2000-06-08  Jim Meyering  <meyering@lucent.com>
71964
71965         * m4/largefile.m4: Remove file (now that it's part of autoconf).
71966
71967 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71968
71969         Rewrite largefile configuration so that we don't need to run
71970         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
71971         AC_CANONICAL_HOST in configure.in -- jmm]
71972
71973         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
71974         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
71975         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
71976         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
71977         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
71978         All uses changed.
71979         Instead of inspecting the output of getconf, try to compile the
71980         test program without and with the macro definition.
71981         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
71982         for getconf.  Instead, check for the needed flags by compiling
71983         test programs.
71984
71985 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71986
71987         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
71988
71989 2000-06-04  Jim Meyering  <meyering@lucent.com>
71990
71991         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
71992         SunOS 4.1.4 for which gid_t is an unsigned type.
71993
71994 2000-06-03  Jim Meyering  <meyering@lucent.com>
71995
71996         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
71997         now that autoconf requires that.
71998
71999         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
72000         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
72001         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
72002
72003 2000-06-03  Jim Meyering  <meyering@lucent.com>
72004
72005         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
72006
72007 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
72008
72009         * m4/glibc21.m4: New file.
72010         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
72011
72012 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
72013
72014         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
72015         newer, don't install charset.alias.
72016         * lib/config.charset: Change the Linux/glibc rules so they become empty
72017         on glibc-2.1 or newer.
72018
72019 2000-06-02  Jim Meyering  <meyering@lucent.com>
72020
72021         * lib/mountlist.c: Back out last change.  Instead, do this...
72022         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
72023         me_dummy member using the same `ignore'-testing code.
72024         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
72025         fs_type strings.
72026         From Mark D. Roth.
72027
72028 2000-05-29  Jim Meyering  <meyering@lucent.com>
72029
72030         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
72031         mounts with the `ignore' attribute.  Based on a patch from
72032         Mark D. Roth.
72033
72034 2000-05-28  Jim Meyering  <meyering@lucent.com>
72035
72036         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
72037         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72038         * m4/stat.m4: Likewise.
72039         * m4/lstat.m4: Likewise.
72040         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
72041
72042         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
72043         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
72044
72045 2000-05-26  Jim Meyering  <meyering@lucent.com>
72046
72047         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
72048
72049 2000-05-24  Jim Meyering  <meyering@lucent.com>
72050
72051         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
72052         autoconf requires that.
72053         * m4/lib-check.m4: Likewise.
72054         * m4/jm-macros.m4: Likewise.
72055         * m4/strftime.m4: Likewise.
72056
72057         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
72058         AC_CHECK_DECLS, now that autoconf requires that.
72059
72060 2000-05-22  Jim Meyering  <meyering@lucent.com>
72061
72062         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72063         * m4/lstat.m4: Likewise.
72064
72065 2000-05-22  Jim Meyering  <meyering@lucent.com>
72066
72067         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
72068
72069 2000-05-20  Jim Meyering  <meyering@lucent.com>
72070
72071         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
72072         (jm_PREREQ): Use it.
72073
72074 2000-05-18  Jim Meyering  <meyering@lucent.com>
72075
72076         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
72077         back, too, since it may have been modified by allocate_entry.
72078         (hash_delete): Rewrite to use neither the assignment operator
72079         nor the comma operator in an if-expression.
72080
72081 2000-05-15  Paul Eggert  <eggert@twinsun.com>
72082
72083         * lib/closeout.c:
72084         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
72085         Remove; no longer needed.
72086         "quotearg.h": Add include.
72087         (file_name): Do not bother to explicitly initialize to NULL; it's less
72088         efficient on some hosts.
72089         (close_stdout_status): Remove test as to whether stdout was already
72090         closed; it breaks for the case "echo x | sort >&-".
72091         Quote file name colons.
72092         Do not assume that _("write error") lacks format strings.
72093
72094 2000-05-15  Jim Meyering  <meyering@lucent.com>
72095
72096         * lib/version-etc.c (version_etc_copyright): Update the copyright
72097         string used in all --version output.
72098
72099 2000-05-14  Jim Meyering  <meyering@lucent.com>
72100
72101         * lib/closeout.c (close_stdout_set_file_name): New function.
72102         (close_stdout_status): Use new file-scoped global.
72103         Return right away if fstat says the stdout file descriptor is invalid.
72104         * lib/closeout.h (close_stdout_set_file_name): Declare.
72105
72106 2000-05-10  Jim Meyering  <meyering@lucent.com>
72107
72108         * lib/closeout.c [default_exit_status]: New file-scoped variable.
72109         (close_stdout_set_status): New function.
72110         * lib/closeout.h (close_stdout_set_status): Declare.
72111
72112 2000-05-09  Jim Meyering  <meyering@lucent.com>
72113
72114         * m4/gettext.m4: Rename this...
72115         * m4/libintl.m4: ...to this.
72116
72117 2000-05-08  Jim Meyering  <meyering@lucent.com>
72118
72119         * lib/long-options.c: Don't include closeout.h.
72120         (parse_long_options): Don't call close_stdout for --version.
72121
72122 2000-05-06  Paul Eggert  <eggert@twinsun.com>
72123
72124         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
72125         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
72126         2.1.3 bug.  This avoids a clash when files like regex.c define
72127         _GNU_SOURCE.
72128
72129 2000-05-06  Jim Meyering  <meyering@lucent.com>
72130
72131         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
72132         (AC_REPLACE_FUNCS): Add strnlen.
72133
72134         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
72135         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
72136
72137         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
72138         AC_SEARCH_LIBS call for nanosleep.
72139         (LIB_NANOSLEEP): Set and AC_SUBST.
72140
72141 2000-05-06  Jim Meyering  <meyering@lucent.com>
72142
72143         * lib/strnlen.c: Undefine __strnlen and strnlen.
72144         [!weak_alias]: Define __strnlen to strnlen.
72145
72146         * lib/atexit.c: New file, from libiberty.
72147
72148 2000-05-06  Jim Meyering  <meyering@lucent.com>
72149
72150         * lib/closeout.c (close_stdout_status): Also check for errors on the
72151         stderr stream.
72152
72153 2000-05-05  Jim Meyering  <meyering@lucent.com>
72154
72155         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
72156         AC_SEARCH_LIBS call for clock_gettime.
72157         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
72158
72159         * m4/search-libs.m4: Update from autoconf.
72160
72161         su doesn't work on Solaris 2.6.
72162         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
72163         <shadow.h>.  Reported by Dragos Harabor.
72164
72165 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
72166
72167         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
72168         memcpy instead of xmalloc, xrealloc, path_concat.
72169         (locale_charset): Treat empty environment variables as absent.
72170         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
72171
72172 2000-05-04  Jim Meyering  <meyering@lucent.com>
72173
72174         * lib/getopt.c: Update from glibc.
72175         * lib/obstack.c: Likewise.
72176         * lib/obstack.h: Likewise.
72177         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
72178         file
72179
72180         * lib/regex.h: Likewise.
72181         * lib/strndup.c: Likewise.
72182         * lib/strnlen.c: New file, from glibc.
72183
72184 2000-05-03  Jim Meyering  <meyering@lucent.com>
72185
72186         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
72187
72188 2000-05-02  Paul Eggert  <eggert@twinsun.com>
72189
72190         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
72191         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
72192         compile-time test, rather than inspecting host and OS, to
72193         decide whether to define _LARGEFILE_SOURCE.
72194
72195 2000-05-01  Jim Meyering  <meyering@lucent.com>
72196
72197         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
72198
72199         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
72200         Based on a patch from Bruno Haible.
72201
72202 2000-05-01  Jim Meyering  <meyering@lucent.com>
72203
72204         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
72205
72206 2000-04-29  Jim Meyering  <meyering@lucent.com>
72207
72208         * lib/path-concat.c: Declare strdup only if it's not defined.
72209         * lib/canon-host.c: Likewise.
72210
72211 2000-04-28  Jim Meyering  <meyering@lucent.com>
72212
72213         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
72214         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
72215         is included first, then limits.h is included by locale.h by libintl.h.
72216         From John David Anglin.
72217
72218 2000-04-25  Jim Meyering  <meyering@lucent.com>
72219
72220         * lib/makepath.c (S_IRWXUGO): Define.
72221         (make_path): Always perform explicit chmod if MODE specifies any
72222         of the `special' permission bits.  Prompted by a bug report against
72223         install from Mate Wierdl and Joost van Baal.
72224
72225 2000-04-18  Jim Meyering  <meyering@lucent.com>
72226
72227         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
72228         (jm_PREREQ): Use it.
72229
72230 2000-04-18  Jim Meyering  <meyering@lucent.com>
72231
72232         * lib/README: New file.
72233
72234         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
72235         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
72236
72237 2000-04-17  Jim Meyering  <meyering@lucent.com>
72238
72239         Get it right :-)
72240         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
72241         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
72242         Suggestion from Akim Demaille.
72243
72244 2000-04-17  Jim Meyering  <meyering@lucent.com>
72245
72246         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
72247         the definition of it to rpl_strftime also defined-away the system's
72248         declaration.
72249
72250 2000-04-15  Jim Meyering  <meyering@lucent.com>
72251
72252         Use `C' to denote so-called `contiguous' files, the same way
72253         that tar does.
72254         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
72255         (ftypelet): Use S_ISCTG.
72256         From Michael Deutschmann.
72257
72258 2000-04-14  Jim Meyering  <meyering@lucent.com>
72259
72260         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
72261         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
72262         clobbered.
72263
72264 2000-04-14  Jim Meyering  <meyering@lucent.com>
72265
72266         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
72267
72268 2000-04-13  Jim Meyering  <meyering@lucent.com>
72269
72270         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
72271         AH_VERBATIM to insert required #ifndef into config.h.in.
72272         Suggestion from Akim Demaille.
72273
72274 2000-04-12  Jim Meyering  <meyering@lucent.com>
72275
72276         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
72277         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
72278         Christian Krackowizer.
72279
72280         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
72281         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
72282         (AC_SYS_LARGEFILE): Require.
72283         (AM_C_PROTOTYPES): Require.
72284
72285 2000-04-08  Jim Meyering  <meyering@lucent.com>
72286
72287         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
72288         names don't conflict.  Reported by Eli Zaretskii.
72289
72290 2000-04-07  Jim Meyering  <meyering@lucent.com>
72291
72292         * lib/putenv.c: Move inclusion of errno.h so it follows that of
72293         sys/types.h, to work around system header problems on AIX 3.2.5.
72294         From Bruno Haible.
72295
72296 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
72297
72298         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
72299         bug.  Deal with the different error behavior of Irix iconv.
72300
72301 2000-04-05  Paul Eggert  <eggert@twinsun.com>
72302
72303         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
72304         IRIX if the installer said otherwise.
72305
72306 2000-04-05  Jim Meyering  <meyering@lucent.com>
72307
72308         Portability tweaks required for ultrix4.3.
72309         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
72310         (jm_CHECK_DECLS): Add getutent to the list of functions.
72311         (_jm_DECL_HEADERS): Add utmpx.h.
72312         From John David Anglin.
72313
72314         * m4/strftime.m4: Back out the 2000-04-02 change.
72315         Instead of that change, simply undefine putenv in the test program.
72316
72317 2000-04-05  Jim Meyering  <meyering@lucent.com>
72318
72319         Portability tweaks required for ultrix4.3.
72320         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
72321         getutent.
72322         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
72323         * lib/canon-host.c: Declare strdup.
72324         * lib/path-concat.c: Likewise.
72325         From John David Anglin.
72326
72327 2000-04-04  Jim Meyering  <meyering@lucent.com>
72328
72329         Be more DOS 8.3-friendly.
72330         * lib/ref-add.sin: Renamed from ref-add.sed.in.
72331         * lib/ref-del.sin: Renamed from ref-del.sed.in.
72332         * lib/Makefile.am: Reflect renaming.
72333         Reported by Eli Zaretskii.
72334
72335         Use a temporary file name that won't clash with `charset.alias'
72336         in the DOS 8.3 name space.
72337         * lib/Makefile.am (charset_tmp): Define.
72338         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
72339         (uninstall-local): Likewise.
72340         Reported by Eli Zaretskii.
72341
72342 2000-04-03  Jim Meyering  <meyering@lucent.com>
72343
72344         * m4/gettext.m4: Fix typo in comment.
72345
72346         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
72347         textutils/configure.in).  Suggestion from Paul Eggert.
72348         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
72349
72350 2000-04-02  Paul Eggert  <eggert@twinsun.com>
72351
72352         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
72353         variable in the shell rather than using putenv, which isn't
72354         portable.  This avoids the configure-time inter-test dependency
72355         on the potentially-renamed putenv function.
72356
72357 2000-03-30  Paul Eggert  <eggert@twinsun.com>
72358
72359         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
72360         before checking struct stat.st_blksize, so that
72361         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
72362
72363 2000-03-29  Paul Eggert  <eggert@twinsun.com>
72364
72365         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
72366         since strftime.c uses HAVE_STRFTIME to decide whether to use
72367         the underlying strftime.
72368
72369 2000-03-29  Paul Eggert  <eggert@twinsun.com>
72370
72371         * lib/time/strftime.c (my_strftime): Make sure we call the system
72372         strftime, not ourselves, when invoking the underlying strftime.
72373
72374 2000-03-24  Jim Meyering  <meyering@lucent.com>
72375
72376         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
72377         (charset_alias): Define.
72378         (install-exec-local): Factor out common code.
72379         (uninstall-local): Split lines longer than 80.
72380         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
72381         (SUFFIXES): Define.
72382         (.sed.in.sed): New rule.  Don't redirect directly to $@.
72383         (CLEANFILES): Add ref-add.sed and ref-del.sed.
72384
72385 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
72386
72387         * lib/config.charset: Output a line containing "Packages using this
72388         file".
72389         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
72390         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
72391         ref-del.sed): New rules.
72392
72393 2000-03-17  Jim Meyering  <meyering@lucent.com>
72394
72395         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
72396         Otherwise, include <strings.h>
72397
72398 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
72399
72400         * lib/unicodeio.c (utf8_wctomb): New function.
72401         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
72402         format instead of in UCS-4 with platform dependent endianness.
72403
72404 2000-03-10  Jim Meyering  <meyering@lucent.com>
72405
72406         * m4/lib-check.m4: Look for getspnam in -lgen, too.
72407         From Marco Franzen.
72408
72409 2000-03-07  Paul Eggert  <eggert@twinsun.com>
72410
72411         * lib/savedir.c (savedir): Work even if directory size is
72412         negative; this can happen with some screwy NFS configurations.
72413
72414 2000-03-06  Jim Meyering  <meyering@lucent.com>
72415
72416         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
72417         if it's NULL (because we ran out of memory).  From Bruno Haible.
72418
72419 2000-03-05  Jim Meyering  <meyering@lucent.com>
72420
72421         * lib/localcharset.c ("path-concat.h"): Include.
72422         (get_charset_aliases): Use path_concat instead of ANSI string
72423         concatenation.
72424
72425         * lib/unicodeio.h (PARAMS): Define.
72426         Use it to guard prototype.
72427
72428 2000-03-04  Jim Meyering  <meyering@lucent.com>
72429
72430         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
72431         for lib/localcharset.c.
72432
72433 2000-03-04  Jim Meyering  <meyering@lucent.com>
72434
72435         * lib/Makefile.am (install-exec-local): Create $(libdir) before
72436         installing into it.
72437         (uninstall-local): Uncomment this rule so `make distcheck' works
72438         once again.
72439
72440         * lib/unicodeio.c (<errno.h>): Include it.
72441         (errno): Declare if not defined.
72442
72443         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
72444
72445         * lib/config.charset: New version, incorporating remarks from a linux
72446         i18n mailing list.  From Bruno Haible.
72447
72448 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
72449
72450         * m4/codeset.m4: New file.
72451         * m4/iconv.m4: New file.
72452         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
72453
72454 2000-03-03  Jim Meyering  <meyering@lucent.com>
72455
72456         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
72457
72458 2000-03-02  Jim Meyering  <meyering@lucent.com>
72459
72460         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
72461         the messages come out on separate lines.
72462
72463         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
72464         rather than jm_CHECK_DECLARATIONS.
72465         * m4/decl.m4: Remove now-unused file.
72466
72467         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
72468         geteuid.
72469
72470 2000-03-02  Jim Meyering  <meyering@lucent.com>
72471
72472         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
72473
72474 2000-03-01  Jim Meyering  <meyering@lucent.com>
72475
72476         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
72477         * lib/unicodeio.c: Likewise.
72478
72479 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
72480
72481         * lib/config.charset: New file.
72482         * lib/localcharset.c: New file.
72483         * lib/unicodeio.h, lib/unicodeio.c: New files.
72484         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
72485         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
72486         (noinst_HEADERS): Add unicodeio.h.
72487         (all-local, install-exec-local, charset.alias): New targets.
72488
72489 2000-02-28  Paul Eggert  <eggert@twinsun.com>
72490
72491         * lib/quotearg.c (ALERT_CHAR): New macro.
72492         (quotearg_buffer_restyled): Use it.
72493
72494 2000-02-27  Jim Meyering  <meyering@lucent.com>
72495
72496         * m4/check-decl.m4: Add getenv to the list.
72497
72498 2000-02-27  Jim Meyering  <meyering@lucent.com>
72499
72500         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
72501         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
72502
72503         * lib/backupfile.c: Guard inclusion of stdlib.h with
72504         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
72505         Declare malloc if needed.
72506
72507         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
72508         `#ifndef HAVE_DECL..'
72509         now that autoconf always defines the HAVE_DECL_ symbols.
72510         * lib/human.c: Likewise.
72511         * lib/same.c: Likewise.
72512         * lib/strtoumax.c: Likewise.
72513
72514         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
72515         declaration check was not run.
72516         * lib/hash.c: Likewise.
72517         * lib/human.c: Likewise.
72518         * lib/same.c: Likewise.
72519         * lib/strtoumax.c: Likewise.
72520
72521         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
72522         `.', then first look up the entire `.'-containing string as a login
72523         name.
72524
72525 2000-02-23  Jim Meyering  <meyering@lucent.com>
72526
72527         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
72528         in place of my hack.
72529
72530 2000-02-18  Paul Eggert  <eggert@twinsun.com>
72531
72532         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
72533         (textint): New typedef.
72534         (parser_control): Member year changed from int to textint.
72535         All uses changed.
72536         (YYSTYPE): Removed; replaced by %union with int and textint members.
72537         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
72538         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
72539         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
72540         (tSNUMBER, tUNUMBER): Now of type <textintval>.
72541         (date, number, to_year): Use width of number in digits, not its value,
72542         to determine whether it's a 2-digit year, or a 2-digit time.
72543         (yylex): Store number of digits of numeric tokens.
72544         Reported by John Kendall.
72545
72546         (parser_control): Changed from struct parser_control to typedef (for
72547         consistency).  All uses changed.
72548
72549         (tID): Removed; not used.
72550         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
72551
72552 2000-02-14  Paul Eggert  <eggert@twinsun.com>
72553
72554         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
72555         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
72556
72557 2000-02-12  Jim Meyering  <meyering@lucent.com>
72558
72559         * lib/userspec.c (ISDIGIT): Define it.
72560         (isdigit): Remove definition.
72561         (is_number): Use ISDIGIT, not isdigit.
72562         <libintl.h>: Include.
72563         (_ and N_): Define.
72564         (parse_user_spec): Mark translatable strings.
72565
72566 2000-02-10  Jim Meyering  <meyering@lucent.com>
72567
72568         With these changes, nanosleep.[ch] are finally enough like the other
72569         lib/* replacement files to compile on a few more losing systems.
72570
72571         * lib/nanosleep.h: Don't include config.h.
72572         Remove prototype from declaration of nanosleep.
72573         (PARAMS): Remove now-unneeded definition.
72574         * lib/nanosleep.c: #undef nanosleep.
72575         (rpl_nanosleep): Rename from nanosleep.
72576
72577 2000-02-10  Jim Meyering  <meyering@lucent.com>
72578
72579         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
72580         gnu_nanosleep to rpl_nanosleep.
72581
72582 2000-02-09  Jim Meyering  <meyering@lucent.com>
72583
72584         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
72585         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
72586
72587 2000-02-08  Akim Demaille  <akim@epita.fr>
72588
72589         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
72590         `[' and `]' and remove uses of `changequote'.
72591         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
72592         (AC_SYS_LARGEFILE): Likewise.
72593         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
72594         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
72595         of changequote.
72596         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
72597         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
72598         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
72599         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
72600
72601 2000-02-05  Jim Meyering  <meyering@lucent.com>
72602
72603         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
72604         Remove explicit use of AC_HEADER_TIME.  It is required by
72605         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
72606         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
72607         in autoconf whereby the expansion of the latter ended up preceding
72608         the expansion of its prerequisite, AC_HEADER_TIME.
72609         Reported by Volker Borchert.
72610
72611 2000-02-03  Jim Meyering  <meyering@lucent.com>
72612
72613         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
72614
72615 2000-02-03  Jim Meyering  <meyering@lucent.com>
72616
72617         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
72618         rather than with `#if HAVE_UTMPNAME'.
72619
72620 2000-02-02  Jim Meyering  <meyering@lucent.com>
72621
72622         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
72623         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
72624         Reported by Eli Zaretskii.
72625
72626 2000-02-01  Jim Meyering  <meyering@lucent.com>
72627
72628         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
72629
72630 2000-01-31  Jim Meyering  <meyering@lucent.com>
72631
72632         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
72633         functions.  Add the time.h and sys/time.h headers along with the
72634         AC_REQUIRE'ment of AC_HEADER_TIME.
72635
72636 2000-01-31  Jim Meyering  <meyering@lucent.com>
72637
72638         * lib/nanosleep.h (nanosleep): Guard declaration with
72639         `#if ! HAVE_DECL_NANOSLEEP'.
72640         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
72641         the declaration in that vendor's sys/timers.h.
72642         Reported by Christian Krackowizer.
72643
72644         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
72645         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
72646         (ISPRINT): Likewise.
72647         Reported by Tom Tromey.
72648
72649 2000-01-30  Jim Meyering  <meyering@lucent.com>
72650
72651         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
72652
72653         * m4/prereq.m4 (utmp_includes): Define.
72654         Check for ut_user and ut_name members in both struct utmpx
72655         and struct utmp.
72656
72657 2000-01-30  Jim Meyering  <meyering@lucent.com>
72658
72659         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
72660         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
72661         header files where only utmpx.ut_user is declared.
72662
72663         * lib/readutmp.h (UT_USER): Define.
72664
72665 2000-01-29  Jim Meyering  <meyering@lucent.com>
72666
72667         * m4/lib-check.m4: New file containing library-related checks from
72668         fileutils and sh-utils (textutils had none).
72669
72670 2000-01-28  Jim Meyering  <meyering@lucent.com>
72671
72672         * m4/perl.m4: Change format of warning message to look more like that
72673         from the missing script.  Suggestion from François Pinard.
72674
72675 2000-01-25  Jim Meyering  <meyering@lucent.com>
72676
72677         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
72678         well as time.h in the compile check.
72679         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
72680         Fix typo in cross-compiling case: s/yes/no/.
72681
72682 2000-01-23  Jim Meyering  <meyering@lucent.com>
72683
72684         * m4/jm-macros.m4: Move df-related tests here from
72685         fileutils/configure.in
72686
72687         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
72688         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
72689
72690         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
72691         s/space/ac_fsusage_space/.
72692         (jm_FILE_SYSTEM_USAGE): Take two parameters.
72693
72694         * m4/ftruncate.m4: New file (derived from part of
72695         fileutils/configure.in).
72696         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
72697         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
72698
72699         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
72700         AC_SUBST these here, rather than just in sh-util/configure.in, so
72701         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
72702         all the same.
72703         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
72704         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
72705         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
72706         (AC_SUBST(POW_LIBM)): Likewise.
72707         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
72708
72709 2000-01-23  Jim Meyering  <meyering@lucent.com>
72710
72711         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
72712         obstack.c.
72713
72714 2000-01-22  Jim Meyering  <meyering@lucent.com>
72715
72716         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
72717
72718         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
72719
72720         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
72721         configure.in
72722         (AC_CHECK_HEADERS): Likewise for sh-utils.
72723         (AC_CHECK_HEADERS): Likewise for textutils.
72724         Merge the three lists of headers.
72725
72726         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
72727         from fileutils' configure.in.
72728
72729         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
72730         code. Moved tests into their own function (_jm_DECL_HEADERS) in
72731         check-decl.m4.
72732
72733         * m4/check-decl.m4: Use #if rather than #ifdef.
72734         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
72735         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
72736         (_jm_DECL_HEADERS): Define new function.
72737         (jm_CHECK_DECLARATIONS): Require it.
72738
72739 2000-01-22  Jim Meyering  <meyering@lucent.com>
72740
72741         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
72742         [! HAVE_DECL_STRTOULL]: Declare strtoull.
72743         Required for some AIX systems.  Reported by Christian Krackowizer.
72744         [TESTING] (main): New function.
72745
72746         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
72747         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
72748         letters.
72749
72750         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
72751         iswprint.
72752
72753         * lib/strverscmp.c (ISDIGIT): Define.
72754         (strverscmp): Use ISDIGIT, not isdigit.
72755
72756 2000-01-19  Jim Meyering  <meyering@lucent.com>
72757
72758         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
72759         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
72760         defines `struct timespec' in <sys/time.h>
72761
72762         * m4/c-bs-a.m4: Remove uses of changequote altogether.
72763         Thanks to Akim for explaining.
72764
72765 2000-01-17  Paul Eggert  <eggert@twinsun.com>
72766
72767         * lib/nanosleep.c (nanosleep):
72768         Don't use SA_INTERRUPT to decide whether to call sigaction, as
72769         POSIX.1 doesn't require SA_INTERRUPT and some systems
72770         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
72771         it's been part of POSIX.1 since day 1 (in 1988).
72772
72773 2000-01-17  Jim Meyering  <meyering@lucent.com>
72774
72775         * lib/interlock: Remove unused file.  Reported by François Pinard.
72776
72777 2000-01-16  Paul Eggert  <eggert@twinsun.com>
72778
72779         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
72780         alert, backslash, formfeed, and vertical tab unnecessarily in
72781         shell quoting style.
72782
72783 2000-01-16  Jim Meyering  <meyering@lucent.com>
72784
72785         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
72786         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
72787         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
72788         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
72789
72790 2000-01-16  Jim Meyering  <meyering@lucent.com>
72791
72792         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
72793         because the latter didn't work.
72794
72795 2000-01-15  Jim Meyering  <meyering@lucent.com>
72796
72797         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
72798         (AC_REPLACE_FUNCS): Add memcpy and memset.
72799         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
72800         Add strpbrk.
72801         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
72802
72803 2000-01-12  Jim Meyering  <meyering@lucent.com>
72804
72805         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
72806         (jm_PREREQ): Use it.
72807         (jm_PREREQ_READUTMP): New macro.
72808         (jm_PREREQ): Use it.
72809
72810 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72811
72812         Quote multibyte characters correctly.
72813         * m4/c-bs-a.m4: New file.
72814         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
72815         (jm_PREREQ): Use it.
72816
72817 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72818
72819         * m4/uintmax_t.m4: Port to autoconf 2.13.
72820
72821 2000-01-08  Jim Meyering  <meyering@ascend.com>
72822
72823         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
72824         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
72825
72826 2000-01-04  Jim Meyering  <meyering@ascend.com>
72827
72828         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
72829         jm_STRUCT_DIRENT_D_TYPE.
72830         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
72831         jm_STRUCT_DIRENT_D_INO.
72832         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
72833         jm_STRUCT_UTIMBUF.
72834         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
72835         renamings.
72836         * m4/utime.m4: Likewise.
72837
72838         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
72839         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
72840
72841 2000-01-03  Paul Eggert  <eggert@twinsun.com>
72842
72843         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
72844         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
72845
72846 2000-01-02  Jim Meyering  <meyering@ascend.com>
72847
72848         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
72849         remember if this is necessary.
72850
72851 1999-12-26  Jim Meyering  <meyering@ascend.com>
72852
72853         * m4/jm-macros.m4: Use it here.
72854         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
72855
72856 1999-12-23  Jim Meyering  <meyering@ascend.com>
72857
72858         * m4/jm-macros.m4: Check for clock_gettime (moved from
72859         fileutils/configure.in)
72860         Check for gettimeofday.
72861
72862 1999-12-20  Jim Meyering  <meyering@ascend.com>
72863
72864         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
72865         autoconf-2.14a-1999-12-20.
72866
72867 1999-12-19  Jim Meyering  <meyering@ascend.com>
72868
72869         * m4/lstat-slash.m4: New file.
72870         * m4/jm-macros.m4: Use the new macro:
72871         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72872
72873 1999-12-07  Jim Meyering  <meyering@ascend.com>
72874
72875         * m4/perl.m4: Require that File::Compare be available, too.
72876         Too many systems seem to lack it.
72877
72878         * m4/strftime.m4: Add checks for most of the cpp macros tested in
72879         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
72880
72881 1999-11-18  Paul Eggert  <eggert@twinsun.com>
72882
72883         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
72884         problem with the QNX 4.25 shell, which doesn't propagate exit
72885         status of failed commands inside shell assignments.
72886
72887 1999-11-17  Jim Meyering  <meyering@ascend.com>
72888
72889         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
72890
72891 1999-11-07  Jim Meyering  <meyering@ascend.com>
72892
72893         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
72894
72895 1999-11-06  Jim Meyering  <meyering@ascend.com>
72896
72897         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
72898         * m4/jm-macros.m4 (jm_MACROS): Use it here.
72899
72900 1999-11-05  Jim Meyering  <meyering@ascend.com>
72901
72902         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
72903         configure.in of textutils, fileutils, and sh-utils into this one
72904         (shared between those packages) file.
72905         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
72906         AC_STRUCT_ST_BLKSIZE.
72907
72908 1999-11-03  Jim Meyering  <meyering@ascend.com>
72909
72910         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
72911         of AC_CHECK_TYPE checks includes unistd.h.
72912         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
72913         Suggestion from Akim Demaille.
72914
72915 1999-10-30  Jim Meyering  <meyering@ascend.com>
72916
72917         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
72918         m4-quoted string.
72919         * m4/ls-mntd-fs.m4: Likewise.
72920         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
72921         * m4/jm-winsz1.m4: Likewise.
72922
72923         * m4/const.m4: Remove file, since the fix made it into the experimental
72924         version of autoconf.
72925         * m4/mktime.m4: Likewise.
72926
72927         * m4/check-type.m4: Remove file, now that the latest version of
72928         AC_CHECK_TYPE takes a third arg to specify additional #includes.
72929
72930         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
72931         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
72932         AC_CHECK_TYPE.
72933
72934 1999-10-04  Jim Meyering  <meyering@ascend.com>
72935
72936         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
72937
72938 1999-09-22  Paul Eggert  <eggert@twinsun.com>
72939
72940         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
72941         2.95.1 bug with HP-UX 10.20.
72942
72943 1999-09-17  Jim Meyering  <meyering@ascend.com>
72944
72945         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
72946         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
72947         due to missing strdup (against sh-utils-2.0).
72948
72949 1999-08-29  Jim Meyering  <meyering@ascend.com>
72950
72951         * m4/jm-macros.m4: Require jm_BISON.
72952         * m4/bison.m4: New file.
72953
72954 1999-08-17  Paul Eggert  <eggert@twinsun.com>
72955
72956         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
72957         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
72958
72959 1999-08-05  Jim Meyering  <meyering@ascend.com>
72960
72961         * m4/getline.m4: Rename test file from conftestdata to conftest.data
72962         to avoid conflicts with `conftest' on 8+3 filesystems.
72963         Suggestion from Eli Zaretskii.
72964
72965 1999-08-04  Jim Meyering  <meyering@ascend.com>
72966
72967         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
72968         fileutils and sh-utils (textutils's getline test was inadequate).
72969         (AM_FUNC_GETLINE): Run this test.
72970         (AC_CHECK_FUNCS): Check for getdelim.
72971         Reported by Bob Proulx.
72972
72973 1999-08-02  Jim Meyering  <meyering@ascend.com>
72974
72975         * m4/jm-macros.m4: Add a comment.
72976
72977 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72978
72979         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
72980         <inttypes.h> defines strtoumax as a macro (and not as a
72981         function).
72982
72983 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72984
72985         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
72986         that we can shift, multiply and divide unsigned long long
72987         values; Ultrix cc can't do it.
72988
72989 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72990
72991         * m4/mktime.m4: New file, which is a preview of what should appear
72992         in the next public autoconf release.
72993
72994 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72995
72996         * m4/lfs.m4: Remove this file.
72997         * m4/largefile.m4: New file.  It contains the old contents of
72998         lfs.m4, except that all names with prefix AC_LFS have been
72999         changed to use the prefix AC_SYS_LARGEFILE instead, to be
73000         compatible with future autoconf versions.  Also, some minor m4
73001         quoting problems have been fixed.
73002
73003 1999-08-01  Paul Eggert  <eggert@twinsun.com>
73004
73005         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
73006         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
73007         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
73008         and simplify the shell code.
73009
73010 1999-08-01  Jim Meyering  <meyering@ascend.com>
73011
73012         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
73013         m4.
73014
73015 1999-07-20  Jim Meyering  <meyering@ascend.com>
73016
73017         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
73018
73019 1999-07-15  Jim Meyering  <meyering@ascend.com>
73020
73021         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
73022
73023 1999-05-22  Jim Meyering  <meyering@ascend.com>
73024
73025         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
73026
73027 1999-05-20  Jim Meyering  <meyering@ascend.com>
73028
73029         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
73030         Add a colon after each `then' in case $4 is empty.
73031
73032 1999-05-16  Jim Meyering  <meyering@ascend.com>
73033
73034         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
73035
73036 1999-05-10  Jim Meyering  <meyering@ascend.com>
73037
73038         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
73039
73040         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
73041         AC_FUNC_MKTIME.
73042
73043 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
73044
73045         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
73046
73047 1999-05-04  Paul Eggert  <eggert@twinsun.com>
73048
73049         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
73050         not CPPFLAGS, so that linking works correctly in IRIX.
73051
73052 1999-04-30  Paul Eggert  <eggert@twinsun.com>
73053
73054         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
73055
73056 1999-04-20  Paul Eggert  <eggert@twinsun.com>
73057
73058         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
73059         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
73060         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
73061         jm_AC_TYPE_UNSIGNED_LONG_LONG.
73062         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
73063
73064         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
73065
73066 1999-04-20  Jim Meyering  <meyering@ascend.com>
73067
73068         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
73069         AC_REPLACE xstroull if necessary.  From Paul Eggert.
73070         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
73071
73072 1999-04-18  Jim Meyering  <meyering@ascend.com>
73073
73074         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
73075         * m4/jm-macros.m4: Use it.
73076
73077 1999-04-06  Jim Meyering  <meyering@ascend.com>
73078
73079         * m4/strftime.m4: Remove test for %f.
73080
73081 1999-03-29  Jim Meyering  <meyering@ascend.com>
73082
73083         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
73084         superset of the AC_TYPE_* checks in the textutils, fileutils,
73085         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
73086         AC_TYPE_PID_T.
73087
73088 1999-03-28  Jim Meyering  <meyering@ascend.com>
73089
73090         * m4/jm-macros.m4: Define GNU_PACKAGE here.
73091         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
73092         replaced e.g., in the *.sh files of the sh-utils.
73093
73094 1999-03-20  Jim Meyering  <meyering@ascend.com>
73095
73096         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
73097         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
73098         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
73099
73100 1999-03-19  Jim Meyering  <meyering@ascend.com>
73101
73102         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
73103
73104 1999-03-12  Jim Meyering  <meyering@ascend.com>
73105
73106         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
73107
73108 1999-03-07  Jim Meyering  <meyering@ascend.com>
73109
73110         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
73111         declared.
73112
73113 1999-02-17  Jim Meyering  <meyering@ascend.com>
73114
73115         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
73116         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
73117
73118 1999-02-07  Jim Meyering  <meyering@ascend.com>
73119
73120         * m4/group-member.m4: New file -- extracted from sh-utils'
73121         configure.in.
73122
73123         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
73124         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
73125
73126 1999-02-06  Jim Meyering  <meyering@ascend.com>
73127
73128         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
73129         * m4/fnmatch.m4: Likewise.
73130         * m4/getgroups.m4: Likewise.
73131         * m4/lstat.m4: Likewise.
73132         * m4/malloc.m4: Likewise.
73133         * m4/putenv.m4: Likewise.
73134         * m4/realloc.m4: Likewise.
73135         * m4/regex.m4: Likewise.
73136         * m4/stat.m4: Likewise.
73137         * m4/strftime.m4: Likewise.
73138         Suggestion from Alain Magloire.
73139
73140         * m4/chown.m4: Use `.$ac_objext', not `.o'.
73141         * m4/fnmatch.m4: Likewise.
73142         * m4/getgroups.m4: Likewise.
73143         * m4/getline.m4: Likewise.
73144         * m4/lstat.m4: Likewise.
73145         * m4/malloc.m4: Likewise.
73146         * m4/memcmp.m4: Likewise.
73147         * m4/putenv.m4: Likewise.
73148         * m4/realloc.m4: Likewise.
73149         * m4/regex.m4: Likewise.
73150         * m4/stat.m4: Likewise.
73151         * m4/strftime.m4: Likewise.
73152         Suggestion from Alain Magloire.
73153
73154         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
73155         an argument.
73156
73157         * m4/regex.m4: Add a run-time Test for proper operation of
73158         re_compile_pattern.
73159
73160 1999-01-31  Jim Meyering  <meyering@ascend.com>
73161
73162         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
73163
73164 1999-01-30  Jim Meyering  <meyering@ascend.com>
73165
73166         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
73167
73168         * m4/jm-mktime.m4: Make this a wrapper around the official
73169         AM_FUNC_MKTIME rather than my private copy, now that the official one
73170         is up to date.
73171         * m4/mktime.m4: Remove file.
73172
73173         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
73174         * m4/uptime.m4: Likewise.
73175         * m4/uintmax_t.m4: Likewise.
73176
73177 1999-01-28  Jim Meyering  <meyering@ascend.com>
73178
73179         * m4/jm-macros.m4: Use jm_AFS.
73180         * m4/afs.m4: New file (from fileutils' configure.in).
73181
73182         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
73183         * m4/chown.m4: Likewise.
73184         * m4/d-ino.m4: Likewise.
73185         * m4/d-type.m4: Likewise.
73186         * m4/fnmatch.m4: Likewise.
73187         * m4/getgroups.m4: Likewise.
73188         * m4/gettext.m4: Likewise.
73189         * m4/jm-mktime.m4: Likewise.
73190         * m4/jm-winsz2.m4: Likewise.
73191         * m4/lcmessage.m4: Likewise.
73192         * m4/ls-mntd-fs.m4: Likewise.
73193         * m4/malloc.m4: Likewise.
73194         * m4/memcmp.m4: Likewise.
73195         * m4/putenv.m4: Likewise.
73196         * m4/realloc.m4: Likewise.
73197         * m4/st_mtim.m4: Likewise.
73198         * m4/strftime.m4: Likewise.
73199
73200 1999-01-16  Jim Meyering  <meyering@ascend.com>
73201
73202         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
73203         (ARGMATCH_DIE_DECL): Define.
73204
73205 1999-01-12  Jim Meyering  <meyering@ascend.com>
73206
73207         * m4/Makefile.am.in: Rewrite to avoid using fmt.
73208         Reported by Lars Hecking.
73209
73210 1999-01-10  Jim Meyering  <meyering@ascend.com>
73211
73212         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
73213         gross kludge.
73214         * m4/inttypes_h.m4: Likewise.
73215         * m4/lstat.m4: Likewise.
73216         * m4/malloc.m4: Likewise.
73217         * m4/readdir.m4: Likewise.
73218         * m4/realloc.m4: Likewise.
73219         * m4/st_dm_mode.m4: Likewise.
73220         * m4/stat.m4: Likewise.
73221         * m4/utimbuf.m4: Likewise.
73222         * m4/utimes.m4: Likewise.
73223
73224         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
73225         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
73226         comments in config.h.in are meaningful.
73227
73228         * m4/jm-macros.m4: Require autoconf-2.13 here.
73229
73230         * m4/regex.m4: By default, don't use the included regex.c on systems
73231         with glibc 2.  Suggestion from Uli Drepper.
73232
73233 1999-01-02  Jim Meyering  <meyering@ascend.com>
73234
73235         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
73236
73237 1998-12-18  Jim Meyering  <meyering@ascend.com>
73238
73239         * m4/Makefile.am.in (Makefile.am): Simplify rule.
73240         Based on a suggestion from Lars Hecking.
73241
73242 1998-11-16  Paul Eggert  <eggert@twinsun.com>
73243
73244         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
73245
73246 1998-11-16  Jim Meyering  <meyering@ascend.com>
73247
73248         * m4/lfs.m4: Double-quote the `uname...` expression.
73249
73250 1998-11-14  Jim Meyering  <meyering@ascend.com>
73251
73252         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
73253         * m4/stat.m4: Likewise.
73254
73255 1998-11-03  Jim Meyering  <meyering@ascend.com>
73256
73257         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
73258         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
73259
73260 1998-10-18  Jim Meyering  <meyering@ascend.com>
73261
73262         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
73263
73264 1998-10-17  Jim Meyering  <meyering@ascend.com>
73265
73266         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
73267         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
73268         calls for those previously hard-coded headers.  Instead, take a new
73269         parameter.
73270         (jm_CHECK_DECLARATIONS): Reflect interface change.
73271         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
73272         (jm_CHECK_DECL_LOCALTIME_R): New macro.
73273
73274         * m4/mktime.m4: Test for spring-forward gap before long-running test.
73275
73276 1998-10-14  Jim Meyering  <meyering@ascend.com>
73277
73278         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
73279         instead of "TZ=America/Vancouver".  From Paul Eggert.
73280
73281 1998-10-11  Jim Meyering  <meyering@ascend.com>
73282
73283         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
73284         This adds a test for a recently added compatibility fix for mktime.c.
73285         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
73286
73287 1998-09-27  Jim Meyering  <meyering@ascend.com>
73288
73289         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
73290
73291         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
73292         ../configure.in, including a change from Gordon Matzigkeit to allow
73293         cross-compiling for the Hurd.
73294
73295         * m4/glibc.m4: New file/macro to test for the GNU C Library
73296         versions 1 and 2.  From Gordon Matzigkeit.
73297         Indent.
73298
73299 1998-09-21  Jim Meyering  <meyering@ascend.com>
73300
73301         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
73302
73303 1998-08-18  Paul Eggert  <eggert@twinsun.com>
73304
73305         Port nanosecond-resolution times to UnixWare 2.1.2 and
73306         pedantic Solaris 2.6.
73307
73308         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
73309         AC_STRUCT_ST_MTIM.
73310         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
73311         Generate name of ns member, instead of just 1 or undef.
73312         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
73313
73314 1998-08-15  Jim Meyering  <meyering@ascend.com>
73315
73316         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
73317         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
73318         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
73319         instead of jm_TYPE_SSIZE_T.
73320
73321 1998-08-12  Jim Meyering  <meyering@ascend.com>
73322
73323         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
73324
73325 1998-08-02  Jim Meyering  <meyering@ascend.com>
73326
73327         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
73328         in acconfig.h manually.
73329
73330 1998-07-31  Paul Eggert  <eggert@twinsun.com>
73331
73332         * m4/st_mtim.m4: New file.
73333
73334 1998-07-28  Jim Meyering  <meyering@ascend.com>
73335
73336         * m4/utimes.m4: Undef stat.
73337
73338 1998-07-25  Jim Meyering  <meyering@ascend.com>
73339
73340         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
73341         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
73342
73343 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
73344
73345         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
73346         uid and gid actually remain unchanged.
73347
73348 1998-07-07  Jim Meyering  <meyering@ascend.com>
73349
73350         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
73351
73352 1998-07-04  Jim Meyering  <meyering@ascend.com>
73353
73354         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
73355         to prove that this macro can be used in packages without regex.c.
73356
73357 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
73358
73359         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
73360         is to be used.
73361
73362 1998-07-03  Jim Meyering  <meyering@ascend.com>
73363
73364         * m4/gettext.m4: Add -lintl if it's found to be necessary.
73365
73366         * m4/gettext.m4: New file -- from gettext-0.10.35.
73367         * m4/lcmessage.m4: Likewise.
73368         * m4/progtest.m4: Likewise.
73369
73370         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
73371         * m4/jm-macros.m4: Require the new macro.
73372
73373 1998-06-29  Jim Meyering  <meyering@ascend.com>
73374
73375         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
73376         for the definition of NGROUPS (used in a system header included
73377         by sys/mount.h).
73378
73379 1998-06-28  Jim Meyering  <meyering@ascend.com>
73380
73381         * m4/ls-mntd-fs.m4: New file.
73382         * m4/fstypename.m4: New file.
73383
73384         * m4/jm-macros.m4: Require the new macro.
73385         * m4/jm-glibc-io.m4: New file.
73386
73387 1998-05-19  Jim Meyering  <meyering@ascend.com>
73388
73389         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
73390         * m4/lchown.m4: New file.
73391
73392         * m4/Makefile.am.in: New file.
73393         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
73394
73395 1998-05-14  Jim Meyering  <meyering@ascend.com>
73396
73397         * m4/Makefile.am (EXTRA_DIST): Add them.
73398         * m4/jm-macros.m4: New file.
73399         * m4/utimbuf.m4: New file.
73400
73401 1998-05-12  Jim Meyering  <meyering@ascend.com>
73402
73403         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
73404
73405 1998-05-11  Jim Meyering  <meyering@ascend.com>
73406
73407         * m4/isc-posix.m4: New file.
73408
73409 1998-05-10  Jim Meyering  <meyering@ascend.com>
73410
73411         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
73412
73413 1998-05-09  Jim Meyering  <meyering@ascend.com>
73414
73415         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
73416         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
73417         with automake.
73418
73419         * m4/ssize_t.m4: New file.
73420         * m4/mktime.m4: Remove file -- the new automake has this now.
73421
73422 1998-04-26  Jim Meyering  <meyering@ascend.com>
73423
73424         * m4/assert.m4: New file.
73425         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
73426
73427 1998-04-05  Jim Meyering  <meyering@ascend.com>
73428
73429         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
73430         (jm_PREREQ): Use it here.
73431
73432 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
73433
73434         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
73435         in acconfig.h.
73436
73437 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
73438
73439         * m4/prereq.m4: New file.
73440         * m4/error.m4: New file.
73441         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
73442
73443 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
73444
73445         * m4/getline.m4: Don't set am_cv_func_working_getline before the
73446         cache-check for the same variable -- that defeated the purpose of
73447         the test; the test program was never run.  This was a problem only
73448         on systems with losing getline functions -- HP-UX 10.20 is one.
73449         Reported by Bjorn Helgaas.
73450
73451 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
73452
73453         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
73454
73455 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
73456
73457         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
73458
73459         * m4/const.m4: New file.  Use an initializer in this declaration
73460         typedef int charset[2]; const charset x;
73461         Reported by Bob Glickstein.
73462
73463 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
73464
73465         * m4/chown.m4: Fix reversed types on -1 args to chown.
73466         From Kaveh Ghazi.
73467
73468 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
73469
73470         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
73471         Add lseek and memchr.
73472
73473         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
73474         T.E.Dickey <dickey@clark.net> said that some older preprocessors
73475         have a 20-character limit on names.
73476
73477 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
73478
73479         * m4/inttypes_h.m4: New file.
73480         * m4/uintmax_t.m4: New file.
73481         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
73482
73483
73484         -----
73485
73486         Local Variables:
73487         coding: utf-8
73488         End:
73489
73490         Copyright (C) 1997-2011 Free Software Foundation, Inc.
73491
73492         Copying and distribution of this file, with or without
73493         modification, are permitted provided the copyright notice
73494         and this notice are preserved.